diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 13057e631c0d..7ba6a4b4fd0e 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -10387,7 +10387,7 @@ packages: dev: false file:projects/abort-controller.tgz: - resolution: {integrity: sha512-QHiMGhqMvE5VwWZYZnKxQg09FROyv4nnT3BcBtgiQzQ9tr3a012o8QJ9V93mKVYcYA1+LdamnEvNvRG6rLPEJQ==, tarball: file:projects/abort-controller.tgz} + resolution: {integrity: sha512-s1KDlmkTPtTJSkZDAxrrpF1/CRvJQEen2JMt3yxCLM3EGO6V2XDdyNHygvHn8E+ielxoUeYKr8IXW1OGI8+jeA==, tarball: file:projects/abort-controller.tgz} name: '@rush-temp/abort-controller' version: 0.0.0 dependencies: @@ -10424,7 +10424,7 @@ packages: dev: false file:projects/agrifood-farming.tgz: - resolution: {integrity: sha512-w1Zn0AnYpavruN5ZKhtNrnXNIM7VpWcoorcCddXJIvMTVG+YTA+wstdKuHstf3TmOjXLTAD9vIBOIjBTXJzn0A==, tarball: file:projects/agrifood-farming.tgz} + resolution: {integrity: sha512-2tgPl9Hl8ryCjvTRUBdE8TDYZJSUf98xpMvQSdmShHmvQXlRZz7rR5umP8jlKvequTCHFywD0TrZWMdW6YG72w==, tarball: file:projects/agrifood-farming.tgz} name: '@rush-temp/agrifood-farming' version: 0.0.0 dependencies: @@ -10469,7 +10469,7 @@ packages: dev: false file:projects/ai-anomaly-detector.tgz: - resolution: {integrity: sha512-4T9oiUPFU3svUKZolIMkn5Hsuro6MnjWwzLEfix8K9UDT9rXA/e0lUZkMm8zePcqK7OLqXqc0ZZkseOEUDz+Hg==, tarball: file:projects/ai-anomaly-detector.tgz} + resolution: {integrity: sha512-FZS4IUhM9B76Sh43HaeIWAe00Y5IaUYIfotDhajEx8aXjggHm9DC5Wf7JR/wMBt4yqSNsj5gS/eXJYyfKKaoXg==, tarball: file:projects/ai-anomaly-detector.tgz} name: '@rush-temp/ai-anomaly-detector' version: 0.0.0 dependencies: @@ -10514,7 +10514,7 @@ packages: dev: false file:projects/ai-content-safety.tgz: - resolution: {integrity: sha512-AH9U6ghthAo5WQrVm/qfrdty2rUwriDD5fXsh0V1EYQgggixLocYBH9fR17WcY6QtExrUMLkmxJP04M8/nn++g==, tarball: file:projects/ai-content-safety.tgz} + resolution: {integrity: sha512-uEntMKi9GSBv3hTNvkc1peMt1UUgJ0ILafpKATFxlLKOMVmN8O5OfvjlPlqYM3pCPmEBm1lEhLbj3eIxxH860Q==, tarball: file:projects/ai-content-safety.tgz} name: '@rush-temp/ai-content-safety' version: 0.0.0 dependencies: @@ -10558,7 +10558,7 @@ packages: dev: false file:projects/ai-document-intelligence.tgz: - resolution: {integrity: sha512-uNDdJbLgLNFiTEJ01JabpJq/lX3OF5J8ZrlOhU0C3glOURg1RG1faB/JVh6pJzxk3BEBFUk6TadvoJ7Q7VAcRg==, tarball: file:projects/ai-document-intelligence.tgz} + resolution: {integrity: sha512-xceSvDUgMGTnQi2WrHg2EbsQu3yJmLE8D1SZyTYayLAu9nosuBmWlaEroC4jJiubl6qzq3IJI0kfzorOZw9dmQ==, tarball: file:projects/ai-document-intelligence.tgz} name: '@rush-temp/ai-document-intelligence' version: 0.0.0 dependencies: @@ -10603,7 +10603,7 @@ packages: dev: false file:projects/ai-document-translator.tgz: - resolution: {integrity: sha512-24LM2vGBRW/3ASW/Gn3nw6DrZdILE9bhZFINUvMXuyJYOWkYip4pjHfFE6QLrdBxsEmOp4fGxKvORSPswjErbw==, tarball: file:projects/ai-document-translator.tgz} + resolution: {integrity: sha512-Cdm9cE+Xkpv+aicgtK1Lw7jJz2NNS4AXeOSutC6wketIx3JEojXvF+zf3YEtTmunC0EX/ScKSPdQX2ZiwN/nSg==, tarball: file:projects/ai-document-translator.tgz} name: '@rush-temp/ai-document-translator' version: 0.0.0 dependencies: @@ -10647,7 +10647,7 @@ packages: dev: false file:projects/ai-form-recognizer.tgz: - resolution: {integrity: sha512-Q8CLkpq6mf8nm8zfPelY0zqA0kuNCnXtiXse9nTFzCdX9OFu6CQGMDgW8XTunxdFchcsNrAmnvgMbeAlKJtebg==, tarball: file:projects/ai-form-recognizer.tgz} + resolution: {integrity: sha512-yg8Pmpj87x+fVobiIOU+jLOcw1lxmwqLG5UHuTJPAwfYL+XRRDBGJ8C+NJ/s7inO5Y/VuDpteBVdM2psRLbrqg==, tarball: file:projects/ai-form-recognizer.tgz} name: '@rush-temp/ai-form-recognizer' version: 0.0.0 dependencies: @@ -10695,7 +10695,7 @@ packages: dev: false file:projects/ai-language-conversations.tgz: - resolution: {integrity: sha512-+bLJAJacBSyQ5eY8w0Zovrdq3S7Hxa0ii4Yq7M8VwvEZIbhP4NSP12PM6Yz8DPTToRQQNFFY1zzrr2qagWm86Q==, tarball: file:projects/ai-language-conversations.tgz} + resolution: {integrity: sha512-Z/gL6NeZhmC+WZTxarGscEV31n4HmKDYKUpTUoeuPaBNh5CrNZigbsRPt4Xkt0qMVvUHm7mGroMqHvAcwi8Q/A==, tarball: file:projects/ai-language-conversations.tgz} name: '@rush-temp/ai-language-conversations' version: 0.0.0 dependencies: @@ -10744,7 +10744,7 @@ packages: dev: false file:projects/ai-language-text.tgz: - resolution: {integrity: sha512-VWYO6b4MYaztqfBX/WguiQwk4ISoFde3ZoMNUrvb4XD/kwF2V7lNztFRVhBiDmIdAURskzZqXSGuUiC7sxeyGg==, tarball: file:projects/ai-language-text.tgz} + resolution: {integrity: sha512-c/yv+4ATFXV2uxZi+ZYJZKyLirLVPlLAMzA/g91irHyDZxFSVbnQ5TSP/j/n3FJEsJlKUJFGx6yO5gAe1fctNg==, tarball: file:projects/ai-language-text.tgz} name: '@rush-temp/ai-language-text' version: 0.0.0 dependencies: @@ -10792,7 +10792,7 @@ packages: dev: false file:projects/ai-language-textauthoring.tgz: - resolution: {integrity: sha512-vPJE7PdO6G353B6wQYx8+YR8CLXGam0h8C7BlpBBD78K76i488TjQV4w+QZuDQ6HUeujwtd1G0/Ic7egSHmA2w==, tarball: file:projects/ai-language-textauthoring.tgz} + resolution: {integrity: sha512-MzkS1d/9TdcMqDlIk/+3N4oZnUZrGttz+TuF9NDEk+nQ1xcl5uiKC7DkhYxUA3t8bh6VtoXqtl3x9evlw7Dihg==, tarball: file:projects/ai-language-textauthoring.tgz} name: '@rush-temp/ai-language-textauthoring' version: 0.0.0 dependencies: @@ -10817,7 +10817,7 @@ packages: dev: false file:projects/ai-metrics-advisor.tgz: - resolution: {integrity: sha512-cQoAdeIA0puSGzjWT6i+svwQD4h2tt5wPq6B/IVx+DL+BOctC3MlkV9Fy94l58Y2wbvwJoggrM1gJ+QQqkyaVw==, tarball: file:projects/ai-metrics-advisor.tgz} + resolution: {integrity: sha512-1VuvmxgevWptHARj3kI9HZyBbuddsCYgQU3sx1pSHtzD68kjIbrNPjzZlkM7gLOUJ53gI7GBXErClq7sDgDYVA==, tarball: file:projects/ai-metrics-advisor.tgz} name: '@rush-temp/ai-metrics-advisor' version: 0.0.0 dependencies: @@ -10861,7 +10861,7 @@ packages: dev: false file:projects/ai-personalizer.tgz: - resolution: {integrity: sha512-qqkOcqEJtFha4jfmObdGrSh96YGyYktOtNAMSOoNaTyPlID9UWPwXxs2UA1qJeX/iMLGBynGqWDkmFJ+KB+UvQ==, tarball: file:projects/ai-personalizer.tgz} + resolution: {integrity: sha512-EO4JmsFm62GMNuCfPwyxB8FKR7MggbH2KGSVF6KES7gUElupKSq8exRjRj8izlIE0uqCY5L4nr89C2eU4TsRUg==, tarball: file:projects/ai-personalizer.tgz} name: '@rush-temp/ai-personalizer' version: 0.0.0 dependencies: @@ -10904,7 +10904,7 @@ packages: dev: false file:projects/ai-text-analytics.tgz: - resolution: {integrity: sha512-7hnpPoFQVw22mBJQm52yJT2tM04y04EEkbQi8dDHMvcWk+IDL07YhWWCqwB4HPT9Jtoxcea1QlPnenCl6epi7g==, tarball: file:projects/ai-text-analytics.tgz} + resolution: {integrity: sha512-QGBAdzbp0Fapr8o/pejiMMIGN/eeYHhTo0xoXdhJ2VRdXyax+DN6En5UYUa9rFTkJ3rvCQ0sz/GAaJsm2Rr2/w==, tarball: file:projects/ai-text-analytics.tgz} name: '@rush-temp/ai-text-analytics' version: 0.0.0 dependencies: @@ -10951,7 +10951,7 @@ packages: dev: false file:projects/ai-translation-text.tgz: - resolution: {integrity: sha512-TusnyNQN8xrh3cudOQmLuXC4fZhLG9vahXp/xBt8I2vn8E7GGEdwaJfjVXmsMsjw0W9KKn8mQTapEBlejqh1SA==, tarball: file:projects/ai-translation-text.tgz} + resolution: {integrity: sha512-O3tpsUjeuxrXpvKaakyZZsW7eQB4VQsUQybZpUqMXtHIhAo5MiWBwQp8v4zZgLxpo8tgClZztqbCZdJGy8MLlQ==, tarball: file:projects/ai-translation-text.tgz} name: '@rush-temp/ai-translation-text' version: 0.0.0 dependencies: @@ -10995,7 +10995,7 @@ packages: dev: false file:projects/ai-vision-image-analysis.tgz: - resolution: {integrity: sha512-LIj0SQ+jZaq9QhsId0cQpVpuAoJsFfc5SGTGMznAUhu6iwFP80XZmwOPtN8/bsv8XXv4wnxfVsWvqDjqr7+MUg==, tarball: file:projects/ai-vision-image-analysis.tgz} + resolution: {integrity: sha512-P1+OlUWXtaHQnoMjVPDlgohfSBoJn6mkG0B8rV13vum6XLaTrbCHZQMM5QlNDJKqAChDc5Dn/VbxwP6Bb+wwlQ==, tarball: file:projects/ai-vision-image-analysis.tgz} name: '@rush-temp/ai-vision-image-analysis' version: 0.0.0 dependencies: @@ -11040,7 +11040,7 @@ packages: dev: false file:projects/api-management-custom-widgets-scaffolder.tgz: - resolution: {integrity: sha512-4o0hdFY5VIb52V57emg7r8dKpFbMTD1fXVg1QpirbXTVM7mEXuhEBWZBNOzp1FQbr/ASTnASi4zgWc9obntWJg==, tarball: file:projects/api-management-custom-widgets-scaffolder.tgz} + resolution: {integrity: sha512-vddv5gA6/3wjo49gZBKGeEG2WnyPji6v1oNyH4dr1vQRAqMYG8G/7ThXDg0W3iAxZzH8CN7daarw2cQ58QdvVA==, tarball: file:projects/api-management-custom-widgets-scaffolder.tgz} name: '@rush-temp/api-management-custom-widgets-scaffolder' version: 0.0.0 dependencies: @@ -11065,7 +11065,7 @@ packages: magic-string: 0.27.0 mocha: 10.2.0 mustache: 4.2.0 - prettier: 2.8.8 + prettier: 3.1.1 rimraf: 3.0.2 rollup: 4.9.1 sinon: 17.0.1 @@ -11082,7 +11082,7 @@ packages: dev: false file:projects/api-management-custom-widgets-tools.tgz: - resolution: {integrity: sha512-Hk7mC+5QvE7XSa5kbROfscgw6CSQVHwFaHt48+3IZ6ZjAwMqLBj1DkwoL1zsyvUkMMsXMbZdHxCMCxXudRFHQQ==, tarball: file:projects/api-management-custom-widgets-tools.tgz} + resolution: {integrity: sha512-2lFx/swl5zypQflLUwqJOkVv5oMusMiDWeUbzGgZE2GM2XYlsCvSyULuF5n4nTmdkN4RM7MZnNJypLFloRBdNg==, tarball: file:projects/api-management-custom-widgets-tools.tgz} name: '@rush-temp/api-management-custom-widgets-tools' version: 0.0.0 dependencies: @@ -11115,7 +11115,7 @@ packages: mime: 4.0.1 mocha: 10.2.0 mustache: 4.2.0 - prettier: 2.8.8 + prettier: 3.1.1 rimraf: 3.0.2 sinon: 17.0.1 ts-node: 10.9.2(@types/node@18.19.3)(typescript@5.2.2) @@ -11133,7 +11133,7 @@ packages: dev: false file:projects/app-configuration.tgz: - resolution: {integrity: sha512-eKHdgJfijAYA/8v2G3dIy4xcYTc4Wm93HK9n1RPZDCB1V3I6oci9cv1GqK0iJieDzGFKEN1JWhybvuoj8Fgp7A==, tarball: file:projects/app-configuration.tgz} + resolution: {integrity: sha512-MwOiJBSTvm9rF8LRrUOakk86I9OsK1RIxlEwEA0TmeHSfHQedvR4Hot7RgOz59BPsa3o3Vhyprcf8058ImhQCw==, tarball: file:projects/app-configuration.tgz} name: '@rush-temp/app-configuration' version: 0.0.0 dependencies: @@ -11179,7 +11179,7 @@ packages: dev: false file:projects/arm-advisor.tgz: - resolution: {integrity: sha512-jTXTZ9QddKjTVOEIr24F2tiUfvixYuEeAxkq/QnyNroAvSxqLO6PiLtj4CGzB2dP2wSoBxXotbENKljzxs74Bg==, tarball: file:projects/arm-advisor.tgz} + resolution: {integrity: sha512-oECkAlHkzO+Bm+U1zykhRhSFcZSM/oeKVu2A3eV+SDtwbe6HDanVLjQAfSV4enj6K+K6NC3aFbPgyscFUGWm1w==, tarball: file:projects/arm-advisor.tgz} name: '@rush-temp/arm-advisor' version: 0.0.0 dependencies: @@ -11204,7 +11204,7 @@ packages: dev: false file:projects/arm-agrifood.tgz: - resolution: {integrity: sha512-k3ERTABcZobn3481hmimcF6+9FWz8+FJMotyo7NFBSa/8W29wgTEuVLp7jVbzth+QSJJGAcdu3esfwCti4Wf4Q==, tarball: file:projects/arm-agrifood.tgz} + resolution: {integrity: sha512-fqYXvfpbFKsXYet59+XcC6z8bhcxNXwXBK06s3t97gnCJ2fYitjtYmlJo21ybVa0u5QNky/fDIMDloZmg6IVLg==, tarball: file:projects/arm-agrifood.tgz} name: '@rush-temp/arm-agrifood' version: 0.0.0 dependencies: @@ -11229,7 +11229,7 @@ packages: dev: false file:projects/arm-analysisservices.tgz: - resolution: {integrity: sha512-OtrC88QoJGrJC9I4jh952/ptrhrYJb9Z3den4UmqcBJlgFSpwKa7Q7ljZem+ZGV14BxXKSbRwF11Hg+iQ4b6Dw==, tarball: file:projects/arm-analysisservices.tgz} + resolution: {integrity: sha512-v6I57Q7qHGVMnOYXYleZrT2sQOBw1qwkR0Tfjns4zn2SZNF+P8sUsFXPVgTr2xVGSmBNE8kFBIVR3TD610MnbQ==, tarball: file:projects/arm-analysisservices.tgz} name: '@rush-temp/arm-analysisservices' version: 0.0.0 dependencies: @@ -11254,7 +11254,7 @@ packages: dev: false file:projects/arm-apicenter.tgz: - resolution: {integrity: sha512-caqHKV/A9aCelY5zUbNmYepxDH+eb/2g5mp7LgjLMSdIZUVgPV+hmg/METzpZ4S9Moup79vpjehjKAfm81sndg==, tarball: file:projects/arm-apicenter.tgz} + resolution: {integrity: sha512-uPE98WZ1lbsANbSaNM8pZeINf0kHRJsEQBurLQD/2jTsyBdc6FHi9urtmrdw3zSSlF3zEhmr9d4wn1lMo9qj1g==, tarball: file:projects/arm-apicenter.tgz} name: '@rush-temp/arm-apicenter' version: 0.0.0 dependencies: @@ -11276,7 +11276,7 @@ packages: dev: false file:projects/arm-apimanagement.tgz: - resolution: {integrity: sha512-kgGy7E99BY0Lcs1gjFjg1g4t81sXadIX7+5nWN157j5nt83rZlMFMLoi078vWTL86O33dFtmekiwDIZ2sg82tQ==, tarball: file:projects/arm-apimanagement.tgz} + resolution: {integrity: sha512-aUIPHJpIBNiMGThDS8aCvNTjNUwjoZbmrzEs/QKGMaKWzJ4L9hEgqNUryoTGYy1+R9EiSktarTfYbRTXsMRE4w==, tarball: file:projects/arm-apimanagement.tgz} name: '@rush-temp/arm-apimanagement' version: 0.0.0 dependencies: @@ -11302,7 +11302,7 @@ packages: dev: false file:projects/arm-appcomplianceautomation.tgz: - resolution: {integrity: sha512-w2oxyX2Hf8vfA4+GEqWR63XPOuLmLCEi8H6ZU90ygeIDMNme1NpzFavsPCDqz0xBh5UsnfZ495fWeEGoU0RmCw==, tarball: file:projects/arm-appcomplianceautomation.tgz} + resolution: {integrity: sha512-5TFTbwQFh/B3QzO8jW2l5zbfVwR70VsYuyfcohJj7Cx5Im2vm2WLj9pMuHmim4+ZtAiII0lIcspxQocvgPUqIw==, tarball: file:projects/arm-appcomplianceautomation.tgz} name: '@rush-temp/arm-appcomplianceautomation' version: 0.0.0 dependencies: @@ -11327,7 +11327,7 @@ packages: dev: false file:projects/arm-appconfiguration.tgz: - resolution: {integrity: sha512-CY+pkcUCRWO0qVpKS63VsGcFdzchT3Rkc4rKzZsxFg5w3iYIjVVDyAMGwamD6nvDh1LGdD/vQ/z+/PXbzIf5JQ==, tarball: file:projects/arm-appconfiguration.tgz} + resolution: {integrity: sha512-Wu1H7NbbtI70j5ikJGv/ELPxahIPDFCZe9h45kIw7TNvPW99afTtjkbdT+15qQrolX97JrGUBBROSvyDUbkysA==, tarball: file:projects/arm-appconfiguration.tgz} name: '@rush-temp/arm-appconfiguration' version: 0.0.0 dependencies: @@ -11353,7 +11353,7 @@ packages: dev: false file:projects/arm-appcontainers.tgz: - resolution: {integrity: sha512-fbQepRLxW+cZvlKkb+spCDy/rQvEYis2VCEG2UFSuDiUqxQB91L0EBqcaNxta9U4RPKadSAq21gHJ2um/SUC6Q==, tarball: file:projects/arm-appcontainers.tgz} + resolution: {integrity: sha512-iQQADbx5dX3OQ0zPpD1V7xmyDB6OS+6N869PbUnWcke3n+p0DGxrLJdg7B6h9taQzbLbVlKHzU3c5k9jxUsXhw==, tarball: file:projects/arm-appcontainers.tgz} name: '@rush-temp/arm-appcontainers' version: 0.0.0 dependencies: @@ -11379,7 +11379,7 @@ packages: dev: false file:projects/arm-appinsights.tgz: - resolution: {integrity: sha512-I1VjeZb+2lHZz+zxkGmupseEMQNuwBmBbbZW1jvT29X3Yc/iK9pp5eKxnrT34p7DA2sukJdyFwA6NFG+foX6yQ==, tarball: file:projects/arm-appinsights.tgz} + resolution: {integrity: sha512-e0Fia47IguVWf8oc9IfgjfJD1/N4pnTKi2mwoqLp1p75W7fOJa/snu13FMb0TKwCOko7R+rSp9rehMogRmx/Aw==, tarball: file:projects/arm-appinsights.tgz} name: '@rush-temp/arm-appinsights' version: 0.0.0 dependencies: @@ -11403,7 +11403,7 @@ packages: dev: false file:projects/arm-appplatform.tgz: - resolution: {integrity: sha512-+4iYY6oltA/wBq6LpyNyCw8zs1szvmrNOQJ1tBZ88thR3lS9XDxpOsbind8Irym43odq7hRAJxjV7ikUSsCUmA==, tarball: file:projects/arm-appplatform.tgz} + resolution: {integrity: sha512-Yi+mt51sh8fmOKAR5sKV2YuuvmKkx46Rm/+C1MYcc5K8G/vgMc1ot2RxqjQxcmqCYXKrKU6QIid9dDMbQm8iFA==, tarball: file:projects/arm-appplatform.tgz} name: '@rush-temp/arm-appplatform' version: 0.0.0 dependencies: @@ -11429,7 +11429,7 @@ packages: dev: false file:projects/arm-appservice-1.tgz: - resolution: {integrity: sha512-ypnAR76w61ycvSU38TCosjeP0Z0D1X+sde3Y0zXEl6hXa7B488yYpcNlGRrLbRwdyzrObeYKtkeTahH6c9SrLg==, tarball: file:projects/arm-appservice-1.tgz} + resolution: {integrity: sha512-QM0eAzM1MGgyzH1jJaR6jAivRq069YLJ1V2Q6Ky8ela1KGcBUDGmoCIvdMg5Mio387ZZyDU4MW0UElpRm7zD6Q==, tarball: file:projects/arm-appservice-1.tgz} name: '@rush-temp/arm-appservice-1' version: 0.0.0 dependencies: @@ -11457,7 +11457,7 @@ packages: dev: false file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-Exc1f3e+qRGJKVap/k5GFrNh0PU/71NPniibYJa8Op7KqZffzv3qAQhmSerAUjp0ldNbNoLPBs5wfbTs1gDnEA==, tarball: file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-ogoH9hCA/EMjkTbUY2gNcovgNKWqqOts1O5vBkIu+yOUAJrQLS7HdiqRqY7AHCqpfDMIGpSIfSjp4qTNGNDcCQ==, tarball: file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-appservice-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -11483,7 +11483,7 @@ packages: dev: false file:projects/arm-appservice.tgz: - resolution: {integrity: sha512-bfZ3dAYfRR/kmykJMQJCS/WIV/fS6mOPwlxEW35ANVpPTuh/xZVFsvLepqmAmgioMGlB6yYDhMJ0E0ubm/Wjrg==, tarball: file:projects/arm-appservice.tgz} + resolution: {integrity: sha512-0VHt5pCLjHCJjOqaY1sWss33BUJ9fQu1iyJbDaBXZIMm/ik0ahjC3TavfkQVdwZ0sODu/KwWbCXsPLGUjc1AfQ==, tarball: file:projects/arm-appservice.tgz} name: '@rush-temp/arm-appservice' version: 0.0.0 dependencies: @@ -11526,7 +11526,7 @@ packages: dev: false file:projects/arm-attestation.tgz: - resolution: {integrity: sha512-xF7S5/rzpoPkORxGbNtW6PRyhl+P3+pOgau6ZiZHpNBpc0vv0O+kzJYsEkOJEtN3TSbRA6A86dW84ue25LDvtw==, tarball: file:projects/arm-attestation.tgz} + resolution: {integrity: sha512-U9J5NyO7hKtGy5gsHO3S3U/I0RlM12DuFiI1R4347i9/dv1fgkFEa6c70rGv/v6ACq0OtDVVWE+wEq9EAqkqew==, tarball: file:projects/arm-attestation.tgz} name: '@rush-temp/arm-attestation' version: 0.0.0 dependencies: @@ -11550,7 +11550,7 @@ packages: dev: false file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-puBhMSrcm0X8sRR0gy+YcKgnkBLzIGV77lxLIhO9gh4LvcNPBnrDwT7EXZ4Fq3uUoN0S06mjpd/sjlRF8K7w6A==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-L+uwHhhrKpiwDqmIfJSIMXZwsq9qS9SoTy7dxccWOPY0OXXBweChdXi13ht6DH5N4nVAXVgD8wjU8mpkPziovw==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-authorization-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -11575,7 +11575,7 @@ packages: dev: false file:projects/arm-authorization.tgz: - resolution: {integrity: sha512-+bSDrUetyscsdS2aLzRmcIoGJUngkHeBLJka4qq5fw/8FEJ6OHV+vEjqbZembR7KJED+I5no+MDQNovoRneUIg==, tarball: file:projects/arm-authorization.tgz} + resolution: {integrity: sha512-RnYDRHxhRymU+IMz1Bzc5izYVH4rnuPx3QyKrYgHDedBKpnWB+d5hkpFnLFNfftzLJ1Gv0minJDolgeEDiMQaw==, tarball: file:projects/arm-authorization.tgz} name: '@rush-temp/arm-authorization' version: 0.0.0 dependencies: @@ -11601,7 +11601,7 @@ packages: dev: false file:projects/arm-automanage.tgz: - resolution: {integrity: sha512-5R7UMy2Vdh7lYqjG8oO3vu1D6XMEG191Pj36kp3NIfB3+n6NHcw4w0aRooWKosCU5X2XKV/gv5i8khftV+PvDg==, tarball: file:projects/arm-automanage.tgz} + resolution: {integrity: sha512-c3YpdyX1GHuu5q+MQlATvPpoJn+tDX4jYg/6w6px84whTHYdBnRCNaGhLsuNHxh86bquY5yK4pugbs8n2yTBig==, tarball: file:projects/arm-automanage.tgz} name: '@rush-temp/arm-automanage' version: 0.0.0 dependencies: @@ -11626,7 +11626,7 @@ packages: dev: false file:projects/arm-automation.tgz: - resolution: {integrity: sha512-Qha4RiuR+mNB+XE160qw3XzQLIfG4kObwqRow38EVGhSx+fVuuZHX7yPcIshdwaaXCjyfkXk6Uo83SFmWF1IGQ==, tarball: file:projects/arm-automation.tgz} + resolution: {integrity: sha512-0YgnX5swDT/kxjM3PNabEfuOeXIuXyn5DTB1kWJg/McyOS6JplncUnr8Gg8kSDo298N8L9GDr68sKOXQv6Y1qg==, tarball: file:projects/arm-automation.tgz} name: '@rush-temp/arm-automation' version: 0.0.0 dependencies: @@ -11652,7 +11652,7 @@ packages: dev: false file:projects/arm-avs.tgz: - resolution: {integrity: sha512-oxVHjSFLGq09KDJlfgiO/V51IvSgdM+rDquyhPFE+dar34GVM0zexBmyheGDIdmjkDNamYr+joHP/DwVxNIhmw==, tarball: file:projects/arm-avs.tgz} + resolution: {integrity: sha512-/dUFyYYCHILzn0NTeu7QgZl9LxwM1dHXN+j8vOwfZ6isLQlN0b/pLv0PE7h5IgCgNpT9wYaezVrjqnUrvcX/9Q==, tarball: file:projects/arm-avs.tgz} name: '@rush-temp/arm-avs' version: 0.0.0 dependencies: @@ -11678,7 +11678,7 @@ packages: dev: false file:projects/arm-azureadexternalidentities.tgz: - resolution: {integrity: sha512-M4JdJKzC2ex5JOjZ1ieCX4vuL8oVSkJtfZMkJyAQBVMv2g7+uTF4283+oiVm59Nl7XsdbdKda6elZ9Kh/vnNxg==, tarball: file:projects/arm-azureadexternalidentities.tgz} + resolution: {integrity: sha512-8BVvpPhXSLq1eOKRGvDEfWmHeoOoSP+RV74kAWPZ7qsiJjh2EHqoMJ+FoCvj+G9zlJIDGeGo7OjM5qwyWmJOhA==, tarball: file:projects/arm-azureadexternalidentities.tgz} name: '@rush-temp/arm-azureadexternalidentities' version: 0.0.0 dependencies: @@ -11703,7 +11703,7 @@ packages: dev: false file:projects/arm-azurestack.tgz: - resolution: {integrity: sha512-Uuxxph1zJzUOhlhhOiY1M7Jk/ZxWm5Xdd/0V5IMoIWdXx9eauNXSWAsq2A0wh9jQtJK6nDGMsuQ5wzl8JkMNJQ==, tarball: file:projects/arm-azurestack.tgz} + resolution: {integrity: sha512-6pgruPO4BB7wTq09510NaAUKNG83O47FEYf+oatOZ1gZsKbU3cq8OZC2os1D7URwULHvweMOse8hNmdmhj/A9w==, tarball: file:projects/arm-azurestack.tgz} name: '@rush-temp/arm-azurestack' version: 0.0.0 dependencies: @@ -11727,7 +11727,7 @@ packages: dev: false file:projects/arm-azurestackhci.tgz: - resolution: {integrity: sha512-KF1F+rJo94A1aEq90oMQAcWBLmH2lDcHeLn/NXc1tc4ptYr2J7MAtzQXC5SYEtYS2Jtqp1GkAcRs/6N1xBHmwA==, tarball: file:projects/arm-azurestackhci.tgz} + resolution: {integrity: sha512-ZziaYVjY0uSP0zh+3F3rHPAj+iZ+EjAepiEB00DE5LRbYLPxWDuVeW6fwIH59oVuqaSzsRl+NI97gV2EwbaUrg==, tarball: file:projects/arm-azurestackhci.tgz} name: '@rush-temp/arm-azurestackhci' version: 0.0.0 dependencies: @@ -11753,7 +11753,7 @@ packages: dev: false file:projects/arm-baremetalinfrastructure.tgz: - resolution: {integrity: sha512-lDve1hS1zgT03xvKZ4mFZm/PVHEKkiaO8dwiGiMMxFllFPssvFvXMlNg1pAzMEwFjgwrgJGYaIddelGJpnEEyg==, tarball: file:projects/arm-baremetalinfrastructure.tgz} + resolution: {integrity: sha512-Fx0pFVexB7eCG8BkD6jQ5AD9p/oM3z3Eu36r0XTF2Cgy3N+XWjpPS3hHOM845s/DMX26Qw7fqaZ4BSKEHvjjZg==, tarball: file:projects/arm-baremetalinfrastructure.tgz} name: '@rush-temp/arm-baremetalinfrastructure' version: 0.0.0 dependencies: @@ -11781,7 +11781,7 @@ packages: dev: false file:projects/arm-batch.tgz: - resolution: {integrity: sha512-SUAHj3K10zWNihSP2gq1zuZsG1O5mszh70LirxUsBYDfroa4PChu1l0mBcpori3SM7CDQrO4VkkJf2Ly7BeRmQ==, tarball: file:projects/arm-batch.tgz} + resolution: {integrity: sha512-WwfMyLbMYjlTbt3SszaoDDbNJ3QyEqH+ZiRpFIMLxhxeRLHhqueLpvnk/4nTsyN7/w+I+idvmXHg/cmyYqDQCA==, tarball: file:projects/arm-batch.tgz} name: '@rush-temp/arm-batch' version: 0.0.0 dependencies: @@ -11809,7 +11809,7 @@ packages: dev: false file:projects/arm-billing.tgz: - resolution: {integrity: sha512-jr1eFK12CCrzwPnKCbfiNOu/POrTQhu+7EK+N+70ZllihV6GmaL5wPWvXCxGcOBsN3iJY9yAFfYwMrh6XpVZJw==, tarball: file:projects/arm-billing.tgz} + resolution: {integrity: sha512-gk3uQ43PpCxZzgF8b8jaKYouu0x76otqu9WDK7LO2D0T2oRK+wUocyvLlzTq83F9v8Qtexdz5lewGnOL4+cmmQ==, tarball: file:projects/arm-billing.tgz} name: '@rush-temp/arm-billing' version: 0.0.0 dependencies: @@ -11834,7 +11834,7 @@ packages: dev: false file:projects/arm-billingbenefits.tgz: - resolution: {integrity: sha512-wlH8KtMRAyYZ/x7u2yVCSlx1nx2VX/peZsusYwh+dkreQ1JP+8nzo4eFBrLiR25P083BbLuZh//S7bqskYub8g==, tarball: file:projects/arm-billingbenefits.tgz} + resolution: {integrity: sha512-VVgauPIQ0zLgHN1QfdTX3M1IwOfvdV5ypeOlmjFd04fTI8JWcBxB8t2k06/93nKkClfYEfAV/WfFmjcrUAbwuQ==, tarball: file:projects/arm-billingbenefits.tgz} name: '@rush-temp/arm-billingbenefits' version: 0.0.0 dependencies: @@ -11859,7 +11859,7 @@ packages: dev: false file:projects/arm-botservice.tgz: - resolution: {integrity: sha512-8kYXx0ZtmByj0m8oYc2R+SG0AO/MDELf7V///biZRLV3vtW5X7xqe01TCHw2NLxpJlyJ/1HZ0xi8pWdCCgoE2A==, tarball: file:projects/arm-botservice.tgz} + resolution: {integrity: sha512-K01ZXoujX87+N4bXpRDz5sAUTxc2DU4lrjQ5pU8pYVk50DA78Z9S9oleg/SsIkPuBSPnXLgN5sHBpb9mKpt5Vg==, tarball: file:projects/arm-botservice.tgz} name: '@rush-temp/arm-botservice' version: 0.0.0 dependencies: @@ -11885,7 +11885,7 @@ packages: dev: false file:projects/arm-cdn.tgz: - resolution: {integrity: sha512-2Z/TdVr3/byWxAJMufoRrBu4pIvH4jaNYDZofdwDc21KtFebNoNuvWhpYO/iHr9CL0HHoEJ86BwtaZKenf9FYg==, tarball: file:projects/arm-cdn.tgz} + resolution: {integrity: sha512-Jy7XgMQvmnU3x0YSwFheNz1B4Nx2rCEiIqKvt/s23x9kXzlgibFweU4qIADNv26I3qQ6i4hDiymi/Lc9nA5QEQ==, tarball: file:projects/arm-cdn.tgz} name: '@rush-temp/arm-cdn' version: 0.0.0 dependencies: @@ -11911,7 +11911,7 @@ packages: dev: false file:projects/arm-changeanalysis.tgz: - resolution: {integrity: sha512-nZJ0HeewCIyJ/FbnPEUrOLNtw3PMWkH7pxSvQOfls0ZusBMrqkCZkSR2cjU05kbXhROVHg7zTop0v/HDGmNu/g==, tarball: file:projects/arm-changeanalysis.tgz} + resolution: {integrity: sha512-jRfa+sr+aDplyHyzn1XZcDjLyZAkJx1FHfO83ya1hsR2ZJEORi8tJoeFZ4FuREcsZxPB8NviJw7YceNjn12LJA==, tarball: file:projects/arm-changeanalysis.tgz} name: '@rush-temp/arm-changeanalysis' version: 0.0.0 dependencies: @@ -11935,7 +11935,7 @@ packages: dev: false file:projects/arm-changes.tgz: - resolution: {integrity: sha512-QwndDtZyr6sicbvuSKhDYHi264WCM+yHQReMi2aUqCQlI5qN+E5+DuZZYg+q82G8R6OPJxxwi5fwM8Wv+R/F6Q==, tarball: file:projects/arm-changes.tgz} + resolution: {integrity: sha512-U+53YLqBl3DmErXW9glVzD+hP6pA58tpTcHqN13AL6aru5tQawBPW/utqB/usJIKGcBkZVVkVScxSU+YBSVNow==, tarball: file:projects/arm-changes.tgz} name: '@rush-temp/arm-changes' version: 0.0.0 dependencies: @@ -11959,7 +11959,7 @@ packages: dev: false file:projects/arm-chaos.tgz: - resolution: {integrity: sha512-ehlIc9sdRaoNxK6So91Zskn5fYtI46qr8Rib2AAVpXQGWqfVDcG/lJTwZnzwS4VX+gajZEm+y8MPH9kXms+Xsg==, tarball: file:projects/arm-chaos.tgz} + resolution: {integrity: sha512-2eIbg+mR0LzTsnJ/q6/rBdH6JJcNcPYXbYCt5aJ/7ZnUmNn7G4rZdLy7CVIiYgrH5wCpZ9mr4UL9hH2XzIuSwA==, tarball: file:projects/arm-chaos.tgz} name: '@rush-temp/arm-chaos' version: 0.0.0 dependencies: @@ -11988,7 +11988,7 @@ packages: dev: false file:projects/arm-cognitiveservices.tgz: - resolution: {integrity: sha512-mj+imqVs180x4PxJpue4A2YcAKjxf4AXbtE58Cb1HfdRBcL0Tl6NoD9inQ6PUtT0uutosdEA/HgT2nyS6Q2scw==, tarball: file:projects/arm-cognitiveservices.tgz} + resolution: {integrity: sha512-rkqrvp953U81qYhguj7pXZ2k+zAYjAifWOUeglGr9hvb96YCbtmv4k/WZwl9M/QmV2qjVEUrPZimd0vaRqtOgg==, tarball: file:projects/arm-cognitiveservices.tgz} name: '@rush-temp/arm-cognitiveservices' version: 0.0.0 dependencies: @@ -12014,7 +12014,7 @@ packages: dev: false file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-Uy6tdZ+veC8iufCM73jYyvNxMZ4JKgz7+BshDQEXRkuDgtHBqAW50RtaMEJUZxl6G1H0GIFoL8tyr5dlL72xhA==, tarball: file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-seNIv9GwC05l51THNChasmlwGyHtDHBSQi/2nDJ1oHQdZvdEENff+mrTL5AS6AkqSPWhBvRNb5nBm/qoSaL5GQ==, tarball: file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-commerce-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -12039,7 +12039,7 @@ packages: dev: false file:projects/arm-commerce.tgz: - resolution: {integrity: sha512-xSJ9iUa7E9TEm4ycKRn/Ed+JyMYuWRYMUns/gs1jxHYZ2b8MKtELJAJ2I4X1fpEjXgD64Vgw8BaDMnOHiW/J8A==, tarball: file:projects/arm-commerce.tgz} + resolution: {integrity: sha512-7i8r7IU8NL7XAqtudSkQTfBgRxwEYtPDkyVWBP19DuH+m8YLU8WvsUl2WmA6cm5jMK0qK42fvgiTHoN+ecbWgw==, tarball: file:projects/arm-commerce.tgz} name: '@rush-temp/arm-commerce' version: 0.0.0 dependencies: @@ -12063,7 +12063,7 @@ packages: dev: false file:projects/arm-commitmentplans.tgz: - resolution: {integrity: sha512-L+dtsJierPzzipS7DXxzq+N4uYx9/Gx8IZM5nUyCLyt4r1fJScrTlaPbzLBZiml6uVX+SCLttfv+RvegbC2+vA==, tarball: file:projects/arm-commitmentplans.tgz} + resolution: {integrity: sha512-DclJyNpGXpGzT1e/lNIcwf1FU/4k+vANyEEUMzJQxfF2cy17IOXS8qo1h2RUQRbLDm0UZIAd/6xjOG3pwpCJ3Q==, tarball: file:projects/arm-commitmentplans.tgz} name: '@rush-temp/arm-commitmentplans' version: 0.0.0 dependencies: @@ -12087,7 +12087,7 @@ packages: dev: false file:projects/arm-communication.tgz: - resolution: {integrity: sha512-qpnLKa0ahVjvR8OskWwVfIEnRp6Va3ss9aG9YDDT7R2k9oVJ2GnRaZcUr8ZMtzbsdFR4Cvarbubo6p2xM3YFSQ==, tarball: file:projects/arm-communication.tgz} + resolution: {integrity: sha512-2CEScONuF/J6/8ChwVXfxYJ4VIFJS7nfH0FugV6uWITsgiRhSczCs1K+ub+LLEDZ+qX7agyVn/t8Hh/PJXCgyw==, tarball: file:projects/arm-communication.tgz} name: '@rush-temp/arm-communication' version: 0.0.0 dependencies: @@ -12115,7 +12115,7 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-LVpmbaNllJkbJ0qqkoNNuYNYdfAL/JdZ5yTpS2HoPvHnOwj5wYOQMJ2cQqn93fzePqdsRp1FZWGtMwLShsBMhA==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-j1XLP5MJLnHOi7fAMTC+Zg9uv0ufUVHZtOY5wkeGjk4CP8aX3v/GNO80H323K65X/95UX+z3KU7cN7aVfjFOKQ==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: @@ -12144,7 +12144,7 @@ packages: dev: false file:projects/arm-compute-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-bX5ARk5vGBofxWd7i4VJKqA0/5T7GpkQkFNdNzwX3dcsZuO/WE3gjUr4O7Pn6yuuk2OCJ3HTveGtRv9LdI60wg==, tarball: file:projects/arm-compute-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-iqg3PaAz2MIFcKCgmXb0sE60R6Z01cdFgjv3bagqa1bznQepuKqIJ+YZtoz2RHG3xDB2NgTrds3L5yUhGjROHw==, tarball: file:projects/arm-compute-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-compute-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -12170,7 +12170,7 @@ packages: dev: false file:projects/arm-compute.tgz: - resolution: {integrity: sha512-uJw/Bt35aXPbhN6J9yZ5lLOUEwD4G/cd8EVOfpl8NnhuIzUDOUVQoPn1qEXhsksdwjlS0Fi46enVIJu5mxdbFA==, tarball: file:projects/arm-compute.tgz} + resolution: {integrity: sha512-KMuS3YDxJMitFHV4wVIM57YLTHo3X+Pnq8ACDW+xeI1S8rvgyQsDWpGl7EL5NIFhGUSTNZNKjhXvGxzJEp5Jew==, tarball: file:projects/arm-compute.tgz} name: '@rush-temp/arm-compute' version: 0.0.0 dependencies: @@ -12214,7 +12214,7 @@ packages: dev: false file:projects/arm-confidentialledger.tgz: - resolution: {integrity: sha512-EF39ala1qmHZjcsDVMbFz0Y5STJHyLp6CKsbSdgpEnGNU0q7vTl5beXhCEypdmZUUlCuyM2kGwnbbcAsqDSqtw==, tarball: file:projects/arm-confidentialledger.tgz} + resolution: {integrity: sha512-wzomTL/O4Kz8fd96BElXwXjr/Uwk6JsDdWzp0qx+1YrCCv/V96o8pdSd5GJtpN6t/JKLL6DpX9FYghKrLGvKdw==, tarball: file:projects/arm-confidentialledger.tgz} name: '@rush-temp/arm-confidentialledger' version: 0.0.0 dependencies: @@ -12240,7 +12240,7 @@ packages: dev: false file:projects/arm-confluent.tgz: - resolution: {integrity: sha512-8vx+yVVJDv5kUYmFBGQViuthnkchSVPukYkSvpYniR469kNhelDNsREzjNPgTTbvws1JTM8IyowLckOCrVz1bQ==, tarball: file:projects/arm-confluent.tgz} + resolution: {integrity: sha512-BNkHTTy43RrXyfVbGyoM0H45drzD7+eL19mEfXO3SJt12QPbXzt3c8ZcGEKrbV0Bgi5upRet1TottyjdZoJomA==, tarball: file:projects/arm-confluent.tgz} name: '@rush-temp/arm-confluent' version: 0.0.0 dependencies: @@ -12268,7 +12268,7 @@ packages: dev: false file:projects/arm-connectedvmware.tgz: - resolution: {integrity: sha512-QKb6i4+Ga6q+OMIhOZH7EX9qRnsPMiA9CDcP6uFxQoY0CJCjUhswour+IienVJpHJYjfDtc0sGREDN3GzbhSJA==, tarball: file:projects/arm-connectedvmware.tgz} + resolution: {integrity: sha512-eomzHeOsUKHVi0sKH2vQmHxnOjNVvus3vhAaic5QEZchAd+qti5tPx+tte0Ed6DVsAMdHq1sYSBJmBR+sR09yA==, tarball: file:projects/arm-connectedvmware.tgz} name: '@rush-temp/arm-connectedvmware' version: 0.0.0 dependencies: @@ -12294,7 +12294,7 @@ packages: dev: false file:projects/arm-consumption.tgz: - resolution: {integrity: sha512-5CrpppWgiGxr4X3Z7mlwVWB0n+ZwIf4VCaFjSwDE+TtR34x98CdLXTb9PttneJHQkIOe4Eaee06SaENe7mshmw==, tarball: file:projects/arm-consumption.tgz} + resolution: {integrity: sha512-/nHNUUJxZj1+kZt3crFi/w/38VmTwG/bbqQuVzEcEodwfxTi9qFEb8c9y+bV4gPsjOjc5R+yiacMkdsQ+I39jQ==, tarball: file:projects/arm-consumption.tgz} name: '@rush-temp/arm-consumption' version: 0.0.0 dependencies: @@ -12319,7 +12319,7 @@ packages: dev: false file:projects/arm-containerinstance.tgz: - resolution: {integrity: sha512-9gptIVcTv+mbNM3BhG5qZwRYTaXtfdlGWSYvbu52rdtW/4HefDUmsYb79bnJDDPyw7XThMes5K8h2AZa2e5a2w==, tarball: file:projects/arm-containerinstance.tgz} + resolution: {integrity: sha512-TGIAprWwN+lgmBywTB7FRrM6hVqHJS56QFqqcYZ5vz53XN8aS879tN9PyghbRn+ha6mv/MQzw8qTeMUMG8uqVA==, tarball: file:projects/arm-containerinstance.tgz} name: '@rush-temp/arm-containerinstance' version: 0.0.0 dependencies: @@ -12345,7 +12345,7 @@ packages: dev: false file:projects/arm-containerregistry.tgz: - resolution: {integrity: sha512-xTeLwEptDFhPK49RB9u6b0PE4GtcAi8fyh0qaT8MWyKqg8CSTdvz1A4RqjTwBSc3U5UgTQEqKjGpWDebXSWDaw==, tarball: file:projects/arm-containerregistry.tgz} + resolution: {integrity: sha512-APQ99oxZrKpvqtcupjHwsUStay81pkof5FyTzXNcJKzzrlSShH7hCU4yIbbh6Yc87DpgZsoZ4yrEkCfNR6E3SA==, tarball: file:projects/arm-containerregistry.tgz} name: '@rush-temp/arm-containerregistry' version: 0.0.0 dependencies: @@ -12373,7 +12373,7 @@ packages: dev: false file:projects/arm-containerservice-1.tgz: - resolution: {integrity: sha512-Sv0EImJukikF4jOWAlL75rM9d72MaOzX9T/uV90F2EVSzDinJx3xzG4PWSNqbFPOQP6nc4LTZzv++CtStdkPiA==, tarball: file:projects/arm-containerservice-1.tgz} + resolution: {integrity: sha512-PK4WTaWAbl3JFM+bElXUTBNE3/WlcueTSdhL0jtQQyfYtOZRiawSKk6rR5NXN0EMQS7pNZ/rCVooB0Z9Q21N+g==, tarball: file:projects/arm-containerservice-1.tgz} name: '@rush-temp/arm-containerservice-1' version: 0.0.0 dependencies: @@ -12401,7 +12401,7 @@ packages: dev: false file:projects/arm-containerservice.tgz: - resolution: {integrity: sha512-VbHKsudb8lDYK4NpgJwd9VfvXE2Jo+GWehJIsO7EfxuCfSLXLlmbFBZtk2gbDqMqOzva+/EFITEdJAqB9IJM6A==, tarball: file:projects/arm-containerservice.tgz} + resolution: {integrity: sha512-yiyo500XiBkoutlsBguH/68ZKzLX1SdltUH/YUz2/Ts22nEKK6oFwsveYTHxf6axqT3sNk/4NI3KVklGuDSmQQ==, tarball: file:projects/arm-containerservice.tgz} name: '@rush-temp/arm-containerservice' version: 0.0.0 dependencies: @@ -12444,7 +12444,7 @@ packages: dev: false file:projects/arm-containerservicefleet.tgz: - resolution: {integrity: sha512-MyFnPMzKfNFmGKrdXar+xui/paQ4rWIV4zOZGb4rDzSOx2hwdVEcp+4EOz4eMeSVgC8JDT9uVMFL67juIjT70g==, tarball: file:projects/arm-containerservicefleet.tgz} + resolution: {integrity: sha512-mriv1VgBYTEF/mKdx+JN1Lz+Cx9fEl2eal3MS0Tiql5MXTpV4Wk4okxyCPrfy5xKpcBhpN++kjOMrBwhI12D7Q==, tarball: file:projects/arm-containerservicefleet.tgz} name: '@rush-temp/arm-containerservicefleet' version: 0.0.0 dependencies: @@ -12472,7 +12472,7 @@ packages: dev: false file:projects/arm-cosmosdb.tgz: - resolution: {integrity: sha512-6THEEROj1la0EmcBpl/1d64G1+pGaF03ta+FXtxBVM4UVIRfaM6LdEQmlgvd8wqA4q6oxeRlCHp7zCWGownInw==, tarball: file:projects/arm-cosmosdb.tgz} + resolution: {integrity: sha512-CHd3UEfBCFTPPXwv3FZlLPJEWAwn/qTY/9c6Me2FMGmRgoz2hj6AIhJmINNb+NC8FsirRqXbwamO0ZVUst1Zng==, tarball: file:projects/arm-cosmosdb.tgz} name: '@rush-temp/arm-cosmosdb' version: 0.0.0 dependencies: @@ -12500,7 +12500,7 @@ packages: dev: false file:projects/arm-cosmosdbforpostgresql.tgz: - resolution: {integrity: sha512-2oXGnxhGSZ3OmYh1FmtTH+YZidE25SJoZrh4+wNPcN+eChkuB62kV+QZgzzltpi7gQZFVyVhV1lZvGqfmeuAiQ==, tarball: file:projects/arm-cosmosdbforpostgresql.tgz} + resolution: {integrity: sha512-fUThGq9gguK3UaQusZPGF2LH2G1KXq9QThW9nGGVr8X6Af9OKUZiE45J2wXczc79QR2L4dEloWjHNPsEmW+58g==, tarball: file:projects/arm-cosmosdbforpostgresql.tgz} name: '@rush-temp/arm-cosmosdbforpostgresql' version: 0.0.0 dependencies: @@ -12526,7 +12526,7 @@ packages: dev: false file:projects/arm-costmanagement.tgz: - resolution: {integrity: sha512-KAawMpZ7Liack1pCUyy3VqtkKL2DFqT+iBDW5d6DYo6CNQzs9zH6SKDOow7QkdKD/+ROUm0dtojTaWX7YF5LpA==, tarball: file:projects/arm-costmanagement.tgz} + resolution: {integrity: sha512-1+ve+PypoX558Bh09oyoAetCqUICKvsnjekIeVKxOe5bEYZxTLYy024p3jWKSSGngtz1k5UgPR59iNepIVQIEQ==, tarball: file:projects/arm-costmanagement.tgz} name: '@rush-temp/arm-costmanagement' version: 0.0.0 dependencies: @@ -12553,7 +12553,7 @@ packages: dev: false file:projects/arm-customerinsights.tgz: - resolution: {integrity: sha512-mwWpPB1RKp+wK3RHPLMf5hQXj72lXqaAcnXtH14/BjradmryZS0mPYcA7Zi/UCdX95214ph0op+Q9P5sBdmgig==, tarball: file:projects/arm-customerinsights.tgz} + resolution: {integrity: sha512-wh0IHZacypUFb+4ygO9cjODt/mVkjVftGL9gFwGPjV/rEmFWypz1yj6SukSzm7HmX7CZ+vo+f0tpsSOkNNwrLg==, tarball: file:projects/arm-customerinsights.tgz} name: '@rush-temp/arm-customerinsights' version: 0.0.0 dependencies: @@ -12578,7 +12578,7 @@ packages: dev: false file:projects/arm-dashboard.tgz: - resolution: {integrity: sha512-h2co+rIJiLXXtsexDBuQs4kNlSKEGsxEH5e6/1+E01B/zGruXenQ0ts5pCR+rIkGcGBVjPwe+zUIaklWPNPv6g==, tarball: file:projects/arm-dashboard.tgz} + resolution: {integrity: sha512-ILe04RhZ0r1nMlmuoqPQElPisReIKyjYj5cXq98AmRUyfnxRiQ9PzIsx9Bojj0HgwD2ELfy2pGFFEnkwWfZ9ew==, tarball: file:projects/arm-dashboard.tgz} name: '@rush-temp/arm-dashboard' version: 0.0.0 dependencies: @@ -12606,7 +12606,7 @@ packages: dev: false file:projects/arm-databox.tgz: - resolution: {integrity: sha512-Zqejk90YEJLCu7v+UyH9rauIiZVbpXBWO9RdY8pqLfq9LYOFTrG1oGMYIphE03jmIhQV0yyaDdatCHu4hpwIuQ==, tarball: file:projects/arm-databox.tgz} + resolution: {integrity: sha512-IHoKeHCSfMjZNHQjsqxJpAdts6NBFhdW9fsegxLlyNj4OEAmSpOIecOo8dhwwnOFW2zomvLEwnArMZIsIR5WhA==, tarball: file:projects/arm-databox.tgz} name: '@rush-temp/arm-databox' version: 0.0.0 dependencies: @@ -12632,7 +12632,7 @@ packages: dev: false file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-zXIXJXyohrH0FFbDY9GM9YEu2OsV/XjsW2FsgpJg3lJwir/WWn0BydklluqH9Icf934WckhWqePfcMtiFoHWDw==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-tehlRDzRnhEHgD1s80XeVt+5Kpg3iWjgzbv7C5YFYiiD+ReYcOXB0tRfwmhk1YYAP+cqAGjbQKIKllRWD2uxZQ==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-databoxedge-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -12658,7 +12658,7 @@ packages: dev: false file:projects/arm-databoxedge.tgz: - resolution: {integrity: sha512-QF6xUc59Kka4IW879apwJ0YDO4m2utDUagMst9RQm6V81Rg6WV1MDgkl3h0Epk+8ftkDY5y5ruDtaD4uCHPmww==, tarball: file:projects/arm-databoxedge.tgz} + resolution: {integrity: sha512-N4wxQsHm1DGyNdYNwppuODmd1pTFUA5eZ3oA8fe28362yxYlqA5j+lJgpC/ZdQd2/elZLtcdTjJfHvCKr90mYw==, tarball: file:projects/arm-databoxedge.tgz} name: '@rush-temp/arm-databoxedge' version: 0.0.0 dependencies: @@ -12683,7 +12683,7 @@ packages: dev: false file:projects/arm-databricks.tgz: - resolution: {integrity: sha512-G+qeIBUeQ2KVWJ//LAwUuaJYdVnXu7m3usLIVRKcwY7WGfByZSwQUzfRjvautDGtiCHXMrQ3XfRfYM/agsYHZg==, tarball: file:projects/arm-databricks.tgz} + resolution: {integrity: sha512-Fo9UL7zLFRBnqQ8lge7HVw8/DfhDX7J0XUUHO0Um/RrkU1KfYrYEEKCdXXMGSQbOHp+mOIbYEEIoE/kbXrleog==, tarball: file:projects/arm-databricks.tgz} name: '@rush-temp/arm-databricks' version: 0.0.0 dependencies: @@ -12711,7 +12711,7 @@ packages: dev: false file:projects/arm-datacatalog.tgz: - resolution: {integrity: sha512-oWD6uRRY7+JXqInwEydTQJ2MKrS+8sipkpgLUtHSayDljg8ZKAyv+HAdR5ePdxK8KiUC8xizwClgySXk4/J/Dg==, tarball: file:projects/arm-datacatalog.tgz} + resolution: {integrity: sha512-0uVskZwadjGzLmR+Idedz0hC52tN5uwi3YLZ8iUGT5jr4ZsIY4QTtXYrMteqDm0wUX/3FbBmp0AIjQ2mRnUFRA==, tarball: file:projects/arm-datacatalog.tgz} name: '@rush-temp/arm-datacatalog' version: 0.0.0 dependencies: @@ -12736,7 +12736,7 @@ packages: dev: false file:projects/arm-datadog.tgz: - resolution: {integrity: sha512-dKt6FeXS3qM0HzonFpbgeOA93ySTBzgO2KTNN7R5n2UosIceLoSjjQ91/53mUVorfQKG/WSFJgUqmxk+uHx4+w==, tarball: file:projects/arm-datadog.tgz} + resolution: {integrity: sha512-ww+1SoQB0kqJumNmOiAGPVgTyWeJUwCHZHqnXfHnlpDhE/aM+xugBKJyr45L629n+d49zZ59J8VbW5KJnSUHyg==, tarball: file:projects/arm-datadog.tgz} name: '@rush-temp/arm-datadog' version: 0.0.0 dependencies: @@ -12764,7 +12764,7 @@ packages: dev: false file:projects/arm-datafactory.tgz: - resolution: {integrity: sha512-rNjEydaYK2ltiFfcZ2H4Q2nls6LnlGTpDRMBYicNjHLvlCpN3assh/hKjCP5ea/8qXKTylA+h6rDwzVv/8XaAQ==, tarball: file:projects/arm-datafactory.tgz} + resolution: {integrity: sha512-y3qXnWzxmyjdQqdm3bpnUK0hKm7WUzzFZvHw31Ieb7wAfP/p7a7pwmaPC/0fYuJy6hjJt9AHjXGuXpnOwBAMyw==, tarball: file:projects/arm-datafactory.tgz} name: '@rush-temp/arm-datafactory' version: 0.0.0 dependencies: @@ -12792,7 +12792,7 @@ packages: dev: false file:projects/arm-datalake-analytics.tgz: - resolution: {integrity: sha512-CgWzys9+xRUJsrZGIW0Z8/dWMowOTA6V/9dOxt9r+HaSLIohP1mrfdAB0DUmAd4TgzaN7O9JePcr28+sbE1i7A==, tarball: file:projects/arm-datalake-analytics.tgz} + resolution: {integrity: sha512-vo6Cbw+IHBeE5qX45N5abfWZYk4n5iAVng7CGWmQpKgwTh3Lz1WbpiC0mSIwpQUd3m3b+3xhETcRIKb/iO5HpA==, tarball: file:projects/arm-datalake-analytics.tgz} name: '@rush-temp/arm-datalake-analytics' version: 0.0.0 dependencies: @@ -12817,7 +12817,7 @@ packages: dev: false file:projects/arm-datamigration.tgz: - resolution: {integrity: sha512-TKBopFshHx7yYh5oha98eANl+RajSUNapfRHrSzMjXe5LoEnpYenFNXHk47r0ClfFT8SHzRU8zhCpUs8ESHzqg==, tarball: file:projects/arm-datamigration.tgz} + resolution: {integrity: sha512-y72HSgdeaJvw2nu6g5nyCOAnELKuyp71WoG7MyXFeMAZdH/Lb8i+L9mN/dgZ19KSx150ppvB3oNFaSollT2uAg==, tarball: file:projects/arm-datamigration.tgz} name: '@rush-temp/arm-datamigration' version: 0.0.0 dependencies: @@ -12842,7 +12842,7 @@ packages: dev: false file:projects/arm-dataprotection.tgz: - resolution: {integrity: sha512-YhgI6WEUkkP63pi7Lidlpd9jTNCredZUTKpgTxaeXdFjFHi8w5727haclZU2KP1MQw4w4YkhV8xys0atpZGOWw==, tarball: file:projects/arm-dataprotection.tgz} + resolution: {integrity: sha512-kignDmcYwtjGgI8iuPq+abxZXJS/x3aYNkw2N01HtagCKHyB7od/p3uzaF8rMhIMoLCrEst3UPCQlqbUem+vkA==, tarball: file:projects/arm-dataprotection.tgz} name: '@rush-temp/arm-dataprotection' version: 0.0.0 dependencies: @@ -12870,7 +12870,7 @@ packages: dev: false file:projects/arm-defendereasm.tgz: - resolution: {integrity: sha512-qKme07Mv+szFt8nSYXiAbDT1eksF8aoHIQsXqc5znczX5zOfD2GEifoiwaDzwdkqtF0w/AOyKEuCkYxmDe5Fmg==, tarball: file:projects/arm-defendereasm.tgz} + resolution: {integrity: sha512-KWLcL+0x1OoKwCSFDIaOZkkN1uaNJq8KjCE0xWJqnfwD/D7PQnhZeGeHe7XIK6M62aLxYWporhjgIoOLDWIi1Q==, tarball: file:projects/arm-defendereasm.tgz} name: '@rush-temp/arm-defendereasm' version: 0.0.0 dependencies: @@ -12896,7 +12896,7 @@ packages: dev: false file:projects/arm-deploymentmanager.tgz: - resolution: {integrity: sha512-dykBNr40d6L6M+ANYejef8arNOY5n1tEOjFw5X8/iPLzrIm3OsTa+S1ZIO99CJeVN2v1lPhF4uAbs6/dLZPZ2w==, tarball: file:projects/arm-deploymentmanager.tgz} + resolution: {integrity: sha512-XTLM/t7Sd4Yc2ydjuGauYo6wTxhJYnIHiRp3Tcopv6FhQldocUFltmUcgqI0YA1ukTCQr2vV17VFLUxvB7NRqQ==, tarball: file:projects/arm-deploymentmanager.tgz} name: '@rush-temp/arm-deploymentmanager' version: 0.0.0 dependencies: @@ -12921,7 +12921,7 @@ packages: dev: false file:projects/arm-desktopvirtualization.tgz: - resolution: {integrity: sha512-RK6sFSTJ9c35vxEVx+caxiD+hyfUBFuiaY3Q2/ePXwrbPkmNIncKjQrynmQgg7VTi/aUaXddAj0V6Q9VlOIy7Q==, tarball: file:projects/arm-desktopvirtualization.tgz} + resolution: {integrity: sha512-PCPedV/PuxGgESNuEKTPdRHDon5WHZknD/yPvCGIuDFraL8VXe+vgjABNurZzfpYjqPbDLYoS1ollsEk3jug4g==, tarball: file:projects/arm-desktopvirtualization.tgz} name: '@rush-temp/arm-desktopvirtualization' version: 0.0.0 dependencies: @@ -12946,7 +12946,7 @@ packages: dev: false file:projects/arm-devcenter.tgz: - resolution: {integrity: sha512-1PYDooPA8CJOHRa68IMHheoSEwr9x7aPQtnpngbmnPf2LSBAakZCPonbQmNf30RDeBYvlZQNQhT3UxwEzYEqTQ==, tarball: file:projects/arm-devcenter.tgz} + resolution: {integrity: sha512-mcwHHO9qj41Y/XjIyO6GcwtBlrTFSlIXwIf+Icc6Ebj+WEI4Fi+oDc2j91NmyPyin69+KLrKbK7uCg9Jzv5O0A==, tarball: file:projects/arm-devcenter.tgz} name: '@rush-temp/arm-devcenter' version: 0.0.0 dependencies: @@ -12972,7 +12972,7 @@ packages: dev: false file:projects/arm-devhub.tgz: - resolution: {integrity: sha512-3GB+uvRGunqx8FrY6Bd1wIfOashycfMXmE9lEkecAR07dRLZ/+WTl/Y78UiHMZ8E0xIem84hlgRxL81Dg4G9SQ==, tarball: file:projects/arm-devhub.tgz} + resolution: {integrity: sha512-bSSjS/SsVJ9fAob6y4cSpYR0VjOeb7L3RuHjuTd0fFlnhIbpFLH+Y2vttfuuHWRnzxA0yM4JnumH8JoW5lYM0w==, tarball: file:projects/arm-devhub.tgz} name: '@rush-temp/arm-devhub' version: 0.0.0 dependencies: @@ -12997,7 +12997,7 @@ packages: dev: false file:projects/arm-deviceprovisioningservices.tgz: - resolution: {integrity: sha512-xfgI1km6QQUNhb02EAvt16hp0hWGRP8PctjDxb1aYj7qJpBagqTAZnfQhOnarsXzzSveE81aD5ihS47Ub+JMBQ==, tarball: file:projects/arm-deviceprovisioningservices.tgz} + resolution: {integrity: sha512-pwChOW5Y6XSGQ6trZHPoB67nu2atMjoJcGn75lF9DalEGSedbp3g7M1Dp87oedTkePatVAw9rI857oqiAIrxhA==, tarball: file:projects/arm-deviceprovisioningservices.tgz} name: '@rush-temp/arm-deviceprovisioningservices' version: 0.0.0 dependencies: @@ -13023,7 +13023,7 @@ packages: dev: false file:projects/arm-deviceupdate.tgz: - resolution: {integrity: sha512-aRFAhHXs+QKvsiFYIm6qsRRFInGNS6ySUDxJWGhvgpaChUVV6hs89aMk9HY9ifNpozDGw+7fpGo/YPceC01UdA==, tarball: file:projects/arm-deviceupdate.tgz} + resolution: {integrity: sha512-xPsOtef95b/7bgPauzL7dSClkVY1CcYjpwUFXbfjW+SD4D2pW0tBm/ElMrEpKIm0sSMgjWF51dLZ/F14qsVujA==, tarball: file:projects/arm-deviceupdate.tgz} name: '@rush-temp/arm-deviceupdate' version: 0.0.0 dependencies: @@ -13051,7 +13051,7 @@ packages: dev: false file:projects/arm-devspaces.tgz: - resolution: {integrity: sha512-+9Ab6n8I1/CUkVLadxvLymofDxAsLyhigDV6FaVtWGRliYQtJrZ/Y0fmmBxpsHBza8V+pEhOb7dI2hFs3TwwNA==, tarball: file:projects/arm-devspaces.tgz} + resolution: {integrity: sha512-VpFn/To6BX7vwJHNMigSAPibphlcJG2b9lleoAcxsgtdSX2b9gO91/NPrI3/8FfAG1w64hdmYzBE+846u+/7gQ==, tarball: file:projects/arm-devspaces.tgz} name: '@rush-temp/arm-devspaces' version: 0.0.0 dependencies: @@ -13076,7 +13076,7 @@ packages: dev: false file:projects/arm-devtestlabs.tgz: - resolution: {integrity: sha512-yOkn+WsJLx/ABElPq02E16NjuHkWItohaU/iYaSy2DEUFaXGVo9DC0LuvSW9JdZLE79dh1KC+CGGn1DvRQp7IA==, tarball: file:projects/arm-devtestlabs.tgz} + resolution: {integrity: sha512-EMU9LO/B3Ru+P2Jlm8dt+UyjVd3doQU6fkY5iPNdzmVu78FRJM3khqBFHQ7Um0xy2Xe+PCZoa0JV5rGATwkuhA==, tarball: file:projects/arm-devtestlabs.tgz} name: '@rush-temp/arm-devtestlabs' version: 0.0.0 dependencies: @@ -13101,7 +13101,7 @@ packages: dev: false file:projects/arm-digitaltwins.tgz: - resolution: {integrity: sha512-DgGkBRsW7f+wZg2lMkSmdwzF5X4VGmi+C7OCP5V0u9sOtPrYrrziQxkLgYTFgU8lsNKC08O7FKUyJOnN3mQUvw==, tarball: file:projects/arm-digitaltwins.tgz} + resolution: {integrity: sha512-QSRH56FFOeNO5lWMWInGUXzYDjKsmL/sGBc3Sz+0lLI6lK4TbOu/WKVfIqf79/jWs4hQOh2+n8QXf7PiKvfihw==, tarball: file:projects/arm-digitaltwins.tgz} name: '@rush-temp/arm-digitaltwins' version: 0.0.0 dependencies: @@ -13127,7 +13127,7 @@ packages: dev: false file:projects/arm-dns-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-JXbckHMq8X7YqlPfwW1fwA5Bpa5CfQzV0aaLTe6W3blWmo8ogUnuAotBnD2qcLynp74HpHeDt8lr73IY98aUww==, tarball: file:projects/arm-dns-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-XEhbzSLz+AcsLGEs5h46M1Uw6h87sHZt7RDrZDovMf5NRFvHtz9GbbmmhVt/ZAXDmUfVVUcPKwEHhbH68qHjQw==, tarball: file:projects/arm-dns-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-dns-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13153,7 +13153,7 @@ packages: dev: false file:projects/arm-dns.tgz: - resolution: {integrity: sha512-429rkHbX+rfJzQkQNXnnoDyEg5INtm9CUtPTV5Ytkxwf5uDq+Zp27aX9eZ5IHwGET5a5rxs5kNnPO5gFcjT0pw==, tarball: file:projects/arm-dns.tgz} + resolution: {integrity: sha512-11WTPWST0FOvgaKYBI9MNiz28AeJ6qhVrZvqZOfHhq25niTVTPfRGRusR1zd/nF3oQIHVS684bz9fWzPrOhJtw==, tarball: file:projects/arm-dns.tgz} name: '@rush-temp/arm-dns' version: 0.0.0 dependencies: @@ -13178,7 +13178,7 @@ packages: dev: false file:projects/arm-dnsresolver.tgz: - resolution: {integrity: sha512-wdayLTZ11vXGQEyHs3ZCNPJykKSGiT38qXwzOrfdWldTbS+ZIQ0rp+AElxcVqYMqjr0aSymAX+G694BsvjjfNw==, tarball: file:projects/arm-dnsresolver.tgz} + resolution: {integrity: sha512-tsl3gqxLPVxug/4zxxWrxuz7hytnZawhdnizq69LBXWgdJZhkrQNHqc72hMtcpDFIcnC03mysJuiKALIRgl7Fg==, tarball: file:projects/arm-dnsresolver.tgz} name: '@rush-temp/arm-dnsresolver' version: 0.0.0 dependencies: @@ -13204,7 +13204,7 @@ packages: dev: false file:projects/arm-domainservices.tgz: - resolution: {integrity: sha512-chqF+6W2493doFEaIVFTyh1Ajt30S24T1bPya3QRWPpILcmOx/Fc8v0qaP1HgrXTjCLzGHayVtCZ6a3PqFRjKg==, tarball: file:projects/arm-domainservices.tgz} + resolution: {integrity: sha512-kCZf08Xrki1rN0qRBkzsIYviizAlfVbo66Sr1ZpGJectVIre0N3tVjaYZgFknzd//Cpe6Sg2LPyfHqhFKynJlQ==, tarball: file:projects/arm-domainservices.tgz} name: '@rush-temp/arm-domainservices' version: 0.0.0 dependencies: @@ -13229,7 +13229,7 @@ packages: dev: false file:projects/arm-dynatrace.tgz: - resolution: {integrity: sha512-Avhy531NICpCZCBfHcg+hPEFq0iH0c8j8czP4UkHDX6icM7Ed61sV2otKih23hdUZAsB+RjedYRlh/cuODlq/w==, tarball: file:projects/arm-dynatrace.tgz} + resolution: {integrity: sha512-vJwhtFgZ9ZStOLilQcvHSs2Ud3WjUHBNsCNjS6jlaCz0PBOdVNHxkplYfm6IRuIxrESKrLB4gSxMqD6a0oNGWA==, tarball: file:projects/arm-dynatrace.tgz} name: '@rush-temp/arm-dynatrace' version: 0.0.0 dependencies: @@ -13255,7 +13255,7 @@ packages: dev: false file:projects/arm-education.tgz: - resolution: {integrity: sha512-C5KqCvYx65Qe1NTHNhIJ0Ld75aEjFuuWIiayY0iSCZjPkEb2phv95MmiDNXXRrRfMPmP79mmRZNUpEs6OSVvdw==, tarball: file:projects/arm-education.tgz} + resolution: {integrity: sha512-XUqGEPJc9jLoii3I+EXGR4jzCe+3AuBstVp0T2PwjRRJs679jQBUHtZnTo3rr69eDH/BtSx7Qr3muLHlodxlgQ==, tarball: file:projects/arm-education.tgz} name: '@rush-temp/arm-education' version: 0.0.0 dependencies: @@ -13280,7 +13280,7 @@ packages: dev: false file:projects/arm-elastic.tgz: - resolution: {integrity: sha512-GCy5riN+s1XXR+KweSNbbxjKnyj2rptYRUWw6SbESPGYW3o/alsKW9SOu6mQrLMa+k9QaHq/DNMDXNqbnV1Stw==, tarball: file:projects/arm-elastic.tgz} + resolution: {integrity: sha512-hjrGUFyoe6zqyKzcV5wiWfutSrfJCgAPFyfnWEB3SgDTXChUxJ1CHVrFz1dknkteb3QyPo95AajWjljcARFsHA==, tarball: file:projects/arm-elastic.tgz} name: '@rush-temp/arm-elastic' version: 0.0.0 dependencies: @@ -13306,7 +13306,7 @@ packages: dev: false file:projects/arm-elasticsan.tgz: - resolution: {integrity: sha512-paB2UTa/ym/LyKRvgueRVSEwKly+RiTM68GLSsEmrlPUFlfTA3OpTjdm7V6HYjYZ9EXB9aHJRAmKAcIAyki58w==, tarball: file:projects/arm-elasticsan.tgz} + resolution: {integrity: sha512-MAcRdEAkDyOCRMp7lzWsb17S9wxJL/h1E+MHN49+3ZgP8bFbmIM9B5S4IuhUyAaAWcXoN9Q5+tycoUF37tN+oQ==, tarball: file:projects/arm-elasticsan.tgz} name: '@rush-temp/arm-elasticsan' version: 0.0.0 dependencies: @@ -13332,7 +13332,7 @@ packages: dev: false file:projects/arm-eventgrid.tgz: - resolution: {integrity: sha512-tjBtJu2eMS159Yn+z4AVN7sHfci8B1emHbgp2ByP5ZihuPaxByq5swFyeak3kM/i30JiIGD7vsnEqwuAYMCPCQ==, tarball: file:projects/arm-eventgrid.tgz} + resolution: {integrity: sha512-fWRrB1Tc70xFmURB4HO/oOMkeNvfqf3RtuS0ill56w6dNXW4RpplZKJ720TyMxCw5WpH+AceJEkKGp5yolKy1Q==, tarball: file:projects/arm-eventgrid.tgz} name: '@rush-temp/arm-eventgrid' version: 0.0.0 dependencies: @@ -13360,7 +13360,7 @@ packages: dev: false file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-MqEEobfDU00H3kPa26dXWSx6R1C9zltFLoGolV5/1IGUaxmEvXrcTdZteFrn8ik1K1ldRCpgYbbnOBtPtaLG2g==, tarball: file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-u5w0QSttzZqd/KROKfv1ZR1o7rEzHCUgKJk10mYiZjJM1CttxyiPJc2V51wH+CeZxVsDeSsQ52h6+JsVkAlZDA==, tarball: file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-eventhub-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13386,7 +13386,7 @@ packages: dev: false file:projects/arm-eventhub.tgz: - resolution: {integrity: sha512-suisMne906UGxscZh0d36pm3zc1/51MdIt0Ah2F3rPC0GhtA6Rl0tIkArHAUNrbphh0XrdQlacLbMu0h98FLLA==, tarball: file:projects/arm-eventhub.tgz} + resolution: {integrity: sha512-/0Dt8GdT0Kq/J2aVy6c9IFrMLKhtUznzBH1SXbE5GgNVJO9SfQELBH/aS1Wn8xQXfZJm87upR7sBKvq5XJevvw==, tarball: file:projects/arm-eventhub.tgz} name: '@rush-temp/arm-eventhub' version: 0.0.0 dependencies: @@ -13413,7 +13413,7 @@ packages: dev: false file:projects/arm-extendedlocation.tgz: - resolution: {integrity: sha512-f9sp+QPsoIuWptx4icS891Fnz4bvYsp75lrGTquLOCkXatFjF+VaotCvvSoyqhXo6RgNEajUvB4cVMlLpkCzHA==, tarball: file:projects/arm-extendedlocation.tgz} + resolution: {integrity: sha512-gD0/vITTqG3qKqpWEHlAtrHMlEwqdAdPLCM+H7VyNkFwZTzBJYc3xIbipOfBQGK1lrz2IizBCSxkNwPEZbhx9g==, tarball: file:projects/arm-extendedlocation.tgz} name: '@rush-temp/arm-extendedlocation' version: 0.0.0 dependencies: @@ -13439,7 +13439,7 @@ packages: dev: false file:projects/arm-features.tgz: - resolution: {integrity: sha512-PsAPp/y5g4Du/xSOk7VFhonOTZ1NxI1Do/PgV+hdc9rC0GuQarRj4VOpjBiDiHS80UwOgrMFFDA7FtfQJn025Q==, tarball: file:projects/arm-features.tgz} + resolution: {integrity: sha512-73VI4IzvKvfyxA73Z92X5QZfVjbR7AB7d/4hHd2HnfimfCbRZYE0ymm+YzERPQ+gvCSqcrnpCXqha9JMgfUT1Q==, tarball: file:projects/arm-features.tgz} name: '@rush-temp/arm-features' version: 0.0.0 dependencies: @@ -13463,7 +13463,7 @@ packages: dev: false file:projects/arm-fluidrelay.tgz: - resolution: {integrity: sha512-FHuTbZtwQeJu7YeXu0EVDxWOJiAy3mMUVFn7Ony9gCVTfD5N7CaT8kZop9ywpyKTbUBOc9IRRrVHbXpyxEj8DQ==, tarball: file:projects/arm-fluidrelay.tgz} + resolution: {integrity: sha512-uxfhs4GkEvK0iuR1LlEFcPpmsRx8B4V2ibBfD7GbLxw9P0gC2OG5yWuuEEpTd3qH7XUkNUrMWo44xo6Yfla4nA==, tarball: file:projects/arm-fluidrelay.tgz} name: '@rush-temp/arm-fluidrelay' version: 0.0.0 dependencies: @@ -13488,7 +13488,7 @@ packages: dev: false file:projects/arm-frontdoor.tgz: - resolution: {integrity: sha512-V/oPpgMfNRtXueIt8eNUEiCmWeyPQ4s+AOnXj7n4cnMtYIaKDLy8tGtsE/EePcEJ/mZjFtto/0GuE2ZgSaVTbA==, tarball: file:projects/arm-frontdoor.tgz} + resolution: {integrity: sha512-PB7j+888ewazZTNZ5f6pU1K8elT7FbEhKDaofu1Xh6Qkl5DW9GNH+T0YCB9bn6EiN4sMdncqJKVALHT9tChojA==, tarball: file:projects/arm-frontdoor.tgz} name: '@rush-temp/arm-frontdoor' version: 0.0.0 dependencies: @@ -13514,7 +13514,7 @@ packages: dev: false file:projects/arm-graphservices.tgz: - resolution: {integrity: sha512-qBtAEmy9EakW2AGtrHykEzw35vJCY+ACs3mmGbMHFYUSlgBfMansy7Jlf3wYZSWlQHqe1jMw/xPbIsRguLTPDA==, tarball: file:projects/arm-graphservices.tgz} + resolution: {integrity: sha512-kKBVu5jbV3NlUd/vqNVoHsScWpK4VyzK83Ptxjv9b6DJsZdLHEOYjkTZPvPIMS1pMKmJhdDExSHVzMxFq2Gj4Q==, tarball: file:projects/arm-graphservices.tgz} name: '@rush-temp/arm-graphservices' version: 0.0.0 dependencies: @@ -13540,7 +13540,7 @@ packages: dev: false file:projects/arm-hanaonazure.tgz: - resolution: {integrity: sha512-nfITb+CqO/xUX8VYCiLUjUkChdj2oK/G+jGw5HRxmW8lqwlmTYURxLhqn8DOs9VY9gMbfDDLi2dNp/YKafFQsQ==, tarball: file:projects/arm-hanaonazure.tgz} + resolution: {integrity: sha512-CRfnVnNun+4GSUVKHnx/IHg6fzg21UqE7fNHZf5eGw5ss9ahoHVYQYI1eoCo7oz5tvZGVokxIuqB72c+DCMH0Q==, tarball: file:projects/arm-hanaonazure.tgz} name: '@rush-temp/arm-hanaonazure' version: 0.0.0 dependencies: @@ -13565,7 +13565,7 @@ packages: dev: false file:projects/arm-hardwaresecuritymodules.tgz: - resolution: {integrity: sha512-xu9vC+S2z1PzRtQrBdKupiJjcAMGdkwuPdD5FtwIZWXfT6ogUY+nKfIKFRjUHSvOjanV3svC+R/ER0BRGwRw2g==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} + resolution: {integrity: sha512-J5IfwnDgnUYdpVdzb9TUjFLpXWJxbZirFJIIO1ZsRZBeio0O5A+wqAxc6AHKpMLp9rc8qb6oXPDbsnm7nxA7TA==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} name: '@rush-temp/arm-hardwaresecuritymodules' version: 0.0.0 dependencies: @@ -13590,7 +13590,7 @@ packages: dev: false file:projects/arm-hdinsight.tgz: - resolution: {integrity: sha512-ax7rrLI7ov9YaLmkbBotf93PU+9xjZW/InILwoAORZO5jS+Ot6XDTnxsw6iQ4mHnB7dCU8EleB+SnH+uuRKyLQ==, tarball: file:projects/arm-hdinsight.tgz} + resolution: {integrity: sha512-B/RNfE7cZsdz1T/QU24liEuhA+uB3KvqDKbESpQ7B6bSemjXMmLW5b64QEkiuHJ54tExLuJYbfX9ojQOIZY6+Q==, tarball: file:projects/arm-hdinsight.tgz} name: '@rush-temp/arm-hdinsight' version: 0.0.0 dependencies: @@ -13616,7 +13616,7 @@ packages: dev: false file:projects/arm-hdinsightcontainers.tgz: - resolution: {integrity: sha512-GWybZlIfCgnGKft6nUbXC1d+xApSumecb5ukjJsyFrqYAdtSO11WqMEieM4y+lteBt1P13qGfnFKrZ+r3ispqw==, tarball: file:projects/arm-hdinsightcontainers.tgz} + resolution: {integrity: sha512-MvDTv8XJ6hr4iOdamJ5oaZpR9NwQXhFd9lb6GNKjZ2L7PObGqH3aEHI6rqeTsEzgLhrk9u5LX+yrygdwmNTgyQ==, tarball: file:projects/arm-hdinsightcontainers.tgz} name: '@rush-temp/arm-hdinsightcontainers' version: 0.0.0 dependencies: @@ -13642,7 +13642,7 @@ packages: dev: false file:projects/arm-healthbot.tgz: - resolution: {integrity: sha512-sL+XD7H8YwEF/kpe8H2EsXEhZOBmjQ+oQgivScbgaREdqZnAfPMI8f+fa/CV9LZwC2guTfv5Di6INILCxX6ZNQ==, tarball: file:projects/arm-healthbot.tgz} + resolution: {integrity: sha512-r5kSUSZPFIbFLKGetjkD+/GLpFqJnaDcw/VTiYzFqX/ymjZ4A/xqy1bEJ9oECnVI1k1W+bh4PTqZ7zsmxpw0iA==, tarball: file:projects/arm-healthbot.tgz} name: '@rush-temp/arm-healthbot' version: 0.0.0 dependencies: @@ -13667,7 +13667,7 @@ packages: dev: false file:projects/arm-healthcareapis.tgz: - resolution: {integrity: sha512-XqPT3oebdjJqKjBNe6iblzQELKFU5psH81RreLEkcgJ95yPANIG1iDDYptQUYGHabE9oqhQDqPn8eTSM73pCUg==, tarball: file:projects/arm-healthcareapis.tgz} + resolution: {integrity: sha512-ml5HJ/RXXNKw7NQg5Xsv+MyRwaKdaqLV7UEp4HoYQIHp6wFMBVNXiKUsTqXMafsdIcG0a2Aa009DsC+6+mK7Qw==, tarball: file:projects/arm-healthcareapis.tgz} name: '@rush-temp/arm-healthcareapis' version: 0.0.0 dependencies: @@ -13695,7 +13695,7 @@ packages: dev: false file:projects/arm-hybridcompute.tgz: - resolution: {integrity: sha512-lALSSHwR4imCPXEkggEB9GBvYf8DqI2oVkQHRdBGNGbGDqRp54jysF1kY2lE3bwBHbrohmfUUGkWARDWSpGhfA==, tarball: file:projects/arm-hybridcompute.tgz} + resolution: {integrity: sha512-wyGvqOwqBrBFQo4GrdN7iTthZGdQkmvQeuayXpVC/NofQh705ME7CvyohessswNQRJLZ5mBskxE0OBzYJ22q/g==, tarball: file:projects/arm-hybridcompute.tgz} name: '@rush-temp/arm-hybridcompute' version: 0.0.0 dependencies: @@ -13723,7 +13723,7 @@ packages: dev: false file:projects/arm-hybridconnectivity.tgz: - resolution: {integrity: sha512-12uBkaEoYjECAUT8dCcrUYqg3tvuOrQ3hKbdlbA5hvw+cckEFku0JPwTGl5FXgLONPPRYPuKD1juuzHpDYTQOQ==, tarball: file:projects/arm-hybridconnectivity.tgz} + resolution: {integrity: sha512-Q5EwtIhDiFExrALr0Qx3GW1vZO2T0CqjqGR1GnpPI4G3WbCElKrb2pmmYTPaJaTb1vlilAGVv0tbEPt1BzRJ6A==, tarball: file:projects/arm-hybridconnectivity.tgz} name: '@rush-temp/arm-hybridconnectivity' version: 0.0.0 dependencies: @@ -13748,7 +13748,7 @@ packages: dev: false file:projects/arm-hybridcontainerservice.tgz: - resolution: {integrity: sha512-q4cD7MZkB2AAEA9fzDGce3QjKlv0BTKRLW79GgbKgMB8SGmQrqTL/TkEYW1Uc6oSuflSI0rMGV/V4hmU9A6D6Q==, tarball: file:projects/arm-hybridcontainerservice.tgz} + resolution: {integrity: sha512-11XWxVEhOceREirCiodxXo2SOCluJiBHF79nn3GvJQf1gO8so3SSBZgBa1gmLbUU3zqMumhDy8wpdrbkTsLMDA==, tarball: file:projects/arm-hybridcontainerservice.tgz} name: '@rush-temp/arm-hybridcontainerservice' version: 0.0.0 dependencies: @@ -13776,7 +13776,7 @@ packages: dev: false file:projects/arm-hybridkubernetes.tgz: - resolution: {integrity: sha512-ibQgjEsQRDB4ZeyeYO974Z9Q3Q/wWqCSJHVD2LQ9Mgtfe4Vh7zBEuUPYNYc6S7RMROxPEfbIVmuzV8AEga++pQ==, tarball: file:projects/arm-hybridkubernetes.tgz} + resolution: {integrity: sha512-10+Muv3HpA7K839zrtaXO6WQnvEGhPT0k9mUIGPr0/KvaDUiidq3k0m64Ph8T5bAMIHdfhHRPFyvvxfITNqKkg==, tarball: file:projects/arm-hybridkubernetes.tgz} name: '@rush-temp/arm-hybridkubernetes' version: 0.0.0 dependencies: @@ -13801,7 +13801,7 @@ packages: dev: false file:projects/arm-hybridnetwork.tgz: - resolution: {integrity: sha512-vnW05Mojjp3FtGoep9UGv4qZVlAdZxxYcTU1VXn4ezT5LhUcj504cwpCNKYlIqzSyLA9qc/EKs9UM7nX9ZCUnQ==, tarball: file:projects/arm-hybridnetwork.tgz} + resolution: {integrity: sha512-LwWLiW4DS2EzuDqifNZ235JVTbIpgi4p35KkZFmmsFY0peISr1TAdol4YJCPskaNOlEU/jCNueMHOTWzFgwPIQ==, tarball: file:projects/arm-hybridnetwork.tgz} name: '@rush-temp/arm-hybridnetwork' version: 0.0.0 dependencies: @@ -13829,7 +13829,7 @@ packages: dev: false file:projects/arm-imagebuilder.tgz: - resolution: {integrity: sha512-LaetMwvYvnVIg+DWwuK/ZCBlBEfRPdKqASMMjChc8+3vrzYr4FcM/GGajMrlKETf87wgv46UcS/VA3oZ0YUfUg==, tarball: file:projects/arm-imagebuilder.tgz} + resolution: {integrity: sha512-jy4nsfvNSrj5Sm0Pm/CS0HOMBxxdTCbxFBbjcXKbi1E0UnhrvwrJEgvS0XeGh8oSIhV/A8yNYClO4Vc9dJA8Mg==, tarball: file:projects/arm-imagebuilder.tgz} name: '@rush-temp/arm-imagebuilder' version: 0.0.0 dependencies: @@ -13857,7 +13857,7 @@ packages: dev: false file:projects/arm-iotcentral.tgz: - resolution: {integrity: sha512-RvxSMWlilR3V082009oboUQ/TI1Ckwa6waqh3QWoK6RQqZhs3CBcncd4mUXGfld3wDE0LsMshje+1kTCEevVMw==, tarball: file:projects/arm-iotcentral.tgz} + resolution: {integrity: sha512-zDkG1dKWaMZcCs9XwC9Ki8Cw44XPseQlzuQEvz42fcYhgXpw7po2tiM62PS8nRu3G/cSNgbF4HDCjhbsDXmxEg==, tarball: file:projects/arm-iotcentral.tgz} name: '@rush-temp/arm-iotcentral' version: 0.0.0 dependencies: @@ -13882,7 +13882,7 @@ packages: dev: false file:projects/arm-iotfirmwaredefense.tgz: - resolution: {integrity: sha512-UlcktMtjSOho+wqkh5IP5hv/hQNgRSyTV9h6ScftyWmHwrO4HmySIzMd05engzLVVkSgZwhuLNZClbBrZLVMjA==, tarball: file:projects/arm-iotfirmwaredefense.tgz} + resolution: {integrity: sha512-zA7L08cWQgYZUXlgpTZFEmKBONpbsys6NjwzJRdx35JWuhbog9HSriKOtPlWvy9Q8wFltv59rVbsdk9FfETJbA==, tarball: file:projects/arm-iotfirmwaredefense.tgz} name: '@rush-temp/arm-iotfirmwaredefense' version: 0.0.0 dependencies: @@ -13907,7 +13907,7 @@ packages: dev: false file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-Z7MXpWaQx/BK1x/23QvIRkSkD2sKArgmSUSu0jbIqNbdnq5Qf5Oh6I/sRlgYVZf/gnSS9AA6nkV0eeDH5LJQbA==, tarball: file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-HM620QXQaf76X97DFDKWH2cRWKcnsy8qgHDD0o0BGhoAmrKDo1VtB7mJjdY4L6geUw4ndkPqCG5N4EZx2lSN4w==, tarball: file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-iothub-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13933,7 +13933,7 @@ packages: dev: false file:projects/arm-iothub.tgz: - resolution: {integrity: sha512-RUw/JJPWVXjH+b2zErfVrNA5ZUFVOlMcZrpShxI1txAMT6stNgAN8L08eec1da1CRqoZo55Pnosg/SmD5kT0xw==, tarball: file:projects/arm-iothub.tgz} + resolution: {integrity: sha512-5b/JNkJQ+XSh0pmsJNKOKGskx6T/HKW8uoil+03LmvB94SNa2DpTAvWV7llBxz3PGZ4e+GgdXC3SsNanTKRETA==, tarball: file:projects/arm-iothub.tgz} name: '@rush-temp/arm-iothub' version: 0.0.0 dependencies: @@ -13959,7 +13959,7 @@ packages: dev: false file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-Sak8m6gM8L777SCcQabmUu843qmsHqGRwyDOhZmzr1Y8WMP78oNj1zAqkD0E776gbK9Ec6jCmm1MgrZRLVGY5g==, tarball: file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-hQ0FONgYYCN2UadgU6z0GaA0+cYXPGa2JSN3ZWhcOnRzvNUDtFUggInDPyHv38DMQk8RG2T0XpDHF6D0Xzrgmw==, tarball: file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-keyvault-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13985,7 +13985,7 @@ packages: dev: false file:projects/arm-keyvault.tgz: - resolution: {integrity: sha512-U7RFd4n//k+/e8c7v4domUshasWYYn1dPmW/qzBZuxq7b3Fkgt4dTB8LSm8CcLHRynT8Nbl/K9GMJfyR6ChFbw==, tarball: file:projects/arm-keyvault.tgz} + resolution: {integrity: sha512-7WJm+hvSRiXjzarsZEG5b4xU3kfX7eIB0cfMIhG8mw/ei8ItTp/btJlpMjhSlGrH8IdM7JBDNrpgsj6+Y5jvnA==, tarball: file:projects/arm-keyvault.tgz} name: '@rush-temp/arm-keyvault' version: 0.0.0 dependencies: @@ -14013,7 +14013,7 @@ packages: dev: false file:projects/arm-kubernetesconfiguration.tgz: - resolution: {integrity: sha512-TuUgsD4n7EYDL665QNXvsrFKpHVVRPwlRdIax3j1V26sdyGNV2yEK1hsbLUW42E85fhhGOcyg4ecHh8uB8zbog==, tarball: file:projects/arm-kubernetesconfiguration.tgz} + resolution: {integrity: sha512-TzAhlESGzWZaxlokZB9tmVuqmt6yeBf9QavwYv4p6AKmh7vESdZfu4DwUop0X5mwn1qICQZsARwqCPJXTfDP1g==, tarball: file:projects/arm-kubernetesconfiguration.tgz} name: '@rush-temp/arm-kubernetesconfiguration' version: 0.0.0 dependencies: @@ -14039,7 +14039,7 @@ packages: dev: false file:projects/arm-kusto.tgz: - resolution: {integrity: sha512-O5CzwP5H28inSpwYVwnadaH6s2gS6Xt0zJjYblXibSUVrU762+RzQdesp0p+Ru20L/iGEMszPP5zVy7k+gVY6A==, tarball: file:projects/arm-kusto.tgz} + resolution: {integrity: sha512-64H4h2KkWZhnS/uihbbmJ0iBamX97s3iOqaph44HIl2UUsp/BwUtFYXj3zlOGr0QEuZbLTV3+vgMWb0l1Gm9iA==, tarball: file:projects/arm-kusto.tgz} name: '@rush-temp/arm-kusto' version: 0.0.0 dependencies: @@ -14065,7 +14065,7 @@ packages: dev: false file:projects/arm-labservices.tgz: - resolution: {integrity: sha512-QQeGRP/4J1XrCMnJfmGGN1PEVbgwWuZ6xijb5CDHB9WG3jdO3JmuE8TCHbDYu9Cbel6emRs7S0gOYjG2dGNSdQ==, tarball: file:projects/arm-labservices.tgz} + resolution: {integrity: sha512-mzx/+d1reVp1NZWn/VYnbOU3aIt8dFtvkvGNDhSe/eTPNInIajRgmDHvuypsvvYfnUWXHFQ9sHg2zkBJpfZ2WA==, tarball: file:projects/arm-labservices.tgz} name: '@rush-temp/arm-labservices' version: 0.0.0 dependencies: @@ -14091,7 +14091,7 @@ packages: dev: false file:projects/arm-links.tgz: - resolution: {integrity: sha512-VHitX3x9QP9/AVA1T1eWRiTrCN6h5qIhk1kVkLxje+WdNwPxB2AwFe4tTxxU5rkQZgu53pUNCsSLSyeTwrXQ+g==, tarball: file:projects/arm-links.tgz} + resolution: {integrity: sha512-QnQUc0vJ/Saqt/0YmlnG1jxOfGFn4+leDjpLVE0Gnh9MKnLESwDO29wVpI4O+85u6rOgVX26vjgl/uJYaY9VYw==, tarball: file:projects/arm-links.tgz} name: '@rush-temp/arm-links' version: 0.0.0 dependencies: @@ -14115,7 +14115,7 @@ packages: dev: false file:projects/arm-loadtesting.tgz: - resolution: {integrity: sha512-seLOmIPeUaIjuUHs9PYnhHdJff0LrlXzymjUj47iGaGRS8WCRakyEu0Lo9hoEwc71C5TTJk+O5ZIIAVJcl/pGQ==, tarball: file:projects/arm-loadtesting.tgz} + resolution: {integrity: sha512-EK48S1unqymbk4S+9GDmaBmdhywL3r8umggma040wHF0zNnwb43t28VkNrSsspXO3LTikmUdFINj947Sm7hAkQ==, tarball: file:projects/arm-loadtesting.tgz} name: '@rush-temp/arm-loadtesting' version: 0.0.0 dependencies: @@ -14141,7 +14141,7 @@ packages: dev: false file:projects/arm-locks-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-mLrlOfuuEAzRNkR9MES+IXiyNGGFKXcToKdGKWtgmC7pN6BVcP7FbI5XNbV0tgItkJcFEFIp2+RYGeaCgHqlZg==, tarball: file:projects/arm-locks-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-ftuIIzqGxXV/RaCGPTWVULjVnq3ysER0ykkGIaf/j5eO8Oki4geQRF3XNjoTNRRzSTEpp9/JYHfG4qHNyy6Pdw==, tarball: file:projects/arm-locks-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-locks-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14166,7 +14166,7 @@ packages: dev: false file:projects/arm-locks.tgz: - resolution: {integrity: sha512-zKFE6jHeoqv5ffuURiwDgUVt9gRoOkiXl8ItIU0CfJnjDGX40DiXjX4ISpDyj2JYBHsOktNB4eueFIGjJNHW3Q==, tarball: file:projects/arm-locks.tgz} + resolution: {integrity: sha512-94xTc2vXU8VXC0dNd7kFQuGTQGuKxmkC8/v834Ls2TVSOM8IlFPzYwzDBOksNSXMo5+GHOUuNZlV7MXAZwvSNg==, tarball: file:projects/arm-locks.tgz} name: '@rush-temp/arm-locks' version: 0.0.0 dependencies: @@ -14190,7 +14190,7 @@ packages: dev: false file:projects/arm-logic.tgz: - resolution: {integrity: sha512-Fo40gaQAFtVDoFP5QafgrOCWf8VvxQO6drf3L5X/iXx+Q79tVNZ2GkC9/OnX3vevTDxaAf1P2vusfIVY6aPnng==, tarball: file:projects/arm-logic.tgz} + resolution: {integrity: sha512-jNsoQIwUZrdJ9hYCZD5SAFdDBYgAfALphD+zR3hzD/YpKrQ0FDI/SfZnMLBy5au5d2ng92HDmkBmjD/1R6Oi0w==, tarball: file:projects/arm-logic.tgz} name: '@rush-temp/arm-logic' version: 0.0.0 dependencies: @@ -14216,7 +14216,7 @@ packages: dev: false file:projects/arm-machinelearning.tgz: - resolution: {integrity: sha512-RkQZRD5cjGc/sFkm6qxHvdLte5pzFdjaAZ0lj7hp99Er4E+NtpuTW0jIhqbSTos0DUb8sAKJD/+hqk83VtjQPw==, tarball: file:projects/arm-machinelearning.tgz} + resolution: {integrity: sha512-Zyj3R5XhvNOEb7j8nYkituAAm46UPh4V7WiY/QJgPOHVYLu3JsEkzFwUwoOQK9TZql5JFo6moGQK/iPOIqR7eA==, tarball: file:projects/arm-machinelearning.tgz} name: '@rush-temp/arm-machinelearning' version: 0.0.0 dependencies: @@ -14241,7 +14241,7 @@ packages: dev: false file:projects/arm-machinelearningcompute.tgz: - resolution: {integrity: sha512-t0puScZZAua3OYcwwEVekDVsr3H5bNDrfl+xH/DCGqtjZNTzyxmcds8UpBtvnpyweU/8H16JR1peXUHgJQhUPw==, tarball: file:projects/arm-machinelearningcompute.tgz} + resolution: {integrity: sha512-RbZxMK7BOgvXPqrloFd86JGAN0KPrRmDMsWwc/JztQIoVDtl/OmffpLp7AoROmXyYcbrwOf0pok+S5X0w99LEg==, tarball: file:projects/arm-machinelearningcompute.tgz} name: '@rush-temp/arm-machinelearningcompute' version: 0.0.0 dependencies: @@ -14266,7 +14266,7 @@ packages: dev: false file:projects/arm-machinelearningexperimentation.tgz: - resolution: {integrity: sha512-+gEtnuwCayXWni1TRMj22Zkf25rRpDhYTkjxeyG7/A0BuD845hSajTAEgJjd1MNFB/lFVN31ATTFJDXZLzjIJA==, tarball: file:projects/arm-machinelearningexperimentation.tgz} + resolution: {integrity: sha512-2acpIwrg1C4sHfU196/EegkYMMhI5UqZSslflqxsJNIEGGMShsiIgjsF/9JR9+sZp+N0nH+B99QRWnXAEVHVsA==, tarball: file:projects/arm-machinelearningexperimentation.tgz} name: '@rush-temp/arm-machinelearningexperimentation' version: 0.0.0 dependencies: @@ -14291,7 +14291,7 @@ packages: dev: false file:projects/arm-maintenance.tgz: - resolution: {integrity: sha512-BMKjRGXBdxxqUthI1ZYeQ96HMnzDepcFJfBcD04bkOE9J1259FDxeHICEy3GJwtQJzV3rXiOU2YpsNbt1LdV4w==, tarball: file:projects/arm-maintenance.tgz} + resolution: {integrity: sha512-hst0PH56kaRQk6ysC9l6iDPAC/UHa4rtxbeO5Z3Vh3txnJ7NUxXk2w+nvL5+Cnz6u73RDeb1r64hX8qEOvXlHA==, tarball: file:projects/arm-maintenance.tgz} name: '@rush-temp/arm-maintenance' version: 0.0.0 dependencies: @@ -14313,7 +14313,7 @@ packages: dev: false file:projects/arm-managedapplications.tgz: - resolution: {integrity: sha512-SJH8moGt+NmYKLq+4ty28cEo91E5pgECXySDb13vLVAZBbVbZ7VR7KA+A+6H8foN70Aqog84NEXATBczuhJusA==, tarball: file:projects/arm-managedapplications.tgz} + resolution: {integrity: sha512-NzY9zcpeRv5ySa5c+5BQ4q4u32wyhgknMpN1TBxsnzVo5HKBNv5w52yWoxzOIi899PrPBq5KVB+6OtGqY6cWDQ==, tarball: file:projects/arm-managedapplications.tgz} name: '@rush-temp/arm-managedapplications' version: 0.0.0 dependencies: @@ -14339,7 +14339,7 @@ packages: dev: false file:projects/arm-managednetworkfabric.tgz: - resolution: {integrity: sha512-4iPzPFOLT/yyP5FjyYE3cy0u4IyiH5CpCKGkr70C8m+OD3qEorwqx8GQPIQaKIGw8ldGBkKSL6X9vU4J2/mzlg==, tarball: file:projects/arm-managednetworkfabric.tgz} + resolution: {integrity: sha512-k9LNvTE+EQboAZOMprtuI8gMLY35NTJVWQbdf7M6JX4sFOgqZuNU6CmF7vmEyDE87bqO1HgraXagc2gSC0gO1w==, tarball: file:projects/arm-managednetworkfabric.tgz} name: '@rush-temp/arm-managednetworkfabric' version: 0.0.0 dependencies: @@ -14365,7 +14365,7 @@ packages: dev: false file:projects/arm-managementgroups.tgz: - resolution: {integrity: sha512-wTAuekhnZmZuuyDXxmluLMEHXZDzD0YznXCHujWv/TVJhSCtJJQqnCFCIilJX1Hry9a/+QmOGDfoh2xjjiDD3A==, tarball: file:projects/arm-managementgroups.tgz} + resolution: {integrity: sha512-H0H5+w7SolpETTq5k0VtPYv/KOAzCqFcfrL1g0pujuWXrVQ0rRyBCnZGaVEUcnNYZYZSYMBa4Pn3LOO/2Y46+g==, tarball: file:projects/arm-managementgroups.tgz} name: '@rush-temp/arm-managementgroups' version: 0.0.0 dependencies: @@ -14390,7 +14390,7 @@ packages: dev: false file:projects/arm-managementpartner.tgz: - resolution: {integrity: sha512-Q1a2UreYeBb/aMPi5N99O/usrbtYgC8dyKsa4zlYnGuoq1WMiX6GXjnJ0z+xCeIT6oNsMGE67/gf7K25uOEK9Q==, tarball: file:projects/arm-managementpartner.tgz} + resolution: {integrity: sha512-FoQzx4MSVyu6q4tmYSj3BIw8Nw6qJiWDae5qcaOzv87enHOKgnbB1P+jP7fzRtnPh/tvj3oU41OEwiNb3CyOrw==, tarball: file:projects/arm-managementpartner.tgz} name: '@rush-temp/arm-managementpartner' version: 0.0.0 dependencies: @@ -14415,7 +14415,7 @@ packages: dev: false file:projects/arm-maps.tgz: - resolution: {integrity: sha512-+XlygP6gkmeLbaQS244rzfvlF0LywTr3v6VNFnLtX2laP+1aKPl7ZJBDd3ugaCgZfrdpz5vZ02NXrCrbO6Pkhg==, tarball: file:projects/arm-maps.tgz} + resolution: {integrity: sha512-N3BPWnbKLHANDINbO6zeggn2qRXWWf+JLSwdxfOzWtWGs1Rx9qtsmpU1oRXBNDR5gxeYJ+CcvRWvdLmY0s/Y1g==, tarball: file:projects/arm-maps.tgz} name: '@rush-temp/arm-maps' version: 0.0.0 dependencies: @@ -14440,7 +14440,7 @@ packages: dev: false file:projects/arm-mariadb.tgz: - resolution: {integrity: sha512-vSzDq+ekNF2fvVYJySWUTVYmEO0rYCC/hRmQB7jKRrr1L7sXwzmmAUzIEHhYCBrNRtzjoyz9dPUbgoo8NvOmug==, tarball: file:projects/arm-mariadb.tgz} + resolution: {integrity: sha512-XIF8YQDUumDdqTI1epjbypGUOIatHhkz00KplkVpPdZc5xfQRn5p/zDfABk9WInqbWohEyRYhBm0Kjlj3atuqg==, tarball: file:projects/arm-mariadb.tgz} name: '@rush-temp/arm-mariadb' version: 0.0.0 dependencies: @@ -14465,7 +14465,7 @@ packages: dev: false file:projects/arm-marketplaceordering.tgz: - resolution: {integrity: sha512-JnnZjaR7UuTJIv/+m3RfyE1fwVl7htUYv678hyLN1GEuI+aub2RxoUBrO721qnInC0PPG1u/gTvGYZI7DzuKMA==, tarball: file:projects/arm-marketplaceordering.tgz} + resolution: {integrity: sha512-ei+yiNlEzHS6sVLEyCTb/USV0MV3euwClEAQZfyCSd9ytLa9T+tQjUZGnDsnKuYCLcqnbJfh8juOxqO9nymnng==, tarball: file:projects/arm-marketplaceordering.tgz} name: '@rush-temp/arm-marketplaceordering' version: 0.0.0 dependencies: @@ -14490,7 +14490,7 @@ packages: dev: false file:projects/arm-mediaservices.tgz: - resolution: {integrity: sha512-JCe9wk68ULfSUscfpF1UX4NiTdHcb+rJmaE4qGYoPIO9Al43e2Ze5+7Cv4u2CBmpgXQl+X45GZ1OvfQlj5f3qQ==, tarball: file:projects/arm-mediaservices.tgz} + resolution: {integrity: sha512-BgnrQdDFWUSFDz3Tg1TuCufWx7cWzdxPy5jiE4Vahh6q1Sau+ZXkImuQfgCPBewbwuD5YRzmog90aij2pixO8g==, tarball: file:projects/arm-mediaservices.tgz} name: '@rush-temp/arm-mediaservices' version: 0.0.0 dependencies: @@ -14516,7 +14516,7 @@ packages: dev: false file:projects/arm-migrate.tgz: - resolution: {integrity: sha512-f6NFvW88XbfPNiBa9lZf1XjSWx0paxkFDg5ZiSZGFCgPpsM1tVpbm7nhAPlRJ2bPrX4ma4lKyT7fSHlOHfbMtA==, tarball: file:projects/arm-migrate.tgz} + resolution: {integrity: sha512-EsI5u59z2UvAfC+sxhg8QYYWLLPgizHAzj+34J8McljMMK5HdIX8NR7oGahB/IS7LbDrSCudFQnhHpdM5tqp8A==, tarball: file:projects/arm-migrate.tgz} name: '@rush-temp/arm-migrate' version: 0.0.0 dependencies: @@ -14541,7 +14541,7 @@ packages: dev: false file:projects/arm-mixedreality.tgz: - resolution: {integrity: sha512-qhDitBOZQJ8wZu790uxIHJFlc6lkigeYZeRIyE0ZSPLoPhbdS5HFFI5l9ZXOTwMpDvtbS9g+mcjsVZS0gslM5A==, tarball: file:projects/arm-mixedreality.tgz} + resolution: {integrity: sha512-TFBvqMviLuVaFiL+41PT970i6IacVvwKbsdGdBAzcp7LCoBPfk3bsf9tkNIlohiMQhEpYlbX2rDHOfwXfp6Ogw==, tarball: file:projects/arm-mixedreality.tgz} name: '@rush-temp/arm-mixedreality' version: 0.0.0 dependencies: @@ -14565,7 +14565,7 @@ packages: dev: false file:projects/arm-mobilenetwork.tgz: - resolution: {integrity: sha512-o5njt659N6LnhWKMcBW94pUuASthX6ugfVujtXIwfBqi05c5JUORiVaslXFC3Md7hKlbZdEPhkDSZiLQ/3bEHg==, tarball: file:projects/arm-mobilenetwork.tgz} + resolution: {integrity: sha512-PHpzsUSyfWwqlY0TdByDCPCP/iQa+TXFBE8/YZA8EZ7yGBFMYAqQyWJ9L0Zfyo8udc2XbVnMe8slvF9ymztMmQ==, tarball: file:projects/arm-mobilenetwork.tgz} name: '@rush-temp/arm-mobilenetwork' version: 0.0.0 dependencies: @@ -14593,7 +14593,7 @@ packages: dev: false file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-vkKc4uSPMNDYw6D8MphLk2bxb2j/8+CsxG0+o2NbCo6bMGwJMrCQTeak0mXjqGcI3lP88CFDYXWj/E6aM82PDQ==, tarball: file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-aJXU3FuqXK0gZbzRK156P1uNQiMR9kfc3Ikcmw36VPd/af532E96mPNGyypOt3k6kkmZ6vwrDkW7VDJiMRHYLw==, tarball: file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-monitor-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14618,7 +14618,7 @@ packages: dev: false file:projects/arm-monitor.tgz: - resolution: {integrity: sha512-I7QRyHkxkvKesZFJv95GWdzkfC4gg3o9Zf0LqJozkhHwfOwqCN6NpIDBkGvnkNsE/Aii45sYahHHmx2S5Dy7Jg==, tarball: file:projects/arm-monitor.tgz} + resolution: {integrity: sha512-v0zJ0dtlJc1rm6YzH+O+cpCGAmGviH8i9oMX83LMnxTMA+Q/fzmcVU+xlFTmqX07B5FIJ4+WWp7vytDPrwAe2Q==, tarball: file:projects/arm-monitor.tgz} name: '@rush-temp/arm-monitor' version: 0.0.0 dependencies: @@ -14644,7 +14644,7 @@ packages: dev: false file:projects/arm-msi.tgz: - resolution: {integrity: sha512-M64asTlD/0V8rw/H3Z2E34WbXrWlwCN4TMANcJDT4wM44YjwnksHKPTTSxlnYqk3JFAq+kpABEv7gfBI72dg7w==, tarball: file:projects/arm-msi.tgz} + resolution: {integrity: sha512-T2Is5PWfmYd89CNO7IDiLvAldIRuBgi2nRRY7JpYivcd1dcBpuqOylDUFO7gnvnFLt299/bd/Wxdz6vBwnFQKw==, tarball: file:projects/arm-msi.tgz} name: '@rush-temp/arm-msi' version: 0.0.0 dependencies: @@ -14669,7 +14669,7 @@ packages: dev: false file:projects/arm-mysql-flexible.tgz: - resolution: {integrity: sha512-GarbkSf+Fgjr2djQmrmh8/Bx/POxLBFcFH75rhdZIQGj58UBmX4ZAIIzlFu2WFfHX3jkeEkIczfvW2hJ6hajvA==, tarball: file:projects/arm-mysql-flexible.tgz} + resolution: {integrity: sha512-buMqNIpmdDN+xqwZ6+4h53cSp5JKJfh7xGk6BN4KQh/S3sxoS3r0PntW2WFe5d8Nao57V2pvKBUBf0glqeOpzg==, tarball: file:projects/arm-mysql-flexible.tgz} name: '@rush-temp/arm-mysql-flexible' version: 0.0.0 dependencies: @@ -14695,7 +14695,7 @@ packages: dev: false file:projects/arm-mysql.tgz: - resolution: {integrity: sha512-I7Epx9dLt3HonBwSByjs3ZcgLKQx6WbazNeY2B0URJ7pZ47AxLjGTMZA1HN+fWUDDyWZC2JtgvUzNr39q3hbSQ==, tarball: file:projects/arm-mysql.tgz} + resolution: {integrity: sha512-BYh/m9H21jhhvhw5MkbTQJiJOnIB+tHjn8sDiWiDv7xp4ApuZIfz6JQRf1z1Dlql1a3I948LN908IvpDNAICRQ==, tarball: file:projects/arm-mysql.tgz} name: '@rush-temp/arm-mysql' version: 0.0.0 dependencies: @@ -14720,7 +14720,7 @@ packages: dev: false file:projects/arm-netapp.tgz: - resolution: {integrity: sha512-fLlv8y56IayUBD+7gyEH8Ego8aaiFhQSpKcJz9ZUgnVcoKKPovo6D8h9vAa3g6PxPRLml/ahXk+BCspdmMu5uA==, tarball: file:projects/arm-netapp.tgz} + resolution: {integrity: sha512-EJYWLbib23LqAd8oMD82aPMY6/7elrhBmF66L/BZH+41h2HZQ5pqoqxC9r8wMAoP+B5xhs/Rv+c3wIZHk5h6uQ==, tarball: file:projects/arm-netapp.tgz} name: '@rush-temp/arm-netapp' version: 0.0.0 dependencies: @@ -14748,7 +14748,7 @@ packages: dev: false file:projects/arm-network-1.tgz: - resolution: {integrity: sha512-nMvhos86Y+Anuh8YF4W5w1bcJmxBCbFgUT00rFVe8vMFt5QzLnD5lvwBfxMBRXfw74r1D/1wdvVldD2L1fcL3g==, tarball: file:projects/arm-network-1.tgz} + resolution: {integrity: sha512-5D2VRd1D4H1NhU4A7q3CCH39v+MTzCKrLVp5GXRaoW9S5HCjIIcNozdhTBlbttgsEih2jpwqmRFwCuYUZ+6D4w==, tarball: file:projects/arm-network-1.tgz} name: '@rush-temp/arm-network-1' version: 0.0.0 dependencies: @@ -14776,7 +14776,7 @@ packages: dev: false file:projects/arm-network-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-dH1S7kO282L5a7nQbsdLL5vi/+cNwPogSg4qDEgcWcgXDonQEpQvlAzPhayJITVDrFzjhOGKy7DVg3bx7x4SXQ==, tarball: file:projects/arm-network-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-MNN3OIbtYpCQj24XQH7l/2fuvWMdT9mlEMJcxZHkzrUxxzla8YKjFp1kvIMEz/m7Wj3wABVhEn4R85mW6cI8Yg==, tarball: file:projects/arm-network-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-network-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14802,7 +14802,7 @@ packages: dev: false file:projects/arm-network.tgz: - resolution: {integrity: sha512-eNsvy+aPWeO+O9oEBAmWwV1dLb+GSO1CNC2UU7t64RgvDjjcpjQVUZVknWOE6xQ1R0Dtj538jzL1R9F/IObQnw==, tarball: file:projects/arm-network.tgz} + resolution: {integrity: sha512-FTUXwYSiwG8O1r1paq7xUbhYMSL3P+zLGcJRXeREl0m7wtew8b+No661E20B2RcB6GO80Qhoww6mC4qywovNWg==, tarball: file:projects/arm-network.tgz} name: '@rush-temp/arm-network' version: 0.0.0 dependencies: @@ -14845,7 +14845,7 @@ packages: dev: false file:projects/arm-networkanalytics.tgz: - resolution: {integrity: sha512-KZUU1ybquvEDlFPTsPTxrPcGHztYtX+mHHY4P9iwz9rRZPV90gsFitigEiVFm86NvB+XgK9+zRxPQSpGSzJQPg==, tarball: file:projects/arm-networkanalytics.tgz} + resolution: {integrity: sha512-DGsIaGvwvr0m+RgkeYRngC2OAZj5IAYn2wbMa3tvXjvkFqy/KYpbI0tsoeLShzAZ+FYUvd/XRNXRHLXf78m4ZA==, tarball: file:projects/arm-networkanalytics.tgz} name: '@rush-temp/arm-networkanalytics' version: 0.0.0 dependencies: @@ -14873,7 +14873,7 @@ packages: dev: false file:projects/arm-networkcloud.tgz: - resolution: {integrity: sha512-oCjFQd6DTvWkUnz/bePDKGTVDtBRX4P5uZjCYZavzcbf2pjv0XXIp34h3i2i8eoqwOPfCByEpzQ/ASjYQf5soQ==, tarball: file:projects/arm-networkcloud.tgz} + resolution: {integrity: sha512-wl32nnEop7mdoiWNUWi6esbKN+Kx3H5LgDkjaMhZdDp6mkeEiCxTKi75wBAyuecSoyArjAOyuEXioe1Dw7rz3w==, tarball: file:projects/arm-networkcloud.tgz} name: '@rush-temp/arm-networkcloud' version: 0.0.0 dependencies: @@ -14899,7 +14899,7 @@ packages: dev: false file:projects/arm-networkfunction.tgz: - resolution: {integrity: sha512-L6MSrVuDyh+8JLAy7a54qpZnQAdsOz77GfT59pifIlfX6qYA0M2Uz/w+3XiB6jXVF16TeSF/vnPkc1wT1BgXeg==, tarball: file:projects/arm-networkfunction.tgz} + resolution: {integrity: sha512-qsnYQ6abPJFFm6KHPm9n9NQcNHMKdQGAKroIds4cSSAimRCtM0QMiFOFaOkb9IKm+RoQD3G++y8LUbKIaQdZIw==, tarball: file:projects/arm-networkfunction.tgz} name: '@rush-temp/arm-networkfunction' version: 0.0.0 dependencies: @@ -14924,7 +14924,7 @@ packages: dev: false file:projects/arm-newrelicobservability.tgz: - resolution: {integrity: sha512-wVVS6P2Gzmo2EMlE37493ylmsp50XNU/ZJJ80p4L1/xLGJ8lK8rNNz5BdOgjAgs+7O8dL9vX5/lUesctnDvXpw==, tarball: file:projects/arm-newrelicobservability.tgz} + resolution: {integrity: sha512-GSeksFsLsnuqT5AChec3MDgdoZdIxX5lByM3sBM+wUkkh27fe1WS8umzbBsyDy8iqhagKmOI0Nhv9bdxSPqSKw==, tarball: file:projects/arm-newrelicobservability.tgz} name: '@rush-temp/arm-newrelicobservability' version: 0.0.0 dependencies: @@ -14950,7 +14950,7 @@ packages: dev: false file:projects/arm-nginx.tgz: - resolution: {integrity: sha512-hP2O8USlWuBY+IeEq4VgU/d3FxHu3uL/NtogNQihHGMtf/AiIaeVDTK1Lb1OMxHV+BfksrR/6YNDBq35kPwNRg==, tarball: file:projects/arm-nginx.tgz} + resolution: {integrity: sha512-rOeUkKVUcxrV9QJn1mLZWoR2683ZwwFsrK7+N7PDokroeQjBMT0wECdx/8vWBDtad59HRNLFkjNhEvys4+VnMg==, tarball: file:projects/arm-nginx.tgz} name: '@rush-temp/arm-nginx' version: 0.0.0 dependencies: @@ -14978,7 +14978,7 @@ packages: dev: false file:projects/arm-notificationhubs.tgz: - resolution: {integrity: sha512-rN7tyedxzNW9C0gOgT206cHF50HIQ7N3UOJ0xY5BTBR6MHoqX2YIhzTVfMj748yxlRnRJXEC8Pf4badNAWw8Ng==, tarball: file:projects/arm-notificationhubs.tgz} + resolution: {integrity: sha512-N+1dIYZX//qKs6r29vLpRU/mC2UuNesoVCgKDEFYUdM5tmmSaE3EcDjflJjevt1kI+9HAeEILgrFeCl0c0A7cQ==, tarball: file:projects/arm-notificationhubs.tgz} name: '@rush-temp/arm-notificationhubs' version: 0.0.0 dependencies: @@ -15003,7 +15003,7 @@ packages: dev: false file:projects/arm-oep.tgz: - resolution: {integrity: sha512-gFkLaRzSYOeCcghIoGXEIc9nmCaNgSQtWQpzfd0bF3UT7tsTex9G1rgX9Rn0kUG/S3CZn9xuKucXbkLY6KBBoQ==, tarball: file:projects/arm-oep.tgz} + resolution: {integrity: sha512-p4grfrBplJDSZ8wQJf/+deFfNlowGkpv/fj3sDR3CtGkaCX/3TiGzNkN7fljs936o0QKbtDqCNpBSRwuvieaPg==, tarball: file:projects/arm-oep.tgz} name: '@rush-temp/arm-oep' version: 0.0.0 dependencies: @@ -15028,7 +15028,7 @@ packages: dev: false file:projects/arm-operationalinsights.tgz: - resolution: {integrity: sha512-FAaeATOERnWqR2p+cAwaBYfZ+hLqQ4grsanafdRkvW237mtiQ87sdO8uF8BLRoJQwvPavzB0IDaHHAiVPgHNYQ==, tarball: file:projects/arm-operationalinsights.tgz} + resolution: {integrity: sha512-PllTyznDw6pw7aVWsIRgx/5HKSPhxHor/2tm5I+wzKrfJXy7B3dOVsQRE+vzAiyD4cPdP80BIm+RFoUBEVdISw==, tarball: file:projects/arm-operationalinsights.tgz} name: '@rush-temp/arm-operationalinsights' version: 0.0.0 dependencies: @@ -15054,7 +15054,7 @@ packages: dev: false file:projects/arm-operations.tgz: - resolution: {integrity: sha512-UuykXiaAPATox5WoIaN61k3uFbDfg0KXKSX+dZjWLQwGCNgiqoxmK0LTOAFbc2zZC1bextfffABD51nqeFpOZA==, tarball: file:projects/arm-operations.tgz} + resolution: {integrity: sha512-+YaOQpB487AIduj88GLrfZoi+G3aTw3cTcYDeik3FaTCPizAa45aML+dF5GlVlvyEWAInRzPSdgz90k7JwPTJg==, tarball: file:projects/arm-operations.tgz} name: '@rush-temp/arm-operations' version: 0.0.0 dependencies: @@ -15079,7 +15079,7 @@ packages: dev: false file:projects/arm-orbital.tgz: - resolution: {integrity: sha512-yD1Ek0R/o7bNgjMML6DAKq8JqtJ13iuE1FxnA+CB+Y2SQ/FVPiycNxp144IZ6MiDausC9lmnh2+xekPrLlF3Vw==, tarball: file:projects/arm-orbital.tgz} + resolution: {integrity: sha512-4ftVPzRzzRlRWFp/rLcyynBy3Pw2PG1B5MiFZ0exagsZ+GiaqL2Y4NuwGhmHYpfznRy4/+VDRMtC1tCiyOPYhw==, tarball: file:projects/arm-orbital.tgz} name: '@rush-temp/arm-orbital' version: 0.0.0 dependencies: @@ -15105,7 +15105,7 @@ packages: dev: false file:projects/arm-paloaltonetworksngfw.tgz: - resolution: {integrity: sha512-iWlLycrW9a/c4yhAA4B/0qqT1AzE6VVYhYnsjS7EWkZMwD8BlJKtJwqtB/vxOPvkZh8cLFyc8+xhk11qI2QgSA==, tarball: file:projects/arm-paloaltonetworksngfw.tgz} + resolution: {integrity: sha512-SL3jNpPdvBFXxF2hc6Ta6PE/iGj0jdjPsg6YobpFVPhnvcEvrt+fJWwuBn5K2gXFSThB9yFbzpT5/4AiZDkcmg==, tarball: file:projects/arm-paloaltonetworksngfw.tgz} name: '@rush-temp/arm-paloaltonetworksngfw' version: 0.0.0 dependencies: @@ -15133,7 +15133,7 @@ packages: dev: false file:projects/arm-peering.tgz: - resolution: {integrity: sha512-LcXWlL8tiCMUP+WvB0q8HGvpUj/pbl8RAo6aGh2u5F9CENtY33e6BtYe3MERcuCIhBpc3GmW2glFMKEFvw4Sag==, tarball: file:projects/arm-peering.tgz} + resolution: {integrity: sha512-ogFGSmWM/EBSvZvx6rK9QN43Wi+xtXx3fFuodfkg4SEQKBxL/XPJFHLRjenGhZOiv04mXVZQODyTshRoluExTw==, tarball: file:projects/arm-peering.tgz} name: '@rush-temp/arm-peering' version: 0.0.0 dependencies: @@ -15157,7 +15157,7 @@ packages: dev: false file:projects/arm-playwrighttesting.tgz: - resolution: {integrity: sha512-zhH4VeqKh/KKiHAEH7Tbqp66lJHiEGR6EIYVdzwSpTvwlmNRApLD+Fhycpl7uMgNbt8Nla89EV5yZd1OSot5kw==, tarball: file:projects/arm-playwrighttesting.tgz} + resolution: {integrity: sha512-C3qgJvs567F8k01piLvHg3NMGH3rKPNqkvOC1u5BWvMtH/fiAAnOCHOkjsJsdfYyEwsm8AFkHLqGhBGj/EZmkw==, tarball: file:projects/arm-playwrighttesting.tgz} name: '@rush-temp/arm-playwrighttesting' version: 0.0.0 dependencies: @@ -15183,7 +15183,7 @@ packages: dev: false file:projects/arm-policy-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-1s+dWhl+gDeyscYhm7HryK0Atythwieh8QUZv99/tB6pseykQeM5viw1sjmKg6c5h8Q7vNXptjiVSQx8bWBOOg==, tarball: file:projects/arm-policy-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-meYae/bw8rVIhaEJ1zGS2NEkm6Bdg6DYLvurXXYPgdIFm+9hiMdFusCPoxDudkOMZlRM25/s7a+AAOjtBQshvA==, tarball: file:projects/arm-policy-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-policy-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -15208,7 +15208,7 @@ packages: dev: false file:projects/arm-policy.tgz: - resolution: {integrity: sha512-vFsMe45uSth2du6MWCBhe8N7V6ePYDQ2NIqEkuyNU0V3OH2i1GkU6pSAOffO0o3FLA1u6D/iOBGWT/0mb3r2ww==, tarball: file:projects/arm-policy.tgz} + resolution: {integrity: sha512-/dhmPL/hUyUFBeA/k+1Ex91Deni5MOfUdESJsLZf9oiDhsQ0V+pUve/VPCCTPsEykUDOe1gsV5MeifYikk+1Sg==, tarball: file:projects/arm-policy.tgz} name: '@rush-temp/arm-policy' version: 0.0.0 dependencies: @@ -15233,7 +15233,7 @@ packages: dev: false file:projects/arm-policyinsights.tgz: - resolution: {integrity: sha512-mkbkZOUHQ9z/1Y9iLIMpny5Zs+VBFzHQRpz2nZr7DMw6SCnJs7ylcaJPTQ+K8xOyYTMK4uaMcM5tW1I9tbnR9A==, tarball: file:projects/arm-policyinsights.tgz} + resolution: {integrity: sha512-iEf4R9PNP8bnOfs4fz++EuHauklKekIU8WV2j7GoYwfWjH6AT+ZwKPO2Z8Fle6s/flQoXeXFe/SgIrb7EoB2nQ==, tarball: file:projects/arm-policyinsights.tgz} name: '@rush-temp/arm-policyinsights' version: 0.0.0 dependencies: @@ -15259,7 +15259,7 @@ packages: dev: false file:projects/arm-portal.tgz: - resolution: {integrity: sha512-pf4Jwvp3r0b5g33pyw2cNud9zDGRBv1BPBSiYnJho5XAAY5NA5XoNWYQGuBxjwVoEZrbjj/mUMUXHfQi+vYzkA==, tarball: file:projects/arm-portal.tgz} + resolution: {integrity: sha512-rEwq2/0i3ivkGIaddIZN4m02Nqmt8CMgEXtfulZYfvefGtdSWv95e6SgOPpXd3Vv4BaA77v88HgXyVSk2xMflQ==, tarball: file:projects/arm-portal.tgz} name: '@rush-temp/arm-portal' version: 0.0.0 dependencies: @@ -15284,7 +15284,7 @@ packages: dev: false file:projects/arm-postgresql-flexible.tgz: - resolution: {integrity: sha512-aal+/jxBqEm3ZCUOFIkbPsbsk8bX17xOvdzsLZ3YVWSHemWihfs2Jlrq29q1yf0KJ5j1Bbzqjm6GGwb6WeN66w==, tarball: file:projects/arm-postgresql-flexible.tgz} + resolution: {integrity: sha512-+pinZUCLY3osKk2It9Cb/Kz9RHg7I5/hYD1rFx4EnxyPtzXCyebcaclarG/z/Mj2Q+VxiZD/Ya2OTYCXq5Dt8w==, tarball: file:projects/arm-postgresql-flexible.tgz} name: '@rush-temp/arm-postgresql-flexible' version: 0.0.0 dependencies: @@ -15312,7 +15312,7 @@ packages: dev: false file:projects/arm-postgresql.tgz: - resolution: {integrity: sha512-X3FWW+TKvExNm3l9lMOFVmuIZ9mkU3bfbk4d9pq+r36dh9m8PRZsj/8RBSujRrVvALLztV0M3rRNAlRwZuKqNw==, tarball: file:projects/arm-postgresql.tgz} + resolution: {integrity: sha512-NdHSMtiPL8TX3eydRfQX2bLx6X3HOAy5b1jNI0eaXqkKHrZdwa6ZFbkyiV1/1xIvnLjOxGnnIRSCR6mnf+Sq1w==, tarball: file:projects/arm-postgresql.tgz} name: '@rush-temp/arm-postgresql' version: 0.0.0 dependencies: @@ -15337,7 +15337,7 @@ packages: dev: false file:projects/arm-powerbidedicated.tgz: - resolution: {integrity: sha512-u6iji3CkXX6nvfKVbRye1qsq6XT4IrRjhHo7tBM8IB7/ChmtkQNbLus2/E9x/OCYPr/ihNfryaSjsZ/qZNbOsw==, tarball: file:projects/arm-powerbidedicated.tgz} + resolution: {integrity: sha512-CzzJBYXfgD7IOt26RnYz7wW2bspBiZetqHpsMyqeKpq91z53szcIwM9Vpi83bX4QgVvKdfrlULtxzuCsMtURsQ==, tarball: file:projects/arm-powerbidedicated.tgz} name: '@rush-temp/arm-powerbidedicated' version: 0.0.0 dependencies: @@ -15363,7 +15363,7 @@ packages: dev: false file:projects/arm-powerbiembedded.tgz: - resolution: {integrity: sha512-CVBbxNlfW+Vj/YRcCsHjRvQo4dfML1Zt+AFaAhq+0HpuC+ndg+sA+xor+xiI0tXqTZCiRzptV4/n5WVi8+FXEA==, tarball: file:projects/arm-powerbiembedded.tgz} + resolution: {integrity: sha512-ooOm7r/prkWBsD0tWktpHHoIWoZ+NDW3VKccLhenK4QP0xROUSCRcpN8YhKIPAH9GJazu+sVLeXvpcJdqJhpAA==, tarball: file:projects/arm-powerbiembedded.tgz} name: '@rush-temp/arm-powerbiembedded' version: 0.0.0 dependencies: @@ -15388,7 +15388,7 @@ packages: dev: false file:projects/arm-privatedns.tgz: - resolution: {integrity: sha512-T3S/1HMicVST5970M0bZGYNA7TcWTTNhkUvbatmeki7j8UR3RpOQ3sktOO2evnAlXqIZHEO0J+TWdJnLB+hi/A==, tarball: file:projects/arm-privatedns.tgz} + resolution: {integrity: sha512-ohzYAvyZ+jBCancO/rV1yS1T9MFdYZR7eI5OH5VqDXIslKgGbeqUcHUHoJ39+HpWHUcj1IEgJQ59VEJmISqCSQ==, tarball: file:projects/arm-privatedns.tgz} name: '@rush-temp/arm-privatedns' version: 0.0.0 dependencies: @@ -15414,7 +15414,7 @@ packages: dev: false file:projects/arm-purview.tgz: - resolution: {integrity: sha512-WWQd4B0nMxJpS2NwkX1hay+Genti3k2955UNtTT5AvAn3l0JiZnir9Z8fFyOpl6I6R/B5Oc2SnMmZyjyc132Iw==, tarball: file:projects/arm-purview.tgz} + resolution: {integrity: sha512-SjuWr4owhgUGtuEM61Nk3J2sG5mO3Hec1jznf7ewhls6YGu/klJDbLib7Y/vhGs9vK98XcJvU/QBB4E7psXgZg==, tarball: file:projects/arm-purview.tgz} name: '@rush-temp/arm-purview' version: 0.0.0 dependencies: @@ -15439,7 +15439,7 @@ packages: dev: false file:projects/arm-quantum.tgz: - resolution: {integrity: sha512-LFfbG4hOrqdD6IAQ2bCDyg0EZuQFXiqSz4k4HIYEDC3SMo47qiAbfHHL+Je2IBMqJW8w452hQC6Xn10jWwzscw==, tarball: file:projects/arm-quantum.tgz} + resolution: {integrity: sha512-+bm/Ntyil5fvVu3EphArLIXi0MxwS25YNZdk5eWPQuRnncomVybWv59nYt/7Qhx1gqbQLX7mkOI7nkZFiIDa1A==, tarball: file:projects/arm-quantum.tgz} name: '@rush-temp/arm-quantum' version: 0.0.0 dependencies: @@ -15465,7 +15465,7 @@ packages: dev: false file:projects/arm-qumulo.tgz: - resolution: {integrity: sha512-1TgEOJXMp8d/1yj+jLvx2Mg6nq85AzGRlaXWr4TguM4jQxAnMSZEdO0Gbg7Xv/upBO3OQjk4tU8lVwPmQgAr7A==, tarball: file:projects/arm-qumulo.tgz} + resolution: {integrity: sha512-cAqFqhEq3ATyf2572aMpizb/9pavF96MbS1io+iF45Y1MdqulkLJi0TR/MD815jV6GNJqOpRICcTNhptG6+pkA==, tarball: file:projects/arm-qumulo.tgz} name: '@rush-temp/arm-qumulo' version: 0.0.0 dependencies: @@ -15491,7 +15491,7 @@ packages: dev: false file:projects/arm-quota.tgz: - resolution: {integrity: sha512-DaQ2RKgvW4CCU88WfwJqh1AjGLsVIY/KRQoF5IFLTgFt70kabtY82x7Z8wKYLdiBht2mK6E0X25mbiLkLMgOaQ==, tarball: file:projects/arm-quota.tgz} + resolution: {integrity: sha512-VBCKFeQTlpIhyU8luFD/jcjWhqSO4zEJdtVMfX08G9Vp8lf1aAWavtT0RxrDXbsSxDwJlimnAnsbd6bxLCCHYQ==, tarball: file:projects/arm-quota.tgz} name: '@rush-temp/arm-quota' version: 0.0.0 dependencies: @@ -15519,7 +15519,7 @@ packages: dev: false file:projects/arm-recoveryservices-siterecovery.tgz: - resolution: {integrity: sha512-Vkah+13nqznTXublTWuEJhop4jZAmZftvVOKX8l3eNqdYCBoAsLd6+NcFx+B/kMYx39/ZWUlWhsndMMQ89Lb2g==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} + resolution: {integrity: sha512-pdaTJnXJpNqRnx/K4PXz+m9Ldc6arEjQYW962zrvcHcaf/uBGpSgOXYP14/XEMPuRSP3wkADz/9Eo5JFi8pdGg==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} name: '@rush-temp/arm-recoveryservices-siterecovery' version: 0.0.0 dependencies: @@ -15545,7 +15545,7 @@ packages: dev: false file:projects/arm-recoveryservices.tgz: - resolution: {integrity: sha512-97TvNpWxr4p8qEV10Jkeds46MUvjgnIsSaaLKIityV+hjFeoztYOp+sRaf6iRXOQZlTMsft4jzFkywPebdOx+Q==, tarball: file:projects/arm-recoveryservices.tgz} + resolution: {integrity: sha512-m+bA6gb7E7mnzz2PMS527B/N7yP/qJUhkVaIRKBxllRDCAwHDSckKkjGMPp2IygOhm8Y3HDsU10e2Xx/jmfZ9Q==, tarball: file:projects/arm-recoveryservices.tgz} name: '@rush-temp/arm-recoveryservices' version: 0.0.0 dependencies: @@ -15571,7 +15571,7 @@ packages: dev: false file:projects/arm-recoveryservicesbackup.tgz: - resolution: {integrity: sha512-HuZb7tUpp08nfKRc9DijBqThTPX8wTeiW/EElm/4StOh2hyghhG8DwHGnfhCSmMxzyP/Xybb4TrEreustyB2Og==, tarball: file:projects/arm-recoveryservicesbackup.tgz} + resolution: {integrity: sha512-PK8WaUceP03en3mGDM4LOqDX3kw+oib5FXLt1tA9BIGmaZikcSrQwCAhB1/icwbBXtLVFP8kHHU7iNW3mFN4Zg==, tarball: file:projects/arm-recoveryservicesbackup.tgz} name: '@rush-temp/arm-recoveryservicesbackup' version: 0.0.0 dependencies: @@ -15599,7 +15599,7 @@ packages: dev: false file:projects/arm-recoveryservicesdatareplication.tgz: - resolution: {integrity: sha512-HSXCqCJKzTN9xfROr+mkLaqbtx/SItu6AtuA0OcqeiRyvKJkluih1u2VUgJbA69FbjTuNJJ/23+awzFgzqNCRw==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} + resolution: {integrity: sha512-Xo/AzGa7YlmZ5SpTUvHS/786qYM3UxzEwgYZQkUrF3LbTKkSeiRc+cVY9GexRnwWm+aQw8GSKzleW/wBQXVRmg==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} name: '@rush-temp/arm-recoveryservicesdatareplication' version: 0.0.0 dependencies: @@ -15625,7 +15625,7 @@ packages: dev: false file:projects/arm-rediscache.tgz: - resolution: {integrity: sha512-oSpiSvEF99hV1GcF7DLuFDk4u0xM0EJdIJHbZ9mIv6Lr/3jfULWPkbLOySsHsVZqJ4jz4DVblrxSBZetKA9PTw==, tarball: file:projects/arm-rediscache.tgz} + resolution: {integrity: sha512-K/RVN8w/MKBtFXuvl10Ni41ajQ/At592hXMof4WGPTvV8nbHfU5clg+ma0EnKz8lv4FovCn5iSDP5fNaNvOMyA==, tarball: file:projects/arm-rediscache.tgz} name: '@rush-temp/arm-rediscache' version: 0.0.0 dependencies: @@ -15652,7 +15652,7 @@ packages: dev: false file:projects/arm-redisenterprisecache.tgz: - resolution: {integrity: sha512-acezpwVP448o1W19Qn/g1IY4afaMIo4hC045wBlNfArWunSQdEo1T0SZ7WOQtQfLPT46e3PAJXZrp6K76vzpCw==, tarball: file:projects/arm-redisenterprisecache.tgz} + resolution: {integrity: sha512-ltwVRdAuf8h0pjQd5+puqD4nOIrYLcxvsTKcDBm7ZWYebytlibR4VnDHmU73uxv/5XCrYOoa6SpqpfAXfXc0aw==, tarball: file:projects/arm-redisenterprisecache.tgz} name: '@rush-temp/arm-redisenterprisecache' version: 0.0.0 dependencies: @@ -15678,7 +15678,7 @@ packages: dev: false file:projects/arm-relay.tgz: - resolution: {integrity: sha512-VDqA9tMjFrewt2VKLOcv9DR7kS6ZsCcpTVFn+PwlD/UYmogrmp0jyeklXXcXmmaKAJl0OWSWLEpkIkOuxobydw==, tarball: file:projects/arm-relay.tgz} + resolution: {integrity: sha512-zNcz/J1XAPeAE9f5i2URFkB2M9qFJPYPWjQxq7dsCOXXSz6RGvNIL7ltYd6XiqdEqlOlbkyG7lCDykmQqtoMXA==, tarball: file:projects/arm-relay.tgz} name: '@rush-temp/arm-relay' version: 0.0.0 dependencies: @@ -15704,7 +15704,7 @@ packages: dev: false file:projects/arm-reservations.tgz: - resolution: {integrity: sha512-U5oDYTo90gMGpDNd84y8RtiMfjT0uOqzLCEMKj7tjl7XOoWbKg3TYTeP+14uYya1dIpynuVw2lzjTYqPzl7ymA==, tarball: file:projects/arm-reservations.tgz} + resolution: {integrity: sha512-E2rR01NHzQG+i55GJgzLImzpdBq/3NRUvB2T9vHmOtKWhwcuhNyuy+9xqWwghx6dyCPfcZZU/x6BDN14cSS3Zw==, tarball: file:projects/arm-reservations.tgz} name: '@rush-temp/arm-reservations' version: 0.0.0 dependencies: @@ -15730,7 +15730,7 @@ packages: dev: false file:projects/arm-resourceconnector.tgz: - resolution: {integrity: sha512-1odIBZ++9iqQETiYMIU8ILz1A2cJUN7jKtT4njMujdxnn7UgO3RrY5hsR4aZkbrRiIy0ybftpbJ2UCJLC9YfFw==, tarball: file:projects/arm-resourceconnector.tgz} + resolution: {integrity: sha512-IcVsimeIglGo2zPWWAclJXhuqt4MWIHTDHNxcUXbxwv5C1qysuHjDSl+waLYGneolH2sDqKSt2IRdwqDTzUfFg==, tarball: file:projects/arm-resourceconnector.tgz} name: '@rush-temp/arm-resourceconnector' version: 0.0.0 dependencies: @@ -15756,7 +15756,7 @@ packages: dev: false file:projects/arm-resourcegraph.tgz: - resolution: {integrity: sha512-OKP7IQ88SYbxUcSuxY8ncy207KKtVwANKYrNQVZdA3uimF0ePRRv7F2nroHiW15YigixQsXMAIrxjgEljN0coQ==, tarball: file:projects/arm-resourcegraph.tgz} + resolution: {integrity: sha512-Bsj7QzDP1vkWQZ93YhxXaDL3n8LGC7wGna/uQOYmVECuwouW0d3jCQRhyW9DugRT1SL4vjExBzuYQXhwTj9hSA==, tarball: file:projects/arm-resourcegraph.tgz} name: '@rush-temp/arm-resourcegraph' version: 0.0.0 dependencies: @@ -15780,7 +15780,7 @@ packages: dev: false file:projects/arm-resourcehealth.tgz: - resolution: {integrity: sha512-g2a2JOXuAwL/uAll63XhZSeDIrrlc5GJSe22faXjd+9u6NkgasScu0w38NTiuFE4v+I+FBNrEGet43GzUN1n4g==, tarball: file:projects/arm-resourcehealth.tgz} + resolution: {integrity: sha512-6nq35xNqfof98SC3mTZrMS9zl0H1pnbhmtPniBPEyj2x/OFNtgj0qB+THpKWhJnCJCszzHGU6NjwgjAXvCV0mw==, tarball: file:projects/arm-resourcehealth.tgz} name: '@rush-temp/arm-resourcehealth' version: 0.0.0 dependencies: @@ -15805,7 +15805,7 @@ packages: dev: false file:projects/arm-resourcemover.tgz: - resolution: {integrity: sha512-QM9ewsM4Ks+2XMjNEurLsVJQUWqplGUwoR5Nb/2M4PZWwkiEJmjSfPVEdpWDw8joE8Mq2aeu3lpeurP9IOp1tQ==, tarball: file:projects/arm-resourcemover.tgz} + resolution: {integrity: sha512-fFU4bOQKePOIxBQlLdiq0OFEcR5MeqPBKO2OikIxFBSsk4LS/TxFOLnlQFDKdy9X3K6OscstiP4Q2VqGBw7sZQ==, tarball: file:projects/arm-resourcemover.tgz} name: '@rush-temp/arm-resourcemover' version: 0.0.0 dependencies: @@ -15831,7 +15831,7 @@ packages: dev: false file:projects/arm-resources-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-SZ/pVg+FAqORyoq8UYPkXxyLi+Mimyx84A+5KlHtkZKOkKEsDDVMrv4DOIVcKE/5o+siNqjpDTx1aZYJ9Ix2Gg==, tarball: file:projects/arm-resources-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-ck2j/Sq+3hh70zehAAfsIjj6whIl5brGufm8+hoJhZ40RyKWuxI9IHRq0oyRElN//g6ONADb8BJze/iex+VDXw==, tarball: file:projects/arm-resources-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-resources-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -15857,7 +15857,7 @@ packages: dev: false file:projects/arm-resources-subscriptions.tgz: - resolution: {integrity: sha512-VAiAewgE06DsuSDC/BLNIuoKYQurFi+3F0kK4j1f6euWFis8eWBzprc47kZ8J4KqAYKqeHFmHj9FiMbGOx7gxg==, tarball: file:projects/arm-resources-subscriptions.tgz} + resolution: {integrity: sha512-YHy6SVysSN0aGFDukP9Qs6+gPgHGP7TTMm/XukH5QfSb1zC5qfXL+jzHCHHfIsooTiJcRk9aYHHFxpoBqhnZ8w==, tarball: file:projects/arm-resources-subscriptions.tgz} name: '@rush-temp/arm-resources-subscriptions' version: 0.0.0 dependencies: @@ -15882,7 +15882,7 @@ packages: dev: false file:projects/arm-resources.tgz: - resolution: {integrity: sha512-/t5+gAFX7WNnDoRlihKRasQqe3dZTJFmAK05+VInGiAjkhmKuh6wuNBXtnDfXAe94AfQZNzT6d2exR0jrsv0oA==, tarball: file:projects/arm-resources.tgz} + resolution: {integrity: sha512-PaCcUqwetzI4tx1HuiW0ZK+f0dRrt5pdsQRj2FiJW2msNxoDVDXQi1oVVfEuwDs/EeHUXQpHk0rK2q25WPg0hQ==, tarball: file:projects/arm-resources.tgz} name: '@rush-temp/arm-resources' version: 0.0.0 dependencies: @@ -15908,7 +15908,7 @@ packages: dev: false file:projects/arm-resourcesdeploymentstacks.tgz: - resolution: {integrity: sha512-X7rUhN64iAoQglYWtg6xgPvO0n1JYPL0fcDZ6NewFPTtf7EQyFrkpYq1iByM6SQB6ts/CWEAiuD06yxQJNhEcA==, tarball: file:projects/arm-resourcesdeploymentstacks.tgz} + resolution: {integrity: sha512-CxS8maBQ9OpcmfM3R2LQ7/g0x61JR/+S/i8J4NMVNqMKFtP5iJGpcrWOal0PeY/cugZBz0NWSZop+1mOtSc2ag==, tarball: file:projects/arm-resourcesdeploymentstacks.tgz} name: '@rush-temp/arm-resourcesdeploymentstacks' version: 0.0.0 dependencies: @@ -15934,7 +15934,7 @@ packages: dev: false file:projects/arm-scvmm.tgz: - resolution: {integrity: sha512-buQkcIBS3NMmF5GTrmIooZOv7laQYesMN9Hm+LDiWp5CK9wOGmEONtgGczEiRc1htKsx5wrYVicdaLqCpsaI/A==, tarball: file:projects/arm-scvmm.tgz} + resolution: {integrity: sha512-upJHIelqqqhnzFCyIPUZabdwP5cat8mr2FW/kZ3voiROciKwbjQ9tMdfDorvHhg6C7c3l8lAmkuHLd9UKpHUgg==, tarball: file:projects/arm-scvmm.tgz} name: '@rush-temp/arm-scvmm' version: 0.0.0 dependencies: @@ -15960,7 +15960,7 @@ packages: dev: false file:projects/arm-search.tgz: - resolution: {integrity: sha512-IjwX4Ud/kMf22P5x5RPc3ce3jIAHaWM22PRx2r0+nJElz9EpZm+aLoSp6pCTjdtZ5Ps0R76lIWI5ROW52b8qrQ==, tarball: file:projects/arm-search.tgz} + resolution: {integrity: sha512-Kzxc0XxTyF6FbPY8T+ENqaT5abKTHnwNWejhrHQB4/FF2WGGC8bWqTZGg2gM1SfvKKogkmXAo6I5YANrBlqlyA==, tarball: file:projects/arm-search.tgz} name: '@rush-temp/arm-search' version: 0.0.0 dependencies: @@ -15986,7 +15986,7 @@ packages: dev: false file:projects/arm-security.tgz: - resolution: {integrity: sha512-UxcufdBvVLr6cxwYQudYksT4P5D9rAFOyz79IZYExnmSA05sIYItlXX8f5E4lJB6xJWkZcrAYG4pfusbY6eGGw==, tarball: file:projects/arm-security.tgz} + resolution: {integrity: sha512-BgTvWlnx24iABUAjVhOFXeG341+nKojsKGIjBfJ90dxJvLY92qZHfDi3RkEZHd0GoJuSFotEW7BSfoeUWyefRg==, tarball: file:projects/arm-security.tgz} name: '@rush-temp/arm-security' version: 0.0.0 dependencies: @@ -16012,7 +16012,7 @@ packages: dev: false file:projects/arm-securitydevops.tgz: - resolution: {integrity: sha512-qmOdO9uPSVNHSW1Dffp7QKYGSXErle1euCNxzMBBnHhS6yOBweCW8nxgvu6dMjRfj2hhd+Qmt4gs2hHSgvVFyw==, tarball: file:projects/arm-securitydevops.tgz} + resolution: {integrity: sha512-Q+s4fG7urZaQLwltV1BGZXrMHTFxd21twJKW1TS3j4PCe7Sj2ZhAcQDVyrVEwMc2HRmK4j31cIhwOYwPopNjPQ==, tarball: file:projects/arm-securitydevops.tgz} name: '@rush-temp/arm-securitydevops' version: 0.0.0 dependencies: @@ -16038,7 +16038,7 @@ packages: dev: false file:projects/arm-securityinsight.tgz: - resolution: {integrity: sha512-CTRy49yCzIVwVp6GcEZDiJxfsqXzsuYPZxTIY1xoXcOUyEQQ4gFjV7ChSpbBUzpW8rLpgrPt1R1UGDQtqO40oA==, tarball: file:projects/arm-securityinsight.tgz} + resolution: {integrity: sha512-Hw8u4bhS+XQWJTlwWGmH8M3uYdVd4hOi1mhRAHWcy5sEIR8dutcJTzOp3+5vVjt206Fk582a4m0V6rskKs8Qsg==, tarball: file:projects/arm-securityinsight.tgz} name: '@rush-temp/arm-securityinsight' version: 0.0.0 dependencies: @@ -16064,7 +16064,7 @@ packages: dev: false file:projects/arm-selfhelp.tgz: - resolution: {integrity: sha512-DAfnFx6dpuSZC3hfm+2D5OblM7ok0dPhtUlCSHluLaItq5d3dFV0w1NWaYiu/EmOgkZOlDs4s+KdHgbR5hu5LA==, tarball: file:projects/arm-selfhelp.tgz} + resolution: {integrity: sha512-DSdz5cwu1caW7HIjJ4XrQEP7bNwMAjBSqII747IMgOuciq2tLkCHoMvtjntLPXOheqM7ANqdYWAjm3IE2Uhm+Q==, tarball: file:projects/arm-selfhelp.tgz} name: '@rush-temp/arm-selfhelp' version: 0.0.0 dependencies: @@ -16092,7 +16092,7 @@ packages: dev: false file:projects/arm-serialconsole.tgz: - resolution: {integrity: sha512-4M6uaBlOPuBSHWz0B34+BP+Vc9DRxaCOuEB0IGqLo+61m4PsFFGVrkBSE94xXgWtQADE1jLA+lIkEL+4vxVC2w==, tarball: file:projects/arm-serialconsole.tgz} + resolution: {integrity: sha512-Wbiep63a3vt83Gz+baTKtwpLGaBlJTOoN3eM6kAy7/f1vG35GfUIWSJd0N+8o0L+swo+snap7GaRh1MNB6Ur7Q==, tarball: file:projects/arm-serialconsole.tgz} name: '@rush-temp/arm-serialconsole' version: 0.0.0 dependencies: @@ -16116,7 +16116,7 @@ packages: dev: false file:projects/arm-servicebus.tgz: - resolution: {integrity: sha512-nnFgGqRwTqkKnkfhfMTUtnPgOdhQPcUrnQ5UIcgJyXTlYkz37Sy54f/ZrirqgovfwLdS88ENisMpdYoGIHvLgw==, tarball: file:projects/arm-servicebus.tgz} + resolution: {integrity: sha512-ILGBvitCY9YYi4UxPSMPHzSJ47Tn1VlwBlqh57PNh0/fWjSJdUxEfiaY82VRmHEQ7DutI7NUUhhhweCR/iATRQ==, tarball: file:projects/arm-servicebus.tgz} name: '@rush-temp/arm-servicebus' version: 0.0.0 dependencies: @@ -16142,7 +16142,7 @@ packages: dev: false file:projects/arm-servicefabric-1.tgz: - resolution: {integrity: sha512-7pjyRLOk/8NZyil4uRDCohJk7461Dv/GNebHRet8m6EAEFfLBmZfgdqmyMs569dpz3qKGKAefwWPRuShgXVwgA==, tarball: file:projects/arm-servicefabric-1.tgz} + resolution: {integrity: sha512-HiCC3jKKEKDekifp3psOJoLIwpAidGvO2BPm5IhQR8Z3M5nF1nwNOww/gXRL2LGX/IXXCbiVXvzfCM7tQyL4Cg==, tarball: file:projects/arm-servicefabric-1.tgz} name: '@rush-temp/arm-servicefabric-1' version: 0.0.0 dependencies: @@ -16170,7 +16170,7 @@ packages: dev: false file:projects/arm-servicefabric.tgz: - resolution: {integrity: sha512-bDPEZs+6b4dJ5y7h9Ab3IeGMulQi7iSDAuzRwUeVF7379egIxryiMUGSuI3iQcsYbcC5D5/Tu7rRVXw1xgRerA==, tarball: file:projects/arm-servicefabric.tgz} + resolution: {integrity: sha512-gB0hSGZliQkHxp4doqFgaKcqxdIV1cnjqD1suGO0HExFT4xrU7MKu+4vCo16OnYW/1IHC9p7eKw0ndSgNw2uFQ==, tarball: file:projects/arm-servicefabric.tgz} name: '@rush-temp/arm-servicefabric' version: 0.0.0 dependencies: @@ -16213,7 +16213,7 @@ packages: dev: false file:projects/arm-servicefabricmesh.tgz: - resolution: {integrity: sha512-95jWzWyMHz7QgoE2LlYCICMO8K5v5lJ/5b7MP2XSaB1Bc00gSQAEH88eL2V10TQN/ATUSQuKXi+0Eys/r55BJQ==, tarball: file:projects/arm-servicefabricmesh.tgz} + resolution: {integrity: sha512-CMQoOPmB/zUSoLKT6K+VJM9DPkSDflT5rvEVU39k5N6RjHuqNo/Uu6dpIoN2KK2Qld+85kWj7Shw/OGQMXzKZQ==, tarball: file:projects/arm-servicefabricmesh.tgz} name: '@rush-temp/arm-servicefabricmesh' version: 0.0.0 dependencies: @@ -16238,7 +16238,7 @@ packages: dev: false file:projects/arm-servicelinker.tgz: - resolution: {integrity: sha512-S7Woy1OsRRV7zWVt3VShwZbUfT1M02PFqFXeRvGdb1Cm3/Twon/T8W9lxDol5oRDE75tIOpasNLsqXqeVKuejA==, tarball: file:projects/arm-servicelinker.tgz} + resolution: {integrity: sha512-mqBlE0zc9U6wDMIT0jsD/AYQxcWev3OQvDa95WdZ1E40K/M9RsARfIWbwURCMgpZi+zHrvjJgkKkarBp61k5nw==, tarball: file:projects/arm-servicelinker.tgz} name: '@rush-temp/arm-servicelinker' version: 0.0.0 dependencies: @@ -16264,7 +16264,7 @@ packages: dev: false file:projects/arm-servicemap.tgz: - resolution: {integrity: sha512-dWoxE2cOzAF2t8ofcBG4FZPyxQF4MFTIi+8ELyn8LQmItXT97/eyHx7iAE6tE5YjoASeW8yH6Q2C38q/voXSAQ==, tarball: file:projects/arm-servicemap.tgz} + resolution: {integrity: sha512-VtcN3N9nq96VaTS7f6nB/41Fqh192s/6dcXwxJxC9P7odhsl17+QUbjswpmhzuIiW15T4cylshX+TCm+Xn34iw==, tarball: file:projects/arm-servicemap.tgz} name: '@rush-temp/arm-servicemap' version: 0.0.0 dependencies: @@ -16289,7 +16289,7 @@ packages: dev: false file:projects/arm-servicenetworking.tgz: - resolution: {integrity: sha512-drWD5io9xkwx7+3IPgpUhbtxotXCiOWv36U7gMIkUOKmlizEvNcr/e/b7Gk88DUPK2ARTHynLG4sUacRYkPylw==, tarball: file:projects/arm-servicenetworking.tgz} + resolution: {integrity: sha512-zA14CS562FRwLWBvxhVFZ8eUNMSwSfrujCXstgTTDWG5as9QawbXvZsskF4ufh8DWsj4u3EfhsEFBp2AOdOiPw==, tarball: file:projects/arm-servicenetworking.tgz} name: '@rush-temp/arm-servicenetworking' version: 0.0.0 dependencies: @@ -16317,7 +16317,7 @@ packages: dev: false file:projects/arm-signalr.tgz: - resolution: {integrity: sha512-MuL3HhbOtp3cFb4eJe6HfO/aAjYkPrpJlHReTNv5kbLY+o/Q2eUpkL41Xo0xEMvPti9KzKW2OdRqpTcQaId9tA==, tarball: file:projects/arm-signalr.tgz} + resolution: {integrity: sha512-r7qSfceryhq9z/r8lUe+oXVEd3dBGVYmK80Rsu5gXPfty8T9FovtbJqOAEIK9QF7kVCRwCIbOtFUFhn8R+Gmeg==, tarball: file:projects/arm-signalr.tgz} name: '@rush-temp/arm-signalr' version: 0.0.0 dependencies: @@ -16343,7 +16343,7 @@ packages: dev: false file:projects/arm-sphere.tgz: - resolution: {integrity: sha512-snHuM0z6D9H4Q+WDvDdcFoQJqMK+ZjZuo6PSFX7DKVsVs7BbfeMZlHD+J3yRaqvIBd+yifdrcOMKNsb9PkXvgQ==, tarball: file:projects/arm-sphere.tgz} + resolution: {integrity: sha512-fRlA4jVRlu3pQ7HkwWVRTYCd0msB20m8xc7HWe8YB2VDC3dppNRoh2Jo0PDA4Lw7afxchBQA+oj/NoOu0+amOw==, tarball: file:projects/arm-sphere.tgz} name: '@rush-temp/arm-sphere' version: 0.0.0 dependencies: @@ -16369,7 +16369,7 @@ packages: dev: false file:projects/arm-sql.tgz: - resolution: {integrity: sha512-bVhWsimm5jn3YIVZC9YTv7m/qhmxWjRnTuNGmZbE8Qyx0+q01+vdTFMJoOzy/1Nb5028Qz7naGwmV6hvBMl/9A==, tarball: file:projects/arm-sql.tgz} + resolution: {integrity: sha512-zn4MKPRs7FLC/oorMcOxsQIxL6hHIEkJg8wdqRo7jgeLpz85n2wXQk5W7S613duZwfUME2w8JVv8Wjl05VpW9g==, tarball: file:projects/arm-sql.tgz} name: '@rush-temp/arm-sql' version: 0.0.0 dependencies: @@ -16397,7 +16397,7 @@ packages: dev: false file:projects/arm-sqlvirtualmachine.tgz: - resolution: {integrity: sha512-hQrXLeA5wADbywJzhvQ7Akg4poII49bbKXuNwdQLLcyjDoRywx1+x7WjHGGIFmhiQct+z2XSFCUJPCfH1eKo3g==, tarball: file:projects/arm-sqlvirtualmachine.tgz} + resolution: {integrity: sha512-vz7nGsY2IGEa4tB2vRjPWJYo8JRv7G8P3WY2iiPSEmPwVdhIZUAmKf+CGP89aEFLNcvAmrWwcj4bg3Bex5OCJA==, tarball: file:projects/arm-sqlvirtualmachine.tgz} name: '@rush-temp/arm-sqlvirtualmachine' version: 0.0.0 dependencies: @@ -16423,7 +16423,7 @@ packages: dev: false file:projects/arm-storage-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-xyOjYIV2aoRpIMzmcsBtaj+GTLdJBf06aqbyCBkiBHJcrWa5+/hNNkenslTY3MG1BEzu7vCZWG9RPenEZ/11zA==, tarball: file:projects/arm-storage-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-9ixksF8lYbq/LpHeVJMSPUtcdLjrPSg2cPR+VXkSaHlcuPET3i63n0h/0W5c15VfK/GSq9nNPDXY+2O190Ua+A==, tarball: file:projects/arm-storage-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-storage-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16449,7 +16449,7 @@ packages: dev: false file:projects/arm-storage.tgz: - resolution: {integrity: sha512-00AXiG1BVR2WexhhIlAUXcCyMJLE/dV2KOLxBhB33Z/mhARrPkvkv7ZpE3vYJJyILS84/xk2EzUfArFhFOq40g==, tarball: file:projects/arm-storage.tgz} + resolution: {integrity: sha512-DPH2cNtTxtPhFiC5My+yM/1u8GEo2DSg1a1lhYSt+A+25KLRwiLidVexOl4KYsn5GgXO1WBeP1f5XwR4t1H7Nw==, tarball: file:projects/arm-storage.tgz} name: '@rush-temp/arm-storage' version: 0.0.0 dependencies: @@ -16475,7 +16475,7 @@ packages: dev: false file:projects/arm-storagecache.tgz: - resolution: {integrity: sha512-Cmf1MMgI15FDnKVRKVgs1glIYrwYW82ddOQwoMuMuYzI1uZq90GMULXyg0FF0Yyuz5GuBO0GMsq/P00xySxuog==, tarball: file:projects/arm-storagecache.tgz} + resolution: {integrity: sha512-RGhMn7hs7f/AgvKEUBeNEbYuIX9hvA9S35q3BSZERd+8wfh58Udkk8J/Z4ez/+ur5rv5dkPTGXG05PYpVTO4VA==, tarball: file:projects/arm-storagecache.tgz} name: '@rush-temp/arm-storagecache' version: 0.0.0 dependencies: @@ -16501,7 +16501,7 @@ packages: dev: false file:projects/arm-storageimportexport.tgz: - resolution: {integrity: sha512-jD2FHBiBRjjTxyHMAkgvzgdKFWkXot/KpAT5Rov49UDiVwLipI/sUq2eam83D6cxilpSoJWNCnmRMr8x+WZHJg==, tarball: file:projects/arm-storageimportexport.tgz} + resolution: {integrity: sha512-dkStbwv65UMTCj3KN4+EuU6xEc3D0UjrSk2HZX9jiSePArEdk+7MqUUR/XYMZSvVpkejsFJHWqXO1PIiLiSffA==, tarball: file:projects/arm-storageimportexport.tgz} name: '@rush-temp/arm-storageimportexport' version: 0.0.0 dependencies: @@ -16526,7 +16526,7 @@ packages: dev: false file:projects/arm-storagemover.tgz: - resolution: {integrity: sha512-tyK5xTIHnFql1KNYR/zcPch2FU3fwwTt9zcnHQIP45YyloF7zkIO5W2cNDu2xDaVtpeleulMxpl2dL0zy1xxbQ==, tarball: file:projects/arm-storagemover.tgz} + resolution: {integrity: sha512-Ve4yY3mM4qIQs8qJpwGY1VSYNl5iELzZfbNWhgWq+G+C1z4HSSviShrr8jEWpoeYp88sX9jOIAw8s6X8DpLR2Q==, tarball: file:projects/arm-storagemover.tgz} name: '@rush-temp/arm-storagemover' version: 0.0.0 dependencies: @@ -16552,7 +16552,7 @@ packages: dev: false file:projects/arm-storagesync.tgz: - resolution: {integrity: sha512-RnmEUKnw0KbPfchqVHV9jmMkAxyl4U42el4+5txXpAKtIA8pNSh916dopVkwyCZxI34px6WBYpXwgki9bfmj3A==, tarball: file:projects/arm-storagesync.tgz} + resolution: {integrity: sha512-9CJk4QIK7ydPqBPu3QnqtA2UcbGTBodB/YKUBMYgGGm3nNPh2zMoMn7GQOczA01XRb7q7c91IiHsyqvuQHgHGQ==, tarball: file:projects/arm-storagesync.tgz} name: '@rush-temp/arm-storagesync' version: 0.0.0 dependencies: @@ -16577,7 +16577,7 @@ packages: dev: false file:projects/arm-storsimple1200series.tgz: - resolution: {integrity: sha512-k6voJa2MWoJ0DUfJZAxQufSTD1YuuCrKvP6n7MZgX8SVxCGGM/9Zu0flMmEF1UljZygDWhcvWOD8P9bXQHDC6Q==, tarball: file:projects/arm-storsimple1200series.tgz} + resolution: {integrity: sha512-vKPmmHX0luHsxfszJzuAUvLY6hTzhsdw7/g98miAoyWMaHAnlT26rGjXOk+Wh6BeE02O0DJ0o+C2TovbZK1R8w==, tarball: file:projects/arm-storsimple1200series.tgz} name: '@rush-temp/arm-storsimple1200series' version: 0.0.0 dependencies: @@ -16602,7 +16602,7 @@ packages: dev: false file:projects/arm-storsimple8000series.tgz: - resolution: {integrity: sha512-ftNzMktJIC/2xPI9rRj1f1RVlq/+IyOsR+DSia2IwX1hh8wd1jlLNaNqDxIewt38td/rGVZA+d8sHYOBAPwHAw==, tarball: file:projects/arm-storsimple8000series.tgz} + resolution: {integrity: sha512-nzvXGZXgxujJeurvbBBiVqZy0bgbB5DfPGax02dRshvUUE2ixCrrL90z+AqPewda9shlomv5GB1DtRskJZ3Gcw==, tarball: file:projects/arm-storsimple8000series.tgz} name: '@rush-temp/arm-storsimple8000series' version: 0.0.0 dependencies: @@ -16627,7 +16627,7 @@ packages: dev: false file:projects/arm-streamanalytics.tgz: - resolution: {integrity: sha512-l3PTEN4AJoiBU13ZSqaxD+ZUGeOiMFCJ8yaxXGZWjyivPiBBI+73hNKHqK+xqE+yLx/l6hTLCYNKDLcHJGZeOg==, tarball: file:projects/arm-streamanalytics.tgz} + resolution: {integrity: sha512-rBn58d3a4B5gzcEQ7mU2qZ/52tGMFS9y4lIaRcyDVDpuXZgFlI5F7cfbq96zNP1wa4VDpecVnNcN+0Y1XEacDg==, tarball: file:projects/arm-streamanalytics.tgz} name: '@rush-temp/arm-streamanalytics' version: 0.0.0 dependencies: @@ -16652,7 +16652,7 @@ packages: dev: false file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-UCtiDT6RCEoB9eldGXQbmD3orZDbNTo7jGDuEsozFo053biXWtSnvrz03dyEhn5zP8Pms55wto9p0SuRGb/TWw==, tarball: file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-iX2Ry4+dO0WtgLiK0mxNYUNXG3jMIXmZ2n8dRvxhMm/r5/qnRcsWbH4QIabaghcl1eEomKt6vwVVOf7PoWpVpQ==, tarball: file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-subscriptions-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16677,7 +16677,7 @@ packages: dev: false file:projects/arm-subscriptions.tgz: - resolution: {integrity: sha512-HK73AS0Rz2hlKvSuwiofl99OKnhX8x6m/px2IipeSuuGbCupLPwRkvCLVTjy3Llx6EozZ5LooDo8Qx4iUZsBUw==, tarball: file:projects/arm-subscriptions.tgz} + resolution: {integrity: sha512-hlIJn7EqvAuk9abEt7U2gGjvfmazgkhbuf/6r9HSf5TPnMSXznGyd6jA2Rr+jZbk67g3v7dtsp2Mcg9oJY/eLg==, tarball: file:projects/arm-subscriptions.tgz} name: '@rush-temp/arm-subscriptions' version: 0.0.0 dependencies: @@ -16702,7 +16702,7 @@ packages: dev: false file:projects/arm-support.tgz: - resolution: {integrity: sha512-WrfTTlMSDEsWG6tqEsrOjK90i/hF9Vp+fhUofQU50jreOUbnijcHIMDhmy97+NVKvtkgMx57g1A6JqcNOjcVwA==, tarball: file:projects/arm-support.tgz} + resolution: {integrity: sha512-HUsnqJFA1vuNWAMpbY/d5zZUKQZhLTpk44ZrEUTf7ybfqttrfNtWeubn/HVAyl/at/CNB6c+bS39JlUDJ4riZw==, tarball: file:projects/arm-support.tgz} name: '@rush-temp/arm-support' version: 0.0.0 dependencies: @@ -16728,7 +16728,7 @@ packages: dev: false file:projects/arm-synapse.tgz: - resolution: {integrity: sha512-26MK/OziDoaG0ZOELgt+/LNDdRlcuP0nXjor358W6QksX3a4HAT4LE5FJinJl33Bk+SXCHSNLkR2dKpei8Fnzg==, tarball: file:projects/arm-synapse.tgz} + resolution: {integrity: sha512-VtR5ctmUMuwnnD+G2oxKYrYlccpQMvRIT8K/FrJiIYOG4wZtvc42JfUEM+F4tJVBvNkLYLrs4Ea7jOVTuhkOBA==, tarball: file:projects/arm-synapse.tgz} name: '@rush-temp/arm-synapse' version: 0.0.0 dependencies: @@ -16754,7 +16754,7 @@ packages: dev: false file:projects/arm-templatespecs.tgz: - resolution: {integrity: sha512-3zcC7XdAO0wQDcBEsGz66BExCbi3nTyXfEaMFmGNG8Ks++lecqPjH1IPrxg2eRJmyYNVGszzIw5SFAT/gYolTA==, tarball: file:projects/arm-templatespecs.tgz} + resolution: {integrity: sha512-AQ1/4GfE52L7URXCOgJogRx8mmaYdddU22c04o+OcyeVVe5kZCBoHrazzv3HYucih9qubMB/BScsBXWC+VyYQQ==, tarball: file:projects/arm-templatespecs.tgz} name: '@rush-temp/arm-templatespecs' version: 0.0.0 dependencies: @@ -16778,7 +16778,7 @@ packages: dev: false file:projects/arm-timeseriesinsights.tgz: - resolution: {integrity: sha512-AfTaCkUulo8/S6g6dlHQCxuYmiJv2HFgeNIwKuQEyYUAzxBLMLG4oIYtDLwzFy377OsyFRHh2k0cJWfiYC88Sg==, tarball: file:projects/arm-timeseriesinsights.tgz} + resolution: {integrity: sha512-r5DHTKhr4DEJwivYN7h8eP9RVJj58nldZolXBkz4+i6SUYy/KF6mz4p5eOc8d22QFrXPUDrZgGCWiqEdxvEtzA==, tarball: file:projects/arm-timeseriesinsights.tgz} name: '@rush-temp/arm-timeseriesinsights' version: 0.0.0 dependencies: @@ -16804,7 +16804,7 @@ packages: dev: false file:projects/arm-trafficmanager.tgz: - resolution: {integrity: sha512-K0Ldwi/wDDWFg2NaefkwGq+p6JxnDqmS35fjaEQ8jvxUNVjM7hKK8UfeOHFlMU4hP1fqWs2Ns+Mcx+jjtLpLUA==, tarball: file:projects/arm-trafficmanager.tgz} + resolution: {integrity: sha512-zFknqL6yDuvidoTyvxr7rUkDzW/nfV9x7pfmodjiv/b0lbuBtOV41KHppahhRwrwaQaurpDugFncmR1pgA526g==, tarball: file:projects/arm-trafficmanager.tgz} name: '@rush-temp/arm-trafficmanager' version: 0.0.0 dependencies: @@ -16829,7 +16829,7 @@ packages: dev: false file:projects/arm-visualstudio.tgz: - resolution: {integrity: sha512-japIuzrTyi95rX4QwcgbLPrD+yGmwlR4XZYjPp6MRg95s8KLlcXnNyUeudUgsoQHI93+7+rvzdL2HMpG5NKWXQ==, tarball: file:projects/arm-visualstudio.tgz} + resolution: {integrity: sha512-xBE+K0FfLGmGDoB79mBedsbPmn6dtDFth7O9c4L4BYCtc99tpLiM3Wfk6bx7XjKX46dk55Mq606qp7XtFIISXQ==, tarball: file:projects/arm-visualstudio.tgz} name: '@rush-temp/arm-visualstudio' version: 0.0.0 dependencies: @@ -16854,7 +16854,7 @@ packages: dev: false file:projects/arm-vmwarecloudsimple.tgz: - resolution: {integrity: sha512-3dgWRl6OzYlEaj2XAIUvOQmouIfp7CsOl6YGkAZ6nqI0+/MiDiudSuQ22nzSStRIEz1Cl3Kkaa6tx4fufMHVQA==, tarball: file:projects/arm-vmwarecloudsimple.tgz} + resolution: {integrity: sha512-ZVTW9aM5hsJ+lowU1AtbkbjYdC9GCBO6wXqhyBEiO4JLBictzlgBmOhSf2liM4CNIhiFhkfk2pRD/nIurlGyyw==, tarball: file:projects/arm-vmwarecloudsimple.tgz} name: '@rush-temp/arm-vmwarecloudsimple' version: 0.0.0 dependencies: @@ -16880,7 +16880,7 @@ packages: dev: false file:projects/arm-voiceservices.tgz: - resolution: {integrity: sha512-V7mf48ZONTDV/Zsm5KdB751GssUQlPwAcvXFMI0daSMFrKHyPt2lDx8be3Ehido6biHIdXRjWB0B4YQTSHPFEA==, tarball: file:projects/arm-voiceservices.tgz} + resolution: {integrity: sha512-jO+JldICOVkkcTIOSmpM2SNqGOg5TuvpGy9wTESeHKHNwIaR0RuQg1ZJW3OWXG4WiISY5EG9k/FpQizbibLEFw==, tarball: file:projects/arm-voiceservices.tgz} name: '@rush-temp/arm-voiceservices' version: 0.0.0 dependencies: @@ -16906,7 +16906,7 @@ packages: dev: false file:projects/arm-webpubsub.tgz: - resolution: {integrity: sha512-ASmjPc/oioW63kM7egQkymfJ7wRqnkOMyleu4BecJy/ITbdB3BkI333jMdUcxVemolWgwQMWuOA/NZlz4/yUiw==, tarball: file:projects/arm-webpubsub.tgz} + resolution: {integrity: sha512-f7kVtdOgaxfsbsnFAOrmN6aBvNeeS3QYcygmuOC5bsPbriJHpzXy0W7O5+kqk7BCmvqoWxSoazHemen8/dUhdQ==, tarball: file:projects/arm-webpubsub.tgz} name: '@rush-temp/arm-webpubsub' version: 0.0.0 dependencies: @@ -16932,7 +16932,7 @@ packages: dev: false file:projects/arm-webservices.tgz: - resolution: {integrity: sha512-kEnEfWZPM/WmI1Uc9G1MHdcPi/gK/mPNPIXphIJKFHU8vbQbf3aOBuWWzLeEU3fqosgVS6qAqAl+ipWIRIPexA==, tarball: file:projects/arm-webservices.tgz} + resolution: {integrity: sha512-a4V+cUcB3Id85R/Z3rzu8LoNe9/p+gaS1Gqm8PQMGeuQfJ/VmHAylhy3jJCS6hQtx0u16mCYvK5PxXQwDeSQNA==, tarball: file:projects/arm-webservices.tgz} name: '@rush-temp/arm-webservices' version: 0.0.0 dependencies: @@ -16957,7 +16957,7 @@ packages: dev: false file:projects/arm-workloads.tgz: - resolution: {integrity: sha512-o3QFG3v2A/GbwV7pAZhxq1bTONXnW4wH+2kjzPuSHKHVINnlmbyQnaDKtipUmvCqq4Pcnf+beCsYRJ2R0E1pfw==, tarball: file:projects/arm-workloads.tgz} + resolution: {integrity: sha512-OMe8Fj7JWxcpi8Ar88xlP/euvdrBhhhDmGbPh/5W4nZkxq7GT65kUPkyRj8I3W7NQQtLtRXHUW+mxE/xWh3UEw==, tarball: file:projects/arm-workloads.tgz} name: '@rush-temp/arm-workloads' version: 0.0.0 dependencies: @@ -16983,7 +16983,7 @@ packages: dev: false file:projects/arm-workspaces.tgz: - resolution: {integrity: sha512-zSP8FckjXdAxIle6oIy/t/PhULyRbE2o6JwhnbpH1qkXaM2ut+IEajWZmMXu060KegvooaiiQyQAMNXE+Wg09Q==, tarball: file:projects/arm-workspaces.tgz} + resolution: {integrity: sha512-WtZ5kDup9BnVSnyskN4rhYGvd1g9PllDLi6C8I/Dh4JRnIPxWEiDRz5P2t0gaJk0GX0PW+L+TEgVWCUatzP0jQ==, tarball: file:projects/arm-workspaces.tgz} name: '@rush-temp/arm-workspaces' version: 0.0.0 dependencies: @@ -17007,7 +17007,7 @@ packages: dev: false file:projects/attestation.tgz: - resolution: {integrity: sha512-LJVins1uZDeFst0E9xRLyiMbTE+9434F701p6pNzM9QLr7hJplZbAki4k4WZHvqGIhb4zGHI/u4eNRpOS4/0JQ==, tarball: file:projects/attestation.tgz} + resolution: {integrity: sha512-Gl39r4baVK+XznIQsGppyGIko6YA1l+C4VvM58fWdE5/6+rGeKqzP3oTpiwb30O5TR6VbICBEqRwFyBY6P+ozw==, tarball: file:projects/attestation.tgz} name: '@rush-temp/attestation' version: 0.0.0 dependencies: @@ -17058,7 +17058,7 @@ packages: dev: false file:projects/communication-alpha-ids.tgz: - resolution: {integrity: sha512-dnXUydpVPmOZ/R38im5L8gEjpe9AH/kHclvXr62IrG02o5HxqVk/6BC7qKOh/GWAEIr2S2YOw8kizltYoPUV7Q==, tarball: file:projects/communication-alpha-ids.tgz} + resolution: {integrity: sha512-16e/rQH618TmUSxZRrE9aHjSu1jsJ02it9BfDvwe29c+Kyh8XMH5vzT7GuyR70QNOypokE0aFIeuvRdz/MAeHQ==, tarball: file:projects/communication-alpha-ids.tgz} name: '@rush-temp/communication-alpha-ids' version: 0.0.0 dependencies: @@ -17102,7 +17102,7 @@ packages: dev: false file:projects/communication-call-automation.tgz: - resolution: {integrity: sha512-Uu1Q/G2ySL65PrMIYQF4EX/2GPmrPFyzXK9RbplZ0kR5dJhQrhNeDSGclEkwyFoXxS2BUiR/bZKmjej+9xC/Fw==, tarball: file:projects/communication-call-automation.tgz} + resolution: {integrity: sha512-HBmEbayRyjybJRH3DfTe40GvUQuxD864oXUnxJcnsdyHGNMXg3t2hDexNJPch2t9YfszyZZ/jaKEkHc+GwJX1g==, tarball: file:projects/communication-call-automation.tgz} name: '@rush-temp/communication-call-automation' version: 0.0.0 dependencies: @@ -17148,7 +17148,7 @@ packages: dev: false file:projects/communication-chat.tgz: - resolution: {integrity: sha512-/4sgkrbwsakPHuUVuJrxnIw7kvYjM03GAbngV2v6uOiJx2cvUXpFwZJ6Y1GPGhL7P5IE1pCwNFaVegBp86tvaw==, tarball: file:projects/communication-chat.tgz} + resolution: {integrity: sha512-2Bprp8VdOPQO1mHADXvL3PR5ubRrQIFm84JHGIn4OpY4p4Px+NQM+v8Iy9sBWXDb/E33aazbb0o7xMPnBthuyA==, tarball: file:projects/communication-chat.tgz} name: '@rush-temp/communication-chat' version: 0.0.0 dependencies: @@ -17199,7 +17199,7 @@ packages: dev: false file:projects/communication-common.tgz: - resolution: {integrity: sha512-dSz6D5pkCrTsOUD18bBun8afcPm4cM9clq0Td7IMNGpc9k7Jlnn5wi41ibOowTQVyJH4lFLhmAj9Mp+Cd20slA==, tarball: file:projects/communication-common.tgz} + resolution: {integrity: sha512-2p45MtBKTTagXb4VToNcqdhIZtgDsFWxQMos+mws+y3K7sJoyVaXRYYKPtZZ4UxSPvOCQZJ9Sj5PCPuCpT6hHw==, tarball: file:projects/communication-common.tgz} name: '@rush-temp/communication-common' version: 0.0.0 dependencies: @@ -17247,7 +17247,7 @@ packages: dev: false file:projects/communication-email.tgz: - resolution: {integrity: sha512-7+XicOkmzZimU6S+kOqbY29AFNai786TFQ4OcNax+kRxxVsaTu8NFEMfvNZL+PgRIlbcyQYU5/KsrRdKhNl9bg==, tarball: file:projects/communication-email.tgz} + resolution: {integrity: sha512-fMx5gQMGIHF6cRIV/SPFR+W+/3UNgkVyctwsZwPeSNapM7rkdTE6hwvLTPz1A2UUDoBJCqhVjNseXQRWWVB15Q==, tarball: file:projects/communication-email.tgz} name: '@rush-temp/communication-email' version: 0.0.0 dependencies: @@ -17288,7 +17288,7 @@ packages: dev: false file:projects/communication-identity.tgz: - resolution: {integrity: sha512-JU7nkzEHExnVorjruoXTTE6t0SzFDzH/ZBzK0r9PYLKFjooJe/xmYeDd+fkLv1i6chEJ8KboMEwQFSwcUuqRAg==, tarball: file:projects/communication-identity.tgz} + resolution: {integrity: sha512-QUN8ouwKZ21vNemr4SPd0YdgNULpG57N4DNTjHrrSvc1n8YM6FkI4DaPCGT1+sG82VAJElOVRTGvS5zojORApQ==, tarball: file:projects/communication-identity.tgz} name: '@rush-temp/communication-identity' version: 0.0.0 dependencies: @@ -17335,7 +17335,7 @@ packages: dev: false file:projects/communication-job-router-1.tgz: - resolution: {integrity: sha512-cIrydDfzYb5IU7FvUtthmBUCEhJ+vnKuc4/Z89FxyfVtyPAOlsBQzbJo2kcHeYqrHReg5x7SkZrXzm6zEZsoHw==, tarball: file:projects/communication-job-router-1.tgz} + resolution: {integrity: sha512-/zi4Nhy3r/dBO+AYJKC8dSkKpUeBFyPjqNzqsubstbZ798rdlD7JhEquDe2cZkkW/QvNbTeTiO4o2wVbq4PfGQ==, tarball: file:projects/communication-job-router-1.tgz} name: '@rush-temp/communication-job-router-1' version: 0.0.0 dependencies: @@ -17384,7 +17384,7 @@ packages: dev: false file:projects/communication-job-router.tgz: - resolution: {integrity: sha512-6OdENb7ryQ+JzxlIWV2FTYIuK1okInDzYgLieIu9R92/Zr7pxskxie5KIhxIgujEHvC/1N8eCRonPI2g3L79+w==, tarball: file:projects/communication-job-router.tgz} + resolution: {integrity: sha512-QmIPg7tNx5GFQ28DdTIq7RiboZp7U+ObHQZu2IN1e4eGzSJSldF5ygn68eY1kLNHH2bYT/blm2XiMK4RmuYj1A==, tarball: file:projects/communication-job-router.tgz} name: '@rush-temp/communication-job-router' version: 0.0.0 dependencies: @@ -17426,7 +17426,7 @@ packages: dev: false file:projects/communication-network-traversal.tgz: - resolution: {integrity: sha512-aKs6bA+ucaAdaj89CIsvbVk3MRCyo17UeL0pH0B1CL6TXcjD6CHouW33nzNlnxobWbW5jeo6p8MR1ERIduHu2g==, tarball: file:projects/communication-network-traversal.tgz} + resolution: {integrity: sha512-xrg1rwLdTF0wcADcsRknC43fCpevKhT8w0zzPzUTSJAKqmpy2khexMRvPg+QeGXQ2aG+AeCTXPUadBrX6Zy4ow==, tarball: file:projects/communication-network-traversal.tgz} name: '@rush-temp/communication-network-traversal' version: 0.0.0 dependencies: @@ -17473,7 +17473,7 @@ packages: dev: false file:projects/communication-phone-numbers.tgz: - resolution: {integrity: sha512-mHsSrhvInk2mTXZfgdow339HdZBxlEIuNKUKKhos2O59vDpPdWZ1ctkja6wccCYLab3VTRPobl8ZC4rm06VVKQ==, tarball: file:projects/communication-phone-numbers.tgz} + resolution: {integrity: sha512-s5BlvlPTG0t5wmeNpHQsdkoTJ21rdnDpxBPbBML9a7A23qXY5FcpekniBnzhVOEmjbwZSi/cVAUikRlke1vVDw==, tarball: file:projects/communication-phone-numbers.tgz} name: '@rush-temp/communication-phone-numbers' version: 0.0.0 dependencies: @@ -17518,7 +17518,7 @@ packages: dev: false file:projects/communication-recipient-verification.tgz: - resolution: {integrity: sha512-jQgixPPIytxWnzd9nVuJl37M8+8BXxTs4JHsjQ5oMJF02dkso+ZVUopI/ltv5N9r9EjYT6DwHouf2n5GDIIh9Q==, tarball: file:projects/communication-recipient-verification.tgz} + resolution: {integrity: sha512-8ZsQo46OBxC73CMHfCe44bO7vhplg5fkaCWMUl8SZ+9oAosIQerm0K7xWPGMDkTuhMXyQkk9du2CIYC/Bsd/EA==, tarball: file:projects/communication-recipient-verification.tgz} name: '@rush-temp/communication-recipient-verification' version: 0.0.0 dependencies: @@ -17565,7 +17565,7 @@ packages: dev: false file:projects/communication-rooms.tgz: - resolution: {integrity: sha512-xCElsUhQUUazRCG41aPdBbz5WgeFd8G1bFNX+9Wc6iLOlMjOgmmqUpIYQ+F5XG8bW6qRDgrmj1sZK5MsJJ+mIQ==, tarball: file:projects/communication-rooms.tgz} + resolution: {integrity: sha512-yUXf6hNL+pphjcUooBvl82h3GktEWAkX644P2y0f4iCrAfp8I9aLwfAiu7q7Bv1p1SCrtC5gNZ04LD03XRCfqw==, tarball: file:projects/communication-rooms.tgz} name: '@rush-temp/communication-rooms' version: 0.0.0 dependencies: @@ -17600,7 +17600,7 @@ packages: dev: false file:projects/communication-short-codes.tgz: - resolution: {integrity: sha512-ZeL4IVRx1VSNazSrDRBXF678B5UalR+0ZUS/m0iV+1BDuk/36spmMpBTQRpJnBJvYpcrFgj8eBoLx3qihE3UVg==, tarball: file:projects/communication-short-codes.tgz} + resolution: {integrity: sha512-9V7+h2MZBAPE5DBq0Cdi3CyfYPBU1fnQfsiBk4IQJIClE9vapWDhFO0J8wG8zf+vpgbtoi8vxBt8WWqh/op4lg==, tarball: file:projects/communication-short-codes.tgz} name: '@rush-temp/communication-short-codes' version: 0.0.0 dependencies: @@ -17647,7 +17647,7 @@ packages: dev: false file:projects/communication-sms.tgz: - resolution: {integrity: sha512-xM/+JwdTMQ+qY4zOn59ERBx1ygCF11ZdGuX5OjkEh6fCnu1Z2pSY+0qcwtryzOV7XddvMvQgIollmLIbUthvBw==, tarball: file:projects/communication-sms.tgz} + resolution: {integrity: sha512-6FVDYUCaieUvdvP2ymR1vG7FBsfFhFHhbx6zo8q0f3fV6HR6r7wrzbC9B8RnDocwSY6mjyOqfOl22E72LJda3Q==, tarball: file:projects/communication-sms.tgz} name: '@rush-temp/communication-sms' version: 0.0.0 dependencies: @@ -17693,7 +17693,7 @@ packages: dev: false file:projects/communication-tiering.tgz: - resolution: {integrity: sha512-hwxxO3GqSZfYd0aqyaMttL01+33HbWRNw3vQrLFmKguQqsCsSYGZzk/G5f+f5Lc/em6mqVZSpwwY1l8pYKmw7A==, tarball: file:projects/communication-tiering.tgz} + resolution: {integrity: sha512-jfZXGJ/6CR2QS0L7jdQ5Epzw4x6kcjAK31vPjOnMJDDGs7gRwcroB/r0PpRAzqI/bXLwabAYl8WKP1pdpECMhA==, tarball: file:projects/communication-tiering.tgz} name: '@rush-temp/communication-tiering' version: 0.0.0 dependencies: @@ -17740,7 +17740,7 @@ packages: dev: false file:projects/communication-toll-free-verification.tgz: - resolution: {integrity: sha512-Orh9bHnZUl3cKARGCqj8/liA4vTe7tzCjMMtVsiMDYuv239So9qvLj70XceDHbg+AMLnDbBOGfys2w1S7Sv8hQ==, tarball: file:projects/communication-toll-free-verification.tgz} + resolution: {integrity: sha512-PpWL64JbjBB3hqctXQmGWLayl+GJ85keEG/OQ5oJd/VbLH+I3VbWdJvd1At+o8dqYgmIjeoJ4iLxdnEeLufauw==, tarball: file:projects/communication-toll-free-verification.tgz} name: '@rush-temp/communication-toll-free-verification' version: 0.0.0 dependencies: @@ -17784,7 +17784,7 @@ packages: dev: false file:projects/confidential-ledger.tgz: - resolution: {integrity: sha512-3wtmf8HJls+FT3bsK35dsn6EJIP50yIOO2qDbmeozkGlAtQAmxWqUTypR6JKdg48iBpDUxhJmrg6jz293SexMg==, tarball: file:projects/confidential-ledger.tgz} + resolution: {integrity: sha512-mtI3s8NSCavkO1jAdRrYBRxy/D4NZtAC0697WwgPzPWo0dvCX7eByD7T0sBmW+bFlLRi0qg2e23SPtJF3b+BZA==, tarball: file:projects/confidential-ledger.tgz} name: '@rush-temp/confidential-ledger' version: 0.0.0 dependencies: @@ -17813,7 +17813,7 @@ packages: dev: false file:projects/container-registry.tgz: - resolution: {integrity: sha512-5kwui1zTxpU9fEGbUDtsIVJ6HbwvpsJ/I7ZqTVZOdpd//VbgD8GOiEfzVUA/EHOQROW/hM9UUmOXZWQxRrm3Yg==, tarball: file:projects/container-registry.tgz} + resolution: {integrity: sha512-1U4mvbJXWluv7W4mjLVlpzNVeDq6XZHsDe9vRdb4VJoBWQFZfgNLotztYVa9O83fagGKMgql9wCc44JUFJsvPA==, tarball: file:projects/container-registry.tgz} name: '@rush-temp/container-registry' version: 0.0.0 dependencies: @@ -17858,7 +17858,7 @@ packages: dev: false file:projects/core-amqp.tgz: - resolution: {integrity: sha512-bm5OUrjuxQeqbbcZgPREleXdnv74Q5BHKPSeYqE6k8CBKK2E+PV6awnrFnQ/zK3yn0HdZAgUGrNFIZ19D2RMyQ==, tarball: file:projects/core-amqp.tgz} + resolution: {integrity: sha512-tWi07mA6lH1bNvz21BDV5nVouyH3Ra0GC2T71vJAUqhAaM/syD/0BgMyeegPKhMqHZqsAf8yJjnRYRTcvqjQwg==, tarball: file:projects/core-amqp.tgz} name: '@rush-temp/core-amqp' version: 0.0.0 dependencies: @@ -17902,7 +17902,7 @@ packages: dev: false file:projects/core-auth.tgz: - resolution: {integrity: sha512-Niuix/L/577WJPZA/LakLsxPSddV33uoCfI+ApjEr6lMJXE45EJRSm9fM3PguZ5v1bkOU/Kxl8FV3K8w9natRA==, tarball: file:projects/core-auth.tgz} + resolution: {integrity: sha512-DWPQc9oI9oi4J6IwxGNeDYsalG5NBxfNCn2mgH6Gej9upJzn3AMDIFJviq28kN7Ej6YyJE0KUJ5LfzcF135Opw==, tarball: file:projects/core-auth.tgz} name: '@rush-temp/core-auth' version: 0.0.0 dependencies: @@ -17928,7 +17928,7 @@ packages: dev: false file:projects/core-client-1.tgz: - resolution: {integrity: sha512-To71lbuYArZ7hPB0INwGVjrQK6gzWh9xTTrTrnmWJCEg/sQBgfSHIW82JwIOM9S1OrFQr61LSiemJKqKQMo5Fw==, tarball: file:projects/core-client-1.tgz} + resolution: {integrity: sha512-sj7V0H/6GgqQQ2lfhTa2nIEJlbJgDxypCSox2gThkMx2JApTMhG5zMbZ6qv9M6fOeSsVz82frbqEOOhx4bUTAA==, tarball: file:projects/core-client-1.tgz} name: '@rush-temp/core-client-1' version: 0.0.0 dependencies: @@ -17969,7 +17969,7 @@ packages: dev: false file:projects/core-client.tgz: - resolution: {integrity: sha512-rOmoTgGCglYJmOWUlNWMFCOB+OAYO3EwyUUNeZSC7D18UCfM9gK6m5CNktjC2UJWPDfG8t8bBsf4plkkdHNggg==, tarball: file:projects/core-client.tgz} + resolution: {integrity: sha512-UVrmqW8UgxC69/mtR1Bp9WO1ncpCpuqEUA2MGLYcpaMY82IRXz0D0neie+J1cziWIE/dd1SGFqpcnnuunvBEyA==, tarball: file:projects/core-client.tgz} name: '@rush-temp/core-client' version: 0.0.0 dependencies: @@ -18009,7 +18009,7 @@ packages: dev: false file:projects/core-http-compat.tgz: - resolution: {integrity: sha512-6vVofr/RCNFKw/rtJ3mtvm6mlw4NmQZvoQXIxPUWJu4bNAhOJ9gRCQPN8ZMVS/74RMnG5ZGaaQXzCewWiyR6QQ==, tarball: file:projects/core-http-compat.tgz} + resolution: {integrity: sha512-XHti10a8gMWE+Pcim1c5lZ9bpEW3Y8zmUwLMvfebswBBJE8xvN4FOhPsBf+ybpzK5LxGUX7JcWWIMRMfjy4rFQ==, tarball: file:projects/core-http-compat.tgz} name: '@rush-temp/core-http-compat' version: 0.0.0 dependencies: @@ -18029,7 +18029,7 @@ packages: dev: false file:projects/core-lro.tgz: - resolution: {integrity: sha512-MBEqKRNW46C+Sc/skuVcbDBEwligKGIIroZ1F1rnjtZlepf7vRQqQse6o5OI3A9AbBw07qEdOTTz3YCw2A84/Q==, tarball: file:projects/core-lro.tgz} + resolution: {integrity: sha512-CJo5AnEWyg088whW4+S3ETxA4i9EcS+jQUyVFMw8XKQ6ndziqlvNnJlbSCJY8jyiKFqfTk40ZEOghtXG8ng9Fg==, tarball: file:projects/core-lro.tgz} name: '@rush-temp/core-lro' version: 0.0.0 dependencies: @@ -18064,7 +18064,7 @@ packages: dev: false file:projects/core-paging.tgz: - resolution: {integrity: sha512-+VVHJv2iERCrLSYEz0fkwCtuAnyiLct0IcX7oJzkzLS5vH52+pLy1GdkH4UDcRzPuJH/aI3HFnc4moYP4jD7bQ==, tarball: file:projects/core-paging.tgz} + resolution: {integrity: sha512-mrFVF/FdQZz5sVFL2qNCpb0XnAxzLLi0t6wVEAcYnS09d8YBm+096do5+pe6/0NFb8gyTeMXAqJCTny4b41zAQ==, tarball: file:projects/core-paging.tgz} name: '@rush-temp/core-paging' version: 0.0.0 dependencies: @@ -18100,7 +18100,7 @@ packages: dev: false file:projects/core-rest-pipeline.tgz: - resolution: {integrity: sha512-uBnZDOEdEORf3LfYvPytdgUZm+pyUefgWc3TQCq/yYfeOxY7vVDUDQg/Qn6jisfPg8MUV5LGvqIbygjHpDrvvA==, tarball: file:projects/core-rest-pipeline.tgz} + resolution: {integrity: sha512-Kpzu71XhQicrL13Y8DMHkBv7/saLNOQm6k4y4vGAgF/yjMrHiz9Jun1LHZ6dj+MsxTR2DgmXGcSv/G7RQDgB4Q==, tarball: file:projects/core-rest-pipeline.tgz} name: '@rush-temp/core-rest-pipeline' version: 0.0.0 dependencies: @@ -18149,7 +18149,7 @@ packages: dev: false file:projects/core-sse.tgz: - resolution: {integrity: sha512-j4eh8Jj3KRC2GMgP4EyMiKa/JtF0s5yTunmcKAnfXEcKSTha0nMDVE7iqf/+eKDeGEfQ1zc75jkNsiDGKvtpEw==, tarball: file:projects/core-sse.tgz} + resolution: {integrity: sha512-HD0pELvvbuL/ADAvG2dKeZYB3GRCuHjYBFEjbgxuwMqNCM2hjlrDqc9i3XgbvhwpvhF47uKLMNjS7MlByLUJzQ==, tarball: file:projects/core-sse.tgz} name: '@rush-temp/core-sse' version: 0.0.0 dependencies: @@ -18191,7 +18191,7 @@ packages: dev: false file:projects/core-tracing.tgz: - resolution: {integrity: sha512-zwPf5yfrUK+HrMKCikROsjYYoIR6L/m0kXiABZ+rsz8TE2ydwfFtG16sbTotrtv56SHCfBej31VNPwvQtu6cKg==, tarball: file:projects/core-tracing.tgz} + resolution: {integrity: sha512-lBZp4ZDEt4td17t+H77rjsirTSlp83svspyjdHfMAnbgsMqAF3e0Ss6nCpCDmE9jg3lCnXnyunulWDHILmDXxA==, tarball: file:projects/core-tracing.tgz} name: '@rush-temp/core-tracing' version: 0.0.0 dependencies: @@ -18231,7 +18231,7 @@ packages: dev: false file:projects/core-util.tgz: - resolution: {integrity: sha512-UOplUU1l4hWBKg1CmoxXyeKnLb125B/2C7RvYiq15aJyE3VtbFjEbQ/2xNe7CFQ7Pm2kCNocmYjquQWOXEjGjg==, tarball: file:projects/core-util.tgz} + resolution: {integrity: sha512-BZlNWWmMDMhEticBy3mKjsz8gAE9C1ChJpATZN9RXTfIC6a2aY+LYYQmLjNOQjOAuShTQVoPHbIz3/8grVq69A==, tarball: file:projects/core-util.tgz} name: '@rush-temp/core-util' version: 0.0.0 dependencies: @@ -18265,7 +18265,7 @@ packages: dev: false file:projects/core-xml.tgz: - resolution: {integrity: sha512-TC4c/FTFPv36NZ5e/xSXkwY6R11CGcNLxuOG9QieDsdPlF6wUgjWOAJ4XgIKakL2DP1vYQFiIRsKaa4VQ9WfBg==, tarball: file:projects/core-xml.tgz} + resolution: {integrity: sha512-f4bYGerRkgEcvLM02CZJ84cLtMBQlsFUUA9wHqJtxoqxAdSZW3bVFoSpIOjfUbWWGwEOz+n3NteN9HrgULwdQQ==, tarball: file:projects/core-xml.tgz} name: '@rush-temp/core-xml' version: 0.0.0 dependencies: @@ -18305,7 +18305,7 @@ packages: dev: false file:projects/cosmos.tgz: - resolution: {integrity: sha512-2i11HWWIceXQDbZ6GhyTf9jtgwuSZ55O25qj1VbotPD0EkHw73B8/c8/hXuiESZsr2vlGHjdVyO7VNY9iyJhww==, tarball: file:projects/cosmos.tgz} + resolution: {integrity: sha512-0FgKqblEAjlMyq7+KvOGw+CtCDGTiALNKEcLu8KiQY1wz93fBMzm43eNvB7J8IrZDz4Fhd4ECAU5jXAeIYlXBg==, tarball: file:projects/cosmos.tgz} name: '@rush-temp/cosmos' version: 0.0.0 dependencies: @@ -18354,7 +18354,7 @@ packages: dev: false file:projects/data-tables.tgz: - resolution: {integrity: sha512-sSstFNgoKSiT044+C6MttI9RG3O73vLH3y/REy25uY9KhC+ENqEDuClhMmvpv8eCwqUMNXisggVCtyuXK69bpg==, tarball: file:projects/data-tables.tgz} + resolution: {integrity: sha512-K4cAn+dSag4ncgs9xXEcJx+nPz5/xzmgV1xSR1gwO70uzvPme92hiqDQizyJUhKa3pRx4VzyBF043IdacnhQjQ==, tarball: file:projects/data-tables.tgz} name: '@rush-temp/data-tables' version: 0.0.0 dependencies: @@ -18398,7 +18398,7 @@ packages: dev: false file:projects/defender-easm.tgz: - resolution: {integrity: sha512-JPwploTA+fGYqf93gMnGNLh8GP+bT8THrmeKvA7sYPkbg2Jy5ccJAK1V9wXbpPJ4lfGDgeS20AlAdCIUO5yIZA==, tarball: file:projects/defender-easm.tgz} + resolution: {integrity: sha512-adYnPIM3Sh2lCf3Ay41L7agHmf4U2cSstkulhYNT4gqGQGt+L+4FJLrtoGT8zH4FOCNtVaOvP8Y1w+6nD6eb9w==, tarball: file:projects/defender-easm.tgz} name: '@rush-temp/defender-easm' version: 0.0.0 dependencies: @@ -18443,7 +18443,7 @@ packages: dev: false file:projects/dev-tool.tgz: - resolution: {integrity: sha512-BQUPCy55D3t/ctm1kb2dkqrDPAsL8DHH54416K82a8tkCSqMDwSVIfmkPKePCSagEUFCoUQ4oCcjRzWZvCPzSA==, tarball: file:projects/dev-tool.tgz} + resolution: {integrity: sha512-mQfS4oauEPZmpn+OVBeRPYKPWwz45DuCCDAeFmyrNgXUsv2zCbzaPpqUMSGBAif/ZrVE498PZnbdKo6hhadqlw==, tarball: file:projects/dev-tool.tgz} name: '@rush-temp/dev-tool' version: 0.0.0 dependencies: @@ -18502,7 +18502,7 @@ packages: dev: false file:projects/developer-devcenter.tgz: - resolution: {integrity: sha512-JCBgbMVaue5WnPaKoNH86M/qmELxaXNRrl1VAVmEOXyiMD6N70HrmKmn8b8yBxX2NP9xtl5AAgwyV0aaLMpRHg==, tarball: file:projects/developer-devcenter.tgz} + resolution: {integrity: sha512-ENlVb2RdO/YmA0VXgSq+Zzux+7/yJWo6TciJ1QYlQkYZ3RnkuDu1Yy+5dH6zkvqP8rnQsJYBr2+wIAVQebfOQA==, tarball: file:projects/developer-devcenter.tgz} name: '@rush-temp/developer-devcenter' version: 0.0.0 dependencies: @@ -18547,7 +18547,7 @@ packages: dev: false file:projects/digital-twins-core.tgz: - resolution: {integrity: sha512-OEFvgoXuOLeANLdl8XeSTLGG9NH7jicUwdXeiUgQuhperJ1YTRQmOzGJww9ORVe0DjNVUmPz281drsOCoRvTNQ==, tarball: file:projects/digital-twins-core.tgz} + resolution: {integrity: sha512-Kwu8blNroaRigj5NsSZSSOMi4mMPIbqKoYrNIDNw2/9jiisTt1Or87RcI+84d6jQ0dy3/Q3P1N3fb9/c9hYGdg==, tarball: file:projects/digital-twins-core.tgz} name: '@rush-temp/digital-twins-core' version: 0.0.0 dependencies: @@ -18593,7 +18593,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk-helper.tgz: - resolution: {integrity: sha512-TGjqEOOg7UELPSoFLSyRji7PkxoXqRTHm6ptlShunTIhODTohRL0BLTuhS3RYXEF8Kr6hP9bKx+H3AwcNxdwYQ==, tarball: file:projects/eslint-plugin-azure-sdk-helper.tgz} + resolution: {integrity: sha512-muV+FsQUif3kC8nhfKcW6UkKTO/2Va3IOiEzqnahLfKWwblauDluVM/Sm76l8N0fDzuNBiSMhdbhNQzRH5oWxQ==, tarball: file:projects/eslint-plugin-azure-sdk-helper.tgz} name: '@rush-temp/eslint-plugin-azure-sdk-helper' version: 0.0.0 dependencies: @@ -18612,7 +18612,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk.tgz: - resolution: {integrity: sha512-nXvSlrrs8MDqXK/l45cDj+oCl5SMablrAHCnoeHGZXM5cSPrsqlVFRmuZzBptBusY+9p2AMzUEi2quJ4ayo7dA==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} + resolution: {integrity: sha512-mhPhHS7C+0/ABnu9KhTIFwJ81RUwDZWSFRuLOT+POypC0fYPB2hpc4uYQyR2Daccs9ftDR7MnnqsNn3qZSikXw==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} name: '@rush-temp/eslint-plugin-azure-sdk' version: 0.0.0 dependencies: @@ -18637,7 +18637,7 @@ packages: glob: 9.3.5 json-schema: 0.4.0 mocha: 10.2.0 - prettier: 2.8.8 + prettier: 3.1.1 rimraf: 3.0.2 source-map-support: 0.5.21 ts-node: 10.9.2(@types/node@18.19.3)(typescript@5.2.2) @@ -18650,7 +18650,7 @@ packages: dev: false file:projects/event-hubs.tgz: - resolution: {integrity: sha512-em/FJOTSdxpstdS2czpVUL5NMcvKSTH511A8IoK0df+UGiUaLXK0yohakcIs29q13PadnfRVIO7sswrR1NYJVg==, tarball: file:projects/event-hubs.tgz} + resolution: {integrity: sha512-IYjfqi6C77XN0VYTqv3FahZmUhvdfRvAo4JHKe7xBr53e1ApYneBBzuou6gQg2N0JhdwIdYiw8vtHI6c2ngeig==, tarball: file:projects/event-hubs.tgz} name: '@rush-temp/event-hubs' version: 0.0.0 dependencies: @@ -18712,7 +18712,7 @@ packages: dev: false file:projects/eventgrid.tgz: - resolution: {integrity: sha512-NZyJLEAAflrzGsYqOwp5QNOZItKn/eLjM1YX0t7Q27L7QRYOh0xK0swo9HoLsdfU7P/z+cM7FLzmuMQPGc3/1A==, tarball: file:projects/eventgrid.tgz} + resolution: {integrity: sha512-bD1tsFjZZ92j65WheUzHTv7KHk3Qr1AkGgOqmeUhETi5rig2EojrQkM2ukk83OGt0QHGJBih/YZnpWbHc8fuOA==, tarball: file:projects/eventgrid.tgz} name: '@rush-temp/eventgrid' version: 0.0.0 dependencies: @@ -18758,7 +18758,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-blob.tgz: - resolution: {integrity: sha512-h54r5PDml33LYTrDbn+bBevGeeEsKUMLyA6Bl5tBWlTi+6SR1x62fycXoIrj+OSBUhb6FWYhEsph3ZavJDPfEw==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} + resolution: {integrity: sha512-0DKBtughZjyA5gF6/lKeYRDWW38CGmRqdR8uoTPpunoQKQifo1YIiBMFPBGeU5Hz6dBdxB4c+omj9rGj2Sx/pQ==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} name: '@rush-temp/eventhubs-checkpointstore-blob' version: 0.0.0 dependencies: @@ -18809,7 +18809,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-table.tgz: - resolution: {integrity: sha512-LqAl89N+h70YSBymKMiHsind8CIplfJy9G7K2/awYna2DU8PgQbtz1fYPdXuvZKWYKc8WkpNsUTCfhEqhkkw8w==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} + resolution: {integrity: sha512-PDYMpUw0MVpAKeZMiEHGnZiULW5XwzH04ipOm5XucPHNDLrich2+QsdOfcyvJGlC3ZFI98idv3GZ+jR37Nezbw==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} name: '@rush-temp/eventhubs-checkpointstore-table' version: 0.0.0 dependencies: @@ -18857,7 +18857,7 @@ packages: dev: false file:projects/functions-authentication-events.tgz: - resolution: {integrity: sha512-h8cYUswVeoOmgUHHFkHo+F8uO7JGJL4iWWY/C6SblKd4HIOiVgVXOwsk1KdExK5lUqjDkQXe3dfQVUX6fcOGhg==, tarball: file:projects/functions-authentication-events.tgz} + resolution: {integrity: sha512-0MHVAV5nhVO2+7E06cHDqBOF53g/LO/2Oc6URxoMiYpnYY8xa9yL1iJhiNWd0iChT4DAf+ovbNZkt3SYweV2+Q==, tarball: file:projects/functions-authentication-events.tgz} name: '@rush-temp/functions-authentication-events' version: 0.0.0 dependencies: @@ -18902,7 +18902,7 @@ packages: dev: false file:projects/health-insights-cancerprofiling.tgz: - resolution: {integrity: sha512-QiGddTFAkJnqm02mxmNaHslucBloB7fkyRYBmqEaqUKclvfc7dIex6SNH4nl+FJqxpesppBeJCAr0ZBXHLElFw==, tarball: file:projects/health-insights-cancerprofiling.tgz} + resolution: {integrity: sha512-SEqfitwf97ujsCAYf9scDyMtJoGFkAh5UePd7oXiA1KMonWi9PBnXj5f/oJJCqwVL6TC1ecEmLsQ45yUHV3zoQ==, tarball: file:projects/health-insights-cancerprofiling.tgz} name: '@rush-temp/health-insights-cancerprofiling' version: 0.0.0 dependencies: @@ -18947,7 +18947,7 @@ packages: dev: false file:projects/health-insights-clinicalmatching.tgz: - resolution: {integrity: sha512-lU/y1XtBLQrJwnS3Jamc3GpHURjGX9lo5weg/6Z5Yh4l7E55sToc/Q9DTT9AzVjniH+Q8sOL57yvkZNWHB6Bfw==, tarball: file:projects/health-insights-clinicalmatching.tgz} + resolution: {integrity: sha512-VKYG1JSqzTo1U6hiv2YCYPtxzaceogeSpgrEHNNxmSxxvjGfa4hw0li4CMbeo5+xUldD+tnC9b+PI3lv65aKOw==, tarball: file:projects/health-insights-clinicalmatching.tgz} name: '@rush-temp/health-insights-clinicalmatching' version: 0.0.0 dependencies: @@ -18992,7 +18992,7 @@ packages: dev: false file:projects/identity-broker.tgz: - resolution: {integrity: sha512-xnpra9AmBgizl2J7ezhuvY8wSe02Hd/mzdJpCE9xFtjnvqwsss2t1KfaSub3wFFIZs2oB1ZR7mgfUZoh1+9Gdg==, tarball: file:projects/identity-broker.tgz} + resolution: {integrity: sha512-475JqVXXbDHahjfGWUO2HCFk/xWYW4ti6H5O6Vtj51DnJJ0FyAAbhXPSTVApiEcxIagTodXvuQDj2jVCHeTp5w==, tarball: file:projects/identity-broker.tgz} name: '@rush-temp/identity-broker' version: 0.0.0 dependencies: @@ -19022,7 +19022,7 @@ packages: dev: false file:projects/identity-cache-persistence.tgz: - resolution: {integrity: sha512-kg0VSZUSWO55lCNOZmcaxwaJoYtTc/QcmBsPR/1H+cPoPz8ru29AE+ezL0EV2FDialkQgJuXzFJHOCjbPG3N/Q==, tarball: file:projects/identity-cache-persistence.tgz} + resolution: {integrity: sha512-ZuEMCW/PmvxZ6SiqnzYyxp71wckGAH7DIlfBHEg6vG0tRs+c/si+0jAVjMeH1RTq6TDCtD3HK9Cg6HxIUA1e3w==, tarball: file:projects/identity-cache-persistence.tgz} name: '@rush-temp/identity-cache-persistence' version: 0.0.0 dependencies: @@ -19058,7 +19058,7 @@ packages: dev: false file:projects/identity-vscode.tgz: - resolution: {integrity: sha512-I8r8/eKPSe1mP6CnUpx7q4AS9WdE1qGnkVCXEjr8TPn3p6nL8x/oCS9IaLdh53zZGtm9c+oKxrB70EGoHyg5oQ==, tarball: file:projects/identity-vscode.tgz} + resolution: {integrity: sha512-hvZPk2ereNiXuCtyW2AJqE0jBpmKrvPV3QYR1xqdQL7xkUS2nk+jqWi2OVDTYqsf382eD9KqIChhQHYMsj8RGQ==, tarball: file:projects/identity-vscode.tgz} name: '@rush-temp/identity-vscode' version: 0.0.0 dependencies: @@ -19094,7 +19094,7 @@ packages: dev: false file:projects/identity.tgz: - resolution: {integrity: sha512-TjMLybsTDIAccJqitKW7URQQsPOJN5Np8UGIg0Odmnb1LoV42zOJ6P9BHM3y+mS3yAXQc1IfKFLbpZso8SYARA==, tarball: file:projects/identity.tgz} + resolution: {integrity: sha512-2WHORt9tq2Yy7hE19nxOk/vwXBAbGHKsypwRpbGTHujaPOluIQ31MWPzu4DFgPYCEGo5390TvcpxqNYTY416aQ==, tarball: file:projects/identity.tgz} name: '@rush-temp/identity' version: 0.0.0 dependencies: @@ -19153,7 +19153,7 @@ packages: dev: false file:projects/iot-device-update.tgz: - resolution: {integrity: sha512-GAKRJnsR4phA+XB0PVo/98qumeyV7VSaxl712GJAgkWtlYTpVlZ5UqdSV3bSLDdgAUYoK53syiTZ5+7fQvM1Vw==, tarball: file:projects/iot-device-update.tgz} + resolution: {integrity: sha512-IwsROm90jFG6bv+A6go0t73n5eHVqS34EKb2sPasLDJlQET+e9wnht0+W/2Xb7YdH9I7V1bGy9JPrAGwfV0XNg==, tarball: file:projects/iot-device-update.tgz} name: '@rush-temp/iot-device-update' version: 0.0.0 dependencies: @@ -19199,7 +19199,7 @@ packages: dev: false file:projects/iot-modelsrepository.tgz: - resolution: {integrity: sha512-A+PctVQZSpvrtzW7bylMpT6lyiQ1UfoXltPqWhRV6Fyjw8LMy6qJQDM6/2cV6a2XOs4arLgBWBYxnHYTggDRcQ==, tarball: file:projects/iot-modelsrepository.tgz} + resolution: {integrity: sha512-1qr89gbpkduoxn0jIAvttum0fd8okVcDtYBBjDOOFoKM8Scy5B1gvYK2IEfYKEkOQHPs85+XCTl6GACpQCkIrA==, tarball: file:projects/iot-modelsrepository.tgz} name: '@rush-temp/iot-modelsrepository' version: 0.0.0 dependencies: @@ -19244,7 +19244,7 @@ packages: dev: false file:projects/keyvault-admin.tgz: - resolution: {integrity: sha512-jff6hdnWdn8Pl8FNbM9s7ciZa3tHFJvuoX2aTpmer+ylBURv62I/ZnukHGebQJ4o1/C/3bp2XTw6UI+f/I8Xeg==, tarball: file:projects/keyvault-admin.tgz} + resolution: {integrity: sha512-+ZcfSjiaPNNdQ1ujuuF8p10GP7yr1M+JlizHvJBDVNztfonBPFWsBVfxcASjwawtUcZOKoi20Uy+5ZpNneYOmg==, tarball: file:projects/keyvault-admin.tgz} name: '@rush-temp/keyvault-admin' version: 0.0.0 dependencies: @@ -19277,7 +19277,7 @@ packages: dev: false file:projects/keyvault-certificates.tgz: - resolution: {integrity: sha512-y9vhHiif2Yc+KqaGrmeJvrjg583wRF3J2ZFggnJscqLUNZ1XGsgrfDu8K83wnboSAF3z7GOS/49kk6UBOrA/kg==, tarball: file:projects/keyvault-certificates.tgz} + resolution: {integrity: sha512-jYCvK2cli0g22T3e6I3metbgL4D7ENpiZwkwk3qickztNrDpMAH5l856q/kLLNqTVF3F8RmnRJPRV18YzJ3Obg==, tarball: file:projects/keyvault-certificates.tgz} name: '@rush-temp/keyvault-certificates' version: 0.0.0 dependencies: @@ -19324,7 +19324,7 @@ packages: dev: false file:projects/keyvault-common.tgz: - resolution: {integrity: sha512-dJWnTWprhQqdGW+1c8EgG7Kcfz4JQVfpfUvwD0FR6/p9cfwpCVp1jY5iqZ+JpbQXUSq/jMpvhu6isFebgwqQOQ==, tarball: file:projects/keyvault-common.tgz} + resolution: {integrity: sha512-oSbC2Xd6TL+98N2MyV+hhjjL1H3BtDe3J709ngAQSUZcCK1mkxk2kYfml3Pvpo8wv2PQkKnMsIIhIm1/0D4pBA==, tarball: file:projects/keyvault-common.tgz} name: '@rush-temp/keyvault-common' version: 0.0.0 dependencies: @@ -19354,7 +19354,7 @@ packages: dev: false file:projects/keyvault-keys.tgz: - resolution: {integrity: sha512-/0tjMZxA03d9mquNk+HECG2G1uI4EHLPHZsBNy6vgceWAvjDp3Fa5N4Q+G3axT2mST/mNncT18jBaJKLfMRSyA==, tarball: file:projects/keyvault-keys.tgz} + resolution: {integrity: sha512-GXd0DQS7GYl4sgyZYB8zgBRDq6vgmYMXGtr037jhUyozRal+gcC265KF0cd4htTfR69bFNpkbYG9kKWr8cftVQ==, tarball: file:projects/keyvault-keys.tgz} name: '@rush-temp/keyvault-keys' version: 0.0.0 dependencies: @@ -19401,7 +19401,7 @@ packages: dev: false file:projects/keyvault-secrets.tgz: - resolution: {integrity: sha512-qilqsRz3OG5SyiSthnHa2KTEKjLqgkwJ2e212ncpcgljP46OSzhex2km6lWkJBDWQl8guR0KmBdIIl2zx5UIuw==, tarball: file:projects/keyvault-secrets.tgz} + resolution: {integrity: sha512-a8v9mYljWn1jHA53jqi2Dl2DZrbaPZ6hAyqnocfNeflpxfZ5xVylkiaTDsx6xa4HmIUT9oEZuD9FqHCiEp3Xqg==, tarball: file:projects/keyvault-secrets.tgz} name: '@rush-temp/keyvault-secrets' version: 0.0.0 dependencies: @@ -19445,7 +19445,7 @@ packages: dev: false file:projects/load-testing.tgz: - resolution: {integrity: sha512-bMn45DkyT2DI5FW9uZqXt+Q7b5e8aot+2+QP49/9fGL6+BgNfj7Yag7f3zMBgVRR6w1qytL8kMtbpeH2MSipCA==, tarball: file:projects/load-testing.tgz} + resolution: {integrity: sha512-rXwjiGyhrTGp3JBk4iBGPjtRfaXasMZ4MDr3vfoPjG8crp8JUhyz/MfDDvy1XAbJapb0ics9mThGAzpRbTn50A==, tarball: file:projects/load-testing.tgz} name: '@rush-temp/load-testing' version: 0.0.0 dependencies: @@ -19492,7 +19492,7 @@ packages: dev: false file:projects/logger.tgz: - resolution: {integrity: sha512-HNeet1Bsisdbk+knVanszHQfxiJJndnUg0A87tPKr8gvF7BI7WgMgzVduXEotvr/L+5NOKuWVYbGAKsAoOFkGg==, tarball: file:projects/logger.tgz} + resolution: {integrity: sha512-5KPvozaZD34dIlE5ZNQuNbzbAMwc4gkYS+AHim+PE0uDLQ7G0KzeneQrvtWncp4fLEyKy8OpJnGiH1+p0x6oTw==, tarball: file:projects/logger.tgz} name: '@rush-temp/logger' version: 0.0.0 dependencies: @@ -19534,7 +19534,7 @@ packages: dev: false file:projects/maps-common.tgz: - resolution: {integrity: sha512-VEvNrw/1OBBQrHPns4U+ZBtlNllI8taI+fEJqYkK2OtzV0HGZq4Y81RLBxrBvFAMGe48QnoBqnqJFHMLEJymXw==, tarball: file:projects/maps-common.tgz} + resolution: {integrity: sha512-Y6L5F8JjnZ78NGBzj8fKYNqAlv+KmT3nKgU3nhthpixzwZ8Fgu6lcJIPHx8ck0xqa9NdBLEg4ES8pQG3iDoXhg==, tarball: file:projects/maps-common.tgz} name: '@rush-temp/maps-common' version: 0.0.0 dependencies: @@ -19553,7 +19553,7 @@ packages: dev: false file:projects/maps-geolocation.tgz: - resolution: {integrity: sha512-Ap6hXpvKJbe6mnq3zt8otAkG0SxxdPJ+Reh99ePVTDfDa/8Hu0MkQak3pqUbvnF/3xgAmiyC0T4WJ5697UFaJg==, tarball: file:projects/maps-geolocation.tgz} + resolution: {integrity: sha512-Sm69I3ggOcLbp/XqoZFfvUriG1jkLugX3rCBd6ZjkLNq/FL/3OYoRVVNfbWfjdwpb3PhIqSf7FSsElrxMBbe0g==, tarball: file:projects/maps-geolocation.tgz} name: '@rush-temp/maps-geolocation' version: 0.0.0 dependencies: @@ -19598,7 +19598,7 @@ packages: dev: false file:projects/maps-render.tgz: - resolution: {integrity: sha512-xfOsIQIu8Zlcmi+uHOaVbQZij6iIVMNpqtPiKW9Q4aV7Zkjtr5Qfnuczw2aMDgVilVRmojIaWmVuKIqCesdkig==, tarball: file:projects/maps-render.tgz} + resolution: {integrity: sha512-hNuC9BnralPMfft9+aFA0XkG2ArclMFHzxLppaiQflE/7Dpa1yUVVT8HKkvYQIMqfEKhq7VJw4x/OgcCp0PmXg==, tarball: file:projects/maps-render.tgz} name: '@rush-temp/maps-render' version: 0.0.0 dependencies: @@ -19643,7 +19643,7 @@ packages: dev: false file:projects/maps-route.tgz: - resolution: {integrity: sha512-Eih0Lq4lKp6rhTCON6P8FJPM4FBuGOaZtViVveCGCSFOB6UL/B4OJlPPVLrd0Ga4PqyMwgHTQ8BEIPBUIEJ77A==, tarball: file:projects/maps-route.tgz} + resolution: {integrity: sha512-aoLiRhVJ9O9uXYRqrM5DM8NCNUmp5fwby+VrZQMW0q6XsN5Sk19hlErDRpL9T0vJZbCCcQQXz/YUSZxwYHD+Og==, tarball: file:projects/maps-route.tgz} name: '@rush-temp/maps-route' version: 0.0.0 dependencies: @@ -19688,7 +19688,7 @@ packages: dev: false file:projects/maps-search.tgz: - resolution: {integrity: sha512-iPZdU/eH4BdIMvdWiWHz5orCoDeZWl8qC9vTU7VkPkMegj+CFDq+1ofLOpEB0ZITZ2yTz6ujKz7rZD6ixhhzjg==, tarball: file:projects/maps-search.tgz} + resolution: {integrity: sha512-klicLHPf9Lmf/Cb7iyusBz1OOhfLz6HnuzmbP1gAEUbSfwg5CRSkS00xnp2adgzT0hOZlyitaDGg4Ev0aCLgaQ==, tarball: file:projects/maps-search.tgz} name: '@rush-temp/maps-search' version: 0.0.0 dependencies: @@ -19733,7 +19733,7 @@ packages: dev: false file:projects/mixed-reality-authentication.tgz: - resolution: {integrity: sha512-HU7qnvsZFiDP9m9fWEuR+aeqMZ39njLs1l2h6hAhYwM9DnN8jxMzOScs5hl433T9rSVU8O4LhmG3N0FiTGHzHg==, tarball: file:projects/mixed-reality-authentication.tgz} + resolution: {integrity: sha512-ZmrVsVOMSzjqwBnpYh/ad1zMJj8XdHhV6iW3VetGsKjsKwrMNnSPRgcOFhMejuq999nwSPC42//fKyVFZPo7ag==, tarball: file:projects/mixed-reality-authentication.tgz} name: '@rush-temp/mixed-reality-authentication' version: 0.0.0 dependencies: @@ -19776,7 +19776,7 @@ packages: dev: false file:projects/mixed-reality-remote-rendering.tgz: - resolution: {integrity: sha512-oRzGXJMoYJSXj3khZo2Z44lUf0QJpieELjTohwoiBgFKeO0td8HfmU3bA9py99mnq+uE+f4jy/HQm8AOqNVdLg==, tarball: file:projects/mixed-reality-remote-rendering.tgz} + resolution: {integrity: sha512-3UAbErzXcBSrtjF9GTQ6TdgZ820/8UmceK2g6inj/9tUf4lStRpA5PjVERAAOJVhq7bqcFRM1CjTlD4LE1n6hA==, tarball: file:projects/mixed-reality-remote-rendering.tgz} name: '@rush-temp/mixed-reality-remote-rendering' version: 0.0.0 dependencies: @@ -19824,7 +19824,7 @@ packages: dev: false file:projects/mock-hub.tgz: - resolution: {integrity: sha512-yaMhHE9TB85T0EGlp/5vbwBCQplc3lVWRsI7czTZLRfbOSa8ucGZcPSHl1WZok6RZhT63Q9q6bY8bpTac5y+eQ==, tarball: file:projects/mock-hub.tgz} + resolution: {integrity: sha512-gOYNj2eRYPdVnX2P4cmugHsTJm/t2powaHTiOFk4blRoX4NfB84g3Gavk/raJZk83Mku8TAOy/0bp5EvVhO7Yg==, tarball: file:projects/mock-hub.tgz} name: '@rush-temp/mock-hub' version: 0.0.0 dependencies: @@ -19845,7 +19845,7 @@ packages: dev: false file:projects/monitor-ingestion.tgz: - resolution: {integrity: sha512-zdoSy0KzfLMEhEDKVQ6Mak4ViWlnLLxFYiXNlMmyD7xV2Oypc8J/2MwhOxz/bB0Gf6ZH9mFXguuEXZEriCro4Q==, tarball: file:projects/monitor-ingestion.tgz} + resolution: {integrity: sha512-1FubfhKZoXvK3ViC/rN8i3YPc0k0ERzQKNxeBH1n+h7MRv22w3DfpqkSVlTdK5b96yuD3zcSfIpQ/0g6ia9dRQ==, tarball: file:projects/monitor-ingestion.tgz} name: '@rush-temp/monitor-ingestion' version: 0.0.0 dependencies: @@ -19894,7 +19894,7 @@ packages: dev: false file:projects/monitor-opentelemetry-exporter.tgz: - resolution: {integrity: sha512-huLlFhbZcdVzz7HPWGvfOVpgvaKm+GAqB1l11s+xtYlF1JvDBbcz/znynyUOXhKjGYC60XZh3lrBIIRp373VvQ==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} + resolution: {integrity: sha512-lQ2wDY5wg/m9v/WhfDkhOgtpezrHq5P14jFIhzZN0gRJXFz5SfnV+tWRC4xRNRkpwpp/co1jpwiNqmkcaQf5aQ==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} name: '@rush-temp/monitor-opentelemetry-exporter' version: 0.0.0 dependencies: @@ -19933,7 +19933,7 @@ packages: dev: false file:projects/monitor-opentelemetry.tgz: - resolution: {integrity: sha512-WhhoxGYpFOeGMWpzaiLWl5ADIPAPtWln09oP/jKZfxuRlRDZdfBeCdz+K6jgKfZAH6PmwdQGuTIMQiVz8wXJbA==, tarball: file:projects/monitor-opentelemetry.tgz} + resolution: {integrity: sha512-EHvXIIQh5BFcSpvzSrYB2w5t4x3qlPFr+rrHp1AFDjpZ2OV2RW0SzGiTk6CU7h4xXHxNfyFHcB6YIRdWR+GiJw==, tarball: file:projects/monitor-opentelemetry.tgz} name: '@rush-temp/monitor-opentelemetry' version: 0.0.0 dependencies: @@ -19981,7 +19981,7 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-GYiu5EqeNqTh5qoRhXrda+p/rzOesTjfE0aTWJDKJ5YaGEfFGZvINMp3NzaR7aSImZ5UQXtEkHyJnppQXOMppw==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-Qk2Q5wKzJcenPMRn5E/UHE75cr70RKaqUFJ98JDyh0soTwGdQc3UHX/QWOpTfPg5r2zxND+wRE8NTHZcySiIyw==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: @@ -20028,7 +20028,7 @@ packages: dev: false file:projects/notification-hubs.tgz: - resolution: {integrity: sha512-v4tcswMmB7Yiu+gUD75YqN74F61sA40bA31YdXN5y0ydOyhg7wqi/TilxkX9TPGywRt62RAkXutCcQ0/3ZE/2A==, tarball: file:projects/notification-hubs.tgz} + resolution: {integrity: sha512-tdqPu44f4QWjKFSJn2/bAKZSKdejekiD+L5J28BStBHACyw3ouY2ybn23baf/DeFSQmFJL7AOpJlKUSk2jZdUQ==, tarball: file:projects/notification-hubs.tgz} name: '@rush-temp/notification-hubs' version: 0.0.0 dependencies: @@ -20072,7 +20072,7 @@ packages: dev: false file:projects/openai.tgz: - resolution: {integrity: sha512-Xle4dj8ViRCUrKxruYU5LuNvWv/oP6pT95vHrQSO7mkc/tT5ev0Xms2g5XQvvPGlT6kvAN0WaXJVKhgzCkml9w==, tarball: file:projects/openai.tgz} + resolution: {integrity: sha512-VVhPBRK2iqjVyYlxjbv/+iusa/nP20IZrtqvbKkkPCn0dPY1FrLjnErLmIRNYC0FWkgA64ifRimby1MQ0/JjMQ==, tarball: file:projects/openai.tgz} name: '@rush-temp/openai' version: 0.0.0 dependencies: @@ -20117,7 +20117,7 @@ packages: dev: false file:projects/opentelemetry-instrumentation-azure-sdk.tgz: - resolution: {integrity: sha512-HBN06XefxIxH4UaWNZSwupbTgih7KbMSXkEivsbL5rnoyO1lhYrVgGpGleU/RqxsJj9hImQqesd3/4XbVixsBA==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} + resolution: {integrity: sha512-aEA0quAjKXBmaM2APnFHdJytkhze0yM+F3hbYXuU+vRp0A3Xla8VGOuGsVHLFiK4RwBGtXF2s1EskZcHL11Z0w==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} name: '@rush-temp/opentelemetry-instrumentation-azure-sdk' version: 0.0.0 dependencies: @@ -20165,7 +20165,7 @@ packages: dev: false file:projects/perf-ai-form-recognizer.tgz: - resolution: {integrity: sha512-U6TVsiXb7vcvgdejr04sFG/grqSIdIvVJA7DbOsypKyf1xvuPPIl3GVEZJG1Oa4pFAtzjLyT9Y5ybg8drTVpPw==, tarball: file:projects/perf-ai-form-recognizer.tgz} + resolution: {integrity: sha512-PxNMcomAAt9UKaXEJnef6VsDO7bI8qZx823mCGfMzV6TbqepQded3oXcL7kcCLaVwFxGn6PZYBxHWwxoR87DuQ==, tarball: file:projects/perf-ai-form-recognizer.tgz} name: '@rush-temp/perf-ai-form-recognizer' version: 0.0.0 dependencies: @@ -20185,7 +20185,7 @@ packages: dev: false file:projects/perf-ai-language-text.tgz: - resolution: {integrity: sha512-NqSj2g2Ce7Vu2IReCReJWkt1EGhpHIgylRkeKpio6tVBz7XbKQf4uT/AtuXNkCftuIVE2u3B+l/3awqGIWshxQ==, tarball: file:projects/perf-ai-language-text.tgz} + resolution: {integrity: sha512-7sIc1YuPEfk27Ey0W/9iyDPSA4doNZEA2x0n9cONglyaA07NzPjhjKGCMYrn6tup27O0/WURC7TJBCQSjerIhQ==, tarball: file:projects/perf-ai-language-text.tgz} name: '@rush-temp/perf-ai-language-text' version: 0.0.0 dependencies: @@ -20205,7 +20205,7 @@ packages: dev: false file:projects/perf-ai-metrics-advisor.tgz: - resolution: {integrity: sha512-RPuvtv3VQRsrBqUN7Y2nhWVKXVl7Ec5N/OV/fjOcx6u0dKqdNFkIMkccPITdEPMUad+UJx6c/O3ZVtJJAer+gw==, tarball: file:projects/perf-ai-metrics-advisor.tgz} + resolution: {integrity: sha512-PE10RrMyifA6rxDJvieGd2fYhSvLnEqsyVnd9AScUnVljpp550OByF9iLAHNKqCQKQ7xNOF6bequ4VkeKbPAVw==, tarball: file:projects/perf-ai-metrics-advisor.tgz} name: '@rush-temp/perf-ai-metrics-advisor' version: 0.0.0 dependencies: @@ -20224,7 +20224,7 @@ packages: dev: false file:projects/perf-ai-text-analytics.tgz: - resolution: {integrity: sha512-Q8C4LBxhg7N6EYnAckkjpTZAWvdSjbtAEaUmXTImOsqgW3SImWJE/ciWL4cBe3zRVrlXJfqFv2YT/CRcxrcxZw==, tarball: file:projects/perf-ai-text-analytics.tgz} + resolution: {integrity: sha512-JPC29avbNgq2Qu131pfcVb1tDtuDEgsJiBMhSinZbAFqZocmW+kjpfe8z7X7v3+RYPM+dgh1oBTWKMYOWKHDRA==, tarball: file:projects/perf-ai-text-analytics.tgz} name: '@rush-temp/perf-ai-text-analytics' version: 0.0.0 dependencies: @@ -20244,7 +20244,7 @@ packages: dev: false file:projects/perf-app-configuration.tgz: - resolution: {integrity: sha512-/OOfwN04z+FEbT+Xy/xPCG6x3dgtC4UCtalsDLaUNCyZjQi8BGDTkEOD5OGdymkS4we3usFgeLW229IqtBK6BA==, tarball: file:projects/perf-app-configuration.tgz} + resolution: {integrity: sha512-R64XdzkT3NHGdD8sJDMWRdcePlac+vnVT1JgPp8YmUsUYt9MQxOrafHL51PrvfHKSDKxvw4ZvaKiOjT0LE4j/Q==, tarball: file:projects/perf-app-configuration.tgz} name: '@rush-temp/perf-app-configuration' version: 0.0.0 dependencies: @@ -20264,7 +20264,7 @@ packages: dev: false file:projects/perf-container-registry.tgz: - resolution: {integrity: sha512-5t124d9vVt0N+SL8YZPsrBhRD90QZQgIkudg4GKRunTIhJWTpsu2IO8eiyIeChv7g429WqMnMW7k2ZMs+qmHWw==, tarball: file:projects/perf-container-registry.tgz} + resolution: {integrity: sha512-bO3D4L0kyh3xmcXSlqXEW6OI7i54KYYAmtvU5Y9vK9s9/RUcynpkEqsRR2kgTc9WjoGhY6Qervz0OKAyP7hziQ==, tarball: file:projects/perf-container-registry.tgz} name: '@rush-temp/perf-container-registry' version: 0.0.0 dependencies: @@ -20283,7 +20283,7 @@ packages: dev: false file:projects/perf-core-rest-pipeline.tgz: - resolution: {integrity: sha512-yfiIBultszhnXaPEUL/v0WNBozDoxD9G7Uf5WZ3D1BBhjQBdl0zut+VODqw2Oa22/KDom2O4SfgwKTKD7Vl/CQ==, tarball: file:projects/perf-core-rest-pipeline.tgz} + resolution: {integrity: sha512-E3cmfj51PAp7L5qthYum5gxi9yDLVaoIiicnzx0fc2T5+yTRkucT4plobOjZvDkhmH7O7TGebmp93swPlotM0w==, tarball: file:projects/perf-core-rest-pipeline.tgz} name: '@rush-temp/perf-core-rest-pipeline' version: 0.0.0 dependencies: @@ -20307,7 +20307,7 @@ packages: dev: false file:projects/perf-data-tables.tgz: - resolution: {integrity: sha512-w/SHh7KAxI2+dTRJzSZk+MqJtT+NxUi0P80rwGttYG+JoKXY1kek+XNe/ZKHsFa1pZ5qwstZI4uZpIaLFQFBqA==, tarball: file:projects/perf-data-tables.tgz} + resolution: {integrity: sha512-Hu01MIuQz3Xefu09eyVxrQ8idfdLamz6KpdGqnFRLsUjsP8K6Geby4ZrUc8HVNol6Ize66EQomLHOJbSMFUbKg==, tarball: file:projects/perf-data-tables.tgz} name: '@rush-temp/perf-data-tables' version: 0.0.0 dependencies: @@ -20326,7 +20326,7 @@ packages: dev: false file:projects/perf-event-hubs.tgz: - resolution: {integrity: sha512-lt3tzCKLbGRAojGlNqCg2OWriEs/zuOLSZ6CBamAk5E+sWXA3RESHNkvXElBzVNdWvz+1JE72oKc4buxDhRYYg==, tarball: file:projects/perf-event-hubs.tgz} + resolution: {integrity: sha512-YFSvbefvrnON7ydn1SzUK1ZMpD1jUjlUUV5bzB8IVeaYqRzI3xd4JLD6WIo3oH7X3OqoGoCNdxX+e/zSNNOi7A==, tarball: file:projects/perf-event-hubs.tgz} name: '@rush-temp/perf-event-hubs' version: 0.0.0 dependencies: @@ -20348,7 +20348,7 @@ packages: dev: false file:projects/perf-eventgrid.tgz: - resolution: {integrity: sha512-CspqxkKDhbIsF9oLIpgI7cBUjdZ5fZV8tbg29OWGHsg3U6s6TgRxgLp3IqjcUOxAFwNPI+YDY268jDMhfdONhg==, tarball: file:projects/perf-eventgrid.tgz} + resolution: {integrity: sha512-vL0g6a0pyive2w3UH3kuiMhAHXoy4S39qsu55YBVqDD9dhR6J/W8lotjZBFVil2Im61m7042ktKZZNTALqItBg==, tarball: file:projects/perf-eventgrid.tgz} name: '@rush-temp/perf-eventgrid' version: 0.0.0 dependencies: @@ -20367,7 +20367,7 @@ packages: dev: false file:projects/perf-identity.tgz: - resolution: {integrity: sha512-x1H+8ipkBaSfFzOopUTcnnXVKuwvYxvIxdFyCp2TBfj2dJsGVAFqC4PsYdMKmbNNurdRK8t3q3uv6kASsz3A6g==, tarball: file:projects/perf-identity.tgz} + resolution: {integrity: sha512-QS4/o+FbHEiPuW+mlF32J1Z1QW4OtDNMCA4yi+QoC1UrtV5sHHWA4AWwd5D5bh8pfDMpR3ffyzkbuGQBQVi4zw==, tarball: file:projects/perf-identity.tgz} name: '@rush-temp/perf-identity' version: 0.0.0 dependencies: @@ -20388,7 +20388,7 @@ packages: dev: false file:projects/perf-keyvault-certificates.tgz: - resolution: {integrity: sha512-uW/U0qhO513tlkthLkHjI+XGOMXbD5ZKlHljvmDy0ZkAVfxeQBCBdM2QH488nAqu2ZK3+Zqdt5KH8zk0LQxdLQ==, tarball: file:projects/perf-keyvault-certificates.tgz} + resolution: {integrity: sha512-6bmcAibcjDXJI1V2rev+PqIwokEIhwZOC0/Oe+ae082FFafaPjBDOJwcUfBSDgpJHWDWs30ptXj3liEepwU+hg==, tarball: file:projects/perf-keyvault-certificates.tgz} name: '@rush-temp/perf-keyvault-certificates' version: 0.0.0 dependencies: @@ -20411,7 +20411,7 @@ packages: dev: false file:projects/perf-keyvault-keys.tgz: - resolution: {integrity: sha512-Ct0jkAszeRWVVVahwgsdjS2vjU8u1kz4rTVWJiynVXzFKPhWjn4JvjkWl18nEdvG7Uy7QY6PgUFXmBgKb9asBw==, tarball: file:projects/perf-keyvault-keys.tgz} + resolution: {integrity: sha512-DqrGd+qjz2LdKEwExtfLqEIAEM83fdNtdhkVPOGHSDH+9iGs9M1IcQQkJMMR7LRBndUOz8wg+s0M9depEEp1qQ==, tarball: file:projects/perf-keyvault-keys.tgz} name: '@rush-temp/perf-keyvault-keys' version: 0.0.0 dependencies: @@ -20434,7 +20434,7 @@ packages: dev: false file:projects/perf-keyvault-secrets.tgz: - resolution: {integrity: sha512-o47+h6KJRAQcEKPVah1eiuQW59wuv3Dm/JESztq4JZewPNd4Zmem3V4XmyApOauhepHxwieiGsl40tzH0s2tQg==, tarball: file:projects/perf-keyvault-secrets.tgz} + resolution: {integrity: sha512-tfOTyUjoNq3WfjNyi8eZ7lDlVbeqBvFewl4P8GYAsPVNt03YvNOM3fUbJcKuP/iwDPfgSbLX/wRz1CqqVbt2Hw==, tarball: file:projects/perf-keyvault-secrets.tgz} name: '@rush-temp/perf-keyvault-secrets' version: 0.0.0 dependencies: @@ -20457,7 +20457,7 @@ packages: dev: false file:projects/perf-monitor-ingestion.tgz: - resolution: {integrity: sha512-j0ZdSh/RVx/7GLpOrismZBTZb8yAPXoXRp362VUUSe1T+DVtbLCT3wLNB98xF1RQgw6zBn38VZGa7OxVNO5uxw==, tarball: file:projects/perf-monitor-ingestion.tgz} + resolution: {integrity: sha512-bj4ERlEx7ION0erV96bGbWkH4CEO46JIZ2ePEaA/tHY0/bSAadNvCtFODjl25AhJkek0h/pQFfusylSw6sAYTQ==, tarball: file:projects/perf-monitor-ingestion.tgz} name: '@rush-temp/perf-monitor-ingestion' version: 0.0.0 dependencies: @@ -20477,7 +20477,7 @@ packages: dev: false file:projects/perf-monitor-opentelemetry.tgz: - resolution: {integrity: sha512-Zgh28zMjk2FBDsaAAZ6fTTmGbyzZdhs5obhkJa40b1o2APhQIo1Sdd5Gnw0n4aaOepa5JPNX5Yow8ryuS4Deag==, tarball: file:projects/perf-monitor-opentelemetry.tgz} + resolution: {integrity: sha512-utOT9IS6GbySIfEl3DHQ3nST3GjpJLA/rZlReYBw9tv57vn84K6TjjpU3ii8xnqq+m3jxOVqtHLlmi1ZK9jnkg==, tarball: file:projects/perf-monitor-opentelemetry.tgz} name: '@rush-temp/perf-monitor-opentelemetry' version: 0.0.0 dependencies: @@ -20501,7 +20501,7 @@ packages: dev: false file:projects/perf-monitor-query.tgz: - resolution: {integrity: sha512-cr3NnpE1cTOEZHqTMwOo5YaPLvDT0YqylVjTG1nMYj24fJj2fSamR6Vn1eukPJjkGqr4jF9SgYrqIgOd4Zub4Q==, tarball: file:projects/perf-monitor-query.tgz} + resolution: {integrity: sha512-8shPYVmYVgnmV61u8r1MTJRlm9rnzqHHBeX1lyiH4E8nm3hy8IU/gET1W02DblpdFpUeYFhRgt/xgSSXn/Fw8w==, tarball: file:projects/perf-monitor-query.tgz} name: '@rush-temp/perf-monitor-query' version: 0.0.0 dependencies: @@ -20521,7 +20521,7 @@ packages: dev: false file:projects/perf-schema-registry-avro.tgz: - resolution: {integrity: sha512-raym/RD7gz+2AIBTBMBcFHETMwgKGoPHArxv1Glc/ebznR8wrjHXVqZHlkexfPcGKun/KidUT+7eoCjgOfhxWQ==, tarball: file:projects/perf-schema-registry-avro.tgz} + resolution: {integrity: sha512-BwO1wbGtqR90O9V3hiHzhlFFyZ4Py3oR2NuafxfjMTUuxMjCAXfgW0sIew919q+ESjTulpKeYthfutfDJc/s1w==, tarball: file:projects/perf-schema-registry-avro.tgz} name: '@rush-temp/perf-schema-registry-avro' version: 0.0.0 dependencies: @@ -20541,7 +20541,7 @@ packages: dev: false file:projects/perf-search-documents.tgz: - resolution: {integrity: sha512-aXhSjY5/pJKeX+Qhtsip3gtEsQ3gO7EfEJPzipWeeZa/gj25oq9tAEZr754BA1/UUJa0JgiT1kNgqnqa1AGp4w==, tarball: file:projects/perf-search-documents.tgz} + resolution: {integrity: sha512-rWAklMeFXQ7QVIFNS37WFQhxigZoJKk8qFY/yiPqQcyC+jFBjqb6kw4sudIro+eoHoJpevIi+qeh9VsKuFJaXA==, tarball: file:projects/perf-search-documents.tgz} name: '@rush-temp/perf-search-documents' version: 0.0.0 dependencies: @@ -20561,7 +20561,7 @@ packages: dev: false file:projects/perf-service-bus.tgz: - resolution: {integrity: sha512-evYXFgwOjx696bKu4M3FfPf4EkLBycu44xONUF6oDSNxMb6hKFRAQgusDZHIvhvtho868HpVioWnjDHOgT/9Dg==, tarball: file:projects/perf-service-bus.tgz} + resolution: {integrity: sha512-/Yb0x2M00bA2n+r7uGuKErN/IwhtdaEHIaFWnRYvsPMvLVfdcT63/jTJMUd+M7jEt+JG13axGPYNMZFpWK7MxA==, tarball: file:projects/perf-service-bus.tgz} name: '@rush-temp/perf-service-bus' version: 0.0.0 dependencies: @@ -20582,7 +20582,7 @@ packages: dev: false file:projects/perf-storage-blob.tgz: - resolution: {integrity: sha512-ebzjhkMOpcug4ZKNZYm8hwYSJWhAc88EmwTn6Hyq365QO3hiwf0tIlCOqCjsiCSnlCByN004h0hqCCrgTpakMQ==, tarball: file:projects/perf-storage-blob.tgz} + resolution: {integrity: sha512-22owgcmsKxNh15hjey3AJZvRM8dWhJbYLPzlXkmaLrN4gTy1JdM3SwumOblPAYvHSi58bGzL4qIf17HIC+Zv5Q==, tarball: file:projects/perf-storage-blob.tgz} name: '@rush-temp/perf-storage-blob' version: 0.0.0 dependencies: @@ -20603,7 +20603,7 @@ packages: dev: false file:projects/perf-storage-file-datalake.tgz: - resolution: {integrity: sha512-yCrgI0lOkvePjiRe0rEIQHg+wJNmE5USxLfey7w073pSBOpA2txAJ96Cfnw7GeAFRiMpWHcGtg/4p+vJ16kasw==, tarball: file:projects/perf-storage-file-datalake.tgz} + resolution: {integrity: sha512-+7Beblw31X0cjYntzt9AIdHErtLI0kC7w19f0ZUc74NGPeKQOk8S6q99aj+5mG5E1lE3AlxAdB5CT44pCVWyOw==, tarball: file:projects/perf-storage-file-datalake.tgz} name: '@rush-temp/perf-storage-file-datalake' version: 0.0.0 dependencies: @@ -20624,7 +20624,7 @@ packages: dev: false file:projects/perf-storage-file-share.tgz: - resolution: {integrity: sha512-E+58AP4fZGFdb4WsKQ8BZ3t8ceQW/rRAWcWY3k3OiUVzPIz0SJEHWLoAMavNHrgq3W/FLhfYWwL7F44poGYi6g==, tarball: file:projects/perf-storage-file-share.tgz} + resolution: {integrity: sha512-sY7W+cedaLxp79WaJ5B/7ff4IXvGxEeXHHJyMoN8EadaPvlwGTgZ5IpcQPit4jZgudxKChdK8Qip/61RkAgpOA==, tarball: file:projects/perf-storage-file-share.tgz} name: '@rush-temp/perf-storage-file-share' version: 0.0.0 dependencies: @@ -20645,7 +20645,7 @@ packages: dev: false file:projects/perf-template.tgz: - resolution: {integrity: sha512-rv2+ly48oewO41wRZ8BwMySTEu2RfvnI17kPK5dL4ogx2q2LDQFFREfuAOoP0prc7lBLMlpX/PUw41w00HcDKQ==, tarball: file:projects/perf-template.tgz} + resolution: {integrity: sha512-Q3A3sjSfS1eRwALsBBeokF1t14yL87D578gKzosLLwwSuMQKgcu+S2RWGBZe0HIYfMzC8rdLflQXna1kamwdmg==, tarball: file:projects/perf-template.tgz} name: '@rush-temp/perf-template' version: 0.0.0 dependencies: @@ -20666,7 +20666,7 @@ packages: dev: false file:projects/purview-administration.tgz: - resolution: {integrity: sha512-a3m6AJ9XltFMwM7GSK4U+5JU4Kqr1WkexjfgzF4ravz6CdwfY1HHuCC6YE+E46jvNUQl7OK+bkxNH047ejcMAg==, tarball: file:projects/purview-administration.tgz} + resolution: {integrity: sha512-bMLEp14Ju7h1lvKLlf7zzqfmksotmi2ge4wwzHdXvGrdpv/CPR9qTx9lqxIFXrEhVRBW+8hSzwkAGFg7rGgiPg==, tarball: file:projects/purview-administration.tgz} name: '@rush-temp/purview-administration' version: 0.0.0 dependencies: @@ -20709,7 +20709,7 @@ packages: dev: false file:projects/purview-catalog.tgz: - resolution: {integrity: sha512-mQRzSJ1EjKI5V35OHZXvx6/UfiNmgJB1brz83WbNEcTkaGPSMFKLLlXSz2oU6+zFlEs0frsxZURa/YVUkODKXg==, tarball: file:projects/purview-catalog.tgz} + resolution: {integrity: sha512-2tEGBSFXhDJVKtvFW/omCxwpbKl8aLXW4ZxNYlyZ7wXqsgUv5Rwo4d8uYv/NtaodojkAn9WgouvzcP3wwpMtig==, tarball: file:projects/purview-catalog.tgz} name: '@rush-temp/purview-catalog' version: 0.0.0 dependencies: @@ -20752,7 +20752,7 @@ packages: dev: false file:projects/purview-scanning.tgz: - resolution: {integrity: sha512-gXINdUCnU5VYx8N0+1i/4G3vA8CzwW1M6CfD6l8WRsl874yVd2BZqhE1RCtUE3ZmJ2uhEMrY6eKbBojzKqrMOQ==, tarball: file:projects/purview-scanning.tgz} + resolution: {integrity: sha512-h429JeEOBbUt4PfrdNxNV0RmbeweOAtWCLsgViaA08AIy7hiQb3Nk+cqk6Y+sKwcsar8w/bJTPE6dc9sDb+GBg==, tarball: file:projects/purview-scanning.tgz} name: '@rush-temp/purview-scanning' version: 0.0.0 dependencies: @@ -20795,7 +20795,7 @@ packages: dev: false file:projects/purview-sharing.tgz: - resolution: {integrity: sha512-SQf+TjhgZ+OK+snUwk5SqMulVaJKrw5tZYhQiyl7roovQOjrGZkqPRCcpenpmWl2eGiJ4kLe6bDkbETwXwhR+g==, tarball: file:projects/purview-sharing.tgz} + resolution: {integrity: sha512-W37NkImNqlM2zLdd6wDX23PcPYq4dVF1u9R3QPnhSomf7ZClNvtpOK0MjMbqH8/ZclsmY+cC++Jh3HlS6xatiA==, tarball: file:projects/purview-sharing.tgz} name: '@rush-temp/purview-sharing' version: 0.0.0 dependencies: @@ -20840,7 +20840,7 @@ packages: dev: false file:projects/purview-workflow.tgz: - resolution: {integrity: sha512-gEsqF8xIQAbkHSZdQvD2XuaJ2wQJ/x3PfCBWg0XVro8BEsnbTSiTcGWJXGYfN5zDXvB8dBesl2DYkLYhZLRIiA==, tarball: file:projects/purview-workflow.tgz} + resolution: {integrity: sha512-3nShJIXS8FmFDoWaTLtTokTbrSyRgInQH/+gAizf3Wdc9i2n9CpzP/IhhtArX63K89b98TCktFEAEHPByq5yRg==, tarball: file:projects/purview-workflow.tgz} name: '@rush-temp/purview-workflow' version: 0.0.0 dependencies: @@ -20884,7 +20884,7 @@ packages: dev: false file:projects/quantum-jobs.tgz: - resolution: {integrity: sha512-C+Ko8qkC3b8P+fXp8JJAtX0iimfkJDnuH3JGrHD2miNtMD2cDT1k/m042xtl8iQ89iULC2Tf8UbjWF3vPWZVVw==, tarball: file:projects/quantum-jobs.tgz} + resolution: {integrity: sha512-Ipv/asgInT9LBeiokc4ohQeNydrVZeUsGl+BWfzejNx8aax2+8GJtR7Mobu83lyNb0LD/+E4E/rqOC3PS5H3Vw==, tarball: file:projects/quantum-jobs.tgz} name: '@rush-temp/quantum-jobs' version: 0.0.0 dependencies: @@ -20930,7 +20930,7 @@ packages: dev: false file:projects/schema-registry-avro.tgz: - resolution: {integrity: sha512-ycStbNaW7QxwuE6izxbAl2SxpiotYlXjNH97czMZZBbyU1TwABivuQH6Mz1iZc8IvqDJvWj+kDi3q8iFuPGdQw==, tarball: file:projects/schema-registry-avro.tgz} + resolution: {integrity: sha512-pds+26pQPI1IiOlQyhzBR1FFi0xGXpgC8/TyzRhowWlAtkfdEp+LC2N6dujgZWKwXllmYYTJH4E83t1ggpPqYw==, tarball: file:projects/schema-registry-avro.tgz} name: '@rush-temp/schema-registry-avro' version: 0.0.0 dependencies: @@ -20982,7 +20982,7 @@ packages: dev: false file:projects/schema-registry-json.tgz: - resolution: {integrity: sha512-RqBNZ6zxnhUk/an6g7+Izr7GHrJQtHEFD2WtmRDrXQprX5w6htILcj0tBaMR9RYS7PjmktVzydXJKQBkXTodSg==, tarball: file:projects/schema-registry-json.tgz} + resolution: {integrity: sha512-S+BGoTCpZQaNEoWvlLy0ayNswc+eGJCJ1DbyW9yo3Oq7NXGXz+ENYF5y9AwUwMw5vvtRKeCou+mWnCdgaWs04Q==, tarball: file:projects/schema-registry-json.tgz} name: '@rush-temp/schema-registry-json' version: 0.0.0 dependencies: @@ -21024,7 +21024,7 @@ packages: dev: false file:projects/schema-registry.tgz: - resolution: {integrity: sha512-Lo20a8EffO/A7TXe/9RAXlcB4CGZ+lEBcx3elfjRh45TvTbBS+ifZMdgsDlE4cS7bI2SlfXc0Lc5eM5SZxyekA==, tarball: file:projects/schema-registry.tgz} + resolution: {integrity: sha512-gHMlInE1zXDHpB29S0cJ0wRLW5yt+i2GTYy4YD+MPbfHYRh55xXV1XN7A1cWUoZxUPw9rN9fLyPsKyUiIq5M0A==, tarball: file:projects/schema-registry.tgz} name: '@rush-temp/schema-registry' version: 0.0.0 dependencies: @@ -21064,7 +21064,7 @@ packages: dev: false file:projects/search-documents.tgz: - resolution: {integrity: sha512-PkyrNYVDo7tmXZxuLfvuJRkqDjZEdunKSrpGP/VCy90usIe5vkhZPKblfVxRFQ73/UGH721S+QnFZwmAqzns7Q==, tarball: file:projects/search-documents.tgz} + resolution: {integrity: sha512-9AuRy74S63+yHWthLJ0NAQU63D7xKpg8vGz4LDmuXhlZVK+9QcB2dMzxdO1rfowwcD892zc9OgoIH87Hqrlm9A==, tarball: file:projects/search-documents.tgz} name: '@rush-temp/search-documents' version: 0.0.0 dependencies: @@ -21110,7 +21110,7 @@ packages: dev: false file:projects/service-bus.tgz: - resolution: {integrity: sha512-zCJMrTm+Fxu5WwQ6wCe0DgYlBRONwzkUI3xqXtgnssSXl6oIDT0GXsTMuV6lhkWaN/gVmLisZtpjYVEvTqt/Nw==, tarball: file:projects/service-bus.tgz} + resolution: {integrity: sha512-yThj4JOTVG0Rm1gNWnebp/Xq0ywIcKDAIUa3LUoB8EUAmVRGwaWIA+qikz/wJT1iCC24h3+2K9mcdoVrQOCA1Q==, tarball: file:projects/service-bus.tgz} name: '@rush-temp/service-bus' version: 0.0.0 dependencies: @@ -21174,7 +21174,7 @@ packages: dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-O+4qyXkRJERZ7ljyH6bOzRRDWF1pmfnR5j+Xegi9JkpUfA0TmtVXkuVynIB6thOWHq0KFmjobuTIe0NtnVwfMw==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-5MFj5PniaGM7TQyX6mioTVj6vBrLid3haKQtxVAvAqYPiVHOr9GAlyGaapSsQHLoZwOL8gejZ+jAz0b2mmMwrA==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: @@ -21225,7 +21225,7 @@ packages: dev: false file:projects/storage-blob.tgz: - resolution: {integrity: sha512-G/6Bi+5183/9spd5MU4yqbLZYBz85lZMcPtgUI29Q2pSlIaGoKZWklrxgRq55ewgYAUSZ4z5LuMQ6K+lKjDJmA==, tarball: file:projects/storage-blob.tgz} + resolution: {integrity: sha512-djJM+Cb5mMXSeqHnUlb5PXhhJ1hF2evfrli8JNrEO9jVvSPazs9ttKoF3AvCY4GGL8Bg8oYkCEw9TqbLoftEdg==, tarball: file:projects/storage-blob.tgz} name: '@rush-temp/storage-blob' version: 0.0.0 dependencies: @@ -21274,7 +21274,7 @@ packages: dev: false file:projects/storage-file-datalake.tgz: - resolution: {integrity: sha512-ggaefX5kq9jjzJI+sHYAqMvGvhsxqeiPfrPj8vad6mkiOvnYxczKboTv4vvDYUh/0kLiLSx9AAjZ/90mzJxecg==, tarball: file:projects/storage-file-datalake.tgz} + resolution: {integrity: sha512-vWpWw1+Etvj4rpbV3YOTwP2I6TBHK7BwuHxPU/X5sSyOOkHy+RR3Sfa9trmrL2e+w66l1MTGbIXbOBSb8pdFhw==, tarball: file:projects/storage-file-datalake.tgz} name: '@rush-temp/storage-file-datalake' version: 0.0.0 dependencies: @@ -21326,7 +21326,7 @@ packages: dev: false file:projects/storage-file-share.tgz: - resolution: {integrity: sha512-xQtDf0jPSXqXJ416jNpF8kNUdO90GoVNsJAo5aa0dGT0HKFzDXbRVm+fJXhojcSTcl5CrT6Ia3UxrSZEsp1piw==, tarball: file:projects/storage-file-share.tgz} + resolution: {integrity: sha512-hEACRlK14GwuOQchjHNXC5pkF6jOPURaiqLXzbU18ZmUSDxf7MJpW0ydvrSYPAT1ZoIelHcmhwmpreTDc7hcYw==, tarball: file:projects/storage-file-share.tgz} name: '@rush-temp/storage-file-share' version: 0.0.0 dependencies: @@ -21376,7 +21376,7 @@ packages: dev: false file:projects/storage-internal-avro.tgz: - resolution: {integrity: sha512-JNDMP7JdbySmHBmmeETWSkWxx7UQgsTXX3htk2rNOCaTEPMNlBUErL56H291NqWnGmag/zENlNFT8jQRsdBYhg==, tarball: file:projects/storage-internal-avro.tgz} + resolution: {integrity: sha512-w7Zf3Tl9UO+h1Ts4jyHgvDVJRtEtab3azuJcgh7Vr8ej7Qf4lBgXteTyo55AbQfLKHNEGXPsbfQ8aUku4/zD3w==, tarball: file:projects/storage-internal-avro.tgz} name: '@rush-temp/storage-internal-avro' version: 0.0.0 dependencies: @@ -21422,7 +21422,7 @@ packages: dev: false file:projects/storage-queue.tgz: - resolution: {integrity: sha512-u1g6pI8IbwnDNm8yy1Il4FIxcnnv8KbhDK6ORI46nS1CoraHCLzPIcFl3k6ejzsQycFmaWbJ5FF3wjDOpgUkLQ==, tarball: file:projects/storage-queue.tgz} + resolution: {integrity: sha512-K+qXZtzq5aGJXCHl5oXl4KgpImRKYPUjXKFyjW3WChsEmAa2jfj0CqTZrE0HyvKZDOxc6wZf5NmBaiFD7g3RXQ==, tarball: file:projects/storage-queue.tgz} name: '@rush-temp/storage-queue' version: 0.0.0 dependencies: @@ -21469,7 +21469,7 @@ packages: dev: false file:projects/synapse-access-control-1.tgz: - resolution: {integrity: sha512-Gr4LgZi1EyKn0AWrPn2LJzZ4sapgEVK3mA6vQybQAPbvgpJ64BKreKid/Qe+14iq2GWQ/92aICbo+tVG56Atfw==, tarball: file:projects/synapse-access-control-1.tgz} + resolution: {integrity: sha512-R15iD21mYvrhi6HB2o47f9NbG5wVuNjxY7nL1vqndxZ77i2tSMG5XasK6UPZOX1ofzYZy6wKDkd+EzKXEfbxVw==, tarball: file:projects/synapse-access-control-1.tgz} name: '@rush-temp/synapse-access-control-1' version: 0.0.0 dependencies: @@ -21514,7 +21514,7 @@ packages: dev: false file:projects/synapse-access-control.tgz: - resolution: {integrity: sha512-QM4ma3v/RNiPt9PGQn//hmltTmYyIxd+/YEms2MaEkf/prX2azf1wjrOmn4ahhsiULtFEG9yLpd4E2XF3TJJZA==, tarball: file:projects/synapse-access-control.tgz} + resolution: {integrity: sha512-fxCxI4cPjThnm55PtpgD/BrkBWJkh+CFau1nFdMx+F9ok1wVnX23reDhkVSdd0+5LQfdRgrdwNqUmI5hzjkEiQ==, tarball: file:projects/synapse-access-control.tgz} name: '@rush-temp/synapse-access-control' version: 0.0.0 dependencies: @@ -21561,7 +21561,7 @@ packages: dev: false file:projects/synapse-artifacts.tgz: - resolution: {integrity: sha512-tE6UlgqPJHn2tRUuvIXEbupn8HCR1eG1BEBSDW+KGGaDMH9zTYtzrUsbmYnqNBM3d55s8YAdqnyQ+11qlpUKRg==, tarball: file:projects/synapse-artifacts.tgz} + resolution: {integrity: sha512-24wyGbZLawN/WnuPULpCv/r7sz46sOMaonMJGKILj0tk1lTzvsFPF9FwdcOZGdAUSUJUwCDxyzAp8Qa95Ji47w==, tarball: file:projects/synapse-artifacts.tgz} name: '@rush-temp/synapse-artifacts' version: 0.0.0 dependencies: @@ -21610,7 +21610,7 @@ packages: dev: false file:projects/synapse-managed-private-endpoints.tgz: - resolution: {integrity: sha512-9B7kg37TYQDC5/2Q94fXc3cWQm9VGsm7TDDhO+TTvBt9MTgmruGCBUjoC84pSTSlMzb0XnmFXRNg98qYkUuNJQ==, tarball: file:projects/synapse-managed-private-endpoints.tgz} + resolution: {integrity: sha512-ZPf7GLL1QuxHqXi1rC9zhrLg6nEIkLFj8NwYMMULM4fhV9HqpnxX6eEnCw3zJ8zcAiH4UauEyo2CSp8tfhoaNg==, tarball: file:projects/synapse-managed-private-endpoints.tgz} name: '@rush-temp/synapse-managed-private-endpoints' version: 0.0.0 dependencies: @@ -21652,7 +21652,7 @@ packages: dev: false file:projects/synapse-monitoring.tgz: - resolution: {integrity: sha512-CIwbNRZW8/qZ93iEeTn1HqzNAuyou7PFLQnZ+/gCrPM6Unx0yOVVSP2iZQk1EkO365XVTNu2CX8hsq6/H4iO1A==, tarball: file:projects/synapse-monitoring.tgz} + resolution: {integrity: sha512-ewhukhX0a8gLctDgjqmjLfiQmIjbMSQiP/yQ2u+jyIpMRxVPEjkq74hDTnebrmMiAmxlL+V7U/9TTxeboYLLDg==, tarball: file:projects/synapse-monitoring.tgz} name: '@rush-temp/synapse-monitoring' version: 0.0.0 dependencies: @@ -21688,7 +21688,7 @@ packages: dev: false file:projects/synapse-spark.tgz: - resolution: {integrity: sha512-Llv8wD7gn8+8u6yttJ8QKt8muT5tJ60boWDtO+RXdbSnhUJFz3CxAqmAak4EFQUdDYINm+EMZKAOj0UtA4ffgw==, tarball: file:projects/synapse-spark.tgz} + resolution: {integrity: sha512-TlWJ8XDIgped032pDoswthnU0RIOoCdatUB3T2LnMlm0I1Orh97L2P8vE19zaUscGjO3+Wgunoap6xNRFbr8sQ==, tarball: file:projects/synapse-spark.tgz} name: '@rush-temp/synapse-spark' version: 0.0.0 dependencies: @@ -21730,7 +21730,7 @@ packages: dev: false file:projects/template-dpg.tgz: - resolution: {integrity: sha512-mTU64g//HDycYmJqaAk+esw6XZ6gNuo3xnxdGbJqUt1mF8RMGTlR1o8ThBS0f80pk6+HvpVJg647tlNhlqzAow==, tarball: file:projects/template-dpg.tgz} + resolution: {integrity: sha512-OF+jYQBumXK4hkty3WQrkNoEBTZhdmz7UyWoG178874oVxUS8l1W5lOxbAB7jvKU62ZO60SWYWL62z+S2L9qtQ==, tarball: file:projects/template-dpg.tgz} name: '@rush-temp/template-dpg' version: 0.0.0 dependencies: @@ -21773,7 +21773,7 @@ packages: dev: false file:projects/template.tgz: - resolution: {integrity: sha512-Ekff4pY2GagfcXPxyniyGSRvS1ictL2FMy29SnUFjWCWF7ppSq6irlmYWFoUy+lqoCYOQ71Q6MYDLwSWm8Erpg==, tarball: file:projects/template.tgz} + resolution: {integrity: sha512-2CS7Sj3k7Rv61M4PutoiJeGfuc/zWYo2RgSS7TCzFOLejPVD/kG7nC4M+q0P44WSPEWGAuJhovInWAVHnRm5Kg==, tarball: file:projects/template.tgz} name: '@rush-temp/template' version: 0.0.0 dependencies: @@ -21817,7 +21817,7 @@ packages: dev: false file:projects/test-credential.tgz: - resolution: {integrity: sha512-Z48JUB+N3+lQRq2wf1gjMZifKJDAlUcVaf8LagNKfPzMTS4XwvRD6cLxkJpyH3GnGSPlEY1SAoiiyUc6s0YyUg==, tarball: file:projects/test-credential.tgz} + resolution: {integrity: sha512-EPP1uaCzAF21ZbsUoLHEnFOO0ow9fT2zWSB10NpnjG2rjMQetHcxgDhB+EhlIr2GrydaE+D5l8ShoNQLo0dpLw==, tarball: file:projects/test-credential.tgz} name: '@rush-temp/test-credential' version: 0.0.0 dependencies: @@ -21836,7 +21836,7 @@ packages: dev: false file:projects/test-recorder.tgz: - resolution: {integrity: sha512-fAeYK8D4vBH/pNBj4jTTL7tzt6WQhQqIgjXIf1ni8c5dyeYJgFSbHMpl8jwvmwn/Qv2SyxcX2Z2f0a4+HT0tcg==, tarball: file:projects/test-recorder.tgz} + resolution: {integrity: sha512-99HkvVbmfShl+kqVjmpD7uYn8Tzs7L1fQ5u811fLidVaOVeS0/s6E1qh9zl5Zk4ajokMfx0d74GDS+OV35LEsA==, tarball: file:projects/test-recorder.tgz} name: '@rush-temp/test-recorder' version: 0.0.0 dependencies: @@ -21877,7 +21877,7 @@ packages: dev: false file:projects/test-utils-perf.tgz: - resolution: {integrity: sha512-SVVQ3nX3cFHGqUByBHlynKCGvZNFATsojQ2zRWtdp/YIbOjtvoLwVvUKm/urcwnE5xNtNp00EgEzZ3k4/J/Lkg==, tarball: file:projects/test-utils-perf.tgz} + resolution: {integrity: sha512-GF19bzewUPXpx8ouosD1kQl4+5ZYAMt+7Jt2ZjHZNyMgMl0P6CAY31om5mQ7Q71VPsxj6tTgOWEkynDlh+XfnA==, tarball: file:projects/test-utils-perf.tgz} name: '@rush-temp/test-utils-perf' version: 0.0.0 dependencies: @@ -21908,7 +21908,7 @@ packages: dev: false file:projects/test-utils.tgz: - resolution: {integrity: sha512-0uZXr1TywcfgaT4ZD+TqIqAeYL6RyqLRW18ufagbipz5QXbFY8Eb9MFpbXioaO91n7z2nvVoxQgJUf2ijxnWRA==, tarball: file:projects/test-utils.tgz} + resolution: {integrity: sha512-SFfHlv6v2XTwSSV7Gy825FGHc2mHc+VG01RNHSrnkW8o8Vg+gTLV5d5+fFQ9L94YLoKeElCumwmhPoSvTs1dlw==, tarball: file:projects/test-utils.tgz} name: '@rush-temp/test-utils' version: 0.0.0 dependencies: @@ -21945,7 +21945,7 @@ packages: dev: false file:projects/ts-http-runtime.tgz: - resolution: {integrity: sha512-CopXAcvNVq+03YS14Tz/DIDwYpiqDtDrCQAaIFrnjhSrdifN1iEgdhbxiBBrFZWnWf59lpUTyhdbCF60ekP3Bw==, tarball: file:projects/ts-http-runtime.tgz} + resolution: {integrity: sha512-kEjeJFD86i88xoge6lt+KH0glkvkPLGnxGHeOw0FwQ+Yf4n1zTYgln8kjrOcUUWZ8swHAPH2XgQuHLfmiSsfEQ==, tarball: file:projects/ts-http-runtime.tgz} name: '@rush-temp/ts-http-runtime' version: 0.0.0 dependencies: @@ -21993,13 +21993,13 @@ packages: dev: false file:projects/vite-plugin-browser-test-map.tgz: - resolution: {integrity: sha512-mgFi1EnX9IAFh8KLuudbbtG3bVOwjip1shu9QyWYqNAUM/IDnm4K6RNBd4HwGe/3eGW6KZ0GJtN8GZkWBVP5eA==, tarball: file:projects/vite-plugin-browser-test-map.tgz} + resolution: {integrity: sha512-KDH0TlrZwugFYbxQcp7uUtXJSu3A/z8D9GW7WM814IIWpfMR0A/EsWuVll3077I298KeoG+IyLKa1sXJFpStSQ==, tarball: file:projects/vite-plugin-browser-test-map.tgz} name: '@rush-temp/vite-plugin-browser-test-map' version: 0.0.0 dependencies: '@types/node': 18.19.3 eslint: 8.56.0 - prettier: 2.8.8 + prettier: 3.1.1 rimraf: 3.0.2 tslib: 2.6.2 typescript: 5.2.2 @@ -22008,7 +22008,7 @@ packages: dev: false file:projects/web-pubsub-client-protobuf.tgz: - resolution: {integrity: sha512-OFTqj95Re5BpiJrh3f8Y13ZbFnrhyHeNh9UIoKWk5BsIEeaSJuGqHLDA/QMIJJ8nE8APvRHOl8bsqMAX6FyYcw==, tarball: file:projects/web-pubsub-client-protobuf.tgz} + resolution: {integrity: sha512-jE4um0qrvOBILr9Qcz8lILmyrB+V3V6eqa4EBw0FYNfuB3JJOGixDbTcy5OHRNYY9rInPB1D8elharJKRIzTQw==, tarball: file:projects/web-pubsub-client-protobuf.tgz} name: '@rush-temp/web-pubsub-client-protobuf' version: 0.0.0 dependencies: @@ -22070,7 +22070,7 @@ packages: dev: false file:projects/web-pubsub-client.tgz: - resolution: {integrity: sha512-9AOVqCl2mupN6O1Um5+QUzfYS2U35AEF7LzUPAMUIx4HQpOKqmXYxlQDSBCwkh1s7Ti6wrfHwlGXPHk2wu666Q==, tarball: file:projects/web-pubsub-client.tgz} + resolution: {integrity: sha512-+prZ/YdwDRE4yl93m5pfo+FTmcHrAnG1W82rahThfO+L09AiSLtzk6cn72IOx//B2KH+yJajfN6GqsK93kkMzw==, tarball: file:projects/web-pubsub-client.tgz} name: '@rush-temp/web-pubsub-client' version: 0.0.0 dependencies: @@ -22127,7 +22127,7 @@ packages: dev: false file:projects/web-pubsub-express.tgz: - resolution: {integrity: sha512-afLRQqg+MfG2mAd2W3eablvTltNLUF02C7WcmbA6YL70ArJ0dMB2E5VzrrAbEh6tRraCzgCdb01WfCPGnM1pbQ==, tarball: file:projects/web-pubsub-express.tgz} + resolution: {integrity: sha512-XsJE1pEMPkhySa2Usl+EDLpLg6tATi5wKM1PH/m9mHDC0gWYhRyT2GNBmvetV4IeXafirtPyt1tqJbI3HNfFdw==, tarball: file:projects/web-pubsub-express.tgz} name: '@rush-temp/web-pubsub-express' version: 0.0.0 dependencies: @@ -22165,7 +22165,7 @@ packages: dev: false file:projects/web-pubsub.tgz: - resolution: {integrity: sha512-JLyVB5WmbRtoLazhx8X4JLftguoCDmWPw71m1wHm8yH9SVhyy+TC1mfHJZM5UlFw3kbUJ0UaGyzXI90MiQOpyw==, tarball: file:projects/web-pubsub.tgz} + resolution: {integrity: sha512-QXO50S+2trUFdkYyoP6m8gQSBFSsXjB3D/DSArww4qxJCwTiGxpet4uxvpZBk5aR0Yn5jwrzTMAOMzxKsEwbHw==, tarball: file:projects/web-pubsub.tgz} name: '@rush-temp/web-pubsub' version: 0.0.0 dependencies: diff --git a/common/tools/eslint-plugin-azure-sdk/package.json b/common/tools/eslint-plugin-azure-sdk/package.json index c44e9be963d0..58c9b00b8f8f 100644 --- a/common/tools/eslint-plugin-azure-sdk/package.json +++ b/common/tools/eslint-plugin-azure-sdk/package.json @@ -88,7 +88,7 @@ "chai": "^4.2.0", "eslint": "^8.50.0", "mocha": "^10.0.0", - "prettier": "^2.5.1", + "prettier": "^3.1.0", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/common/tools/eslint-plugin-azure-sdk/src/processors/index.ts b/common/tools/eslint-plugin-azure-sdk/src/processors/index.ts index 7e0fa3a5a856..929ee9002601 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/processors/index.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/processors/index.ts @@ -20,7 +20,7 @@ export = { preprocess: (text: string): string[] => [text], postprocess: (messages: Linter.LintMessage[][]): Linter.LintMessage[] => messages[0].filter( - (message: Linter.LintMessage): boolean => message.ruleId !== "no-unused-expressions" + (message: Linter.LintMessage): boolean => message.ruleId !== "no-unused-expressions", ), supportsAutofix: true, }, diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/github-source-headers.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/github-source-headers.ts index 298c56176166..d2360b3797ec 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/github-source-headers.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/github-source-headers.ts @@ -28,7 +28,7 @@ export = { meta: getRuleMetaData( "github-source-headers", "require copyright headers in every source file", - "code" + "code", ), create: (context: Rule.RuleContext): Rule.RuleListener => /\.ts$/.test(context.filename) @@ -48,7 +48,7 @@ export = { fix(fixer: Rule.RuleFixer): Rule.Fix { return fixer.insertTextBefore( (headerComments[0] as any) || node, - expectedComments + expectedComments, ); }, }); diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apiextractor-json-types.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apiextractor-json-types.ts index f4d71047ba70..66b0724307ec 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apiextractor-json-types.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apiextractor-json-types.ts @@ -19,7 +19,7 @@ import { stripFileName } from "../utils/verifiers"; export = { meta: getRuleMetaData( "ts-apiextractor-json-types", - "force api-extractor.json to configure types in a consistent way" + "force api-extractor.json to configure types in a consistent way", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const verifiers = getVerifiers(context, { diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-standardized-verbs.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-standardized-verbs.ts index 3f017a8cc96f..b8d8957a173b 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-standardized-verbs.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-standardized-verbs.ts @@ -33,7 +33,7 @@ const bannedPrefixes = [ export = { meta: getRuleMetaData( "ts-apisurface-standardized-verbs", - "require client methods to use standardized verb prefixes and suffixes where possible" + "require client methods to use standardized verb prefixes and suffixes where possible", ), create: (context: Rule.RuleContext): Rule.RuleListener => ({ @@ -47,7 +47,7 @@ export = { // look for if any of the banned prefixes are used const usedPrefix = bannedPrefixes.find((bannedPrefix: string): boolean => - methodName.startsWith(bannedPrefix) + methodName.startsWith(bannedPrefix), ); if (usedPrefix !== undefined) { context.report({ @@ -57,5 +57,5 @@ export = { } }); }, - } as Rule.RuleListener), + }) as Rule.RuleListener, }; diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-supportcancellation.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-supportcancellation.ts index 3f20d10dc8e1..19c2d36436bb 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-supportcancellation.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-supportcancellation.ts @@ -27,7 +27,7 @@ const getDefinedType = (type: any): Type => { return type; } const nonUndefinedType = type.types.find( - (candidate: Type): boolean => candidate.getFlags() !== TypeFlags.Undefined + (candidate: Type): boolean => candidate.getFlags() !== TypeFlags.Undefined, ); return nonUndefinedType !== undefined ? nonUndefinedType : type; }; @@ -72,7 +72,7 @@ const isValidSymbol = (symbol: TSSymbol, typeChecker: TypeChecker): boolean => { const isValidParam = ( param: TSESTree.Parameter, typeChecker: TypeChecker, - converter: ParserWeakMapESTreeToTSNode + converter: ParserWeakMapESTreeToTSNode, ): boolean => { if (param.type !== "Identifier" || param.typeAnnotation === undefined) { return false; @@ -101,7 +101,7 @@ const isValidParam = ( export = { meta: getRuleMetaData( "ts-apisurface-supportcancellation", - "require async client methods to accept an AbortSignalLike parameter" + "require async client methods to accept an AbortSignalLike parameter", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const parserServices = context.sourceCode.parserServices as ParserServices; @@ -126,7 +126,7 @@ export = { if ( TSFunction.async && TSFunction.params.every( - (param: TSESTree.Parameter): boolean => !isValidParam(param, typeChecker, converter) + (param: TSESTree.Parameter): boolean => !isValidParam(param, typeChecker, converter), ) ) { context.report({ diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-config-include.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-config-include.ts index 33f3ca5e58e1..0e7ce2c09e59 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-config-include.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-config-include.ts @@ -18,7 +18,7 @@ export = { meta: getRuleMetaData( "ts-config-include", "force tsconfig.json's 'include' value to at least contain 'src/**/*.ts', 'test/**/*.ts', and 'samples-dev/**/*.ts'", - "code" + "code", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const verifiers = getVerifiers(context, { @@ -33,7 +33,7 @@ export = { // check the node corresponding to include to see if its value contains "src/**/*.ts", "test/**/*.ts", and "samples-dev/**/*.ts" "ExpressionStatement > ObjectExpression > Property[key.value='include']": ( - node: Property + node: Property, ): void => { // check if the value is an array of literals if (node.value.type !== "ArrayExpression") { @@ -46,7 +46,7 @@ export = { const nodeValue = node.value as ArrayExpression; const nonLiteral = nodeValue.elements.find( - (element: any): boolean => element.type !== "Literal" + (element: any): boolean => element.type !== "Literal", ); if (nonLiteral !== undefined && nonLiteral !== null) { @@ -59,7 +59,7 @@ export = { const expected = ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"]; const candidateArray = nodeValue.elements as Literal[]; const candidateValues = candidateArray.map( - (candidate: Literal): unknown => candidate.value + (candidate: Literal): unknown => candidate.value, ); // Check if the expected values is included in the array diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-doc-internal-private-member.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-doc-internal-private-member.ts index 00221c997f40..319f5b3a6c36 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-doc-internal-private-member.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-doc-internal-private-member.ts @@ -28,7 +28,7 @@ import { getRuleMetaData } from "../utils"; const reportInternal = ( node: Node, context: Rule.RuleContext, - converter: ParserWeakMapESTreeToTSNode + converter: ParserWeakMapESTreeToTSNode, ): void => { const tsNode = converter.get(node as TSESTree.Node); if (!canHaveModifiers(tsNode)) { @@ -60,7 +60,7 @@ const reportInternal = ( export = { meta: getRuleMetaData( "ts-doc-internal-private-member", - "requires TSDoc comments to not include an '@internal' tag if the object is private" + "requires TSDoc comments to not include an '@internal' tag if the object is private", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const parserServices = context.sourceCode.parserServices as ParserServices; diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-doc-internal.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-doc-internal.ts index 0fc369ad5ddf..58625cd31999 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-doc-internal.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-doc-internal.ts @@ -32,7 +32,7 @@ const reportInternal = ( node: Node, context: Rule.RuleContext, converter: ParserWeakMapESTreeToTSNode, - typeChecker: TypeChecker + typeChecker: TypeChecker, ): void => { const tsNode = converter.get(node as TSESTree.Node) as any; const symbol = typeChecker.getTypeAtLocation(tsNode).getSymbol(); @@ -45,7 +45,7 @@ const reportInternal = ( TSDocTags = TSDocTags.concat( TSDocComment.tags !== undefined ? TSDocComment.tags.map((TSDocTag: any): string => TSDocTag.tagName.escapedText) - : [] + : [], ); }); @@ -83,8 +83,8 @@ try { typeDoc.exclude.forEach((excludedGlob: string): void => { exclude = exclude.concat( globSync(excludedGlob).filter( - (excludeFile: string): boolean => !/node_modules/.test(excludeFile) - ) + (excludeFile: string): boolean => !/node_modules/.test(excludeFile), + ), ); }); } @@ -95,7 +95,7 @@ try { export = { meta: getRuleMetaData( "ts-doc-internal", - "require TSDoc comments to include an '@internal' or '@hidden' tag if the object is not public-facing" + "require TSDoc comments to include an '@internal' or '@hidden' tag if the object is not public-facing", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const fileName = context.filename; @@ -128,7 +128,7 @@ export = { // container declarations ":matches(TSInterfaceDeclaration, ClassDeclaration, TSModuleDeclaration)": ( - node: Node + node: Node, ): void => reportInternal(node, context, converter, typeChecker), // standalone functions @@ -138,7 +138,7 @@ export = { .getAncestors(node) .every( (ancestor: Node): boolean => - !["ClassBody", "TSInterfaceBody", "TSModuleBlock"].includes(ancestor.type) + !["ClassBody", "TSInterfaceBody", "TSModuleBlock"].includes(ancestor.type), ) ) { reportInternal(node, context, converter, typeChecker); diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-error-handling.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-error-handling.ts index 846dee2024bc..4bb0f711d2ff 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-error-handling.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-error-handling.ts @@ -18,7 +18,7 @@ import { getRuleMetaData } from "../utils"; export = { meta: getRuleMetaData( "ts-error-handling", - "limit thrown errors to ECMAScript built-in error types (TypeError, RangeError, Error)" + "limit thrown errors to ECMAScript built-in error types (TypeError, RangeError, Error)", ), create: (context: Rule.RuleContext): Rule.RuleListener => /src/.test(context.filename) diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-modules-only-named.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-modules-only-named.ts index 624e2b4ba093..f5d28df84532 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-modules-only-named.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-modules-only-named.ts @@ -18,7 +18,7 @@ import { getRuleMetaData } from "../utils"; export = { meta: getRuleMetaData( "ts-modules-only-named", - "force there to be only named exports at the top level" + "force there to be only named exports at the top level", ), create: (context: Rule.RuleContext): Rule.RuleListener => relative(normalize(context.filename), normalize(context.settings.main)) === "" diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-drop-noun.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-drop-noun.ts index 52cad719db9b..cfb1f425bf18 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-drop-noun.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-drop-noun.ts @@ -18,7 +18,7 @@ import { TSESTree } from "@typescript-eslint/experimental-utils"; export = { meta: getRuleMetaData( "ts-naming-drop-noun", - "require client methods returning an instance of the client to not include the client name in the method name" + "require client methods returning an instance of the client to not include the client name in the method name", ), create: (context: Rule.RuleContext): Rule.RuleListener => ({ @@ -56,5 +56,5 @@ export = { } }); }, - } as Rule.RuleListener), + }) as Rule.RuleListener, }; diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-options.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-options.ts index 4206bfbf131e..60a618c2197f 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-options.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-options.ts @@ -18,7 +18,7 @@ import { Rule } from "eslint"; export = { meta: getRuleMetaData( "ts-naming-options", - "require client method option parameter type names to be suffixed with Options and prefixed with the method name" + "require client method option parameter type names to be suffixed with Options and prefixed with the method name", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const parserServices = context.sourceCode.parserServices as ParserServices; diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-subclients.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-subclients.ts index 9a9bed200b7d..943332d809da 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-subclients.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-subclients.ts @@ -18,7 +18,7 @@ import { TSESTree } from "@typescript-eslint/experimental-utils"; export = { meta: getRuleMetaData( "ts-naming-subclients", - "require client methods returning a subclient to have names prefixed suffixed with 'get' and suffixed with 'client'" + "require client methods returning a subclient to have names prefixed suffixed with 'get' and suffixed with 'client'", ), create: (context: Rule.RuleContext): Rule.RuleListener => ({ @@ -54,5 +54,5 @@ export = { } }); }, - } as Rule.RuleListener), + }) as Rule.RuleListener, }; diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-no-const-enums.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-no-const-enums.ts index 2677239ba112..2373e8149180 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-no-const-enums.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-no-const-enums.ts @@ -30,5 +30,5 @@ export = { }); } }, - } as Rule.RuleListener), + }) as Rule.RuleListener, }; diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-no-window.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-no-window.ts index acd2582e20b6..df0350ee9699 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-no-window.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-no-window.ts @@ -26,5 +26,5 @@ export = { fixer.replaceTextRange([node.range[0], node.range[0] + "window".length], "self"), }); }, - } as Rule.RuleListener), + }) as Rule.RuleListener, }; diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-author.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-author.ts index eeaa5802d0b6..9820830c229f 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-author.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-author.ts @@ -17,7 +17,7 @@ export = { meta: getRuleMetaData( "ts-package-json-author", "force package.json's author value to be 'Microsoft Corporation'", - "code" + "code", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const verifiers = getVerifiers(context, { diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-bugs.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-bugs.ts index 26c402717cac..4ed53fc836bd 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-bugs.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-bugs.ts @@ -17,7 +17,7 @@ export = { meta: getRuleMetaData( "ts-package-json-bugs", "force package.json's bugs.url value to be 'https://github.com/Azure/azure-sdk-for-js/issues'", - "code" + "code", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const verifiers = getVerifiers(context, { diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-engine-is-present.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-engine-is-present.ts index 679968f055a5..e9734ac94a70 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-engine-is-present.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-engine-is-present.ts @@ -35,7 +35,7 @@ export default { }, }, }, - ] + ], ), create: (context: Rule.RuleContext): Rule.RuleListener => { const options = context.options[0] || {}; diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-files-required.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-files-required.ts index 03d13527f7cf..4986dd6b1e90 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-files-required.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-files-required.ts @@ -57,7 +57,7 @@ export = { meta: getRuleMetaData( "ts-package-json-files-required", "requires package.json's files value to contain paths to the package contents", - "code" + "code", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const verifiers = getVerifiers(context, { @@ -71,7 +71,7 @@ export = { "ExpressionStatement > ObjectExpression": verifiers.existsInFile, "ExpressionStatement > ObjectExpression > Property[key.value='files']": ( - node: Property + node: Property, ): void => { // check that files is set to an array if (node.value.type !== "ArrayExpression") { @@ -93,7 +93,7 @@ export = { const nodeValue = node.value; let filesList = (nodeValue.elements as Literal[]).map( - (element): unknown => element.value + (element): unknown => element.value, ); const currBadPatterns: string[] = []; @@ -111,7 +111,7 @@ export = { const deletedItemsCount = 1; currRequiredPatterns.splice( currRequiredPatterns.indexOf(patternRoot), - deletedItemsCount + deletedItemsCount, ); } } @@ -126,7 +126,7 @@ export = { currBadPatterns.length === unitLength ? "is" : "are" } included in files`; filesList = filesList.filter( - (filePattern) => currBadPatterns.indexOf(filePattern as string) < 0 + (filePattern) => currBadPatterns.indexOf(filePattern as string) < 0, ); } // If there are required patterns missing from the files' list, diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-homepage.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-homepage.ts index 8b822ff8e597..6a4827b197e1 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-homepage.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-homepage.ts @@ -17,7 +17,7 @@ import { Rule } from "eslint"; export = { meta: getRuleMetaData( "ts-package-json-homepage", - "force package.json's homepage value to be a URL pointing to your library's readme inside the git repo" + "force package.json's homepage value to be a URL pointing to your library's readme inside the git repo", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const verifiers = getVerifiers(context, { @@ -32,13 +32,13 @@ export = { // check the node corresponding to homepage to see if its value is a URL pointing to your library's readme inside the git repo "ExpressionStatement > ObjectExpression > Property[key.value='homepage']": ( - node: Property + node: Property, ): void => { const nodeValue = node.value as Literal; if ( !/^https:\/\/github.com\/Azure\/azure-sdk-for-js\/(blob|tree)\/main\/sdk\/(([a-z]+-)*[a-z]+\/)+(README\.md)?$/.test( - nodeValue.value as string + nodeValue.value as string, ) ) { context.report({ diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-keywords.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-keywords.ts index c1dcb92eff87..4032c2033ae1 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-keywords.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-keywords.ts @@ -17,7 +17,7 @@ export = { meta: getRuleMetaData( "ts-package-json-keywords", "force package.json's keywords value to contain at least 'Azure' and 'cloud'", - "code" + "code", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const verifiers = getVerifiers(context, { diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-license.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-license.ts index 79177b05a831..f0804372af7c 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-license.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-license.ts @@ -17,7 +17,7 @@ export = { meta: getRuleMetaData( "ts-packge-json-license", "force package.json's license value to be 'MIT'", - "code" + "code", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const verifiers = getVerifiers(context, { diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-main-is-cjs.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-main-is-cjs.ts index bb115ff42c00..40e48b319b5f 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-main-is-cjs.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-main-is-cjs.ts @@ -18,7 +18,7 @@ export = { meta: getRuleMetaData( "ts-package-json-main-is-cjs", "force package.json's main value to point to a CommonJS or UMD module", - "code" + "code", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const verifiers = getVerifiers(context, { @@ -33,7 +33,7 @@ export = { // check the node corresponding to main to see if its value is dist/index.js "ExpressionStatement > ObjectExpression > Property[key.value='main']": ( - node: Property + node: Property, ): void => { if (node.value.type !== "Literal") { context.report({ diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-module.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-module.ts index e3e064762830..f62bc00f6b12 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-module.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-module.ts @@ -18,7 +18,7 @@ export = { meta: getRuleMetaData( "ts-package-json-module", "force package.json's module value to be the ES6 entrypoint to the application", - "code" + "code", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const verifiers = getVerifiers(context, { @@ -33,7 +33,7 @@ export = { // check the node corresponding to module to see if its value is dist-esm/src/index.js "ExpressionStatement > ObjectExpression > Property[key.value='module']": ( - node: Property + node: Property, ): void => { if (node.value.type !== "Literal") { context.report({ diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-name.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-name.ts index b076ff942c52..c767edcd801f 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-name.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-name.ts @@ -18,7 +18,7 @@ import { stripFileName } from "../utils/verifiers"; export = { meta: getRuleMetaData( "ts-package-json-name", - "force package.json's name value to be set to @azure/" + "force package.json's name value to be set to @azure/", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const verifiers = getVerifiers(context, { @@ -34,7 +34,7 @@ export = { // check the node corresponding to name to see if its value is @azure/ "ExpressionStatement > ObjectExpression > Property[key.value='name']": ( - node: Property + node: Property, ): void => { const { nodeValue, packageName, subScope } = getPackageMetadata(node); // Check for a valid scope diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-repo.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-repo.ts index 68bea75ef09a..4e42e6bf0d26 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-repo.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-repo.ts @@ -17,7 +17,7 @@ export = { meta: getRuleMetaData( "ts-package-json-repo", "force package.json's repository value to be 'github:Azure/azure-sdk-for-js'", - "code" + "code", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const verifiers = getVerifiers(context, { diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-required-scripts.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-required-scripts.ts index 65ea8b9e7c9b..9d23f38ac87d 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-required-scripts.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-required-scripts.ts @@ -17,7 +17,7 @@ import { Rule } from "eslint"; export = { meta: getRuleMetaData( "ts-package-json-required-scripts", - "force package.json's scripts value to at least contain build, test, and prepack" + "force package.json's scripts value to at least contain build, test, and prepack", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const buildVerifiers = getVerifiers(context, { @@ -37,7 +37,7 @@ export = { // check to see if scripts contains both build and test "ExpressionStatement > ObjectExpression > Property[key.value='scripts']": ( - node: Property + node: Property, ): void => { buildVerifiers.isMemberOf(node); testVerifiers.isMemberOf(node); diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-sdktype.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-sdktype.ts index c2855ff83c67..565453eab0cc 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-sdktype.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-sdktype.ts @@ -19,7 +19,7 @@ export = { meta: getRuleMetaData( "ts-package-json-sdktype", "force package.json's sdk-type to exist and for its value to be 'client' or 'mgmt'", - "code" + "code", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const verifiers = getVerifiers(context, { @@ -34,7 +34,7 @@ export = { // check the node corresponding to sdk-type to see if its value contains "client" or "mgmt" "ExpressionStatement > ObjectExpression > Property[key.value='sdk-type']": ( - node: Property + node: Property, ): void => { const { value } = node; diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-sideeffects.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-sideeffects.ts index 2d98adaccebf..f871a390ffa9 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-sideeffects.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-sideeffects.ts @@ -17,7 +17,7 @@ export = { meta: getRuleMetaData( "ts-package-json-sideeffects", "force package.json's sideEffects value to be false", - "code" + "code", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const verifiers = getVerifiers(context, { diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-types.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-types.ts index 9137d2b5e821..ff1f80b97222 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-types.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-types.ts @@ -18,7 +18,7 @@ import { stripFileName } from "../utils/verifiers"; export = { meta: getRuleMetaData( "ts-package-json-types", - "force package.json to specify types according to package directory" + "force package.json to specify types according to package directory", ), create: (context: Rule.RuleContext): Rule.RuleListener => { const verifiers = getVerifiers(context, { @@ -34,7 +34,7 @@ export = { // check the node corresponding to types to see if its value is a TypeScript declaration file "ExpressionStatement > ObjectExpression > Property[key.value='types']": ( - node: Property + node: Property, ): void => { const value = node.value; if (value.type !== "Literal" || typeof value.value !== "string") { diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-pagination-list.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-pagination-list.ts index 68f6164d31c3..b39159e95123 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-pagination-list.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-pagination-list.ts @@ -18,7 +18,7 @@ import { getRuleMetaData } from "../utils"; export = { meta: getRuleMetaData( "ts-pagination-list", - "require client list methods to return a PagedAsyncIterableIterator" + "require client list methods to return a PagedAsyncIterableIterator", ), create: (context: Rule.RuleContext): Rule.RuleListener => ({ @@ -49,5 +49,5 @@ export = { }); } }, - } as Rule.RuleListener), + }) as Rule.RuleListener, }; diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-use-interface-parameters.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-use-interface-parameters.ts index bc07cf019daa..b9f78fad9c7d 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-use-interface-parameters.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-use-interface-parameters.ts @@ -61,10 +61,10 @@ const getParamAsIdentifier = (param: Pattern): Identifier => const getTypeOfParam = ( param: Pattern, converter: ParserWeakMapESTreeToTSNode, - typeChecker: TypeChecker + typeChecker: TypeChecker, ): Type => { const type = typeChecker.getTypeAtLocation( - converter.get(getParamAsIdentifier(param) as TSESTree.Node) + converter.get(getParamAsIdentifier(param) as TSESTree.Node), ) as TypeReference; // if array, extract type from array @@ -143,7 +143,7 @@ const addSeenSymbols = (symbol: TSSymbol, symbols: TSSymbol[], typeChecker: Type const getSymbolsUsedInParam = ( param: Pattern, converter: ParserWeakMapESTreeToTSNode, - typeChecker: TypeChecker + typeChecker: TypeChecker, ): TSSymbol[] => { const symbols: TSSymbol[] = []; const symbol = getTypeOfParam(param, converter, typeChecker).getSymbol(); @@ -163,14 +163,14 @@ const getSymbolsUsedInParam = ( const isValidParam = ( param: Pattern, converter: ParserWeakMapESTreeToTSNode, - typeChecker: TypeChecker + typeChecker: TypeChecker, ): boolean => { const tsIdentifier = param as TSESTree.Identifier; if (tsIdentifier.optional) { return true; } return getSymbolsUsedInParam(param, converter, typeChecker).every( - (symbol: TSSymbol): boolean => symbol === undefined || symbol.getFlags() !== SymbolFlags.Class + (symbol: TSSymbol): boolean => symbol === undefined || symbol.getFlags() !== SymbolFlags.Class, ); }; @@ -184,12 +184,12 @@ const isValidParam = ( const isValidOverload = ( overloads: FunctionType[], converter: ParserWeakMapESTreeToTSNode, - typeChecker: TypeChecker + typeChecker: TypeChecker, ): boolean => overloads.some((overload: FunctionType): boolean => overload.params.every((overloadParam: Pattern): boolean => - isValidParam(overloadParam, converter, typeChecker) - ) + isValidParam(overloadParam, converter, typeChecker), + ), ); /** @@ -210,7 +210,7 @@ const evaluateOverloads = ( verified: string[], name: string | null, param: Pattern, - context: Rule.RuleContext + context: Rule.RuleContext, ): void => { if ( // Ignore anonymous functions @@ -226,7 +226,7 @@ const evaluateOverloads = ( context.report({ node: identifier, message: `type ${typeChecker.typeToString( - getTypeOfParam(param, converter, typeChecker) + getTypeOfParam(param, converter, typeChecker), )} of parameter ${identifier.name} of function ${ name || "" } is a class or contains a class as a member`, @@ -240,7 +240,7 @@ const evaluateOverloads = ( export = { meta: getRuleMetaData( "ts-use-interface-parameters", - "encourage usage of interfaces over classes as function parameters" + "encourage usage of interfaces over classes as function parameters", ), create: (context: Rule.RuleContext): Rule.RuleListener => { @@ -281,7 +281,7 @@ export = { modifiers !== undefined && modifiers.some( (modifier: Modifier | ModifierLike): boolean => - modifier.kind === SyntaxKind.PrivateKeyword + modifier.kind === SyntaxKind.PrivateKeyword, ) ) { return; @@ -297,7 +297,7 @@ export = { ? symbol.declarations .filter( (declaration: Declaration): boolean => - reverter.get(declaration as TSNode) !== undefined + reverter.get(declaration as TSNode) !== undefined, ) .map((declaration: Declaration): FunctionExpression => { const method = reverter.get(declaration as TSNode) as MethodDefinition; @@ -311,7 +311,7 @@ export = { verifiedMethods, name, param, - context + context, ); } }); @@ -335,7 +335,7 @@ export = { const overloads = symbol?.declarations ? symbol.declarations.map( (declaration: Declaration): FunctionDeclaration => - reverter.get(declaration as TSNode) as FunctionDeclaration + reverter.get(declaration as TSNode) as FunctionDeclaration, ) : []; evaluateOverloads( @@ -345,7 +345,7 @@ export = { verifiedDeclarations, name, param, - context + context, ); } }); diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-versioning-semver.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-versioning-semver.ts index 3bf6f40c16b6..ff736a68d183 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-versioning-semver.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-versioning-semver.ts @@ -29,7 +29,7 @@ export = { // check the node corresponding to types to see if its value is a TypeScript declaration file "ExpressionStatement > ObjectExpression > Property[key.value='version']": ( - node: Property + node: Property, ): void => { if (node.value.type !== "Literal") { context.report({ @@ -43,7 +43,7 @@ export = { // check for violations specific to semver const versionMatch = version.match( - /^(0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-(.+)|$)/ + /^(0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-(.+)|$)/, ); if (versionMatch === null) { context.report({ diff --git a/common/tools/eslint-plugin-azure-sdk/src/utils/exports.ts b/common/tools/eslint-plugin-azure-sdk/src/utils/exports.ts index 66a77371f83b..526bf13c4849 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/utils/exports.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/utils/exports.ts @@ -37,10 +37,10 @@ const getExports = (context: Rule.RuleContext): TSSymbol[] | undefined => { return typeChecker .getExportsOfModule(symbol) .map((packageExport: TSSymbol): TSSymbol | undefined => - typeChecker.getDeclaredTypeOfSymbol(packageExport).getSymbol() + typeChecker.getDeclaredTypeOfSymbol(packageExport).getSymbol(), ) .filter( - (exportSymbol: TSSymbol | undefined): boolean => exportSymbol !== undefined + (exportSymbol: TSSymbol | undefined): boolean => exportSymbol !== undefined, ) as TSSymbol[]; }; @@ -102,12 +102,12 @@ export const getLocalExports = (context: Rule.RuleContext): TSSymbol[] | undefin if (exportSymbol.exports !== undefined) { exportSymbol.exports.forEach((exportedSymbol: TSSymbol): void => - addToSeenLocalExports(exportedSymbol, localExports) + addToSeenLocalExports(exportedSymbol, localExports), ); } if (exportSymbol.members !== undefined) { exportSymbol.members.forEach((memberSymbol: TSSymbol): void => - addToSeenLocalExports(memberSymbol, localExports) + addToSeenLocalExports(memberSymbol, localExports), ); } }); diff --git a/common/tools/eslint-plugin-azure-sdk/src/utils/metadata.ts b/common/tools/eslint-plugin-azure-sdk/src/utils/metadata.ts index 1d0a1e82b4ed..3ea77e9a7a74 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/utils/metadata.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/utils/metadata.ts @@ -13,7 +13,7 @@ export const getRuleMetaData = ( ruleName: string, ruleDescription: string, fix?: "code" | "whitespace", - schema?: JSONSchema4 | JSONSchema4[] + schema?: JSONSchema4 | JSONSchema4[], ): Rule.RuleMetaData => { const required = { type: "suggestion", diff --git a/common/tools/eslint-plugin-azure-sdk/src/utils/verifiers.ts b/common/tools/eslint-plugin-azure-sdk/src/utils/verifiers.ts index 1983039e4b47..3c8fc6435e01 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/utils/verifiers.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/utils/verifiers.ts @@ -106,7 +106,7 @@ export const getVerifiers = (context: Rule.RuleContext, data: StructureData): Ve fix: (fixer: Rule.RuleFixer): Rule.Fix => fixer.replaceText( nodeValue, - typeof expected === "string" ? `"${expected}"` : (expected as string) + typeof expected === "string" ? `"${expected}"` : (expected as string), ), }); } @@ -168,7 +168,7 @@ export const getVerifiers = (context: Rule.RuleContext, data: StructureData): Ve fix: (fixer: Rule.RuleFixer): Rule.Fix => fixer.replaceText( nodeValue, - typeof expected === "string" ? `"${expected}"` : (expected as string) + typeof expected === "string" ? `"${expected}"` : (expected as string), ), }); } @@ -193,7 +193,7 @@ export const getVerifiers = (context: Rule.RuleContext, data: StructureData): Ve const nodeValue = node.value as ArrayExpression; const nonLiteral = nodeValue.elements.find( - (element: any): boolean => element.type !== "Literal" + (element: any): boolean => element.type !== "Literal", ); if (nonLiteral !== undefined && nonLiteral !== null) { diff --git a/common/tools/eslint-plugin-azure-sdk/tests/plugin.ts b/common/tools/eslint-plugin-azure-sdk/tests/plugin.ts index 14bc4fb81d31..28b77ed8b164 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/plugin.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/plugin.ts @@ -187,7 +187,7 @@ describe("plugin", (): void => { assert.include( plugins, "@azure/azure-sdk", - "plugins does not contain '@azure/azure-sdk'" + "plugins does not contain '@azure/azure-sdk'", ); }); }); @@ -209,7 +209,7 @@ describe("plugin", (): void => { assert.strictEqual( parser, "@typescript-eslint/parser", - "parser is not set to '@typescript-eslint/parser'" + "parser is not set to '@typescript-eslint/parser'", ); }); }); @@ -223,7 +223,7 @@ describe("plugin", (): void => { assert.property( rules, `@azure/azure-sdk/${rule}`, - `rules does not contain a setting for ${rule}` + `rules does not contain a setting for ${rule}`, ); }); }); diff --git a/common/tools/vite-plugin-browser-test-map/package.json b/common/tools/vite-plugin-browser-test-map/package.json index 33048a0cc372..0606533400a9 100644 --- a/common/tools/vite-plugin-browser-test-map/package.json +++ b/common/tools/vite-plugin-browser-test-map/package.json @@ -50,7 +50,7 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.50.0", - "prettier": "^2.5.1", + "prettier": "^3.1.0", "rimraf": "^3.0.0", "typescript": "~5.2.0" } diff --git a/common/tools/vite-plugin-browser-test-map/src/index.ts b/common/tools/vite-plugin-browser-test-map/src/index.ts index cac24ccd424e..99f4b3a38246 100644 --- a/common/tools/vite-plugin-browser-test-map/src/index.ts +++ b/common/tools/vite-plugin-browser-test-map/src/index.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. function hasPackageCache>( - obj: T + obj: T, ): obj is T & { packageCache: Map } { return "packageCache" in obj; } diff --git a/samples/frameworks/react-native/appconfigBasic/package.json b/samples/frameworks/react-native/appconfigBasic/package.json index aa7fdc178658..1e936a52b89d 100644 --- a/samples/frameworks/react-native/appconfigBasic/package.json +++ b/samples/frameworks/react-native/appconfigBasic/package.json @@ -34,7 +34,7 @@ "eslint": "^8.19.0", "jest": "^29.2.1", "metro-react-native-babel-preset": "0.73.8", - "prettier": "^2.4.1", + "prettier": "^3.1.0", "react-test-renderer": "18.2.0", "typescript": "4.8.4" }, diff --git a/sdk/agrifood/agrifood-farming-rest/package.json b/sdk/agrifood/agrifood-farming-rest/package.json index f4af17d6a67a..133f5dd9e6bd 100644 --- a/sdk/agrifood/agrifood-farming-rest/package.json +++ b/sdk/agrifood/agrifood-farming-rest/package.json @@ -60,11 +60,11 @@ "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "karma start --single-run", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/{,!(browser)/**/}*.spec.js\"", @@ -121,7 +121,6 @@ "mkdirp": "^1.0.4", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/agrifood/agrifood-farming-rest/src/clientDefinitions.ts b/sdk/agrifood/agrifood-farming-rest/src/clientDefinitions.ts index 971ad383b738..c82be912f27e 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/clientDefinitions.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/clientDefinitions.ts @@ -629,21 +629,21 @@ import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface ApplicationDataList { /** Returns a paginated list of application data resources across all parties. */ get( - options?: ApplicationDataListParameters + options?: ApplicationDataListParameters, ): StreamableMethod; } export interface ApplicationDataCreateCascadeDeleteJob { /** Create cascade delete job for application data resource. */ put( - options: ApplicationDataCreateCascadeDeleteJobParameters + options: ApplicationDataCreateCascadeDeleteJobParameters, ): StreamableMethod< | ApplicationDataCreateCascadeDeleteJob202Response | ApplicationDataCreateCascadeDeleteJobDefaultResponse >; /** Get cascade delete job for application data resource. */ get( - options?: ApplicationDataGetCascadeDeleteJobDetailsParameters + options?: ApplicationDataGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< | ApplicationDataGetCascadeDeleteJobDetails200Response | ApplicationDataGetCascadeDeleteJobDetailsDefaultResponse @@ -653,7 +653,7 @@ export interface ApplicationDataCreateCascadeDeleteJob { export interface ApplicationDataListByPartyId { /** Returns a paginated list of application data resources under a particular party. */ get( - options?: ApplicationDataListByPartyIdParameters + options?: ApplicationDataListByPartyIdParameters, ): StreamableMethod< ApplicationDataListByPartyId200Response | ApplicationDataListByPartyIdDefaultResponse >; @@ -662,11 +662,11 @@ export interface ApplicationDataListByPartyId { export interface ApplicationDataGet { /** Get a specified application data resource under a particular party. */ get( - options?: ApplicationDataGetParameters + options?: ApplicationDataGetParameters, ): StreamableMethod; /** Creates or updates an application data resource under a particular party. */ patch( - options: ApplicationDataCreateOrUpdateParameters + options: ApplicationDataCreateOrUpdateParameters, ): StreamableMethod< | ApplicationDataCreateOrUpdate200Response | ApplicationDataCreateOrUpdate201Response @@ -674,14 +674,14 @@ export interface ApplicationDataGet { >; /** Deletes a specified application data resource under a particular party. */ delete( - options?: ApplicationDataDeleteParameters + options?: ApplicationDataDeleteParameters, ): StreamableMethod; } export interface AttachmentsListByPartyId { /** Returns a paginated list of attachment resources under a particular party. */ get( - options?: AttachmentsListByPartyIdParameters + options?: AttachmentsListByPartyIdParameters, ): StreamableMethod< AttachmentsListByPartyId200Response | AttachmentsListByPartyIdDefaultResponse >; @@ -690,11 +690,11 @@ export interface AttachmentsListByPartyId { export interface AttachmentsGet { /** Gets a specified attachment resource under a particular party. */ get( - options?: AttachmentsGetParameters + options?: AttachmentsGetParameters, ): StreamableMethod; /** Creates or updates an attachment resource under a particular party. */ patch( - options?: AttachmentsCreateOrUpdateParameters + options?: AttachmentsCreateOrUpdateParameters, ): StreamableMethod< | AttachmentsCreateOrUpdate200Response | AttachmentsCreateOrUpdate201Response @@ -702,38 +702,38 @@ export interface AttachmentsGet { >; /** Deletes a specified attachment resource under a particular party. */ delete( - options?: AttachmentsDeleteParameters + options?: AttachmentsDeleteParameters, ): StreamableMethod; } export interface AttachmentsDownload { /** Downloads and returns attachment as response for the given input filePath. */ get( - options?: AttachmentsDownloadParameters + options?: AttachmentsDownloadParameters, ): StreamableMethod; } export interface BoundariesList { /** Returns a paginated list of boundary resources across all parties. */ get( - options?: BoundariesListParameters + options?: BoundariesListParameters, ): StreamableMethod; /** Search for boundaries across all parties by fields and intersecting geometry. */ post( - options: BoundariesSearchParameters + options: BoundariesSearchParameters, ): StreamableMethod; } export interface BoundariesCreateCascadeDeleteJob { /** Create a cascade delete job for specified boundary. */ put( - options: BoundariesCreateCascadeDeleteJobParameters + options: BoundariesCreateCascadeDeleteJobParameters, ): StreamableMethod< BoundariesCreateCascadeDeleteJob202Response | BoundariesCreateCascadeDeleteJobDefaultResponse >; /** Get cascade delete job for specified boundary. */ get( - options?: BoundariesGetCascadeDeleteJobDetailsParameters + options?: BoundariesGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< | BoundariesGetCascadeDeleteJobDetails200Response | BoundariesGetCascadeDeleteJobDetailsDefaultResponse @@ -743,11 +743,11 @@ export interface BoundariesCreateCascadeDeleteJob { export interface BoundariesListByPartyId { /** Returns a paginated list of boundary resources under a particular party. */ get( - options?: BoundariesListByPartyIdParameters + options?: BoundariesListByPartyIdParameters, ): StreamableMethod; /** Search for boundaries by fields and intersecting geometry. */ post( - options: BoundariesSearchByPartyIdParameters + options: BoundariesSearchByPartyIdParameters, ): StreamableMethod< BoundariesSearchByPartyId200Response | BoundariesSearchByPartyIdDefaultResponse >; @@ -756,7 +756,7 @@ export interface BoundariesListByPartyId { export interface BoundariesCreateOrUpdate { /** Creates or updates a boundary resource. */ patch( - options: BoundariesCreateOrUpdateParameters + options: BoundariesCreateOrUpdateParameters, ): StreamableMethod< | BoundariesCreateOrUpdate200Response | BoundariesCreateOrUpdate201Response @@ -764,36 +764,36 @@ export interface BoundariesCreateOrUpdate { >; /** Gets a specified boundary resource under a particular party. */ get( - options?: BoundariesGetParameters + options?: BoundariesGetParameters, ): StreamableMethod; /** Deletes a specified boundary resource under a particular party. */ delete( - options?: BoundariesDeleteParameters + options?: BoundariesDeleteParameters, ): StreamableMethod; } export interface BoundariesGetOverlap { /** Returns overlapping area between two boundary Ids. */ get( - options: BoundariesGetOverlapParameters + options: BoundariesGetOverlapParameters, ): StreamableMethod; } export interface CropProductsList { /** Returns a paginated list of crop product resources. */ get( - options?: CropProductsListParameters + options?: CropProductsListParameters, ): StreamableMethod; } export interface CropProductsGet { /** Gets a specified crop Product resource. */ get( - options?: CropProductsGetParameters + options?: CropProductsGetParameters, ): StreamableMethod; /** Creates or updates a crop Product resource. */ patch( - options: CropProductsCreateOrUpdateParameters + options: CropProductsCreateOrUpdateParameters, ): StreamableMethod< | CropProductsCreateOrUpdate200Response | CropProductsCreateOrUpdate201Response @@ -801,25 +801,25 @@ export interface CropProductsGet { >; /** Deletes a specified crop Product resource. */ delete( - options?: CropProductsDeleteParameters + options?: CropProductsDeleteParameters, ): StreamableMethod; } export interface CropsList { /** Returns a paginated list of crop resources. */ get( - options?: CropsListParameters + options?: CropsListParameters, ): StreamableMethod; } export interface CropsGet { /** Gets a specified crop resource. */ get( - options?: CropsGetParameters + options?: CropsGetParameters, ): StreamableMethod; /** Creates or updates a crop resource. */ patch( - options: CropsCreateOrUpdateParameters + options: CropsCreateOrUpdateParameters, ): StreamableMethod< | CropsCreateOrUpdate200Response | CropsCreateOrUpdate201Response @@ -827,21 +827,21 @@ export interface CropsGet { >; /** Deletes Crop for given crop id. */ delete( - options?: CropsDeleteParameters + options?: CropsDeleteParameters, ): StreamableMethod; } export interface DeviceDataModelsList { /** Returns a paginated list of device data model resources. */ get( - options?: DeviceDataModelsListParameters + options?: DeviceDataModelsListParameters, ): StreamableMethod; } export interface DeviceDataModelsCreateOrUpdate { /** Create a device data model entity. */ patch( - options: DeviceDataModelsCreateOrUpdateParameters + options: DeviceDataModelsCreateOrUpdateParameters, ): StreamableMethod< | DeviceDataModelsCreateOrUpdate200Response | DeviceDataModelsCreateOrUpdate201Response @@ -849,25 +849,25 @@ export interface DeviceDataModelsCreateOrUpdate { >; /** Gets a device data model entity. */ get( - options?: DeviceDataModelsGetParameters + options?: DeviceDataModelsGetParameters, ): StreamableMethod; /** Deletes a device data model entity. */ delete( - options?: DeviceDataModelsDeleteParameters + options?: DeviceDataModelsDeleteParameters, ): StreamableMethod; } export interface DevicesList { /** Returns a paginated list of device resources. */ get( - options?: DevicesListParameters + options?: DevicesListParameters, ): StreamableMethod; } export interface DevicesCreateOrUpdate { /** Create a device entity. */ patch( - options: DevicesCreateOrUpdateParameters + options: DevicesCreateOrUpdateParameters, ): StreamableMethod< | DevicesCreateOrUpdate200Response | DevicesCreateOrUpdate201Response @@ -875,25 +875,25 @@ export interface DevicesCreateOrUpdate { >; /** Gets a device entity. */ get( - options?: DevicesGetParameters + options?: DevicesGetParameters, ): StreamableMethod; /** Deletes a device entity. */ delete( - options?: DevicesDeleteParameters + options?: DevicesDeleteParameters, ): StreamableMethod; } export interface FarmOperationsCreateDataIngestionJob { /** Create a farm operation data ingestion job. */ put( - options: FarmOperationsCreateDataIngestionJobParameters + options: FarmOperationsCreateDataIngestionJobParameters, ): StreamableMethod< | FarmOperationsCreateDataIngestionJob202Response | FarmOperationsCreateDataIngestionJobDefaultResponse >; /** Get a farm operation data ingestion job. */ get( - options?: FarmOperationsGetDataIngestionJobDetailsParameters + options?: FarmOperationsGetDataIngestionJobDetailsParameters, ): StreamableMethod< | FarmOperationsGetDataIngestionJobDetails200Response | FarmOperationsGetDataIngestionJobDetailsDefaultResponse @@ -903,20 +903,20 @@ export interface FarmOperationsCreateDataIngestionJob { export interface FarmsList { /** Returns a paginated list of farm resources across all parties. */ get( - options?: FarmsListParameters + options?: FarmsListParameters, ): StreamableMethod; } export interface FarmsCreateCascadeDeleteJob { /** Create a cascade delete job for specified farm. */ put( - options: FarmsCreateCascadeDeleteJobParameters + options: FarmsCreateCascadeDeleteJobParameters, ): StreamableMethod< FarmsCreateCascadeDeleteJob202Response | FarmsCreateCascadeDeleteJobDefaultResponse >; /** Get a cascade delete job for specified farm. */ get( - options?: FarmsGetCascadeDeleteJobDetailsParameters + options?: FarmsGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< FarmsGetCascadeDeleteJobDetails200Response | FarmsGetCascadeDeleteJobDetailsDefaultResponse >; @@ -925,18 +925,18 @@ export interface FarmsCreateCascadeDeleteJob { export interface FarmsListByPartyId { /** Returns a paginated list of farm resources under a particular party. */ get( - options?: FarmsListByPartyIdParameters + options?: FarmsListByPartyIdParameters, ): StreamableMethod; } export interface FarmsGet { /** Gets a specified farm resource under a particular party. */ get( - options?: FarmsGetParameters + options?: FarmsGetParameters, ): StreamableMethod; /** Creates or updates a farm resource under a particular party. */ patch( - options: FarmsCreateOrUpdateParameters + options: FarmsCreateOrUpdateParameters, ): StreamableMethod< | FarmsCreateOrUpdate200Response | FarmsCreateOrUpdate201Response @@ -944,27 +944,27 @@ export interface FarmsGet { >; /** Deletes a specified farm resource under a particular party. */ delete( - options?: FarmsDeleteParameters + options?: FarmsDeleteParameters, ): StreamableMethod; } export interface FieldsList { /** Returns a paginated list of field resources across all parties. */ get( - options?: FieldsListParameters + options?: FieldsListParameters, ): StreamableMethod; } export interface FieldsGetCascadeDeleteJobDetails { /** Get a cascade delete job for specified field. */ get( - options?: FieldsGetCascadeDeleteJobDetailsParameters + options?: FieldsGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< FieldsGetCascadeDeleteJobDetails200Response | FieldsGetCascadeDeleteJobDetailsDefaultResponse >; /** Create a cascade delete job for specified field. */ put( - options: FieldsCreateCascadeDeleteJobParameters + options: FieldsCreateCascadeDeleteJobParameters, ): StreamableMethod< FieldsCreateCascadeDeleteJob202Response | FieldsCreateCascadeDeleteJobDefaultResponse >; @@ -973,18 +973,18 @@ export interface FieldsGetCascadeDeleteJobDetails { export interface FieldsListByPartyId { /** Returns a paginated list of field resources under a particular party. */ get( - options?: FieldsListByPartyIdParameters + options?: FieldsListByPartyIdParameters, ): StreamableMethod; } export interface FieldsGet { /** Gets a specified field resource under a particular party. */ get( - options?: FieldsGetParameters + options?: FieldsGetParameters, ): StreamableMethod; /** Creates or Updates a field resource under a particular party. */ patch( - options: FieldsCreateOrUpdateParameters + options: FieldsCreateOrUpdateParameters, ): StreamableMethod< | FieldsCreateOrUpdate200Response | FieldsCreateOrUpdate201Response @@ -992,27 +992,27 @@ export interface FieldsGet { >; /** Deletes a specified field resource under a particular party. */ delete( - options?: FieldsDeleteParameters + options?: FieldsDeleteParameters, ): StreamableMethod; } export interface HarvestDataList { /** Returns a paginated list of harvest data resources across all parties. */ get( - options?: HarvestDataListParameters + options?: HarvestDataListParameters, ): StreamableMethod; } export interface HarvestDataCreateCascadeDeleteJob { /** Create cascade delete job for harvest data resource. */ put( - options: HarvestDataCreateCascadeDeleteJobParameters + options: HarvestDataCreateCascadeDeleteJobParameters, ): StreamableMethod< HarvestDataCreateCascadeDeleteJob202Response | HarvestDataCreateCascadeDeleteJobDefaultResponse >; /** Get cascade delete job for harvest data resource. */ get( - options?: HarvestDataGetCascadeDeleteJobDetailsParameters + options?: HarvestDataGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< | HarvestDataGetCascadeDeleteJobDetails200Response | HarvestDataGetCascadeDeleteJobDetailsDefaultResponse @@ -1022,7 +1022,7 @@ export interface HarvestDataCreateCascadeDeleteJob { export interface HarvestDataListByPartyId { /** Returns a paginated list of harvest data resources under a particular farm. */ get( - options?: HarvestDataListByPartyIdParameters + options?: HarvestDataListByPartyIdParameters, ): StreamableMethod< HarvestDataListByPartyId200Response | HarvestDataListByPartyIdDefaultResponse >; @@ -1031,11 +1031,11 @@ export interface HarvestDataListByPartyId { export interface HarvestDataGet { /** Get a specified harvest data resource under a particular party. */ get( - options?: HarvestDataGetParameters + options?: HarvestDataGetParameters, ): StreamableMethod; /** Creates or updates harvest data resource under a particular party. */ patch( - options: HarvestDataCreateOrUpdateParameters + options: HarvestDataCreateOrUpdateParameters, ): StreamableMethod< | HarvestDataCreateOrUpdate200Response | HarvestDataCreateOrUpdate201Response @@ -1043,20 +1043,20 @@ export interface HarvestDataGet { >; /** Deletes a specified harvest data resource under a particular party. */ delete( - options?: HarvestDataDeleteParameters + options?: HarvestDataDeleteParameters, ): StreamableMethod; } export interface ImageProcessingCreateRasterizeJob { /** Create a ImageProcessing Rasterize job. */ put( - options: ImageProcessingCreateRasterizeJobParameters + options: ImageProcessingCreateRasterizeJobParameters, ): StreamableMethod< ImageProcessingCreateRasterizeJob202Response | ImageProcessingCreateRasterizeJobDefaultResponse >; /** Get ImageProcessing Rasterize job's details. */ get( - options?: ImageProcessingGetRasterizeJobParameters + options?: ImageProcessingGetRasterizeJobParameters, ): StreamableMethod< ImageProcessingGetRasterizeJob200Response | ImageProcessingGetRasterizeJobDefaultResponse >; @@ -1065,7 +1065,7 @@ export interface ImageProcessingCreateRasterizeJob { export interface InsightAttachmentsListByPartyIdModelIdAndResource { /** Returns a paginated list of insight resources. */ get( - options?: InsightAttachmentsListByPartyIdModelIdAndResourceParameters + options?: InsightAttachmentsListByPartyIdModelIdAndResourceParameters, ): StreamableMethod< | InsightAttachmentsListByPartyIdModelIdAndResource200Response | InsightAttachmentsListByPartyIdModelIdAndResourceDefaultResponse @@ -1075,7 +1075,7 @@ export interface InsightAttachmentsListByPartyIdModelIdAndResource { export interface InsightAttachmentsCreateOrUpdate { /** Creates or updates insight entity. */ patch( - options: InsightAttachmentsCreateOrUpdateParameters + options: InsightAttachmentsCreateOrUpdateParameters, ): StreamableMethod< | InsightAttachmentsCreateOrUpdate200Response | InsightAttachmentsCreateOrUpdate201Response @@ -1083,11 +1083,11 @@ export interface InsightAttachmentsCreateOrUpdate { >; /** Gets a specified insight resource under a particular party. */ get( - options?: InsightAttachmentsGetParameters + options?: InsightAttachmentsGetParameters, ): StreamableMethod; /** Deletes a specified insight resource. */ delete( - options?: InsightAttachmentsDeleteParameters + options?: InsightAttachmentsDeleteParameters, ): StreamableMethod< InsightAttachmentsDelete204Response | InsightAttachmentsDeleteDefaultResponse >; @@ -1096,7 +1096,7 @@ export interface InsightAttachmentsCreateOrUpdate { export interface InsightAttachmentsDownload { /** Downloads and returns insight-attachment as response for the given input filePath. */ get( - options?: InsightAttachmentsDownloadParameters + options?: InsightAttachmentsDownloadParameters, ): StreamableMethod< InsightAttachmentsDownload200Response | InsightAttachmentsDownloadDefaultResponse >; @@ -1105,13 +1105,13 @@ export interface InsightAttachmentsDownload { export interface InsightsCreateCascadeDeleteJob { /** Create a cascade delete job for insights specified partyId/modelId/resourceType/resourceId. */ put( - options: InsightsCreateCascadeDeleteJobParameters + options: InsightsCreateCascadeDeleteJobParameters, ): StreamableMethod< InsightsCreateCascadeDeleteJob202Response | InsightsCreateCascadeDeleteJobDefaultResponse >; /** Get a cascade delete job for specified insight. */ get( - options?: InsightsGetCascadeDeleteJobDetailsParameters + options?: InsightsGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< | InsightsGetCascadeDeleteJobDetails200Response | InsightsGetCascadeDeleteJobDetailsDefaultResponse @@ -1121,7 +1121,7 @@ export interface InsightsCreateCascadeDeleteJob { export interface InsightsListByPartyIdModelIdAndResource { /** Returns a paginated list of insight resources. */ get( - options?: InsightsListByPartyIdModelIdAndResourceParameters + options?: InsightsListByPartyIdModelIdAndResourceParameters, ): StreamableMethod< | InsightsListByPartyIdModelIdAndResource200Response | InsightsListByPartyIdModelIdAndResourceDefaultResponse @@ -1131,7 +1131,7 @@ export interface InsightsListByPartyIdModelIdAndResource { export interface InsightsCreateOrUpdate { /** Creates or updates insight entity. */ patch( - options: InsightsCreateOrUpdateParameters + options: InsightsCreateOrUpdateParameters, ): StreamableMethod< | InsightsCreateOrUpdate200Response | InsightsCreateOrUpdate201Response @@ -1139,32 +1139,32 @@ export interface InsightsCreateOrUpdate { >; /** Gets a specified insight resource under a particular party. */ get( - options?: InsightsGetParameters + options?: InsightsGetParameters, ): StreamableMethod; /** Deletes a specified insight resource. */ delete( - options?: InsightsDeleteParameters + options?: InsightsDeleteParameters, ): StreamableMethod; } export interface ManagementZonesList { /** Returns a paginated list of management zone resources across all parties. */ get( - options?: ManagementZonesListParameters + options?: ManagementZonesListParameters, ): StreamableMethod; } export interface ManagementZonesGetCascadeDeleteJobDetails { /** Get a cascade delete job for specified job id. */ get( - options?: ManagementZonesGetCascadeDeleteJobDetailsParameters + options?: ManagementZonesGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< | ManagementZonesGetCascadeDeleteJobDetails200Response | ManagementZonesGetCascadeDeleteJobDetailsDefaultResponse >; /** Create a cascade delete job for specified management zone. */ put( - options: ManagementZonesCreateCascadeDeleteJobParameters + options: ManagementZonesCreateCascadeDeleteJobParameters, ): StreamableMethod< | ManagementZonesCreateCascadeDeleteJob202Response | ManagementZonesCreateCascadeDeleteJobDefaultResponse @@ -1174,7 +1174,7 @@ export interface ManagementZonesGetCascadeDeleteJobDetails { export interface ManagementZonesListByPartyId { /** Returns a paginated list of management zone resources under a particular party. */ get( - options?: ManagementZonesListByPartyIdParameters + options?: ManagementZonesListByPartyIdParameters, ): StreamableMethod< ManagementZonesListByPartyId200Response | ManagementZonesListByPartyIdDefaultResponse >; @@ -1183,11 +1183,11 @@ export interface ManagementZonesListByPartyId { export interface ManagementZonesGet { /** Gets a specified management zone resource under a particular party. */ get( - options?: ManagementZonesGetParameters + options?: ManagementZonesGetParameters, ): StreamableMethod; /** Creates or updates a management zone resource. */ patch( - options: ManagementZonesCreateOrUpdateParameters + options: ManagementZonesCreateOrUpdateParameters, ): StreamableMethod< | ManagementZonesCreateOrUpdate200Response | ManagementZonesCreateOrUpdate201Response @@ -1195,21 +1195,21 @@ export interface ManagementZonesGet { >; /** Deletes a specified management zone resource under a particular party. */ delete( - options?: ManagementZonesDeleteParameters + options?: ManagementZonesDeleteParameters, ): StreamableMethod; } export interface ModelInferenceCreateBiomassModelJob { /** Create a Biomass Model job. */ put( - options: ModelInferenceCreateBiomassModelJobParameters + options: ModelInferenceCreateBiomassModelJobParameters, ): StreamableMethod< | ModelInferenceCreateBiomassModelJob202Response | ModelInferenceCreateBiomassModelJobDefaultResponse >; /** Get Biomass Model job's details. */ get( - options?: ModelInferenceGetBiomassModelJobParameters + options?: ModelInferenceGetBiomassModelJobParameters, ): StreamableMethod< ModelInferenceGetBiomassModelJob200Response | ModelInferenceGetBiomassModelJobDefaultResponse >; @@ -1218,14 +1218,14 @@ export interface ModelInferenceCreateBiomassModelJob { export interface ModelInferenceCreateSensorPlacementModelJob { /** Create a Sensor Placement Model job. */ put( - options: ModelInferenceCreateSensorPlacementModelJobParameters + options: ModelInferenceCreateSensorPlacementModelJobParameters, ): StreamableMethod< | ModelInferenceCreateSensorPlacementModelJob202Response | ModelInferenceCreateSensorPlacementModelJobDefaultResponse >; /** Get Sensor Placement Model job's details. */ get( - options?: ModelInferenceGetSensorPlacementModelJobParameters + options?: ModelInferenceGetSensorPlacementModelJobParameters, ): StreamableMethod< | ModelInferenceGetSensorPlacementModelJob200Response | ModelInferenceGetSensorPlacementModelJobDefaultResponse @@ -1235,14 +1235,14 @@ export interface ModelInferenceCreateSensorPlacementModelJob { export interface ModelInferenceCreateSoilMoistureModelJob { /** Create a SoilMoisture Model job. */ put( - options: ModelInferenceCreateSoilMoistureModelJobParameters + options: ModelInferenceCreateSoilMoistureModelJobParameters, ): StreamableMethod< | ModelInferenceCreateSoilMoistureModelJob202Response | ModelInferenceCreateSoilMoistureModelJobDefaultResponse >; /** Get SoilMoisture Model job's details. */ get( - options?: ModelInferenceGetSoilMoistureModelJobParameters + options?: ModelInferenceGetSoilMoistureModelJobParameters, ): StreamableMethod< | ModelInferenceGetSoilMoistureModelJob200Response | ModelInferenceGetSoilMoistureModelJobDefaultResponse @@ -1252,14 +1252,14 @@ export interface ModelInferenceCreateSoilMoistureModelJob { export interface NutrientAnalysesList { /** Returns a paginated list of nutrient analysis resources across all parties. */ get( - options?: NutrientAnalysesListParameters + options?: NutrientAnalysesListParameters, ): StreamableMethod; } export interface NutrientAnalysesListByPartyId { /** Returns a paginated list of nutrient analysis resources under a particular party. */ get( - options?: NutrientAnalysesListByPartyIdParameters + options?: NutrientAnalysesListByPartyIdParameters, ): StreamableMethod< NutrientAnalysesListByPartyId200Response | NutrientAnalysesListByPartyIdDefaultResponse >; @@ -1268,11 +1268,11 @@ export interface NutrientAnalysesListByPartyId { export interface NutrientAnalysesGet { /** Gets a specified nutrient analysis resource under a particular party. */ get( - options?: NutrientAnalysesGetParameters + options?: NutrientAnalysesGetParameters, ): StreamableMethod; /** Creates or updates a nutrient analysis resource. */ patch( - options: NutrientAnalysesCreateOrUpdateParameters + options: NutrientAnalysesCreateOrUpdateParameters, ): StreamableMethod< | NutrientAnalysesCreateOrUpdate200Response | NutrientAnalysesCreateOrUpdate201Response @@ -1280,25 +1280,25 @@ export interface NutrientAnalysesGet { >; /** Deletes a specified nutrient analysis resource under a particular party. */ delete( - options?: NutrientAnalysesDeleteParameters + options?: NutrientAnalysesDeleteParameters, ): StreamableMethod; } export interface OAuthProvidersList { /** Returns a paginated list of oauthProvider resources. */ get( - options?: OAuthProvidersListParameters + options?: OAuthProvidersListParameters, ): StreamableMethod; } export interface OAuthProvidersGet { /** Get a specified oauthProvider resource. */ get( - options?: OAuthProvidersGetParameters + options?: OAuthProvidersGetParameters, ): StreamableMethod; /** Creates or updates an oauthProvider resource. */ patch( - options: OAuthProvidersCreateOrUpdateParameters + options: OAuthProvidersCreateOrUpdateParameters, ): StreamableMethod< | OAuthProvidersCreateOrUpdate200Response | OAuthProvidersCreateOrUpdate201Response @@ -1306,21 +1306,21 @@ export interface OAuthProvidersGet { >; /** Deletes an specified oauthProvider resource. */ delete( - options?: OAuthProvidersDeleteParameters + options?: OAuthProvidersDeleteParameters, ): StreamableMethod; } export interface OAuthProvidersGetCascadeDeleteJobDetails { /** Get cascade delete job for oauthProvider resource. */ get( - options?: OAuthProvidersGetCascadeDeleteJobDetailsParameters + options?: OAuthProvidersGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< | OAuthProvidersGetCascadeDeleteJobDetails200Response | OAuthProvidersGetCascadeDeleteJobDetailsDefaultResponse >; /** Create cascade delete job for oauthProvider resource. */ put( - options: OAuthProvidersCreateCascadeDeleteJobParameters + options: OAuthProvidersCreateCascadeDeleteJobParameters, ): StreamableMethod< | OAuthProvidersCreateCascadeDeleteJob202Response | OAuthProvidersCreateCascadeDeleteJobDefaultResponse @@ -1330,14 +1330,14 @@ export interface OAuthProvidersGetCascadeDeleteJobDetails { export interface OAuthTokensList { /** Returns a list of OAuthToken documents. */ get( - options?: OAuthTokensListParameters + options?: OAuthTokensListParameters, ): StreamableMethod; } export interface OAuthTokensGetOAuthConnectionLink { /** Returns Connection link needed in the OAuth flow. */ post( - options: OAuthTokensGetOAuthConnectionLinkParameters + options: OAuthTokensGetOAuthConnectionLinkParameters, ): StreamableMethod< OAuthTokensGetOAuthConnectionLink200Response | OAuthTokensGetOAuthConnectionLinkDefaultResponse >; @@ -1346,14 +1346,14 @@ export interface OAuthTokensGetOAuthConnectionLink { export interface OAuthTokensGetCascadeDeleteJobDetails { /** Get remove job for OAuth token. */ get( - options?: OAuthTokensGetCascadeDeleteJobDetailsParameters + options?: OAuthTokensGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< | OAuthTokensGetCascadeDeleteJobDetails200Response | OAuthTokensGetCascadeDeleteJobDetailsDefaultResponse >; /** Create remove job for OAuth token. */ put( - options: OAuthTokensCreateCascadeDeleteJobParameters + options: OAuthTokensCreateCascadeDeleteJobParameters, ): StreamableMethod< OAuthTokensCreateCascadeDeleteJob202Response | OAuthTokensCreateCascadeDeleteJobDefaultResponse >; @@ -1362,18 +1362,18 @@ export interface OAuthTokensGetCascadeDeleteJobDetails { export interface PartiesList { /** Returns a paginated list of party resources. */ get( - options?: PartiesListParameters + options?: PartiesListParameters, ): StreamableMethod; } export interface PartiesGet { /** Gets a specified party resource. */ get( - options?: PartiesGetParameters + options?: PartiesGetParameters, ): StreamableMethod; /** Creates or updates a party resource. */ patch( - options: PartiesCreateOrUpdateParameters + options: PartiesCreateOrUpdateParameters, ): StreamableMethod< | PartiesCreateOrUpdate200Response | PartiesCreateOrUpdate201Response @@ -1381,20 +1381,20 @@ export interface PartiesGet { >; /** Deletes a specified party resource. */ delete( - options?: PartiesDeleteParameters + options?: PartiesDeleteParameters, ): StreamableMethod; } export interface PartiesGetCascadeDeleteJobDetails { /** Get a cascade delete job for specified party. */ get( - options?: PartiesGetCascadeDeleteJobDetailsParameters + options?: PartiesGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< PartiesGetCascadeDeleteJobDetails200Response | PartiesGetCascadeDeleteJobDetailsDefaultResponse >; /** Create a cascade delete job for specified party. */ put( - options: PartiesCreateCascadeDeleteJobParameters + options: PartiesCreateCascadeDeleteJobParameters, ): StreamableMethod< PartiesCreateCascadeDeleteJob202Response | PartiesCreateCascadeDeleteJobDefaultResponse >; @@ -1403,7 +1403,7 @@ export interface PartiesGetCascadeDeleteJobDetails { export interface PlantingDataListByPartyId { /** Returns a paginated list of planting data resources under a particular party. */ get( - options?: PlantingDataListByPartyIdParameters + options?: PlantingDataListByPartyIdParameters, ): StreamableMethod< PlantingDataListByPartyId200Response | PlantingDataListByPartyIdDefaultResponse >; @@ -1412,11 +1412,11 @@ export interface PlantingDataListByPartyId { export interface PlantingDataGet { /** Get a specified planting data resource under a particular party. */ get( - options?: PlantingDataGetParameters + options?: PlantingDataGetParameters, ): StreamableMethod; /** Creates or updates an planting data resource under a particular party. */ patch( - options: PlantingDataCreateOrUpdateParameters + options: PlantingDataCreateOrUpdateParameters, ): StreamableMethod< | PlantingDataCreateOrUpdate200Response | PlantingDataCreateOrUpdate201Response @@ -1424,28 +1424,28 @@ export interface PlantingDataGet { >; /** Deletes a specified planting data resource under a particular party. */ delete( - options?: PlantingDataDeleteParameters + options?: PlantingDataDeleteParameters, ): StreamableMethod; } export interface PlantingDataList { /** Returns a paginated list of planting data resources across all parties. */ get( - options?: PlantingDataListParameters + options?: PlantingDataListParameters, ): StreamableMethod; } export interface PlantingDataCreateCascadeDeleteJob { /** Create cascade delete job for planting data resource. */ put( - options: PlantingDataCreateCascadeDeleteJobParameters + options: PlantingDataCreateCascadeDeleteJobParameters, ): StreamableMethod< | PlantingDataCreateCascadeDeleteJob202Response | PlantingDataCreateCascadeDeleteJobDefaultResponse >; /** Get cascade delete job for planting data resource. */ get( - options?: PlantingDataGetCascadeDeleteJobDetailsParameters + options?: PlantingDataGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< | PlantingDataGetCascadeDeleteJobDetails200Response | PlantingDataGetCascadeDeleteJobDetailsDefaultResponse @@ -1455,7 +1455,7 @@ export interface PlantingDataCreateCascadeDeleteJob { export interface PlantTissueAnalysesListByPartyId { /** Returns a paginated list of plant tissue analysis resources under a particular party. */ get( - options?: PlantTissueAnalysesListByPartyIdParameters + options?: PlantTissueAnalysesListByPartyIdParameters, ): StreamableMethod< PlantTissueAnalysesListByPartyId200Response | PlantTissueAnalysesListByPartyIdDefaultResponse >; @@ -1464,11 +1464,11 @@ export interface PlantTissueAnalysesListByPartyId { export interface PlantTissueAnalysesGet { /** Gets a specified plant tissue analysis resource under a particular party. */ get( - options?: PlantTissueAnalysesGetParameters + options?: PlantTissueAnalysesGetParameters, ): StreamableMethod; /** Creates or updates a plant tissue analysis resource. */ patch( - options: PlantTissueAnalysesCreateOrUpdateParameters + options: PlantTissueAnalysesCreateOrUpdateParameters, ): StreamableMethod< | PlantTissueAnalysesCreateOrUpdate200Response | PlantTissueAnalysesCreateOrUpdate201Response @@ -1476,7 +1476,7 @@ export interface PlantTissueAnalysesGet { >; /** Deletes a specified plant tissue analysis resource under a particular party. */ delete( - options?: PlantTissueAnalysesDeleteParameters + options?: PlantTissueAnalysesDeleteParameters, ): StreamableMethod< PlantTissueAnalysesDelete204Response | PlantTissueAnalysesDeleteDefaultResponse >; @@ -1485,21 +1485,21 @@ export interface PlantTissueAnalysesGet { export interface PlantTissueAnalysesList { /** Returns a paginated list of plant tissue analysis resources across all parties. */ get( - options?: PlantTissueAnalysesListParameters + options?: PlantTissueAnalysesListParameters, ): StreamableMethod; } export interface PlantTissueAnalysesCreateCascadeDeleteJob { /** Create a cascade delete job for specified plant tissue analysis. */ put( - options: PlantTissueAnalysesCreateCascadeDeleteJobParameters + options: PlantTissueAnalysesCreateCascadeDeleteJobParameters, ): StreamableMethod< | PlantTissueAnalysesCreateCascadeDeleteJob202Response | PlantTissueAnalysesCreateCascadeDeleteJobDefaultResponse >; /** Get a cascade delete job for specified plant tissue analysis. */ get( - options?: PlantTissueAnalysesGetCascadeDeleteJobDetailsParameters + options?: PlantTissueAnalysesGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< | PlantTissueAnalysesGetCascadeDeleteJobDetails200Response | PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultResponse @@ -1509,7 +1509,7 @@ export interface PlantTissueAnalysesCreateCascadeDeleteJob { export interface PrescriptionMapsListByPartyId { /** Returns a paginated list of prescription map resources under a particular party. */ get( - options?: PrescriptionMapsListByPartyIdParameters + options?: PrescriptionMapsListByPartyIdParameters, ): StreamableMethod< PrescriptionMapsListByPartyId200Response | PrescriptionMapsListByPartyIdDefaultResponse >; @@ -1518,11 +1518,11 @@ export interface PrescriptionMapsListByPartyId { export interface PrescriptionMapsGet { /** Gets a specified prescription map resource under a particular party. */ get( - options?: PrescriptionMapsGetParameters + options?: PrescriptionMapsGetParameters, ): StreamableMethod; /** Creates or Updates a prescription map resource under a particular party. */ patch( - options: PrescriptionMapsCreateOrUpdateParameters + options: PrescriptionMapsCreateOrUpdateParameters, ): StreamableMethod< | PrescriptionMapsCreateOrUpdate200Response | PrescriptionMapsCreateOrUpdate201Response @@ -1530,28 +1530,28 @@ export interface PrescriptionMapsGet { >; /** Deletes a specified prescription map resource under a particular party. */ delete( - options?: PrescriptionMapsDeleteParameters + options?: PrescriptionMapsDeleteParameters, ): StreamableMethod; } export interface PrescriptionMapsList { /** Returns a paginated list of prescription map resources across all parties. */ get( - options?: PrescriptionMapsListParameters + options?: PrescriptionMapsListParameters, ): StreamableMethod; } export interface PrescriptionMapsGetCascadeDeleteJobDetails { /** Get a cascade delete job for specified prescription map. */ get( - options?: PrescriptionMapsGetCascadeDeleteJobDetailsParameters + options?: PrescriptionMapsGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< | PrescriptionMapsGetCascadeDeleteJobDetails200Response | PrescriptionMapsGetCascadeDeleteJobDetailsDefaultResponse >; /** Create a cascade delete job for specified prescription map. */ put( - options: PrescriptionMapsCreateCascadeDeleteJobParameters + options: PrescriptionMapsCreateCascadeDeleteJobParameters, ): StreamableMethod< | PrescriptionMapsCreateCascadeDeleteJob202Response | PrescriptionMapsCreateCascadeDeleteJobDefaultResponse @@ -1561,7 +1561,7 @@ export interface PrescriptionMapsGetCascadeDeleteJobDetails { export interface PrescriptionsListByPartyId { /** Returns a paginated list of prescription resources under a particular party. */ get( - options?: PrescriptionsListByPartyIdParameters + options?: PrescriptionsListByPartyIdParameters, ): StreamableMethod< PrescriptionsListByPartyId200Response | PrescriptionsListByPartyIdDefaultResponse >; @@ -1570,11 +1570,11 @@ export interface PrescriptionsListByPartyId { export interface PrescriptionsGet { /** Gets a specified prescription resource under a particular party. */ get( - options?: PrescriptionsGetParameters + options?: PrescriptionsGetParameters, ): StreamableMethod; /** Creates or Updates a prescription resource under a particular party. */ patch( - options: PrescriptionsCreateOrUpdateParameters + options: PrescriptionsCreateOrUpdateParameters, ): StreamableMethod< | PrescriptionsCreateOrUpdate200Response | PrescriptionsCreateOrUpdate201Response @@ -1582,28 +1582,28 @@ export interface PrescriptionsGet { >; /** Deletes a specified prescription resource under a particular party. */ delete( - options?: PrescriptionsDeleteParameters + options?: PrescriptionsDeleteParameters, ): StreamableMethod; } export interface PrescriptionsList { /** Returns a paginated list of prescription resources across all parties. */ get( - options?: PrescriptionsListParameters + options?: PrescriptionsListParameters, ): StreamableMethod; } export interface PrescriptionsGetCascadeDeleteJobDetails { /** Get a cascade delete job for specified prescription. */ get( - options?: PrescriptionsGetCascadeDeleteJobDetailsParameters + options?: PrescriptionsGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< | PrescriptionsGetCascadeDeleteJobDetails200Response | PrescriptionsGetCascadeDeleteJobDetailsDefaultResponse >; /** Create a cascade delete job for specified prescription. */ put( - options: PrescriptionsCreateCascadeDeleteJobParameters + options: PrescriptionsCreateCascadeDeleteJobParameters, ): StreamableMethod< | PrescriptionsCreateCascadeDeleteJob202Response | PrescriptionsCreateCascadeDeleteJobDefaultResponse @@ -1613,28 +1613,28 @@ export interface PrescriptionsGetCascadeDeleteJobDetails { export interface ScenesList { /** Returns a paginated list of scene resources. */ get( - options: ScenesListParameters + options: ScenesListParameters, ): StreamableMethod; } export interface ScenesDownload { /** Downloads and returns file Stream as response for the given input filePath. */ get( - options: ScenesDownloadParameters + options: ScenesDownloadParameters, ): StreamableMethod; } export interface ScenesCreateSatelliteDataIngestionJob { /** Create a satellite data ingestion job. */ put( - options: ScenesCreateSatelliteDataIngestionJobParameters + options: ScenesCreateSatelliteDataIngestionJobParameters, ): StreamableMethod< | ScenesCreateSatelliteDataIngestionJob202Response | ScenesCreateSatelliteDataIngestionJobDefaultResponse >; /** Get a satellite data ingestion job. */ get( - options?: ScenesGetSatelliteDataIngestionJobDetailsParameters + options?: ScenesGetSatelliteDataIngestionJobDetailsParameters, ): StreamableMethod< | ScenesGetSatelliteDataIngestionJobDetails200Response | ScenesGetSatelliteDataIngestionJobDetailsDefaultResponse @@ -1644,21 +1644,21 @@ export interface ScenesCreateSatelliteDataIngestionJob { export interface ScenesSearchFeatures { /** Search for STAC features by collection id, bbox, intersecting geometry, start and end datetime. */ post( - options: ScenesSearchFeaturesParameters + options: ScenesSearchFeaturesParameters, ): StreamableMethod; } export interface ScenesGetStacFeature { /** Get a feature(SpatioTemporal Asset Catalog (STAC) Item) for given collection and feature id. */ get( - options?: ScenesGetStacFeatureParameters + options?: ScenesGetStacFeatureParameters, ): StreamableMethod; } export interface SeasonalFieldsListByPartyId { /** Returns a paginated list of seasonal field resources under a particular party. */ get( - options?: SeasonalFieldsListByPartyIdParameters + options?: SeasonalFieldsListByPartyIdParameters, ): StreamableMethod< SeasonalFieldsListByPartyId200Response | SeasonalFieldsListByPartyIdDefaultResponse >; @@ -1667,11 +1667,11 @@ export interface SeasonalFieldsListByPartyId { export interface SeasonalFieldsGet { /** Gets a specified seasonal field resource under a particular party. */ get( - options?: SeasonalFieldsGetParameters + options?: SeasonalFieldsGetParameters, ): StreamableMethod; /** Creates or Updates a seasonal field resource under a particular party. */ patch( - options: SeasonalFieldsCreateOrUpdateParameters + options: SeasonalFieldsCreateOrUpdateParameters, ): StreamableMethod< | SeasonalFieldsCreateOrUpdate200Response | SeasonalFieldsCreateOrUpdate201Response @@ -1679,28 +1679,28 @@ export interface SeasonalFieldsGet { >; /** Deletes a specified seasonal-field resource under a particular party. */ delete( - options?: SeasonalFieldsDeleteParameters + options?: SeasonalFieldsDeleteParameters, ): StreamableMethod; } export interface SeasonalFieldsList { /** Returns a paginated list of seasonal field resources across all parties. */ get( - options?: SeasonalFieldsListParameters + options?: SeasonalFieldsListParameters, ): StreamableMethod; } export interface SeasonalFieldsGetCascadeDeleteJobDetails { /** Get cascade delete job for specified seasonal field. */ get( - options?: SeasonalFieldsGetCascadeDeleteJobDetailsParameters + options?: SeasonalFieldsGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< | SeasonalFieldsGetCascadeDeleteJobDetails200Response | SeasonalFieldsGetCascadeDeleteJobDetailsDefaultResponse >; /** Create a cascade delete job for specified seasonal field. */ put( - options: SeasonalFieldsCreateCascadeDeleteJobParameters + options: SeasonalFieldsCreateCascadeDeleteJobParameters, ): StreamableMethod< | SeasonalFieldsCreateCascadeDeleteJob202Response | SeasonalFieldsCreateCascadeDeleteJobDefaultResponse @@ -1710,18 +1710,18 @@ export interface SeasonalFieldsGetCascadeDeleteJobDetails { export interface SeasonsList { /** Returns a paginated list of season resources. */ get( - options?: SeasonsListParameters + options?: SeasonsListParameters, ): StreamableMethod; } export interface SeasonsGet { /** Gets a specified season resource. */ get( - options?: SeasonsGetParameters + options?: SeasonsGetParameters, ): StreamableMethod; /** Creates or updates a season resource. */ patch( - options: SeasonsCreateOrUpdateParameters + options: SeasonsCreateOrUpdateParameters, ): StreamableMethod< | SeasonsCreateOrUpdate200Response | SeasonsCreateOrUpdate201Response @@ -1729,21 +1729,21 @@ export interface SeasonsGet { >; /** Deletes a specified season resource. */ delete( - options?: SeasonsDeleteParameters + options?: SeasonsDeleteParameters, ): StreamableMethod; } export interface SensorDataModelsList { /** Returns a paginated list of sensor data model resources. */ get( - options?: SensorDataModelsListParameters + options?: SensorDataModelsListParameters, ): StreamableMethod; } export interface SensorDataModelsCreateOrUpdate { /** Create a sensor data model entity. */ patch( - options: SensorDataModelsCreateOrUpdateParameters + options: SensorDataModelsCreateOrUpdateParameters, ): StreamableMethod< | SensorDataModelsCreateOrUpdate200Response | SensorDataModelsCreateOrUpdate201Response @@ -1751,11 +1751,11 @@ export interface SensorDataModelsCreateOrUpdate { >; /** Gets a sensor data model entity. */ get( - options?: SensorDataModelsGetParameters + options?: SensorDataModelsGetParameters, ): StreamableMethod; /** Deletes a sensor data model entity. */ delete( - options?: SensorDataModelsDeleteParameters + options?: SensorDataModelsDeleteParameters, ): StreamableMethod; } @@ -1765,21 +1765,21 @@ export interface SensorEventsList { * Returns last 90 days events when startDateTime and endDateTime are not provided. */ get( - options: SensorEventsListParameters + options: SensorEventsListParameters, ): StreamableMethod; } export interface SensorMappingsList { /** Returns a paginated list of sensor mapping resources. */ get( - options?: SensorMappingsListParameters + options?: SensorMappingsListParameters, ): StreamableMethod; } export interface SensorMappingsCreateOrUpdate { /** Create a sensor mapping entity. */ patch( - options: SensorMappingsCreateOrUpdateParameters + options: SensorMappingsCreateOrUpdateParameters, ): StreamableMethod< | SensorMappingsCreateOrUpdate200Response | SensorMappingsCreateOrUpdate201Response @@ -1787,18 +1787,18 @@ export interface SensorMappingsCreateOrUpdate { >; /** Gets a sensor mapping entity. */ get( - options?: SensorMappingsGetParameters + options?: SensorMappingsGetParameters, ): StreamableMethod; /** Deletes a sensor mapping entity. */ delete( - options?: SensorMappingsDeleteParameters + options?: SensorMappingsDeleteParameters, ): StreamableMethod; } export interface SensorPartnerIntegrationsList { /** Gets partner integration models. */ get( - options?: SensorPartnerIntegrationsListParameters + options?: SensorPartnerIntegrationsListParameters, ): StreamableMethod< SensorPartnerIntegrationsList200Response | SensorPartnerIntegrationsListDefaultResponse >; @@ -1807,7 +1807,7 @@ export interface SensorPartnerIntegrationsList { export interface SensorPartnerIntegrationsCreateOrUpdate { /** Create or update an integration with a sensor partner. */ patch( - options: SensorPartnerIntegrationsCreateOrUpdateParameters + options: SensorPartnerIntegrationsCreateOrUpdateParameters, ): StreamableMethod< | SensorPartnerIntegrationsCreateOrUpdate200Response | SensorPartnerIntegrationsCreateOrUpdate201Response @@ -1815,13 +1815,13 @@ export interface SensorPartnerIntegrationsCreateOrUpdate { >; /** Gets a partner integration model entity. */ get( - options?: SensorPartnerIntegrationsGetParameters + options?: SensorPartnerIntegrationsGetParameters, ): StreamableMethod< SensorPartnerIntegrationsGet200Response | SensorPartnerIntegrationsGetDefaultResponse >; /** Deletes a partner integration model entity. */ delete( - options?: SensorPartnerIntegrationsDeleteParameters + options?: SensorPartnerIntegrationsDeleteParameters, ): StreamableMethod< SensorPartnerIntegrationsDelete204Response | SensorPartnerIntegrationsDeleteDefaultResponse >; @@ -1830,7 +1830,7 @@ export interface SensorPartnerIntegrationsCreateOrUpdate { export interface SensorPartnerIntegrationsCheckConsent { /** Checks consent for partner integration. */ post( - options: SensorPartnerIntegrationsCheckConsentParameters + options: SensorPartnerIntegrationsCheckConsentParameters, ): StreamableMethod< | SensorPartnerIntegrationsCheckConsent200Response | SensorPartnerIntegrationsCheckConsentDefaultResponse @@ -1840,7 +1840,7 @@ export interface SensorPartnerIntegrationsCheckConsent { export interface SensorPartnerIntegrationsGenerateConsentLink { /** Generates partner integration consent link. */ post( - options?: SensorPartnerIntegrationsGenerateConsentLinkParameters + options?: SensorPartnerIntegrationsGenerateConsentLinkParameters, ): StreamableMethod< | SensorPartnerIntegrationsGenerateConsentLink200Response | SensorPartnerIntegrationsGenerateConsentLinkDefaultResponse @@ -1850,14 +1850,14 @@ export interface SensorPartnerIntegrationsGenerateConsentLink { export interface SensorsList { /** Returns a paginated list of sensor resources. */ get( - options?: SensorsListParameters + options?: SensorsListParameters, ): StreamableMethod; } export interface SensorsCreateOrUpdate { /** Create a sensor entity. */ patch( - options: SensorsCreateOrUpdateParameters + options: SensorsCreateOrUpdateParameters, ): StreamableMethod< | SensorsCreateOrUpdate200Response | SensorsCreateOrUpdate201Response @@ -1865,18 +1865,18 @@ export interface SensorsCreateOrUpdate { >; /** Gets a sensor entity. */ get( - options?: SensorsGetParameters + options?: SensorsGetParameters, ): StreamableMethod; /** Deletes a sensor entity. */ delete( - options?: SensorsDeleteParameters + options?: SensorsDeleteParameters, ): StreamableMethod; } export interface SensorsGetConnectionString { /** Gets a sensor connection string. */ get( - options?: SensorsGetConnectionStringParameters + options?: SensorsGetConnectionStringParameters, ): StreamableMethod< SensorsGetConnectionString200Response | SensorsGetConnectionStringDefaultResponse >; @@ -1885,7 +1885,7 @@ export interface SensorsGetConnectionString { export interface SensorsRenewConnectionString { /** Renews a sensor connection string. */ post( - options: SensorsRenewConnectionStringParameters + options: SensorsRenewConnectionStringParameters, ): StreamableMethod< SensorsRenewConnectionString200Response | SensorsRenewConnectionStringDefaultResponse >; @@ -1894,14 +1894,14 @@ export interface SensorsRenewConnectionString { export interface SolutionInferenceCancel { /** Cancels a job for given solution id. */ post( - options: SolutionInferenceCancelParameters + options: SolutionInferenceCancelParameters, ): StreamableMethod; } export interface SolutionInferenceCreateOrUpdate { /** Creates a job trigger for a solution. */ post( - options: SolutionInferenceCreateOrUpdateParameters + options: SolutionInferenceCreateOrUpdateParameters, ): StreamableMethod< SolutionInferenceCreateOrUpdate202Response | SolutionInferenceCreateOrUpdateDefaultResponse >; @@ -1910,14 +1910,14 @@ export interface SolutionInferenceCreateOrUpdate { export interface SolutionInferenceFetch { /** Fetches details of triggered job for a solution. */ post( - options: SolutionInferenceFetchParameters + options: SolutionInferenceFetchParameters, ): StreamableMethod; } export interface TillageDataListByPartyId { /** Returns a paginated list of tillage data resources under a particular farm. */ get( - options?: TillageDataListByPartyIdParameters + options?: TillageDataListByPartyIdParameters, ): StreamableMethod< TillageDataListByPartyId200Response | TillageDataListByPartyIdDefaultResponse >; @@ -1926,11 +1926,11 @@ export interface TillageDataListByPartyId { export interface TillageDataGet { /** Get a specified tillage data resource under a particular party. */ get( - options?: TillageDataGetParameters + options?: TillageDataGetParameters, ): StreamableMethod; /** Creates or updates an tillage data resource under a particular party. */ patch( - options: TillageDataCreateOrUpdateParameters + options: TillageDataCreateOrUpdateParameters, ): StreamableMethod< | TillageDataCreateOrUpdate200Response | TillageDataCreateOrUpdate201Response @@ -1938,27 +1938,27 @@ export interface TillageDataGet { >; /** Deletes a specified tillage data resource under a particular party. */ delete( - options?: TillageDataDeleteParameters + options?: TillageDataDeleteParameters, ): StreamableMethod; } export interface TillageDataList { /** Returns a paginated list of tillage data resources across all parties. */ get( - options?: TillageDataListParameters + options?: TillageDataListParameters, ): StreamableMethod; } export interface TillageDataCreateCascadeDeleteJob { /** Create cascade delete job for tillage data resource. */ put( - options: TillageDataCreateCascadeDeleteJobParameters + options: TillageDataCreateCascadeDeleteJobParameters, ): StreamableMethod< TillageDataCreateCascadeDeleteJob202Response | TillageDataCreateCascadeDeleteJobDefaultResponse >; /** Get cascade delete job for tillage data resource. */ get( - options?: TillageDataGetCascadeDeleteJobDetailsParameters + options?: TillageDataGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< | TillageDataGetCascadeDeleteJobDetails200Response | TillageDataGetCascadeDeleteJobDetailsDefaultResponse @@ -1968,20 +1968,20 @@ export interface TillageDataCreateCascadeDeleteJob { export interface WeatherList { /** Returns a paginated list of weather data. */ get( - options: WeatherListParameters + options: WeatherListParameters, ): StreamableMethod; } export interface WeatherGetDataDeleteJobDetails { /** Get weather data delete job. */ get( - options?: WeatherGetDataDeleteJobDetailsParameters + options?: WeatherGetDataDeleteJobDetailsParameters, ): StreamableMethod< WeatherGetDataDeleteJobDetails200Response | WeatherGetDataDeleteJobDetailsDefaultResponse >; /** Create a weather data delete job. */ put( - options: WeatherCreateDataDeleteJobParameters + options: WeatherCreateDataDeleteJobParameters, ): StreamableMethod< WeatherCreateDataDeleteJob202Response | WeatherCreateDataDeleteJobDefaultResponse >; @@ -1990,13 +1990,13 @@ export interface WeatherGetDataDeleteJobDetails { export interface WeatherGetDataIngestionJobDetails { /** Get weather ingestion job. */ get( - options?: WeatherGetDataIngestionJobDetailsParameters + options?: WeatherGetDataIngestionJobDetailsParameters, ): StreamableMethod< WeatherGetDataIngestionJobDetails200Response | WeatherGetDataIngestionJobDetailsDefaultResponse >; /** Create a weather data ingestion job. */ put( - options: WeatherCreateDataIngestionJobParameters + options: WeatherCreateDataIngestionJobParameters, ): StreamableMethod< WeatherCreateDataIngestionJob202Response | WeatherCreateDataIngestionJobDefaultResponse >; @@ -2005,25 +2005,25 @@ export interface WeatherGetDataIngestionJobDetails { export interface WeatherDataGet { /** Returns a list of WeatherData. */ post( - options: WeatherDataGetParameters + options: WeatherDataGetParameters, ): StreamableMethod; } export interface ZonesListByPartyId { /** Returns a paginated list of zone resources under a particular party. */ get( - options?: ZonesListByPartyIdParameters + options?: ZonesListByPartyIdParameters, ): StreamableMethod; } export interface ZonesGet { /** Gets a specified zone resource under a particular party. */ get( - options?: ZonesGetParameters + options?: ZonesGetParameters, ): StreamableMethod; /** Creates or updates a Zone resource. */ patch( - options: ZonesCreateOrUpdateParameters + options: ZonesCreateOrUpdateParameters, ): StreamableMethod< | ZonesCreateOrUpdate200Response | ZonesCreateOrUpdate201Response @@ -2031,27 +2031,27 @@ export interface ZonesGet { >; /** Deletes a specified zone resource under a particular party. */ delete( - options?: ZonesDeleteParameters + options?: ZonesDeleteParameters, ): StreamableMethod; } export interface ZonesList { /** Returns a paginated list of zone resources across all parties. */ get( - options?: ZonesListParameters + options?: ZonesListParameters, ): StreamableMethod; } export interface ZonesGetCascadeDeleteJobDetails { /** Get a cascade delete job for specified job id. */ get( - options?: ZonesGetCascadeDeleteJobDetailsParameters + options?: ZonesGetCascadeDeleteJobDetailsParameters, ): StreamableMethod< ZonesGetCascadeDeleteJobDetails200Response | ZonesGetCascadeDeleteJobDetailsDefaultResponse >; /** Create a cascade delete job for specified zone. */ put( - options: ZonesCreateCascadeDeleteJobParameters + options: ZonesCreateCascadeDeleteJobParameters, ): StreamableMethod< ZonesCreateCascadeDeleteJob202Response | ZonesCreateCascadeDeleteJobDefaultResponse >; @@ -2063,7 +2063,7 @@ export interface Routes { /** Resource for '/application-data/cascade-delete/\{jobId\}' has methods for the following verbs: put, get */ ( path: "/application-data/cascade-delete/{jobId}", - jobId: string + jobId: string, ): ApplicationDataCreateCascadeDeleteJob; /** Resource for '/parties/\{partyId\}/application-data' has methods for the following verbs: get */ (path: "/parties/{partyId}/application-data", partyId: string): ApplicationDataListByPartyId; @@ -2071,7 +2071,7 @@ export interface Routes { ( path: "/parties/{partyId}/application-data/{applicationDataId}", partyId: string, - applicationDataId: string + applicationDataId: string, ): ApplicationDataGet; /** Resource for '/parties/\{partyId\}/attachments' has methods for the following verbs: get */ (path: "/parties/{partyId}/attachments", partyId: string): AttachmentsListByPartyId; @@ -2079,13 +2079,13 @@ export interface Routes { ( path: "/parties/{partyId}/attachments/{attachmentId}", partyId: string, - attachmentId: string + attachmentId: string, ): AttachmentsGet; /** Resource for '/parties/\{partyId\}/attachments/\{attachmentId\}/file' has methods for the following verbs: get */ ( path: "/parties/{partyId}/attachments/{attachmentId}/file", partyId: string, - attachmentId: string + attachmentId: string, ): AttachmentsDownload; /** Resource for '/boundaries' has methods for the following verbs: get, post */ (path: "/boundaries"): BoundariesList; @@ -2097,13 +2097,13 @@ export interface Routes { ( path: "/parties/{partyId}/boundaries/{boundaryId}", partyId: string, - boundaryId: string + boundaryId: string, ): BoundariesCreateOrUpdate; /** Resource for '/parties/\{partyId\}/boundaries/\{boundaryId\}/overlap' has methods for the following verbs: get */ ( path: "/parties/{partyId}/boundaries/{boundaryId}/overlap", partyId: string, - boundaryId: string + boundaryId: string, ): BoundariesGetOverlap; /** Resource for '/crop-products' has methods for the following verbs: get */ (path: "/crop-products"): CropProductsList; @@ -2116,13 +2116,13 @@ export interface Routes { /** Resource for '/sensor-partners/\{sensorPartnerId\}/device-data-models' has methods for the following verbs: get */ ( path: "/sensor-partners/{sensorPartnerId}/device-data-models", - sensorPartnerId: string + sensorPartnerId: string, ): DeviceDataModelsList; /** Resource for '/sensor-partners/\{sensorPartnerId\}/device-data-models/\{deviceDataModelId\}' has methods for the following verbs: patch, get, delete */ ( path: "/sensor-partners/{sensorPartnerId}/device-data-models/{deviceDataModelId}", sensorPartnerId: string, - deviceDataModelId: string + deviceDataModelId: string, ): DeviceDataModelsCreateOrUpdate; /** Resource for '/sensor-partners/\{sensorPartnerId\}/devices' has methods for the following verbs: get */ (path: "/sensor-partners/{sensorPartnerId}/devices", sensorPartnerId: string): DevicesList; @@ -2130,12 +2130,12 @@ export interface Routes { ( path: "/sensor-partners/{sensorPartnerId}/devices/{deviceId}", sensorPartnerId: string, - deviceId: string + deviceId: string, ): DevicesCreateOrUpdate; /** Resource for '/farm-operations/ingest-data/\{jobId\}' has methods for the following verbs: put, get */ ( path: "/farm-operations/ingest-data/{jobId}", - jobId: string + jobId: string, ): FarmOperationsCreateDataIngestionJob; /** Resource for '/farms' has methods for the following verbs: get */ (path: "/farms"): FarmsList; @@ -2163,7 +2163,7 @@ export interface Routes { ( path: "/parties/{partyId}/harvest-data/{harvestDataId}", partyId: string, - harvestDataId: string + harvestDataId: string, ): HarvestDataGet; /** Resource for '/image-processing/rasterize/\{jobId\}' has methods for the following verbs: put, get */ (path: "/image-processing/rasterize/{jobId}", jobId: string): ImageProcessingCreateRasterizeJob; @@ -2173,7 +2173,7 @@ export interface Routes { partyId: string, modelId: string, resourceType: string, - resourceId: string + resourceId: string, ): InsightAttachmentsListByPartyIdModelIdAndResource; /** Resource for '/parties/\{partyId\}/models/\{modelId\}/resource-types/\{resourceType\}/resources/\{resourceId\}/insight-attachments/\{insightAttachmentId\}' has methods for the following verbs: patch, get, delete */ ( @@ -2182,7 +2182,7 @@ export interface Routes { modelId: string, resourceType: string, resourceId: string, - insightAttachmentId: string + insightAttachmentId: string, ): InsightAttachmentsCreateOrUpdate; /** Resource for '/parties/\{partyId\}/models/\{modelId\}/resource-types/\{resourceType\}/resources/\{resourceId\}/insight-attachments/\{insightAttachmentId\}/file' has methods for the following verbs: get */ ( @@ -2191,7 +2191,7 @@ export interface Routes { modelId: string, resourceType: string, resourceId: string, - insightAttachmentId: string + insightAttachmentId: string, ): InsightAttachmentsDownload; /** Resource for '/insights/cascade-delete/\{jobId\}' has methods for the following verbs: put, get */ (path: "/insights/cascade-delete/{jobId}", jobId: string): InsightsCreateCascadeDeleteJob; @@ -2201,7 +2201,7 @@ export interface Routes { partyId: string, modelId: string, resourceType: string, - resourceId: string + resourceId: string, ): InsightsListByPartyIdModelIdAndResource; /** Resource for '/parties/\{partyId\}/models/\{modelId\}/resource-types/\{resourceType\}/resources/\{resourceId\}/insights/\{insightId\}' has methods for the following verbs: patch, get, delete */ ( @@ -2210,14 +2210,14 @@ export interface Routes { modelId: string, resourceType: string, resourceId: string, - insightId: string + insightId: string, ): InsightsCreateOrUpdate; /** Resource for '/management-zones' has methods for the following verbs: get */ (path: "/management-zones"): ManagementZonesList; /** Resource for '/management-zones/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ ( path: "/management-zones/cascade-delete/{jobId}", - jobId: string + jobId: string, ): ManagementZonesGetCascadeDeleteJobDetails; /** Resource for '/parties/\{partyId\}/management-zones' has methods for the following verbs: get */ (path: "/parties/{partyId}/management-zones", partyId: string): ManagementZonesListByPartyId; @@ -2225,22 +2225,22 @@ export interface Routes { ( path: "/parties/{partyId}/management-zones/{managementZoneId}", partyId: string, - managementZoneId: string + managementZoneId: string, ): ManagementZonesGet; /** Resource for '/model-inference/models/microsoft-biomass/infer-data/\{jobId\}' has methods for the following verbs: put, get */ ( path: "/model-inference/models/microsoft-biomass/infer-data/{jobId}", - jobId: string + jobId: string, ): ModelInferenceCreateBiomassModelJob; /** Resource for '/model-inference/models/microsoft-sensor-placement/infer-data/\{jobId\}' has methods for the following verbs: put, get */ ( path: "/model-inference/models/microsoft-sensor-placement/infer-data/{jobId}", - jobId: string + jobId: string, ): ModelInferenceCreateSensorPlacementModelJob; /** Resource for '/model-inference/models/microsoft-soil-moisture/infer-data/\{jobId\}' has methods for the following verbs: put, get */ ( path: "/model-inference/models/microsoft-soil-moisture/infer-data/{jobId}", - jobId: string + jobId: string, ): ModelInferenceCreateSoilMoistureModelJob; /** Resource for '/nutrient-analyses' has methods for the following verbs: get */ (path: "/nutrient-analyses"): NutrientAnalysesList; @@ -2250,7 +2250,7 @@ export interface Routes { ( path: "/parties/{partyId}/nutrient-analyses/{nutrientAnalysisId}", partyId: string, - nutrientAnalysisId: string + nutrientAnalysisId: string, ): NutrientAnalysesGet; /** Resource for '/oauth/providers' has methods for the following verbs: get */ (path: "/oauth/providers"): OAuthProvidersList; @@ -2259,7 +2259,7 @@ export interface Routes { /** Resource for '/oauth/providers/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ ( path: "/oauth/providers/cascade-delete/{jobId}", - jobId: string + jobId: string, ): OAuthProvidersGetCascadeDeleteJobDetails; /** Resource for '/oauth/tokens' has methods for the following verbs: get */ (path: "/oauth/tokens"): OAuthTokensList; @@ -2279,32 +2279,32 @@ export interface Routes { ( path: "/parties/{partyId}/planting-data/{plantingDataId}", partyId: string, - plantingDataId: string + plantingDataId: string, ): PlantingDataGet; /** Resource for '/planting-data' has methods for the following verbs: get */ (path: "/planting-data"): PlantingDataList; /** Resource for '/planting-data/cascade-delete/\{jobId\}' has methods for the following verbs: put, get */ ( path: "/planting-data/cascade-delete/{jobId}", - jobId: string + jobId: string, ): PlantingDataCreateCascadeDeleteJob; /** Resource for '/parties/\{partyId\}/plant-tissue-analyses' has methods for the following verbs: get */ ( path: "/parties/{partyId}/plant-tissue-analyses", - partyId: string + partyId: string, ): PlantTissueAnalysesListByPartyId; /** Resource for '/parties/\{partyId\}/plant-tissue-analyses/\{plantTissueAnalysisId\}' has methods for the following verbs: get, patch, delete */ ( path: "/parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}", partyId: string, - plantTissueAnalysisId: string + plantTissueAnalysisId: string, ): PlantTissueAnalysesGet; /** Resource for '/plant-tissue-analyses' has methods for the following verbs: get */ (path: "/plant-tissue-analyses"): PlantTissueAnalysesList; /** Resource for '/plant-tissue-analyses/cascade-delete/\{jobId\}' has methods for the following verbs: put, get */ ( path: "/plant-tissue-analyses/cascade-delete/{jobId}", - jobId: string + jobId: string, ): PlantTissueAnalysesCreateCascadeDeleteJob; /** Resource for '/parties/\{partyId\}/prescription-maps' has methods for the following verbs: get */ (path: "/parties/{partyId}/prescription-maps", partyId: string): PrescriptionMapsListByPartyId; @@ -2312,14 +2312,14 @@ export interface Routes { ( path: "/parties/{partyId}/prescription-maps/{prescriptionMapId}", partyId: string, - prescriptionMapId: string + prescriptionMapId: string, ): PrescriptionMapsGet; /** Resource for '/prescription-maps' has methods for the following verbs: get */ (path: "/prescription-maps"): PrescriptionMapsList; /** Resource for '/prescription-maps/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ ( path: "/prescription-maps/cascade-delete/{jobId}", - jobId: string + jobId: string, ): PrescriptionMapsGetCascadeDeleteJobDetails; /** Resource for '/parties/\{partyId\}/prescriptions' has methods for the following verbs: get */ (path: "/parties/{partyId}/prescriptions", partyId: string): PrescriptionsListByPartyId; @@ -2327,14 +2327,14 @@ export interface Routes { ( path: "/parties/{partyId}/prescriptions/{prescriptionId}", partyId: string, - prescriptionId: string + prescriptionId: string, ): PrescriptionsGet; /** Resource for '/prescriptions' has methods for the following verbs: get */ (path: "/prescriptions"): PrescriptionsList; /** Resource for '/prescriptions/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ ( path: "/prescriptions/cascade-delete/{jobId}", - jobId: string + jobId: string, ): PrescriptionsGetCascadeDeleteJobDetails; /** Resource for '/scenes' has methods for the following verbs: get */ (path: "/scenes"): ScenesList; @@ -2343,18 +2343,18 @@ export interface Routes { /** Resource for '/scenes/satellite/ingest-data/\{jobId\}' has methods for the following verbs: put, get */ ( path: "/scenes/satellite/ingest-data/{jobId}", - jobId: string + jobId: string, ): ScenesCreateSatelliteDataIngestionJob; /** Resource for '/scenes/stac-collections/\{collectionId\}:search' has methods for the following verbs: post */ ( path: "/scenes/stac-collections/{collectionId}:search", - collectionId: "Sentinel_2_L2A" | "Sentinel_2_L1C" + collectionId: "Sentinel_2_L2A" | "Sentinel_2_L1C", ): ScenesSearchFeatures; /** Resource for '/scenes/stac-collections/\{collectionId\}/features/\{featureId\}' has methods for the following verbs: get */ ( path: "/scenes/stac-collections/{collectionId}/features/{featureId}", collectionId: "Sentinel_2_L2A" | "Sentinel_2_L1C", - featureId: string + featureId: string, ): ScenesGetStacFeature; /** Resource for '/parties/\{partyId\}/seasonal-fields' has methods for the following verbs: get */ (path: "/parties/{partyId}/seasonal-fields", partyId: string): SeasonalFieldsListByPartyId; @@ -2362,14 +2362,14 @@ export interface Routes { ( path: "/parties/{partyId}/seasonal-fields/{seasonalFieldId}", partyId: string, - seasonalFieldId: string + seasonalFieldId: string, ): SeasonalFieldsGet; /** Resource for '/seasonal-fields' has methods for the following verbs: get */ (path: "/seasonal-fields"): SeasonalFieldsList; /** Resource for '/seasonal-fields/cascade-delete/\{jobId\}' has methods for the following verbs: get, put */ ( path: "/seasonal-fields/cascade-delete/{jobId}", - jobId: string + jobId: string, ): SeasonalFieldsGetCascadeDeleteJobDetails; /** Resource for '/seasons' has methods for the following verbs: get */ (path: "/seasons"): SeasonsList; @@ -2378,13 +2378,13 @@ export interface Routes { /** Resource for '/sensor-partners/\{sensorPartnerId\}/sensor-data-models' has methods for the following verbs: get */ ( path: "/sensor-partners/{sensorPartnerId}/sensor-data-models", - sensorPartnerId: string + sensorPartnerId: string, ): SensorDataModelsList; /** Resource for '/sensor-partners/\{sensorPartnerId\}/sensor-data-models/\{sensorDataModelId\}' has methods for the following verbs: patch, get, delete */ ( path: "/sensor-partners/{sensorPartnerId}/sensor-data-models/{sensorDataModelId}", sensorPartnerId: string, - sensorDataModelId: string + sensorDataModelId: string, ): SensorDataModelsCreateOrUpdate; /** Resource for '/sensor-events' has methods for the following verbs: get */ (path: "/sensor-events"): SensorEventsList; @@ -2393,30 +2393,30 @@ export interface Routes { /** Resource for '/sensor-mappings/\{sensorMappingId\}' has methods for the following verbs: patch, get, delete */ ( path: "/sensor-mappings/{sensorMappingId}", - sensorMappingId: string + sensorMappingId: string, ): SensorMappingsCreateOrUpdate; /** Resource for '/sensor-partners/\{sensorPartnerId\}/integrations' has methods for the following verbs: get */ ( path: "/sensor-partners/{sensorPartnerId}/integrations", - sensorPartnerId: string + sensorPartnerId: string, ): SensorPartnerIntegrationsList; /** Resource for '/sensor-partners/\{sensorPartnerId\}/integrations/\{integrationId\}' has methods for the following verbs: patch, get, delete */ ( path: "/sensor-partners/{sensorPartnerId}/integrations/{integrationId}", sensorPartnerId: string, - integrationId: string + integrationId: string, ): SensorPartnerIntegrationsCreateOrUpdate; /** Resource for '/sensor-partners/\{sensorPartnerId\}/integrations/\{integrationId\}/:check-consent' has methods for the following verbs: post */ ( path: "/sensor-partners/{sensorPartnerId}/integrations/{integrationId}/:check-consent", sensorPartnerId: string, - integrationId: string + integrationId: string, ): SensorPartnerIntegrationsCheckConsent; /** Resource for '/sensor-partners/\{sensorPartnerId\}/integrations/\{integrationId\}/:generate-consent-link' has methods for the following verbs: post */ ( path: "/sensor-partners/{sensorPartnerId}/integrations/{integrationId}/:generate-consent-link", sensorPartnerId: string, - integrationId: string + integrationId: string, ): SensorPartnerIntegrationsGenerateConsentLink; /** Resource for '/sensor-partners/\{sensorPartnerId\}/sensors' has methods for the following verbs: get */ (path: "/sensor-partners/{sensorPartnerId}/sensors", sensorPartnerId: string): SensorsList; @@ -2424,19 +2424,19 @@ export interface Routes { ( path: "/sensor-partners/{sensorPartnerId}/sensors/{sensorId}", sensorPartnerId: string, - sensorId: string + sensorId: string, ): SensorsCreateOrUpdate; /** Resource for '/sensor-partners/\{sensorPartnerId\}/sensors/\{sensorId\}/connection-strings' has methods for the following verbs: get */ ( path: "/sensor-partners/{sensorPartnerId}/sensors/{sensorId}/connection-strings", sensorPartnerId: string, - sensorId: string + sensorId: string, ): SensorsGetConnectionString; /** Resource for '/sensor-partners/\{sensorPartnerId\}/sensors/\{sensorId\}/connection-strings/:renew' has methods for the following verbs: post */ ( path: "/sensor-partners/{sensorPartnerId}/sensors/{sensorId}/connection-strings/:renew", sensorPartnerId: string, - sensorId: string + sensorId: string, ): SensorsRenewConnectionString; /** Resource for '/solutions/\{solutionId\}:cancel' has methods for the following verbs: post */ (path: "/solutions/{solutionId}:cancel", solutionId: string): SolutionInferenceCancel; @@ -2450,7 +2450,7 @@ export interface Routes { ( path: "/parties/{partyId}/tillage-data/{tillageDataId}", partyId: string, - tillageDataId: string + tillageDataId: string, ): TillageDataGet; /** Resource for '/tillage-data' has methods for the following verbs: get */ (path: "/tillage-data"): TillageDataList; diff --git a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts index 19bcd7adfe44..a101f3a9ac85 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts @@ -14,7 +14,7 @@ import { FarmBeatsClient } from "./clientDefinitions"; export default function createClient( $host: string, credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): FarmBeatsClient { const baseUrl = options.baseUrl ?? `${$host}`; options.apiVersion = options.apiVersion ?? "2022-11-01-preview"; diff --git a/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts b/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts index f58e7b3f51bb..aae518391724 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/isUnexpected.ts @@ -639,783 +639,783 @@ const responseMap: Record = { }; export function isUnexpected( - response: ApplicationDataList200Response | ApplicationDataListDefaultResponse + response: ApplicationDataList200Response | ApplicationDataListDefaultResponse, ): response is ApplicationDataListDefaultResponse; export function isUnexpected( response: | ApplicationDataCreateCascadeDeleteJob202Response - | ApplicationDataCreateCascadeDeleteJobDefaultResponse + | ApplicationDataCreateCascadeDeleteJobDefaultResponse, ): response is ApplicationDataCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( response: | ApplicationDataGetCascadeDeleteJobDetails200Response - | ApplicationDataGetCascadeDeleteJobDetailsDefaultResponse + | ApplicationDataGetCascadeDeleteJobDetailsDefaultResponse, ): response is ApplicationDataGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: ApplicationDataListByPartyId200Response | ApplicationDataListByPartyIdDefaultResponse + response: ApplicationDataListByPartyId200Response | ApplicationDataListByPartyIdDefaultResponse, ): response is ApplicationDataListByPartyIdDefaultResponse; export function isUnexpected( - response: ApplicationDataGet200Response | ApplicationDataGetDefaultResponse + response: ApplicationDataGet200Response | ApplicationDataGetDefaultResponse, ): response is ApplicationDataGetDefaultResponse; export function isUnexpected( response: | ApplicationDataCreateOrUpdate200Response | ApplicationDataCreateOrUpdate201Response - | ApplicationDataCreateOrUpdateDefaultResponse + | ApplicationDataCreateOrUpdateDefaultResponse, ): response is ApplicationDataCreateOrUpdateDefaultResponse; export function isUnexpected( - response: ApplicationDataDelete204Response | ApplicationDataDeleteDefaultResponse + response: ApplicationDataDelete204Response | ApplicationDataDeleteDefaultResponse, ): response is ApplicationDataDeleteDefaultResponse; export function isUnexpected( - response: AttachmentsListByPartyId200Response | AttachmentsListByPartyIdDefaultResponse + response: AttachmentsListByPartyId200Response | AttachmentsListByPartyIdDefaultResponse, ): response is AttachmentsListByPartyIdDefaultResponse; export function isUnexpected( - response: AttachmentsGet200Response | AttachmentsGetDefaultResponse + response: AttachmentsGet200Response | AttachmentsGetDefaultResponse, ): response is AttachmentsGetDefaultResponse; export function isUnexpected( response: | AttachmentsCreateOrUpdate200Response | AttachmentsCreateOrUpdate201Response - | AttachmentsCreateOrUpdateDefaultResponse + | AttachmentsCreateOrUpdateDefaultResponse, ): response is AttachmentsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: AttachmentsDelete204Response | AttachmentsDeleteDefaultResponse + response: AttachmentsDelete204Response | AttachmentsDeleteDefaultResponse, ): response is AttachmentsDeleteDefaultResponse; export function isUnexpected( - response: AttachmentsDownload200Response | AttachmentsDownloadDefaultResponse + response: AttachmentsDownload200Response | AttachmentsDownloadDefaultResponse, ): response is AttachmentsDownloadDefaultResponse; export function isUnexpected( - response: BoundariesList200Response | BoundariesListDefaultResponse + response: BoundariesList200Response | BoundariesListDefaultResponse, ): response is BoundariesListDefaultResponse; export function isUnexpected( - response: BoundariesSearch200Response | BoundariesSearchDefaultResponse + response: BoundariesSearch200Response | BoundariesSearchDefaultResponse, ): response is BoundariesSearchDefaultResponse; export function isUnexpected( response: | BoundariesCreateCascadeDeleteJob202Response - | BoundariesCreateCascadeDeleteJobDefaultResponse + | BoundariesCreateCascadeDeleteJobDefaultResponse, ): response is BoundariesCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( response: | BoundariesGetCascadeDeleteJobDetails200Response - | BoundariesGetCascadeDeleteJobDetailsDefaultResponse + | BoundariesGetCascadeDeleteJobDetailsDefaultResponse, ): response is BoundariesGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: BoundariesListByPartyId200Response | BoundariesListByPartyIdDefaultResponse + response: BoundariesListByPartyId200Response | BoundariesListByPartyIdDefaultResponse, ): response is BoundariesListByPartyIdDefaultResponse; export function isUnexpected( - response: BoundariesSearchByPartyId200Response | BoundariesSearchByPartyIdDefaultResponse + response: BoundariesSearchByPartyId200Response | BoundariesSearchByPartyIdDefaultResponse, ): response is BoundariesSearchByPartyIdDefaultResponse; export function isUnexpected( response: | BoundariesCreateOrUpdate200Response | BoundariesCreateOrUpdate201Response - | BoundariesCreateOrUpdateDefaultResponse + | BoundariesCreateOrUpdateDefaultResponse, ): response is BoundariesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: BoundariesGet200Response | BoundariesGetDefaultResponse + response: BoundariesGet200Response | BoundariesGetDefaultResponse, ): response is BoundariesGetDefaultResponse; export function isUnexpected( - response: BoundariesDelete204Response | BoundariesDeleteDefaultResponse + response: BoundariesDelete204Response | BoundariesDeleteDefaultResponse, ): response is BoundariesDeleteDefaultResponse; export function isUnexpected( - response: BoundariesGetOverlap200Response | BoundariesGetOverlapDefaultResponse + response: BoundariesGetOverlap200Response | BoundariesGetOverlapDefaultResponse, ): response is BoundariesGetOverlapDefaultResponse; export function isUnexpected( - response: CropProductsList200Response | CropProductsListDefaultResponse + response: CropProductsList200Response | CropProductsListDefaultResponse, ): response is CropProductsListDefaultResponse; export function isUnexpected( - response: CropProductsGet200Response | CropProductsGetDefaultResponse + response: CropProductsGet200Response | CropProductsGetDefaultResponse, ): response is CropProductsGetDefaultResponse; export function isUnexpected( response: | CropProductsCreateOrUpdate200Response | CropProductsCreateOrUpdate201Response - | CropProductsCreateOrUpdateDefaultResponse + | CropProductsCreateOrUpdateDefaultResponse, ): response is CropProductsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: CropProductsDelete204Response | CropProductsDeleteDefaultResponse + response: CropProductsDelete204Response | CropProductsDeleteDefaultResponse, ): response is CropProductsDeleteDefaultResponse; export function isUnexpected( - response: CropsList200Response | CropsListDefaultResponse + response: CropsList200Response | CropsListDefaultResponse, ): response is CropsListDefaultResponse; export function isUnexpected( - response: CropsGet200Response | CropsGetDefaultResponse + response: CropsGet200Response | CropsGetDefaultResponse, ): response is CropsGetDefaultResponse; export function isUnexpected( response: | CropsCreateOrUpdate200Response | CropsCreateOrUpdate201Response - | CropsCreateOrUpdateDefaultResponse + | CropsCreateOrUpdateDefaultResponse, ): response is CropsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: CropsDelete204Response | CropsDeleteDefaultResponse + response: CropsDelete204Response | CropsDeleteDefaultResponse, ): response is CropsDeleteDefaultResponse; export function isUnexpected( - response: DeviceDataModelsList200Response | DeviceDataModelsListDefaultResponse + response: DeviceDataModelsList200Response | DeviceDataModelsListDefaultResponse, ): response is DeviceDataModelsListDefaultResponse; export function isUnexpected( response: | DeviceDataModelsCreateOrUpdate200Response | DeviceDataModelsCreateOrUpdate201Response - | DeviceDataModelsCreateOrUpdateDefaultResponse + | DeviceDataModelsCreateOrUpdateDefaultResponse, ): response is DeviceDataModelsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: DeviceDataModelsGet200Response | DeviceDataModelsGetDefaultResponse + response: DeviceDataModelsGet200Response | DeviceDataModelsGetDefaultResponse, ): response is DeviceDataModelsGetDefaultResponse; export function isUnexpected( - response: DeviceDataModelsDelete204Response | DeviceDataModelsDeleteDefaultResponse + response: DeviceDataModelsDelete204Response | DeviceDataModelsDeleteDefaultResponse, ): response is DeviceDataModelsDeleteDefaultResponse; export function isUnexpected( - response: DevicesList200Response | DevicesListDefaultResponse + response: DevicesList200Response | DevicesListDefaultResponse, ): response is DevicesListDefaultResponse; export function isUnexpected( response: | DevicesCreateOrUpdate200Response | DevicesCreateOrUpdate201Response - | DevicesCreateOrUpdateDefaultResponse + | DevicesCreateOrUpdateDefaultResponse, ): response is DevicesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: DevicesGet200Response | DevicesGetDefaultResponse + response: DevicesGet200Response | DevicesGetDefaultResponse, ): response is DevicesGetDefaultResponse; export function isUnexpected( - response: DevicesDelete204Response | DevicesDeleteDefaultResponse + response: DevicesDelete204Response | DevicesDeleteDefaultResponse, ): response is DevicesDeleteDefaultResponse; export function isUnexpected( response: | FarmOperationsCreateDataIngestionJob202Response - | FarmOperationsCreateDataIngestionJobDefaultResponse + | FarmOperationsCreateDataIngestionJobDefaultResponse, ): response is FarmOperationsCreateDataIngestionJobDefaultResponse; export function isUnexpected( response: | FarmOperationsGetDataIngestionJobDetails200Response - | FarmOperationsGetDataIngestionJobDetailsDefaultResponse + | FarmOperationsGetDataIngestionJobDetailsDefaultResponse, ): response is FarmOperationsGetDataIngestionJobDetailsDefaultResponse; export function isUnexpected( - response: FarmsList200Response | FarmsListDefaultResponse + response: FarmsList200Response | FarmsListDefaultResponse, ): response is FarmsListDefaultResponse; export function isUnexpected( - response: FarmsCreateCascadeDeleteJob202Response | FarmsCreateCascadeDeleteJobDefaultResponse + response: FarmsCreateCascadeDeleteJob202Response | FarmsCreateCascadeDeleteJobDefaultResponse, ): response is FarmsCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( response: | FarmsGetCascadeDeleteJobDetails200Response - | FarmsGetCascadeDeleteJobDetailsDefaultResponse + | FarmsGetCascadeDeleteJobDetailsDefaultResponse, ): response is FarmsGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: FarmsListByPartyId200Response | FarmsListByPartyIdDefaultResponse + response: FarmsListByPartyId200Response | FarmsListByPartyIdDefaultResponse, ): response is FarmsListByPartyIdDefaultResponse; export function isUnexpected( - response: FarmsGet200Response | FarmsGetDefaultResponse + response: FarmsGet200Response | FarmsGetDefaultResponse, ): response is FarmsGetDefaultResponse; export function isUnexpected( response: | FarmsCreateOrUpdate200Response | FarmsCreateOrUpdate201Response - | FarmsCreateOrUpdateDefaultResponse + | FarmsCreateOrUpdateDefaultResponse, ): response is FarmsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: FarmsDelete204Response | FarmsDeleteDefaultResponse + response: FarmsDelete204Response | FarmsDeleteDefaultResponse, ): response is FarmsDeleteDefaultResponse; export function isUnexpected( - response: FieldsList200Response | FieldsListDefaultResponse + response: FieldsList200Response | FieldsListDefaultResponse, ): response is FieldsListDefaultResponse; export function isUnexpected( response: | FieldsGetCascadeDeleteJobDetails200Response - | FieldsGetCascadeDeleteJobDetailsDefaultResponse + | FieldsGetCascadeDeleteJobDetailsDefaultResponse, ): response is FieldsGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: FieldsCreateCascadeDeleteJob202Response | FieldsCreateCascadeDeleteJobDefaultResponse + response: FieldsCreateCascadeDeleteJob202Response | FieldsCreateCascadeDeleteJobDefaultResponse, ): response is FieldsCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( - response: FieldsListByPartyId200Response | FieldsListByPartyIdDefaultResponse + response: FieldsListByPartyId200Response | FieldsListByPartyIdDefaultResponse, ): response is FieldsListByPartyIdDefaultResponse; export function isUnexpected( - response: FieldsGet200Response | FieldsGetDefaultResponse + response: FieldsGet200Response | FieldsGetDefaultResponse, ): response is FieldsGetDefaultResponse; export function isUnexpected( response: | FieldsCreateOrUpdate200Response | FieldsCreateOrUpdate201Response - | FieldsCreateOrUpdateDefaultResponse + | FieldsCreateOrUpdateDefaultResponse, ): response is FieldsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: FieldsDelete204Response | FieldsDeleteDefaultResponse + response: FieldsDelete204Response | FieldsDeleteDefaultResponse, ): response is FieldsDeleteDefaultResponse; export function isUnexpected( - response: HarvestDataList200Response | HarvestDataListDefaultResponse + response: HarvestDataList200Response | HarvestDataListDefaultResponse, ): response is HarvestDataListDefaultResponse; export function isUnexpected( response: | HarvestDataCreateCascadeDeleteJob202Response - | HarvestDataCreateCascadeDeleteJobDefaultResponse + | HarvestDataCreateCascadeDeleteJobDefaultResponse, ): response is HarvestDataCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( response: | HarvestDataGetCascadeDeleteJobDetails200Response - | HarvestDataGetCascadeDeleteJobDetailsDefaultResponse + | HarvestDataGetCascadeDeleteJobDetailsDefaultResponse, ): response is HarvestDataGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: HarvestDataListByPartyId200Response | HarvestDataListByPartyIdDefaultResponse + response: HarvestDataListByPartyId200Response | HarvestDataListByPartyIdDefaultResponse, ): response is HarvestDataListByPartyIdDefaultResponse; export function isUnexpected( - response: HarvestDataGet200Response | HarvestDataGetDefaultResponse + response: HarvestDataGet200Response | HarvestDataGetDefaultResponse, ): response is HarvestDataGetDefaultResponse; export function isUnexpected( response: | HarvestDataCreateOrUpdate200Response | HarvestDataCreateOrUpdate201Response - | HarvestDataCreateOrUpdateDefaultResponse + | HarvestDataCreateOrUpdateDefaultResponse, ): response is HarvestDataCreateOrUpdateDefaultResponse; export function isUnexpected( - response: HarvestDataDelete204Response | HarvestDataDeleteDefaultResponse + response: HarvestDataDelete204Response | HarvestDataDeleteDefaultResponse, ): response is HarvestDataDeleteDefaultResponse; export function isUnexpected( response: | ImageProcessingCreateRasterizeJob202Response - | ImageProcessingCreateRasterizeJobDefaultResponse + | ImageProcessingCreateRasterizeJobDefaultResponse, ): response is ImageProcessingCreateRasterizeJobDefaultResponse; export function isUnexpected( response: | ImageProcessingGetRasterizeJob200Response - | ImageProcessingGetRasterizeJobDefaultResponse + | ImageProcessingGetRasterizeJobDefaultResponse, ): response is ImageProcessingGetRasterizeJobDefaultResponse; export function isUnexpected( response: | InsightAttachmentsListByPartyIdModelIdAndResource200Response - | InsightAttachmentsListByPartyIdModelIdAndResourceDefaultResponse + | InsightAttachmentsListByPartyIdModelIdAndResourceDefaultResponse, ): response is InsightAttachmentsListByPartyIdModelIdAndResourceDefaultResponse; export function isUnexpected( response: | InsightAttachmentsCreateOrUpdate200Response | InsightAttachmentsCreateOrUpdate201Response - | InsightAttachmentsCreateOrUpdateDefaultResponse + | InsightAttachmentsCreateOrUpdateDefaultResponse, ): response is InsightAttachmentsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: InsightAttachmentsGet200Response | InsightAttachmentsGetDefaultResponse + response: InsightAttachmentsGet200Response | InsightAttachmentsGetDefaultResponse, ): response is InsightAttachmentsGetDefaultResponse; export function isUnexpected( - response: InsightAttachmentsDelete204Response | InsightAttachmentsDeleteDefaultResponse + response: InsightAttachmentsDelete204Response | InsightAttachmentsDeleteDefaultResponse, ): response is InsightAttachmentsDeleteDefaultResponse; export function isUnexpected( - response: InsightAttachmentsDownload200Response | InsightAttachmentsDownloadDefaultResponse + response: InsightAttachmentsDownload200Response | InsightAttachmentsDownloadDefaultResponse, ): response is InsightAttachmentsDownloadDefaultResponse; export function isUnexpected( response: | InsightsCreateCascadeDeleteJob202Response - | InsightsCreateCascadeDeleteJobDefaultResponse + | InsightsCreateCascadeDeleteJobDefaultResponse, ): response is InsightsCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( response: | InsightsGetCascadeDeleteJobDetails200Response - | InsightsGetCascadeDeleteJobDetailsDefaultResponse + | InsightsGetCascadeDeleteJobDetailsDefaultResponse, ): response is InsightsGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( response: | InsightsListByPartyIdModelIdAndResource200Response - | InsightsListByPartyIdModelIdAndResourceDefaultResponse + | InsightsListByPartyIdModelIdAndResourceDefaultResponse, ): response is InsightsListByPartyIdModelIdAndResourceDefaultResponse; export function isUnexpected( response: | InsightsCreateOrUpdate200Response | InsightsCreateOrUpdate201Response - | InsightsCreateOrUpdateDefaultResponse + | InsightsCreateOrUpdateDefaultResponse, ): response is InsightsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: InsightsGet200Response | InsightsGetDefaultResponse + response: InsightsGet200Response | InsightsGetDefaultResponse, ): response is InsightsGetDefaultResponse; export function isUnexpected( - response: InsightsDelete204Response | InsightsDeleteDefaultResponse + response: InsightsDelete204Response | InsightsDeleteDefaultResponse, ): response is InsightsDeleteDefaultResponse; export function isUnexpected( - response: ManagementZonesList200Response | ManagementZonesListDefaultResponse + response: ManagementZonesList200Response | ManagementZonesListDefaultResponse, ): response is ManagementZonesListDefaultResponse; export function isUnexpected( response: | ManagementZonesGetCascadeDeleteJobDetails200Response - | ManagementZonesGetCascadeDeleteJobDetailsDefaultResponse + | ManagementZonesGetCascadeDeleteJobDetailsDefaultResponse, ): response is ManagementZonesGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( response: | ManagementZonesCreateCascadeDeleteJob202Response - | ManagementZonesCreateCascadeDeleteJobDefaultResponse + | ManagementZonesCreateCascadeDeleteJobDefaultResponse, ): response is ManagementZonesCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( - response: ManagementZonesListByPartyId200Response | ManagementZonesListByPartyIdDefaultResponse + response: ManagementZonesListByPartyId200Response | ManagementZonesListByPartyIdDefaultResponse, ): response is ManagementZonesListByPartyIdDefaultResponse; export function isUnexpected( - response: ManagementZonesGet200Response | ManagementZonesGetDefaultResponse + response: ManagementZonesGet200Response | ManagementZonesGetDefaultResponse, ): response is ManagementZonesGetDefaultResponse; export function isUnexpected( response: | ManagementZonesCreateOrUpdate200Response | ManagementZonesCreateOrUpdate201Response - | ManagementZonesCreateOrUpdateDefaultResponse + | ManagementZonesCreateOrUpdateDefaultResponse, ): response is ManagementZonesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: ManagementZonesDelete204Response | ManagementZonesDeleteDefaultResponse + response: ManagementZonesDelete204Response | ManagementZonesDeleteDefaultResponse, ): response is ManagementZonesDeleteDefaultResponse; export function isUnexpected( response: | ModelInferenceCreateBiomassModelJob202Response - | ModelInferenceCreateBiomassModelJobDefaultResponse + | ModelInferenceCreateBiomassModelJobDefaultResponse, ): response is ModelInferenceCreateBiomassModelJobDefaultResponse; export function isUnexpected( response: | ModelInferenceGetBiomassModelJob200Response - | ModelInferenceGetBiomassModelJobDefaultResponse + | ModelInferenceGetBiomassModelJobDefaultResponse, ): response is ModelInferenceGetBiomassModelJobDefaultResponse; export function isUnexpected( response: | ModelInferenceCreateSensorPlacementModelJob202Response - | ModelInferenceCreateSensorPlacementModelJobDefaultResponse + | ModelInferenceCreateSensorPlacementModelJobDefaultResponse, ): response is ModelInferenceCreateSensorPlacementModelJobDefaultResponse; export function isUnexpected( response: | ModelInferenceGetSensorPlacementModelJob200Response - | ModelInferenceGetSensorPlacementModelJobDefaultResponse + | ModelInferenceGetSensorPlacementModelJobDefaultResponse, ): response is ModelInferenceGetSensorPlacementModelJobDefaultResponse; export function isUnexpected( response: | ModelInferenceCreateSoilMoistureModelJob202Response - | ModelInferenceCreateSoilMoistureModelJobDefaultResponse + | ModelInferenceCreateSoilMoistureModelJobDefaultResponse, ): response is ModelInferenceCreateSoilMoistureModelJobDefaultResponse; export function isUnexpected( response: | ModelInferenceGetSoilMoistureModelJob200Response - | ModelInferenceGetSoilMoistureModelJobDefaultResponse + | ModelInferenceGetSoilMoistureModelJobDefaultResponse, ): response is ModelInferenceGetSoilMoistureModelJobDefaultResponse; export function isUnexpected( - response: NutrientAnalysesList200Response | NutrientAnalysesListDefaultResponse + response: NutrientAnalysesList200Response | NutrientAnalysesListDefaultResponse, ): response is NutrientAnalysesListDefaultResponse; export function isUnexpected( - response: NutrientAnalysesListByPartyId200Response | NutrientAnalysesListByPartyIdDefaultResponse + response: NutrientAnalysesListByPartyId200Response | NutrientAnalysesListByPartyIdDefaultResponse, ): response is NutrientAnalysesListByPartyIdDefaultResponse; export function isUnexpected( - response: NutrientAnalysesGet200Response | NutrientAnalysesGetDefaultResponse + response: NutrientAnalysesGet200Response | NutrientAnalysesGetDefaultResponse, ): response is NutrientAnalysesGetDefaultResponse; export function isUnexpected( response: | NutrientAnalysesCreateOrUpdate200Response | NutrientAnalysesCreateOrUpdate201Response - | NutrientAnalysesCreateOrUpdateDefaultResponse + | NutrientAnalysesCreateOrUpdateDefaultResponse, ): response is NutrientAnalysesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: NutrientAnalysesDelete204Response | NutrientAnalysesDeleteDefaultResponse + response: NutrientAnalysesDelete204Response | NutrientAnalysesDeleteDefaultResponse, ): response is NutrientAnalysesDeleteDefaultResponse; export function isUnexpected( - response: OAuthProvidersList200Response | OAuthProvidersListDefaultResponse + response: OAuthProvidersList200Response | OAuthProvidersListDefaultResponse, ): response is OAuthProvidersListDefaultResponse; export function isUnexpected( - response: OAuthProvidersGet200Response | OAuthProvidersGetDefaultResponse + response: OAuthProvidersGet200Response | OAuthProvidersGetDefaultResponse, ): response is OAuthProvidersGetDefaultResponse; export function isUnexpected( response: | OAuthProvidersCreateOrUpdate200Response | OAuthProvidersCreateOrUpdate201Response - | OAuthProvidersCreateOrUpdateDefaultResponse + | OAuthProvidersCreateOrUpdateDefaultResponse, ): response is OAuthProvidersCreateOrUpdateDefaultResponse; export function isUnexpected( - response: OAuthProvidersDelete204Response | OAuthProvidersDeleteDefaultResponse + response: OAuthProvidersDelete204Response | OAuthProvidersDeleteDefaultResponse, ): response is OAuthProvidersDeleteDefaultResponse; export function isUnexpected( response: | OAuthProvidersGetCascadeDeleteJobDetails200Response - | OAuthProvidersGetCascadeDeleteJobDetailsDefaultResponse + | OAuthProvidersGetCascadeDeleteJobDetailsDefaultResponse, ): response is OAuthProvidersGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( response: | OAuthProvidersCreateCascadeDeleteJob202Response - | OAuthProvidersCreateCascadeDeleteJobDefaultResponse + | OAuthProvidersCreateCascadeDeleteJobDefaultResponse, ): response is OAuthProvidersCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( - response: OAuthTokensList200Response | OAuthTokensListDefaultResponse + response: OAuthTokensList200Response | OAuthTokensListDefaultResponse, ): response is OAuthTokensListDefaultResponse; export function isUnexpected( response: | OAuthTokensGetOAuthConnectionLink200Response - | OAuthTokensGetOAuthConnectionLinkDefaultResponse + | OAuthTokensGetOAuthConnectionLinkDefaultResponse, ): response is OAuthTokensGetOAuthConnectionLinkDefaultResponse; export function isUnexpected( response: | OAuthTokensGetCascadeDeleteJobDetails200Response - | OAuthTokensGetCascadeDeleteJobDetailsDefaultResponse + | OAuthTokensGetCascadeDeleteJobDetailsDefaultResponse, ): response is OAuthTokensGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( response: | OAuthTokensCreateCascadeDeleteJob202Response - | OAuthTokensCreateCascadeDeleteJobDefaultResponse + | OAuthTokensCreateCascadeDeleteJobDefaultResponse, ): response is OAuthTokensCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( - response: PartiesList200Response | PartiesListDefaultResponse + response: PartiesList200Response | PartiesListDefaultResponse, ): response is PartiesListDefaultResponse; export function isUnexpected( - response: PartiesGet200Response | PartiesGetDefaultResponse + response: PartiesGet200Response | PartiesGetDefaultResponse, ): response is PartiesGetDefaultResponse; export function isUnexpected( response: | PartiesCreateOrUpdate200Response | PartiesCreateOrUpdate201Response - | PartiesCreateOrUpdateDefaultResponse + | PartiesCreateOrUpdateDefaultResponse, ): response is PartiesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: PartiesDelete204Response | PartiesDeleteDefaultResponse + response: PartiesDelete204Response | PartiesDeleteDefaultResponse, ): response is PartiesDeleteDefaultResponse; export function isUnexpected( response: | PartiesGetCascadeDeleteJobDetails200Response - | PartiesGetCascadeDeleteJobDetailsDefaultResponse + | PartiesGetCascadeDeleteJobDetailsDefaultResponse, ): response is PartiesGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: PartiesCreateCascadeDeleteJob202Response | PartiesCreateCascadeDeleteJobDefaultResponse + response: PartiesCreateCascadeDeleteJob202Response | PartiesCreateCascadeDeleteJobDefaultResponse, ): response is PartiesCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( - response: PlantingDataListByPartyId200Response | PlantingDataListByPartyIdDefaultResponse + response: PlantingDataListByPartyId200Response | PlantingDataListByPartyIdDefaultResponse, ): response is PlantingDataListByPartyIdDefaultResponse; export function isUnexpected( - response: PlantingDataGet200Response | PlantingDataGetDefaultResponse + response: PlantingDataGet200Response | PlantingDataGetDefaultResponse, ): response is PlantingDataGetDefaultResponse; export function isUnexpected( response: | PlantingDataCreateOrUpdate200Response | PlantingDataCreateOrUpdate201Response - | PlantingDataCreateOrUpdateDefaultResponse + | PlantingDataCreateOrUpdateDefaultResponse, ): response is PlantingDataCreateOrUpdateDefaultResponse; export function isUnexpected( - response: PlantingDataDelete204Response | PlantingDataDeleteDefaultResponse + response: PlantingDataDelete204Response | PlantingDataDeleteDefaultResponse, ): response is PlantingDataDeleteDefaultResponse; export function isUnexpected( - response: PlantingDataList200Response | PlantingDataListDefaultResponse + response: PlantingDataList200Response | PlantingDataListDefaultResponse, ): response is PlantingDataListDefaultResponse; export function isUnexpected( response: | PlantingDataCreateCascadeDeleteJob202Response - | PlantingDataCreateCascadeDeleteJobDefaultResponse + | PlantingDataCreateCascadeDeleteJobDefaultResponse, ): response is PlantingDataCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( response: | PlantingDataGetCascadeDeleteJobDetails200Response - | PlantingDataGetCascadeDeleteJobDetailsDefaultResponse + | PlantingDataGetCascadeDeleteJobDetailsDefaultResponse, ): response is PlantingDataGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( response: | PlantTissueAnalysesListByPartyId200Response - | PlantTissueAnalysesListByPartyIdDefaultResponse + | PlantTissueAnalysesListByPartyIdDefaultResponse, ): response is PlantTissueAnalysesListByPartyIdDefaultResponse; export function isUnexpected( - response: PlantTissueAnalysesGet200Response | PlantTissueAnalysesGetDefaultResponse + response: PlantTissueAnalysesGet200Response | PlantTissueAnalysesGetDefaultResponse, ): response is PlantTissueAnalysesGetDefaultResponse; export function isUnexpected( response: | PlantTissueAnalysesCreateOrUpdate200Response | PlantTissueAnalysesCreateOrUpdate201Response - | PlantTissueAnalysesCreateOrUpdateDefaultResponse + | PlantTissueAnalysesCreateOrUpdateDefaultResponse, ): response is PlantTissueAnalysesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: PlantTissueAnalysesDelete204Response | PlantTissueAnalysesDeleteDefaultResponse + response: PlantTissueAnalysesDelete204Response | PlantTissueAnalysesDeleteDefaultResponse, ): response is PlantTissueAnalysesDeleteDefaultResponse; export function isUnexpected( - response: PlantTissueAnalysesList200Response | PlantTissueAnalysesListDefaultResponse + response: PlantTissueAnalysesList200Response | PlantTissueAnalysesListDefaultResponse, ): response is PlantTissueAnalysesListDefaultResponse; export function isUnexpected( response: | PlantTissueAnalysesCreateCascadeDeleteJob202Response - | PlantTissueAnalysesCreateCascadeDeleteJobDefaultResponse + | PlantTissueAnalysesCreateCascadeDeleteJobDefaultResponse, ): response is PlantTissueAnalysesCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( response: | PlantTissueAnalysesGetCascadeDeleteJobDetails200Response - | PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultResponse + | PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultResponse, ): response is PlantTissueAnalysesGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: PrescriptionMapsListByPartyId200Response | PrescriptionMapsListByPartyIdDefaultResponse + response: PrescriptionMapsListByPartyId200Response | PrescriptionMapsListByPartyIdDefaultResponse, ): response is PrescriptionMapsListByPartyIdDefaultResponse; export function isUnexpected( - response: PrescriptionMapsGet200Response | PrescriptionMapsGetDefaultResponse + response: PrescriptionMapsGet200Response | PrescriptionMapsGetDefaultResponse, ): response is PrescriptionMapsGetDefaultResponse; export function isUnexpected( response: | PrescriptionMapsCreateOrUpdate200Response | PrescriptionMapsCreateOrUpdate201Response - | PrescriptionMapsCreateOrUpdateDefaultResponse + | PrescriptionMapsCreateOrUpdateDefaultResponse, ): response is PrescriptionMapsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: PrescriptionMapsDelete204Response | PrescriptionMapsDeleteDefaultResponse + response: PrescriptionMapsDelete204Response | PrescriptionMapsDeleteDefaultResponse, ): response is PrescriptionMapsDeleteDefaultResponse; export function isUnexpected( - response: PrescriptionMapsList200Response | PrescriptionMapsListDefaultResponse + response: PrescriptionMapsList200Response | PrescriptionMapsListDefaultResponse, ): response is PrescriptionMapsListDefaultResponse; export function isUnexpected( response: | PrescriptionMapsGetCascadeDeleteJobDetails200Response - | PrescriptionMapsGetCascadeDeleteJobDetailsDefaultResponse + | PrescriptionMapsGetCascadeDeleteJobDetailsDefaultResponse, ): response is PrescriptionMapsGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( response: | PrescriptionMapsCreateCascadeDeleteJob202Response - | PrescriptionMapsCreateCascadeDeleteJobDefaultResponse + | PrescriptionMapsCreateCascadeDeleteJobDefaultResponse, ): response is PrescriptionMapsCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( - response: PrescriptionsListByPartyId200Response | PrescriptionsListByPartyIdDefaultResponse + response: PrescriptionsListByPartyId200Response | PrescriptionsListByPartyIdDefaultResponse, ): response is PrescriptionsListByPartyIdDefaultResponse; export function isUnexpected( - response: PrescriptionsGet200Response | PrescriptionsGetDefaultResponse + response: PrescriptionsGet200Response | PrescriptionsGetDefaultResponse, ): response is PrescriptionsGetDefaultResponse; export function isUnexpected( response: | PrescriptionsCreateOrUpdate200Response | PrescriptionsCreateOrUpdate201Response - | PrescriptionsCreateOrUpdateDefaultResponse + | PrescriptionsCreateOrUpdateDefaultResponse, ): response is PrescriptionsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: PrescriptionsDelete204Response | PrescriptionsDeleteDefaultResponse + response: PrescriptionsDelete204Response | PrescriptionsDeleteDefaultResponse, ): response is PrescriptionsDeleteDefaultResponse; export function isUnexpected( - response: PrescriptionsList200Response | PrescriptionsListDefaultResponse + response: PrescriptionsList200Response | PrescriptionsListDefaultResponse, ): response is PrescriptionsListDefaultResponse; export function isUnexpected( response: | PrescriptionsGetCascadeDeleteJobDetails200Response - | PrescriptionsGetCascadeDeleteJobDetailsDefaultResponse + | PrescriptionsGetCascadeDeleteJobDetailsDefaultResponse, ): response is PrescriptionsGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( response: | PrescriptionsCreateCascadeDeleteJob202Response - | PrescriptionsCreateCascadeDeleteJobDefaultResponse + | PrescriptionsCreateCascadeDeleteJobDefaultResponse, ): response is PrescriptionsCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( - response: ScenesList200Response | ScenesListDefaultResponse + response: ScenesList200Response | ScenesListDefaultResponse, ): response is ScenesListDefaultResponse; export function isUnexpected( - response: ScenesDownload200Response | ScenesDownloadDefaultResponse + response: ScenesDownload200Response | ScenesDownloadDefaultResponse, ): response is ScenesDownloadDefaultResponse; export function isUnexpected( response: | ScenesCreateSatelliteDataIngestionJob202Response - | ScenesCreateSatelliteDataIngestionJobDefaultResponse + | ScenesCreateSatelliteDataIngestionJobDefaultResponse, ): response is ScenesCreateSatelliteDataIngestionJobDefaultResponse; export function isUnexpected( response: | ScenesGetSatelliteDataIngestionJobDetails200Response - | ScenesGetSatelliteDataIngestionJobDetailsDefaultResponse + | ScenesGetSatelliteDataIngestionJobDetailsDefaultResponse, ): response is ScenesGetSatelliteDataIngestionJobDetailsDefaultResponse; export function isUnexpected( - response: ScenesSearchFeatures200Response | ScenesSearchFeaturesDefaultResponse + response: ScenesSearchFeatures200Response | ScenesSearchFeaturesDefaultResponse, ): response is ScenesSearchFeaturesDefaultResponse; export function isUnexpected( - response: ScenesGetStacFeature200Response | ScenesGetStacFeatureDefaultResponse + response: ScenesGetStacFeature200Response | ScenesGetStacFeatureDefaultResponse, ): response is ScenesGetStacFeatureDefaultResponse; export function isUnexpected( - response: SeasonalFieldsListByPartyId200Response | SeasonalFieldsListByPartyIdDefaultResponse + response: SeasonalFieldsListByPartyId200Response | SeasonalFieldsListByPartyIdDefaultResponse, ): response is SeasonalFieldsListByPartyIdDefaultResponse; export function isUnexpected( - response: SeasonalFieldsGet200Response | SeasonalFieldsGetDefaultResponse + response: SeasonalFieldsGet200Response | SeasonalFieldsGetDefaultResponse, ): response is SeasonalFieldsGetDefaultResponse; export function isUnexpected( response: | SeasonalFieldsCreateOrUpdate200Response | SeasonalFieldsCreateOrUpdate201Response - | SeasonalFieldsCreateOrUpdateDefaultResponse + | SeasonalFieldsCreateOrUpdateDefaultResponse, ): response is SeasonalFieldsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: SeasonalFieldsDelete204Response | SeasonalFieldsDeleteDefaultResponse + response: SeasonalFieldsDelete204Response | SeasonalFieldsDeleteDefaultResponse, ): response is SeasonalFieldsDeleteDefaultResponse; export function isUnexpected( - response: SeasonalFieldsList200Response | SeasonalFieldsListDefaultResponse + response: SeasonalFieldsList200Response | SeasonalFieldsListDefaultResponse, ): response is SeasonalFieldsListDefaultResponse; export function isUnexpected( response: | SeasonalFieldsGetCascadeDeleteJobDetails200Response - | SeasonalFieldsGetCascadeDeleteJobDetailsDefaultResponse + | SeasonalFieldsGetCascadeDeleteJobDetailsDefaultResponse, ): response is SeasonalFieldsGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( response: | SeasonalFieldsCreateCascadeDeleteJob202Response - | SeasonalFieldsCreateCascadeDeleteJobDefaultResponse + | SeasonalFieldsCreateCascadeDeleteJobDefaultResponse, ): response is SeasonalFieldsCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( - response: SeasonsList200Response | SeasonsListDefaultResponse + response: SeasonsList200Response | SeasonsListDefaultResponse, ): response is SeasonsListDefaultResponse; export function isUnexpected( - response: SeasonsGet200Response | SeasonsGetDefaultResponse + response: SeasonsGet200Response | SeasonsGetDefaultResponse, ): response is SeasonsGetDefaultResponse; export function isUnexpected( response: | SeasonsCreateOrUpdate200Response | SeasonsCreateOrUpdate201Response - | SeasonsCreateOrUpdateDefaultResponse + | SeasonsCreateOrUpdateDefaultResponse, ): response is SeasonsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: SeasonsDelete204Response | SeasonsDeleteDefaultResponse + response: SeasonsDelete204Response | SeasonsDeleteDefaultResponse, ): response is SeasonsDeleteDefaultResponse; export function isUnexpected( - response: SensorDataModelsList200Response | SensorDataModelsListDefaultResponse + response: SensorDataModelsList200Response | SensorDataModelsListDefaultResponse, ): response is SensorDataModelsListDefaultResponse; export function isUnexpected( response: | SensorDataModelsCreateOrUpdate200Response | SensorDataModelsCreateOrUpdate201Response - | SensorDataModelsCreateOrUpdateDefaultResponse + | SensorDataModelsCreateOrUpdateDefaultResponse, ): response is SensorDataModelsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: SensorDataModelsGet200Response | SensorDataModelsGetDefaultResponse + response: SensorDataModelsGet200Response | SensorDataModelsGetDefaultResponse, ): response is SensorDataModelsGetDefaultResponse; export function isUnexpected( - response: SensorDataModelsDelete204Response | SensorDataModelsDeleteDefaultResponse + response: SensorDataModelsDelete204Response | SensorDataModelsDeleteDefaultResponse, ): response is SensorDataModelsDeleteDefaultResponse; export function isUnexpected( - response: SensorEventsList200Response | SensorEventsListDefaultResponse + response: SensorEventsList200Response | SensorEventsListDefaultResponse, ): response is SensorEventsListDefaultResponse; export function isUnexpected( - response: SensorMappingsList200Response | SensorMappingsListDefaultResponse + response: SensorMappingsList200Response | SensorMappingsListDefaultResponse, ): response is SensorMappingsListDefaultResponse; export function isUnexpected( response: | SensorMappingsCreateOrUpdate200Response | SensorMappingsCreateOrUpdate201Response - | SensorMappingsCreateOrUpdateDefaultResponse + | SensorMappingsCreateOrUpdateDefaultResponse, ): response is SensorMappingsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: SensorMappingsGet200Response | SensorMappingsGetDefaultResponse + response: SensorMappingsGet200Response | SensorMappingsGetDefaultResponse, ): response is SensorMappingsGetDefaultResponse; export function isUnexpected( - response: SensorMappingsDelete204Response | SensorMappingsDeleteDefaultResponse + response: SensorMappingsDelete204Response | SensorMappingsDeleteDefaultResponse, ): response is SensorMappingsDeleteDefaultResponse; export function isUnexpected( - response: SensorPartnerIntegrationsList200Response | SensorPartnerIntegrationsListDefaultResponse + response: SensorPartnerIntegrationsList200Response | SensorPartnerIntegrationsListDefaultResponse, ): response is SensorPartnerIntegrationsListDefaultResponse; export function isUnexpected( response: | SensorPartnerIntegrationsCreateOrUpdate200Response | SensorPartnerIntegrationsCreateOrUpdate201Response - | SensorPartnerIntegrationsCreateOrUpdateDefaultResponse + | SensorPartnerIntegrationsCreateOrUpdateDefaultResponse, ): response is SensorPartnerIntegrationsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: SensorPartnerIntegrationsGet200Response | SensorPartnerIntegrationsGetDefaultResponse + response: SensorPartnerIntegrationsGet200Response | SensorPartnerIntegrationsGetDefaultResponse, ): response is SensorPartnerIntegrationsGetDefaultResponse; export function isUnexpected( response: | SensorPartnerIntegrationsDelete204Response - | SensorPartnerIntegrationsDeleteDefaultResponse + | SensorPartnerIntegrationsDeleteDefaultResponse, ): response is SensorPartnerIntegrationsDeleteDefaultResponse; export function isUnexpected( response: | SensorPartnerIntegrationsCheckConsent200Response - | SensorPartnerIntegrationsCheckConsentDefaultResponse + | SensorPartnerIntegrationsCheckConsentDefaultResponse, ): response is SensorPartnerIntegrationsCheckConsentDefaultResponse; export function isUnexpected( response: | SensorPartnerIntegrationsGenerateConsentLink200Response - | SensorPartnerIntegrationsGenerateConsentLinkDefaultResponse + | SensorPartnerIntegrationsGenerateConsentLinkDefaultResponse, ): response is SensorPartnerIntegrationsGenerateConsentLinkDefaultResponse; export function isUnexpected( - response: SensorsList200Response | SensorsListDefaultResponse + response: SensorsList200Response | SensorsListDefaultResponse, ): response is SensorsListDefaultResponse; export function isUnexpected( response: | SensorsCreateOrUpdate200Response | SensorsCreateOrUpdate201Response - | SensorsCreateOrUpdateDefaultResponse + | SensorsCreateOrUpdateDefaultResponse, ): response is SensorsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: SensorsGet200Response | SensorsGetDefaultResponse + response: SensorsGet200Response | SensorsGetDefaultResponse, ): response is SensorsGetDefaultResponse; export function isUnexpected( - response: SensorsDelete204Response | SensorsDeleteDefaultResponse + response: SensorsDelete204Response | SensorsDeleteDefaultResponse, ): response is SensorsDeleteDefaultResponse; export function isUnexpected( - response: SensorsGetConnectionString200Response | SensorsGetConnectionStringDefaultResponse + response: SensorsGetConnectionString200Response | SensorsGetConnectionStringDefaultResponse, ): response is SensorsGetConnectionStringDefaultResponse; export function isUnexpected( - response: SensorsRenewConnectionString200Response | SensorsRenewConnectionStringDefaultResponse + response: SensorsRenewConnectionString200Response | SensorsRenewConnectionStringDefaultResponse, ): response is SensorsRenewConnectionStringDefaultResponse; export function isUnexpected( - response: SolutionInferenceCancel200Response | SolutionInferenceCancelDefaultResponse + response: SolutionInferenceCancel200Response | SolutionInferenceCancelDefaultResponse, ): response is SolutionInferenceCancelDefaultResponse; export function isUnexpected( response: | SolutionInferenceCreateOrUpdate202Response - | SolutionInferenceCreateOrUpdateDefaultResponse + | SolutionInferenceCreateOrUpdateDefaultResponse, ): response is SolutionInferenceCreateOrUpdateDefaultResponse; export function isUnexpected( - response: SolutionInferenceFetch200Response | SolutionInferenceFetchDefaultResponse + response: SolutionInferenceFetch200Response | SolutionInferenceFetchDefaultResponse, ): response is SolutionInferenceFetchDefaultResponse; export function isUnexpected( - response: TillageDataListByPartyId200Response | TillageDataListByPartyIdDefaultResponse + response: TillageDataListByPartyId200Response | TillageDataListByPartyIdDefaultResponse, ): response is TillageDataListByPartyIdDefaultResponse; export function isUnexpected( - response: TillageDataGet200Response | TillageDataGetDefaultResponse + response: TillageDataGet200Response | TillageDataGetDefaultResponse, ): response is TillageDataGetDefaultResponse; export function isUnexpected( response: | TillageDataCreateOrUpdate200Response | TillageDataCreateOrUpdate201Response - | TillageDataCreateOrUpdateDefaultResponse + | TillageDataCreateOrUpdateDefaultResponse, ): response is TillageDataCreateOrUpdateDefaultResponse; export function isUnexpected( - response: TillageDataDelete204Response | TillageDataDeleteDefaultResponse + response: TillageDataDelete204Response | TillageDataDeleteDefaultResponse, ): response is TillageDataDeleteDefaultResponse; export function isUnexpected( - response: TillageDataList200Response | TillageDataListDefaultResponse + response: TillageDataList200Response | TillageDataListDefaultResponse, ): response is TillageDataListDefaultResponse; export function isUnexpected( response: | TillageDataCreateCascadeDeleteJob202Response - | TillageDataCreateCascadeDeleteJobDefaultResponse + | TillageDataCreateCascadeDeleteJobDefaultResponse, ): response is TillageDataCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( response: | TillageDataGetCascadeDeleteJobDetails200Response - | TillageDataGetCascadeDeleteJobDetailsDefaultResponse + | TillageDataGetCascadeDeleteJobDetailsDefaultResponse, ): response is TillageDataGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: WeatherList200Response | WeatherListDefaultResponse + response: WeatherList200Response | WeatherListDefaultResponse, ): response is WeatherListDefaultResponse; export function isUnexpected( response: | WeatherGetDataDeleteJobDetails200Response - | WeatherGetDataDeleteJobDetailsDefaultResponse + | WeatherGetDataDeleteJobDetailsDefaultResponse, ): response is WeatherGetDataDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: WeatherCreateDataDeleteJob202Response | WeatherCreateDataDeleteJobDefaultResponse + response: WeatherCreateDataDeleteJob202Response | WeatherCreateDataDeleteJobDefaultResponse, ): response is WeatherCreateDataDeleteJobDefaultResponse; export function isUnexpected( response: | WeatherGetDataIngestionJobDetails200Response - | WeatherGetDataIngestionJobDetailsDefaultResponse + | WeatherGetDataIngestionJobDetailsDefaultResponse, ): response is WeatherGetDataIngestionJobDetailsDefaultResponse; export function isUnexpected( - response: WeatherCreateDataIngestionJob202Response | WeatherCreateDataIngestionJobDefaultResponse + response: WeatherCreateDataIngestionJob202Response | WeatherCreateDataIngestionJobDefaultResponse, ): response is WeatherCreateDataIngestionJobDefaultResponse; export function isUnexpected( - response: WeatherDataGet200Response | WeatherDataGetDefaultResponse + response: WeatherDataGet200Response | WeatherDataGetDefaultResponse, ): response is WeatherDataGetDefaultResponse; export function isUnexpected( - response: ZonesListByPartyId200Response | ZonesListByPartyIdDefaultResponse + response: ZonesListByPartyId200Response | ZonesListByPartyIdDefaultResponse, ): response is ZonesListByPartyIdDefaultResponse; export function isUnexpected( - response: ZonesGet200Response | ZonesGetDefaultResponse + response: ZonesGet200Response | ZonesGetDefaultResponse, ): response is ZonesGetDefaultResponse; export function isUnexpected( response: | ZonesCreateOrUpdate200Response | ZonesCreateOrUpdate201Response - | ZonesCreateOrUpdateDefaultResponse + | ZonesCreateOrUpdateDefaultResponse, ): response is ZonesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: ZonesDelete204Response | ZonesDeleteDefaultResponse + response: ZonesDelete204Response | ZonesDeleteDefaultResponse, ): response is ZonesDeleteDefaultResponse; export function isUnexpected( - response: ZonesList200Response | ZonesListDefaultResponse + response: ZonesList200Response | ZonesListDefaultResponse, ): response is ZonesListDefaultResponse; export function isUnexpected( response: | ZonesGetCascadeDeleteJobDetails200Response - | ZonesGetCascadeDeleteJobDetailsDefaultResponse + | ZonesGetCascadeDeleteJobDetailsDefaultResponse, ): response is ZonesGetCascadeDeleteJobDetailsDefaultResponse; export function isUnexpected( - response: ZonesCreateCascadeDeleteJob202Response | ZonesCreateCascadeDeleteJobDefaultResponse + response: ZonesCreateCascadeDeleteJob202Response | ZonesCreateCascadeDeleteJobDefaultResponse, ): response is ZonesCreateCascadeDeleteJobDefaultResponse; export function isUnexpected( response: @@ -1840,7 +1840,7 @@ export function isUnexpected( | ZonesGetCascadeDeleteJobDetails200Response | ZonesGetCascadeDeleteJobDetailsDefaultResponse | ZonesCreateCascadeDeleteJob202Response - | ZonesCreateCascadeDeleteJobDefaultResponse + | ZonesCreateCascadeDeleteJobDefaultResponse, ): response is | ApplicationDataListDefaultResponse | ApplicationDataCreateCascadeDeleteJobDefaultResponse @@ -2080,7 +2080,7 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // {guid} ==> $ // {guid}:export ==> :export$ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "" + pathParts[j] || "", ); if (!isMatched) { diff --git a/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts b/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts index 477bace4a37f..f0d91c952cda 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts b/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts index 4bfd02f11910..40004b75ca92 100644 --- a/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts +++ b/sdk/agrifood/agrifood-farming-rest/src/pollingHelper.ts @@ -20,7 +20,7 @@ import { export async function getLongRunningPoller( client: Client, initialResponse: TResult, - options: CreateHttpPollerOptions> = {} + options: CreateHttpPollerOptions> = {}, ): Promise, TResult>> { const poller: LongRunningOperation = { requestMethod: initialResponse.request.method, diff --git a/sdk/anomalydetector/ai-anomaly-detector-rest/package.json b/sdk/anomalydetector/ai-anomaly-detector-rest/package.json index 4c63ca045e25..ad16f46785e5 100644 --- a/sdk/anomalydetector/ai-anomaly-detector-rest/package.json +++ b/sdk/anomalydetector/ai-anomaly-detector-rest/package.json @@ -38,11 +38,11 @@ "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -76,7 +76,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^1.0.4", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/anomalydetector/ai-anomaly-detector-rest/src/anomalyDetectorRest.ts b/sdk/anomalydetector/ai-anomaly-detector-rest/src/anomalyDetectorRest.ts index 14acd1631107..61f346d45d3d 100644 --- a/sdk/anomalydetector/ai-anomaly-detector-rest/src/anomalyDetectorRest.ts +++ b/sdk/anomalydetector/ai-anomaly-detector-rest/src/anomalyDetectorRest.ts @@ -17,7 +17,7 @@ export interface AnomalyDetectorRestClientOptions extends ClientOptions { export default function createClient( Endpoint: string, credentials: KeyCredential, - options: AnomalyDetectorRestClientOptions = {} + options: AnomalyDetectorRestClientOptions = {}, ): AnomalyDetectorRestClient { const ApiVersion = options.ApiVersion ?? "v1.1"; const baseUrl = options.baseUrl ?? `${Endpoint}/anomalydetector/${ApiVersion}`; diff --git a/sdk/anomalydetector/ai-anomaly-detector-rest/src/clientDefinitions.ts b/sdk/anomalydetector/ai-anomaly-detector-rest/src/clientDefinitions.ts index e20bc51133f4..53290efbdc5b 100644 --- a/sdk/anomalydetector/ai-anomaly-detector-rest/src/clientDefinitions.ts +++ b/sdk/anomalydetector/ai-anomaly-detector-rest/src/clientDefinitions.ts @@ -45,7 +45,7 @@ export interface DetectUnivariateEntireSeries { * user an overall status of the time series. */ post( - options: DetectUnivariateEntireSeriesParameters + options: DetectUnivariateEntireSeriesParameters, ): StreamableMethod< DetectUnivariateEntireSeries200Response | DetectUnivariateEntireSeriesDefaultResponse >; @@ -57,7 +57,7 @@ export interface DetectUnivariateLastPoint { * and based on all data to determine whether the last point is anomalous. */ post( - options: DetectUnivariateLastPointParameters + options: DetectUnivariateLastPointParameters, ): StreamableMethod< DetectUnivariateLastPoint200Response | DetectUnivariateLastPointDefaultResponse >; @@ -66,7 +66,7 @@ export interface DetectUnivariateLastPoint { export interface DetectUnivariateChangePoint { /** Evaluate change point score of every series point */ post( - options: DetectUnivariateChangePointParameters + options: DetectUnivariateChangePointParameters, ): StreamableMethod< DetectUnivariateChangePoint200Response | DetectUnivariateChangePointDefaultResponse >; @@ -78,7 +78,7 @@ export interface GetMultivariateBatchDetectionResult { * resultId returned by the BatchDetectAnomaly api. */ get( - options?: GetMultivariateBatchDetectionResultParameters + options?: GetMultivariateBatchDetectionResultParameters, ): StreamableMethod< | GetMultivariateBatchDetectionResult200Response | GetMultivariateBatchDetectionResultDefaultResponse @@ -96,25 +96,25 @@ export interface TrainMultivariateModel { * timestamp column. */ post( - options: TrainMultivariateModelParameters + options: TrainMultivariateModelParameters, ): StreamableMethod; /** List models of a resource. */ get( - options?: ListMultivariateModelsParameters + options?: ListMultivariateModelsParameters, ): StreamableMethod; } export interface DeleteMultivariateModel { /** Delete an existing multivariate model according to the modelId */ delete( - options?: DeleteMultivariateModelParameters + options?: DeleteMultivariateModelParameters, ): StreamableMethod; /** * Get detailed information of multivariate model, including the training status * and variables used in the model. */ get( - options?: GetMultivariateModelParameters + options?: GetMultivariateModelParameters, ): StreamableMethod; } @@ -128,7 +128,7 @@ export interface DetectMultivariateBatchAnomaly { * storage folder, or pointed to a CSV file in Azure blob storage. */ post( - options: DetectMultivariateBatchAnomalyParameters + options: DetectMultivariateBatchAnomalyParameters, ): StreamableMethod< DetectMultivariateBatchAnomaly202Response | DetectMultivariateBatchAnomalyDefaultResponse >; @@ -142,7 +142,7 @@ export interface DetectMultivariateLastAnomaly { * immediately in the response body. */ post( - options: DetectMultivariateLastAnomalyParameters + options: DetectMultivariateLastAnomalyParameters, ): StreamableMethod< DetectMultivariateLastAnomaly200Response | DetectMultivariateLastAnomalyDefaultResponse >; @@ -158,7 +158,7 @@ export interface Routes { /** Resource for '/multivariate/detect-batch/\{resultId\}' has methods for the following verbs: get */ ( path: "/multivariate/detect-batch/{resultId}", - resultId: string + resultId: string, ): GetMultivariateBatchDetectionResult; /** Resource for '/multivariate/models' has methods for the following verbs: post, get */ (path: "/multivariate/models"): TrainMultivariateModel; @@ -167,12 +167,12 @@ export interface Routes { /** Resource for '/multivariate/models/\{modelId\}:detect-batch' has methods for the following verbs: post */ ( path: "/multivariate/models/{modelId}:detect-batch", - modelId: string + modelId: string, ): DetectMultivariateBatchAnomaly; /** Resource for '/multivariate/models/\{modelId\}:detect-last' has methods for the following verbs: post */ ( path: "/multivariate/models/{modelId}:detect-last", - modelId: string + modelId: string, ): DetectMultivariateLastAnomaly; } diff --git a/sdk/anomalydetector/ai-anomaly-detector-rest/src/isUnexpected.ts b/sdk/anomalydetector/ai-anomaly-detector-rest/src/isUnexpected.ts index cd16b86b3e22..36dca5d97712 100644 --- a/sdk/anomalydetector/ai-anomaly-detector-rest/src/isUnexpected.ts +++ b/sdk/anomalydetector/ai-anomaly-detector-rest/src/isUnexpected.ts @@ -38,38 +38,38 @@ const responseMap: Record = { }; export function isUnexpected( - response: DetectUnivariateEntireSeries200Response | DetectUnivariateEntireSeriesDefaultResponse + response: DetectUnivariateEntireSeries200Response | DetectUnivariateEntireSeriesDefaultResponse, ): response is DetectUnivariateEntireSeriesDefaultResponse; export function isUnexpected( - response: DetectUnivariateLastPoint200Response | DetectUnivariateLastPointDefaultResponse + response: DetectUnivariateLastPoint200Response | DetectUnivariateLastPointDefaultResponse, ): response is DetectUnivariateLastPointDefaultResponse; export function isUnexpected( - response: DetectUnivariateChangePoint200Response | DetectUnivariateChangePointDefaultResponse + response: DetectUnivariateChangePoint200Response | DetectUnivariateChangePointDefaultResponse, ): response is DetectUnivariateChangePointDefaultResponse; export function isUnexpected( response: | GetMultivariateBatchDetectionResult200Response - | GetMultivariateBatchDetectionResultDefaultResponse + | GetMultivariateBatchDetectionResultDefaultResponse, ): response is GetMultivariateBatchDetectionResultDefaultResponse; export function isUnexpected( - response: TrainMultivariateModel201Response | TrainMultivariateModelDefaultResponse + response: TrainMultivariateModel201Response | TrainMultivariateModelDefaultResponse, ): response is TrainMultivariateModelDefaultResponse; export function isUnexpected( - response: ListMultivariateModels200Response | ListMultivariateModelsDefaultResponse + response: ListMultivariateModels200Response | ListMultivariateModelsDefaultResponse, ): response is ListMultivariateModelsDefaultResponse; export function isUnexpected( - response: DeleteMultivariateModel204Response | DeleteMultivariateModelDefaultResponse + response: DeleteMultivariateModel204Response | DeleteMultivariateModelDefaultResponse, ): response is DeleteMultivariateModelDefaultResponse; export function isUnexpected( - response: GetMultivariateModel200Response | GetMultivariateModelDefaultResponse + response: GetMultivariateModel200Response | GetMultivariateModelDefaultResponse, ): response is GetMultivariateModelDefaultResponse; export function isUnexpected( response: | DetectMultivariateBatchAnomaly202Response - | DetectMultivariateBatchAnomalyDefaultResponse + | DetectMultivariateBatchAnomalyDefaultResponse, ): response is DetectMultivariateBatchAnomalyDefaultResponse; export function isUnexpected( - response: DetectMultivariateLastAnomaly200Response | DetectMultivariateLastAnomalyDefaultResponse + response: DetectMultivariateLastAnomaly200Response | DetectMultivariateLastAnomalyDefaultResponse, ): response is DetectMultivariateLastAnomalyDefaultResponse; export function isUnexpected( response: @@ -92,7 +92,7 @@ export function isUnexpected( | DetectMultivariateBatchAnomaly202Response | DetectMultivariateBatchAnomalyDefaultResponse | DetectMultivariateLastAnomaly200Response - | DetectMultivariateLastAnomalyDefaultResponse + | DetectMultivariateLastAnomalyDefaultResponse, ): response is | DetectUnivariateEntireSeriesDefaultResponse | DetectUnivariateLastPointDefaultResponse @@ -145,7 +145,7 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // {guid} ==> $ // {guid}:export ==> :export$ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "" + pathParts[j] || "", ); if (!isMatched) { diff --git a/sdk/anomalydetector/ai-anomaly-detector-rest/src/paginateHelper.ts b/sdk/anomalydetector/ai-anomaly-detector-rest/src/paginateHelper.ts index 69b5ad462f48..8387f37b5f16 100644 --- a/sdk/anomalydetector/ai-anomaly-detector-rest/src/paginateHelper.ts +++ b/sdk/anomalydetector/ai-anomaly-detector-rest/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -57,7 +57,7 @@ export type PaginateReturn = TResult extends export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -116,7 +116,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -131,7 +131,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } @@ -169,7 +169,7 @@ function getPaginationProperties(initialResponse: PathUncheckedResponse) { throw new Error( `Couldn't paginate response\n Body doesn't contain an array property with name: ${[ ...itemNames, - ].join(" OR ")}` + ].join(" OR ")}`, ); } diff --git a/sdk/anomalydetector/ai-anomaly-detector-rest/test/public/anomalydetector.spec.ts b/sdk/anomalydetector/ai-anomaly-detector-rest/test/public/anomalydetector.spec.ts index 94e31101fb2f..c1ad0169dd4d 100644 --- a/sdk/anomalydetector/ai-anomaly-detector-rest/test/public/anomalydetector.spec.ts +++ b/sdk/anomalydetector/ai-anomaly-detector-rest/test/public/anomalydetector.spec.ts @@ -111,7 +111,7 @@ describe("AnomalyDetectorClient", () => { result.body.isAnomaly.filter((v) => { return v === true; }), - 14 + 14, ); }); diff --git a/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/templates/react/package.json.mustache b/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/templates/react/package.json.mustache index 0e8214bee981..c44401d3e030 100644 --- a/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/templates/react/package.json.mustache +++ b/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/templates/react/package.json.mustache @@ -18,7 +18,7 @@ "@types/react": "^18.0.17", "@types/react-dom": "^18.0.6", "@vitejs/plugin-react": "^2.0.1", - "prettier": "^2.7.1", + "prettier": "^3.1.0", "sass": "^1.54.4", "typescript": "^4.7.4", "vite": "^3.0.7" diff --git a/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/templates/typescript/package.json.mustache b/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/templates/typescript/package.json.mustache index aba91f412866..2140b349a837 100644 --- a/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/templates/typescript/package.json.mustache +++ b/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/templates/typescript/package.json.mustache @@ -13,7 +13,7 @@ "@azure/api-management-custom-widgets-tools": "^1.0.0-beta.2" }, "devDependencies": { - "prettier": "^2.7.1", + "prettier": "^3.1.0", "sass": "^1.54.4", "typescript": "^4.7.4", "vite": "^3.0.7" diff --git a/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/templates/vue/package.json.mustache b/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/templates/vue/package.json.mustache index f8b1468ce025..009ce752348f 100644 --- a/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/templates/vue/package.json.mustache +++ b/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/templates/vue/package.json.mustache @@ -15,7 +15,7 @@ }, "devDependencies": { "@vitejs/plugin-vue": "^3.0.3", - "prettier": "^2.7.1", + "prettier": "^3.1.0", "sass": "^1.54.4", "typescript": "^4.7.4", "vite": "^3.0.7" diff --git a/sdk/apimanagement/api-management-custom-widgets-scaffolder/package.json b/sdk/apimanagement/api-management-custom-widgets-scaffolder/package.json index 7dd1c4b545c0..fbea2060f5a3 100644 --- a/sdk/apimanagement/api-management-custom-widgets-scaffolder/package.json +++ b/sdk/apimanagement/api-management-custom-widgets-scaffolder/package.json @@ -44,10 +44,10 @@ "bundle:bin": "rollup -c rollup.config.bin.mjs", "build:samples": "echo skip", "build": "npm run clean && tsc -p . && dev-tool run bundle --browser-test=false && npm run bundle:bin && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore --ignore-path ./.prettierignore \"src/templates/**\" \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore --ignore-path ./.prettierignore \"src/templates/**\" \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore --ignore-path ./.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore --ignore-path ./.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skip", "integration-test:node": "dev-tool run test:node-ts-input --no-test-proxy=true", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -76,7 +76,6 @@ "eslint": "^8.0.0", "magic-string": "~0.27.0", "mocha": "^10.0.0", - "prettier": "^2.5.1", "c8": "^8.0.0", "rimraf": "^3.0.0", "ts-node": "^10.0.0", @@ -90,7 +89,7 @@ }, "dependencies": { "mustache": "^4.2.0", - "prettier": "^2.5.1", + "prettier": "^3.1.0", "glob": "^9.0.0", "tslib": "^2.2.0", "typescript": "~5.2.0", diff --git a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/bin/execute-configs.ts b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/bin/execute-configs.ts index 6d556a25ce49..6546e2cdcf79 100644 --- a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/bin/execute-configs.ts +++ b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/bin/execute-configs.ts @@ -36,8 +36,8 @@ const validateUrl = name: string, msg = (input: string) => `Provided “${name}” parameter value (“${prefixUrlProtocol( - input - )}”) isn’t a valid URL. Use the correct URL format, e.g., https://contoso.com.` + input, + )}”) isn’t a valid URL. Use the correct URL format, e.g., https://contoso.com.`, ) => (input: string) => { try { @@ -120,11 +120,11 @@ export const promptWidgetConfig = (partial: Partial): Promise + partial: Partial, ): Promise => inquirer.prompt( [ @@ -155,7 +155,7 @@ export const promptServiceInformation = ( message: fieldIdToName.apiVersion + " (optional; e.g., 2021-08-01)", }, ], - partial + partial, ); export const promptMiscConfig = (partial: Partial): Promise => @@ -187,5 +187,5 @@ export const promptMiscConfig = (partial: Partial): Promise => validate: validateMiscConfig.openUrl, }, ], - partial + partial, ); diff --git a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/bin/execute-helpers.ts b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/bin/execute-helpers.ts index b9f9843076e8..4f040aaf2c01 100644 --- a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/bin/execute-helpers.ts +++ b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/bin/execute-helpers.ts @@ -15,7 +15,7 @@ import yargsParser from "yargs-parser"; export const extractConfigFromArgs = ( argv: yargsParser.Arguments, validateConfig: Validate, - red: (msg: string) => void + red: (msg: string) => void, ): { configPartial: Partial; missing: boolean } => { const configPartial: Partial = {}; let missing: boolean = false; @@ -44,14 +44,14 @@ export const extractConfigFromArgs = ( export type Log = (msg: string) => void; type Config = ( promptForConfig: (partial: Partial) => Promise, - validateConfig: ReplaceTypesPreserveOptional + validateConfig: ReplaceTypesPreserveOptional, ) => Promise; export const buildGetConfig = (gray: Log, red: Log): Config => { const argv = yargsParser(hideBin(process.argv)); return async ( promptForConfig: (partial: Partial) => Promise, - validateConfig: Validate + validateConfig: Validate, ) => { const { configPartial, missing } = extractConfigFromArgs(argv, validateConfig, red); @@ -60,7 +60,7 @@ export const buildGetConfig = (gray: Log, red: Log): Config => { } else { gray("Retrieved from the command parameters"); Object.entries(configPartial).forEach( - ([key, value]) => value != null && gray(`${fieldIdToName[key] ?? key}: ${value}`) + ([key, value]) => value != null && gray(`${fieldIdToName[key] ?? key}: ${value}`), ); return configPartial as C; } diff --git a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/bin/execute.ts b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/bin/execute.ts index c33af3d3ae79..58548aba911a 100644 --- a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/bin/execute.ts +++ b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/bin/execute.ts @@ -25,7 +25,7 @@ const gray: Log = (msg) => log(chalk.gray(msg)); async function main(): Promise { green( - "\nThis tool generates code scaffold for custom widgets in the Azure API Management’s developer portal. Learn more at https://aka.ms/apimdocs/portal/customwidgets.\n" + "\nThis tool generates code scaffold for custom widgets in the Azure API Management’s developer portal. Learn more at https://aka.ms/apimdocs/portal/customwidgets.\n", ); const getConfig = buildGetConfig(gray, red); @@ -48,7 +48,7 @@ async function main(): Promise { } serviceInformation.managementApiEndpoint = prefixUrlProtocol( - serviceInformation.managementApiEndpoint + serviceInformation.managementApiEndpoint, ); miscConfig.openUrl = miscConfig.openUrl diff --git a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/generateProject.browser.ts b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/generateProject.browser.ts index 51a1ede9538d..697cbe58aad7 100644 --- a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/generateProject.browser.ts +++ b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/generateProject.browser.ts @@ -6,7 +6,7 @@ import { ServiceInformation, Options, WidgetConfig } from "./scaffolding"; export async function generateProject( _widgetConfig: WidgetConfig, _deployConfig: ServiceInformation, - _miscConfig: Options = {} + _miscConfig: Options = {}, ): Promise { throw new Error("Only for Node.js"); } diff --git a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/generateProject.ts b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/generateProject.ts index a4809d259cc4..39eb7f94d35b 100644 --- a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/generateProject.ts +++ b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/generateProject.ts @@ -27,7 +27,7 @@ const templateSuffix = ".mustache"; export async function generateProject( widgetConfig: WidgetConfig, deploymentConfig: ServiceInformation, - options: Options = {} + options: Options = {}, ): Promise { const { openUrl, configAdvancedTenantId, configAdvancedRedirectUri } = options; const openUrlParsed = openUrl ? new URL(openUrl) : null; diff --git a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/getTemplates.ts b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/getTemplates.ts index 7650c8cc55c4..3a25621672c5 100644 --- a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/getTemplates.ts +++ b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/getTemplates.ts @@ -7,10 +7,10 @@ import { join as pathJoin } from "path"; export async function getTemplates(template: ScaffoldTech): Promise { const sharedFiles = await getFiles( - pathJoin(__dirname, "templates", "_shared", "**", "**", "*.*") + pathJoin(__dirname, "templates", "_shared", "**", "**", "*.*"), ); const templateFiles = await getFiles( - pathJoin(__dirname, "templates", template, "**", "**", "*.*") + pathJoin(__dirname, "templates", template, "**", "**", "*.*"), ); return [...sharedFiles, ...templateFiles]; } diff --git a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/scaffolding.ts b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/scaffolding.ts index 41384769b96e..4f652d3a9341 100644 --- a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/scaffolding.ts +++ b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/scaffolding.ts @@ -60,7 +60,7 @@ export const displayNameToName = (displayName: string): string => .normalize("NFD") .toLowerCase() .replace(/[\u0300-\u036f]/g, "") - .replace(/[^a-z0-9-]/g, "-") + .replace(/[^a-z0-9-]/g, "-"), ); /** diff --git a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/templates/react/package.json.mustache b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/templates/react/package.json.mustache index 0e8214bee981..c44401d3e030 100644 --- a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/templates/react/package.json.mustache +++ b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/templates/react/package.json.mustache @@ -18,7 +18,7 @@ "@types/react": "^18.0.17", "@types/react-dom": "^18.0.6", "@vitejs/plugin-react": "^2.0.1", - "prettier": "^2.7.1", + "prettier": "^3.1.0", "sass": "^1.54.4", "typescript": "^4.7.4", "vite": "^3.0.7" diff --git a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/templates/typescript/package.json.mustache b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/templates/typescript/package.json.mustache index aba91f412866..2140b349a837 100644 --- a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/templates/typescript/package.json.mustache +++ b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/templates/typescript/package.json.mustache @@ -13,7 +13,7 @@ "@azure/api-management-custom-widgets-tools": "^1.0.0-beta.2" }, "devDependencies": { - "prettier": "^2.7.1", + "prettier": "^3.1.0", "sass": "^1.54.4", "typescript": "^4.7.4", "vite": "^3.0.7" diff --git a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/templates/vue/package.json.mustache b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/templates/vue/package.json.mustache index f8b1468ce025..009ce752348f 100644 --- a/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/templates/vue/package.json.mustache +++ b/sdk/apimanagement/api-management-custom-widgets-scaffolder/src/templates/vue/package.json.mustache @@ -15,7 +15,7 @@ }, "devDependencies": { "@vitejs/plugin-vue": "^3.0.3", - "prettier": "^2.7.1", + "prettier": "^3.1.0", "sass": "^1.54.4", "typescript": "^4.7.4", "vite": "^3.0.7" diff --git a/sdk/apimanagement/api-management-custom-widgets-scaffolder/test/generateProject.spec.ts b/sdk/apimanagement/api-management-custom-widgets-scaffolder/test/generateProject.spec.ts index e2ebf3861fea..c6ccb4925f92 100644 --- a/sdk/apimanagement/api-management-custom-widgets-scaffolder/test/generateProject.spec.ts +++ b/sdk/apimanagement/api-management-custom-widgets-scaffolder/test/generateProject.spec.ts @@ -46,11 +46,11 @@ TECHNOLOGIES.forEach((technology) => { it("Generated project should contain provided name", () => { assert.include( writtenFiles.find((file) => file.name.includes("index.html"))?.content, - widgetConfig.displayName + widgetConfig.displayName, ); assert.include( writtenFiles.find((file) => file.name.includes("package.json"))?.content, - displayNameToName(widgetConfig.displayName) + displayNameToName(widgetConfig.displayName), ); }); @@ -58,7 +58,7 @@ TECHNOLOGIES.forEach((technology) => { Object.entries(deployConfig).forEach(([key, value]) => { assert.include( writtenFiles.find((file) => file.name.includes("deploy.js"))?.content, - `"${key}": "${value}"` + `"${key}": "${value}"`, ); }); }); diff --git a/sdk/apimanagement/api-management-custom-widgets-tools/package.json b/sdk/apimanagement/api-management-custom-widgets-tools/package.json index 2566f5c2ff51..d19da2832e33 100644 --- a/sdk/apimanagement/api-management-custom-widgets-tools/package.json +++ b/sdk/apimanagement/api-management-custom-widgets-tools/package.json @@ -39,10 +39,10 @@ "build:test": "npm run clean && tsc -p . && dev-tool run bundle", "build:samples": "echo skip", "build": "npm run clean && tsc -p . && dev-tool run bundle --browser-test=false && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore --ignore-path ./.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore --ignore-path ./.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore --ignore-path ./.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore --ignore-path ./.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "echo skip", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -71,7 +71,6 @@ "cross-env": "^7.0.2", "eslint": "^8.0.0", "mocha": "^10.0.0", - "prettier": "^2.5.1", "c8": "^8.0.0", "rimraf": "^3.0.0", "typescript": "~5.2.0", @@ -99,7 +98,7 @@ "@azure/storage-blob": "^12.9.0", "mime": "^4.0.1", "mustache": "^4.2.0", - "prettier": "^2.5.1", + "prettier": "^3.1.0", "tslib": "^2.2.0" } } diff --git a/sdk/apimanagement/api-management-custom-widgets-tools/src/node/CustomWidgetBlobService.ts b/sdk/apimanagement/api-management-custom-widgets-tools/src/node/CustomWidgetBlobService.ts index e1861329e9da..a741c9323946 100644 --- a/sdk/apimanagement/api-management-custom-widgets-tools/src/node/CustomWidgetBlobService.ts +++ b/sdk/apimanagement/api-management-custom-widgets-tools/src/node/CustomWidgetBlobService.ts @@ -43,7 +43,7 @@ export class CustomWidgetBlobService { async jsonUpload( absolutePath: string, - json: Record + json: Record, ): Promise { return this.blobUpload(absolutePath, Buffer.from(JSON.stringify(json))); } diff --git a/sdk/apimanagement/api-management-custom-widgets-tools/src/node/deploy.browser.ts b/sdk/apimanagement/api-management-custom-widgets-tools/src/node/deploy.browser.ts index b966de0a4242..2212da250564 100644 --- a/sdk/apimanagement/api-management-custom-widgets-tools/src/node/deploy.browser.ts +++ b/sdk/apimanagement/api-management-custom-widgets-tools/src/node/deploy.browser.ts @@ -4,7 +4,7 @@ async function deploy( _serviceInformation: unknown, _name: string, - _fallbackConfigPath: string + _fallbackConfigPath: string, ): Promise { throw new Error("Only for Node.js"); } diff --git a/sdk/apimanagement/api-management-custom-widgets-tools/src/node/deploy.ts b/sdk/apimanagement/api-management-custom-widgets-tools/src/node/deploy.ts index 8566a2117408..807330c49cdf 100644 --- a/sdk/apimanagement/api-management-custom-widgets-tools/src/node/deploy.ts +++ b/sdk/apimanagement/api-management-custom-widgets-tools/src/node/deploy.ts @@ -47,7 +47,7 @@ async function deploy( { rootLocal = "./dist/", interactiveBrowserCredentialOptions = { redirectUri: "http://localhost:1337" }, - }: DeployConfig = {} + }: DeployConfig = {}, ): Promise { console.log("\n\n"); console.log("Starting deploy process of custom widget: " + name); @@ -55,7 +55,7 @@ async function deploy( const blobStorageUrl = await getStorageSasUrl( serviceInformation, - interactiveBrowserCredentialOptions + interactiveBrowserCredentialOptions, ); const customWidgetBlobService = new CustomWidgetBlobService(blobStorageUrl, name); diff --git a/sdk/apimanagement/api-management-custom-widgets-tools/src/node/getStorageSasUrl.ts b/sdk/apimanagement/api-management-custom-widgets-tools/src/node/getStorageSasUrl.ts index 84777a5f1ec3..026f6e247022 100644 --- a/sdk/apimanagement/api-management-custom-widgets-tools/src/node/getStorageSasUrl.ts +++ b/sdk/apimanagement/api-management-custom-widgets-tools/src/node/getStorageSasUrl.ts @@ -10,7 +10,7 @@ import { getClient } from "@azure-rest/core-client"; async function getAccessToken( managementApiEndpoint: string, - options?: IBCNOptions + options?: IBCNOptions, ): Promise { const credentials = new InteractiveBrowserCredential(options); const scope = `${managementApiEndpoint}/user_impersonation`; @@ -30,7 +30,7 @@ async function getStorageSasUrl( apiVersion = "2019-01-01", tokenOverride, }: ServiceInformation, - interactiveBrowserCredentialOptions?: IBCNOptions + interactiveBrowserCredentialOptions?: IBCNOptions, ): Promise { const httpClient = getClient(`${managementApiEndpoint}/${resourceId}`, { apiVersion }); const response = await httpClient diff --git a/sdk/apimanagement/api-management-custom-widgets-tools/src/utils.ts b/sdk/apimanagement/api-management-custom-widgets-tools/src/utils.ts index 86fcc65d4694..eed07946952b 100644 --- a/sdk/apimanagement/api-management-custom-widgets-tools/src/utils.ts +++ b/sdk/apimanagement/api-management-custom-widgets-tools/src/utils.ts @@ -40,11 +40,11 @@ export interface EditorData extends PortalData { } function parseWidgetData( - urlSearchParams: URLSearchParams + urlSearchParams: URLSearchParams, ): EditorData { try { const urlEditorParams: EditorData = JSON.parse( - decodeURIComponent(urlSearchParams.get(APIM_EDITOR_DATA_KEY) ?? "") + decodeURIComponent(urlSearchParams.get(APIM_EDITOR_DATA_KEY) ?? ""), ); // if (!("origin" in urlEditorParams)) { @@ -57,14 +57,14 @@ function parseWidgetData( console.error( `Could not get '${APIM_EDITOR_DATA_KEY}' from the search params of the URL:\n` + self.location, - e + e, ); return { values: {}, environment: "error", instanceId: "error" }; } } export function getWidgetDataPure( - urlSearchParams: URLSearchParams + urlSearchParams: URLSearchParams, ): EditorData { return parseWidgetData(urlSearchParams); } @@ -78,7 +78,7 @@ export function getWidgetData(): EditorData } export function getEditorValuesPure( - urlSearchParams: URLSearchParams + urlSearchParams: URLSearchParams, ): Partial { return getWidgetDataPure(urlSearchParams).values; } @@ -92,7 +92,7 @@ export function getEditorValues(): Partial export function getValuesPure( valuesDefault: Values, - urlSearchParams: URLSearchParams + urlSearchParams: URLSearchParams, ): Values { const values = { ...valuesDefault }; // set Obj to contain all possible values and prefill default value const urlValues = parseWidgetData(urlSearchParams).values; @@ -128,7 +128,7 @@ export type OnChange = (values: Partial) => export function onChangeWithOrigin( origin: string, instanceId: string, - values: Values + values: Values, ): void { Object.entries(values).forEach(([key, value]) => { self.parent.postMessage({ [APIM_ON_CHANGE_MESSAGE_KEY]: { key, value, instanceId } }, origin); diff --git a/sdk/appconfiguration/app-configuration/package.json b/sdk/appconfiguration/app-configuration/package.json index 33ce5c55951e..157fd3c73861 100644 --- a/sdk/appconfiguration/app-configuration/package.json +++ b/sdk/appconfiguration/app-configuration/package.json @@ -42,11 +42,11 @@ "build:test": "tsc -p . && dev-tool run bundle", "build:samples": "echo Obsolete.", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/swagger.md", "lint:fix": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix", "lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js", @@ -121,7 +121,6 @@ "mocha": "^10.0.0", "nock": "^12.0.3", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "ts-node": "^10.0.0", diff --git a/sdk/appconfiguration/app-configuration/samples-dev/featureFlag.ts b/sdk/appconfiguration/app-configuration/samples-dev/featureFlag.ts index e335735966a9..76ba132b061f 100644 --- a/sdk/appconfiguration/app-configuration/samples-dev/featureFlag.ts +++ b/sdk/appconfiguration/app-configuration/samples-dev/featureFlag.ts @@ -84,8 +84,8 @@ export async function main() { `\n...clientFilter - "${clientFilter.name}"...\nparams => ${JSON.stringify( clientFilter.parameters, null, - 1 - )}\n` + 1, + )}\n`, ); switch (clientFilter.name) { // Tweak the client filters of the feature flag @@ -131,8 +131,8 @@ export async function main() { `\n...clientFilter - "${clientFilter.name}"...\nparams => ${JSON.stringify( clientFilter.parameters, null, - 1 - )}\n` + 1, + )}\n`, ); } await cleanupSampleValues([originalFeatureFlag.key], appConfigClient); @@ -174,7 +174,7 @@ function isTargetingClientFilter(clientFilter: any): clientFilter is { * typeguard - for timewindow client filter */ export function isTimeWindowClientFilter( - clientFilter: any + clientFilter: any, ): clientFilter is { parameters: { Start: string; End: string } } { return ( clientFilter.name === "Microsoft.TimeWindow" && diff --git a/sdk/appconfiguration/app-configuration/samples-dev/optimisticConcurrencyViaEtag.ts b/sdk/appconfiguration/app-configuration/samples-dev/optimisticConcurrencyViaEtag.ts index e34ef57c94c6..7a1e5cc064f9 100644 --- a/sdk/appconfiguration/app-configuration/samples-dev/optimisticConcurrencyViaEtag.ts +++ b/sdk/appconfiguration/app-configuration/samples-dev/optimisticConcurrencyViaEtag.ts @@ -60,7 +60,7 @@ export async function main() { // now Alpha is going to attempt to update it - note that at this point // the setting has been updated (by Beta) and so our etag will not match console.log( - "Alpha is unaware of Beta's update and will now attempt to update the setting as well" + "Alpha is unaware of Beta's update and will now attempt to update the setting as well", ); try { @@ -78,7 +78,7 @@ export async function main() { if (err.statusCode === 412) { // precondition failed console.log( - `Alpha's update failed because the etag has changed. Alpha will now need to update and merge.` + `Alpha's update failed because the etag has changed. Alpha will now need to update and merge.`, ); console.log("Alpha gets the newly updated value and is merging in their changes."); diff --git a/sdk/appconfiguration/app-configuration/samples-dev/secretReference.ts b/sdk/appconfiguration/app-configuration/samples-dev/secretReference.ts index 18d9b6b7bc5b..c890bc0945cf 100644 --- a/sdk/appconfiguration/app-configuration/samples-dev/secretReference.ts +++ b/sdk/appconfiguration/app-configuration/samples-dev/secretReference.ts @@ -43,7 +43,7 @@ export async function main() { // Get the name and vaultUrl from the secretId const { name: secretName, vaultUrl } = parseKeyVaultSecretIdentifier( - parsedSecretReference.value.secretId + parsedSecretReference.value.secretId, ); const secretClient = new SecretClient(vaultUrl, new DefaultAzureCredential()); @@ -55,7 +55,7 @@ export async function main() { const error = err as { code: string; statusCode: number }; if (error.code === "SecretNotFound" && error.statusCode === 404) { throw new Error( - `\n Secret is not found, make sure the secret ${parsedSecretReference.value.secretId} is present in your keyvault account;\n Original error - ${error}` + `\n Secret is not found, make sure the secret ${parsedSecretReference.value.secretId} is present in your keyvault account;\n Original error - ${error}`, ); } else { throw err; @@ -78,7 +78,7 @@ async function setup(key: string) { ) { console.log( `At least one of the AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, APPCONFIG_CONNECTION_STRING and KEYVAULT_URI variables is not present, - please add the missing ones in your environment and rerun the sample.` + please add the missing ones in your environment and rerun the sample.`, ); return; } @@ -116,7 +116,7 @@ async function createConfigSetting(key: string, secretId: string) { await cleanupSampleValues([key], appConfigClient); console.log( - `Add a new secretReference with key: ${key} and secretId: ${secretReference.value.secretId}` + `Add a new secretReference with key: ${key} and secretId: ${secretReference.value.secretId}`, ); await appConfigClient.addConfigurationSetting(secretReference); } diff --git a/sdk/appconfiguration/app-configuration/samples-dev/snapshot.ts b/sdk/appconfiguration/app-configuration/samples-dev/snapshot.ts index a35f26c94620..f3cb23bb8632 100644 --- a/sdk/appconfiguration/app-configuration/samples-dev/snapshot.ts +++ b/sdk/appconfiguration/app-configuration/samples-dev/snapshot.ts @@ -42,7 +42,7 @@ export async function main() { // getting the configuration settting of the snapshot const snapshotConfigurationSettings = await client.listConfigurationSettingsForSnapshot( - newSnapshot.name + newSnapshot.name, ); for await (const setting of snapshotConfigurationSettings) { diff --git a/sdk/appconfiguration/app-configuration/src/appConfigCredential.ts b/sdk/appconfiguration/app-configuration/src/appConfigCredential.ts index 3025fb3b1fef..1a90db83bc19 100644 --- a/sdk/appconfiguration/app-configuration/src/appConfigCredential.ts +++ b/sdk/appconfiguration/app-configuration/src/appConfigCredential.ts @@ -36,7 +36,7 @@ export function appConfigKeyCredentialPolicy(credential: string, secret: string) // Reference - https://docs.microsoft.com/en-us/azure/azure-app-configuration/rest-api-authentication-hmac#syntax request.headers.set( "Authorization", - `HMAC-SHA256 Credential=${credential}&SignedHeaders=${signedHeaders}&Signature=${signature}` + `HMAC-SHA256 Credential=${credential}&SignedHeaders=${signedHeaders}&Signature=${signature}`, ); return next(request); diff --git a/sdk/appconfiguration/app-configuration/src/appConfigurationClient.ts b/sdk/appconfiguration/app-configuration/src/appConfigurationClient.ts index 50d87ca640e6..261ccb8c2946 100644 --- a/sdk/appconfiguration/app-configuration/src/appConfigurationClient.ts +++ b/sdk/appconfiguration/app-configuration/src/appConfigurationClient.ts @@ -130,12 +130,12 @@ export class AppConfigurationClient { constructor( endpoint: string, tokenCredential: TokenCredential, - options?: AppConfigurationClientOptions + options?: AppConfigurationClientOptions, ); constructor( connectionStringOrEndpoint: string, tokenCredentialOrOptions?: TokenCredential | AppConfigurationClientOptions, - options?: AppConfigurationClientOptions + options?: AppConfigurationClientOptions, ) { let appConfigOptions: InternalAppConfigurationClientOptions = {}; let appConfigCredential: TokenCredential; @@ -161,7 +161,7 @@ export class AppConfigurationClient { } else { throw new Error( `Invalid connection string. Valid connection strings should match the regex '${ConnectionStringRegex.source}'.` + - ` To mitigate the issue, please refer to the troubleshooting guide here at https://aka.ms/azsdk/js/app-configuration/troubleshoot.` + ` To mitigate the issue, please refer to the troubleshooting guide here at https://aka.ms/azsdk/js/app-configuration/troubleshoot.`, ); } } @@ -180,7 +180,7 @@ export class AppConfigurationClient { this.client = new AppConfiguration( appConfigEndpoint, appConfigurationApiVersion, - internalClientPipelineOptions + internalClientPipelineOptions, ); this.client.pipeline.addPolicy(authPolicy, { phase: "Sign" }); this.client.pipeline.addPolicy(syncTokenPolicy(this._syncTokens), { afterPhase: "Retry" }); @@ -202,7 +202,7 @@ export class AppConfigurationClient { | AddConfigurationSettingParam | AddConfigurationSettingParam | AddConfigurationSettingParam, - options: AddConfigurationSettingOptions = {} + options: AddConfigurationSettingOptions = {}, ): Promise { return tracingClient.withSpan( "AppConfigurationClient.addConfigurationSetting", @@ -229,7 +229,7 @@ export class AppConfigurationClient { throw err; } throw new Error("Unreachable code"); - } + }, ); } @@ -245,7 +245,7 @@ export class AppConfigurationClient { */ deleteConfigurationSetting( id: ConfigurationSettingId, - options: DeleteConfigurationSettingOptions = {} + options: DeleteConfigurationSettingOptions = {}, ): Promise { return tracingClient.withSpan( "AppConfigurationClient.deleteConfigurationSetting", @@ -265,7 +265,7 @@ export class AppConfigurationClient { const response = transformKeyValueResponseWithStatusCode(originalResponse, status); assertResponse(response); return response; - } + }, ); } @@ -281,7 +281,7 @@ export class AppConfigurationClient { */ async getConfigurationSetting( id: ConfigurationSettingId, - options: GetConfigurationSettingOptions = {} + options: GetConfigurationSettingOptions = {}, ): Promise { return tracingClient.withSpan( "AppConfigurationClient.getConfigurationSetting", @@ -314,7 +314,7 @@ export class AppConfigurationClient { } assertResponse(response); return response; - } + }, ); } @@ -329,7 +329,7 @@ export class AppConfigurationClient { * @param options - Optional parameters for the request. */ listConfigurationSettings( - options: ListConfigurationSettingsOptions = {} + options: ListConfigurationSettingsOptions = {}, ): PagedAsyncIterableIterator { const pagedResult: PagedResult = { @@ -365,7 +365,7 @@ export class AppConfigurationClient { */ listConfigurationSettingsForSnapshot( snapshotName: string, - options: ListConfigurationSettingsForSnapshotOptions = {} + options: ListConfigurationSettingsForSnapshotOptions = {}, ): PagedAsyncIterableIterator { const pagedResult: PagedResult = { @@ -373,7 +373,7 @@ export class AppConfigurationClient { getPage: async (pageLink: string | undefined) => { const response = await this.sendConfigurationSettingsRequest( { snapshotName, ...options }, - pageLink + pageLink, ); const currentResponse = { ...response, @@ -394,7 +394,7 @@ export class AppConfigurationClient { private async sendConfigurationSettingsRequest( options: SendConfigurationSettingsOptions & PageSettings = {}, - pageLink: string | undefined + pageLink: string | undefined, ): Promise> { return tracingClient.withSpan( "AppConfigurationClient.listConfigurationSettings", @@ -409,7 +409,7 @@ export class AppConfigurationClient { return response as GetKeyValuesResponse & HttpResponseField; - } + }, ); } /** @@ -423,7 +423,7 @@ export class AppConfigurationClient { * @param options - Optional parameters for the request. */ listRevisions( - options?: ListRevisionsOptions + options?: ListRevisionsOptions, ): PagedAsyncIterableIterator { const pagedResult: PagedResult = { firstPageLink: undefined, @@ -449,7 +449,7 @@ export class AppConfigurationClient { private async sendRevisionsRequest( options: ListConfigurationSettingsOptions & PageSettings = {}, - pageLink: string | undefined + pageLink: string | undefined, ): Promise> { return tracingClient.withSpan( "AppConfigurationClient.listRevisions", @@ -464,7 +464,7 @@ export class AppConfigurationClient { return response as GetRevisionsResponse & HttpResponseField; - } + }, ); } @@ -484,7 +484,7 @@ export class AppConfigurationClient { | SetConfigurationSettingParam | SetConfigurationSettingParam | SetConfigurationSettingParam, - options: SetConfigurationSettingOptions = {} + options: SetConfigurationSettingOptions = {}, ): Promise { return tracingClient.withSpan( "AppConfigurationClient.setConfigurationSetting", @@ -498,11 +498,11 @@ export class AppConfigurationClient { label: configurationSetting.label, entity: keyValue, ...checkAndFormatIfAndIfNoneMatch(configurationSetting, options), - }) + }), ); assertResponse(response); return response; - } + }, ); } @@ -513,7 +513,7 @@ export class AppConfigurationClient { async setReadOnly( id: ConfigurationSettingId, readOnly: boolean, - options: SetReadOnlyOptions = {} + options: SetReadOnlyOptions = {}, ): Promise { return tracingClient.withSpan( "AppConfigurationClient.setReadOnly", @@ -538,7 +538,7 @@ export class AppConfigurationClient { response = transformKeyValueResponse(response); assertResponse(response); return response; - } + }, ); } @@ -557,13 +557,13 @@ export class AppConfigurationClient { */ beginCreateSnapshot( snapshot: SnapshotInfo, - options: CreateSnapshotOptions = {} + options: CreateSnapshotOptions = {}, ): Promise, CreateSnapshotResponse>> { return tracingClient.withSpan( `${AppConfigurationClient.name}.beginCreateSnapshot`, options, (updatedOptions) => - this.client.beginCreateSnapshot(snapshot.name, snapshot, { ...updatedOptions }) + this.client.beginCreateSnapshot(snapshot.name, snapshot, { ...updatedOptions }), ); } @@ -573,13 +573,13 @@ export class AppConfigurationClient { */ beginCreateSnapshotAndWait( snapshot: SnapshotInfo, - options: CreateSnapshotOptions = {} + options: CreateSnapshotOptions = {}, ): Promise { return tracingClient.withSpan( `${AppConfigurationClient.name}.beginCreateSnapshotAndWait`, options, (updatedOptions) => - this.client.beginCreateSnapshotAndWait(snapshot.name, snapshot, { ...updatedOptions }) + this.client.beginCreateSnapshotAndWait(snapshot.name, snapshot, { ...updatedOptions }), ); } @@ -605,7 +605,7 @@ export class AppConfigurationClient { const response = transformSnapshotResponse(originalResponse); assertResponse(response); return response; - } + }, ); } @@ -621,7 +621,7 @@ export class AppConfigurationClient { */ recoverSnapshot( name: string, - options: UpdateSnapshotOptions = {} + options: UpdateSnapshotOptions = {}, ): Promise { return tracingClient.withSpan( "AppConfigurationClient.recoverSnapshot", @@ -635,14 +635,14 @@ export class AppConfigurationClient { ...updatedOptions, ...checkAndFormatIfAndIfNoneMatch( { etag: options.etag }, - { onlyIfUnchanged: true, ...options } + { onlyIfUnchanged: true, ...options }, ), - } + }, ); const response = transformSnapshotResponse(originalResponse); assertResponse(response); return response; - } + }, ); } /** @@ -657,7 +657,7 @@ export class AppConfigurationClient { */ archiveSnapshot( name: string, - options: UpdateSnapshotOptions = {} + options: UpdateSnapshotOptions = {}, ): Promise { return tracingClient.withSpan( "AppConfigurationClient.archiveSnapshot", @@ -671,14 +671,14 @@ export class AppConfigurationClient { ...updatedOptions, ...checkAndFormatIfAndIfNoneMatch( { etag: options.etag }, - { onlyIfUnchanged: true, ...options } + { onlyIfUnchanged: true, ...options }, ), - } + }, ); const response = transformSnapshotResponse(originalResponse); assertResponse(response); return response; - } + }, ); } @@ -692,7 +692,7 @@ export class AppConfigurationClient { * @param options - Optional parameters for the request. */ listSnapshots( - options: ListSnapshotsOptions = {} + options: ListSnapshotsOptions = {}, ): PagedAsyncIterableIterator { const pagedResult: PagedResult = { firstPageLink: undefined, @@ -717,7 +717,7 @@ export class AppConfigurationClient { private async sendSnapShotsRequest( options: ListSnapshotsOptions & PageSettings = {}, - pageLink: string | undefined + pageLink: string | undefined, ): Promise> { return tracingClient.withSpan( "AppConfigurationClient.listSnapshots", @@ -731,7 +731,7 @@ export class AppConfigurationClient { return response as GetSnapshotsResponse & HttpResponseField; - } + }, ); } } diff --git a/sdk/appconfiguration/app-configuration/src/featureFlag.ts b/sdk/appconfiguration/app-configuration/src/featureFlag.ts index af9e25271d65..8686700ad0a2 100644 --- a/sdk/appconfiguration/app-configuration/src/featureFlag.ts +++ b/sdk/appconfiguration/app-configuration/src/featureFlag.ts @@ -55,7 +55,7 @@ export const FeatureFlagHelper = { * Takes the FeatureFlag (JSON) and returns a ConfigurationSetting (with the props encodeed in the value). */ toConfigurationSettingParam: ( - featureFlag: ConfigurationSettingParam + featureFlag: ConfigurationSettingParam, ): ConfigurationSettingParam => { logger.info("Encoding FeatureFlag value in a ConfigurationSetting:", featureFlag); if (!featureFlag.value) { @@ -89,13 +89,13 @@ export const FeatureFlagHelper = { * Takes the ConfigurationSetting as input and returns the ConfigurationSetting by parsing the value string. */ export function parseFeatureFlag( - setting: ConfigurationSetting + setting: ConfigurationSetting, ): ConfigurationSetting { logger.info("Parsing the value to return the FeatureFlagValue", setting); if (!isFeatureFlag(setting)) { logger.error("Invalid FeatureFlag input", setting); throw TypeError( - `Setting with key ${setting.key} is not a valid FeatureFlag, make sure to have the correct content-type and a valid non-null value.` + `Setting with key ${setting.key} is not a valid FeatureFlag, make sure to have the correct content-type and a valid non-null value.`, ); } @@ -126,7 +126,7 @@ export function parseFeatureFlag( * [Checks if the content type is featureFlagContentType `"application/vnd.microsoft.appconfig.ff+json;charset=utf-8"`] */ export function isFeatureFlag( - setting: ConfigurationSetting + setting: ConfigurationSetting, ): setting is ConfigurationSetting & Required> { return ( setting && setting.contentType === featureFlagContentType && typeof setting.value === "string" diff --git a/sdk/appconfiguration/app-configuration/src/internal/helpers.ts b/sdk/appconfiguration/app-configuration/src/internal/helpers.ts index 80eda12d163c..bdf894627879 100644 --- a/sdk/appconfiguration/app-configuration/src/internal/helpers.ts +++ b/sdk/appconfiguration/app-configuration/src/internal/helpers.ts @@ -75,13 +75,13 @@ export function quoteETag(etag: string | undefined): string | undefined { */ export function checkAndFormatIfAndIfNoneMatch( objectWithEtag: EtagEntity, - options: HttpOnlyIfChangedField & HttpOnlyIfUnchangedField + options: HttpOnlyIfChangedField & HttpOnlyIfUnchangedField, ): { ifMatch: string | undefined; ifNoneMatch: string | undefined } { if (options.onlyIfChanged && options.onlyIfUnchanged) { logger.error( "onlyIfChanged and onlyIfUnchanged are both specified", options.onlyIfChanged, - options.onlyIfUnchanged + options.onlyIfUnchanged, ); throw new Error("onlyIfChanged and onlyIfUnchanged are mutually-exclusive"); } @@ -113,7 +113,7 @@ export function checkAndFormatIfAndIfNoneMatch( * @internal */ export function formatFiltersAndSelect( - listConfigOptions: ListRevisionsOptions + listConfigOptions: ListRevisionsOptions, ): Pick { let acceptDatetime: string | undefined = undefined; @@ -138,7 +138,7 @@ export function formatFiltersAndSelect( * @internal */ export function formatConfigurationSettingsFiltersAndSelect( - listConfigOptions: SendConfigurationSettingsOptions + listConfigOptions: SendConfigurationSettingsOptions, ): Pick { const { snapshotName: snapshot, ...options } = listConfigOptions; return { @@ -155,7 +155,7 @@ export function formatConfigurationSettingsFiltersAndSelect( * @internal */ export function formatSnapshotFiltersAndSelect( - listSnapshotOptions: ListSnapshotsOptions + listSnapshotOptions: ListSnapshotsOptions, ): Pick { return { name: listSnapshotOptions.nameFilter, @@ -201,7 +201,7 @@ export function extractAfterTokenFromNextLink(nextLink: string): string { * @param configurationSetting - The configuration setting to alter */ export function makeConfigurationSettingEmpty( - configurationSetting: Partial, any>> + configurationSetting: Partial, any>>, ): void { const names: Exclude[] = [ "contentType", @@ -241,7 +241,7 @@ export function transformKeyValue(kvp: T & KeyValue): T & ConfigurationSettin * @internal */ function isConfigSettingWithSecretReferenceValue( - setting: any + setting: any, ): setting is ConfigurationSetting { return ( setting.contentType === secretReferenceContentType && @@ -254,7 +254,7 @@ function isConfigSettingWithSecretReferenceValue( * @internal */ function isConfigSettingWithFeatureFlagValue( - setting: any + setting: any, ): setting is ConfigurationSetting { return ( setting.contentType === featureFlagContentType && @@ -277,7 +277,7 @@ export function serializeAsConfigurationSettingParam( setting: | ConfigurationSettingParam | ConfigurationSettingParam - | ConfigurationSettingParam + | ConfigurationSettingParam, ): ConfigurationSettingParam { if (isSimpleConfigSetting(setting)) { return setting as ConfigurationSettingParam; @@ -294,7 +294,7 @@ export function serializeAsConfigurationSettingParam( } logger.error("Unable to serialize to a configuration setting", setting); throw new TypeError( - `Unable to serialize the setting with key "${setting.key}" as a configuration setting` + `Unable to serialize the setting with key "${setting.key}" as a configuration setting`, ); } @@ -303,7 +303,7 @@ export function serializeAsConfigurationSettingParam( */ export function transformKeyValueResponseWithStatusCode( kvp: T, - status: number | undefined + status: number | undefined, ): ConfigurationSetting & { eTag?: string } & HttpResponseFields { const response = { ...transformKeyValue(kvp), @@ -323,7 +323,7 @@ export function transformKeyValueResponseWithStatusCode( * @internal */ export function transformKeyValueResponse( - kvp: T + kvp: T, ): ConfigurationSetting { const setting = transformKeyValue(kvp); if (hasUnderscoreResponse(kvp)) { @@ -341,7 +341,7 @@ export function transformKeyValueResponse( - snapshot: T + snapshot: T, ): SnapshotResponse { if (hasUnderscoreResponse(snapshot)) { Object.defineProperty(snapshot, "_response", { @@ -362,7 +362,7 @@ export function transformSnapshotResponse( * @internal */ export function formatFieldsForSelect( - fieldNames: (keyof ConfigurationSetting)[] | undefined + fieldNames: (keyof ConfigurationSetting)[] | undefined, ): string[] | undefined { if (fieldNames == null) { return undefined; @@ -389,14 +389,14 @@ export function formatFieldsForSelect( */ export function errorMessageForUnexpectedSetting( key: string, - expectedType: "FeatureFlag" | "SecretReference" + expectedType: "FeatureFlag" | "SecretReference", ): string { return `Setting with key ${key} is not a valid ${expectedType}, make sure to have the correct content-type and a valid non-null value.`; } // eslint-disable-next-line @typescript-eslint/ban-types export function assertResponse( - result: T + result: T, ): asserts result is T & HttpResponseField { if (!hasUnderscoreResponse(result)) { Object.defineProperty(result, "_response", { @@ -409,7 +409,7 @@ export function assertResponse( // eslint-disable-next-line @typescript-eslint/ban-types export function hasUnderscoreResponse( - result: T + result: T, ): result is T & HttpResponseField { return Object.prototype.hasOwnProperty.call(result, "_response"); } diff --git a/sdk/appconfiguration/app-configuration/src/internal/synctokenpolicy.ts b/sdk/appconfiguration/app-configuration/src/internal/synctokenpolicy.ts index e56638bcf9b2..5d24042ecf00 100644 --- a/sdk/appconfiguration/app-configuration/src/internal/synctokenpolicy.ts +++ b/sdk/appconfiguration/app-configuration/src/internal/synctokenpolicy.ts @@ -29,7 +29,7 @@ export function syncTokenPolicy(syncTokens: SyncTokens): PipelinePolicy { if (syncTokenHeaderValue) { logger.info( - "[syncTokenPolicy] Setting headers with ${SyncTokenHeaderName} and ${syncTokenHeaderValue}" + "[syncTokenPolicy] Setting headers with ${SyncTokenHeaderName} and ${syncTokenHeaderValue}", ); request.headers.set(SyncTokenHeaderName, syncTokenHeaderValue); } @@ -129,7 +129,7 @@ export function parseSyncToken(syncToken: string): SyncToken { if (matches == null) { throw new Error( - `Failed to parse sync token '${syncToken}' with regex ${syncTokenRegex.source}` + `Failed to parse sync token '${syncToken}' with regex ${syncTokenRegex.source}`, ); } diff --git a/sdk/appconfiguration/app-configuration/src/models.ts b/sdk/appconfiguration/app-configuration/src/models.ts index 378479e13912..1fd9fce5350b 100644 --- a/sdk/appconfiguration/app-configuration/src/models.ts +++ b/sdk/appconfiguration/app-configuration/src/models.ts @@ -41,7 +41,7 @@ export interface ConfigurationSettingId { * Necessary fields for updating or creating a new configuration setting */ export type ConfigurationSettingParam< - T extends string | FeatureFlagValue | SecretReferenceValue = string + T extends string | FeatureFlagValue | SecretReferenceValue = string, > = ConfigurationSettingId & { /** * The content type of the setting's value @@ -71,7 +71,7 @@ export type ConfigurationSettingParam< * its etag, whether it is currently readOnly and when it was last modified. */ export type ConfigurationSetting< - T extends string | FeatureFlagValue | SecretReferenceValue = string + T extends string | FeatureFlagValue | SecretReferenceValue = string, > = ConfigurationSettingParam & { /** * Whether or not the setting is read-only @@ -118,14 +118,14 @@ export interface HttpResponseField { * Parameters for adding a new configuration setting */ export type AddConfigurationSettingParam< - T extends string | FeatureFlagValue | SecretReferenceValue = string + T extends string | FeatureFlagValue | SecretReferenceValue = string, > = ConfigurationSettingParam; /** * Parameters for creating or updating a new configuration setting */ export type SetConfigurationSettingParam< - T extends string | FeatureFlagValue | SecretReferenceValue = string + T extends string | FeatureFlagValue | SecretReferenceValue = string, > = ConfigurationSettingParam; /** diff --git a/sdk/appconfiguration/app-configuration/src/secretReference.ts b/sdk/appconfiguration/app-configuration/src/secretReference.ts index d43f9969fc54..1732f1adcad0 100644 --- a/sdk/appconfiguration/app-configuration/src/secretReference.ts +++ b/sdk/appconfiguration/app-configuration/src/secretReference.ts @@ -29,7 +29,7 @@ export const SecretReferenceHelper = { * Takes the SecretReference (JSON) and returns a ConfigurationSetting (with the props encodeed in the value). */ toConfigurationSettingParam: ( - secretReference: ConfigurationSettingParam + secretReference: ConfigurationSettingParam, ): ConfigurationSettingParam => { logger.info("Encoding SecretReference value in a ConfigurationSetting:", secretReference); if (!secretReference.value) { @@ -53,16 +53,16 @@ export const SecretReferenceHelper = { * Takes the ConfigurationSetting as input and returns the ConfigurationSetting by parsing the value string. */ export function parseSecretReference( - setting: ConfigurationSetting + setting: ConfigurationSetting, ): ConfigurationSetting { logger.info( "[parseSecretReference] Parsing the value to return the SecretReferenceValue", - setting + setting, ); if (!isSecretReference(setting)) { logger.error("Invalid SecretReference input", setting); throw TypeError( - `Setting with key ${setting.key} is not a valid SecretReference, make sure to have the correct content-type and a valid non-null value.` + `Setting with key ${setting.key} is not a valid SecretReference, make sure to have the correct content-type and a valid non-null value.`, ); } @@ -81,7 +81,7 @@ export function parseSecretReference( * [Checks if the content type is secretReferenceContentType `"application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8"`] */ export function isSecretReference( - setting: ConfigurationSetting + setting: ConfigurationSetting, ): setting is ConfigurationSetting & Required> { return ( setting && diff --git a/sdk/appconfiguration/app-configuration/test/internal/helpers.spec.ts b/sdk/appconfiguration/app-configuration/test/internal/helpers.spec.ts index 57106e09275f..5ee53dc7faf1 100644 --- a/sdk/appconfiguration/app-configuration/test/internal/helpers.spec.ts +++ b/sdk/appconfiguration/app-configuration/test/internal/helpers.spec.ts @@ -37,7 +37,7 @@ describe("helper methods", () => { ifMatch: undefined, ifNoneMatch: undefined, }, - checkAndFormatIfAndIfNoneMatch(object, {}) + checkAndFormatIfAndIfNoneMatch(object, {}), ); assert.deepEqual( @@ -47,7 +47,7 @@ describe("helper methods", () => { }, checkAndFormatIfAndIfNoneMatch(objectWithEtag, { onlyIfUnchanged: true, - }) + }), ); assert.deepEqual( @@ -57,7 +57,7 @@ describe("helper methods", () => { }, checkAndFormatIfAndIfNoneMatch(objectWithEtag, { onlyIfChanged: true, - }) + }), ); }); @@ -71,7 +71,7 @@ describe("helper methods", () => { onlyIfChanged: true, onlyIfUnchanged: true, }), - /onlyIfChanged and onlyIfUnchanged are mutually-exclusive/ + /onlyIfChanged and onlyIfUnchanged are mutually-exclusive/, ); }); @@ -151,7 +151,7 @@ describe("helper methods", () => { assert.deepEqual( serializeAsConfigurationSettingParam(featureFlag), featureFlag as unknown as ConfigurationSettingParam, - "setting was modified" + "setting was modified", ); }); @@ -166,7 +166,7 @@ describe("helper methods", () => { assert.deepEqual( serializeAsConfigurationSettingParam(setting), setting as any, - "setting was modified" + "setting was modified", ); }); }); @@ -251,7 +251,7 @@ describe("helper methods", () => { locked: true, ...fakeHttp204Response, }, - 204 + 204, ); const actualKeys = Object.keys(configurationSetting).sort(); diff --git a/sdk/appconfiguration/app-configuration/test/internal/node/http.spec.ts b/sdk/appconfiguration/app-configuration/test/internal/node/http.spec.ts index bb58a93e9ed1..e52b5d95e7ca 100644 --- a/sdk/appconfiguration/app-configuration/test/internal/node/http.spec.ts +++ b/sdk/appconfiguration/app-configuration/test/internal/node/http.spec.ts @@ -32,7 +32,7 @@ describe("http request related tests", function () { for (const invalidToken of ["invalid token", "missing=sequencenumber", "key=value;"]) { assert.throws( () => parseSyncToken(invalidToken), - new RegExp(`Failed to parse sync token '${invalidToken}' with regex .+$`) + new RegExp(`Failed to parse sync token '${invalidToken}' with regex .+$`), ); } }); @@ -64,7 +64,7 @@ describe("http request related tests", function () { syncTokens.addSyncTokenFromHeaderValue("b=value2.2;sn=100,c=value3;sn=1"); assert.equal( "a=value,b=value2.2,c=value3", - splitAndSort(syncTokens.getSyncTokenHeaderValue()) + splitAndSort(syncTokens.getSyncTokenHeaderValue()), ); // and if we get back undefined (ie, the header wasn't there) then it @@ -168,7 +168,7 @@ describe("http request related tests", function () { client.getConfigurationSetting({ key: "doesntmatter", }), - 418 + 418, ); assert.ok(policyScope.isDone()); @@ -245,7 +245,7 @@ describe("http request related tests", function () { { key: "doesntmatter", }, - true + true, ); assert.equal(syncTokens.getSyncTokenHeaderValue(), "setReadOnly=value"); @@ -256,7 +256,7 @@ describe("http request related tests", function () { { key: "doesntmatter", }, - false + false, ); assert.equal(syncTokens.getSyncTokenHeaderValue(), "clearReadOnly=value"); @@ -269,28 +269,28 @@ describe("http request related tests", function () { syncTokens.addSyncTokenFromHeaderValue("a=value;sn=0"); const client = new AppConfigurationClient( "Endpoint=https://endpoint.azconfig.io;Id=abc;Secret=123", - { syncTokens } as InternalAppConfigurationClientOptions + { syncTokens } as InternalAppConfigurationClientOptions, ); assert.equal( syncTokens["_currentSyncTokens"].size, 1, - "Unexpected number of syncTokens before the `update` call" + "Unexpected number of syncTokens before the `update` call", ); client.updateSyncToken("b=value;sn=3"); assert.equal( syncTokens["_currentSyncTokens"].size, 2, - "Unexpected number of syncTokens after the `update` call" + "Unexpected number of syncTokens after the `update` call", ); assert.deepEqual( syncTokens["_currentSyncTokens"].get("a"), { id: "a", value: "value", sequenceNumber: 0 }, - "Unexpected object present for key `a`" + "Unexpected object present for key `a`", ); assert.deepEqual( syncTokens["_currentSyncTokens"].get("b"), { id: "b", value: "value", sequenceNumber: 3 }, - "Unexpected object present for key `b`" + "Unexpected object present for key `b`", ); }); }); diff --git a/sdk/appconfiguration/app-configuration/test/internal/node/package.spec.ts b/sdk/appconfiguration/app-configuration/test/internal/node/package.spec.ts index 4ab216d013b9..4b775f44604d 100644 --- a/sdk/appconfiguration/app-configuration/test/internal/node/package.spec.ts +++ b/sdk/appconfiguration/app-configuration/test/internal/node/package.spec.ts @@ -18,12 +18,12 @@ describe("packagejson related tests", () => { try { // For integration tests packageJsonContents = JSON.parse( - fs.readFileSync(path.join(__dirname, "../../../../package.json"), { encoding: "utf-8" }) + fs.readFileSync(path.join(__dirname, "../../../../package.json"), { encoding: "utf-8" }), ); } catch (e: any) { // For unit tests packageJsonContents = JSON.parse( - fs.readFileSync(path.join(__dirname, "../../../package.json"), { encoding: "utf-8" }) + fs.readFileSync(path.join(__dirname, "../../../package.json"), { encoding: "utf-8" }), ); } diff --git a/sdk/appconfiguration/app-configuration/test/internal/node/throttlingRetryPolicy.spec.ts b/sdk/appconfiguration/app-configuration/test/internal/node/throttlingRetryPolicy.spec.ts index 2a67d8ef26b3..7d2ec3897ac9 100644 --- a/sdk/appconfiguration/app-configuration/test/internal/node/throttlingRetryPolicy.spec.ts +++ b/sdk/appconfiguration/app-configuration/test/internal/node/throttlingRetryPolicy.spec.ts @@ -24,7 +24,7 @@ describe("Should not retry forever", () => { policy: "Total Requests", status: 429, }, - ["retry-after-ms", retryAfterMs] + ["retry-after-ms", retryAfterMs], ); } @@ -54,8 +54,8 @@ describe("Should not retry forever", () => { }, { abortSignal: AbortController.timeout(1000), - } - ) + }, + ), ); } await Promise.all(promises); @@ -77,7 +77,7 @@ describe("Should not retry forever", () => { chai.assert.equal( nock.pendingMocks().length, responseCount, - "unexpected pending mocks before making the request" + "unexpected pending mocks before making the request", ); try { await client.addConfigurationSetting({ @@ -92,14 +92,14 @@ describe("Should not retry forever", () => { chai.assert.equal( JSON.parse(err.message).title, "Resource utilization has surpassed the assigned quota", - "Unexpected error thrown" + "Unexpected error thrown", ); } chai.assert.equal(errorWasThrown, true, "Error was not thrown"); chai.assert.equal( nock.pendingMocks().length, responseCount - 1 - 3, // one attempt + three retries - "unexpected pending mocks after the test was run" + "unexpected pending mocks after the test was run", ); }); }); diff --git a/sdk/appconfiguration/app-configuration/test/public/auth.spec.ts b/sdk/appconfiguration/app-configuration/test/public/auth.spec.ts index 7e3528d6af27..7959ee28018c 100644 --- a/sdk/appconfiguration/app-configuration/test/public/auth.spec.ts +++ b/sdk/appconfiguration/app-configuration/test/public/auth.spec.ts @@ -32,7 +32,7 @@ describe("Authentication", () => { const client = new AppConfigurationClient( credsAndEndpoint.endpoint, credsAndEndpoint.credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); // it doesn't matter if any data comes in so long as we were @@ -48,14 +48,14 @@ describe("AppConfigurationClient constructor error cases", () => { it("invalid connection string gives a decent error message", () => { assert.throws( () => new AppConfigurationClient("an invalid connection string"), - /Invalid connection string\. Valid connection strings should match the regex 'Endpoint=\(\.\*\);Id=\(\.\*\);Secret=\(\.\*\)'/ + /Invalid connection string\. Valid connection strings should match the regex 'Endpoint=\(\.\*\);Id=\(\.\*\);Secret=\(\.\*\)'/, ); }); it("undefined connection string gives a decent error message", () => { assert.throws( () => new AppConfigurationClient(undefined as any), - /Invalid connection string\. Valid connection strings should match the regex 'Endpoint=\(\.\*\);Id=\(\.\*\);Secret=\(\.\*\)'/ + /Invalid connection string\. Valid connection strings should match the regex 'Endpoint=\(\.\*\);Id=\(\.\*\);Secret=\(\.\*\)'/, ); }); }); diff --git a/sdk/appconfiguration/app-configuration/test/public/etags.spec.ts b/sdk/appconfiguration/app-configuration/test/public/etags.spec.ts index e1624cbac3b6..10eccdc8cafb 100644 --- a/sdk/appconfiguration/app-configuration/test/public/etags.spec.ts +++ b/sdk/appconfiguration/app-configuration/test/public/etags.spec.ts @@ -63,7 +63,7 @@ describe("etags", () => { // nothing has changed) will result in a 412 (precondition failed) await assertThrowsRestError( () => client.setConfigurationSetting(badEtagSetting, { onlyIfUnchanged: true }), - 412 + 412, ); }); @@ -87,7 +87,7 @@ describe("etags", () => { onlyIfUnchanged: true, }), 412, - "Old etag will result in a failed update and error" + "Old etag will result in a failed update and error", ); }); @@ -122,7 +122,7 @@ describe("etags", () => { assert.notEqual( originalSetting.etag, updatedSetting.etag, - "New content, new update, etags shouldn't match" + "New content, new update, etags shouldn't match", ); assert.equal(200, updatedSetting.statusCode); @@ -151,7 +151,7 @@ describe("etags", () => { client.setReadOnly(badEtagSetting, true, { onlyIfUnchanged: true, }), - 412 + 412, ); let actualSetting = await client.getConfigurationSetting(badEtagSetting); @@ -170,7 +170,7 @@ describe("etags", () => { client.setReadOnly(badEtagSetting, false, { onlyIfUnchanged: true, }), - 412 + 412, ); // ...still readOnly @@ -197,7 +197,7 @@ describe("etags", () => { await assertThrowsRestError( () => client.deleteConfigurationSetting(badEtagSetting, { onlyIfUnchanged: true }), - 412 + 412, ); // obviously the setting is still there (or else this would throw) @@ -219,13 +219,13 @@ describe("etags", () => { const newSnapshot = await client.beginCreateSnapshotAndWait(snapshot1, testPollingOptions); await assertThrowsRestError( () => client.archiveSnapshot(newSnapshot.name, { etag: "badEtag" }), - 412 + 412, ); await client.archiveSnapshot(newSnapshot.name, { etag: newSnapshot.etag }); await assertThrowsRestError( () => client.recoverSnapshot(newSnapshot.name, { etag: "badEtag" }), - 412 + 412, ); }); }); diff --git a/sdk/appconfiguration/app-configuration/test/public/featureFlag.spec.ts b/sdk/appconfiguration/app-configuration/test/public/featureFlag.spec.ts index 9a6f47809b75..14d749eabd19 100644 --- a/sdk/appconfiguration/app-configuration/test/public/featureFlag.spec.ts +++ b/sdk/appconfiguration/app-configuration/test/public/featureFlag.spec.ts @@ -77,7 +77,7 @@ describe("AppConfigurationClient - FeatureFlag", () => { function assertFeatureFlagProps( actual: Omit, - expected: ConfigurationSetting + expected: ConfigurationSetting, ): void { assert.equal(isFeatureFlag(actual), true, "Expected to get the feature flag"); assert.isDefined(actual.value, "Expected the value to be defined"); @@ -85,12 +85,12 @@ describe("AppConfigurationClient - FeatureFlag", () => { assert.equal( actual.key, expected.key, - "Key from the response from get request is not as expected" + "Key from the response from get request is not as expected", ); assert.deepEqual( featureFlagValue.conditions, expected.value.conditions, - "conditions from the response from get request is not as expected" + "conditions from the response from get request is not as expected", ); assert.equal(featureFlagValue.description, expected.value.description); assert.equal(featureFlagValue.enabled, expected.value.enabled); @@ -183,7 +183,7 @@ describe("AppConfigurationClient - FeatureFlag", () => { assert.equal( numberOFFeatureFlagsReceived, 0, - "Unexpected number of FeatureFlags seen after updating" + "Unexpected number of FeatureFlags seen after updating", ); await client.deleteConfigurationSetting({ key: secondSetting.key }); }); @@ -200,7 +200,7 @@ describe("AppConfigurationClient - FeatureFlag", () => { contentType: featureFlagContentType, key: `${featureFlagPrefix}${recorder.variable( "name-1", - `name-1${Math.floor(Math.random() * 1000)}` + `name-1${Math.floor(Math.random() * 1000)}`, )}`, isReadOnly: false, value: { conditions: { clientFilters: [] }, enabled: true }, @@ -219,7 +219,7 @@ describe("AppConfigurationClient - FeatureFlag", () => { assert.equal( (await client.getConfigurationSetting({ key: featureFlag.key })).value, value, - "message" + "message", ); }); }); diff --git a/sdk/appconfiguration/app-configuration/test/public/index.readonlytests.spec.ts b/sdk/appconfiguration/app-configuration/test/public/index.readonlytests.spec.ts index aab1181f6305..88b23f832ce8 100644 --- a/sdk/appconfiguration/app-configuration/test/public/index.readonlytests.spec.ts +++ b/sdk/appconfiguration/app-configuration/test/public/index.readonlytests.spec.ts @@ -26,7 +26,7 @@ describe("AppConfigurationClient (set|clear)ReadOnly", () => { recorder = await startRecorder(this); testConfigSetting.key = recorder.variable( "readOnlyTests", - `readOnlyTests${Math.floor(Math.random() * 1000)}` + `readOnlyTests${Math.floor(Math.random() * 1000)}`, ); client = createAppConfigurationClientForTests(recorder.configureClientOptions({})); // before it's set to read only we can set it all we want @@ -57,7 +57,7 @@ describe("AppConfigurationClient (set|clear)ReadOnly", () => { await assertThrowsRestError( () => client.setConfigurationSetting(testConfigSetting), 409, - "Set should fail because the setting is read-only" + "Set should fail because the setting is read-only", ); await assertThrowsRestError( () => @@ -66,7 +66,7 @@ describe("AppConfigurationClient (set|clear)ReadOnly", () => { label: testConfigSetting.label, }), 409, - "Delete should fail because the setting is read-only" + "Delete should fail because the setting is read-only", ); }); diff --git a/sdk/appconfiguration/app-configuration/test/public/index.spec.ts b/sdk/appconfiguration/app-configuration/test/public/index.spec.ts index ec73868e22c6..e19d7731b436 100644 --- a/sdk/appconfiguration/app-configuration/test/public/index.spec.ts +++ b/sdk/appconfiguration/app-configuration/test/public/index.spec.ts @@ -39,7 +39,7 @@ describe("AppConfigurationClient", () => { it("Add and query a setting without a label", async () => { const key = recorder.variable( "noLabelTests", - `noLabelTests${Math.floor(Math.random() * 1000)}` + `noLabelTests${Math.floor(Math.random() * 1000)}`, ); await client.addConfigurationSetting({ key, value: "added" }); @@ -90,7 +90,7 @@ describe("AppConfigurationClient", () => { it("sample works", async () => { const key = recorder.variable( "addConfigSample", - `addConfigSample${Math.floor(Math.random() * 1000)}` + `addConfigSample${Math.floor(Math.random() * 1000)}`, ); const result = await client.setConfigurationSetting({ key, @@ -103,7 +103,7 @@ describe("AppConfigurationClient", () => { it("adds a configuration setting", async () => { const key = recorder.variable( "addConfigTest", - `addConfigTest${Math.floor(Math.random() * 1000)}` + `addConfigTest${Math.floor(Math.random() * 1000)}`, ); const label = "MyLabel"; const value = "MyValue"; @@ -113,12 +113,12 @@ describe("AppConfigurationClient", () => { assert.equal( result.label, label, - "Unexpected label in result from addConfigurationSetting()." + "Unexpected label in result from addConfigurationSetting().", ); assert.equal( result.value, value, - "Unexpected value in result from addConfigurationSetting()." + "Unexpected value in result from addConfigurationSetting().", ); // just a sanity check - the 'eTag' field that gets added by the response headers @@ -132,7 +132,7 @@ describe("AppConfigurationClient", () => { it("throws an error if the configuration setting already exists", async () => { const key = recorder.variable( "addConfigTestTwice", - `addConfigTestTwice${Math.floor(Math.random() * 1000)}` + `addConfigTestTwice${Math.floor(Math.random() * 1000)}`, ); const label = "test"; const value = "foo"; @@ -142,12 +142,12 @@ describe("AppConfigurationClient", () => { assert.equal( result.label, label, - "Unexpected label in result from addConfigurationSetting()." + "Unexpected label in result from addConfigurationSetting().", ); assert.equal( result.value, value, - "Unexpected value in result from addConfigurationSetting()." + "Unexpected value in result from addConfigurationSetting().", ); // attempt to add the same setting @@ -157,7 +157,7 @@ describe("AppConfigurationClient", () => { } catch (err: any) { assert.equal( (err as { message: string }).message, - "Status 412: Setting was already present" + "Status 412: Setting was already present", ); assert.notEqual((err as { message: string }).message, "Test failure"); } @@ -170,7 +170,7 @@ describe("AppConfigurationClient", () => { if (isPlaybackMode()) this.skip(); const key = recorder.variable( "addConfigTestTwice", - `addConfigTestTwice${Math.floor(Math.random() * 1000)}` + `addConfigTestTwice${Math.floor(Math.random() * 1000)}`, ); const label = "test"; const value = "foo"; @@ -182,7 +182,7 @@ describe("AppConfigurationClient", () => { requestOptions: { timeout: 1, }, - } + }, ); }); }); @@ -192,7 +192,7 @@ describe("AppConfigurationClient", () => { it("deletes an existing configuration setting", async () => { const key = recorder.variable( "deleteConfigTestEtag", - `deleteConfigTestEtag${Math.floor(Math.random() * 1000)}` + `deleteConfigTestEtag${Math.floor(Math.random() * 1000)}`, ); const label = "MyLabel"; const value = "MyValue"; @@ -204,12 +204,12 @@ describe("AppConfigurationClient", () => { assert.equal( result.label, label, - "Unexpected label in result from addConfigurationSetting()." + "Unexpected label in result from addConfigurationSetting().", ); assert.equal( result.value, value, - "Unexpected value in result from addConfigurationSetting()." + "Unexpected value in result from addConfigurationSetting().", ); // delete configuration @@ -228,7 +228,7 @@ describe("AppConfigurationClient", () => { it("deletes an existing configuration setting (valid etag)", async () => { const key = recorder.variable( "deleteConfigTestEtag", - `deleteConfigTestEtag${Math.floor(Math.random() * 1000)}` + `deleteConfigTestEtag${Math.floor(Math.random() * 1000)}`, ); const label = "test"; const value = "foo"; @@ -240,12 +240,12 @@ describe("AppConfigurationClient", () => { assert.equal( result.label, label, - "Unexpected label in result from addConfigurationSetting()." + "Unexpected label in result from addConfigurationSetting().", ); assert.equal( result.value, value, - "Unexpected value in result from addConfigurationSetting()." + "Unexpected value in result from addConfigurationSetting().", ); // delete configuration @@ -254,7 +254,7 @@ describe("AppConfigurationClient", () => { key, label, }, - { onlyIfUnchanged: true } + { onlyIfUnchanged: true }, ); // confirm setting no longer exists @@ -269,7 +269,7 @@ describe("AppConfigurationClient", () => { it("does not throw when deleting a non-existent configuration setting", async () => { const key = recorder.variable( "deleteConfigTestNA", - `deleteConfigTestNA${Math.floor(Math.random() * 1000)}` + `deleteConfigTestNA${Math.floor(Math.random() * 1000)}`, ); const label = "test"; @@ -286,7 +286,7 @@ describe("AppConfigurationClient", () => { it("throws when deleting a configuration setting (invalid etag)", async () => { const key = recorder.variable( "deleteConfigTestBadEtag", - `deleteConfigTestBadEtag${Math.floor(Math.random() * 1000)}` + `deleteConfigTestBadEtag${Math.floor(Math.random() * 1000)}`, ); const label = "test"; const value = "foo"; @@ -298,12 +298,12 @@ describe("AppConfigurationClient", () => { assert.equal( result.label, label, - "Unexpected label in result from addConfigurationSetting()." + "Unexpected label in result from addConfigurationSetting().", ); assert.equal( result.value, value, - "Unexpected value in result from addConfigurationSetting()." + "Unexpected value in result from addConfigurationSetting().", ); // delete configuration @@ -311,9 +311,9 @@ describe("AppConfigurationClient", () => { () => client.deleteConfigurationSetting( { key, label, etag: "invalid" }, - { onlyIfUnchanged: true } + { onlyIfUnchanged: true }, ), - 412 + 412, ); await client.deleteConfigurationSetting({ key, label }); @@ -326,7 +326,7 @@ describe("AppConfigurationClient", () => { if (isPlaybackMode()) this.skip(); const key = recorder.variable( "deleteConfigTest", - `deleteConfigTest${Math.floor(Math.random() * 1000)}` + `deleteConfigTest${Math.floor(Math.random() * 1000)}`, ); const label = "MyLabel"; const value = "MyValue"; @@ -347,7 +347,7 @@ describe("AppConfigurationClient", () => { it("retrieves an existing configuration setting", async () => { const key = recorder.variable( "getConfigTest", - `getConfigTest${Math.floor(Math.random() * 1000)}` + `getConfigTest${Math.floor(Math.random() * 1000)}`, ); const label = "test"; const value = "foo"; @@ -364,32 +364,32 @@ describe("AppConfigurationClient", () => { assert.equal( result.label, label, - "Unexpected label in result from addConfigurationSetting()." + "Unexpected label in result from addConfigurationSetting().", ); assert.equal( result.value, value, - "Unexpected value in result from addConfigurationSetting()." + "Unexpected value in result from addConfigurationSetting().", ); assert.equal( result.lastModified instanceof Date, true, - "Unexpected lastModified in result from addConfigurationSetting()." + "Unexpected lastModified in result from addConfigurationSetting().", ); assert.equal( result.isReadOnly, false, - "Unexpected readOnly in result from addConfigurationSetting()." + "Unexpected readOnly in result from addConfigurationSetting().", ); assert.deepEqual( result.tags, tags, - "Unexpected tags in result from addConfigurationSetting()." + "Unexpected tags in result from addConfigurationSetting().", ); assert.equal( result.contentType, contentType, - "Unexpected contentType in result from addConfigurationSetting()." + "Unexpected contentType in result from addConfigurationSetting().", ); // retrieve the value from the service @@ -397,37 +397,37 @@ describe("AppConfigurationClient", () => { assert.equal( remoteResult.key, key, - "Unexpected key in result from getConfigurationSetting()." + "Unexpected key in result from getConfigurationSetting().", ); assert.equal( remoteResult.label, label, - "Unexpected label in result from getConfigurationSetting()." + "Unexpected label in result from getConfigurationSetting().", ); assert.equal( remoteResult.value, value, - "Unexpected value in result from getConfigurationSetting()." + "Unexpected value in result from getConfigurationSetting().", ); assert.equal( remoteResult.lastModified instanceof Date, true, - "Unexpected lastModified in result from getConfigurationSetting()." + "Unexpected lastModified in result from getConfigurationSetting().", ); assert.equal( remoteResult.isReadOnly, false, - "Unexpected readOnly in result from getConfigurationSetting()." + "Unexpected readOnly in result from getConfigurationSetting().", ); assert.deepEqual( remoteResult.tags, tags, - "Unexpected tags in result from getConfigurationSetting()." + "Unexpected tags in result from getConfigurationSetting().", ); assert.equal( remoteResult.contentType, contentType, - "Unexpected contentType in result from getConfigurationSetting()." + "Unexpected contentType in result from getConfigurationSetting().", ); await client.deleteConfigurationSetting({ key, label }); @@ -436,7 +436,7 @@ describe("AppConfigurationClient", () => { it("throws when retrieving a non-existent configuration setting", async () => { const key = recorder.variable( "getConfigTestNA", - `getConfigTestNA${Math.floor(Math.random() * 1000)}` + `getConfigTestNA${Math.floor(Math.random() * 1000)}`, ); const label = "test"; @@ -456,7 +456,7 @@ describe("AppConfigurationClient", () => { if (isPlaybackMode()) this.skip(); const key = recorder.variable( "getConfigTest", - `getConfigTest${Math.floor(Math.random() * 1000)}` + `getConfigTest${Math.floor(Math.random() * 1000)}`, ); const label = "test"; const value = "foo"; @@ -474,7 +474,7 @@ describe("AppConfigurationClient", () => { it("by date", async () => { const key = recorder.variable( "getConfigurationSettingByDate", - `getConfigurationSettingByDate${Math.floor(Math.random() * 1000)}` + `getConfigurationSettingByDate${Math.floor(Math.random() * 1000)}`, ); const initialSetting = await client.setConfigurationSetting({ @@ -493,7 +493,7 @@ describe("AppConfigurationClient", () => { { acceptDateTime: initialSetting.lastModified, - } + }, ); assert.equal("value1", settingAtPointInTime.value); @@ -541,7 +541,7 @@ describe("AppConfigurationClient", () => { value: undefined, etag: undefined, tags: undefined, - } + }, ); }); }); @@ -573,17 +573,17 @@ describe("AppConfigurationClient", () => { beforeEach(async () => { keys.listConfigSettingA = recorder.variable( `listConfigSetting${count}A`, - `listConfigSetting${count}A${Math.floor(Math.random() * 100000)}` + `listConfigSetting${count}A${Math.floor(Math.random() * 100000)}`, ); keys.listConfigSettingB = recorder.variable( `listConfigSetting${count}B`, - `listConfigSetting${count}B${Math.floor(Math.random() * 100000)}` + `listConfigSetting${count}B${Math.floor(Math.random() * 100000)}`, ); count += 1; uniqueLabel = recorder.variable( "listConfigSettingsLabel", - `listConfigSettingsLabel${Math.floor(Math.random() * 100000)}` + `listConfigSettingsLabel${Math.floor(Math.random() * 100000)}`, ); productionASettingId.key = keys.listConfigSettingA; productionASettingId.label = uniqueLabel; @@ -640,7 +640,7 @@ describe("AppConfigurationClient", () => { isReadOnly: false, }, ], - byLabelSettings + byLabelSettings, ); }); @@ -666,7 +666,7 @@ describe("AppConfigurationClient", () => { isReadOnly: false, }, ], - byLabelSettings + byLabelSettings, ); }); @@ -691,7 +691,7 @@ describe("AppConfigurationClient", () => { isReadOnly: false, }, ], - byKeySettings + byKeySettings, ); }); @@ -718,7 +718,7 @@ describe("AppConfigurationClient", () => { isReadOnly: false, }, ], - byKeySettings + byKeySettings, ); }); @@ -754,7 +754,7 @@ describe("AppConfigurationClient", () => { value: undefined, etag: undefined, tags: undefined, - } + }, ); // only fill in the 'readOnly' field (which is really the locked field in the REST model) @@ -806,7 +806,7 @@ describe("AppConfigurationClient", () => { const key = recorder.variable( "listMultiplePagesOfResults", - `listMultiplePagesOfResults${Math.floor(Math.random() * 1000)}` + `listMultiplePagesOfResults${Math.floor(Math.random() * 1000)}`, ); // this number is arbitrarily chosen to match the size of a page + 1 @@ -820,7 +820,7 @@ describe("AppConfigurationClient", () => { key, value: `the value for ${i}`, label: i.toString(), - }) + }), ); if (i !== 0 && i % 2 === 0) { @@ -871,11 +871,11 @@ describe("AppConfigurationClient", () => { beforeEach(async () => { key1 = recorder.variable( "backslash-zero-label-1", - `backslash-zero-label-1-${Math.floor(Math.random() * 900 + 100)}` + `backslash-zero-label-1-${Math.floor(Math.random() * 900 + 100)}`, ); key2 = recorder.variable( "backslash-zero-label-2", - `backslash-zero-label-2-${Math.floor(Math.random() * 900 + 100)}` + `backslash-zero-label-2-${Math.floor(Math.random() * 900 + 100)}`, ); await client.addConfigurationSetting({ key: key1, @@ -898,7 +898,7 @@ describe("AppConfigurationClient", () => { await toSortedArray( client.listConfigurationSettings({ keyFilter: "backslash-zero-label-*", - }) + }), ) ).forEach(async (setting) => { try { @@ -915,7 +915,7 @@ describe("AppConfigurationClient", () => { labelFilter: "\0", }); const byLabelSettings = (await toSortedArray(byLabelIterator)).filter((setting) => - [key1, key2].includes(setting.key) + [key1, key2].includes(setting.key), ); assert.equal(byLabelSettings.length, 2, "got unexpected number of settings"); assertEqualSettings( @@ -933,7 +933,7 @@ describe("AppConfigurationClient", () => { isReadOnly: false, }, ], - byLabelSettings + byLabelSettings, ); }); }); @@ -947,15 +947,15 @@ describe("AppConfigurationClient", () => { beforeEach(async () => { key = recorder.variable( `listRevisions`, - `listRevisions${Math.floor(Math.random() * 100000)}` + `listRevisions${Math.floor(Math.random() * 100000)}`, ); labelA = recorder.variable( `list-revisions-A`, - `list-revisions-A${Math.floor(Math.random() * 100000)}` + `list-revisions-A${Math.floor(Math.random() * 100000)}`, ); labelB = recorder.variable( `list-revisions-B`, - `list-revisions-B${Math.floor(Math.random() * 100000)}` + `list-revisions-B${Math.floor(Math.random() * 100000)}`, ); // we'll generate two sets of keys and labels for this selection @@ -979,7 +979,7 @@ describe("AppConfigurationClient", () => { { key, label: labelA, value: "fooA1", isReadOnly: false }, { key, label: labelA, value: "fooA2", isReadOnly: false }, ], - revisions + revisions, ); }); @@ -994,7 +994,7 @@ describe("AppConfigurationClient", () => { { key, label: labelA, value: "fooA1", isReadOnly: false }, { key, label: labelA, value: "fooA2", isReadOnly: false }, ], - revisions + revisions, ); }); @@ -1009,7 +1009,7 @@ describe("AppConfigurationClient", () => { { key, label: labelB, value: "fooB1", isReadOnly: false }, { key, label: labelB, value: "fooB2", isReadOnly: false }, ], - revisions + revisions, ); }); @@ -1026,7 +1026,7 @@ describe("AppConfigurationClient", () => { { key, label: labelB, value: "fooB1", isReadOnly: false }, { key, label: labelB, value: "fooB2", isReadOnly: false }, ], - revisions + revisions, ); }); @@ -1061,7 +1061,7 @@ describe("AppConfigurationClient", () => { label: settings[0].label, value: settings[0].value, isReadOnly: settings[0].isReadOnly, - } + }, ); }); }); @@ -1070,7 +1070,7 @@ describe("AppConfigurationClient", () => { it("replaces a configuration setting", async () => { const key = recorder.variable( `setConfigTest`, - `setConfigTest${Math.floor(Math.random() * 1000)}` + `setConfigTest${Math.floor(Math.random() * 1000)}`, ); const label = "test"; const contentType = "application/json"; @@ -1092,32 +1092,32 @@ describe("AppConfigurationClient", () => { assert.equal( result.label, label, - "Unexpected label in result from addConfigurationSetting()." + "Unexpected label in result from addConfigurationSetting().", ); assert.equal( result.value, "foo", - "Unexpected value in result from addConfigurationSetting()." + "Unexpected value in result from addConfigurationSetting().", ); assert.equal( result.lastModified instanceof Date, true, - "Unexpected lastModified in result from addConfigurationSetting()." + "Unexpected lastModified in result from addConfigurationSetting().", ); assert.equal( result.isReadOnly, false, - "Unexpected readOnly in result from addConfigurationSetting()." + "Unexpected readOnly in result from addConfigurationSetting().", ); assert.deepEqual( result.tags, tags, - "Unexpected tags in result from addConfigurationSetting()." + "Unexpected tags in result from addConfigurationSetting().", ); assert.equal( result.contentType, contentType, - "Unexpected contentType in result from addConfigurationSetting()." + "Unexpected contentType in result from addConfigurationSetting().", ); const replacedResult = await client.setConfigurationSetting({ key, label, value: "foo2" }); @@ -1125,37 +1125,37 @@ describe("AppConfigurationClient", () => { assert.equal( replacedResult.key, key, - "Unexpected key in result from setConfigurationSetting()." + "Unexpected key in result from setConfigurationSetting().", ); assert.equal( replacedResult.label, label, - "Unexpected label in result from setConfigurationSetting()." + "Unexpected label in result from setConfigurationSetting().", ); assert.equal( replacedResult.value, "foo2", - "Unexpected value in result from setConfigurationSetting()." + "Unexpected value in result from setConfigurationSetting().", ); assert.equal( replacedResult.lastModified instanceof Date, true, - "Unexpected lastModified in result from setConfigurationSetting()." + "Unexpected lastModified in result from setConfigurationSetting().", ); assert.equal( replacedResult.isReadOnly, false, - "Unexpected readOnly in result from setConfigurationSetting()." + "Unexpected readOnly in result from setConfigurationSetting().", ); assert.deepEqual( replacedResult.tags, {}, - "Unexpected tags in result from setConfigurationSetting()." + "Unexpected tags in result from setConfigurationSetting().", ); assert.strictEqual( replacedResult.contentType, undefined, - "Unexpected contentType in result from setConfigurationSetting()." + "Unexpected contentType in result from setConfigurationSetting().", ); await client.deleteConfigurationSetting({ key, label }); @@ -1164,7 +1164,7 @@ describe("AppConfigurationClient", () => { it("replaces a configuration setting (valid etag)", async () => { const key = recorder.variable( `setConfigTestEtag`, - `setConfigTestEtag${Math.floor(Math.random() * 1000)}` + `setConfigTestEtag${Math.floor(Math.random() * 1000)}`, ); const label = "test"; const contentType = "application/json"; @@ -1186,32 +1186,32 @@ describe("AppConfigurationClient", () => { assert.equal( result.label, label, - "Unexpected label in result from addConfigurationSetting()." + "Unexpected label in result from addConfigurationSetting().", ); assert.equal( result.value, "foo", - "Unexpected value in result from addConfigurationSetting()." + "Unexpected value in result from addConfigurationSetting().", ); assert.equal( result.lastModified instanceof Date, true, - "Unexpected lastModified in result from addConfigurationSetting()." + "Unexpected lastModified in result from addConfigurationSetting().", ); assert.equal( result.isReadOnly, false, - "Unexpected readOnly in result from addConfigurationSetting()." + "Unexpected readOnly in result from addConfigurationSetting().", ); assert.deepEqual( result.tags, tags, - "Unexpected tags in result from addConfigurationSetting()." + "Unexpected tags in result from addConfigurationSetting().", ); assert.equal( result.contentType, contentType, - "Unexpected contentType in result from addConfigurationSetting()." + "Unexpected contentType in result from addConfigurationSetting().", ); const replacedResult = await client.setConfigurationSetting( @@ -1221,43 +1221,43 @@ describe("AppConfigurationClient", () => { value: "foo2", etag: result.etag, }, - { onlyIfUnchanged: true } + { onlyIfUnchanged: true }, ); assert.equal( replacedResult.key, key, - "Unexpected key in result from setConfigurationSetting()." + "Unexpected key in result from setConfigurationSetting().", ); assert.equal( replacedResult.label, label, - "Unexpected label in result from setConfigurationSetting()." + "Unexpected label in result from setConfigurationSetting().", ); assert.equal( replacedResult.value, "foo2", - "Unexpected value in result from setConfigurationSetting()." + "Unexpected value in result from setConfigurationSetting().", ); assert.equal( replacedResult.lastModified instanceof Date, true, - "Unexpected lastModified in result from setConfigurationSetting()." + "Unexpected lastModified in result from setConfigurationSetting().", ); assert.equal( replacedResult.isReadOnly, false, - "Unexpected readOnly in result from setConfigurationSetting()." + "Unexpected readOnly in result from setConfigurationSetting().", ); assert.deepEqual( replacedResult.tags, {}, - "Unexpected tags in result from setConfigurationSetting()." + "Unexpected tags in result from setConfigurationSetting().", ); assert.strictEqual( replacedResult.contentType, undefined, - "Unexpected contentType in result from setConfigurationSetting()." + "Unexpected contentType in result from setConfigurationSetting().", ); await client.deleteConfigurationSetting({ key, label }); @@ -1266,7 +1266,7 @@ describe("AppConfigurationClient", () => { it("creates a configuration setting if it doesn't exist", async () => { const key = recorder.variable( `setConfigTestNA`, - `setConfigTestNA${Math.floor(Math.random() * 1000)}` + `setConfigTestNA${Math.floor(Math.random() * 1000)}`, ); const label = "test"; const value = "foo"; @@ -1276,32 +1276,32 @@ describe("AppConfigurationClient", () => { assert.equal( result.label, label, - "Unexpected label in result from setConfigurationSetting()." + "Unexpected label in result from setConfigurationSetting().", ); assert.equal( result.value, value, - "Unexpected value in result from setConfigurationSetting()." + "Unexpected value in result from setConfigurationSetting().", ); assert.equal( result.lastModified instanceof Date, true, - "Unexpected lastModified in result from setConfigurationSetting()." + "Unexpected lastModified in result from setConfigurationSetting().", ); assert.equal( result.isReadOnly, false, - "Unexpected readOnly in result from setConfigurationSetting()." + "Unexpected readOnly in result from setConfigurationSetting().", ); assert.deepEqual( result.tags, {}, - "Unexpected tags in result from setConfigurationSetting()." + "Unexpected tags in result from setConfigurationSetting().", ); assert.strictEqual( result.contentType, undefined, - "Unexpected contentType in result from setConfigurationSetting()." + "Unexpected contentType in result from setConfigurationSetting().", ); }); @@ -1310,7 +1310,7 @@ describe("AppConfigurationClient", () => { if (isPlaybackMode()) this.skip(); const key = recorder.variable( `setConfigTestNA`, - `setConfigTestNA${Math.floor(Math.random() * 1000)}` + `setConfigTestNA${Math.floor(Math.random() * 1000)}`, ); const label = "test"; const value = "foo"; @@ -1321,7 +1321,7 @@ describe("AppConfigurationClient", () => { requestOptions: { timeout: 1, }, - } + }, ); }); }); diff --git a/sdk/appconfiguration/app-configuration/test/public/secretReference.spec.ts b/sdk/appconfiguration/app-configuration/test/public/secretReference.spec.ts index ee819c911893..71d2b8feb6d2 100644 --- a/sdk/appconfiguration/app-configuration/test/public/secretReference.spec.ts +++ b/sdk/appconfiguration/app-configuration/test/public/secretReference.spec.ts @@ -34,7 +34,7 @@ describe("AppConfigurationClient - SecretReference", () => { value: { secretId: `https://vault_name.vault.azure.net/secrets/${recorder.variable( "name-2", - `name-2${Math.floor(Math.random() * 1000)}` + `name-2${Math.floor(Math.random() * 1000)}`, )}`, }, isReadOnly: false, @@ -46,7 +46,7 @@ describe("AppConfigurationClient - SecretReference", () => { function assertSecretReferenceProps( actual: Omit, - expected: ConfigurationSetting + expected: ConfigurationSetting, ): void { assert.equal(isSecretReference(actual), true, "Expected to get the SecretReference"); const actualSecretReference = parseSecretReference(actual); @@ -54,7 +54,7 @@ describe("AppConfigurationClient - SecretReference", () => { assert.equal( actual.key, expected.key, - "Key from the response from get request is not as expected" + "Key from the response from get request is not as expected", ); assert.equal(actualSecretReference.value.secretId, expected.value.secretId); assert.equal(actual.isReadOnly, expected.isReadOnly); @@ -76,7 +76,7 @@ describe("AppConfigurationClient - SecretReference", () => { key: baseSetting.key, label: baseSetting.label, }, - false + false, ); await client.deleteConfigurationSetting({ key: baseSetting.key, @@ -100,7 +100,7 @@ describe("AppConfigurationClient - SecretReference", () => { }); const newSecretId = `https://vault_name.vault.azure.net/secrets/${recorder.variable( "name-4", - `name-4${Math.floor(Math.random() * 1000)}` + `name-4${Math.floor(Math.random() * 1000)}`, )}`; assertSecretReferenceProps(getResponse, baseSetting); @@ -130,7 +130,7 @@ describe("AppConfigurationClient - SecretReference", () => { }; const newSecretId = `https://vault_name.vault.azure.net/secrets/${recorder.variable( "name-5", - `name-5${Math.floor(Math.random() * 1000)}` + `name-5${Math.floor(Math.random() * 1000)}`, )}`; await client.addConfigurationSetting(secondSetting); @@ -149,7 +149,7 @@ describe("AppConfigurationClient - SecretReference", () => { assertSecretReferenceProps(setting, secondSetting); await client.setReadOnly( { key: setting.key, label: setting.label }, - !secondSetting.isReadOnly + !secondSetting.isReadOnly, ); } } @@ -171,7 +171,7 @@ describe("AppConfigurationClient - SecretReference", () => { assert.equal( numberOFSecretReferencesReceived, 0, - "Unexpected number of SecretReferences seen after updating" + "Unexpected number of SecretReferences seen after updating", ); await client.setReadOnly({ key: secondSetting.key, label: secondSetting.label }, false); await client.deleteConfigurationSetting({ @@ -195,7 +195,7 @@ describe("AppConfigurationClient - SecretReference", () => { assert.equal( (await client.getConfigurationSetting({ key: setting.key })).value, value, - "message" + "message", ); await client.deleteConfigurationSetting({ key: setting.key }); }); diff --git a/sdk/appconfiguration/app-configuration/test/public/snapshot.spec.ts b/sdk/appconfiguration/app-configuration/test/public/snapshot.spec.ts index 8702a9d3f849..68d48557ccfc 100644 --- a/sdk/appconfiguration/app-configuration/test/public/snapshot.spec.ts +++ b/sdk/appconfiguration/app-configuration/test/public/snapshot.spec.ts @@ -121,7 +121,7 @@ describe("AppConfigurationClient snapshot", () => { await client.setConfigurationSetting({ ...configSetting1, value: "value2" }); const snapshotConfigurationSettings = client.listConfigurationSettingsForSnapshot( - newSnapshot.name + newSnapshot.name, ); for await (const setting of snapshotConfigurationSettings) { @@ -142,7 +142,7 @@ describe("AppConfigurationClient snapshot", () => { assert.equal( archivedSnapshot.status, "archived", - "Unexpected status in result from archiveSnapshot()." + "Unexpected status in result from archiveSnapshot().", ); }); @@ -167,7 +167,7 @@ describe("AppConfigurationClient snapshot", () => { assert.equal( unarchivedSnapshot.status, "ready", - "Unexpected status in result from archiveSnapshot()." + "Unexpected status in result from archiveSnapshot().", ); await client.archiveSnapshot(newSnapshot.name); diff --git a/sdk/appconfiguration/app-configuration/test/public/throwOrNotThrow.spec.ts b/sdk/appconfiguration/app-configuration/test/public/throwOrNotThrow.spec.ts index f4c70a51fff7..f28542bd555a 100644 --- a/sdk/appconfiguration/app-configuration/test/public/throwOrNotThrow.spec.ts +++ b/sdk/appconfiguration/app-configuration/test/public/throwOrNotThrow.spec.ts @@ -52,7 +52,7 @@ describe("Various error cases", () => { it("get: Non-existent key throws 404", async () => { await assertThrowsRestError( () => client.getConfigurationSetting({ key: nonExistentKey }), - 404 + 404, ); }); @@ -68,9 +68,9 @@ describe("Various error cases", () => { ...addedSetting, etag: nonMatchingETag, // purposefully make the etag not match the server }, - { onlyIfUnchanged: true } + { onlyIfUnchanged: true }, ), - 412 + 412, ); }); diff --git a/sdk/appconfiguration/app-configuration/test/public/tracing.spec.ts b/sdk/appconfiguration/app-configuration/test/public/tracing.spec.ts index bfed3b9dec9b..44005c84b29a 100644 --- a/sdk/appconfiguration/app-configuration/test/public/tracing.spec.ts +++ b/sdk/appconfiguration/app-configuration/test/public/tracing.spec.ts @@ -23,7 +23,7 @@ describe("supports tracing", () => { it("can trace through the various options", async function () { const key = recorder.variable( "noLabelTests", - `noLabelTests${Math.floor(Math.random() * 1000)}` + `noLabelTests${Math.floor(Math.random() * 1000)}`, ); await assert.supportsTracing( async (options) => { @@ -43,7 +43,7 @@ describe("supports tracing", () => { "AppConfigurationClient.setConfigurationSetting", "AppConfigurationClient.setReadOnly", "AppConfigurationClient.deleteConfigurationSetting", - ] + ], ); try { await client.setReadOnly({ key: key }, false); diff --git a/sdk/appconfiguration/app-configuration/test/public/utils/testHelpers.ts b/sdk/appconfiguration/app-configuration/test/public/utils/testHelpers.ts index 8e859dff61d6..32aa4dbeff11 100644 --- a/sdk/appconfiguration/app-configuration/test/public/utils/testHelpers.ts +++ b/sdk/appconfiguration/app-configuration/test/public/utils/testHelpers.ts @@ -79,7 +79,7 @@ export function getTokenAuthenticationCredential(): CredsAndEndpoint { } export function createAppConfigurationClientForTests( - options?: AppConfigurationClientOptions + options?: AppConfigurationClientOptions, ): AppConfigurationClient { const connectionString = env["APPCONFIG_CONNECTION_STRING"]; @@ -95,7 +95,7 @@ export function createAppConfigurationClientForTests( export async function deleteKeyCompletely( keys: string[], - client: AppConfigurationClient + client: AppConfigurationClient, ): Promise { const settingsIterator = client.listConfigurationSettings({ keyFilter: keys.join(","), @@ -125,7 +125,7 @@ export async function toSortedArray( ConfigurationSetting, ListConfigurationSettingPage | ListRevisionsPage >, - compareFn?: (a: ConfigurationSetting, b: ConfigurationSetting) => number + compareFn?: (a: ConfigurationSetting, b: ConfigurationSetting) => number, ): Promise { const settings: ConfigurationSetting[] = []; @@ -145,7 +145,7 @@ export async function toSortedArray( settings.sort((a, b) => compareFn ? compareFn(a, b) - : `${a.key}-${a.label}-${a.value}`.localeCompare(`${b.key}-${b.label}-${b.value}`) + : `${a.key}-${a.label}-${a.value}`.localeCompare(`${b.key}-${b.label}-${b.value}`), ); return settings; @@ -153,7 +153,7 @@ export async function toSortedArray( export async function toSortedSnapshotArray( pagedIterator: PagedAsyncIterableIterator, - compareFn?: (a: ConfigurationSnapshot, b: ConfigurationSnapshot) => number + compareFn?: (a: ConfigurationSnapshot, b: ConfigurationSnapshot) => number, ): Promise { const snapshots: ConfigurationSnapshot[] = []; @@ -173,14 +173,16 @@ export async function toSortedSnapshotArray( snapshots.sort((a, b) => compareFn ? compareFn(a, b) - : `${a.name}-${a.itemCount}-${a.status}`.localeCompare(`${b.name}-${b.itemCount}-${b.status}`) + : `${a.name}-${a.itemCount}-${a.status}`.localeCompare( + `${b.name}-${b.itemCount}-${b.status}`, + ), ); return snapshots; } export function assertEqualSettings( expected: Pick[], - actual: ConfigurationSetting[] + actual: ConfigurationSetting[], ): void { actual = actual.map((setting) => { return { @@ -197,7 +199,7 @@ export function assertEqualSettings( export async function assertThrowsRestError( testFunction: () => Promise, expectedStatusCode: number, - message: string = "" + message: string = "", ): Promise { try { await testFunction(); @@ -220,7 +222,7 @@ export async function assertThrowsRestError( export async function assertThrowsAbortError( testFunction: () => Promise, - message = "" + message = "", ): Promise { try { await testFunction(); @@ -243,17 +245,17 @@ export async function assertThrowsAbortError( */ export function assertEqualSnapshot( snapshot1: ConfigurationSnapshot, - snapshot2: ConfigurationSnapshot + snapshot2: ConfigurationSnapshot, ): void { assert.equal(snapshot1.name, snapshot2.name, "Unexpected name in result from getSnapshot()."); assert.equal( snapshot1.retentionPeriodInSeconds, snapshot2.retentionPeriodInSeconds, - "Unexpected retentionPeriod in result from getSnapshot()." + "Unexpected retentionPeriod in result from getSnapshot().", ); assert.deepEqual( snapshot1.filters, snapshot2.filters, - "Unexpected filters in result from getSnapshot()." + "Unexpected filters in result from getSnapshot().", ); } diff --git a/sdk/appconfiguration/perf-tests/app-configuration/package.json b/sdk/appconfiguration/perf-tests/app-configuration/package.json index 2d5a31f4d5b8..02a25ff55525 100644 --- a/sdk/appconfiguration/perf-tests/app-configuration/package.json +++ b/sdk/appconfiguration/perf-tests/app-configuration/package.json @@ -16,11 +16,11 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -29,9 +29,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm test-dist types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/appconfiguration/perf-tests/app-configuration/test/listSettings.spec.ts b/sdk/appconfiguration/perf-tests/app-configuration/test/listSettings.spec.ts index 82d6ce8a1114..e126bf16a2f6 100644 --- a/sdk/appconfiguration/perf-tests/app-configuration/test/listSettings.spec.ts +++ b/sdk/appconfiguration/perf-tests/app-configuration/test/listSettings.spec.ts @@ -35,7 +35,7 @@ export class ListSettingsTest extends AppConfigTest { }); }, this.parsedOptions.count.value, - 32 + 32, ); } @@ -67,7 +67,7 @@ export class ListSettingsTest extends AppConfigTest { await this.client.deleteConfigurationSetting({ key: keys[count] }); }, this.parsedOptions.count.value, - 32 + 32, ); } } diff --git a/sdk/appservice/arm-appservice-rest/package.json b/sdk/appservice/arm-appservice-rest/package.json index 052fb5a8485a..b92fd5dcaee8 100644 --- a/sdk/appservice/arm-appservice-rest/package.json +++ b/sdk/appservice/arm-appservice-rest/package.json @@ -47,11 +47,11 @@ "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -85,7 +85,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^1.0.4", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/appservice/arm-appservice-rest/samples-dev/appServiceEnvironmentsGetInboundNetworkDependenciesEndpointsSample.ts b/sdk/appservice/arm-appservice-rest/samples-dev/appServiceEnvironmentsGetInboundNetworkDependenciesEndpointsSample.ts index fb4303ed2a3f..4adb057dde1f 100644 --- a/sdk/appservice/arm-appservice-rest/samples-dev/appServiceEnvironmentsGetInboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/appservice/arm-appservice-rest/samples-dev/appServiceEnvironmentsGetInboundNetworkDependenciesEndpointsSample.ts @@ -26,7 +26,7 @@ async function getInboundNetworkDependenciesEndpoints() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/inboundNetworkDependenciesEndpoints", subscriptionId, resourceGroupName, - name + name, ) .get(); const res = paginate(client, initialResposne); diff --git a/sdk/appservice/arm-appservice-rest/samples-dev/appServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsSample.ts b/sdk/appservice/arm-appservice-rest/samples-dev/appServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsSample.ts index c1121afdbfbf..de5f44609643 100644 --- a/sdk/appservice/arm-appservice-rest/samples-dev/appServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/appservice/arm-appservice-rest/samples-dev/appServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsSample.ts @@ -26,7 +26,7 @@ async function getOutboundNetworkDependenciesEndpoints() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/outboundNetworkDependenciesEndpoints", subscriptionId, resourceGroupName, - name + name, ) .get(); const res = paginate(client, initialResposne); diff --git a/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansCreateOrUpdateSample.ts b/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansCreateOrUpdateSample.ts index 21c9cb096caa..a46020d121e9 100644 --- a/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansCreateOrUpdateSample.ts +++ b/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansCreateOrUpdateSample.ts @@ -34,7 +34,7 @@ async function createOrUpdateAppServicePlan() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}", subscriptionId, resourceGroupName, - name + name, ) .put(appServicePlan); console.log(result); diff --git a/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansDeleteSample.ts b/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansDeleteSample.ts index 2ac7d6250d91..44e0b2f3bf69 100644 --- a/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansDeleteSample.ts +++ b/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansDeleteSample.ts @@ -25,7 +25,7 @@ async function deleteAppServicePlan() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}", subscriptionId, resourceGroupName, - name + name, ) .delete(); console.log(result); diff --git a/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansGetSample.ts b/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansGetSample.ts index 0d83f9c3b6c1..27e813f89002 100644 --- a/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansGetSample.ts +++ b/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansGetSample.ts @@ -25,7 +25,7 @@ async function getAppServicePlan() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}", subscriptionId, resourceGroupName, - name + name, ) .get(); console.log(result); diff --git a/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansListByResourceGroupSample.ts b/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansListByResourceGroupSample.ts index 5abc352ab8f8..da2bd2bfd29c 100644 --- a/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansListByResourceGroupSample.ts +++ b/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansListByResourceGroupSample.ts @@ -24,7 +24,7 @@ async function listAppServicePlansByResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(); const res = paginate(client, initialResposne); diff --git a/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansUpdateSample.ts b/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansUpdateSample.ts index 1f052d1fa1d9..6f3c3997363c 100644 --- a/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansUpdateSample.ts +++ b/sdk/appservice/arm-appservice-rest/samples-dev/appServicePlansUpdateSample.ts @@ -28,7 +28,7 @@ async function patchServicePlan() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}", subscriptionId, resourceGroupName, - name + name, ) .patch(appServicePlan); console.log(result); diff --git a/sdk/appservice/arm-appservice-rest/src/clientDefinitions.ts b/sdk/appservice/arm-appservice-rest/src/clientDefinitions.ts index 56aac60547e1..b619c50fd681 100644 --- a/sdk/appservice/arm-appservice-rest/src/clientDefinitions.ts +++ b/sdk/appservice/arm-appservice-rest/src/clientDefinitions.ts @@ -2191,7 +2191,7 @@ import { Client } from "@azure-rest/core-client"; export interface AppServiceCertificateOrdersList { /** List all certificate orders in a subscription. */ get( - options?: AppServiceCertificateOrdersListParameters + options?: AppServiceCertificateOrdersListParameters, ): Promise< AppServiceCertificateOrdersList200Response | AppServiceCertificateOrdersListdefaultResponse >; @@ -2200,7 +2200,7 @@ export interface AppServiceCertificateOrdersList { export interface AppServiceCertificateOrdersValidatePurchaseInformation { /** Validate information for a certificate order. */ post( - options: AppServiceCertificateOrdersValidatePurchaseInformationParameters + options: AppServiceCertificateOrdersValidatePurchaseInformationParameters, ): Promise< | AppServiceCertificateOrdersValidatePurchaseInformation204Response | AppServiceCertificateOrdersValidatePurchaseInformationdefaultResponse @@ -2210,7 +2210,7 @@ export interface AppServiceCertificateOrdersValidatePurchaseInformation { export interface AppServiceCertificateOrdersListByResourceGroup { /** Get certificate orders in a resource group. */ get( - options?: AppServiceCertificateOrdersListByResourceGroupParameters + options?: AppServiceCertificateOrdersListByResourceGroupParameters, ): Promise< | AppServiceCertificateOrdersListByResourceGroup200Response | AppServiceCertificateOrdersListByResourceGroupdefaultResponse @@ -2220,13 +2220,13 @@ export interface AppServiceCertificateOrdersListByResourceGroup { export interface AppServiceCertificateOrdersGet { /** Get a certificate order. */ get( - options?: AppServiceCertificateOrdersGetParameters + options?: AppServiceCertificateOrdersGetParameters, ): Promise< AppServiceCertificateOrdersGet200Response | AppServiceCertificateOrdersGetdefaultResponse >; /** Create or update a certificate purchase order. */ put( - options: AppServiceCertificateOrdersCreateOrUpdateParameters + options: AppServiceCertificateOrdersCreateOrUpdateParameters, ): Promise< | AppServiceCertificateOrdersCreateOrUpdate200Response | AppServiceCertificateOrdersCreateOrUpdate201Response @@ -2234,7 +2234,7 @@ export interface AppServiceCertificateOrdersGet { >; /** Delete an existing certificate order. */ delete( - options?: AppServiceCertificateOrdersDeleteParameters + options?: AppServiceCertificateOrdersDeleteParameters, ): Promise< | AppServiceCertificateOrdersDelete200Response | AppServiceCertificateOrdersDelete204Response @@ -2242,7 +2242,7 @@ export interface AppServiceCertificateOrdersGet { >; /** Create or update a certificate purchase order. */ patch( - options: AppServiceCertificateOrdersUpdateParameters + options: AppServiceCertificateOrdersUpdateParameters, ): Promise< AppServiceCertificateOrdersUpdate200Response | AppServiceCertificateOrdersUpdatedefaultResponse >; @@ -2251,7 +2251,7 @@ export interface AppServiceCertificateOrdersGet { export interface AppServiceCertificateOrdersListCertificates { /** List all certificates associated with a certificate order. */ get( - options?: AppServiceCertificateOrdersListCertificatesParameters + options?: AppServiceCertificateOrdersListCertificatesParameters, ): Promise< | AppServiceCertificateOrdersListCertificates200Response | AppServiceCertificateOrdersListCertificatesdefaultResponse @@ -2261,14 +2261,14 @@ export interface AppServiceCertificateOrdersListCertificates { export interface AppServiceCertificateOrdersGetCertificate { /** Get the certificate associated with a certificate order. */ get( - options?: AppServiceCertificateOrdersGetCertificateParameters + options?: AppServiceCertificateOrdersGetCertificateParameters, ): Promise< | AppServiceCertificateOrdersGetCertificate200Response | AppServiceCertificateOrdersGetCertificatedefaultResponse >; /** Creates or updates a certificate and associates with key vault secret. */ put( - options: AppServiceCertificateOrdersCreateOrUpdateCertificateParameters + options: AppServiceCertificateOrdersCreateOrUpdateCertificateParameters, ): Promise< | AppServiceCertificateOrdersCreateOrUpdateCertificate200Response | AppServiceCertificateOrdersCreateOrUpdateCertificate201Response @@ -2276,7 +2276,7 @@ export interface AppServiceCertificateOrdersGetCertificate { >; /** Delete the certificate associated with a certificate order. */ delete( - options?: AppServiceCertificateOrdersDeleteCertificateParameters + options?: AppServiceCertificateOrdersDeleteCertificateParameters, ): Promise< | AppServiceCertificateOrdersDeleteCertificate200Response | AppServiceCertificateOrdersDeleteCertificate204Response @@ -2284,7 +2284,7 @@ export interface AppServiceCertificateOrdersGetCertificate { >; /** Creates or updates a certificate and associates with key vault secret. */ patch( - options: AppServiceCertificateOrdersUpdateCertificateParameters + options: AppServiceCertificateOrdersUpdateCertificateParameters, ): Promise< | AppServiceCertificateOrdersUpdateCertificate200Response | AppServiceCertificateOrdersUpdateCertificatedefaultResponse @@ -2294,7 +2294,7 @@ export interface AppServiceCertificateOrdersGetCertificate { export interface AppServiceCertificateOrdersReissue { /** Reissue an existing certificate order. */ post( - options: AppServiceCertificateOrdersReissueParameters + options: AppServiceCertificateOrdersReissueParameters, ): Promise< | AppServiceCertificateOrdersReissue204Response | AppServiceCertificateOrdersReissuedefaultResponse @@ -2304,7 +2304,7 @@ export interface AppServiceCertificateOrdersReissue { export interface AppServiceCertificateOrdersRenew { /** Renew an existing certificate order. */ post( - options: AppServiceCertificateOrdersRenewParameters + options: AppServiceCertificateOrdersRenewParameters, ): Promise< AppServiceCertificateOrdersRenew204Response | AppServiceCertificateOrdersRenewdefaultResponse >; @@ -2313,7 +2313,7 @@ export interface AppServiceCertificateOrdersRenew { export interface AppServiceCertificateOrdersResendEmail { /** Resend certificate email. */ post( - options?: AppServiceCertificateOrdersResendEmailParameters + options?: AppServiceCertificateOrdersResendEmailParameters, ): Promise< | AppServiceCertificateOrdersResendEmail204Response | AppServiceCertificateOrdersResendEmaildefaultResponse @@ -2323,7 +2323,7 @@ export interface AppServiceCertificateOrdersResendEmail { export interface AppServiceCertificateOrdersResendRequestEmails { /** Resend domain verification ownership email containing steps on how to verify a domain for a given certificate order */ post( - options: AppServiceCertificateOrdersResendRequestEmailsParameters + options: AppServiceCertificateOrdersResendRequestEmailsParameters, ): Promise< | AppServiceCertificateOrdersResendRequestEmails204Response | AppServiceCertificateOrdersResendRequestEmailsdefaultResponse @@ -2333,7 +2333,7 @@ export interface AppServiceCertificateOrdersResendRequestEmails { export interface AppServiceCertificateOrdersRetrieveSiteSeal { /** This method is used to obtain the site seal information for an issued certificate. A site seal is a graphic that the certificate purchaser can embed on their web site to show their visitors information about their SSL certificate. If a web site visitor clicks on the site seal image, a pop-up page is displayed that contains detailed information about the SSL certificate. The site seal token is used to link the site seal graphic image to the appropriate certificate details pop-up page display when a user clicks on the site seal. The site seal images are expected to be static images and hosted by the reseller, to minimize delays for customer page load times. */ post( - options: AppServiceCertificateOrdersRetrieveSiteSealParameters + options: AppServiceCertificateOrdersRetrieveSiteSealParameters, ): Promise< | AppServiceCertificateOrdersRetrieveSiteSeal200Response | AppServiceCertificateOrdersRetrieveSiteSealdefaultResponse @@ -2343,7 +2343,7 @@ export interface AppServiceCertificateOrdersRetrieveSiteSeal { export interface AppServiceCertificateOrdersVerifyDomainOwnership { /** Verify domain ownership for this certificate order. */ post( - options?: AppServiceCertificateOrdersVerifyDomainOwnershipParameters + options?: AppServiceCertificateOrdersVerifyDomainOwnershipParameters, ): Promise< | AppServiceCertificateOrdersVerifyDomainOwnership204Response | AppServiceCertificateOrdersVerifyDomainOwnershipdefaultResponse @@ -2353,7 +2353,7 @@ export interface AppServiceCertificateOrdersVerifyDomainOwnership { export interface AppServiceCertificateOrdersRetrieveCertificateActions { /** Retrieve the list of certificate actions. */ post( - options?: AppServiceCertificateOrdersRetrieveCertificateActionsParameters + options?: AppServiceCertificateOrdersRetrieveCertificateActionsParameters, ): Promise< | AppServiceCertificateOrdersRetrieveCertificateActions200Response | AppServiceCertificateOrdersRetrieveCertificateActionsdefaultResponse @@ -2363,7 +2363,7 @@ export interface AppServiceCertificateOrdersRetrieveCertificateActions { export interface AppServiceCertificateOrdersRetrieveCertificateEmailHistory { /** Retrieve email history. */ post( - options?: AppServiceCertificateOrdersRetrieveCertificateEmailHistoryParameters + options?: AppServiceCertificateOrdersRetrieveCertificateEmailHistoryParameters, ): Promise< | AppServiceCertificateOrdersRetrieveCertificateEmailHistory200Response | AppServiceCertificateOrdersRetrieveCertificateEmailHistorydefaultResponse @@ -2373,7 +2373,7 @@ export interface AppServiceCertificateOrdersRetrieveCertificateEmailHistory { export interface CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponse { /** Microsoft.CertificateRegistration to get the list of detectors for this RP. */ get( - options?: CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseParameters + options?: CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseParameters, ): Promise< | CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponse200Response | CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponsedefaultResponse @@ -2383,7 +2383,7 @@ export interface CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetec export interface CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponse { /** Microsoft.CertificateRegistration call to get a detector response from App Lens. */ get( - options?: CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseParameters + options?: CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseParameters, ): Promise< | CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponse200Response | CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponsedefaultResponse @@ -2393,7 +2393,7 @@ export interface CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetect export interface CertificateRegistrationProviderListOperations { /** Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider */ get( - options?: CertificateRegistrationProviderListOperationsParameters + options?: CertificateRegistrationProviderListOperationsParameters, ): Promise< | CertificateRegistrationProviderListOperations200Response | CertificateRegistrationProviderListOperationsdefaultResponse @@ -2403,21 +2403,21 @@ export interface CertificateRegistrationProviderListOperations { export interface DomainsCheckAvailability { /** Check if a domain is available for registration. */ post( - options: DomainsCheckAvailabilityParameters + options: DomainsCheckAvailabilityParameters, ): Promise; } export interface DomainsList { /** Get all domains in a subscription. */ get( - options?: DomainsListParameters + options?: DomainsListParameters, ): Promise; } export interface DomainsGetControlCenterSsoRequest { /** Generate a single sign-on request for the domain management portal. */ post( - options?: DomainsGetControlCenterSsoRequestParameters + options?: DomainsGetControlCenterSsoRequestParameters, ): Promise< DomainsGetControlCenterSsoRequest200Response | DomainsGetControlCenterSsoRequestdefaultResponse >; @@ -2426,14 +2426,14 @@ export interface DomainsGetControlCenterSsoRequest { export interface DomainsListRecommendations { /** Get domain name recommendations based on keywords. */ post( - options: DomainsListRecommendationsParameters + options: DomainsListRecommendationsParameters, ): Promise; } export interface DomainsListByResourceGroup { /** Get all domains in a resource group. */ get( - options?: DomainsListByResourceGroupParameters + options?: DomainsListByResourceGroupParameters, ): Promise; } @@ -2442,7 +2442,7 @@ export interface DomainsGet { get(options?: DomainsGetParameters): Promise; /** Creates or updates a domain. */ put( - options: DomainsCreateOrUpdateParameters + options: DomainsCreateOrUpdateParameters, ): Promise< | DomainsCreateOrUpdate200Response | DomainsCreateOrUpdate202Response @@ -2450,18 +2450,18 @@ export interface DomainsGet { >; /** Delete a domain. */ delete( - options?: DomainsDeleteParameters + options?: DomainsDeleteParameters, ): Promise; /** Creates or updates a domain. */ patch( - options: DomainsUpdateParameters + options: DomainsUpdateParameters, ): Promise; } export interface DomainsListOwnershipIdentifiers { /** Lists domain ownership identifiers. */ get( - options?: DomainsListOwnershipIdentifiersParameters + options?: DomainsListOwnershipIdentifiersParameters, ): Promise< DomainsListOwnershipIdentifiers200Response | DomainsListOwnershipIdentifiersdefaultResponse >; @@ -2470,20 +2470,20 @@ export interface DomainsListOwnershipIdentifiers { export interface DomainsGetOwnershipIdentifier { /** Get ownership identifier for domain */ get( - options?: DomainsGetOwnershipIdentifierParameters + options?: DomainsGetOwnershipIdentifierParameters, ): Promise< DomainsGetOwnershipIdentifier200Response | DomainsGetOwnershipIdentifierdefaultResponse >; /** Creates an ownership identifier for a domain or updates identifier details for an existing identifier */ put( - options: DomainsCreateOrUpdateOwnershipIdentifierParameters + options: DomainsCreateOrUpdateOwnershipIdentifierParameters, ): Promise< | DomainsCreateOrUpdateOwnershipIdentifier200Response | DomainsCreateOrUpdateOwnershipIdentifierdefaultResponse >; /** Delete ownership identifier for domain */ delete( - options?: DomainsDeleteOwnershipIdentifierParameters + options?: DomainsDeleteOwnershipIdentifierParameters, ): Promise< | DomainsDeleteOwnershipIdentifier200Response | DomainsDeleteOwnershipIdentifier204Response @@ -2491,7 +2491,7 @@ export interface DomainsGetOwnershipIdentifier { >; /** Creates an ownership identifier for a domain or updates identifier details for an existing identifier */ patch( - options: DomainsUpdateOwnershipIdentifierParameters + options: DomainsUpdateOwnershipIdentifierParameters, ): Promise< DomainsUpdateOwnershipIdentifier200Response | DomainsUpdateOwnershipIdentifierdefaultResponse >; @@ -2500,7 +2500,7 @@ export interface DomainsGetOwnershipIdentifier { export interface DomainsRenew { /** Renew a domain. */ post( - options?: DomainsRenewParameters + options?: DomainsRenewParameters, ): Promise< | DomainsRenew200Response | DomainsRenew202Response @@ -2512,7 +2512,7 @@ export interface DomainsRenew { export interface DomainsTransferOut { /** Transfer out domain to another registrar */ put( - options?: DomainsTransferOutParameters + options?: DomainsTransferOutParameters, ): Promise< | DomainsTransferOut200Response | DomainsTransferOut400Response @@ -2523,21 +2523,21 @@ export interface DomainsTransferOut { export interface TopLevelDomainsList { /** Get all top-level domains supported for registration. */ get( - options?: TopLevelDomainsListParameters + options?: TopLevelDomainsListParameters, ): Promise; } export interface TopLevelDomainsGet { /** Get details of a top-level domain. */ get( - options?: TopLevelDomainsGetParameters + options?: TopLevelDomainsGetParameters, ): Promise; } export interface TopLevelDomainsListAgreements { /** Gets all legal agreements that user needs to accept before purchasing a domain. */ post( - options: TopLevelDomainsListAgreementsParameters + options: TopLevelDomainsListAgreementsParameters, ): Promise< TopLevelDomainsListAgreements200Response | TopLevelDomainsListAgreementsdefaultResponse >; @@ -2546,7 +2546,7 @@ export interface TopLevelDomainsListAgreements { export interface DomainRegistrationProviderListOperations { /** Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider */ get( - options?: DomainRegistrationProviderListOperationsParameters + options?: DomainRegistrationProviderListOperationsParameters, ): Promise< | DomainRegistrationProviderListOperations200Response | DomainRegistrationProviderListOperationsdefaultResponse @@ -2556,14 +2556,14 @@ export interface DomainRegistrationProviderListOperations { export interface AppServiceEnvironmentsList { /** Get all App Service Environments for a subscription. */ get( - options?: AppServiceEnvironmentsListParameters + options?: AppServiceEnvironmentsListParameters, ): Promise; } export interface AppServiceEnvironmentsListByResourceGroup { /** Get all App Service Environments in a resource group. */ get( - options?: AppServiceEnvironmentsListByResourceGroupParameters + options?: AppServiceEnvironmentsListByResourceGroupParameters, ): Promise< | AppServiceEnvironmentsListByResourceGroup200Response | AppServiceEnvironmentsListByResourceGroupdefaultResponse @@ -2573,11 +2573,11 @@ export interface AppServiceEnvironmentsListByResourceGroup { export interface AppServiceEnvironmentsGet { /** Get the properties of an App Service Environment. */ get( - options?: AppServiceEnvironmentsGetParameters + options?: AppServiceEnvironmentsGetParameters, ): Promise; /** Create or update an App Service Environment. */ put( - options: AppServiceEnvironmentsCreateOrUpdateParameters + options: AppServiceEnvironmentsCreateOrUpdateParameters, ): Promise< | AppServiceEnvironmentsCreateOrUpdate200Response | AppServiceEnvironmentsCreateOrUpdate201Response @@ -2586,7 +2586,7 @@ export interface AppServiceEnvironmentsGet { >; /** Delete an App Service Environment. */ delete( - options?: AppServiceEnvironmentsDeleteParameters + options?: AppServiceEnvironmentsDeleteParameters, ): Promise< | AppServiceEnvironmentsDelete202Response | AppServiceEnvironmentsDelete204Response @@ -2594,7 +2594,7 @@ export interface AppServiceEnvironmentsGet { >; /** Create or update an App Service Environment. */ patch( - options: AppServiceEnvironmentsUpdateParameters + options: AppServiceEnvironmentsUpdateParameters, ): Promise< | AppServiceEnvironmentsUpdate200Response | AppServiceEnvironmentsUpdate201Response @@ -2606,7 +2606,7 @@ export interface AppServiceEnvironmentsGet { export interface AppServiceEnvironmentsListCapacities { /** Get the used, available, and total worker capacity an App Service Environment. */ get( - options?: AppServiceEnvironmentsListCapacitiesParameters + options?: AppServiceEnvironmentsListCapacitiesParameters, ): Promise< | AppServiceEnvironmentsListCapacities200Response | AppServiceEnvironmentsListCapacitiesdefaultResponse @@ -2616,7 +2616,7 @@ export interface AppServiceEnvironmentsListCapacities { export interface AppServiceEnvironmentsGetVipInfo { /** Get IP addresses assigned to an App Service Environment. */ get( - options?: AppServiceEnvironmentsGetVipInfoParameters + options?: AppServiceEnvironmentsGetVipInfoParameters, ): Promise< AppServiceEnvironmentsGetVipInfo200Response | AppServiceEnvironmentsGetVipInfodefaultResponse >; @@ -2625,7 +2625,7 @@ export interface AppServiceEnvironmentsGetVipInfo { export interface AppServiceEnvironmentsChangeVnet { /** Move an App Service Environment to a different VNET. */ post( - options: AppServiceEnvironmentsChangeVnetParameters + options: AppServiceEnvironmentsChangeVnetParameters, ): Promise< | AppServiceEnvironmentsChangeVnet200Response | AppServiceEnvironmentsChangeVnet202Response @@ -2636,14 +2636,14 @@ export interface AppServiceEnvironmentsChangeVnet { export interface AppServiceEnvironmentsGetAseV3NetworkingConfiguration { /** Get networking configuration of an App Service Environment */ get( - options?: AppServiceEnvironmentsGetAseV3NetworkingConfigurationParameters + options?: AppServiceEnvironmentsGetAseV3NetworkingConfigurationParameters, ): Promise< | AppServiceEnvironmentsGetAseV3NetworkingConfiguration200Response | AppServiceEnvironmentsGetAseV3NetworkingConfigurationdefaultResponse >; /** Update networking configuration of an App Service Environment */ put( - options: AppServiceEnvironmentsUpdateAseNetworkingConfigurationParameters + options: AppServiceEnvironmentsUpdateAseNetworkingConfigurationParameters, ): Promise< | AppServiceEnvironmentsUpdateAseNetworkingConfiguration200Response | AppServiceEnvironmentsUpdateAseNetworkingConfigurationdefaultResponse @@ -2653,7 +2653,7 @@ export interface AppServiceEnvironmentsGetAseV3NetworkingConfiguration { export interface AppServiceEnvironmentsListDiagnostics { /** Get diagnostic information for an App Service Environment. */ get( - options?: AppServiceEnvironmentsListDiagnosticsParameters + options?: AppServiceEnvironmentsListDiagnosticsParameters, ): Promise< | AppServiceEnvironmentsListDiagnostics200Response | AppServiceEnvironmentsListDiagnosticsdefaultResponse @@ -2663,7 +2663,7 @@ export interface AppServiceEnvironmentsListDiagnostics { export interface AppServiceEnvironmentsGetDiagnosticsItem { /** Get a diagnostics item for an App Service Environment. */ get( - options?: AppServiceEnvironmentsGetDiagnosticsItemParameters + options?: AppServiceEnvironmentsGetDiagnosticsItemParameters, ): Promise< | AppServiceEnvironmentsGetDiagnosticsItem200Response | AppServiceEnvironmentsGetDiagnosticsItemdefaultResponse @@ -2673,7 +2673,7 @@ export interface AppServiceEnvironmentsGetDiagnosticsItem { export interface AppServiceEnvironmentsGetInboundNetworkDependenciesEndpoints { /** Get the network endpoints of all inbound dependencies of an App Service Environment. */ get( - options?: AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsParameters + options?: AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsParameters, ): Promise< | AppServiceEnvironmentsGetInboundNetworkDependenciesEndpoints200Response | AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsdefaultResponse @@ -2683,7 +2683,7 @@ export interface AppServiceEnvironmentsGetInboundNetworkDependenciesEndpoints { export interface AppServiceEnvironmentsListMultiRolePools { /** Get all multi-role pools. */ get( - options?: AppServiceEnvironmentsListMultiRolePoolsParameters + options?: AppServiceEnvironmentsListMultiRolePoolsParameters, ): Promise< | AppServiceEnvironmentsListMultiRolePools200Response | AppServiceEnvironmentsListMultiRolePoolsdefaultResponse @@ -2693,14 +2693,14 @@ export interface AppServiceEnvironmentsListMultiRolePools { export interface AppServiceEnvironmentsGetMultiRolePool { /** Get properties of a multi-role pool. */ get( - options?: AppServiceEnvironmentsGetMultiRolePoolParameters + options?: AppServiceEnvironmentsGetMultiRolePoolParameters, ): Promise< | AppServiceEnvironmentsGetMultiRolePool200Response | AppServiceEnvironmentsGetMultiRolePooldefaultResponse >; /** Create or update a multi-role pool. */ put( - options: AppServiceEnvironmentsCreateOrUpdateMultiRolePoolParameters + options: AppServiceEnvironmentsCreateOrUpdateMultiRolePoolParameters, ): Promise< | AppServiceEnvironmentsCreateOrUpdateMultiRolePool200Response | AppServiceEnvironmentsCreateOrUpdateMultiRolePool202Response @@ -2708,7 +2708,7 @@ export interface AppServiceEnvironmentsGetMultiRolePool { >; /** Create or update a multi-role pool. */ patch( - options: AppServiceEnvironmentsUpdateMultiRolePoolParameters + options: AppServiceEnvironmentsUpdateMultiRolePoolParameters, ): Promise< | AppServiceEnvironmentsUpdateMultiRolePool200Response | AppServiceEnvironmentsUpdateMultiRolePool202Response @@ -2719,7 +2719,7 @@ export interface AppServiceEnvironmentsGetMultiRolePool { export interface AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitions { /** Get metric definitions for a specific instance of a multi-role pool of an App Service Environment. */ get( - options?: AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsParameters + options?: AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsParameters, ): Promise< | AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitions200Response | AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsdefaultResponse @@ -2729,7 +2729,7 @@ export interface AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinition export interface AppServiceEnvironmentsListMultiRoleMetricDefinitions { /** Get metric definitions for a multi-role pool of an App Service Environment. */ get( - options?: AppServiceEnvironmentsListMultiRoleMetricDefinitionsParameters + options?: AppServiceEnvironmentsListMultiRoleMetricDefinitionsParameters, ): Promise< | AppServiceEnvironmentsListMultiRoleMetricDefinitions200Response | AppServiceEnvironmentsListMultiRoleMetricDefinitionsdefaultResponse @@ -2739,7 +2739,7 @@ export interface AppServiceEnvironmentsListMultiRoleMetricDefinitions { export interface AppServiceEnvironmentsListMultiRolePoolSkus { /** Get available SKUs for scaling a multi-role pool. */ get( - options?: AppServiceEnvironmentsListMultiRolePoolSkusParameters + options?: AppServiceEnvironmentsListMultiRolePoolSkusParameters, ): Promise< | AppServiceEnvironmentsListMultiRolePoolSkus200Response | AppServiceEnvironmentsListMultiRolePoolSkusdefaultResponse @@ -2749,7 +2749,7 @@ export interface AppServiceEnvironmentsListMultiRolePoolSkus { export interface AppServiceEnvironmentsListMultiRoleUsages { /** Get usage metrics for a multi-role pool of an App Service Environment. */ get( - options?: AppServiceEnvironmentsListMultiRoleUsagesParameters + options?: AppServiceEnvironmentsListMultiRoleUsagesParameters, ): Promise< | AppServiceEnvironmentsListMultiRoleUsages200Response | AppServiceEnvironmentsListMultiRoleUsagesdefaultResponse @@ -2759,7 +2759,7 @@ export interface AppServiceEnvironmentsListMultiRoleUsages { export interface AppServiceEnvironmentsListOperations { /** List all currently running operations on the App Service Environment. */ get( - options?: AppServiceEnvironmentsListOperationsParameters + options?: AppServiceEnvironmentsListOperationsParameters, ): Promise< | AppServiceEnvironmentsListOperations200Response | AppServiceEnvironmentsListOperationsdefaultResponse @@ -2769,7 +2769,7 @@ export interface AppServiceEnvironmentsListOperations { export interface AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpoints { /** Get the network endpoints of all outbound dependencies of an App Service Environment. */ get( - options?: AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsParameters + options?: AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsParameters, ): Promise< | AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpoints200Response | AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsdefaultResponse @@ -2779,7 +2779,7 @@ export interface AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpoints { export interface AppServiceEnvironmentsGetPrivateEndpointConnectionList { /** Gets the list of private endpoints associated with a hosting environment */ get( - options?: AppServiceEnvironmentsGetPrivateEndpointConnectionListParameters + options?: AppServiceEnvironmentsGetPrivateEndpointConnectionListParameters, ): Promise< | AppServiceEnvironmentsGetPrivateEndpointConnectionList200Response | AppServiceEnvironmentsGetPrivateEndpointConnectionListdefaultResponse @@ -2789,14 +2789,14 @@ export interface AppServiceEnvironmentsGetPrivateEndpointConnectionList { export interface AppServiceEnvironmentsGetPrivateEndpointConnection { /** Gets a private endpoint connection */ get( - options?: AppServiceEnvironmentsGetPrivateEndpointConnectionParameters + options?: AppServiceEnvironmentsGetPrivateEndpointConnectionParameters, ): Promise< | AppServiceEnvironmentsGetPrivateEndpointConnection200Response | AppServiceEnvironmentsGetPrivateEndpointConnectiondefaultResponse >; /** Approves or rejects a private endpoint connection */ put( - options: AppServiceEnvironmentsApproveOrRejectPrivateEndpointConnectionParameters + options: AppServiceEnvironmentsApproveOrRejectPrivateEndpointConnectionParameters, ): Promise< | AppServiceEnvironmentsApproveOrRejectPrivateEndpointConnection200Response | AppServiceEnvironmentsApproveOrRejectPrivateEndpointConnection202Response @@ -2804,7 +2804,7 @@ export interface AppServiceEnvironmentsGetPrivateEndpointConnection { >; /** Deletes a private endpoint connection */ delete( - options?: AppServiceEnvironmentsDeletePrivateEndpointConnectionParameters + options?: AppServiceEnvironmentsDeletePrivateEndpointConnectionParameters, ): Promise< | AppServiceEnvironmentsDeletePrivateEndpointConnection200Response | AppServiceEnvironmentsDeletePrivateEndpointConnection202Response @@ -2816,7 +2816,7 @@ export interface AppServiceEnvironmentsGetPrivateEndpointConnection { export interface AppServiceEnvironmentsGetPrivateLinkResources { /** Gets the private link resources */ get( - options?: AppServiceEnvironmentsGetPrivateLinkResourcesParameters + options?: AppServiceEnvironmentsGetPrivateLinkResourcesParameters, ): Promise< | AppServiceEnvironmentsGetPrivateLinkResources200Response | AppServiceEnvironmentsGetPrivateLinkResourcesdefaultResponse @@ -2826,14 +2826,14 @@ export interface AppServiceEnvironmentsGetPrivateLinkResources { export interface AppServiceEnvironmentsReboot { /** Reboot all machines in an App Service Environment. */ post( - options?: AppServiceEnvironmentsRebootParameters + options?: AppServiceEnvironmentsRebootParameters, ): Promise; } export interface AppServiceEnvironmentsResume { /** Resume an App Service Environment. */ post( - options?: AppServiceEnvironmentsResumeParameters + options?: AppServiceEnvironmentsResumeParameters, ): Promise< | AppServiceEnvironmentsResume200Response | AppServiceEnvironmentsResume202Response @@ -2844,7 +2844,7 @@ export interface AppServiceEnvironmentsResume { export interface AppServiceEnvironmentsListAppServicePlans { /** Get all App Service plans in an App Service Environment. */ get( - options?: AppServiceEnvironmentsListAppServicePlansParameters + options?: AppServiceEnvironmentsListAppServicePlansParameters, ): Promise< | AppServiceEnvironmentsListAppServicePlans200Response | AppServiceEnvironmentsListAppServicePlansdefaultResponse @@ -2854,7 +2854,7 @@ export interface AppServiceEnvironmentsListAppServicePlans { export interface AppServiceEnvironmentsListWebApps { /** Get all apps in an App Service Environment. */ get( - options?: AppServiceEnvironmentsListWebAppsParameters + options?: AppServiceEnvironmentsListWebAppsParameters, ): Promise< AppServiceEnvironmentsListWebApps200Response | AppServiceEnvironmentsListWebAppsdefaultResponse >; @@ -2863,7 +2863,7 @@ export interface AppServiceEnvironmentsListWebApps { export interface AppServiceEnvironmentsSuspend { /** Suspend an App Service Environment. */ post( - options?: AppServiceEnvironmentsSuspendParameters + options?: AppServiceEnvironmentsSuspendParameters, ): Promise< | AppServiceEnvironmentsSuspend200Response | AppServiceEnvironmentsSuspend202Response @@ -2874,7 +2874,7 @@ export interface AppServiceEnvironmentsSuspend { export interface AppServiceEnvironmentsListUsages { /** Get global usage metrics of an App Service Environment. */ get( - options?: AppServiceEnvironmentsListUsagesParameters + options?: AppServiceEnvironmentsListUsagesParameters, ): Promise< AppServiceEnvironmentsListUsages200Response | AppServiceEnvironmentsListUsagesdefaultResponse >; @@ -2883,7 +2883,7 @@ export interface AppServiceEnvironmentsListUsages { export interface AppServiceEnvironmentsListWorkerPools { /** Get all worker pools of an App Service Environment. */ get( - options?: AppServiceEnvironmentsListWorkerPoolsParameters + options?: AppServiceEnvironmentsListWorkerPoolsParameters, ): Promise< | AppServiceEnvironmentsListWorkerPools200Response | AppServiceEnvironmentsListWorkerPoolsdefaultResponse @@ -2893,14 +2893,14 @@ export interface AppServiceEnvironmentsListWorkerPools { export interface AppServiceEnvironmentsGetWorkerPool { /** Get properties of a worker pool. */ get( - options?: AppServiceEnvironmentsGetWorkerPoolParameters + options?: AppServiceEnvironmentsGetWorkerPoolParameters, ): Promise< | AppServiceEnvironmentsGetWorkerPool200Response | AppServiceEnvironmentsGetWorkerPooldefaultResponse >; /** Create or update a worker pool. */ put( - options: AppServiceEnvironmentsCreateOrUpdateWorkerPoolParameters + options: AppServiceEnvironmentsCreateOrUpdateWorkerPoolParameters, ): Promise< | AppServiceEnvironmentsCreateOrUpdateWorkerPool200Response | AppServiceEnvironmentsCreateOrUpdateWorkerPool202Response @@ -2908,7 +2908,7 @@ export interface AppServiceEnvironmentsGetWorkerPool { >; /** Create or update a worker pool. */ patch( - options: AppServiceEnvironmentsUpdateWorkerPoolParameters + options: AppServiceEnvironmentsUpdateWorkerPoolParameters, ): Promise< | AppServiceEnvironmentsUpdateWorkerPool200Response | AppServiceEnvironmentsUpdateWorkerPool202Response @@ -2919,7 +2919,7 @@ export interface AppServiceEnvironmentsGetWorkerPool { export interface AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitions { /** Get metric definitions for a specific instance of a worker pool of an App Service Environment. */ get( - options?: AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsParameters + options?: AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsParameters, ): Promise< | AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitions200Response | AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsdefaultResponse @@ -2929,7 +2929,7 @@ export interface AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitions { export interface AppServiceEnvironmentsListWebWorkerMetricDefinitions { /** Get metric definitions for a worker pool of an App Service Environment. */ get( - options?: AppServiceEnvironmentsListWebWorkerMetricDefinitionsParameters + options?: AppServiceEnvironmentsListWebWorkerMetricDefinitionsParameters, ): Promise< | AppServiceEnvironmentsListWebWorkerMetricDefinitions200Response | AppServiceEnvironmentsListWebWorkerMetricDefinitionsdefaultResponse @@ -2939,7 +2939,7 @@ export interface AppServiceEnvironmentsListWebWorkerMetricDefinitions { export interface AppServiceEnvironmentsListWorkerPoolSkus { /** Get available SKUs for scaling a worker pool. */ get( - options?: AppServiceEnvironmentsListWorkerPoolSkusParameters + options?: AppServiceEnvironmentsListWorkerPoolSkusParameters, ): Promise< | AppServiceEnvironmentsListWorkerPoolSkus200Response | AppServiceEnvironmentsListWorkerPoolSkusdefaultResponse @@ -2949,7 +2949,7 @@ export interface AppServiceEnvironmentsListWorkerPoolSkus { export interface AppServiceEnvironmentsListWebWorkerUsages { /** Get usage metrics for a worker pool of an App Service Environment. */ get( - options?: AppServiceEnvironmentsListWebWorkerUsagesParameters + options?: AppServiceEnvironmentsListWebWorkerUsagesParameters, ): Promise< | AppServiceEnvironmentsListWebWorkerUsages200Response | AppServiceEnvironmentsListWebWorkerUsagesdefaultResponse @@ -2959,14 +2959,14 @@ export interface AppServiceEnvironmentsListWebWorkerUsages { export interface AppServicePlansList { /** Get all App Service plans for a subscription. */ get( - options?: AppServicePlansListParameters + options?: AppServicePlansListParameters, ): Promise; } export interface AppServicePlansListByResourceGroup { /** Get all App Service plans in a resource group. */ get( - options?: AppServicePlansListByResourceGroupParameters + options?: AppServicePlansListByResourceGroupParameters, ): Promise< | AppServicePlansListByResourceGroup200Response | AppServicePlansListByResourceGroupdefaultResponse @@ -2976,7 +2976,7 @@ export interface AppServicePlansListByResourceGroup { export interface AppServicePlansGet { /** Get an App Service plan. */ get( - options?: AppServicePlansGetParameters + options?: AppServicePlansGetParameters, ): Promise< | AppServicePlansGet200Response | AppServicePlansGet404Response @@ -2984,7 +2984,7 @@ export interface AppServicePlansGet { >; /** Creates or updates an App Service Plan. */ put( - options: AppServicePlansCreateOrUpdateParameters + options: AppServicePlansCreateOrUpdateParameters, ): Promise< | AppServicePlansCreateOrUpdate200Response | AppServicePlansCreateOrUpdate202Response @@ -2992,7 +2992,7 @@ export interface AppServicePlansGet { >; /** Delete an App Service plan. */ delete( - options?: AppServicePlansDeleteParameters + options?: AppServicePlansDeleteParameters, ): Promise< | AppServicePlansDelete200Response | AppServicePlansDelete204Response @@ -3000,7 +3000,7 @@ export interface AppServicePlansGet { >; /** Creates or updates an App Service Plan. */ patch( - options: AppServicePlansUpdateParameters + options: AppServicePlansUpdateParameters, ): Promise< | AppServicePlansUpdate200Response | AppServicePlansUpdate202Response @@ -3011,7 +3011,7 @@ export interface AppServicePlansGet { export interface AppServicePlansListCapabilities { /** List all capabilities of an App Service plan. */ get( - options?: AppServicePlansListCapabilitiesParameters + options?: AppServicePlansListCapabilitiesParameters, ): Promise< AppServicePlansListCapabilities200Response | AppServicePlansListCapabilitiesdefaultResponse >; @@ -3020,14 +3020,14 @@ export interface AppServicePlansListCapabilities { export interface AppServicePlansGetHybridConnection { /** Retrieve a Hybrid Connection in use in an App Service plan. */ get( - options?: AppServicePlansGetHybridConnectionParameters + options?: AppServicePlansGetHybridConnectionParameters, ): Promise< | AppServicePlansGetHybridConnection200Response | AppServicePlansGetHybridConnectiondefaultResponse >; /** Delete a Hybrid Connection in use in an App Service plan. */ delete( - options?: AppServicePlansDeleteHybridConnectionParameters + options?: AppServicePlansDeleteHybridConnectionParameters, ): Promise< | AppServicePlansDeleteHybridConnection200Response | AppServicePlansDeleteHybridConnection204Response @@ -3038,7 +3038,7 @@ export interface AppServicePlansGetHybridConnection { export interface AppServicePlansListHybridConnectionKeys { /** Get the send key name and value of a Hybrid Connection. */ post( - options?: AppServicePlansListHybridConnectionKeysParameters + options?: AppServicePlansListHybridConnectionKeysParameters, ): Promise< | AppServicePlansListHybridConnectionKeys200Response | AppServicePlansListHybridConnectionKeysdefaultResponse @@ -3048,7 +3048,7 @@ export interface AppServicePlansListHybridConnectionKeys { export interface AppServicePlansListWebAppsByHybridConnection { /** Get all apps that use a Hybrid Connection in an App Service Plan. */ get( - options?: AppServicePlansListWebAppsByHybridConnectionParameters + options?: AppServicePlansListWebAppsByHybridConnectionParameters, ): Promise< | AppServicePlansListWebAppsByHybridConnection200Response | AppServicePlansListWebAppsByHybridConnectiondefaultResponse @@ -3058,7 +3058,7 @@ export interface AppServicePlansListWebAppsByHybridConnection { export interface AppServicePlansGetHybridConnectionPlanLimit { /** Get the maximum number of Hybrid Connections allowed in an App Service plan. */ get( - options?: AppServicePlansGetHybridConnectionPlanLimitParameters + options?: AppServicePlansGetHybridConnectionPlanLimitParameters, ): Promise< | AppServicePlansGetHybridConnectionPlanLimit200Response | AppServicePlansGetHybridConnectionPlanLimitdefaultResponse @@ -3068,7 +3068,7 @@ export interface AppServicePlansGetHybridConnectionPlanLimit { export interface AppServicePlansListHybridConnections { /** Retrieve all Hybrid Connections in use in an App Service plan. */ get( - options?: AppServicePlansListHybridConnectionsParameters + options?: AppServicePlansListHybridConnectionsParameters, ): Promise< | AppServicePlansListHybridConnections200Response | AppServicePlansListHybridConnectionsdefaultResponse @@ -3078,7 +3078,7 @@ export interface AppServicePlansListHybridConnections { export interface AppServicePlansRestartWebApps { /** Restart all apps in an App Service plan. */ post( - options?: AppServicePlansRestartWebAppsParameters + options?: AppServicePlansRestartWebAppsParameters, ): Promise< AppServicePlansRestartWebApps204Response | AppServicePlansRestartWebAppsdefaultResponse >; @@ -3087,14 +3087,14 @@ export interface AppServicePlansRestartWebApps { export interface AppServicePlansListWebApps { /** Get all apps associated with an App Service plan. */ get( - options?: AppServicePlansListWebAppsParameters + options?: AppServicePlansListWebAppsParameters, ): Promise; } export interface AppServicePlansGetServerFarmSkus { /** Gets all selectable SKUs for a given App Service Plan */ get( - options?: AppServicePlansGetServerFarmSkusParameters + options?: AppServicePlansGetServerFarmSkusParameters, ): Promise< AppServicePlansGetServerFarmSkus200Response | AppServicePlansGetServerFarmSkusdefaultResponse >; @@ -3103,21 +3103,21 @@ export interface AppServicePlansGetServerFarmSkus { export interface AppServicePlansListUsages { /** Gets server farm usage information */ get( - options?: AppServicePlansListUsagesParameters + options?: AppServicePlansListUsagesParameters, ): Promise; } export interface AppServicePlansListVnets { /** Get all Virtual Networks associated with an App Service plan. */ get( - options?: AppServicePlansListVnetsParameters + options?: AppServicePlansListVnetsParameters, ): Promise; } export interface AppServicePlansGetVnetFromServerFarm { /** Get a Virtual Network associated with an App Service plan. */ get( - options?: AppServicePlansGetVnetFromServerFarmParameters + options?: AppServicePlansGetVnetFromServerFarmParameters, ): Promise< | AppServicePlansGetVnetFromServerFarm200Response | AppServicePlansGetVnetFromServerFarm404Response @@ -3128,13 +3128,13 @@ export interface AppServicePlansGetVnetFromServerFarm { export interface AppServicePlansGetVnetGateway { /** Get a Virtual Network gateway. */ get( - options?: AppServicePlansGetVnetGatewayParameters + options?: AppServicePlansGetVnetGatewayParameters, ): Promise< AppServicePlansGetVnetGateway200Response | AppServicePlansGetVnetGatewaydefaultResponse >; /** Update a Virtual Network gateway. */ put( - options: AppServicePlansUpdateVnetGatewayParameters + options: AppServicePlansUpdateVnetGatewayParameters, ): Promise< AppServicePlansUpdateVnetGateway200Response | AppServicePlansUpdateVnetGatewaydefaultResponse >; @@ -3143,7 +3143,7 @@ export interface AppServicePlansGetVnetGateway { export interface AppServicePlansListRoutesForVnet { /** Get all routes that are associated with a Virtual Network in an App Service plan. */ get( - options?: AppServicePlansListRoutesForVnetParameters + options?: AppServicePlansListRoutesForVnetParameters, ): Promise< AppServicePlansListRoutesForVnet200Response | AppServicePlansListRoutesForVnetdefaultResponse >; @@ -3152,7 +3152,7 @@ export interface AppServicePlansListRoutesForVnet { export interface AppServicePlansGetRouteForVnet { /** Get a Virtual Network route in an App Service plan. */ get( - options?: AppServicePlansGetRouteForVnetParameters + options?: AppServicePlansGetRouteForVnetParameters, ): Promise< | AppServicePlansGetRouteForVnet200Response | AppServicePlansGetRouteForVnet404Response @@ -3160,7 +3160,7 @@ export interface AppServicePlansGetRouteForVnet { >; /** Create or update a Virtual Network route in an App Service plan. */ put( - options: AppServicePlansCreateOrUpdateVnetRouteParameters + options: AppServicePlansCreateOrUpdateVnetRouteParameters, ): Promise< | AppServicePlansCreateOrUpdateVnetRoute200Response | AppServicePlansCreateOrUpdateVnetRoute400Response @@ -3169,7 +3169,7 @@ export interface AppServicePlansGetRouteForVnet { >; /** Delete a Virtual Network route in an App Service plan. */ delete( - options?: AppServicePlansDeleteVnetRouteParameters + options?: AppServicePlansDeleteVnetRouteParameters, ): Promise< | AppServicePlansDeleteVnetRoute200Response | AppServicePlansDeleteVnetRoute404Response @@ -3177,7 +3177,7 @@ export interface AppServicePlansGetRouteForVnet { >; /** Create or update a Virtual Network route in an App Service plan. */ patch( - options: AppServicePlansUpdateVnetRouteParameters + options: AppServicePlansUpdateVnetRouteParameters, ): Promise< | AppServicePlansUpdateVnetRoute200Response | AppServicePlansUpdateVnetRoute400Response @@ -3189,21 +3189,21 @@ export interface AppServicePlansGetRouteForVnet { export interface AppServicePlansRebootWorker { /** Reboot a worker machine in an App Service plan. */ post( - options?: AppServicePlansRebootWorkerParameters + options?: AppServicePlansRebootWorkerParameters, ): Promise; } export interface CertificatesList { /** Get all certificates for a subscription. */ get( - options?: CertificatesListParameters + options?: CertificatesListParameters, ): Promise; } export interface CertificatesListByResourceGroup { /** Get all certificates in a resource group. */ get( - options?: CertificatesListByResourceGroupParameters + options?: CertificatesListByResourceGroupParameters, ): Promise< CertificatesListByResourceGroup200Response | CertificatesListByResourceGroupdefaultResponse >; @@ -3212,15 +3212,15 @@ export interface CertificatesListByResourceGroup { export interface CertificatesGet { /** Get a certificate. */ get( - options?: CertificatesGetParameters + options?: CertificatesGetParameters, ): Promise; /** Create or update a certificate. */ put( - options: CertificatesCreateOrUpdateParameters + options: CertificatesCreateOrUpdateParameters, ): Promise; /** Delete a certificate. */ delete( - options?: CertificatesDeleteParameters + options?: CertificatesDeleteParameters, ): Promise< | CertificatesDelete200Response | CertificatesDelete204Response @@ -3228,14 +3228,14 @@ export interface CertificatesGet { >; /** Create or update a certificate. */ patch( - options: CertificatesUpdateParameters + options: CertificatesUpdateParameters, ): Promise; } export interface ContainerAppsListBySubscription { /** Get the Container Apps in a given subscription. */ get( - options?: ContainerAppsListBySubscriptionParameters + options?: ContainerAppsListBySubscriptionParameters, ): Promise< ContainerAppsListBySubscription200Response | ContainerAppsListBySubscriptiondefaultResponse >; @@ -3244,7 +3244,7 @@ export interface ContainerAppsListBySubscription { export interface ContainerAppsListByResourceGroup { /** Get the Container Apps in a given resource group. */ get( - options?: ContainerAppsListByResourceGroupParameters + options?: ContainerAppsListByResourceGroupParameters, ): Promise< ContainerAppsListByResourceGroup200Response | ContainerAppsListByResourceGroupdefaultResponse >; @@ -3253,13 +3253,13 @@ export interface ContainerAppsListByResourceGroup { export interface ContainerAppsGet { /** Get the properties of a Container App. */ get( - options?: ContainerAppsGetParameters + options?: ContainerAppsGetParameters, ): Promise< ContainerAppsGet200Response | ContainerAppsGet404Response | ContainerAppsGetdefaultResponse >; /** Create or update a Container App. */ put( - options: ContainerAppsCreateOrUpdateParameters + options: ContainerAppsCreateOrUpdateParameters, ): Promise< | ContainerAppsCreateOrUpdate200Response | ContainerAppsCreateOrUpdate201Response @@ -3267,7 +3267,7 @@ export interface ContainerAppsGet { >; /** Delete a Container App. */ delete( - options?: ContainerAppsDeleteParameters + options?: ContainerAppsDeleteParameters, ): Promise< | ContainerAppsDelete200Response | ContainerAppsDelete202Response @@ -3279,14 +3279,14 @@ export interface ContainerAppsGet { export interface ContainerAppsListSecrets { /** List secrets for a container app */ post( - options?: ContainerAppsListSecretsParameters + options?: ContainerAppsListSecretsParameters, ): Promise; } export interface ContainerAppsRevisionsListRevisions { /** Get the Revisions for a given Container App. */ get( - options?: ContainerAppsRevisionsListRevisionsParameters + options?: ContainerAppsRevisionsListRevisionsParameters, ): Promise< | ContainerAppsRevisionsListRevisions200Response | ContainerAppsRevisionsListRevisionsdefaultResponse @@ -3296,7 +3296,7 @@ export interface ContainerAppsRevisionsListRevisions { export interface ContainerAppsRevisionsGetRevision { /** Get a revision of a Container App. */ get( - options?: ContainerAppsRevisionsGetRevisionParameters + options?: ContainerAppsRevisionsGetRevisionParameters, ): Promise< ContainerAppsRevisionsGetRevision200Response | ContainerAppsRevisionsGetRevisiondefaultResponse >; @@ -3305,7 +3305,7 @@ export interface ContainerAppsRevisionsGetRevision { export interface ContainerAppsRevisionsActivateRevision { /** Activates a revision for a Container App */ post( - options?: ContainerAppsRevisionsActivateRevisionParameters + options?: ContainerAppsRevisionsActivateRevisionParameters, ): Promise< | ContainerAppsRevisionsActivateRevision200Response | ContainerAppsRevisionsActivateRevisiondefaultResponse @@ -3315,7 +3315,7 @@ export interface ContainerAppsRevisionsActivateRevision { export interface ContainerAppsRevisionsDeactivateRevision { /** Deactivates a revision for a Container App */ post( - options?: ContainerAppsRevisionsDeactivateRevisionParameters + options?: ContainerAppsRevisionsDeactivateRevisionParameters, ): Promise< | ContainerAppsRevisionsDeactivateRevision200Response | ContainerAppsRevisionsDeactivateRevisiondefaultResponse @@ -3325,7 +3325,7 @@ export interface ContainerAppsRevisionsDeactivateRevision { export interface ContainerAppsRevisionsRestartRevision { /** Restarts a revision for a Container App */ post( - options?: ContainerAppsRevisionsRestartRevisionParameters + options?: ContainerAppsRevisionsRestartRevisionParameters, ): Promise< | ContainerAppsRevisionsRestartRevision200Response | ContainerAppsRevisionsRestartRevisiondefaultResponse @@ -3335,21 +3335,21 @@ export interface ContainerAppsRevisionsRestartRevision { export interface DeletedWebAppsList { /** Get all deleted apps for a subscription. */ get( - options?: DeletedWebAppsListParameters + options?: DeletedWebAppsListParameters, ): Promise; } export interface DeletedWebAppsListByLocation { /** Get all deleted apps for a subscription at location */ get( - options?: DeletedWebAppsListByLocationParameters + options?: DeletedWebAppsListByLocationParameters, ): Promise; } export interface DeletedWebAppsGetDeletedWebAppByLocation { /** Get deleted app for a subscription at location. */ get( - options?: DeletedWebAppsGetDeletedWebAppByLocationParameters + options?: DeletedWebAppsGetDeletedWebAppByLocationParameters, ): Promise< | DeletedWebAppsGetDeletedWebAppByLocation200Response | DeletedWebAppsGetDeletedWebAppByLocationdefaultResponse @@ -3359,7 +3359,7 @@ export interface DeletedWebAppsGetDeletedWebAppByLocation { export interface DiagnosticsListHostingEnvironmentDetectorResponses { /** List Hosting Environment Detector Responses */ get( - options?: DiagnosticsListHostingEnvironmentDetectorResponsesParameters + options?: DiagnosticsListHostingEnvironmentDetectorResponsesParameters, ): Promise< | DiagnosticsListHostingEnvironmentDetectorResponses200Response | DiagnosticsListHostingEnvironmentDetectorResponsesdefaultResponse @@ -3369,7 +3369,7 @@ export interface DiagnosticsListHostingEnvironmentDetectorResponses { export interface DiagnosticsGetHostingEnvironmentDetectorResponse { /** Get Hosting Environment Detector Response */ get( - options?: DiagnosticsGetHostingEnvironmentDetectorResponseParameters + options?: DiagnosticsGetHostingEnvironmentDetectorResponseParameters, ): Promise< | DiagnosticsGetHostingEnvironmentDetectorResponse200Response | DiagnosticsGetHostingEnvironmentDetectorResponsedefaultResponse @@ -3379,7 +3379,7 @@ export interface DiagnosticsGetHostingEnvironmentDetectorResponse { export interface DiagnosticsListSiteDetectorResponses { /** List Site Detector Responses */ get( - options?: DiagnosticsListSiteDetectorResponsesParameters + options?: DiagnosticsListSiteDetectorResponsesParameters, ): Promise< | DiagnosticsListSiteDetectorResponses200Response | DiagnosticsListSiteDetectorResponsesdefaultResponse @@ -3389,7 +3389,7 @@ export interface DiagnosticsListSiteDetectorResponses { export interface DiagnosticsGetSiteDetectorResponse { /** Get site detector response */ get( - options?: DiagnosticsGetSiteDetectorResponseParameters + options?: DiagnosticsGetSiteDetectorResponseParameters, ): Promise< | DiagnosticsGetSiteDetectorResponse200Response | DiagnosticsGetSiteDetectorResponsedefaultResponse @@ -3399,7 +3399,7 @@ export interface DiagnosticsGetSiteDetectorResponse { export interface DiagnosticsListSiteDiagnosticCategories { /** Get Diagnostics Categories */ get( - options?: DiagnosticsListSiteDiagnosticCategoriesParameters + options?: DiagnosticsListSiteDiagnosticCategoriesParameters, ): Promise< | DiagnosticsListSiteDiagnosticCategories200Response | DiagnosticsListSiteDiagnosticCategoriesdefaultResponse @@ -3409,7 +3409,7 @@ export interface DiagnosticsListSiteDiagnosticCategories { export interface DiagnosticsGetSiteDiagnosticCategory { /** Get Diagnostics Category */ get( - options?: DiagnosticsGetSiteDiagnosticCategoryParameters + options?: DiagnosticsGetSiteDiagnosticCategoryParameters, ): Promise< | DiagnosticsGetSiteDiagnosticCategory200Response | DiagnosticsGetSiteDiagnosticCategorydefaultResponse @@ -3419,21 +3419,21 @@ export interface DiagnosticsGetSiteDiagnosticCategory { export interface DiagnosticsListSiteAnalyses { /** Get Site Analyses */ get( - options?: DiagnosticsListSiteAnalysesParameters + options?: DiagnosticsListSiteAnalysesParameters, ): Promise; } export interface DiagnosticsGetSiteAnalysis { /** Get Site Analysis */ get( - options?: DiagnosticsGetSiteAnalysisParameters + options?: DiagnosticsGetSiteAnalysisParameters, ): Promise; } export interface DiagnosticsExecuteSiteAnalysis { /** Execute Analysis */ post( - options?: DiagnosticsExecuteSiteAnalysisParameters + options?: DiagnosticsExecuteSiteAnalysisParameters, ): Promise< DiagnosticsExecuteSiteAnalysis200Response | DiagnosticsExecuteSiteAnalysisdefaultResponse >; @@ -3442,21 +3442,21 @@ export interface DiagnosticsExecuteSiteAnalysis { export interface DiagnosticsListSiteDetectors { /** Get Detectors */ get( - options?: DiagnosticsListSiteDetectorsParameters + options?: DiagnosticsListSiteDetectorsParameters, ): Promise; } export interface DiagnosticsGetSiteDetector { /** Get Detector */ get( - options?: DiagnosticsGetSiteDetectorParameters + options?: DiagnosticsGetSiteDetectorParameters, ): Promise; } export interface DiagnosticsExecuteSiteDetector { /** Execute Detector */ post( - options?: DiagnosticsExecuteSiteDetectorParameters + options?: DiagnosticsExecuteSiteDetectorParameters, ): Promise< DiagnosticsExecuteSiteDetector200Response | DiagnosticsExecuteSiteDetectordefaultResponse >; @@ -3465,7 +3465,7 @@ export interface DiagnosticsExecuteSiteDetector { export interface DiagnosticsListSiteDetectorResponsesSlot { /** List Site Detector Responses */ get( - options?: DiagnosticsListSiteDetectorResponsesSlotParameters + options?: DiagnosticsListSiteDetectorResponsesSlotParameters, ): Promise< | DiagnosticsListSiteDetectorResponsesSlot200Response | DiagnosticsListSiteDetectorResponsesSlotdefaultResponse @@ -3475,7 +3475,7 @@ export interface DiagnosticsListSiteDetectorResponsesSlot { export interface DiagnosticsGetSiteDetectorResponseSlot { /** Get site detector response */ get( - options?: DiagnosticsGetSiteDetectorResponseSlotParameters + options?: DiagnosticsGetSiteDetectorResponseSlotParameters, ): Promise< | DiagnosticsGetSiteDetectorResponseSlot200Response | DiagnosticsGetSiteDetectorResponseSlotdefaultResponse @@ -3485,7 +3485,7 @@ export interface DiagnosticsGetSiteDetectorResponseSlot { export interface DiagnosticsListSiteDiagnosticCategoriesSlot { /** Get Diagnostics Categories */ get( - options?: DiagnosticsListSiteDiagnosticCategoriesSlotParameters + options?: DiagnosticsListSiteDiagnosticCategoriesSlotParameters, ): Promise< | DiagnosticsListSiteDiagnosticCategoriesSlot200Response | DiagnosticsListSiteDiagnosticCategoriesSlotdefaultResponse @@ -3495,7 +3495,7 @@ export interface DiagnosticsListSiteDiagnosticCategoriesSlot { export interface DiagnosticsGetSiteDiagnosticCategorySlot { /** Get Diagnostics Category */ get( - options?: DiagnosticsGetSiteDiagnosticCategorySlotParameters + options?: DiagnosticsGetSiteDiagnosticCategorySlotParameters, ): Promise< | DiagnosticsGetSiteDiagnosticCategorySlot200Response | DiagnosticsGetSiteDiagnosticCategorySlotdefaultResponse @@ -3505,7 +3505,7 @@ export interface DiagnosticsGetSiteDiagnosticCategorySlot { export interface DiagnosticsListSiteAnalysesSlot { /** Get Site Analyses */ get( - options?: DiagnosticsListSiteAnalysesSlotParameters + options?: DiagnosticsListSiteAnalysesSlotParameters, ): Promise< DiagnosticsListSiteAnalysesSlot200Response | DiagnosticsListSiteAnalysesSlotdefaultResponse >; @@ -3514,7 +3514,7 @@ export interface DiagnosticsListSiteAnalysesSlot { export interface DiagnosticsGetSiteAnalysisSlot { /** Get Site Analysis */ get( - options?: DiagnosticsGetSiteAnalysisSlotParameters + options?: DiagnosticsGetSiteAnalysisSlotParameters, ): Promise< DiagnosticsGetSiteAnalysisSlot200Response | DiagnosticsGetSiteAnalysisSlotdefaultResponse >; @@ -3523,7 +3523,7 @@ export interface DiagnosticsGetSiteAnalysisSlot { export interface DiagnosticsExecuteSiteAnalysisSlot { /** Execute Analysis */ post( - options?: DiagnosticsExecuteSiteAnalysisSlotParameters + options?: DiagnosticsExecuteSiteAnalysisSlotParameters, ): Promise< | DiagnosticsExecuteSiteAnalysisSlot200Response | DiagnosticsExecuteSiteAnalysisSlotdefaultResponse @@ -3533,7 +3533,7 @@ export interface DiagnosticsExecuteSiteAnalysisSlot { export interface DiagnosticsListSiteDetectorsSlot { /** Get Detectors */ get( - options?: DiagnosticsListSiteDetectorsSlotParameters + options?: DiagnosticsListSiteDetectorsSlotParameters, ): Promise< DiagnosticsListSiteDetectorsSlot200Response | DiagnosticsListSiteDetectorsSlotdefaultResponse >; @@ -3542,7 +3542,7 @@ export interface DiagnosticsListSiteDetectorsSlot { export interface DiagnosticsGetSiteDetectorSlot { /** Get Detector */ get( - options?: DiagnosticsGetSiteDetectorSlotParameters + options?: DiagnosticsGetSiteDetectorSlotParameters, ): Promise< DiagnosticsGetSiteDetectorSlot200Response | DiagnosticsGetSiteDetectorSlotdefaultResponse >; @@ -3551,7 +3551,7 @@ export interface DiagnosticsGetSiteDetectorSlot { export interface DiagnosticsExecuteSiteDetectorSlot { /** Execute Detector */ post( - options?: DiagnosticsExecuteSiteDetectorSlotParameters + options?: DiagnosticsExecuteSiteDetectorSlotParameters, ): Promise< | DiagnosticsExecuteSiteDetectorSlot200Response | DiagnosticsExecuteSiteDetectorSlotdefaultResponse @@ -3561,14 +3561,14 @@ export interface DiagnosticsExecuteSiteDetectorSlot { export interface GlobalGetDeletedWebApp { /** Get deleted app for a subscription. */ get( - options?: GlobalGetDeletedWebAppParameters + options?: GlobalGetDeletedWebAppParameters, ): Promise; } export interface GlobalGetDeletedWebAppSnapshots { /** Get all deleted apps for a subscription. */ get( - options?: GlobalGetDeletedWebAppSnapshotsParameters + options?: GlobalGetDeletedWebAppSnapshotsParameters, ): Promise< GlobalGetDeletedWebAppSnapshots200Response | GlobalGetDeletedWebAppSnapshotsdefaultResponse >; @@ -3577,7 +3577,7 @@ export interface GlobalGetDeletedWebAppSnapshots { export interface GlobalGetSubscriptionOperationWithAsyncResponse { /** Gets an operation in a subscription and given region */ get( - options?: GlobalGetSubscriptionOperationWithAsyncResponseParameters + options?: GlobalGetSubscriptionOperationWithAsyncResponseParameters, ): Promise< | GlobalGetSubscriptionOperationWithAsyncResponse204Response | GlobalGetSubscriptionOperationWithAsyncResponsedefaultResponse @@ -3587,7 +3587,7 @@ export interface GlobalGetSubscriptionOperationWithAsyncResponse { export interface KubeEnvironmentsListBySubscription { /** Get all Kubernetes Environments for a subscription. */ get( - options?: KubeEnvironmentsListBySubscriptionParameters + options?: KubeEnvironmentsListBySubscriptionParameters, ): Promise< | KubeEnvironmentsListBySubscription200Response | KubeEnvironmentsListBySubscriptiondefaultResponse @@ -3597,7 +3597,7 @@ export interface KubeEnvironmentsListBySubscription { export interface KubeEnvironmentsListByResourceGroup { /** Get all the Kubernetes Environments in a resource group. */ get( - options?: KubeEnvironmentsListByResourceGroupParameters + options?: KubeEnvironmentsListByResourceGroupParameters, ): Promise< | KubeEnvironmentsListByResourceGroup200Response | KubeEnvironmentsListByResourceGroupdefaultResponse @@ -3607,11 +3607,11 @@ export interface KubeEnvironmentsListByResourceGroup { export interface KubeEnvironmentsGet { /** Get the properties of a Kubernetes Environment. */ get( - options?: KubeEnvironmentsGetParameters + options?: KubeEnvironmentsGetParameters, ): Promise; /** Creates or updates a Kubernetes Environment. */ put( - options: KubeEnvironmentsCreateOrUpdateParameters + options: KubeEnvironmentsCreateOrUpdateParameters, ): Promise< | KubeEnvironmentsCreateOrUpdate200Response | KubeEnvironmentsCreateOrUpdate201Response @@ -3619,7 +3619,7 @@ export interface KubeEnvironmentsGet { >; /** Delete a Kubernetes Environment. */ delete( - options?: KubeEnvironmentsDeleteParameters + options?: KubeEnvironmentsDeleteParameters, ): Promise< | KubeEnvironmentsDelete200Response | KubeEnvironmentsDelete202Response @@ -3628,7 +3628,7 @@ export interface KubeEnvironmentsGet { >; /** Creates or updates a Kubernetes Environment. */ patch( - options: KubeEnvironmentsUpdateParameters + options: KubeEnvironmentsUpdateParameters, ): Promise< | KubeEnvironmentsUpdate200Response | KubeEnvironmentsUpdate201Response @@ -3639,21 +3639,21 @@ export interface KubeEnvironmentsGet { export interface ProviderGetAvailableStacks { /** Get available application frameworks and their versions */ get( - options?: ProviderGetAvailableStacksParameters + options?: ProviderGetAvailableStacksParameters, ): Promise; } export interface ProviderGetFunctionAppStacks { /** Get available Function app frameworks and their versions */ get( - options?: ProviderGetFunctionAppStacksParameters + options?: ProviderGetFunctionAppStacksParameters, ): Promise; } export interface ProviderGetFunctionAppStacksForLocation { /** Get available Function app frameworks and their versions for location */ get( - options?: ProviderGetFunctionAppStacksForLocationParameters + options?: ProviderGetFunctionAppStacksForLocationParameters, ): Promise< | ProviderGetFunctionAppStacksForLocation200Response | ProviderGetFunctionAppStacksForLocationdefaultResponse @@ -3663,7 +3663,7 @@ export interface ProviderGetFunctionAppStacksForLocation { export interface ProviderGetWebAppStacksForLocation { /** Get available Web app frameworks and their versions for location */ get( - options?: ProviderGetWebAppStacksForLocationParameters + options?: ProviderGetWebAppStacksForLocationParameters, ): Promise< | ProviderGetWebAppStacksForLocation200Response | ProviderGetWebAppStacksForLocationdefaultResponse @@ -3673,21 +3673,21 @@ export interface ProviderGetWebAppStacksForLocation { export interface ProviderListOperations { /** Gets all available operations for the Microsoft.Web resource provider. Also exposes resource metric definitions */ get( - options?: ProviderListOperationsParameters + options?: ProviderListOperationsParameters, ): Promise; } export interface ProviderGetWebAppStacks { /** Get available Web app frameworks and their versions */ get( - options?: ProviderGetWebAppStacksParameters + options?: ProviderGetWebAppStacksParameters, ): Promise; } export interface ProviderGetAvailableStacksOnPrem { /** Get available application frameworks and their versions */ get( - options?: ProviderGetAvailableStacksOnPremParameters + options?: ProviderGetAvailableStacksOnPremParameters, ): Promise< ProviderGetAvailableStacksOnPrem200Response | ProviderGetAvailableStacksOnPremdefaultResponse >; @@ -3696,14 +3696,14 @@ export interface ProviderGetAvailableStacksOnPrem { export interface RecommendationsList { /** List all recommendations for a subscription. */ get( - options?: RecommendationsListParameters + options?: RecommendationsListParameters, ): Promise; } export interface RecommendationsResetAllFilters { /** Reset all recommendation opt-out settings for a subscription. */ post( - options?: RecommendationsResetAllFiltersParameters + options?: RecommendationsResetAllFiltersParameters, ): Promise< RecommendationsResetAllFilters204Response | RecommendationsResetAllFiltersdefaultResponse >; @@ -3712,7 +3712,7 @@ export interface RecommendationsResetAllFilters { export interface RecommendationsDisableRecommendationForSubscription { /** Disables the specified rule so it will not apply to a subscription in the future. */ post( - options?: RecommendationsDisableRecommendationForSubscriptionParameters + options?: RecommendationsDisableRecommendationForSubscriptionParameters, ): Promise< | RecommendationsDisableRecommendationForSubscription200Response | RecommendationsDisableRecommendationForSubscriptiondefaultResponse @@ -3722,7 +3722,7 @@ export interface RecommendationsDisableRecommendationForSubscription { export interface RecommendationsListHistoryForHostingEnvironment { /** Get past recommendations for an app, optionally specified by the time range. */ get( - options?: RecommendationsListHistoryForHostingEnvironmentParameters + options?: RecommendationsListHistoryForHostingEnvironmentParameters, ): Promise< | RecommendationsListHistoryForHostingEnvironment200Response | RecommendationsListHistoryForHostingEnvironmentdefaultResponse @@ -3732,7 +3732,7 @@ export interface RecommendationsListHistoryForHostingEnvironment { export interface RecommendationsListRecommendedRulesForHostingEnvironment { /** Get all recommendations for a hosting environment. */ get( - options?: RecommendationsListRecommendedRulesForHostingEnvironmentParameters + options?: RecommendationsListRecommendedRulesForHostingEnvironmentParameters, ): Promise< | RecommendationsListRecommendedRulesForHostingEnvironment200Response | RecommendationsListRecommendedRulesForHostingEnvironmentdefaultResponse @@ -3742,7 +3742,7 @@ export interface RecommendationsListRecommendedRulesForHostingEnvironment { export interface RecommendationsDisableAllForHostingEnvironment { /** Disable all recommendations for an app. */ post( - options: RecommendationsDisableAllForHostingEnvironmentParameters + options: RecommendationsDisableAllForHostingEnvironmentParameters, ): Promise< | RecommendationsDisableAllForHostingEnvironment204Response | RecommendationsDisableAllForHostingEnvironmentdefaultResponse @@ -3752,7 +3752,7 @@ export interface RecommendationsDisableAllForHostingEnvironment { export interface RecommendationsResetAllFiltersForHostingEnvironment { /** Reset all recommendation opt-out settings for an app. */ post( - options: RecommendationsResetAllFiltersForHostingEnvironmentParameters + options: RecommendationsResetAllFiltersForHostingEnvironmentParameters, ): Promise< | RecommendationsResetAllFiltersForHostingEnvironment204Response | RecommendationsResetAllFiltersForHostingEnvironmentdefaultResponse @@ -3762,7 +3762,7 @@ export interface RecommendationsResetAllFiltersForHostingEnvironment { export interface RecommendationsGetRuleDetailsByHostingEnvironment { /** Get a recommendation rule for an app. */ get( - options?: RecommendationsGetRuleDetailsByHostingEnvironmentParameters + options?: RecommendationsGetRuleDetailsByHostingEnvironmentParameters, ): Promise< | RecommendationsGetRuleDetailsByHostingEnvironment200Response | RecommendationsGetRuleDetailsByHostingEnvironmentdefaultResponse @@ -3772,7 +3772,7 @@ export interface RecommendationsGetRuleDetailsByHostingEnvironment { export interface RecommendationsDisableRecommendationForHostingEnvironment { /** Disables the specific rule for a web site permanently. */ post( - options: RecommendationsDisableRecommendationForHostingEnvironmentParameters + options: RecommendationsDisableRecommendationForHostingEnvironmentParameters, ): Promise< | RecommendationsDisableRecommendationForHostingEnvironment200Response | RecommendationsDisableRecommendationForHostingEnvironmentdefaultResponse @@ -3782,7 +3782,7 @@ export interface RecommendationsDisableRecommendationForHostingEnvironment { export interface RecommendationsListHistoryForWebApp { /** Get past recommendations for an app, optionally specified by the time range. */ get( - options?: RecommendationsListHistoryForWebAppParameters + options?: RecommendationsListHistoryForWebAppParameters, ): Promise< | RecommendationsListHistoryForWebApp200Response | RecommendationsListHistoryForWebAppdefaultResponse @@ -3792,7 +3792,7 @@ export interface RecommendationsListHistoryForWebApp { export interface RecommendationsListRecommendedRulesForWebApp { /** Get all recommendations for an app. */ get( - options?: RecommendationsListRecommendedRulesForWebAppParameters + options?: RecommendationsListRecommendedRulesForWebAppParameters, ): Promise< | RecommendationsListRecommendedRulesForWebApp200Response | RecommendationsListRecommendedRulesForWebAppdefaultResponse @@ -3802,7 +3802,7 @@ export interface RecommendationsListRecommendedRulesForWebApp { export interface RecommendationsDisableAllForWebApp { /** Disable all recommendations for an app. */ post( - options?: RecommendationsDisableAllForWebAppParameters + options?: RecommendationsDisableAllForWebAppParameters, ): Promise< | RecommendationsDisableAllForWebApp204Response | RecommendationsDisableAllForWebAppdefaultResponse @@ -3812,7 +3812,7 @@ export interface RecommendationsDisableAllForWebApp { export interface RecommendationsResetAllFiltersForWebApp { /** Reset all recommendation opt-out settings for an app. */ post( - options?: RecommendationsResetAllFiltersForWebAppParameters + options?: RecommendationsResetAllFiltersForWebAppParameters, ): Promise< | RecommendationsResetAllFiltersForWebApp204Response | RecommendationsResetAllFiltersForWebAppdefaultResponse @@ -3822,7 +3822,7 @@ export interface RecommendationsResetAllFiltersForWebApp { export interface RecommendationsGetRuleDetailsByWebApp { /** Get a recommendation rule for an app. */ get( - options?: RecommendationsGetRuleDetailsByWebAppParameters + options?: RecommendationsGetRuleDetailsByWebAppParameters, ): Promise< | RecommendationsGetRuleDetailsByWebApp200Response | RecommendationsGetRuleDetailsByWebAppdefaultResponse @@ -3832,7 +3832,7 @@ export interface RecommendationsGetRuleDetailsByWebApp { export interface RecommendationsDisableRecommendationForSite { /** Disables the specific rule for a web site permanently. */ post( - options?: RecommendationsDisableRecommendationForSiteParameters + options?: RecommendationsDisableRecommendationForSiteParameters, ): Promise< | RecommendationsDisableRecommendationForSite200Response | RecommendationsDisableRecommendationForSitedefaultResponse @@ -3842,14 +3842,14 @@ export interface RecommendationsDisableRecommendationForSite { export interface ResourceHealthMetadataList { /** List all ResourceHealthMetadata for all sites in the subscription. */ get( - options?: ResourceHealthMetadataListParameters + options?: ResourceHealthMetadataListParameters, ): Promise; } export interface ResourceHealthMetadataListByResourceGroup { /** List all ResourceHealthMetadata for all sites in the resource group in the subscription. */ get( - options?: ResourceHealthMetadataListByResourceGroupParameters + options?: ResourceHealthMetadataListByResourceGroupParameters, ): Promise< | ResourceHealthMetadataListByResourceGroup200Response | ResourceHealthMetadataListByResourceGroupdefaultResponse @@ -3859,7 +3859,7 @@ export interface ResourceHealthMetadataListByResourceGroup { export interface ResourceHealthMetadataListBySite { /** Gets the category of ResourceHealthMetadata to use for the given site as a collection */ get( - options?: ResourceHealthMetadataListBySiteParameters + options?: ResourceHealthMetadataListBySiteParameters, ): Promise< ResourceHealthMetadataListBySite200Response | ResourceHealthMetadataListBySitedefaultResponse >; @@ -3868,7 +3868,7 @@ export interface ResourceHealthMetadataListBySite { export interface ResourceHealthMetadataGetBySite { /** Gets the category of ResourceHealthMetadata to use for the given site */ get( - options?: ResourceHealthMetadataGetBySiteParameters + options?: ResourceHealthMetadataGetBySiteParameters, ): Promise< ResourceHealthMetadataGetBySite200Response | ResourceHealthMetadataGetBySitedefaultResponse >; @@ -3877,7 +3877,7 @@ export interface ResourceHealthMetadataGetBySite { export interface ResourceHealthMetadataListBySiteSlot { /** Gets the category of ResourceHealthMetadata to use for the given site as a collection */ get( - options?: ResourceHealthMetadataListBySiteSlotParameters + options?: ResourceHealthMetadataListBySiteSlotParameters, ): Promise< | ResourceHealthMetadataListBySiteSlot200Response | ResourceHealthMetadataListBySiteSlotdefaultResponse @@ -3887,7 +3887,7 @@ export interface ResourceHealthMetadataListBySiteSlot { export interface ResourceHealthMetadataGetBySiteSlot { /** Gets the category of ResourceHealthMetadata to use for the given site */ get( - options?: ResourceHealthMetadataGetBySiteSlotParameters + options?: ResourceHealthMetadataGetBySiteSlotParameters, ): Promise< | ResourceHealthMetadataGetBySiteSlot200Response | ResourceHealthMetadataGetBySiteSlotdefaultResponse @@ -3897,57 +3897,57 @@ export interface ResourceHealthMetadataGetBySiteSlot { export interface GetPublishingUser { /** Gets publishing user */ get( - options?: GetPublishingUserParameters + options?: GetPublishingUserParameters, ): Promise; /** Updates publishing user */ put( - options: UpdatePublishingUserParameters + options: UpdatePublishingUserParameters, ): Promise; } export interface ListSourceControls { /** Gets the source controls available for Azure websites. */ get( - options?: ListSourceControlsParameters + options?: ListSourceControlsParameters, ): Promise; } export interface GetSourceControl { /** Gets source control token */ get( - options?: GetSourceControlParameters + options?: GetSourceControlParameters, ): Promise; /** Updates source control token */ put( - options: UpdateSourceControlParameters + options: UpdateSourceControlParameters, ): Promise; } export interface ListBillingMeters { /** Gets a list of meters for a given location. */ get( - options?: ListBillingMetersParameters + options?: ListBillingMetersParameters, ): Promise; } export interface CheckNameAvailability { /** Check if a resource name is available. */ post( - options: CheckNameAvailabilityParameters + options: CheckNameAvailabilityParameters, ): Promise; } export interface ListCustomHostNameSites { /** Get custom hostnames under this subscription */ get( - options?: ListCustomHostNameSitesParameters + options?: ListCustomHostNameSitesParameters, ): Promise; } export interface GetSubscriptionDeploymentLocations { /** Gets list of available geo regions plus ministamps */ get( - options?: GetSubscriptionDeploymentLocationsParameters + options?: GetSubscriptionDeploymentLocationsParameters, ): Promise< | GetSubscriptionDeploymentLocations200Response | GetSubscriptionDeploymentLocationsdefaultResponse @@ -3957,14 +3957,14 @@ export interface GetSubscriptionDeploymentLocations { export interface ListGeoRegions { /** Get a list of available geographical regions. */ get( - options?: ListGeoRegionsParameters + options?: ListGeoRegionsParameters, ): Promise; } export interface ListSiteIdentifiersAssignedToHostName { /** List all apps that are assigned to a hostname. */ post( - options: ListSiteIdentifiersAssignedToHostNameParameters + options: ListSiteIdentifiersAssignedToHostNameParameters, ): Promise< | ListSiteIdentifiersAssignedToHostName200Response | ListSiteIdentifiersAssignedToHostNamedefaultResponse @@ -3974,7 +3974,7 @@ export interface ListSiteIdentifiersAssignedToHostName { export interface ListPremierAddOnOffers { /** List all premier add-on offers. */ get( - options?: ListPremierAddOnOffersParameters + options?: ListPremierAddOnOffersParameters, ): Promise; } @@ -3986,7 +3986,7 @@ export interface ListSkus { export interface VerifyHostingEnvironmentVnet { /** Verifies if this VNET is compatible with an App Service Environment by analyzing the Network Security Group rules. */ post( - options: VerifyHostingEnvironmentVnetParameters + options: VerifyHostingEnvironmentVnetParameters, ): Promise; } @@ -4003,28 +4003,28 @@ export interface Validate { export interface ValidateMove { /** Validate whether a resource can be moved. */ post( - options: ValidateMoveParameters + options: ValidateMoveParameters, ): Promise; } export interface StaticSitesPreviewWorkflow { /** Generates a preview workflow file for the static site */ post( - options: StaticSitesPreviewWorkflowParameters + options: StaticSitesPreviewWorkflowParameters, ): Promise; } export interface StaticSitesList { /** Get all Static Sites for a subscription. */ get( - options?: StaticSitesListParameters + options?: StaticSitesListParameters, ): Promise; } export interface StaticSitesGetStaticSitesByResourceGroup { /** Gets all static sites in the specified resource group. */ get( - options?: StaticSitesGetStaticSitesByResourceGroupParameters + options?: StaticSitesGetStaticSitesByResourceGroupParameters, ): Promise< | StaticSitesGetStaticSitesByResourceGroup200Response | StaticSitesGetStaticSitesByResourceGroupdefaultResponse @@ -4034,11 +4034,11 @@ export interface StaticSitesGetStaticSitesByResourceGroup { export interface StaticSitesGetStaticSite { /** Gets the details of a static site. */ get( - options?: StaticSitesGetStaticSiteParameters + options?: StaticSitesGetStaticSiteParameters, ): Promise; /** Creates a new static site in an existing resource group, or updates an existing static site. */ put( - options: StaticSitesCreateOrUpdateStaticSiteParameters + options: StaticSitesCreateOrUpdateStaticSiteParameters, ): Promise< | StaticSitesCreateOrUpdateStaticSite200Response | StaticSitesCreateOrUpdateStaticSite202Response @@ -4046,7 +4046,7 @@ export interface StaticSitesGetStaticSite { >; /** Deletes a static site. */ delete( - options?: StaticSitesDeleteStaticSiteParameters + options?: StaticSitesDeleteStaticSiteParameters, ): Promise< | StaticSitesDeleteStaticSite200Response | StaticSitesDeleteStaticSite202Response @@ -4054,7 +4054,7 @@ export interface StaticSitesGetStaticSite { >; /** Creates a new static site in an existing resource group, or updates an existing static site. */ patch( - options: StaticSitesUpdateStaticSiteParameters + options: StaticSitesUpdateStaticSiteParameters, ): Promise< | StaticSitesUpdateStaticSite200Response | StaticSitesUpdateStaticSite202Response @@ -4065,7 +4065,7 @@ export interface StaticSitesGetStaticSite { export interface StaticSitesListStaticSiteUsers { /** Gets the list of users of a static site. */ post( - options?: StaticSitesListStaticSiteUsersParameters + options?: StaticSitesListStaticSiteUsersParameters, ): Promise< StaticSitesListStaticSiteUsers200Response | StaticSitesListStaticSiteUsersdefaultResponse >; @@ -4074,13 +4074,13 @@ export interface StaticSitesListStaticSiteUsers { export interface StaticSitesDeleteStaticSiteUser { /** Deletes the user entry from the static site. */ delete( - options?: StaticSitesDeleteStaticSiteUserParameters + options?: StaticSitesDeleteStaticSiteUserParameters, ): Promise< StaticSitesDeleteStaticSiteUser200Response | StaticSitesDeleteStaticSiteUserdefaultResponse >; /** Updates a user entry with the listed roles */ patch( - options: StaticSitesUpdateStaticSiteUserParameters + options: StaticSitesUpdateStaticSiteUserParameters, ): Promise< StaticSitesUpdateStaticSiteUser200Response | StaticSitesUpdateStaticSiteUserdefaultResponse >; @@ -4089,7 +4089,7 @@ export interface StaticSitesDeleteStaticSiteUser { export interface StaticSitesGetStaticSiteBuilds { /** Gets all static site builds for a particular static site. */ get( - options?: StaticSitesGetStaticSiteBuildsParameters + options?: StaticSitesGetStaticSiteBuildsParameters, ): Promise< StaticSitesGetStaticSiteBuilds200Response | StaticSitesGetStaticSiteBuildsdefaultResponse >; @@ -4098,13 +4098,13 @@ export interface StaticSitesGetStaticSiteBuilds { export interface StaticSitesGetStaticSiteBuild { /** Gets the details of a static site build. */ get( - options?: StaticSitesGetStaticSiteBuildParameters + options?: StaticSitesGetStaticSiteBuildParameters, ): Promise< StaticSitesGetStaticSiteBuild200Response | StaticSitesGetStaticSiteBuilddefaultResponse >; /** Deletes a static site build. */ delete( - options?: StaticSitesDeleteStaticSiteBuildParameters + options?: StaticSitesDeleteStaticSiteBuildParameters, ): Promise< | StaticSitesDeleteStaticSiteBuild200Response | StaticSitesDeleteStaticSiteBuild202Response @@ -4116,7 +4116,7 @@ export interface StaticSitesGetStaticSiteBuild { export interface StaticSitesCreateOrUpdateStaticSiteBuildAppSettings { /** Creates or updates the app settings of a static site build. */ put( - options: StaticSitesCreateOrUpdateStaticSiteBuildAppSettingsParameters + options: StaticSitesCreateOrUpdateStaticSiteBuildAppSettingsParameters, ): Promise< | StaticSitesCreateOrUpdateStaticSiteBuildAppSettings200Response | StaticSitesCreateOrUpdateStaticSiteBuildAppSettingsdefaultResponse @@ -4126,7 +4126,7 @@ export interface StaticSitesCreateOrUpdateStaticSiteBuildAppSettings { export interface StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettings { /** Creates or updates the function app settings of a static site build. */ put( - options: StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettingsParameters + options: StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettingsParameters, ): Promise< | StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettings200Response | StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettingsdefaultResponse @@ -4136,7 +4136,7 @@ export interface StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettings { export interface StaticSitesListStaticSiteBuildFunctions { /** Gets the functions of a particular static site build. */ get( - options?: StaticSitesListStaticSiteBuildFunctionsParameters + options?: StaticSitesListStaticSiteBuildFunctionsParameters, ): Promise< | StaticSitesListStaticSiteBuildFunctions200Response | StaticSitesListStaticSiteBuildFunctionsdefaultResponse @@ -4146,7 +4146,7 @@ export interface StaticSitesListStaticSiteBuildFunctions { export interface StaticSitesListStaticSiteBuildAppSettings { /** Gets the application settings of a static site build. */ post( - options?: StaticSitesListStaticSiteBuildAppSettingsParameters + options?: StaticSitesListStaticSiteBuildAppSettingsParameters, ): Promise< | StaticSitesListStaticSiteBuildAppSettings200Response | StaticSitesListStaticSiteBuildAppSettingsdefaultResponse @@ -4156,7 +4156,7 @@ export interface StaticSitesListStaticSiteBuildAppSettings { export interface StaticSitesListStaticSiteBuildFunctionAppSettings { /** Gets the application settings of a static site build. */ post( - options?: StaticSitesListStaticSiteBuildFunctionAppSettingsParameters + options?: StaticSitesListStaticSiteBuildFunctionAppSettingsParameters, ): Promise< | StaticSitesListStaticSiteBuildFunctionAppSettings200Response | StaticSitesListStaticSiteBuildFunctionAppSettingsdefaultResponse @@ -4166,7 +4166,7 @@ export interface StaticSitesListStaticSiteBuildFunctionAppSettings { export interface StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuild { /** Gets the details of the user provided function apps registered with a static site build */ get( - options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildParameters + options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildParameters, ): Promise< | StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuild200Response | StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuilddefaultResponse @@ -4176,14 +4176,14 @@ export interface StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuild { export interface StaticSitesGetUserProvidedFunctionAppForStaticSiteBuild { /** Gets the details of the user provided function app registered with a static site build */ get( - options?: StaticSitesGetUserProvidedFunctionAppForStaticSiteBuildParameters + options?: StaticSitesGetUserProvidedFunctionAppForStaticSiteBuildParameters, ): Promise< | StaticSitesGetUserProvidedFunctionAppForStaticSiteBuild200Response | StaticSitesGetUserProvidedFunctionAppForStaticSiteBuilddefaultResponse >; /** Register a user provided function app with a static site build */ put( - options: StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildParameters + options: StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildParameters, ): Promise< | StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuild200Response | StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuild202Response @@ -4191,7 +4191,7 @@ export interface StaticSitesGetUserProvidedFunctionAppForStaticSiteBuild { >; /** Detach the user provided function app from the static site build */ delete( - options?: StaticSitesDetachUserProvidedFunctionAppFromStaticSiteBuildParameters + options?: StaticSitesDetachUserProvidedFunctionAppFromStaticSiteBuildParameters, ): Promise< | StaticSitesDetachUserProvidedFunctionAppFromStaticSiteBuild200Response | StaticSitesDetachUserProvidedFunctionAppFromStaticSiteBuild204Response @@ -4202,7 +4202,7 @@ export interface StaticSitesGetUserProvidedFunctionAppForStaticSiteBuild { export interface StaticSitesCreateZipDeploymentForStaticSiteBuild { /** Deploys zipped content to a specific environment of a static site. */ post( - options: StaticSitesCreateZipDeploymentForStaticSiteBuildParameters + options: StaticSitesCreateZipDeploymentForStaticSiteBuildParameters, ): Promise< | StaticSitesCreateZipDeploymentForStaticSiteBuild200Response | StaticSitesCreateZipDeploymentForStaticSiteBuild202Response @@ -4213,7 +4213,7 @@ export interface StaticSitesCreateZipDeploymentForStaticSiteBuild { export interface StaticSitesCreateOrUpdateStaticSiteAppSettings { /** Creates or updates the app settings of a static site. */ put( - options: StaticSitesCreateOrUpdateStaticSiteAppSettingsParameters + options: StaticSitesCreateOrUpdateStaticSiteAppSettingsParameters, ): Promise< | StaticSitesCreateOrUpdateStaticSiteAppSettings200Response | StaticSitesCreateOrUpdateStaticSiteAppSettingsdefaultResponse @@ -4223,7 +4223,7 @@ export interface StaticSitesCreateOrUpdateStaticSiteAppSettings { export interface StaticSitesCreateOrUpdateStaticSiteFunctionAppSettings { /** Creates or updates the function app settings of a static site. */ put( - options: StaticSitesCreateOrUpdateStaticSiteFunctionAppSettingsParameters + options: StaticSitesCreateOrUpdateStaticSiteFunctionAppSettingsParameters, ): Promise< | StaticSitesCreateOrUpdateStaticSiteFunctionAppSettings200Response | StaticSitesCreateOrUpdateStaticSiteFunctionAppSettingsdefaultResponse @@ -4233,7 +4233,7 @@ export interface StaticSitesCreateOrUpdateStaticSiteFunctionAppSettings { export interface StaticSitesCreateUserRolesInvitationLink { /** Creates an invitation link for a user with the role */ post( - options: StaticSitesCreateUserRolesInvitationLinkParameters + options: StaticSitesCreateUserRolesInvitationLinkParameters, ): Promise< | StaticSitesCreateUserRolesInvitationLink200Response | StaticSitesCreateUserRolesInvitationLinkdefaultResponse @@ -4243,7 +4243,7 @@ export interface StaticSitesCreateUserRolesInvitationLink { export interface StaticSitesListStaticSiteCustomDomains { /** Gets all static site custom domains for a particular static site. */ get( - options?: StaticSitesListStaticSiteCustomDomainsParameters + options?: StaticSitesListStaticSiteCustomDomainsParameters, ): Promise< | StaticSitesListStaticSiteCustomDomains200Response | StaticSitesListStaticSiteCustomDomainsdefaultResponse @@ -4253,14 +4253,14 @@ export interface StaticSitesListStaticSiteCustomDomains { export interface StaticSitesGetStaticSiteCustomDomain { /** Gets an existing custom domain for a particular static site. */ get( - options?: StaticSitesGetStaticSiteCustomDomainParameters + options?: StaticSitesGetStaticSiteCustomDomainParameters, ): Promise< | StaticSitesGetStaticSiteCustomDomain200Response | StaticSitesGetStaticSiteCustomDomaindefaultResponse >; /** Creates a new static site custom domain in an existing resource group and static site. */ put( - options: StaticSitesCreateOrUpdateStaticSiteCustomDomainParameters + options: StaticSitesCreateOrUpdateStaticSiteCustomDomainParameters, ): Promise< | StaticSitesCreateOrUpdateStaticSiteCustomDomain200Response | StaticSitesCreateOrUpdateStaticSiteCustomDomain202Response @@ -4268,7 +4268,7 @@ export interface StaticSitesGetStaticSiteCustomDomain { >; /** Deletes a custom domain. */ delete( - options?: StaticSitesDeleteStaticSiteCustomDomainParameters + options?: StaticSitesDeleteStaticSiteCustomDomainParameters, ): Promise< | StaticSitesDeleteStaticSiteCustomDomain200Response | StaticSitesDeleteStaticSiteCustomDomain202Response @@ -4279,7 +4279,7 @@ export interface StaticSitesGetStaticSiteCustomDomain { export interface StaticSitesValidateCustomDomainCanBeAddedToStaticSite { /** Validates a particular custom domain can be added to a static site. */ post( - options: StaticSitesValidateCustomDomainCanBeAddedToStaticSiteParameters + options: StaticSitesValidateCustomDomainCanBeAddedToStaticSiteParameters, ): Promise< | StaticSitesValidateCustomDomainCanBeAddedToStaticSite200Response | StaticSitesValidateCustomDomainCanBeAddedToStaticSite202Response @@ -4290,7 +4290,7 @@ export interface StaticSitesValidateCustomDomainCanBeAddedToStaticSite { export interface StaticSitesDetachStaticSite { /** Detaches a static site. */ post( - options?: StaticSitesDetachStaticSiteParameters + options?: StaticSitesDetachStaticSiteParameters, ): Promise< | StaticSitesDetachStaticSite200Response | StaticSitesDetachStaticSite202Response @@ -4301,7 +4301,7 @@ export interface StaticSitesDetachStaticSite { export interface StaticSitesListStaticSiteFunctions { /** Gets the functions of a static site. */ get( - options?: StaticSitesListStaticSiteFunctionsParameters + options?: StaticSitesListStaticSiteFunctionsParameters, ): Promise< | StaticSitesListStaticSiteFunctions200Response | StaticSitesListStaticSiteFunctionsdefaultResponse @@ -4311,7 +4311,7 @@ export interface StaticSitesListStaticSiteFunctions { export interface StaticSitesListStaticSiteAppSettings { /** Gets the application settings of a static site. */ post( - options?: StaticSitesListStaticSiteAppSettingsParameters + options?: StaticSitesListStaticSiteAppSettingsParameters, ): Promise< | StaticSitesListStaticSiteAppSettings200Response | StaticSitesListStaticSiteAppSettingsdefaultResponse @@ -4321,7 +4321,7 @@ export interface StaticSitesListStaticSiteAppSettings { export interface StaticSitesListStaticSiteConfiguredRoles { /** Lists the roles configured for the static site. */ post( - options?: StaticSitesListStaticSiteConfiguredRolesParameters + options?: StaticSitesListStaticSiteConfiguredRolesParameters, ): Promise< | StaticSitesListStaticSiteConfiguredRoles200Response | StaticSitesListStaticSiteConfiguredRolesdefaultResponse @@ -4331,7 +4331,7 @@ export interface StaticSitesListStaticSiteConfiguredRoles { export interface StaticSitesListStaticSiteFunctionAppSettings { /** Gets the application settings of a static site. */ post( - options?: StaticSitesListStaticSiteFunctionAppSettingsParameters + options?: StaticSitesListStaticSiteFunctionAppSettingsParameters, ): Promise< | StaticSitesListStaticSiteFunctionAppSettings200Response | StaticSitesListStaticSiteFunctionAppSettingsdefaultResponse @@ -4341,7 +4341,7 @@ export interface StaticSitesListStaticSiteFunctionAppSettings { export interface StaticSitesListStaticSiteSecrets { /** Lists the secrets for an existing static site. */ post( - options?: StaticSitesListStaticSiteSecretsParameters + options?: StaticSitesListStaticSiteSecretsParameters, ): Promise< StaticSitesListStaticSiteSecrets200Response | StaticSitesListStaticSiteSecretsdefaultResponse >; @@ -4350,7 +4350,7 @@ export interface StaticSitesListStaticSiteSecrets { export interface StaticSitesGetPrivateEndpointConnectionList { /** Gets the list of private endpoint connections associated with a static site */ get( - options?: StaticSitesGetPrivateEndpointConnectionListParameters + options?: StaticSitesGetPrivateEndpointConnectionListParameters, ): Promise< | StaticSitesGetPrivateEndpointConnectionList200Response | StaticSitesGetPrivateEndpointConnectionListdefaultResponse @@ -4360,14 +4360,14 @@ export interface StaticSitesGetPrivateEndpointConnectionList { export interface StaticSitesGetPrivateEndpointConnection { /** Gets a private endpoint connection */ get( - options?: StaticSitesGetPrivateEndpointConnectionParameters + options?: StaticSitesGetPrivateEndpointConnectionParameters, ): Promise< | StaticSitesGetPrivateEndpointConnection200Response | StaticSitesGetPrivateEndpointConnectiondefaultResponse >; /** Approves or rejects a private endpoint connection */ put( - options: StaticSitesApproveOrRejectPrivateEndpointConnectionParameters + options: StaticSitesApproveOrRejectPrivateEndpointConnectionParameters, ): Promise< | StaticSitesApproveOrRejectPrivateEndpointConnection200Response | StaticSitesApproveOrRejectPrivateEndpointConnection202Response @@ -4375,7 +4375,7 @@ export interface StaticSitesGetPrivateEndpointConnection { >; /** Deletes a private endpoint connection */ delete( - options?: StaticSitesDeletePrivateEndpointConnectionParameters + options?: StaticSitesDeletePrivateEndpointConnectionParameters, ): Promise< | StaticSitesDeletePrivateEndpointConnection200Response | StaticSitesDeletePrivateEndpointConnection202Response @@ -4387,7 +4387,7 @@ export interface StaticSitesGetPrivateEndpointConnection { export interface StaticSitesGetPrivateLinkResources { /** Gets the private link resources */ get( - options?: StaticSitesGetPrivateLinkResourcesParameters + options?: StaticSitesGetPrivateLinkResourcesParameters, ): Promise< | StaticSitesGetPrivateLinkResources200Response | StaticSitesGetPrivateLinkResourcesdefaultResponse @@ -4397,7 +4397,7 @@ export interface StaticSitesGetPrivateLinkResources { export interface StaticSitesResetStaticSiteApiKey { /** Resets the api key for an existing static site. */ post( - options: StaticSitesResetStaticSiteApiKeyParameters + options: StaticSitesResetStaticSiteApiKeyParameters, ): Promise< StaticSitesResetStaticSiteApiKey200Response | StaticSitesResetStaticSiteApiKeydefaultResponse >; @@ -4406,7 +4406,7 @@ export interface StaticSitesResetStaticSiteApiKey { export interface StaticSitesGetUserProvidedFunctionAppsForStaticSite { /** Gets the details of the user provided function apps registered with a static site */ get( - options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteParameters + options?: StaticSitesGetUserProvidedFunctionAppsForStaticSiteParameters, ): Promise< | StaticSitesGetUserProvidedFunctionAppsForStaticSite200Response | StaticSitesGetUserProvidedFunctionAppsForStaticSitedefaultResponse @@ -4416,14 +4416,14 @@ export interface StaticSitesGetUserProvidedFunctionAppsForStaticSite { export interface StaticSitesGetUserProvidedFunctionAppForStaticSite { /** Gets the details of the user provided function app registered with a static site */ get( - options?: StaticSitesGetUserProvidedFunctionAppForStaticSiteParameters + options?: StaticSitesGetUserProvidedFunctionAppForStaticSiteParameters, ): Promise< | StaticSitesGetUserProvidedFunctionAppForStaticSite200Response | StaticSitesGetUserProvidedFunctionAppForStaticSitedefaultResponse >; /** Register a user provided function app with a static site */ put( - options: StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteParameters + options: StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteParameters, ): Promise< | StaticSitesRegisterUserProvidedFunctionAppWithStaticSite200Response | StaticSitesRegisterUserProvidedFunctionAppWithStaticSite202Response @@ -4431,7 +4431,7 @@ export interface StaticSitesGetUserProvidedFunctionAppForStaticSite { >; /** Detach the user provided function app from the static site */ delete( - options?: StaticSitesDetachUserProvidedFunctionAppFromStaticSiteParameters + options?: StaticSitesDetachUserProvidedFunctionAppFromStaticSiteParameters, ): Promise< | StaticSitesDetachUserProvidedFunctionAppFromStaticSite200Response | StaticSitesDetachUserProvidedFunctionAppFromStaticSite204Response @@ -4442,7 +4442,7 @@ export interface StaticSitesGetUserProvidedFunctionAppForStaticSite { export interface StaticSitesCreateZipDeploymentForStaticSite { /** Deploys zipped content to a static site. */ post( - options: StaticSitesCreateZipDeploymentForStaticSiteParameters + options: StaticSitesCreateZipDeploymentForStaticSiteParameters, ): Promise< | StaticSitesCreateZipDeploymentForStaticSite200Response | StaticSitesCreateZipDeploymentForStaticSite202Response @@ -4453,25 +4453,25 @@ export interface StaticSitesCreateZipDeploymentForStaticSite { export interface WebAppsList { /** Get all apps for a subscription. */ get( - options?: WebAppsListParameters + options?: WebAppsListParameters, ): Promise; } export interface WebAppsListByResourceGroup { /** Gets all web, mobile, and API apps in the specified resource group. */ get( - options?: WebAppsListByResourceGroupParameters + options?: WebAppsListByResourceGroupParameters, ): Promise; } export interface WebAppsGet { /** Gets the details of a web, mobile, or API app. */ get( - options?: WebAppsGetParameters + options?: WebAppsGetParameters, ): Promise; /** Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. */ put( - options: WebAppsCreateOrUpdateParameters + options: WebAppsCreateOrUpdateParameters, ): Promise< | WebAppsCreateOrUpdate200Response | WebAppsCreateOrUpdate202Response @@ -4479,7 +4479,7 @@ export interface WebAppsGet { >; /** Deletes a web, mobile, or API app, or one of the deployment slots. */ delete( - options?: WebAppsDeleteParameters + options?: WebAppsDeleteParameters, ): Promise< | WebAppsDelete200Response | WebAppsDelete204Response @@ -4488,21 +4488,21 @@ export interface WebAppsGet { >; /** Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. */ patch( - options: WebAppsUpdateParameters + options: WebAppsUpdateParameters, ): Promise; } export interface WebAppsAnalyzeCustomHostname { /** Analyze a custom hostname. */ get( - options?: WebAppsAnalyzeCustomHostnameParameters + options?: WebAppsAnalyzeCustomHostnameParameters, ): Promise; } export interface WebAppsApplySlotConfigToProduction { /** Applies the configuration settings from the target slot onto the current slot. */ post( - options: WebAppsApplySlotConfigToProductionParameters + options: WebAppsApplySlotConfigToProductionParameters, ): Promise< | WebAppsApplySlotConfigToProduction200Response | WebAppsApplySlotConfigToProductiondefaultResponse @@ -4512,25 +4512,25 @@ export interface WebAppsApplySlotConfigToProduction { export interface WebAppsBackup { /** Creates a backup of an app. */ post( - options: WebAppsBackupParameters + options: WebAppsBackupParameters, ): Promise; } export interface WebAppsListBackups { /** Gets existing backups of an app. */ get( - options?: WebAppsListBackupsParameters + options?: WebAppsListBackupsParameters, ): Promise; } export interface WebAppsGetBackupStatus { /** Gets a backup of an app by its ID. */ get( - options?: WebAppsGetBackupStatusParameters + options?: WebAppsGetBackupStatusParameters, ): Promise; /** Deletes a backup of an app by its ID. */ delete( - options?: WebAppsDeleteBackupParameters + options?: WebAppsDeleteBackupParameters, ): Promise< | WebAppsDeleteBackup200Response | WebAppsDeleteBackup404Response @@ -4541,7 +4541,7 @@ export interface WebAppsGetBackupStatus { export interface WebAppsListBackupStatusSecrets { /** Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. */ post( - options: WebAppsListBackupStatusSecretsParameters + options: WebAppsListBackupStatusSecretsParameters, ): Promise< WebAppsListBackupStatusSecrets200Response | WebAppsListBackupStatusSecretsdefaultResponse >; @@ -4550,14 +4550,14 @@ export interface WebAppsListBackupStatusSecrets { export interface WebAppsRestore { /** Restores a specific backup to another app (or deployment slot, if specified). */ post( - options: WebAppsRestoreParameters + options: WebAppsRestoreParameters, ): Promise; } export interface WebAppsListBasicPublishingCredentialsPolicies { /** Returns whether Scm basic auth is allowed and whether Ftp is allowed for a given site. */ get( - options?: WebAppsListBasicPublishingCredentialsPoliciesParameters + options?: WebAppsListBasicPublishingCredentialsPoliciesParameters, ): Promise< | WebAppsListBasicPublishingCredentialsPolicies200Response | WebAppsListBasicPublishingCredentialsPoliciesdefaultResponse @@ -4567,36 +4567,36 @@ export interface WebAppsListBasicPublishingCredentialsPolicies { export interface WebAppsGetFtpAllowed { /** Returns whether FTP is allowed on the site or not. */ get( - options?: WebAppsGetFtpAllowedParameters + options?: WebAppsGetFtpAllowedParameters, ): Promise; /** Updates whether FTP is allowed on the site or not. */ put( - options: WebAppsUpdateFtpAllowedParameters + options: WebAppsUpdateFtpAllowedParameters, ): Promise; } export interface WebAppsGetScmAllowed { /** Returns whether Scm basic auth is allowed on the site or not. */ get( - options?: WebAppsGetScmAllowedParameters + options?: WebAppsGetScmAllowedParameters, ): Promise; /** Updates whether user publishing credentials are allowed on the site or not. */ put( - options: WebAppsUpdateScmAllowedParameters + options: WebAppsUpdateScmAllowedParameters, ): Promise; } export interface WebAppsListConfigurations { /** List the configurations of an app */ get( - options?: WebAppsListConfigurationsParameters + options?: WebAppsListConfigurationsParameters, ): Promise; } export interface WebAppsUpdateApplicationSettings { /** Replaces the application settings of an app. */ put( - options: WebAppsUpdateApplicationSettingsParameters + options: WebAppsUpdateApplicationSettingsParameters, ): Promise< WebAppsUpdateApplicationSettings200Response | WebAppsUpdateApplicationSettingsdefaultResponse >; @@ -4605,7 +4605,7 @@ export interface WebAppsUpdateApplicationSettings { export interface WebAppsListApplicationSettings { /** Gets the application settings of an app. */ post( - options?: WebAppsListApplicationSettingsParameters + options?: WebAppsListApplicationSettingsParameters, ): Promise< WebAppsListApplicationSettings200Response | WebAppsListApplicationSettingsdefaultResponse >; @@ -4614,42 +4614,42 @@ export interface WebAppsListApplicationSettings { export interface WebAppsUpdateAuthSettings { /** Updates the Authentication / Authorization settings associated with web app. */ put( - options: WebAppsUpdateAuthSettingsParameters + options: WebAppsUpdateAuthSettingsParameters, ): Promise; } export interface WebAppsGetAuthSettings { /** Gets the Authentication/Authorization settings of an app. */ post( - options?: WebAppsGetAuthSettingsParameters + options?: WebAppsGetAuthSettingsParameters, ): Promise; } export interface WebAppsGetAuthSettingsV2WithoutSecrets { /** Gets site's Authentication / Authorization settings for apps via the V2 format */ get( - options?: WebAppsGetAuthSettingsV2WithoutSecretsParameters + options?: WebAppsGetAuthSettingsV2WithoutSecretsParameters, ): Promise< | WebAppsGetAuthSettingsV2WithoutSecrets200Response | WebAppsGetAuthSettingsV2WithoutSecretsdefaultResponse >; /** Updates site's Authentication / Authorization settings for apps via the V2 format */ put( - options: WebAppsUpdateAuthSettingsV2Parameters + options: WebAppsUpdateAuthSettingsV2Parameters, ): Promise; } export interface WebAppsGetAuthSettingsV2 { /** Gets site's Authentication / Authorization settings for apps via the V2 format */ get( - options?: WebAppsGetAuthSettingsV2Parameters + options?: WebAppsGetAuthSettingsV2Parameters, ): Promise; } export interface WebAppsUpdateAzureStorageAccounts { /** Updates the Azure storage account configurations of an app. */ put( - options: WebAppsUpdateAzureStorageAccountsParameters + options: WebAppsUpdateAzureStorageAccountsParameters, ): Promise< WebAppsUpdateAzureStorageAccounts200Response | WebAppsUpdateAzureStorageAccountsdefaultResponse >; @@ -4658,7 +4658,7 @@ export interface WebAppsUpdateAzureStorageAccounts { export interface WebAppsListAzureStorageAccounts { /** Gets the Azure storage account configurations of an app. */ post( - options?: WebAppsListAzureStorageAccountsParameters + options?: WebAppsListAzureStorageAccountsParameters, ): Promise< WebAppsListAzureStorageAccounts200Response | WebAppsListAzureStorageAccountsdefaultResponse >; @@ -4667,13 +4667,13 @@ export interface WebAppsListAzureStorageAccounts { export interface WebAppsUpdateBackupConfiguration { /** Updates the backup configuration of an app. */ put( - options: WebAppsUpdateBackupConfigurationParameters + options: WebAppsUpdateBackupConfigurationParameters, ): Promise< WebAppsUpdateBackupConfiguration200Response | WebAppsUpdateBackupConfigurationdefaultResponse >; /** Deletes the backup configuration of an app. */ delete( - options?: WebAppsDeleteBackupConfigurationParameters + options?: WebAppsDeleteBackupConfigurationParameters, ): Promise< WebAppsDeleteBackupConfiguration200Response | WebAppsDeleteBackupConfigurationdefaultResponse >; @@ -4682,7 +4682,7 @@ export interface WebAppsUpdateBackupConfiguration { export interface WebAppsGetBackupConfiguration { /** Gets the backup configuration of an app. */ post( - options?: WebAppsGetBackupConfigurationParameters + options?: WebAppsGetBackupConfigurationParameters, ): Promise< WebAppsGetBackupConfiguration200Response | WebAppsGetBackupConfigurationdefaultResponse >; @@ -4691,7 +4691,7 @@ export interface WebAppsGetBackupConfiguration { export interface WebAppsGetAppSettingsKeyVaultReferences { /** Gets the config reference app settings and status of an app */ get( - options?: WebAppsGetAppSettingsKeyVaultReferencesParameters + options?: WebAppsGetAppSettingsKeyVaultReferencesParameters, ): Promise< | WebAppsGetAppSettingsKeyVaultReferences200Response | WebAppsGetAppSettingsKeyVaultReferencesdefaultResponse @@ -4701,7 +4701,7 @@ export interface WebAppsGetAppSettingsKeyVaultReferences { export interface WebAppsGetAppSettingKeyVaultReference { /** Gets the config reference and status of an app */ get( - options?: WebAppsGetAppSettingKeyVaultReferenceParameters + options?: WebAppsGetAppSettingKeyVaultReferenceParameters, ): Promise< | WebAppsGetAppSettingKeyVaultReference200Response | WebAppsGetAppSettingKeyVaultReferencedefaultResponse @@ -4711,7 +4711,7 @@ export interface WebAppsGetAppSettingKeyVaultReference { export interface WebAppsGetSiteConnectionStringKeyVaultReferences { /** Gets the config reference app settings and status of an app */ get( - options?: WebAppsGetSiteConnectionStringKeyVaultReferencesParameters + options?: WebAppsGetSiteConnectionStringKeyVaultReferencesParameters, ): Promise< | WebAppsGetSiteConnectionStringKeyVaultReferences200Response | WebAppsGetSiteConnectionStringKeyVaultReferencesdefaultResponse @@ -4721,7 +4721,7 @@ export interface WebAppsGetSiteConnectionStringKeyVaultReferences { export interface WebAppsGetSiteConnectionStringKeyVaultReference { /** Gets the config reference and status of an app */ get( - options?: WebAppsGetSiteConnectionStringKeyVaultReferenceParameters + options?: WebAppsGetSiteConnectionStringKeyVaultReferenceParameters, ): Promise< | WebAppsGetSiteConnectionStringKeyVaultReference200Response | WebAppsGetSiteConnectionStringKeyVaultReferencedefaultResponse @@ -4731,7 +4731,7 @@ export interface WebAppsGetSiteConnectionStringKeyVaultReference { export interface WebAppsUpdateConnectionStrings { /** Replaces the connection strings of an app. */ put( - options: WebAppsUpdateConnectionStringsParameters + options: WebAppsUpdateConnectionStringsParameters, ): Promise< WebAppsUpdateConnectionStrings200Response | WebAppsUpdateConnectionStringsdefaultResponse >; @@ -4740,21 +4740,21 @@ export interface WebAppsUpdateConnectionStrings { export interface WebAppsListConnectionStrings { /** Gets the connection strings of an app. */ post( - options?: WebAppsListConnectionStringsParameters + options?: WebAppsListConnectionStringsParameters, ): Promise; } export interface WebAppsGetDiagnosticLogsConfiguration { /** Gets the logging configuration of an app. */ get( - options?: WebAppsGetDiagnosticLogsConfigurationParameters + options?: WebAppsGetDiagnosticLogsConfigurationParameters, ): Promise< | WebAppsGetDiagnosticLogsConfiguration200Response | WebAppsGetDiagnosticLogsConfigurationdefaultResponse >; /** Updates the logging configuration of an app. */ put( - options: WebAppsUpdateDiagnosticLogsConfigParameters + options: WebAppsUpdateDiagnosticLogsConfigParameters, ): Promise< WebAppsUpdateDiagnosticLogsConfig200Response | WebAppsUpdateDiagnosticLogsConfigdefaultResponse >; @@ -4763,21 +4763,21 @@ export interface WebAppsGetDiagnosticLogsConfiguration { export interface WebAppsUpdateMetadata { /** Replaces the metadata of an app. */ put( - options: WebAppsUpdateMetadataParameters + options: WebAppsUpdateMetadataParameters, ): Promise; } export interface WebAppsListMetadata { /** Gets the metadata of an app. */ post( - options?: WebAppsListMetadataParameters + options?: WebAppsListMetadataParameters, ): Promise; } export interface WebAppsListPublishingCredentials { /** Gets the Git/FTP publishing credentials of an app. */ post( - options?: WebAppsListPublishingCredentialsParameters + options?: WebAppsListPublishingCredentialsParameters, ): Promise< WebAppsListPublishingCredentials200Response | WebAppsListPublishingCredentialsdefaultResponse >; @@ -4786,7 +4786,7 @@ export interface WebAppsListPublishingCredentials { export interface WebAppsUpdateSitePushSettings { /** Updates the Push settings associated with web app. */ put( - options: WebAppsUpdateSitePushSettingsParameters + options: WebAppsUpdateSitePushSettingsParameters, ): Promise< WebAppsUpdateSitePushSettings200Response | WebAppsUpdateSitePushSettingsdefaultResponse >; @@ -4795,20 +4795,20 @@ export interface WebAppsUpdateSitePushSettings { export interface WebAppsListSitePushSettings { /** Gets the Push settings associated with web app. */ post( - options?: WebAppsListSitePushSettingsParameters + options?: WebAppsListSitePushSettingsParameters, ): Promise; } export interface WebAppsListSlotConfigurationNames { /** Gets the names of app settings and connection strings that stick to the slot (not swapped). */ get( - options?: WebAppsListSlotConfigurationNamesParameters + options?: WebAppsListSlotConfigurationNamesParameters, ): Promise< WebAppsListSlotConfigurationNames200Response | WebAppsListSlotConfigurationNamesdefaultResponse >; /** Updates the names of application settings and connection string that remain with the slot during swap operation. */ put( - options: WebAppsUpdateSlotConfigurationNamesParameters + options: WebAppsUpdateSlotConfigurationNamesParameters, ): Promise< | WebAppsUpdateSlotConfigurationNames200Response | WebAppsUpdateSlotConfigurationNamesdefaultResponse @@ -4818,25 +4818,25 @@ export interface WebAppsListSlotConfigurationNames { export interface WebAppsGetConfiguration { /** Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. */ get( - options?: WebAppsGetConfigurationParameters + options?: WebAppsGetConfigurationParameters, ): Promise; /** Updates the configuration of an app. */ put( - options: WebAppsCreateOrUpdateConfigurationParameters + options: WebAppsCreateOrUpdateConfigurationParameters, ): Promise< | WebAppsCreateOrUpdateConfiguration200Response | WebAppsCreateOrUpdateConfigurationdefaultResponse >; /** Updates the configuration of an app. */ patch( - options: WebAppsUpdateConfigurationParameters + options: WebAppsUpdateConfigurationParameters, ): Promise; } export interface WebAppsListConfigurationSnapshotInfo { /** Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. */ get( - options?: WebAppsListConfigurationSnapshotInfoParameters + options?: WebAppsListConfigurationSnapshotInfoParameters, ): Promise< | WebAppsListConfigurationSnapshotInfo200Response | WebAppsListConfigurationSnapshotInfodefaultResponse @@ -4846,7 +4846,7 @@ export interface WebAppsListConfigurationSnapshotInfo { export interface WebAppsGetConfigurationSnapshot { /** Gets a snapshot of the configuration of an app at a previous point in time. */ get( - options?: WebAppsGetConfigurationSnapshotParameters + options?: WebAppsGetConfigurationSnapshotParameters, ): Promise< WebAppsGetConfigurationSnapshot200Response | WebAppsGetConfigurationSnapshotdefaultResponse >; @@ -4855,7 +4855,7 @@ export interface WebAppsGetConfigurationSnapshot { export interface WebAppsRecoverSiteConfigurationSnapshot { /** Reverts the configuration of an app to a previous snapshot. */ post( - options?: WebAppsRecoverSiteConfigurationSnapshotParameters + options?: WebAppsRecoverSiteConfigurationSnapshotParameters, ): Promise< | WebAppsRecoverSiteConfigurationSnapshot204Response | WebAppsRecoverSiteConfigurationSnapshotdefaultResponse @@ -4865,7 +4865,7 @@ export interface WebAppsRecoverSiteConfigurationSnapshot { export interface WebAppsGetWebSiteContainerLogs { /** Gets the last lines of docker logs for the given site */ post( - options?: WebAppsGetWebSiteContainerLogsParameters + options?: WebAppsGetWebSiteContainerLogsParameters, ): Promise< | WebAppsGetWebSiteContainerLogs200Response | WebAppsGetWebSiteContainerLogs204Response @@ -4876,7 +4876,7 @@ export interface WebAppsGetWebSiteContainerLogs { export interface WebAppsGetContainerLogsZip { /** Gets the ZIP archived docker log files for the given site */ post( - options?: WebAppsGetContainerLogsZipParameters + options?: WebAppsGetContainerLogsZipParameters, ): Promise< | WebAppsGetContainerLogsZip200Response | WebAppsGetContainerLogsZip204Response @@ -4887,14 +4887,14 @@ export interface WebAppsGetContainerLogsZip { export interface WebAppsListContinuousWebJobs { /** List continuous web jobs for an app, or a deployment slot. */ get( - options?: WebAppsListContinuousWebJobsParameters + options?: WebAppsListContinuousWebJobsParameters, ): Promise; } export interface WebAppsGetContinuousWebJob { /** Gets a continuous web job by its ID for an app, or a deployment slot. */ get( - options?: WebAppsGetContinuousWebJobParameters + options?: WebAppsGetContinuousWebJobParameters, ): Promise< | WebAppsGetContinuousWebJob200Response | WebAppsGetContinuousWebJob404Response @@ -4902,7 +4902,7 @@ export interface WebAppsGetContinuousWebJob { >; /** Delete a continuous web job by its ID for an app, or a deployment slot. */ delete( - options?: WebAppsDeleteContinuousWebJobParameters + options?: WebAppsDeleteContinuousWebJobParameters, ): Promise< | WebAppsDeleteContinuousWebJob200Response | WebAppsDeleteContinuousWebJob204Response @@ -4913,7 +4913,7 @@ export interface WebAppsGetContinuousWebJob { export interface WebAppsStartContinuousWebJob { /** Start a continuous web job for an app, or a deployment slot. */ post( - options?: WebAppsStartContinuousWebJobParameters + options?: WebAppsStartContinuousWebJobParameters, ): Promise< | WebAppsStartContinuousWebJob200Response | WebAppsStartContinuousWebJob404Response @@ -4924,7 +4924,7 @@ export interface WebAppsStartContinuousWebJob { export interface WebAppsStopContinuousWebJob { /** Stop a continuous web job for an app, or a deployment slot. */ post( - options?: WebAppsStopContinuousWebJobParameters + options?: WebAppsStopContinuousWebJobParameters, ): Promise< | WebAppsStopContinuousWebJob200Response | WebAppsStopContinuousWebJob404Response @@ -4935,22 +4935,22 @@ export interface WebAppsStopContinuousWebJob { export interface WebAppsListDeployments { /** List deployments for an app, or a deployment slot. */ get( - options?: WebAppsListDeploymentsParameters + options?: WebAppsListDeploymentsParameters, ): Promise; } export interface WebAppsGetDeployment { /** Get a deployment by its ID for an app, or a deployment slot. */ get( - options?: WebAppsGetDeploymentParameters + options?: WebAppsGetDeploymentParameters, ): Promise; /** Create a deployment for an app, or a deployment slot. */ put( - options: WebAppsCreateDeploymentParameters + options: WebAppsCreateDeploymentParameters, ): Promise; /** Delete a deployment by its ID for an app, or a deployment slot. */ delete( - options?: WebAppsDeleteDeploymentParameters + options?: WebAppsDeleteDeploymentParameters, ): Promise< | WebAppsDeleteDeployment200Response | WebAppsDeleteDeployment204Response @@ -4961,21 +4961,21 @@ export interface WebAppsGetDeployment { export interface WebAppsListDeploymentLog { /** List deployment log for specific deployment for an app, or a deployment slot. */ get( - options?: WebAppsListDeploymentLogParameters + options?: WebAppsListDeploymentLogParameters, ): Promise; } export interface WebAppsDiscoverBackup { /** Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. */ post( - options: WebAppsDiscoverBackupParameters + options: WebAppsDiscoverBackupParameters, ): Promise; } export interface WebAppsListDomainOwnershipIdentifiers { /** Lists ownership identifiers for domain associated with web app. */ get( - options?: WebAppsListDomainOwnershipIdentifiersParameters + options?: WebAppsListDomainOwnershipIdentifiersParameters, ): Promise< | WebAppsListDomainOwnershipIdentifiers200Response | WebAppsListDomainOwnershipIdentifiersdefaultResponse @@ -4985,21 +4985,21 @@ export interface WebAppsListDomainOwnershipIdentifiers { export interface WebAppsGetDomainOwnershipIdentifier { /** Get domain ownership identifier for web app. */ get( - options?: WebAppsGetDomainOwnershipIdentifierParameters + options?: WebAppsGetDomainOwnershipIdentifierParameters, ): Promise< | WebAppsGetDomainOwnershipIdentifier200Response | WebAppsGetDomainOwnershipIdentifierdefaultResponse >; /** Creates a domain ownership identifier for web app, or updates an existing ownership identifier. */ put( - options: WebAppsCreateOrUpdateDomainOwnershipIdentifierParameters + options: WebAppsCreateOrUpdateDomainOwnershipIdentifierParameters, ): Promise< | WebAppsCreateOrUpdateDomainOwnershipIdentifier200Response | WebAppsCreateOrUpdateDomainOwnershipIdentifierdefaultResponse >; /** Deletes a domain ownership identifier for a web app. */ delete( - options?: WebAppsDeleteDomainOwnershipIdentifierParameters + options?: WebAppsDeleteDomainOwnershipIdentifierParameters, ): Promise< | WebAppsDeleteDomainOwnershipIdentifier200Response | WebAppsDeleteDomainOwnershipIdentifier204Response @@ -5007,7 +5007,7 @@ export interface WebAppsGetDomainOwnershipIdentifier { >; /** Creates a domain ownership identifier for web app, or updates an existing ownership identifier. */ patch( - options: WebAppsUpdateDomainOwnershipIdentifierParameters + options: WebAppsUpdateDomainOwnershipIdentifierParameters, ): Promise< | WebAppsUpdateDomainOwnershipIdentifier200Response | WebAppsUpdateDomainOwnershipIdentifierdefaultResponse @@ -5017,11 +5017,11 @@ export interface WebAppsGetDomainOwnershipIdentifier { export interface WebAppsGetMSDeployStatus { /** Get the status of the last MSDeploy operation. */ get( - options?: WebAppsGetMSDeployStatusParameters + options?: WebAppsGetMSDeployStatusParameters, ): Promise; /** Invoke the MSDeploy web app extension. */ put( - options: WebAppsCreateMSDeployOperationParameters + options: WebAppsCreateMSDeployOperationParameters, ): Promise< | WebAppsCreateMSDeployOperation201Response | WebAppsCreateMSDeployOperation409Response @@ -5032,7 +5032,7 @@ export interface WebAppsGetMSDeployStatus { export interface WebAppsGetMSDeployLog { /** Get the MSDeploy Log for the last MSDeploy operation. */ get( - options?: WebAppsGetMSDeployLogParameters + options?: WebAppsGetMSDeployLogParameters, ): Promise< | WebAppsGetMSDeployLog200Response | WebAppsGetMSDeployLog404Response @@ -5043,11 +5043,11 @@ export interface WebAppsGetMSDeployLog { export interface WebAppsGetOneDeployStatus { /** Invoke onedeploy status API /api/deployments and gets the deployment status for the site */ get( - options?: WebAppsGetOneDeployStatusParameters + options?: WebAppsGetOneDeployStatusParameters, ): Promise; /** Invoke the OneDeploy publish web app extension. */ put( - options?: WebAppsCreateOneDeployOperationParameters + options?: WebAppsCreateOneDeployOperationParameters, ): Promise< WebAppsCreateOneDeployOperation200Response | WebAppsCreateOneDeployOperationdefaultResponse >; @@ -5056,7 +5056,7 @@ export interface WebAppsGetOneDeployStatus { export interface WebAppsListFunctions { /** List the functions for a web site, or a deployment slot. */ get( - options?: WebAppsListFunctionsParameters + options?: WebAppsListFunctionsParameters, ): Promise< | WebAppsListFunctions200Response | WebAppsListFunctions404Response @@ -5067,7 +5067,7 @@ export interface WebAppsListFunctions { export interface WebAppsGetFunctionsAdminToken { /** Fetch a short lived token that can be exchanged for a master key. */ get( - options?: WebAppsGetFunctionsAdminTokenParameters + options?: WebAppsGetFunctionsAdminTokenParameters, ): Promise< WebAppsGetFunctionsAdminToken200Response | WebAppsGetFunctionsAdminTokendefaultResponse >; @@ -5076,7 +5076,7 @@ export interface WebAppsGetFunctionsAdminToken { export interface WebAppsGetFunction { /** Get function information by its ID for web site, or a deployment slot. */ get( - options?: WebAppsGetFunctionParameters + options?: WebAppsGetFunctionParameters, ): Promise< | WebAppsGetFunction200Response | WebAppsGetFunction404Response @@ -5084,11 +5084,11 @@ export interface WebAppsGetFunction { >; /** Create function for web site, or a deployment slot. */ put( - options: WebAppsCreateFunctionParameters + options: WebAppsCreateFunctionParameters, ): Promise; /** Delete a function for web site, or a deployment slot. */ delete( - options?: WebAppsDeleteFunctionParameters + options?: WebAppsDeleteFunctionParameters, ): Promise< | WebAppsDeleteFunction204Response | WebAppsDeleteFunction404Response @@ -5099,7 +5099,7 @@ export interface WebAppsGetFunction { export interface WebAppsCreateOrUpdateFunctionSecret { /** Add or update a function secret. */ put( - options: WebAppsCreateOrUpdateFunctionSecretParameters + options: WebAppsCreateOrUpdateFunctionSecretParameters, ): Promise< | WebAppsCreateOrUpdateFunctionSecret200Response | WebAppsCreateOrUpdateFunctionSecret201Response @@ -5107,7 +5107,7 @@ export interface WebAppsCreateOrUpdateFunctionSecret { >; /** Delete a function secret. */ delete( - options?: WebAppsDeleteFunctionSecretParameters + options?: WebAppsDeleteFunctionSecretParameters, ): Promise< | WebAppsDeleteFunctionSecret204Response | WebAppsDeleteFunctionSecret404Response @@ -5118,42 +5118,42 @@ export interface WebAppsCreateOrUpdateFunctionSecret { export interface WebAppsListFunctionKeys { /** Get function keys for a function in a web site, or a deployment slot. */ post( - options?: WebAppsListFunctionKeysParameters + options?: WebAppsListFunctionKeysParameters, ): Promise; } export interface WebAppsListFunctionSecrets { /** Get function secrets for a function in a web site, or a deployment slot. */ post( - options?: WebAppsListFunctionSecretsParameters + options?: WebAppsListFunctionSecretsParameters, ): Promise; } export interface WebAppsListHostKeys { /** Get host secrets for a function app. */ post( - options?: WebAppsListHostKeysParameters + options?: WebAppsListHostKeysParameters, ): Promise; } export interface WebAppsListSyncStatus { /** This is to allow calling via powershell and ARM template. */ post( - options?: WebAppsListSyncStatusParameters + options?: WebAppsListSyncStatusParameters, ): Promise; } export interface WebAppsSyncFunctions { /** Syncs function trigger metadata to the management database */ post( - options?: WebAppsSyncFunctionsParameters + options?: WebAppsSyncFunctionsParameters, ): Promise; } export interface WebAppsCreateOrUpdateHostSecret { /** Add or update a host level secret. */ put( - options: WebAppsCreateOrUpdateHostSecretParameters + options: WebAppsCreateOrUpdateHostSecretParameters, ): Promise< | WebAppsCreateOrUpdateHostSecret200Response | WebAppsCreateOrUpdateHostSecret201Response @@ -5161,7 +5161,7 @@ export interface WebAppsCreateOrUpdateHostSecret { >; /** Delete a host level secret. */ delete( - options?: WebAppsDeleteHostSecretParameters + options?: WebAppsDeleteHostSecretParameters, ): Promise< | WebAppsDeleteHostSecret204Response | WebAppsDeleteHostSecret404Response @@ -5172,25 +5172,25 @@ export interface WebAppsCreateOrUpdateHostSecret { export interface WebAppsListHostNameBindings { /** Get hostname bindings for an app or a deployment slot. */ get( - options?: WebAppsListHostNameBindingsParameters + options?: WebAppsListHostNameBindingsParameters, ): Promise; } export interface WebAppsGetHostNameBinding { /** Get the named hostname binding for an app (or deployment slot, if specified). */ get( - options?: WebAppsGetHostNameBindingParameters + options?: WebAppsGetHostNameBindingParameters, ): Promise; /** Creates a hostname binding for an app. */ put( - options: WebAppsCreateOrUpdateHostNameBindingParameters + options: WebAppsCreateOrUpdateHostNameBindingParameters, ): Promise< | WebAppsCreateOrUpdateHostNameBinding200Response | WebAppsCreateOrUpdateHostNameBindingdefaultResponse >; /** Deletes a hostname binding for an app. */ delete( - options?: WebAppsDeleteHostNameBindingParameters + options?: WebAppsDeleteHostNameBindingParameters, ): Promise< | WebAppsDeleteHostNameBinding200Response | WebAppsDeleteHostNameBinding204Response @@ -5201,18 +5201,18 @@ export interface WebAppsGetHostNameBinding { export interface WebAppsGetHybridConnection { /** Retrieves a specific Service Bus Hybrid Connection used by this Web App. */ get( - options?: WebAppsGetHybridConnectionParameters + options?: WebAppsGetHybridConnectionParameters, ): Promise; /** Creates a new Hybrid Connection using a Service Bus relay. */ put( - options: WebAppsCreateOrUpdateHybridConnectionParameters + options: WebAppsCreateOrUpdateHybridConnectionParameters, ): Promise< | WebAppsCreateOrUpdateHybridConnection200Response | WebAppsCreateOrUpdateHybridConnectiondefaultResponse >; /** Removes a Hybrid Connection from this site. */ delete( - options?: WebAppsDeleteHybridConnectionParameters + options?: WebAppsDeleteHybridConnectionParameters, ): Promise< | WebAppsDeleteHybridConnection200Response | WebAppsDeleteHybridConnection404Response @@ -5220,7 +5220,7 @@ export interface WebAppsGetHybridConnection { >; /** Creates a new Hybrid Connection using a Service Bus relay. */ patch( - options: WebAppsUpdateHybridConnectionParameters + options: WebAppsUpdateHybridConnectionParameters, ): Promise< WebAppsUpdateHybridConnection200Response | WebAppsUpdateHybridConnectiondefaultResponse >; @@ -5229,14 +5229,14 @@ export interface WebAppsGetHybridConnection { export interface WebAppsListHybridConnections { /** Retrieves all Service Bus Hybrid Connections used by this Web App. */ get( - options?: WebAppsListHybridConnectionsParameters + options?: WebAppsListHybridConnectionsParameters, ): Promise; } export interface WebAppsListRelayServiceConnections { /** Gets hybrid connections configured for an app (or deployment slot, if specified). */ get( - options?: WebAppsListRelayServiceConnectionsParameters + options?: WebAppsListRelayServiceConnectionsParameters, ): Promise< | WebAppsListRelayServiceConnections200Response | WebAppsListRelayServiceConnectionsdefaultResponse @@ -5246,20 +5246,20 @@ export interface WebAppsListRelayServiceConnections { export interface WebAppsGetRelayServiceConnection { /** Gets a hybrid connection configuration by its name. */ get( - options?: WebAppsGetRelayServiceConnectionParameters + options?: WebAppsGetRelayServiceConnectionParameters, ): Promise< WebAppsGetRelayServiceConnection200Response | WebAppsGetRelayServiceConnectiondefaultResponse >; /** Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). */ put( - options: WebAppsCreateOrUpdateRelayServiceConnectionParameters + options: WebAppsCreateOrUpdateRelayServiceConnectionParameters, ): Promise< | WebAppsCreateOrUpdateRelayServiceConnection200Response | WebAppsCreateOrUpdateRelayServiceConnectiondefaultResponse >; /** Deletes a relay service connection by its name. */ delete( - options?: WebAppsDeleteRelayServiceConnectionParameters + options?: WebAppsDeleteRelayServiceConnectionParameters, ): Promise< | WebAppsDeleteRelayServiceConnection200Response | WebAppsDeleteRelayServiceConnection404Response @@ -5267,7 +5267,7 @@ export interface WebAppsGetRelayServiceConnection { >; /** Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). */ patch( - options: WebAppsUpdateRelayServiceConnectionParameters + options: WebAppsUpdateRelayServiceConnectionParameters, ): Promise< | WebAppsUpdateRelayServiceConnection200Response | WebAppsUpdateRelayServiceConnectiondefaultResponse @@ -5277,7 +5277,7 @@ export interface WebAppsGetRelayServiceConnection { export interface WebAppsListInstanceIdentifiers { /** Gets all scale-out instances of an app. */ get( - options?: WebAppsListInstanceIdentifiersParameters + options?: WebAppsListInstanceIdentifiersParameters, ): Promise< WebAppsListInstanceIdentifiers200Response | WebAppsListInstanceIdentifiersdefaultResponse >; @@ -5286,20 +5286,20 @@ export interface WebAppsListInstanceIdentifiers { export interface WebAppsGetInstanceInfo { /** Gets all scale-out instances of an app. */ get( - options?: WebAppsGetInstanceInfoParameters + options?: WebAppsGetInstanceInfoParameters, ): Promise; } export interface WebAppsGetInstanceMsDeployStatus { /** Get the status of the last MSDeploy operation. */ get( - options?: WebAppsGetInstanceMsDeployStatusParameters + options?: WebAppsGetInstanceMsDeployStatusParameters, ): Promise< WebAppsGetInstanceMsDeployStatus200Response | WebAppsGetInstanceMsDeployStatusdefaultResponse >; /** Invoke the MSDeploy web app extension. */ put( - options: WebAppsCreateInstanceMSDeployOperationParameters + options: WebAppsCreateInstanceMSDeployOperationParameters, ): Promise< | WebAppsCreateInstanceMSDeployOperation201Response | WebAppsCreateInstanceMSDeployOperation409Response @@ -5310,7 +5310,7 @@ export interface WebAppsGetInstanceMsDeployStatus { export interface WebAppsGetInstanceMSDeployLog { /** Get the MSDeploy Log for the last MSDeploy operation. */ get( - options?: WebAppsGetInstanceMSDeployLogParameters + options?: WebAppsGetInstanceMSDeployLogParameters, ): Promise< | WebAppsGetInstanceMSDeployLog200Response | WebAppsGetInstanceMSDeployLog404Response @@ -5321,7 +5321,7 @@ export interface WebAppsGetInstanceMSDeployLog { export interface WebAppsListInstanceProcesses { /** Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. */ get( - options?: WebAppsListInstanceProcessesParameters + options?: WebAppsListInstanceProcessesParameters, ): Promise< | WebAppsListInstanceProcesses200Response | WebAppsListInstanceProcesses404Response @@ -5332,7 +5332,7 @@ export interface WebAppsListInstanceProcesses { export interface WebAppsGetInstanceProcess { /** Get process information by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsGetInstanceProcessParameters + options?: WebAppsGetInstanceProcessParameters, ): Promise< | WebAppsGetInstanceProcess200Response | WebAppsGetInstanceProcess404Response @@ -5340,7 +5340,7 @@ export interface WebAppsGetInstanceProcess { >; /** Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. */ delete( - options?: WebAppsDeleteInstanceProcessParameters + options?: WebAppsDeleteInstanceProcessParameters, ): Promise< | WebAppsDeleteInstanceProcess204Response | WebAppsDeleteInstanceProcess404Response @@ -5351,7 +5351,7 @@ export interface WebAppsGetInstanceProcess { export interface WebAppsGetInstanceProcessDump { /** Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsGetInstanceProcessDumpParameters + options?: WebAppsGetInstanceProcessDumpParameters, ): Promise< | WebAppsGetInstanceProcessDump200Response | WebAppsGetInstanceProcessDump404Response @@ -5362,7 +5362,7 @@ export interface WebAppsGetInstanceProcessDump { export interface WebAppsListInstanceProcessModules { /** List module information for a process by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsListInstanceProcessModulesParameters + options?: WebAppsListInstanceProcessModulesParameters, ): Promise< | WebAppsListInstanceProcessModules200Response | WebAppsListInstanceProcessModules404Response @@ -5373,7 +5373,7 @@ export interface WebAppsListInstanceProcessModules { export interface WebAppsGetInstanceProcessModule { /** Get process information by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsGetInstanceProcessModuleParameters + options?: WebAppsGetInstanceProcessModuleParameters, ): Promise< | WebAppsGetInstanceProcessModule200Response | WebAppsGetInstanceProcessModule404Response @@ -5384,7 +5384,7 @@ export interface WebAppsGetInstanceProcessModule { export interface WebAppsListInstanceProcessThreads { /** List the threads in a process by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsListInstanceProcessThreadsParameters + options?: WebAppsListInstanceProcessThreadsParameters, ): Promise< | WebAppsListInstanceProcessThreads200Response | WebAppsListInstanceProcessThreads404Response @@ -5395,21 +5395,21 @@ export interface WebAppsListInstanceProcessThreads { export interface WebAppsIsCloneable { /** Shows whether an app can be cloned to another resource group or subscription. */ post( - options?: WebAppsIsCloneableParameters + options?: WebAppsIsCloneableParameters, ): Promise; } export interface WebAppsListSiteBackups { /** Gets existing backups of an app. */ post( - options?: WebAppsListSiteBackupsParameters + options?: WebAppsListSiteBackupsParameters, ): Promise; } export interface WebAppsListSyncFunctionTriggers { /** This is to allow calling via powershell and ARM template. */ post( - options?: WebAppsListSyncFunctionTriggersParameters + options?: WebAppsListSyncFunctionTriggersParameters, ): Promise< WebAppsListSyncFunctionTriggers200Response | WebAppsListSyncFunctionTriggersdefaultResponse >; @@ -5418,28 +5418,28 @@ export interface WebAppsListSyncFunctionTriggers { export interface WebAppsMigrateStorage { /** Restores a web app. */ put( - options: WebAppsMigrateStorageParameters + options: WebAppsMigrateStorageParameters, ): Promise; } export interface WebAppsMigrateMySql { /** Migrates a local (in-app) MySql database to a remote MySql database. */ post( - options: WebAppsMigrateMySqlParameters + options: WebAppsMigrateMySqlParameters, ): Promise; } export interface WebAppsGetMigrateMySqlStatus { /** Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled */ get( - options?: WebAppsGetMigrateMySqlStatusParameters + options?: WebAppsGetMigrateMySqlStatusParameters, ): Promise; } export interface WebAppsGetSwiftVirtualNetworkConnection { /** Gets a Swift Virtual Network connection. */ get( - options?: WebAppsGetSwiftVirtualNetworkConnectionParameters + options?: WebAppsGetSwiftVirtualNetworkConnectionParameters, ): Promise< | WebAppsGetSwiftVirtualNetworkConnection200Response | WebAppsGetSwiftVirtualNetworkConnectiondefaultResponse @@ -5449,14 +5449,14 @@ export interface WebAppsGetSwiftVirtualNetworkConnection { * in use by another App Service Plan other than the one this App is in. */ put( - options: WebAppsCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckParameters + options: WebAppsCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckParameters, ): Promise< | WebAppsCreateOrUpdateSwiftVirtualNetworkConnectionWithCheck200Response | WebAppsCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckdefaultResponse >; /** Deletes a Swift Virtual Network connection from an app (or deployment slot). */ delete( - options?: WebAppsDeleteSwiftVirtualNetworkParameters + options?: WebAppsDeleteSwiftVirtualNetworkParameters, ): Promise< | WebAppsDeleteSwiftVirtualNetwork200Response | WebAppsDeleteSwiftVirtualNetwork404Response @@ -5467,7 +5467,7 @@ export interface WebAppsGetSwiftVirtualNetworkConnection { * in use by another App Service Plan other than the one this App is in. */ patch( - options: WebAppsUpdateSwiftVirtualNetworkConnectionWithCheckParameters + options: WebAppsUpdateSwiftVirtualNetworkConnectionWithCheckParameters, ): Promise< | WebAppsUpdateSwiftVirtualNetworkConnectionWithCheck200Response | WebAppsUpdateSwiftVirtualNetworkConnectionWithCheckdefaultResponse @@ -5477,7 +5477,7 @@ export interface WebAppsGetSwiftVirtualNetworkConnection { export interface WebAppsListNetworkFeatures { /** Gets all network features used by the app (or deployment slot, if specified). */ get( - options?: WebAppsListNetworkFeaturesParameters + options?: WebAppsListNetworkFeaturesParameters, ): Promise< | WebAppsListNetworkFeatures200Response | WebAppsListNetworkFeatures404Response @@ -5488,7 +5488,7 @@ export interface WebAppsListNetworkFeatures { export interface WebAppsGetNetworkTraceOperation { /** Gets a named operation for a network trace capturing (or deployment slot, if specified). */ get( - options?: WebAppsGetNetworkTraceOperationParameters + options?: WebAppsGetNetworkTraceOperationParameters, ): Promise< | WebAppsGetNetworkTraceOperation200Response | WebAppsGetNetworkTraceOperation202Response @@ -5499,7 +5499,7 @@ export interface WebAppsGetNetworkTraceOperation { export interface WebAppsStartWebSiteNetworkTrace { /** Start capturing network packets for the site (To be deprecated). */ post( - options?: WebAppsStartWebSiteNetworkTraceParameters + options?: WebAppsStartWebSiteNetworkTraceParameters, ): Promise< WebAppsStartWebSiteNetworkTrace200Response | WebAppsStartWebSiteNetworkTracedefaultResponse >; @@ -5508,7 +5508,7 @@ export interface WebAppsStartWebSiteNetworkTrace { export interface WebAppsStartWebSiteNetworkTraceOperation { /** Start capturing network packets for the site. */ post( - options?: WebAppsStartWebSiteNetworkTraceOperationParameters + options?: WebAppsStartWebSiteNetworkTraceOperationParameters, ): Promise< | WebAppsStartWebSiteNetworkTraceOperation200Response | WebAppsStartWebSiteNetworkTraceOperation202Response @@ -5519,7 +5519,7 @@ export interface WebAppsStartWebSiteNetworkTraceOperation { export interface WebAppsStopWebSiteNetworkTrace { /** Stop ongoing capturing network packets for the site. */ post( - options?: WebAppsStopWebSiteNetworkTraceParameters + options?: WebAppsStopWebSiteNetworkTraceParameters, ): Promise< | WebAppsStopWebSiteNetworkTrace200Response | WebAppsStopWebSiteNetworkTrace204Response @@ -5530,14 +5530,14 @@ export interface WebAppsStopWebSiteNetworkTrace { export interface WebAppsGetNetworkTraces { /** Gets a named operation for a network trace capturing (or deployment slot, if specified). */ get( - options?: WebAppsGetNetworkTracesParameters + options?: WebAppsGetNetworkTracesParameters, ): Promise; } export interface WebAppsGetNetworkTraceOperationV2 { /** Gets a named operation for a network trace capturing (or deployment slot, if specified). */ get( - options?: WebAppsGetNetworkTraceOperationV2Parameters + options?: WebAppsGetNetworkTraceOperationV2Parameters, ): Promise< | WebAppsGetNetworkTraceOperationV2200Response | WebAppsGetNetworkTraceOperationV2202Response @@ -5548,14 +5548,14 @@ export interface WebAppsGetNetworkTraceOperationV2 { export interface WebAppsGetNetworkTracesV2 { /** Gets a named operation for a network trace capturing (or deployment slot, if specified). */ get( - options?: WebAppsGetNetworkTracesV2Parameters + options?: WebAppsGetNetworkTracesV2Parameters, ): Promise; } export interface WebAppsGenerateNewSitePublishingPassword { /** Generates a new publishing password for an app (or deployment slot, if specified). */ post( - options?: WebAppsGenerateNewSitePublishingPasswordParameters + options?: WebAppsGenerateNewSitePublishingPasswordParameters, ): Promise< | WebAppsGenerateNewSitePublishingPassword200Response | WebAppsGenerateNewSitePublishingPassword204Response @@ -5566,14 +5566,14 @@ export interface WebAppsGenerateNewSitePublishingPassword { export interface WebAppsListPerfMonCounters { /** Gets perfmon counters for web app. */ get( - options?: WebAppsListPerfMonCountersParameters + options?: WebAppsListPerfMonCountersParameters, ): Promise; } export interface WebAppsGetSitePhpErrorLogFlag { /** Gets web app's event logs. */ get( - options?: WebAppsGetSitePhpErrorLogFlagParameters + options?: WebAppsGetSitePhpErrorLogFlagParameters, ): Promise< WebAppsGetSitePhpErrorLogFlag200Response | WebAppsGetSitePhpErrorLogFlagdefaultResponse >; @@ -5582,44 +5582,44 @@ export interface WebAppsGetSitePhpErrorLogFlag { export interface WebAppsListPremierAddOns { /** Gets the premier add-ons of an app. */ get( - options?: WebAppsListPremierAddOnsParameters + options?: WebAppsListPremierAddOnsParameters, ): Promise; } export interface WebAppsGetPremierAddOn { /** Gets a named add-on of an app. */ get( - options?: WebAppsGetPremierAddOnParameters + options?: WebAppsGetPremierAddOnParameters, ): Promise; /** Updates a named add-on of an app. */ put( - options: WebAppsAddPremierAddOnParameters + options: WebAppsAddPremierAddOnParameters, ): Promise; /** Delete a premier add-on from an app. */ delete( - options?: WebAppsDeletePremierAddOnParameters + options?: WebAppsDeletePremierAddOnParameters, ): Promise; /** Updates a named add-on of an app. */ patch( - options: WebAppsUpdatePremierAddOnParameters + options: WebAppsUpdatePremierAddOnParameters, ): Promise; } export interface WebAppsGetPrivateAccess { /** Gets data around private site access enablement and authorized Virtual Networks that can access the site. */ get( - options?: WebAppsGetPrivateAccessParameters + options?: WebAppsGetPrivateAccessParameters, ): Promise; /** Sets data around private site access enablement and authorized Virtual Networks that can access the site. */ put( - options: WebAppsPutPrivateAccessVnetParameters + options: WebAppsPutPrivateAccessVnetParameters, ): Promise; } export interface WebAppsGetPrivateEndpointConnectionList { /** Gets the list of private endpoint connections associated with a site */ get( - options?: WebAppsGetPrivateEndpointConnectionListParameters + options?: WebAppsGetPrivateEndpointConnectionListParameters, ): Promise< | WebAppsGetPrivateEndpointConnectionList200Response | WebAppsGetPrivateEndpointConnectionListdefaultResponse @@ -5629,14 +5629,14 @@ export interface WebAppsGetPrivateEndpointConnectionList { export interface WebAppsGetPrivateEndpointConnection { /** Gets a private endpoint connection */ get( - options?: WebAppsGetPrivateEndpointConnectionParameters + options?: WebAppsGetPrivateEndpointConnectionParameters, ): Promise< | WebAppsGetPrivateEndpointConnection200Response | WebAppsGetPrivateEndpointConnectiondefaultResponse >; /** Approves or rejects a private endpoint connection */ put( - options: WebAppsApproveOrRejectPrivateEndpointConnectionParameters + options: WebAppsApproveOrRejectPrivateEndpointConnectionParameters, ): Promise< | WebAppsApproveOrRejectPrivateEndpointConnection200Response | WebAppsApproveOrRejectPrivateEndpointConnection202Response @@ -5644,7 +5644,7 @@ export interface WebAppsGetPrivateEndpointConnection { >; /** Deletes a private endpoint connection */ delete( - options?: WebAppsDeletePrivateEndpointConnectionParameters + options?: WebAppsDeletePrivateEndpointConnectionParameters, ): Promise< | WebAppsDeletePrivateEndpointConnection200Response | WebAppsDeletePrivateEndpointConnection202Response @@ -5656,7 +5656,7 @@ export interface WebAppsGetPrivateEndpointConnection { export interface WebAppsGetPrivateLinkResources { /** Gets the private link resources */ get( - options?: WebAppsGetPrivateLinkResourcesParameters + options?: WebAppsGetPrivateLinkResourcesParameters, ): Promise< WebAppsGetPrivateLinkResources200Response | WebAppsGetPrivateLinkResourcesdefaultResponse >; @@ -5665,7 +5665,7 @@ export interface WebAppsGetPrivateLinkResources { export interface WebAppsListProcesses { /** Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. */ get( - options?: WebAppsListProcessesParameters + options?: WebAppsListProcessesParameters, ): Promise< | WebAppsListProcesses200Response | WebAppsListProcesses404Response @@ -5676,13 +5676,13 @@ export interface WebAppsListProcesses { export interface WebAppsGetProcess { /** Get process information by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsGetProcessParameters + options?: WebAppsGetProcessParameters, ): Promise< WebAppsGetProcess200Response | WebAppsGetProcess404Response | WebAppsGetProcessdefaultResponse >; /** Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. */ delete( - options?: WebAppsDeleteProcessParameters + options?: WebAppsDeleteProcessParameters, ): Promise< | WebAppsDeleteProcess204Response | WebAppsDeleteProcess404Response @@ -5693,7 +5693,7 @@ export interface WebAppsGetProcess { export interface WebAppsGetProcessDump { /** Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsGetProcessDumpParameters + options?: WebAppsGetProcessDumpParameters, ): Promise< | WebAppsGetProcessDump200Response | WebAppsGetProcessDump404Response @@ -5704,7 +5704,7 @@ export interface WebAppsGetProcessDump { export interface WebAppsListProcessModules { /** List module information for a process by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsListProcessModulesParameters + options?: WebAppsListProcessModulesParameters, ): Promise< | WebAppsListProcessModules200Response | WebAppsListProcessModules404Response @@ -5715,7 +5715,7 @@ export interface WebAppsListProcessModules { export interface WebAppsGetProcessModule { /** Get process information by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsGetProcessModuleParameters + options?: WebAppsGetProcessModuleParameters, ): Promise< | WebAppsGetProcessModule200Response | WebAppsGetProcessModule404Response @@ -5726,7 +5726,7 @@ export interface WebAppsGetProcessModule { export interface WebAppsListProcessThreads { /** List the threads in a process by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsListProcessThreadsParameters + options?: WebAppsListProcessThreadsParameters, ): Promise< | WebAppsListProcessThreads200Response | WebAppsListProcessThreads404Response @@ -5737,7 +5737,7 @@ export interface WebAppsListProcessThreads { export interface WebAppsListPublicCertificates { /** Get public certificates for an app or a deployment slot. */ get( - options?: WebAppsListPublicCertificatesParameters + options?: WebAppsListPublicCertificatesParameters, ): Promise< WebAppsListPublicCertificates200Response | WebAppsListPublicCertificatesdefaultResponse >; @@ -5746,18 +5746,18 @@ export interface WebAppsListPublicCertificates { export interface WebAppsGetPublicCertificate { /** Get the named public certificate for an app (or deployment slot, if specified). */ get( - options?: WebAppsGetPublicCertificateParameters + options?: WebAppsGetPublicCertificateParameters, ): Promise; /** Creates a hostname binding for an app. */ put( - options: WebAppsCreateOrUpdatePublicCertificateParameters + options: WebAppsCreateOrUpdatePublicCertificateParameters, ): Promise< | WebAppsCreateOrUpdatePublicCertificate200Response | WebAppsCreateOrUpdatePublicCertificatedefaultResponse >; /** Deletes a hostname binding for an app. */ delete( - options?: WebAppsDeletePublicCertificateParameters + options?: WebAppsDeletePublicCertificateParameters, ): Promise< | WebAppsDeletePublicCertificate200Response | WebAppsDeletePublicCertificate204Response @@ -5768,7 +5768,7 @@ export interface WebAppsGetPublicCertificate { export interface WebAppsListPublishingProfileXmlWithSecrets { /** Gets the publishing profile for an app (or deployment slot, if specified). */ post( - options: WebAppsListPublishingProfileXmlWithSecretsParameters + options: WebAppsListPublishingProfileXmlWithSecretsParameters, ): Promise< | WebAppsListPublishingProfileXmlWithSecrets200Response | WebAppsListPublishingProfileXmlWithSecretsdefaultResponse @@ -5778,7 +5778,7 @@ export interface WebAppsListPublishingProfileXmlWithSecrets { export interface WebAppsResetProductionSlotConfig { /** Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. */ post( - options?: WebAppsResetProductionSlotConfigParameters + options?: WebAppsResetProductionSlotConfigParameters, ): Promise< WebAppsResetProductionSlotConfig200Response | WebAppsResetProductionSlotConfigdefaultResponse >; @@ -5787,14 +5787,14 @@ export interface WebAppsResetProductionSlotConfig { export interface WebAppsRestart { /** Restarts an app (or deployment slot, if specified). */ post( - options?: WebAppsRestartParameters + options?: WebAppsRestartParameters, ): Promise; } export interface WebAppsRestoreFromBackupBlob { /** Restores an app from a backup blob in Azure Storage. */ post( - options: WebAppsRestoreFromBackupBlobParameters + options: WebAppsRestoreFromBackupBlobParameters, ): Promise< | WebAppsRestoreFromBackupBlob200Response | WebAppsRestoreFromBackupBlob202Response @@ -5805,7 +5805,7 @@ export interface WebAppsRestoreFromBackupBlob { export interface WebAppsRestoreFromDeletedApp { /** Restores a deleted web app to this web app. */ post( - options: WebAppsRestoreFromDeletedAppParameters + options: WebAppsRestoreFromDeletedAppParameters, ): Promise< | WebAppsRestoreFromDeletedApp200Response | WebAppsRestoreFromDeletedApp202Response @@ -5816,7 +5816,7 @@ export interface WebAppsRestoreFromDeletedApp { export interface WebAppsRestoreSnapshot { /** Restores a web app from a snapshot. */ post( - options: WebAppsRestoreSnapshotParameters + options: WebAppsRestoreSnapshotParameters, ): Promise< | WebAppsRestoreSnapshot200Response | WebAppsRestoreSnapshot202Response @@ -5827,7 +5827,7 @@ export interface WebAppsRestoreSnapshot { export interface WebAppsListSiteExtensions { /** Get list of siteextensions for a web site, or a deployment slot. */ get( - options?: WebAppsListSiteExtensionsParameters + options?: WebAppsListSiteExtensionsParameters, ): Promise< | WebAppsListSiteExtensions200Response | WebAppsListSiteExtensions404Response @@ -5838,7 +5838,7 @@ export interface WebAppsListSiteExtensions { export interface WebAppsGetSiteExtension { /** Get site extension information by its ID for a web site, or a deployment slot. */ get( - options?: WebAppsGetSiteExtensionParameters + options?: WebAppsGetSiteExtensionParameters, ): Promise< | WebAppsGetSiteExtension200Response | WebAppsGetSiteExtension404Response @@ -5846,7 +5846,7 @@ export interface WebAppsGetSiteExtension { >; /** Install site extension on a web site, or a deployment slot. */ put( - options?: WebAppsInstallSiteExtensionParameters + options?: WebAppsInstallSiteExtensionParameters, ): Promise< | WebAppsInstallSiteExtension200Response | WebAppsInstallSiteExtension201Response @@ -5855,7 +5855,7 @@ export interface WebAppsGetSiteExtension { >; /** Remove a site extension from a web site, or a deployment slot. */ delete( - options?: WebAppsDeleteSiteExtensionParameters + options?: WebAppsDeleteSiteExtensionParameters, ): Promise< | WebAppsDeleteSiteExtension204Response | WebAppsDeleteSiteExtension404Response @@ -5866,18 +5866,18 @@ export interface WebAppsGetSiteExtension { export interface WebAppsListSlots { /** Gets an app's deployment slots. */ get( - options?: WebAppsListSlotsParameters + options?: WebAppsListSlotsParameters, ): Promise; } export interface WebAppsGetSlot { /** Gets the details of a web, mobile, or API app. */ get( - options?: WebAppsGetSlotParameters + options?: WebAppsGetSlotParameters, ): Promise; /** Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. */ put( - options: WebAppsCreateOrUpdateSlotParameters + options: WebAppsCreateOrUpdateSlotParameters, ): Promise< | WebAppsCreateOrUpdateSlot200Response | WebAppsCreateOrUpdateSlot202Response @@ -5885,7 +5885,7 @@ export interface WebAppsGetSlot { >; /** Deletes a web, mobile, or API app, or one of the deployment slots. */ delete( - options?: WebAppsDeleteSlotParameters + options?: WebAppsDeleteSlotParameters, ): Promise< | WebAppsDeleteSlot200Response | WebAppsDeleteSlot204Response @@ -5894,7 +5894,7 @@ export interface WebAppsGetSlot { >; /** Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. */ patch( - options: WebAppsUpdateSlotParameters + options: WebAppsUpdateSlotParameters, ): Promise< WebAppsUpdateSlot200Response | WebAppsUpdateSlot202Response | WebAppsUpdateSlotdefaultResponse >; @@ -5903,7 +5903,7 @@ export interface WebAppsGetSlot { export interface WebAppsAnalyzeCustomHostnameSlot { /** Analyze a custom hostname. */ get( - options?: WebAppsAnalyzeCustomHostnameSlotParameters + options?: WebAppsAnalyzeCustomHostnameSlotParameters, ): Promise< WebAppsAnalyzeCustomHostnameSlot200Response | WebAppsAnalyzeCustomHostnameSlotdefaultResponse >; @@ -5912,7 +5912,7 @@ export interface WebAppsAnalyzeCustomHostnameSlot { export interface WebAppsApplySlotConfigurationSlot { /** Applies the configuration settings from the target slot onto the current slot. */ post( - options: WebAppsApplySlotConfigurationSlotParameters + options: WebAppsApplySlotConfigurationSlotParameters, ): Promise< WebAppsApplySlotConfigurationSlot200Response | WebAppsApplySlotConfigurationSlotdefaultResponse >; @@ -5921,25 +5921,25 @@ export interface WebAppsApplySlotConfigurationSlot { export interface WebAppsBackupSlot { /** Creates a backup of an app. */ post( - options: WebAppsBackupSlotParameters + options: WebAppsBackupSlotParameters, ): Promise; } export interface WebAppsListBackupsSlot { /** Gets existing backups of an app. */ get( - options?: WebAppsListBackupsSlotParameters + options?: WebAppsListBackupsSlotParameters, ): Promise; } export interface WebAppsGetBackupStatusSlot { /** Gets a backup of an app by its ID. */ get( - options?: WebAppsGetBackupStatusSlotParameters + options?: WebAppsGetBackupStatusSlotParameters, ): Promise; /** Deletes a backup of an app by its ID. */ delete( - options?: WebAppsDeleteBackupSlotParameters + options?: WebAppsDeleteBackupSlotParameters, ): Promise< | WebAppsDeleteBackupSlot200Response | WebAppsDeleteBackupSlot404Response @@ -5950,7 +5950,7 @@ export interface WebAppsGetBackupStatusSlot { export interface WebAppsListBackupStatusSecretsSlot { /** Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. */ post( - options: WebAppsListBackupStatusSecretsSlotParameters + options: WebAppsListBackupStatusSecretsSlotParameters, ): Promise< | WebAppsListBackupStatusSecretsSlot200Response | WebAppsListBackupStatusSecretsSlotdefaultResponse @@ -5960,7 +5960,7 @@ export interface WebAppsListBackupStatusSecretsSlot { export interface WebAppsRestoreSlot { /** Restores a specific backup to another app (or deployment slot, if specified). */ post( - options: WebAppsRestoreSlotParameters + options: WebAppsRestoreSlotParameters, ): Promise< | WebAppsRestoreSlot200Response | WebAppsRestoreSlot202Response @@ -5971,7 +5971,7 @@ export interface WebAppsRestoreSlot { export interface WebAppsListBasicPublishingCredentialsPoliciesSlot { /** Returns whether Scm basic auth is allowed and whether Ftp is allowed for a given site. */ get( - options?: WebAppsListBasicPublishingCredentialsPoliciesSlotParameters + options?: WebAppsListBasicPublishingCredentialsPoliciesSlotParameters, ): Promise< | WebAppsListBasicPublishingCredentialsPoliciesSlot200Response | WebAppsListBasicPublishingCredentialsPoliciesSlotdefaultResponse @@ -5981,29 +5981,29 @@ export interface WebAppsListBasicPublishingCredentialsPoliciesSlot { export interface WebAppsGetFtpAllowedSlot { /** Returns whether FTP is allowed on the site or not. */ get( - options?: WebAppsGetFtpAllowedSlotParameters + options?: WebAppsGetFtpAllowedSlotParameters, ): Promise; /** Updates whether FTP is allowed on the site or not. */ put( - options: WebAppsUpdateFtpAllowedSlotParameters + options: WebAppsUpdateFtpAllowedSlotParameters, ): Promise; } export interface WebAppsGetScmAllowedSlot { /** Returns whether Scm basic auth is allowed on the site or not. */ get( - options?: WebAppsGetScmAllowedSlotParameters + options?: WebAppsGetScmAllowedSlotParameters, ): Promise; /** Updates whether user publishing credentials are allowed on the site or not. */ put( - options: WebAppsUpdateScmAllowedSlotParameters + options: WebAppsUpdateScmAllowedSlotParameters, ): Promise; } export interface WebAppsListConfigurationsSlot { /** List the configurations of an app */ get( - options?: WebAppsListConfigurationsSlotParameters + options?: WebAppsListConfigurationsSlotParameters, ): Promise< WebAppsListConfigurationsSlot200Response | WebAppsListConfigurationsSlotdefaultResponse >; @@ -6012,7 +6012,7 @@ export interface WebAppsListConfigurationsSlot { export interface WebAppsUpdateApplicationSettingsSlot { /** Replaces the application settings of an app. */ put( - options: WebAppsUpdateApplicationSettingsSlotParameters + options: WebAppsUpdateApplicationSettingsSlotParameters, ): Promise< | WebAppsUpdateApplicationSettingsSlot200Response | WebAppsUpdateApplicationSettingsSlotdefaultResponse @@ -6022,7 +6022,7 @@ export interface WebAppsUpdateApplicationSettingsSlot { export interface WebAppsListApplicationSettingsSlot { /** Gets the application settings of an app. */ post( - options?: WebAppsListApplicationSettingsSlotParameters + options?: WebAppsListApplicationSettingsSlotParameters, ): Promise< | WebAppsListApplicationSettingsSlot200Response | WebAppsListApplicationSettingsSlotdefaultResponse @@ -6032,7 +6032,7 @@ export interface WebAppsListApplicationSettingsSlot { export interface WebAppsUpdateAuthSettingsSlot { /** Updates the Authentication / Authorization settings associated with web app. */ put( - options: WebAppsUpdateAuthSettingsSlotParameters + options: WebAppsUpdateAuthSettingsSlotParameters, ): Promise< WebAppsUpdateAuthSettingsSlot200Response | WebAppsUpdateAuthSettingsSlotdefaultResponse >; @@ -6041,21 +6041,21 @@ export interface WebAppsUpdateAuthSettingsSlot { export interface WebAppsGetAuthSettingsSlot { /** Gets the Authentication/Authorization settings of an app. */ post( - options?: WebAppsGetAuthSettingsSlotParameters + options?: WebAppsGetAuthSettingsSlotParameters, ): Promise; } export interface WebAppsGetAuthSettingsV2WithoutSecretsSlot { /** Gets site's Authentication / Authorization settings for apps via the V2 format */ get( - options?: WebAppsGetAuthSettingsV2WithoutSecretsSlotParameters + options?: WebAppsGetAuthSettingsV2WithoutSecretsSlotParameters, ): Promise< | WebAppsGetAuthSettingsV2WithoutSecretsSlot200Response | WebAppsGetAuthSettingsV2WithoutSecretsSlotdefaultResponse >; /** Updates site's Authentication / Authorization settings for apps via the V2 format */ put( - options: WebAppsUpdateAuthSettingsV2SlotParameters + options: WebAppsUpdateAuthSettingsV2SlotParameters, ): Promise< WebAppsUpdateAuthSettingsV2Slot200Response | WebAppsUpdateAuthSettingsV2SlotdefaultResponse >; @@ -6064,14 +6064,14 @@ export interface WebAppsGetAuthSettingsV2WithoutSecretsSlot { export interface WebAppsGetAuthSettingsV2Slot { /** Gets site's Authentication / Authorization settings for apps via the V2 format */ get( - options?: WebAppsGetAuthSettingsV2SlotParameters + options?: WebAppsGetAuthSettingsV2SlotParameters, ): Promise; } export interface WebAppsUpdateAzureStorageAccountsSlot { /** Updates the Azure storage account configurations of an app. */ put( - options: WebAppsUpdateAzureStorageAccountsSlotParameters + options: WebAppsUpdateAzureStorageAccountsSlotParameters, ): Promise< | WebAppsUpdateAzureStorageAccountsSlot200Response | WebAppsUpdateAzureStorageAccountsSlotdefaultResponse @@ -6081,7 +6081,7 @@ export interface WebAppsUpdateAzureStorageAccountsSlot { export interface WebAppsListAzureStorageAccountsSlot { /** Gets the Azure storage account configurations of an app. */ post( - options?: WebAppsListAzureStorageAccountsSlotParameters + options?: WebAppsListAzureStorageAccountsSlotParameters, ): Promise< | WebAppsListAzureStorageAccountsSlot200Response | WebAppsListAzureStorageAccountsSlotdefaultResponse @@ -6091,14 +6091,14 @@ export interface WebAppsListAzureStorageAccountsSlot { export interface WebAppsUpdateBackupConfigurationSlot { /** Updates the backup configuration of an app. */ put( - options: WebAppsUpdateBackupConfigurationSlotParameters + options: WebAppsUpdateBackupConfigurationSlotParameters, ): Promise< | WebAppsUpdateBackupConfigurationSlot200Response | WebAppsUpdateBackupConfigurationSlotdefaultResponse >; /** Deletes the backup configuration of an app. */ delete( - options?: WebAppsDeleteBackupConfigurationSlotParameters + options?: WebAppsDeleteBackupConfigurationSlotParameters, ): Promise< | WebAppsDeleteBackupConfigurationSlot200Response | WebAppsDeleteBackupConfigurationSlotdefaultResponse @@ -6108,7 +6108,7 @@ export interface WebAppsUpdateBackupConfigurationSlot { export interface WebAppsGetBackupConfigurationSlot { /** Gets the backup configuration of an app. */ post( - options?: WebAppsGetBackupConfigurationSlotParameters + options?: WebAppsGetBackupConfigurationSlotParameters, ): Promise< WebAppsGetBackupConfigurationSlot200Response | WebAppsGetBackupConfigurationSlotdefaultResponse >; @@ -6117,7 +6117,7 @@ export interface WebAppsGetBackupConfigurationSlot { export interface WebAppsGetAppSettingsKeyVaultReferencesSlot { /** Gets the config reference app settings and status of an app */ get( - options?: WebAppsGetAppSettingsKeyVaultReferencesSlotParameters + options?: WebAppsGetAppSettingsKeyVaultReferencesSlotParameters, ): Promise< | WebAppsGetAppSettingsKeyVaultReferencesSlot200Response | WebAppsGetAppSettingsKeyVaultReferencesSlotdefaultResponse @@ -6127,7 +6127,7 @@ export interface WebAppsGetAppSettingsKeyVaultReferencesSlot { export interface WebAppsGetAppSettingKeyVaultReferenceSlot { /** Gets the config reference and status of an app */ get( - options?: WebAppsGetAppSettingKeyVaultReferenceSlotParameters + options?: WebAppsGetAppSettingKeyVaultReferenceSlotParameters, ): Promise< | WebAppsGetAppSettingKeyVaultReferenceSlot200Response | WebAppsGetAppSettingKeyVaultReferenceSlotdefaultResponse @@ -6137,7 +6137,7 @@ export interface WebAppsGetAppSettingKeyVaultReferenceSlot { export interface WebAppsGetSiteConnectionStringKeyVaultReferencesSlot { /** Gets the config reference app settings and status of an app */ get( - options?: WebAppsGetSiteConnectionStringKeyVaultReferencesSlotParameters + options?: WebAppsGetSiteConnectionStringKeyVaultReferencesSlotParameters, ): Promise< | WebAppsGetSiteConnectionStringKeyVaultReferencesSlot200Response | WebAppsGetSiteConnectionStringKeyVaultReferencesSlotdefaultResponse @@ -6147,7 +6147,7 @@ export interface WebAppsGetSiteConnectionStringKeyVaultReferencesSlot { export interface WebAppsGetSiteConnectionStringKeyVaultReferenceSlot { /** Gets the config reference and status of an app */ get( - options?: WebAppsGetSiteConnectionStringKeyVaultReferenceSlotParameters + options?: WebAppsGetSiteConnectionStringKeyVaultReferenceSlotParameters, ): Promise< | WebAppsGetSiteConnectionStringKeyVaultReferenceSlot200Response | WebAppsGetSiteConnectionStringKeyVaultReferenceSlotdefaultResponse @@ -6157,7 +6157,7 @@ export interface WebAppsGetSiteConnectionStringKeyVaultReferenceSlot { export interface WebAppsUpdateConnectionStringsSlot { /** Replaces the connection strings of an app. */ put( - options: WebAppsUpdateConnectionStringsSlotParameters + options: WebAppsUpdateConnectionStringsSlotParameters, ): Promise< | WebAppsUpdateConnectionStringsSlot200Response | WebAppsUpdateConnectionStringsSlotdefaultResponse @@ -6167,7 +6167,7 @@ export interface WebAppsUpdateConnectionStringsSlot { export interface WebAppsListConnectionStringsSlot { /** Gets the connection strings of an app. */ post( - options?: WebAppsListConnectionStringsSlotParameters + options?: WebAppsListConnectionStringsSlotParameters, ): Promise< WebAppsListConnectionStringsSlot200Response | WebAppsListConnectionStringsSlotdefaultResponse >; @@ -6176,14 +6176,14 @@ export interface WebAppsListConnectionStringsSlot { export interface WebAppsGetDiagnosticLogsConfigurationSlot { /** Gets the logging configuration of an app. */ get( - options?: WebAppsGetDiagnosticLogsConfigurationSlotParameters + options?: WebAppsGetDiagnosticLogsConfigurationSlotParameters, ): Promise< | WebAppsGetDiagnosticLogsConfigurationSlot200Response | WebAppsGetDiagnosticLogsConfigurationSlotdefaultResponse >; /** Updates the logging configuration of an app. */ put( - options: WebAppsUpdateDiagnosticLogsConfigSlotParameters + options: WebAppsUpdateDiagnosticLogsConfigSlotParameters, ): Promise< | WebAppsUpdateDiagnosticLogsConfigSlot200Response | WebAppsUpdateDiagnosticLogsConfigSlotdefaultResponse @@ -6193,21 +6193,21 @@ export interface WebAppsGetDiagnosticLogsConfigurationSlot { export interface WebAppsUpdateMetadataSlot { /** Replaces the metadata of an app. */ put( - options: WebAppsUpdateMetadataSlotParameters + options: WebAppsUpdateMetadataSlotParameters, ): Promise; } export interface WebAppsListMetadataSlot { /** Gets the metadata of an app. */ post( - options?: WebAppsListMetadataSlotParameters + options?: WebAppsListMetadataSlotParameters, ): Promise; } export interface WebAppsListPublishingCredentialsSlot { /** Gets the Git/FTP publishing credentials of an app. */ post( - options?: WebAppsListPublishingCredentialsSlotParameters + options?: WebAppsListPublishingCredentialsSlotParameters, ): Promise< | WebAppsListPublishingCredentialsSlot200Response | WebAppsListPublishingCredentialsSlotdefaultResponse @@ -6217,7 +6217,7 @@ export interface WebAppsListPublishingCredentialsSlot { export interface WebAppsUpdateSitePushSettingsSlot { /** Updates the Push settings associated with web app. */ put( - options: WebAppsUpdateSitePushSettingsSlotParameters + options: WebAppsUpdateSitePushSettingsSlotParameters, ): Promise< WebAppsUpdateSitePushSettingsSlot200Response | WebAppsUpdateSitePushSettingsSlotdefaultResponse >; @@ -6226,7 +6226,7 @@ export interface WebAppsUpdateSitePushSettingsSlot { export interface WebAppsListSitePushSettingsSlot { /** Gets the Push settings associated with web app. */ post( - options?: WebAppsListSitePushSettingsSlotParameters + options?: WebAppsListSitePushSettingsSlotParameters, ): Promise< WebAppsListSitePushSettingsSlot200Response | WebAppsListSitePushSettingsSlotdefaultResponse >; @@ -6235,18 +6235,18 @@ export interface WebAppsListSitePushSettingsSlot { export interface WebAppsGetConfigurationSlot { /** Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. */ get( - options?: WebAppsGetConfigurationSlotParameters + options?: WebAppsGetConfigurationSlotParameters, ): Promise; /** Updates the configuration of an app. */ put( - options: WebAppsCreateOrUpdateConfigurationSlotParameters + options: WebAppsCreateOrUpdateConfigurationSlotParameters, ): Promise< | WebAppsCreateOrUpdateConfigurationSlot200Response | WebAppsCreateOrUpdateConfigurationSlotdefaultResponse >; /** Updates the configuration of an app. */ patch( - options: WebAppsUpdateConfigurationSlotParameters + options: WebAppsUpdateConfigurationSlotParameters, ): Promise< WebAppsUpdateConfigurationSlot200Response | WebAppsUpdateConfigurationSlotdefaultResponse >; @@ -6255,7 +6255,7 @@ export interface WebAppsGetConfigurationSlot { export interface WebAppsListConfigurationSnapshotInfoSlot { /** Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. */ get( - options?: WebAppsListConfigurationSnapshotInfoSlotParameters + options?: WebAppsListConfigurationSnapshotInfoSlotParameters, ): Promise< | WebAppsListConfigurationSnapshotInfoSlot200Response | WebAppsListConfigurationSnapshotInfoSlotdefaultResponse @@ -6265,7 +6265,7 @@ export interface WebAppsListConfigurationSnapshotInfoSlot { export interface WebAppsGetConfigurationSnapshotSlot { /** Gets a snapshot of the configuration of an app at a previous point in time. */ get( - options?: WebAppsGetConfigurationSnapshotSlotParameters + options?: WebAppsGetConfigurationSnapshotSlotParameters, ): Promise< | WebAppsGetConfigurationSnapshotSlot200Response | WebAppsGetConfigurationSnapshotSlotdefaultResponse @@ -6275,7 +6275,7 @@ export interface WebAppsGetConfigurationSnapshotSlot { export interface WebAppsRecoverSiteConfigurationSnapshotSlot { /** Reverts the configuration of an app to a previous snapshot. */ post( - options?: WebAppsRecoverSiteConfigurationSnapshotSlotParameters + options?: WebAppsRecoverSiteConfigurationSnapshotSlotParameters, ): Promise< | WebAppsRecoverSiteConfigurationSnapshotSlot204Response | WebAppsRecoverSiteConfigurationSnapshotSlotdefaultResponse @@ -6285,7 +6285,7 @@ export interface WebAppsRecoverSiteConfigurationSnapshotSlot { export interface WebAppsGetWebSiteContainerLogsSlot { /** Gets the last lines of docker logs for the given site */ post( - options?: WebAppsGetWebSiteContainerLogsSlotParameters + options?: WebAppsGetWebSiteContainerLogsSlotParameters, ): Promise< | WebAppsGetWebSiteContainerLogsSlot200Response | WebAppsGetWebSiteContainerLogsSlot204Response @@ -6296,7 +6296,7 @@ export interface WebAppsGetWebSiteContainerLogsSlot { export interface WebAppsGetContainerLogsZipSlot { /** Gets the ZIP archived docker log files for the given site */ post( - options?: WebAppsGetContainerLogsZipSlotParameters + options?: WebAppsGetContainerLogsZipSlotParameters, ): Promise< | WebAppsGetContainerLogsZipSlot200Response | WebAppsGetContainerLogsZipSlot204Response @@ -6307,7 +6307,7 @@ export interface WebAppsGetContainerLogsZipSlot { export interface WebAppsListContinuousWebJobsSlot { /** List continuous web jobs for an app, or a deployment slot. */ get( - options?: WebAppsListContinuousWebJobsSlotParameters + options?: WebAppsListContinuousWebJobsSlotParameters, ): Promise< WebAppsListContinuousWebJobsSlot200Response | WebAppsListContinuousWebJobsSlotdefaultResponse >; @@ -6316,7 +6316,7 @@ export interface WebAppsListContinuousWebJobsSlot { export interface WebAppsGetContinuousWebJobSlot { /** Gets a continuous web job by its ID for an app, or a deployment slot. */ get( - options?: WebAppsGetContinuousWebJobSlotParameters + options?: WebAppsGetContinuousWebJobSlotParameters, ): Promise< | WebAppsGetContinuousWebJobSlot200Response | WebAppsGetContinuousWebJobSlot404Response @@ -6324,7 +6324,7 @@ export interface WebAppsGetContinuousWebJobSlot { >; /** Delete a continuous web job by its ID for an app, or a deployment slot. */ delete( - options?: WebAppsDeleteContinuousWebJobSlotParameters + options?: WebAppsDeleteContinuousWebJobSlotParameters, ): Promise< | WebAppsDeleteContinuousWebJobSlot200Response | WebAppsDeleteContinuousWebJobSlot204Response @@ -6335,7 +6335,7 @@ export interface WebAppsGetContinuousWebJobSlot { export interface WebAppsStartContinuousWebJobSlot { /** Start a continuous web job for an app, or a deployment slot. */ post( - options?: WebAppsStartContinuousWebJobSlotParameters + options?: WebAppsStartContinuousWebJobSlotParameters, ): Promise< | WebAppsStartContinuousWebJobSlot200Response | WebAppsStartContinuousWebJobSlot404Response @@ -6346,7 +6346,7 @@ export interface WebAppsStartContinuousWebJobSlot { export interface WebAppsStopContinuousWebJobSlot { /** Stop a continuous web job for an app, or a deployment slot. */ post( - options?: WebAppsStopContinuousWebJobSlotParameters + options?: WebAppsStopContinuousWebJobSlotParameters, ): Promise< | WebAppsStopContinuousWebJobSlot200Response | WebAppsStopContinuousWebJobSlot404Response @@ -6357,22 +6357,22 @@ export interface WebAppsStopContinuousWebJobSlot { export interface WebAppsListDeploymentsSlot { /** List deployments for an app, or a deployment slot. */ get( - options?: WebAppsListDeploymentsSlotParameters + options?: WebAppsListDeploymentsSlotParameters, ): Promise; } export interface WebAppsGetDeploymentSlot { /** Get a deployment by its ID for an app, or a deployment slot. */ get( - options?: WebAppsGetDeploymentSlotParameters + options?: WebAppsGetDeploymentSlotParameters, ): Promise; /** Create a deployment for an app, or a deployment slot. */ put( - options: WebAppsCreateDeploymentSlotParameters + options: WebAppsCreateDeploymentSlotParameters, ): Promise; /** Delete a deployment by its ID for an app, or a deployment slot. */ delete( - options?: WebAppsDeleteDeploymentSlotParameters + options?: WebAppsDeleteDeploymentSlotParameters, ): Promise< | WebAppsDeleteDeploymentSlot200Response | WebAppsDeleteDeploymentSlot204Response @@ -6383,21 +6383,21 @@ export interface WebAppsGetDeploymentSlot { export interface WebAppsListDeploymentLogSlot { /** List deployment log for specific deployment for an app, or a deployment slot. */ get( - options?: WebAppsListDeploymentLogSlotParameters + options?: WebAppsListDeploymentLogSlotParameters, ): Promise; } export interface WebAppsDiscoverBackupSlot { /** Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. */ post( - options: WebAppsDiscoverBackupSlotParameters + options: WebAppsDiscoverBackupSlotParameters, ): Promise; } export interface WebAppsListDomainOwnershipIdentifiersSlot { /** Lists ownership identifiers for domain associated with web app. */ get( - options?: WebAppsListDomainOwnershipIdentifiersSlotParameters + options?: WebAppsListDomainOwnershipIdentifiersSlotParameters, ): Promise< | WebAppsListDomainOwnershipIdentifiersSlot200Response | WebAppsListDomainOwnershipIdentifiersSlotdefaultResponse @@ -6407,21 +6407,21 @@ export interface WebAppsListDomainOwnershipIdentifiersSlot { export interface WebAppsGetDomainOwnershipIdentifierSlot { /** Get domain ownership identifier for web app. */ get( - options?: WebAppsGetDomainOwnershipIdentifierSlotParameters + options?: WebAppsGetDomainOwnershipIdentifierSlotParameters, ): Promise< | WebAppsGetDomainOwnershipIdentifierSlot200Response | WebAppsGetDomainOwnershipIdentifierSlotdefaultResponse >; /** Creates a domain ownership identifier for web app, or updates an existing ownership identifier. */ put( - options: WebAppsCreateOrUpdateDomainOwnershipIdentifierSlotParameters + options: WebAppsCreateOrUpdateDomainOwnershipIdentifierSlotParameters, ): Promise< | WebAppsCreateOrUpdateDomainOwnershipIdentifierSlot200Response | WebAppsCreateOrUpdateDomainOwnershipIdentifierSlotdefaultResponse >; /** Deletes a domain ownership identifier for a web app. */ delete( - options?: WebAppsDeleteDomainOwnershipIdentifierSlotParameters + options?: WebAppsDeleteDomainOwnershipIdentifierSlotParameters, ): Promise< | WebAppsDeleteDomainOwnershipIdentifierSlot200Response | WebAppsDeleteDomainOwnershipIdentifierSlot204Response @@ -6429,7 +6429,7 @@ export interface WebAppsGetDomainOwnershipIdentifierSlot { >; /** Creates a domain ownership identifier for web app, or updates an existing ownership identifier. */ patch( - options: WebAppsUpdateDomainOwnershipIdentifierSlotParameters + options: WebAppsUpdateDomainOwnershipIdentifierSlotParameters, ): Promise< | WebAppsUpdateDomainOwnershipIdentifierSlot200Response | WebAppsUpdateDomainOwnershipIdentifierSlotdefaultResponse @@ -6439,11 +6439,11 @@ export interface WebAppsGetDomainOwnershipIdentifierSlot { export interface WebAppsGetMSDeployStatusSlot { /** Get the status of the last MSDeploy operation. */ get( - options?: WebAppsGetMSDeployStatusSlotParameters + options?: WebAppsGetMSDeployStatusSlotParameters, ): Promise; /** Invoke the MSDeploy web app extension. */ put( - options: WebAppsCreateMSDeployOperationSlotParameters + options: WebAppsCreateMSDeployOperationSlotParameters, ): Promise< | WebAppsCreateMSDeployOperationSlot201Response | WebAppsCreateMSDeployOperationSlot409Response @@ -6454,7 +6454,7 @@ export interface WebAppsGetMSDeployStatusSlot { export interface WebAppsGetMSDeployLogSlot { /** Get the MSDeploy Log for the last MSDeploy operation. */ get( - options?: WebAppsGetMSDeployLogSlotParameters + options?: WebAppsGetMSDeployLogSlotParameters, ): Promise< | WebAppsGetMSDeployLogSlot200Response | WebAppsGetMSDeployLogSlot404Response @@ -6465,7 +6465,7 @@ export interface WebAppsGetMSDeployLogSlot { export interface WebAppsListInstanceFunctionsSlot { /** List the functions for a web site, or a deployment slot. */ get( - options?: WebAppsListInstanceFunctionsSlotParameters + options?: WebAppsListInstanceFunctionsSlotParameters, ): Promise< | WebAppsListInstanceFunctionsSlot200Response | WebAppsListInstanceFunctionsSlot404Response @@ -6476,7 +6476,7 @@ export interface WebAppsListInstanceFunctionsSlot { export interface WebAppsGetFunctionsAdminTokenSlot { /** Fetch a short lived token that can be exchanged for a master key. */ get( - options?: WebAppsGetFunctionsAdminTokenSlotParameters + options?: WebAppsGetFunctionsAdminTokenSlotParameters, ): Promise< WebAppsGetFunctionsAdminTokenSlot200Response | WebAppsGetFunctionsAdminTokenSlotdefaultResponse >; @@ -6485,7 +6485,7 @@ export interface WebAppsGetFunctionsAdminTokenSlot { export interface WebAppsGetInstanceFunctionSlot { /** Get function information by its ID for web site, or a deployment slot. */ get( - options?: WebAppsGetInstanceFunctionSlotParameters + options?: WebAppsGetInstanceFunctionSlotParameters, ): Promise< | WebAppsGetInstanceFunctionSlot200Response | WebAppsGetInstanceFunctionSlot404Response @@ -6493,13 +6493,13 @@ export interface WebAppsGetInstanceFunctionSlot { >; /** Create function for web site, or a deployment slot. */ put( - options: WebAppsCreateInstanceFunctionSlotParameters + options: WebAppsCreateInstanceFunctionSlotParameters, ): Promise< WebAppsCreateInstanceFunctionSlot201Response | WebAppsCreateInstanceFunctionSlotdefaultResponse >; /** Delete a function for web site, or a deployment slot. */ delete( - options?: WebAppsDeleteInstanceFunctionSlotParameters + options?: WebAppsDeleteInstanceFunctionSlotParameters, ): Promise< | WebAppsDeleteInstanceFunctionSlot204Response | WebAppsDeleteInstanceFunctionSlot404Response @@ -6510,7 +6510,7 @@ export interface WebAppsGetInstanceFunctionSlot { export interface WebAppsCreateOrUpdateFunctionSecretSlot { /** Add or update a function secret. */ put( - options: WebAppsCreateOrUpdateFunctionSecretSlotParameters + options: WebAppsCreateOrUpdateFunctionSecretSlotParameters, ): Promise< | WebAppsCreateOrUpdateFunctionSecretSlot200Response | WebAppsCreateOrUpdateFunctionSecretSlot201Response @@ -6518,7 +6518,7 @@ export interface WebAppsCreateOrUpdateFunctionSecretSlot { >; /** Delete a function secret. */ delete( - options?: WebAppsDeleteFunctionSecretSlotParameters + options?: WebAppsDeleteFunctionSecretSlotParameters, ): Promise< | WebAppsDeleteFunctionSecretSlot204Response | WebAppsDeleteFunctionSecretSlot404Response @@ -6529,14 +6529,14 @@ export interface WebAppsCreateOrUpdateFunctionSecretSlot { export interface WebAppsListFunctionKeysSlot { /** Get function keys for a function in a web site, or a deployment slot. */ post( - options?: WebAppsListFunctionKeysSlotParameters + options?: WebAppsListFunctionKeysSlotParameters, ): Promise; } export interface WebAppsListFunctionSecretsSlot { /** Get function secrets for a function in a web site, or a deployment slot. */ post( - options?: WebAppsListFunctionSecretsSlotParameters + options?: WebAppsListFunctionSecretsSlotParameters, ): Promise< WebAppsListFunctionSecretsSlot200Response | WebAppsListFunctionSecretsSlotdefaultResponse >; @@ -6545,28 +6545,28 @@ export interface WebAppsListFunctionSecretsSlot { export interface WebAppsListHostKeysSlot { /** Get host secrets for a function app. */ post( - options?: WebAppsListHostKeysSlotParameters + options?: WebAppsListHostKeysSlotParameters, ): Promise; } export interface WebAppsListSyncStatusSlot { /** This is to allow calling via powershell and ARM template. */ post( - options?: WebAppsListSyncStatusSlotParameters + options?: WebAppsListSyncStatusSlotParameters, ): Promise; } export interface WebAppsSyncFunctionsSlot { /** Syncs function trigger metadata to the management database */ post( - options?: WebAppsSyncFunctionsSlotParameters + options?: WebAppsSyncFunctionsSlotParameters, ): Promise; } export interface WebAppsCreateOrUpdateHostSecretSlot { /** Add or update a host level secret. */ put( - options: WebAppsCreateOrUpdateHostSecretSlotParameters + options: WebAppsCreateOrUpdateHostSecretSlotParameters, ): Promise< | WebAppsCreateOrUpdateHostSecretSlot200Response | WebAppsCreateOrUpdateHostSecretSlot201Response @@ -6574,7 +6574,7 @@ export interface WebAppsCreateOrUpdateHostSecretSlot { >; /** Delete a host level secret. */ delete( - options?: WebAppsDeleteHostSecretSlotParameters + options?: WebAppsDeleteHostSecretSlotParameters, ): Promise< | WebAppsDeleteHostSecretSlot204Response | WebAppsDeleteHostSecretSlot404Response @@ -6585,7 +6585,7 @@ export interface WebAppsCreateOrUpdateHostSecretSlot { export interface WebAppsListHostNameBindingsSlot { /** Get hostname bindings for an app or a deployment slot. */ get( - options?: WebAppsListHostNameBindingsSlotParameters + options?: WebAppsListHostNameBindingsSlotParameters, ): Promise< WebAppsListHostNameBindingsSlot200Response | WebAppsListHostNameBindingsSlotdefaultResponse >; @@ -6594,20 +6594,20 @@ export interface WebAppsListHostNameBindingsSlot { export interface WebAppsGetHostNameBindingSlot { /** Get the named hostname binding for an app (or deployment slot, if specified). */ get( - options?: WebAppsGetHostNameBindingSlotParameters + options?: WebAppsGetHostNameBindingSlotParameters, ): Promise< WebAppsGetHostNameBindingSlot200Response | WebAppsGetHostNameBindingSlotdefaultResponse >; /** Creates a hostname binding for an app. */ put( - options: WebAppsCreateOrUpdateHostNameBindingSlotParameters + options: WebAppsCreateOrUpdateHostNameBindingSlotParameters, ): Promise< | WebAppsCreateOrUpdateHostNameBindingSlot200Response | WebAppsCreateOrUpdateHostNameBindingSlotdefaultResponse >; /** Deletes a hostname binding for an app. */ delete( - options?: WebAppsDeleteHostNameBindingSlotParameters + options?: WebAppsDeleteHostNameBindingSlotParameters, ): Promise< | WebAppsDeleteHostNameBindingSlot200Response | WebAppsDeleteHostNameBindingSlot204Response @@ -6618,20 +6618,20 @@ export interface WebAppsGetHostNameBindingSlot { export interface WebAppsGetHybridConnectionSlot { /** Retrieves a specific Service Bus Hybrid Connection used by this Web App. */ get( - options?: WebAppsGetHybridConnectionSlotParameters + options?: WebAppsGetHybridConnectionSlotParameters, ): Promise< WebAppsGetHybridConnectionSlot200Response | WebAppsGetHybridConnectionSlotdefaultResponse >; /** Creates a new Hybrid Connection using a Service Bus relay. */ put( - options: WebAppsCreateOrUpdateHybridConnectionSlotParameters + options: WebAppsCreateOrUpdateHybridConnectionSlotParameters, ): Promise< | WebAppsCreateOrUpdateHybridConnectionSlot200Response | WebAppsCreateOrUpdateHybridConnectionSlotdefaultResponse >; /** Removes a Hybrid Connection from this site. */ delete( - options?: WebAppsDeleteHybridConnectionSlotParameters + options?: WebAppsDeleteHybridConnectionSlotParameters, ): Promise< | WebAppsDeleteHybridConnectionSlot200Response | WebAppsDeleteHybridConnectionSlot404Response @@ -6639,7 +6639,7 @@ export interface WebAppsGetHybridConnectionSlot { >; /** Creates a new Hybrid Connection using a Service Bus relay. */ patch( - options: WebAppsUpdateHybridConnectionSlotParameters + options: WebAppsUpdateHybridConnectionSlotParameters, ): Promise< WebAppsUpdateHybridConnectionSlot200Response | WebAppsUpdateHybridConnectionSlotdefaultResponse >; @@ -6648,7 +6648,7 @@ export interface WebAppsGetHybridConnectionSlot { export interface WebAppsListHybridConnectionsSlot { /** Retrieves all Service Bus Hybrid Connections used by this Web App. */ get( - options?: WebAppsListHybridConnectionsSlotParameters + options?: WebAppsListHybridConnectionsSlotParameters, ): Promise< WebAppsListHybridConnectionsSlot200Response | WebAppsListHybridConnectionsSlotdefaultResponse >; @@ -6657,7 +6657,7 @@ export interface WebAppsListHybridConnectionsSlot { export interface WebAppsListRelayServiceConnectionsSlot { /** Gets hybrid connections configured for an app (or deployment slot, if specified). */ get( - options?: WebAppsListRelayServiceConnectionsSlotParameters + options?: WebAppsListRelayServiceConnectionsSlotParameters, ): Promise< | WebAppsListRelayServiceConnectionsSlot200Response | WebAppsListRelayServiceConnectionsSlotdefaultResponse @@ -6667,21 +6667,21 @@ export interface WebAppsListRelayServiceConnectionsSlot { export interface WebAppsGetRelayServiceConnectionSlot { /** Gets a hybrid connection configuration by its name. */ get( - options?: WebAppsGetRelayServiceConnectionSlotParameters + options?: WebAppsGetRelayServiceConnectionSlotParameters, ): Promise< | WebAppsGetRelayServiceConnectionSlot200Response | WebAppsGetRelayServiceConnectionSlotdefaultResponse >; /** Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). */ put( - options: WebAppsCreateOrUpdateRelayServiceConnectionSlotParameters + options: WebAppsCreateOrUpdateRelayServiceConnectionSlotParameters, ): Promise< | WebAppsCreateOrUpdateRelayServiceConnectionSlot200Response | WebAppsCreateOrUpdateRelayServiceConnectionSlotdefaultResponse >; /** Deletes a relay service connection by its name. */ delete( - options?: WebAppsDeleteRelayServiceConnectionSlotParameters + options?: WebAppsDeleteRelayServiceConnectionSlotParameters, ): Promise< | WebAppsDeleteRelayServiceConnectionSlot200Response | WebAppsDeleteRelayServiceConnectionSlot404Response @@ -6689,7 +6689,7 @@ export interface WebAppsGetRelayServiceConnectionSlot { >; /** Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). */ patch( - options: WebAppsUpdateRelayServiceConnectionSlotParameters + options: WebAppsUpdateRelayServiceConnectionSlotParameters, ): Promise< | WebAppsUpdateRelayServiceConnectionSlot200Response | WebAppsUpdateRelayServiceConnectionSlotdefaultResponse @@ -6699,7 +6699,7 @@ export interface WebAppsGetRelayServiceConnectionSlot { export interface WebAppsListInstanceIdentifiersSlot { /** Gets all scale-out instances of an app. */ get( - options?: WebAppsListInstanceIdentifiersSlotParameters + options?: WebAppsListInstanceIdentifiersSlotParameters, ): Promise< | WebAppsListInstanceIdentifiersSlot200Response | WebAppsListInstanceIdentifiersSlotdefaultResponse @@ -6709,21 +6709,21 @@ export interface WebAppsListInstanceIdentifiersSlot { export interface WebAppsGetInstanceInfoSlot { /** Gets all scale-out instances of an app. */ get( - options?: WebAppsGetInstanceInfoSlotParameters + options?: WebAppsGetInstanceInfoSlotParameters, ): Promise; } export interface WebAppsGetInstanceMsDeployStatusSlot { /** Get the status of the last MSDeploy operation. */ get( - options?: WebAppsGetInstanceMsDeployStatusSlotParameters + options?: WebAppsGetInstanceMsDeployStatusSlotParameters, ): Promise< | WebAppsGetInstanceMsDeployStatusSlot200Response | WebAppsGetInstanceMsDeployStatusSlotdefaultResponse >; /** Invoke the MSDeploy web app extension. */ put( - options: WebAppsCreateInstanceMSDeployOperationSlotParameters + options: WebAppsCreateInstanceMSDeployOperationSlotParameters, ): Promise< | WebAppsCreateInstanceMSDeployOperationSlot201Response | WebAppsCreateInstanceMSDeployOperationSlot409Response @@ -6734,7 +6734,7 @@ export interface WebAppsGetInstanceMsDeployStatusSlot { export interface WebAppsGetInstanceMSDeployLogSlot { /** Get the MSDeploy Log for the last MSDeploy operation. */ get( - options?: WebAppsGetInstanceMSDeployLogSlotParameters + options?: WebAppsGetInstanceMSDeployLogSlotParameters, ): Promise< | WebAppsGetInstanceMSDeployLogSlot200Response | WebAppsGetInstanceMSDeployLogSlot404Response @@ -6745,7 +6745,7 @@ export interface WebAppsGetInstanceMSDeployLogSlot { export interface WebAppsListInstanceProcessesSlot { /** Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. */ get( - options?: WebAppsListInstanceProcessesSlotParameters + options?: WebAppsListInstanceProcessesSlotParameters, ): Promise< | WebAppsListInstanceProcessesSlot200Response | WebAppsListInstanceProcessesSlot404Response @@ -6756,7 +6756,7 @@ export interface WebAppsListInstanceProcessesSlot { export interface WebAppsGetInstanceProcessSlot { /** Get process information by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsGetInstanceProcessSlotParameters + options?: WebAppsGetInstanceProcessSlotParameters, ): Promise< | WebAppsGetInstanceProcessSlot200Response | WebAppsGetInstanceProcessSlot404Response @@ -6764,7 +6764,7 @@ export interface WebAppsGetInstanceProcessSlot { >; /** Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. */ delete( - options?: WebAppsDeleteInstanceProcessSlotParameters + options?: WebAppsDeleteInstanceProcessSlotParameters, ): Promise< | WebAppsDeleteInstanceProcessSlot204Response | WebAppsDeleteInstanceProcessSlot404Response @@ -6775,7 +6775,7 @@ export interface WebAppsGetInstanceProcessSlot { export interface WebAppsGetInstanceProcessDumpSlot { /** Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsGetInstanceProcessDumpSlotParameters + options?: WebAppsGetInstanceProcessDumpSlotParameters, ): Promise< | WebAppsGetInstanceProcessDumpSlot200Response | WebAppsGetInstanceProcessDumpSlot404Response @@ -6786,7 +6786,7 @@ export interface WebAppsGetInstanceProcessDumpSlot { export interface WebAppsListInstanceProcessModulesSlot { /** List module information for a process by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsListInstanceProcessModulesSlotParameters + options?: WebAppsListInstanceProcessModulesSlotParameters, ): Promise< | WebAppsListInstanceProcessModulesSlot200Response | WebAppsListInstanceProcessModulesSlot404Response @@ -6797,7 +6797,7 @@ export interface WebAppsListInstanceProcessModulesSlot { export interface WebAppsGetInstanceProcessModuleSlot { /** Get process information by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsGetInstanceProcessModuleSlotParameters + options?: WebAppsGetInstanceProcessModuleSlotParameters, ): Promise< | WebAppsGetInstanceProcessModuleSlot200Response | WebAppsGetInstanceProcessModuleSlot404Response @@ -6808,7 +6808,7 @@ export interface WebAppsGetInstanceProcessModuleSlot { export interface WebAppsListInstanceProcessThreadsSlot { /** List the threads in a process by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsListInstanceProcessThreadsSlotParameters + options?: WebAppsListInstanceProcessThreadsSlotParameters, ): Promise< | WebAppsListInstanceProcessThreadsSlot200Response | WebAppsListInstanceProcessThreadsSlot404Response @@ -6819,21 +6819,21 @@ export interface WebAppsListInstanceProcessThreadsSlot { export interface WebAppsIsCloneableSlot { /** Shows whether an app can be cloned to another resource group or subscription. */ post( - options?: WebAppsIsCloneableSlotParameters + options?: WebAppsIsCloneableSlotParameters, ): Promise; } export interface WebAppsListSiteBackupsSlot { /** Gets existing backups of an app. */ post( - options?: WebAppsListSiteBackupsSlotParameters + options?: WebAppsListSiteBackupsSlotParameters, ): Promise; } export interface WebAppsListSyncFunctionTriggersSlot { /** This is to allow calling via powershell and ARM template. */ post( - options?: WebAppsListSyncFunctionTriggersSlotParameters + options?: WebAppsListSyncFunctionTriggersSlotParameters, ): Promise< | WebAppsListSyncFunctionTriggersSlot200Response | WebAppsListSyncFunctionTriggersSlotdefaultResponse @@ -6843,7 +6843,7 @@ export interface WebAppsListSyncFunctionTriggersSlot { export interface WebAppsGetMigrateMySqlStatusSlot { /** Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled */ get( - options?: WebAppsGetMigrateMySqlStatusSlotParameters + options?: WebAppsGetMigrateMySqlStatusSlotParameters, ): Promise< WebAppsGetMigrateMySqlStatusSlot200Response | WebAppsGetMigrateMySqlStatusSlotdefaultResponse >; @@ -6852,7 +6852,7 @@ export interface WebAppsGetMigrateMySqlStatusSlot { export interface WebAppsGetSwiftVirtualNetworkConnectionSlot { /** Gets a Swift Virtual Network connection. */ get( - options?: WebAppsGetSwiftVirtualNetworkConnectionSlotParameters + options?: WebAppsGetSwiftVirtualNetworkConnectionSlotParameters, ): Promise< | WebAppsGetSwiftVirtualNetworkConnectionSlot200Response | WebAppsGetSwiftVirtualNetworkConnectionSlotdefaultResponse @@ -6862,14 +6862,14 @@ export interface WebAppsGetSwiftVirtualNetworkConnectionSlot { * in use by another App Service Plan other than the one this App is in. */ put( - options: WebAppsCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotParameters + options: WebAppsCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotParameters, ): Promise< | WebAppsCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlot200Response | WebAppsCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotdefaultResponse >; /** Deletes a Swift Virtual Network connection from an app (or deployment slot). */ delete( - options?: WebAppsDeleteSwiftVirtualNetworkSlotParameters + options?: WebAppsDeleteSwiftVirtualNetworkSlotParameters, ): Promise< | WebAppsDeleteSwiftVirtualNetworkSlot200Response | WebAppsDeleteSwiftVirtualNetworkSlot404Response @@ -6880,7 +6880,7 @@ export interface WebAppsGetSwiftVirtualNetworkConnectionSlot { * in use by another App Service Plan other than the one this App is in. */ patch( - options: WebAppsUpdateSwiftVirtualNetworkConnectionWithCheckSlotParameters + options: WebAppsUpdateSwiftVirtualNetworkConnectionWithCheckSlotParameters, ): Promise< | WebAppsUpdateSwiftVirtualNetworkConnectionWithCheckSlot200Response | WebAppsUpdateSwiftVirtualNetworkConnectionWithCheckSlotdefaultResponse @@ -6890,7 +6890,7 @@ export interface WebAppsGetSwiftVirtualNetworkConnectionSlot { export interface WebAppsListNetworkFeaturesSlot { /** Gets all network features used by the app (or deployment slot, if specified). */ get( - options?: WebAppsListNetworkFeaturesSlotParameters + options?: WebAppsListNetworkFeaturesSlotParameters, ): Promise< | WebAppsListNetworkFeaturesSlot200Response | WebAppsListNetworkFeaturesSlot404Response @@ -6901,7 +6901,7 @@ export interface WebAppsListNetworkFeaturesSlot { export interface WebAppsGetNetworkTraceOperationSlot { /** Gets a named operation for a network trace capturing (or deployment slot, if specified). */ get( - options?: WebAppsGetNetworkTraceOperationSlotParameters + options?: WebAppsGetNetworkTraceOperationSlotParameters, ): Promise< | WebAppsGetNetworkTraceOperationSlot200Response | WebAppsGetNetworkTraceOperationSlot202Response @@ -6912,7 +6912,7 @@ export interface WebAppsGetNetworkTraceOperationSlot { export interface WebAppsStartWebSiteNetworkTraceSlot { /** Start capturing network packets for the site (To be deprecated). */ post( - options?: WebAppsStartWebSiteNetworkTraceSlotParameters + options?: WebAppsStartWebSiteNetworkTraceSlotParameters, ): Promise< | WebAppsStartWebSiteNetworkTraceSlot200Response | WebAppsStartWebSiteNetworkTraceSlotdefaultResponse @@ -6922,7 +6922,7 @@ export interface WebAppsStartWebSiteNetworkTraceSlot { export interface WebAppsStartWebSiteNetworkTraceOperationSlot { /** Start capturing network packets for the site. */ post( - options?: WebAppsStartWebSiteNetworkTraceOperationSlotParameters + options?: WebAppsStartWebSiteNetworkTraceOperationSlotParameters, ): Promise< | WebAppsStartWebSiteNetworkTraceOperationSlot200Response | WebAppsStartWebSiteNetworkTraceOperationSlot202Response @@ -6933,7 +6933,7 @@ export interface WebAppsStartWebSiteNetworkTraceOperationSlot { export interface WebAppsStopWebSiteNetworkTraceSlot { /** Stop ongoing capturing network packets for the site. */ post( - options?: WebAppsStopWebSiteNetworkTraceSlotParameters + options?: WebAppsStopWebSiteNetworkTraceSlotParameters, ): Promise< | WebAppsStopWebSiteNetworkTraceSlot200Response | WebAppsStopWebSiteNetworkTraceSlot204Response @@ -6944,14 +6944,14 @@ export interface WebAppsStopWebSiteNetworkTraceSlot { export interface WebAppsGetNetworkTracesSlot { /** Gets a named operation for a network trace capturing (or deployment slot, if specified). */ get( - options?: WebAppsGetNetworkTracesSlotParameters + options?: WebAppsGetNetworkTracesSlotParameters, ): Promise; } export interface WebAppsGetNetworkTraceOperationSlotV2 { /** Gets a named operation for a network trace capturing (or deployment slot, if specified). */ get( - options?: WebAppsGetNetworkTraceOperationSlotV2Parameters + options?: WebAppsGetNetworkTraceOperationSlotV2Parameters, ): Promise< | WebAppsGetNetworkTraceOperationSlotV2200Response | WebAppsGetNetworkTraceOperationSlotV2202Response @@ -6962,7 +6962,7 @@ export interface WebAppsGetNetworkTraceOperationSlotV2 { export interface WebAppsGetNetworkTracesSlotV2 { /** Gets a named operation for a network trace capturing (or deployment slot, if specified). */ get( - options?: WebAppsGetNetworkTracesSlotV2Parameters + options?: WebAppsGetNetworkTracesSlotV2Parameters, ): Promise< WebAppsGetNetworkTracesSlotV2200Response | WebAppsGetNetworkTracesSlotV2defaultResponse >; @@ -6971,7 +6971,7 @@ export interface WebAppsGetNetworkTracesSlotV2 { export interface WebAppsGenerateNewSitePublishingPasswordSlot { /** Generates a new publishing password for an app (or deployment slot, if specified). */ post( - options?: WebAppsGenerateNewSitePublishingPasswordSlotParameters + options?: WebAppsGenerateNewSitePublishingPasswordSlotParameters, ): Promise< | WebAppsGenerateNewSitePublishingPasswordSlot200Response | WebAppsGenerateNewSitePublishingPasswordSlot204Response @@ -6982,7 +6982,7 @@ export interface WebAppsGenerateNewSitePublishingPasswordSlot { export interface WebAppsListPerfMonCountersSlot { /** Gets perfmon counters for web app. */ get( - options?: WebAppsListPerfMonCountersSlotParameters + options?: WebAppsListPerfMonCountersSlotParameters, ): Promise< WebAppsListPerfMonCountersSlot200Response | WebAppsListPerfMonCountersSlotdefaultResponse >; @@ -6991,7 +6991,7 @@ export interface WebAppsListPerfMonCountersSlot { export interface WebAppsGetSitePhpErrorLogFlagSlot { /** Gets web app's event logs. */ get( - options?: WebAppsGetSitePhpErrorLogFlagSlotParameters + options?: WebAppsGetSitePhpErrorLogFlagSlotParameters, ): Promise< WebAppsGetSitePhpErrorLogFlagSlot200Response | WebAppsGetSitePhpErrorLogFlagSlotdefaultResponse >; @@ -7000,28 +7000,28 @@ export interface WebAppsGetSitePhpErrorLogFlagSlot { export interface WebAppsListPremierAddOnsSlot { /** Gets the premier add-ons of an app. */ get( - options?: WebAppsListPremierAddOnsSlotParameters + options?: WebAppsListPremierAddOnsSlotParameters, ): Promise; } export interface WebAppsGetPremierAddOnSlot { /** Gets a named add-on of an app. */ get( - options?: WebAppsGetPremierAddOnSlotParameters + options?: WebAppsGetPremierAddOnSlotParameters, ): Promise; /** Updates a named add-on of an app. */ put( - options: WebAppsAddPremierAddOnSlotParameters + options: WebAppsAddPremierAddOnSlotParameters, ): Promise; /** Delete a premier add-on from an app. */ delete( - options?: WebAppsDeletePremierAddOnSlotParameters + options?: WebAppsDeletePremierAddOnSlotParameters, ): Promise< WebAppsDeletePremierAddOnSlot200Response | WebAppsDeletePremierAddOnSlotdefaultResponse >; /** Updates a named add-on of an app. */ patch( - options: WebAppsUpdatePremierAddOnSlotParameters + options: WebAppsUpdatePremierAddOnSlotParameters, ): Promise< WebAppsUpdatePremierAddOnSlot200Response | WebAppsUpdatePremierAddOnSlotdefaultResponse >; @@ -7030,11 +7030,11 @@ export interface WebAppsGetPremierAddOnSlot { export interface WebAppsGetPrivateAccessSlot { /** Gets data around private site access enablement and authorized Virtual Networks that can access the site. */ get( - options?: WebAppsGetPrivateAccessSlotParameters + options?: WebAppsGetPrivateAccessSlotParameters, ): Promise; /** Sets data around private site access enablement and authorized Virtual Networks that can access the site. */ put( - options: WebAppsPutPrivateAccessVnetSlotParameters + options: WebAppsPutPrivateAccessVnetSlotParameters, ): Promise< WebAppsPutPrivateAccessVnetSlot200Response | WebAppsPutPrivateAccessVnetSlotdefaultResponse >; @@ -7043,7 +7043,7 @@ export interface WebAppsGetPrivateAccessSlot { export interface WebAppsGetPrivateEndpointConnectionListSlot { /** Gets the list of private endpoint connections associated with a site */ get( - options?: WebAppsGetPrivateEndpointConnectionListSlotParameters + options?: WebAppsGetPrivateEndpointConnectionListSlotParameters, ): Promise< | WebAppsGetPrivateEndpointConnectionListSlot200Response | WebAppsGetPrivateEndpointConnectionListSlotdefaultResponse @@ -7053,14 +7053,14 @@ export interface WebAppsGetPrivateEndpointConnectionListSlot { export interface WebAppsGetPrivateEndpointConnectionSlot { /** Gets a private endpoint connection */ get( - options?: WebAppsGetPrivateEndpointConnectionSlotParameters + options?: WebAppsGetPrivateEndpointConnectionSlotParameters, ): Promise< | WebAppsGetPrivateEndpointConnectionSlot200Response | WebAppsGetPrivateEndpointConnectionSlotdefaultResponse >; /** Approves or rejects a private endpoint connection */ put( - options: WebAppsApproveOrRejectPrivateEndpointConnectionSlotParameters + options: WebAppsApproveOrRejectPrivateEndpointConnectionSlotParameters, ): Promise< | WebAppsApproveOrRejectPrivateEndpointConnectionSlot200Response | WebAppsApproveOrRejectPrivateEndpointConnectionSlot202Response @@ -7068,7 +7068,7 @@ export interface WebAppsGetPrivateEndpointConnectionSlot { >; /** Deletes a private endpoint connection */ delete( - options?: WebAppsDeletePrivateEndpointConnectionSlotParameters + options?: WebAppsDeletePrivateEndpointConnectionSlotParameters, ): Promise< | WebAppsDeletePrivateEndpointConnectionSlot200Response | WebAppsDeletePrivateEndpointConnectionSlot202Response @@ -7080,7 +7080,7 @@ export interface WebAppsGetPrivateEndpointConnectionSlot { export interface WebAppsGetPrivateLinkResourcesSlot { /** Gets the private link resources */ get( - options?: WebAppsGetPrivateLinkResourcesSlotParameters + options?: WebAppsGetPrivateLinkResourcesSlotParameters, ): Promise< | WebAppsGetPrivateLinkResourcesSlot200Response | WebAppsGetPrivateLinkResourcesSlotdefaultResponse @@ -7090,7 +7090,7 @@ export interface WebAppsGetPrivateLinkResourcesSlot { export interface WebAppsListProcessesSlot { /** Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. */ get( - options?: WebAppsListProcessesSlotParameters + options?: WebAppsListProcessesSlotParameters, ): Promise< | WebAppsListProcessesSlot200Response | WebAppsListProcessesSlot404Response @@ -7101,7 +7101,7 @@ export interface WebAppsListProcessesSlot { export interface WebAppsGetProcessSlot { /** Get process information by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsGetProcessSlotParameters + options?: WebAppsGetProcessSlotParameters, ): Promise< | WebAppsGetProcessSlot200Response | WebAppsGetProcessSlot404Response @@ -7109,7 +7109,7 @@ export interface WebAppsGetProcessSlot { >; /** Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. */ delete( - options?: WebAppsDeleteProcessSlotParameters + options?: WebAppsDeleteProcessSlotParameters, ): Promise< | WebAppsDeleteProcessSlot204Response | WebAppsDeleteProcessSlot404Response @@ -7120,7 +7120,7 @@ export interface WebAppsGetProcessSlot { export interface WebAppsGetProcessDumpSlot { /** Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsGetProcessDumpSlotParameters + options?: WebAppsGetProcessDumpSlotParameters, ): Promise< | WebAppsGetProcessDumpSlot200Response | WebAppsGetProcessDumpSlot404Response @@ -7131,7 +7131,7 @@ export interface WebAppsGetProcessDumpSlot { export interface WebAppsListProcessModulesSlot { /** List module information for a process by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsListProcessModulesSlotParameters + options?: WebAppsListProcessModulesSlotParameters, ): Promise< | WebAppsListProcessModulesSlot200Response | WebAppsListProcessModulesSlot404Response @@ -7142,7 +7142,7 @@ export interface WebAppsListProcessModulesSlot { export interface WebAppsGetProcessModuleSlot { /** Get process information by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsGetProcessModuleSlotParameters + options?: WebAppsGetProcessModuleSlotParameters, ): Promise< | WebAppsGetProcessModuleSlot200Response | WebAppsGetProcessModuleSlot404Response @@ -7153,7 +7153,7 @@ export interface WebAppsGetProcessModuleSlot { export interface WebAppsListProcessThreadsSlot { /** List the threads in a process by its ID for a specific scaled-out instance in a web site. */ get( - options?: WebAppsListProcessThreadsSlotParameters + options?: WebAppsListProcessThreadsSlotParameters, ): Promise< | WebAppsListProcessThreadsSlot200Response | WebAppsListProcessThreadsSlot404Response @@ -7164,7 +7164,7 @@ export interface WebAppsListProcessThreadsSlot { export interface WebAppsListPublicCertificatesSlot { /** Get public certificates for an app or a deployment slot. */ get( - options?: WebAppsListPublicCertificatesSlotParameters + options?: WebAppsListPublicCertificatesSlotParameters, ): Promise< WebAppsListPublicCertificatesSlot200Response | WebAppsListPublicCertificatesSlotdefaultResponse >; @@ -7173,20 +7173,20 @@ export interface WebAppsListPublicCertificatesSlot { export interface WebAppsGetPublicCertificateSlot { /** Get the named public certificate for an app (or deployment slot, if specified). */ get( - options?: WebAppsGetPublicCertificateSlotParameters + options?: WebAppsGetPublicCertificateSlotParameters, ): Promise< WebAppsGetPublicCertificateSlot200Response | WebAppsGetPublicCertificateSlotdefaultResponse >; /** Creates a hostname binding for an app. */ put( - options: WebAppsCreateOrUpdatePublicCertificateSlotParameters + options: WebAppsCreateOrUpdatePublicCertificateSlotParameters, ): Promise< | WebAppsCreateOrUpdatePublicCertificateSlot200Response | WebAppsCreateOrUpdatePublicCertificateSlotdefaultResponse >; /** Deletes a hostname binding for an app. */ delete( - options?: WebAppsDeletePublicCertificateSlotParameters + options?: WebAppsDeletePublicCertificateSlotParameters, ): Promise< | WebAppsDeletePublicCertificateSlot200Response | WebAppsDeletePublicCertificateSlot204Response @@ -7197,7 +7197,7 @@ export interface WebAppsGetPublicCertificateSlot { export interface WebAppsListPublishingProfileXmlWithSecretsSlot { /** Gets the publishing profile for an app (or deployment slot, if specified). */ post( - options: WebAppsListPublishingProfileXmlWithSecretsSlotParameters + options: WebAppsListPublishingProfileXmlWithSecretsSlotParameters, ): Promise< | WebAppsListPublishingProfileXmlWithSecretsSlot200Response | WebAppsListPublishingProfileXmlWithSecretsSlotdefaultResponse @@ -7207,7 +7207,7 @@ export interface WebAppsListPublishingProfileXmlWithSecretsSlot { export interface WebAppsResetSlotConfigurationSlot { /** Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. */ post( - options?: WebAppsResetSlotConfigurationSlotParameters + options?: WebAppsResetSlotConfigurationSlotParameters, ): Promise< WebAppsResetSlotConfigurationSlot200Response | WebAppsResetSlotConfigurationSlotdefaultResponse >; @@ -7216,14 +7216,14 @@ export interface WebAppsResetSlotConfigurationSlot { export interface WebAppsRestartSlot { /** Restarts an app (or deployment slot, if specified). */ post( - options?: WebAppsRestartSlotParameters + options?: WebAppsRestartSlotParameters, ): Promise; } export interface WebAppsRestoreFromBackupBlobSlot { /** Restores an app from a backup blob in Azure Storage. */ post( - options: WebAppsRestoreFromBackupBlobSlotParameters + options: WebAppsRestoreFromBackupBlobSlotParameters, ): Promise< | WebAppsRestoreFromBackupBlobSlot200Response | WebAppsRestoreFromBackupBlobSlot202Response @@ -7234,7 +7234,7 @@ export interface WebAppsRestoreFromBackupBlobSlot { export interface WebAppsRestoreFromDeletedAppSlot { /** Restores a deleted web app to this web app. */ post( - options: WebAppsRestoreFromDeletedAppSlotParameters + options: WebAppsRestoreFromDeletedAppSlotParameters, ): Promise< | WebAppsRestoreFromDeletedAppSlot200Response | WebAppsRestoreFromDeletedAppSlot202Response @@ -7245,7 +7245,7 @@ export interface WebAppsRestoreFromDeletedAppSlot { export interface WebAppsRestoreSnapshotSlot { /** Restores a web app from a snapshot. */ post( - options: WebAppsRestoreSnapshotSlotParameters + options: WebAppsRestoreSnapshotSlotParameters, ): Promise< | WebAppsRestoreSnapshotSlot200Response | WebAppsRestoreSnapshotSlot202Response @@ -7256,7 +7256,7 @@ export interface WebAppsRestoreSnapshotSlot { export interface WebAppsListSiteExtensionsSlot { /** Get list of siteextensions for a web site, or a deployment slot. */ get( - options?: WebAppsListSiteExtensionsSlotParameters + options?: WebAppsListSiteExtensionsSlotParameters, ): Promise< | WebAppsListSiteExtensionsSlot200Response | WebAppsListSiteExtensionsSlot404Response @@ -7267,7 +7267,7 @@ export interface WebAppsListSiteExtensionsSlot { export interface WebAppsGetSiteExtensionSlot { /** Get site extension information by its ID for a web site, or a deployment slot. */ get( - options?: WebAppsGetSiteExtensionSlotParameters + options?: WebAppsGetSiteExtensionSlotParameters, ): Promise< | WebAppsGetSiteExtensionSlot200Response | WebAppsGetSiteExtensionSlot404Response @@ -7275,7 +7275,7 @@ export interface WebAppsGetSiteExtensionSlot { >; /** Install site extension on a web site, or a deployment slot. */ put( - options?: WebAppsInstallSiteExtensionSlotParameters + options?: WebAppsInstallSiteExtensionSlotParameters, ): Promise< | WebAppsInstallSiteExtensionSlot200Response | WebAppsInstallSiteExtensionSlot201Response @@ -7284,7 +7284,7 @@ export interface WebAppsGetSiteExtensionSlot { >; /** Remove a site extension from a web site, or a deployment slot. */ delete( - options?: WebAppsDeleteSiteExtensionSlotParameters + options?: WebAppsDeleteSiteExtensionSlotParameters, ): Promise< | WebAppsDeleteSiteExtensionSlot204Response | WebAppsDeleteSiteExtensionSlot404Response @@ -7295,7 +7295,7 @@ export interface WebAppsGetSiteExtensionSlot { export interface WebAppsListSlotDifferencesSlot { /** Get the difference in configuration settings between two web app slots. */ post( - options: WebAppsListSlotDifferencesSlotParameters + options: WebAppsListSlotDifferencesSlotParameters, ): Promise< WebAppsListSlotDifferencesSlot200Response | WebAppsListSlotDifferencesSlotdefaultResponse >; @@ -7304,7 +7304,7 @@ export interface WebAppsListSlotDifferencesSlot { export interface WebAppsSwapSlot { /** Swaps two deployment slots of an app. */ post( - options: WebAppsSwapSlotParameters + options: WebAppsSwapSlotParameters, ): Promise< WebAppsSwapSlot200Response | WebAppsSwapSlot202Response | WebAppsSwapSlotdefaultResponse >; @@ -7313,14 +7313,14 @@ export interface WebAppsSwapSlot { export interface WebAppsListSnapshotsSlot { /** Returns all Snapshots to the user. */ get( - options?: WebAppsListSnapshotsSlotParameters + options?: WebAppsListSnapshotsSlotParameters, ): Promise; } export interface WebAppsListSnapshotsFromDRSecondarySlot { /** Returns all Snapshots to the user from DRSecondary endpoint. */ get( - options?: WebAppsListSnapshotsFromDRSecondarySlotParameters + options?: WebAppsListSnapshotsFromDRSecondarySlotParameters, ): Promise< | WebAppsListSnapshotsFromDRSecondarySlot200Response | WebAppsListSnapshotsFromDRSecondarySlotdefaultResponse @@ -7330,7 +7330,7 @@ export interface WebAppsListSnapshotsFromDRSecondarySlot { export interface WebAppsGetSourceControlSlot { /** Gets the source control configuration of an app. */ get( - options?: WebAppsGetSourceControlSlotParameters + options?: WebAppsGetSourceControlSlotParameters, ): Promise< | WebAppsGetSourceControlSlot200Response | WebAppsGetSourceControlSlot201Response @@ -7339,7 +7339,7 @@ export interface WebAppsGetSourceControlSlot { >; /** Updates the source control configuration of an app. */ put( - options: WebAppsCreateOrUpdateSourceControlSlotParameters + options: WebAppsCreateOrUpdateSourceControlSlotParameters, ): Promise< | WebAppsCreateOrUpdateSourceControlSlot200Response | WebAppsCreateOrUpdateSourceControlSlot201Response @@ -7348,7 +7348,7 @@ export interface WebAppsGetSourceControlSlot { >; /** Deletes the source control configuration of an app. */ delete( - options?: WebAppsDeleteSourceControlSlotParameters + options?: WebAppsDeleteSourceControlSlotParameters, ): Promise< | WebAppsDeleteSourceControlSlot200Response | WebAppsDeleteSourceControlSlot202Response @@ -7357,7 +7357,7 @@ export interface WebAppsGetSourceControlSlot { >; /** Updates the source control configuration of an app. */ patch( - options: WebAppsUpdateSourceControlSlotParameters + options: WebAppsUpdateSourceControlSlotParameters, ): Promise< | WebAppsUpdateSourceControlSlot200Response | WebAppsUpdateSourceControlSlot201Response @@ -7369,14 +7369,14 @@ export interface WebAppsGetSourceControlSlot { export interface WebAppsStartSlot { /** Starts an app (or deployment slot, if specified). */ post( - options?: WebAppsStartSlotParameters + options?: WebAppsStartSlotParameters, ): Promise; } export interface WebAppsStartNetworkTraceSlot { /** Start capturing network packets for the site. */ post( - options?: WebAppsStartNetworkTraceSlotParameters + options?: WebAppsStartNetworkTraceSlotParameters, ): Promise< | WebAppsStartNetworkTraceSlot200Response | WebAppsStartNetworkTraceSlot202Response @@ -7387,14 +7387,14 @@ export interface WebAppsStartNetworkTraceSlot { export interface WebAppsStopSlot { /** Stops an app (or deployment slot, if specified). */ post( - options?: WebAppsStopSlotParameters + options?: WebAppsStopSlotParameters, ): Promise; } export interface WebAppsStopNetworkTraceSlot { /** Stop ongoing capturing network packets for the site. */ post( - options?: WebAppsStopNetworkTraceSlotParameters + options?: WebAppsStopNetworkTraceSlotParameters, ): Promise< | WebAppsStopNetworkTraceSlot200Response | WebAppsStopNetworkTraceSlot204Response @@ -7405,14 +7405,14 @@ export interface WebAppsStopNetworkTraceSlot { export interface WebAppsSyncRepositorySlot { /** Sync web app repository. */ post( - options?: WebAppsSyncRepositorySlotParameters + options?: WebAppsSyncRepositorySlotParameters, ): Promise; } export interface WebAppsSyncFunctionTriggersSlot { /** Syncs function trigger metadata to the management database */ post( - options?: WebAppsSyncFunctionTriggersSlotParameters + options?: WebAppsSyncFunctionTriggersSlotParameters, ): Promise< WebAppsSyncFunctionTriggersSlot204Response | WebAppsSyncFunctionTriggersSlotdefaultResponse >; @@ -7421,7 +7421,7 @@ export interface WebAppsSyncFunctionTriggersSlot { export interface WebAppsListTriggeredWebJobsSlot { /** List triggered web jobs for an app, or a deployment slot. */ get( - options?: WebAppsListTriggeredWebJobsSlotParameters + options?: WebAppsListTriggeredWebJobsSlotParameters, ): Promise< WebAppsListTriggeredWebJobsSlot200Response | WebAppsListTriggeredWebJobsSlotdefaultResponse >; @@ -7430,7 +7430,7 @@ export interface WebAppsListTriggeredWebJobsSlot { export interface WebAppsGetTriggeredWebJobSlot { /** Gets a triggered web job by its ID for an app, or a deployment slot. */ get( - options?: WebAppsGetTriggeredWebJobSlotParameters + options?: WebAppsGetTriggeredWebJobSlotParameters, ): Promise< | WebAppsGetTriggeredWebJobSlot200Response | WebAppsGetTriggeredWebJobSlot404Response @@ -7438,7 +7438,7 @@ export interface WebAppsGetTriggeredWebJobSlot { >; /** Delete a triggered web job by its ID for an app, or a deployment slot. */ delete( - options?: WebAppsDeleteTriggeredWebJobSlotParameters + options?: WebAppsDeleteTriggeredWebJobSlotParameters, ): Promise< | WebAppsDeleteTriggeredWebJobSlot200Response | WebAppsDeleteTriggeredWebJobSlot204Response @@ -7449,7 +7449,7 @@ export interface WebAppsGetTriggeredWebJobSlot { export interface WebAppsListTriggeredWebJobHistorySlot { /** List a triggered web job's history for an app, or a deployment slot. */ get( - options?: WebAppsListTriggeredWebJobHistorySlotParameters + options?: WebAppsListTriggeredWebJobHistorySlotParameters, ): Promise< | WebAppsListTriggeredWebJobHistorySlot200Response | WebAppsListTriggeredWebJobHistorySlot404Response @@ -7460,7 +7460,7 @@ export interface WebAppsListTriggeredWebJobHistorySlot { export interface WebAppsGetTriggeredWebJobHistorySlot { /** Gets a triggered web job's history by its ID for an app, , or a deployment slot. */ get( - options?: WebAppsGetTriggeredWebJobHistorySlotParameters + options?: WebAppsGetTriggeredWebJobHistorySlotParameters, ): Promise< | WebAppsGetTriggeredWebJobHistorySlot200Response | WebAppsGetTriggeredWebJobHistorySlot404Response @@ -7471,7 +7471,7 @@ export interface WebAppsGetTriggeredWebJobHistorySlot { export interface WebAppsRunTriggeredWebJobSlot { /** Run a triggered web job for an app, or a deployment slot. */ post( - options?: WebAppsRunTriggeredWebJobSlotParameters + options?: WebAppsRunTriggeredWebJobSlotParameters, ): Promise< | WebAppsRunTriggeredWebJobSlot200Response | WebAppsRunTriggeredWebJobSlot404Response @@ -7482,14 +7482,14 @@ export interface WebAppsRunTriggeredWebJobSlot { export interface WebAppsListUsagesSlot { /** Gets the quota usage information of an app (or deployment slot, if specified). */ get( - options?: WebAppsListUsagesSlotParameters + options?: WebAppsListUsagesSlotParameters, ): Promise; } export interface WebAppsListVnetConnectionsSlot { /** Gets the virtual networks the app (or deployment slot) is connected to. */ get( - options?: WebAppsListVnetConnectionsSlotParameters + options?: WebAppsListVnetConnectionsSlotParameters, ): Promise< WebAppsListVnetConnectionsSlot200Response | WebAppsListVnetConnectionsSlotdefaultResponse >; @@ -7498,18 +7498,18 @@ export interface WebAppsListVnetConnectionsSlot { export interface WebAppsGetVnetConnectionSlot { /** Gets a virtual network the app (or deployment slot) is connected to by name. */ get( - options?: WebAppsGetVnetConnectionSlotParameters + options?: WebAppsGetVnetConnectionSlotParameters, ): Promise; /** Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH). */ put( - options: WebAppsCreateOrUpdateVnetConnectionSlotParameters + options: WebAppsCreateOrUpdateVnetConnectionSlotParameters, ): Promise< | WebAppsCreateOrUpdateVnetConnectionSlot200Response | WebAppsCreateOrUpdateVnetConnectionSlotdefaultResponse >; /** Deletes a connection from an app (or deployment slot to a named virtual network. */ delete( - options?: WebAppsDeleteVnetConnectionSlotParameters + options?: WebAppsDeleteVnetConnectionSlotParameters, ): Promise< | WebAppsDeleteVnetConnectionSlot200Response | WebAppsDeleteVnetConnectionSlot404Response @@ -7517,7 +7517,7 @@ export interface WebAppsGetVnetConnectionSlot { >; /** Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH). */ patch( - options: WebAppsUpdateVnetConnectionSlotParameters + options: WebAppsUpdateVnetConnectionSlotParameters, ): Promise< WebAppsUpdateVnetConnectionSlot200Response | WebAppsUpdateVnetConnectionSlotdefaultResponse >; @@ -7526,7 +7526,7 @@ export interface WebAppsGetVnetConnectionSlot { export interface WebAppsGetVnetConnectionGatewaySlot { /** Gets an app's Virtual Network gateway. */ get( - options?: WebAppsGetVnetConnectionGatewaySlotParameters + options?: WebAppsGetVnetConnectionGatewaySlotParameters, ): Promise< | WebAppsGetVnetConnectionGatewaySlot200Response | WebAppsGetVnetConnectionGatewaySlot404Response @@ -7534,14 +7534,14 @@ export interface WebAppsGetVnetConnectionGatewaySlot { >; /** Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). */ put( - options: WebAppsCreateOrUpdateVnetConnectionGatewaySlotParameters + options: WebAppsCreateOrUpdateVnetConnectionGatewaySlotParameters, ): Promise< | WebAppsCreateOrUpdateVnetConnectionGatewaySlot200Response | WebAppsCreateOrUpdateVnetConnectionGatewaySlotdefaultResponse >; /** Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). */ patch( - options: WebAppsUpdateVnetConnectionGatewaySlotParameters + options: WebAppsUpdateVnetConnectionGatewaySlotParameters, ): Promise< | WebAppsUpdateVnetConnectionGatewaySlot200Response | WebAppsUpdateVnetConnectionGatewaySlotdefaultResponse @@ -7551,21 +7551,21 @@ export interface WebAppsGetVnetConnectionGatewaySlot { export interface WebAppsListWebJobsSlot { /** List webjobs for an app, or a deployment slot. */ get( - options?: WebAppsListWebJobsSlotParameters + options?: WebAppsListWebJobsSlotParameters, ): Promise; } export interface WebAppsGetWebJobSlot { /** Get webjob information for an app, or a deployment slot. */ get( - options?: WebAppsGetWebJobSlotParameters + options?: WebAppsGetWebJobSlotParameters, ): Promise; } export interface WebAppsListSlotDifferencesFromProduction { /** Get the difference in configuration settings between two web app slots. */ post( - options: WebAppsListSlotDifferencesFromProductionParameters + options: WebAppsListSlotDifferencesFromProductionParameters, ): Promise< | WebAppsListSlotDifferencesFromProduction200Response | WebAppsListSlotDifferencesFromProductiondefaultResponse @@ -7575,7 +7575,7 @@ export interface WebAppsListSlotDifferencesFromProduction { export interface WebAppsSwapSlotWithProduction { /** Swaps two deployment slots of an app. */ post( - options: WebAppsSwapSlotWithProductionParameters + options: WebAppsSwapSlotWithProductionParameters, ): Promise< | WebAppsSwapSlotWithProduction200Response | WebAppsSwapSlotWithProduction202Response @@ -7586,14 +7586,14 @@ export interface WebAppsSwapSlotWithProduction { export interface WebAppsListSnapshots { /** Returns all Snapshots to the user. */ get( - options?: WebAppsListSnapshotsParameters + options?: WebAppsListSnapshotsParameters, ): Promise; } export interface WebAppsListSnapshotsFromDRSecondary { /** Returns all Snapshots to the user from DRSecondary endpoint. */ get( - options?: WebAppsListSnapshotsFromDRSecondaryParameters + options?: WebAppsListSnapshotsFromDRSecondaryParameters, ): Promise< | WebAppsListSnapshotsFromDRSecondary200Response | WebAppsListSnapshotsFromDRSecondarydefaultResponse @@ -7603,7 +7603,7 @@ export interface WebAppsListSnapshotsFromDRSecondary { export interface WebAppsGetSourceControl { /** Gets the source control configuration of an app. */ get( - options?: WebAppsGetSourceControlParameters + options?: WebAppsGetSourceControlParameters, ): Promise< | WebAppsGetSourceControl200Response | WebAppsGetSourceControl201Response @@ -7612,7 +7612,7 @@ export interface WebAppsGetSourceControl { >; /** Updates the source control configuration of an app. */ put( - options: WebAppsCreateOrUpdateSourceControlParameters + options: WebAppsCreateOrUpdateSourceControlParameters, ): Promise< | WebAppsCreateOrUpdateSourceControl200Response | WebAppsCreateOrUpdateSourceControl201Response @@ -7621,7 +7621,7 @@ export interface WebAppsGetSourceControl { >; /** Deletes the source control configuration of an app. */ delete( - options?: WebAppsDeleteSourceControlParameters + options?: WebAppsDeleteSourceControlParameters, ): Promise< | WebAppsDeleteSourceControl200Response | WebAppsDeleteSourceControl202Response @@ -7630,7 +7630,7 @@ export interface WebAppsGetSourceControl { >; /** Updates the source control configuration of an app. */ patch( - options: WebAppsUpdateSourceControlParameters + options: WebAppsUpdateSourceControlParameters, ): Promise< | WebAppsUpdateSourceControl200Response | WebAppsUpdateSourceControl201Response @@ -7642,14 +7642,14 @@ export interface WebAppsGetSourceControl { export interface WebAppsStart { /** Starts an app (or deployment slot, if specified). */ post( - options?: WebAppsStartParameters + options?: WebAppsStartParameters, ): Promise; } export interface WebAppsStartNetworkTrace { /** Start capturing network packets for the site. */ post( - options?: WebAppsStartNetworkTraceParameters + options?: WebAppsStartNetworkTraceParameters, ): Promise< | WebAppsStartNetworkTrace200Response | WebAppsStartNetworkTrace202Response @@ -7660,14 +7660,14 @@ export interface WebAppsStartNetworkTrace { export interface WebAppsStop { /** Stops an app (or deployment slot, if specified). */ post( - options?: WebAppsStopParameters + options?: WebAppsStopParameters, ): Promise; } export interface WebAppsStopNetworkTrace { /** Stop ongoing capturing network packets for the site. */ post( - options?: WebAppsStopNetworkTraceParameters + options?: WebAppsStopNetworkTraceParameters, ): Promise< | WebAppsStopNetworkTrace200Response | WebAppsStopNetworkTrace204Response @@ -7678,28 +7678,28 @@ export interface WebAppsStopNetworkTrace { export interface WebAppsSyncRepository { /** Sync web app repository. */ post( - options?: WebAppsSyncRepositoryParameters + options?: WebAppsSyncRepositoryParameters, ): Promise; } export interface WebAppsSyncFunctionTriggers { /** Syncs function trigger metadata to the management database */ post( - options?: WebAppsSyncFunctionTriggersParameters + options?: WebAppsSyncFunctionTriggersParameters, ): Promise; } export interface WebAppsListTriggeredWebJobs { /** List triggered web jobs for an app, or a deployment slot. */ get( - options?: WebAppsListTriggeredWebJobsParameters + options?: WebAppsListTriggeredWebJobsParameters, ): Promise; } export interface WebAppsGetTriggeredWebJob { /** Gets a triggered web job by its ID for an app, or a deployment slot. */ get( - options?: WebAppsGetTriggeredWebJobParameters + options?: WebAppsGetTriggeredWebJobParameters, ): Promise< | WebAppsGetTriggeredWebJob200Response | WebAppsGetTriggeredWebJob404Response @@ -7707,7 +7707,7 @@ export interface WebAppsGetTriggeredWebJob { >; /** Delete a triggered web job by its ID for an app, or a deployment slot. */ delete( - options?: WebAppsDeleteTriggeredWebJobParameters + options?: WebAppsDeleteTriggeredWebJobParameters, ): Promise< | WebAppsDeleteTriggeredWebJob200Response | WebAppsDeleteTriggeredWebJob204Response @@ -7718,7 +7718,7 @@ export interface WebAppsGetTriggeredWebJob { export interface WebAppsListTriggeredWebJobHistory { /** List a triggered web job's history for an app, or a deployment slot. */ get( - options?: WebAppsListTriggeredWebJobHistoryParameters + options?: WebAppsListTriggeredWebJobHistoryParameters, ): Promise< | WebAppsListTriggeredWebJobHistory200Response | WebAppsListTriggeredWebJobHistory404Response @@ -7729,7 +7729,7 @@ export interface WebAppsListTriggeredWebJobHistory { export interface WebAppsGetTriggeredWebJobHistory { /** Gets a triggered web job's history by its ID for an app, , or a deployment slot. */ get( - options?: WebAppsGetTriggeredWebJobHistoryParameters + options?: WebAppsGetTriggeredWebJobHistoryParameters, ): Promise< | WebAppsGetTriggeredWebJobHistory200Response | WebAppsGetTriggeredWebJobHistory404Response @@ -7740,7 +7740,7 @@ export interface WebAppsGetTriggeredWebJobHistory { export interface WebAppsRunTriggeredWebJob { /** Run a triggered web job for an app, or a deployment slot. */ post( - options?: WebAppsRunTriggeredWebJobParameters + options?: WebAppsRunTriggeredWebJobParameters, ): Promise< | WebAppsRunTriggeredWebJob200Response | WebAppsRunTriggeredWebJob404Response @@ -7751,32 +7751,32 @@ export interface WebAppsRunTriggeredWebJob { export interface WebAppsListUsages { /** Gets the quota usage information of an app (or deployment slot, if specified). */ get( - options?: WebAppsListUsagesParameters + options?: WebAppsListUsagesParameters, ): Promise; } export interface WebAppsListVnetConnections { /** Gets the virtual networks the app (or deployment slot) is connected to. */ get( - options?: WebAppsListVnetConnectionsParameters + options?: WebAppsListVnetConnectionsParameters, ): Promise; } export interface WebAppsGetVnetConnection { /** Gets a virtual network the app (or deployment slot) is connected to by name. */ get( - options?: WebAppsGetVnetConnectionParameters + options?: WebAppsGetVnetConnectionParameters, ): Promise; /** Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH). */ put( - options: WebAppsCreateOrUpdateVnetConnectionParameters + options: WebAppsCreateOrUpdateVnetConnectionParameters, ): Promise< | WebAppsCreateOrUpdateVnetConnection200Response | WebAppsCreateOrUpdateVnetConnectiondefaultResponse >; /** Deletes a connection from an app (or deployment slot to a named virtual network. */ delete( - options?: WebAppsDeleteVnetConnectionParameters + options?: WebAppsDeleteVnetConnectionParameters, ): Promise< | WebAppsDeleteVnetConnection200Response | WebAppsDeleteVnetConnection404Response @@ -7784,14 +7784,14 @@ export interface WebAppsGetVnetConnection { >; /** Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH). */ patch( - options: WebAppsUpdateVnetConnectionParameters + options: WebAppsUpdateVnetConnectionParameters, ): Promise; } export interface WebAppsGetVnetConnectionGateway { /** Gets an app's Virtual Network gateway. */ get( - options?: WebAppsGetVnetConnectionGatewayParameters + options?: WebAppsGetVnetConnectionGatewayParameters, ): Promise< | WebAppsGetVnetConnectionGateway200Response | WebAppsGetVnetConnectionGateway404Response @@ -7799,14 +7799,14 @@ export interface WebAppsGetVnetConnectionGateway { >; /** Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). */ put( - options: WebAppsCreateOrUpdateVnetConnectionGatewayParameters + options: WebAppsCreateOrUpdateVnetConnectionGatewayParameters, ): Promise< | WebAppsCreateOrUpdateVnetConnectionGateway200Response | WebAppsCreateOrUpdateVnetConnectionGatewaydefaultResponse >; /** Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). */ patch( - options: WebAppsUpdateVnetConnectionGatewayParameters + options: WebAppsUpdateVnetConnectionGatewayParameters, ): Promise< | WebAppsUpdateVnetConnectionGateway200Response | WebAppsUpdateVnetConnectionGatewaydefaultResponse @@ -7816,14 +7816,14 @@ export interface WebAppsGetVnetConnectionGateway { export interface WebAppsListWebJobs { /** List webjobs for an app, or a deployment slot. */ get( - options?: WebAppsListWebJobsParameters + options?: WebAppsListWebJobsParameters, ): Promise; } export interface WebAppsGetWebJob { /** Get webjob information for an app, or a deployment slot. */ get( - options?: WebAppsGetWebJobParameters + options?: WebAppsGetWebJobParameters, ): Promise; } @@ -7831,32 +7831,32 @@ export interface Routes { /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.CertificateRegistration/certificateOrders' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/certificateOrders", - subscriptionId: string + subscriptionId: string, ): AppServiceCertificateOrdersList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation", - subscriptionId: string + subscriptionId: string, ): AppServiceCertificateOrdersValidatePurchaseInformation; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.CertificateRegistration/certificateOrders' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): AppServiceCertificateOrdersListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.CertificateRegistration/certificateOrders/\{certificateOrderName\}' has methods for the following verbs: get, put, delete, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}", subscriptionId: string, resourceGroupName: string, - certificateOrderName: string + certificateOrderName: string, ): AppServiceCertificateOrdersGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.CertificateRegistration/certificateOrders/\{certificateOrderName\}/certificates' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates", subscriptionId: string, resourceGroupName: string, - certificateOrderName: string + certificateOrderName: string, ): AppServiceCertificateOrdersListCertificates; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.CertificateRegistration/certificateOrders/\{certificateOrderName\}/certificates/\{name\}' has methods for the following verbs: get, put, delete, patch */ ( @@ -7864,70 +7864,70 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, certificateOrderName: string, - name: string + name: string, ): AppServiceCertificateOrdersGetCertificate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.CertificateRegistration/certificateOrders/\{certificateOrderName\}/reissue' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/reissue", subscriptionId: string, resourceGroupName: string, - certificateOrderName: string + certificateOrderName: string, ): AppServiceCertificateOrdersReissue; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.CertificateRegistration/certificateOrders/\{certificateOrderName\}/renew' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/renew", subscriptionId: string, resourceGroupName: string, - certificateOrderName: string + certificateOrderName: string, ): AppServiceCertificateOrdersRenew; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.CertificateRegistration/certificateOrders/\{certificateOrderName\}/resendEmail' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendEmail", subscriptionId: string, resourceGroupName: string, - certificateOrderName: string + certificateOrderName: string, ): AppServiceCertificateOrdersResendEmail; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.CertificateRegistration/certificateOrders/\{certificateOrderName\}/resendRequestEmails' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendRequestEmails", subscriptionId: string, resourceGroupName: string, - certificateOrderName: string + certificateOrderName: string, ): AppServiceCertificateOrdersResendRequestEmails; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.CertificateRegistration/certificateOrders/\{certificateOrderName\}/retrieveSiteSeal' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/retrieveSiteSeal", subscriptionId: string, resourceGroupName: string, - certificateOrderName: string + certificateOrderName: string, ): AppServiceCertificateOrdersRetrieveSiteSeal; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.CertificateRegistration/certificateOrders/\{certificateOrderName\}/verifyDomainOwnership' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/verifyDomainOwnership", subscriptionId: string, resourceGroupName: string, - certificateOrderName: string + certificateOrderName: string, ): AppServiceCertificateOrdersVerifyDomainOwnership; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.CertificateRegistration/certificateOrders/\{name\}/retrieveCertificateActions' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveCertificateActions", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceCertificateOrdersRetrieveCertificateActions; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.CertificateRegistration/certificateOrders/\{name\}/retrieveEmailHistory' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveEmailHistory", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceCertificateOrdersRetrieveCertificateEmailHistory; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.CertificateRegistration/certificateOrders/\{certificateOrderName\}/detectors' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors", subscriptionId: string, resourceGroupName: string, - certificateOrderName: string + certificateOrderName: string, ): CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponse; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.CertificateRegistration/certificateOrders/\{certificateOrderName\}/detectors/\{detectorName\}' has methods for the following verbs: get */ ( @@ -7935,51 +7935,51 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, certificateOrderName: string, - detectorName: string + detectorName: string, ): CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponse; /** Resource for '/providers/Microsoft.CertificateRegistration/operations' has methods for the following verbs: get */ ( - path: "/providers/Microsoft.CertificateRegistration/operations" + path: "/providers/Microsoft.CertificateRegistration/operations", ): CertificateRegistrationProviderListOperations; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.DomainRegistration/checkDomainAvailability' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability", - subscriptionId: string + subscriptionId: string, ): DomainsCheckAvailability; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.DomainRegistration/domains' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/domains", - subscriptionId: string + subscriptionId: string, ): DomainsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.DomainRegistration/generateSsoRequest' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/generateSsoRequest", - subscriptionId: string + subscriptionId: string, ): DomainsGetControlCenterSsoRequest; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.DomainRegistration/listDomainRecommendations' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/listDomainRecommendations", - subscriptionId: string + subscriptionId: string, ): DomainsListRecommendations; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.DomainRegistration/domains' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): DomainsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.DomainRegistration/domains/\{domainName\}' has methods for the following verbs: get, put, delete, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}", subscriptionId: string, resourceGroupName: string, - domainName: string + domainName: string, ): DomainsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.DomainRegistration/domains/\{domainName\}/domainOwnershipIdentifiers' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers", subscriptionId: string, resourceGroupName: string, - domainName: string + domainName: string, ): DomainsListOwnershipIdentifiers; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.DomainRegistration/domains/\{domainName\}/domainOwnershipIdentifiers/\{name\}' has methods for the following verbs: get, put, delete, patch */ ( @@ -7987,95 +7987,95 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, domainName: string, - name: string + name: string, ): DomainsGetOwnershipIdentifier; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.DomainRegistration/domains/\{domainName\}/renew' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/renew", subscriptionId: string, resourceGroupName: string, - domainName: string + domainName: string, ): DomainsRenew; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.DomainRegistration/domains/\{domainName\}/transferOut' has methods for the following verbs: put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/transferOut", subscriptionId: string, resourceGroupName: string, - domainName: string + domainName: string, ): DomainsTransferOut; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.DomainRegistration/topLevelDomains' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains", - subscriptionId: string + subscriptionId: string, ): TopLevelDomainsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.DomainRegistration/topLevelDomains/\{name\}' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}", subscriptionId: string, - name: string + name: string, ): TopLevelDomainsGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.DomainRegistration/topLevelDomains/\{name\}/listAgreements' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}/listAgreements", subscriptionId: string, - name: string + name: string, ): TopLevelDomainsListAgreements; /** Resource for '/providers/Microsoft.DomainRegistration/operations' has methods for the following verbs: get */ ( - path: "/providers/Microsoft.DomainRegistration/operations" + path: "/providers/Microsoft.DomainRegistration/operations", ): DomainRegistrationProviderListOperations; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/hostingEnvironments' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/hostingEnvironments", - subscriptionId: string + subscriptionId: string, ): AppServiceEnvironmentsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): AppServiceEnvironmentsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}' has methods for the following verbs: get, put, delete, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/capacities/compute' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/compute", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsListCapacities; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/capacities/virtualip' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/virtualip", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsGetVipInfo; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/changeVirtualNetwork' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/changeVirtualNetwork", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsChangeVnet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/configurations/networking' has methods for the following verbs: get, put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/configurations/networking", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsGetAseV3NetworkingConfiguration; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/diagnostics' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/diagnostics", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsListDiagnostics; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/diagnostics/\{diagnosticsName\}' has methods for the following verbs: get */ ( @@ -8083,28 +8083,28 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - diagnosticsName: string + diagnosticsName: string, ): AppServiceEnvironmentsGetDiagnosticsItem; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/inboundNetworkDependenciesEndpoints' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/inboundNetworkDependenciesEndpoints", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsGetInboundNetworkDependenciesEndpoints; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/multiRolePools' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsListMultiRolePools; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/multiRolePools/default' has methods for the following verbs: get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsGetMultiRolePool; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/multiRolePools/default/instances/\{instance\}/metricdefinitions' has methods for the following verbs: get */ ( @@ -8112,49 +8112,49 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - instance: string + instance: string, ): AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitions; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/multiRolePools/default/metricdefinitions' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/metricdefinitions", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsListMultiRoleMetricDefinitions; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/multiRolePools/default/skus' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/skus", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsListMultiRolePoolSkus; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/multiRolePools/default/usages' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/usages", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsListMultiRoleUsages; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/operations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/operations", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsListOperations; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/outboundNetworkDependenciesEndpoints' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/outboundNetworkDependenciesEndpoints", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpoints; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/privateEndpointConnections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/privateEndpointConnections", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsGetPrivateEndpointConnectionList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/privateEndpointConnections/\{privateEndpointConnectionName\}' has methods for the following verbs: get, put, delete */ ( @@ -8162,63 +8162,63 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - privateEndpointConnectionName: string + privateEndpointConnectionName: string, ): AppServiceEnvironmentsGetPrivateEndpointConnection; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/privateLinkResources' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/privateLinkResources", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsGetPrivateLinkResources; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/reboot' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/reboot", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsReboot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/resume' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/resume", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsResume; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/serverfarms' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/serverfarms", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsListAppServicePlans; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/sites' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/sites", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsListWebApps; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/suspend' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/suspend", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsSuspend; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/usages' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/usages", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsListUsages; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/workerPools' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServiceEnvironmentsListWorkerPools; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/workerPools/\{workerPoolName\}' has methods for the following verbs: get, put, patch */ ( @@ -8226,7 +8226,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - workerPoolName: string + workerPoolName: string, ): AppServiceEnvironmentsGetWorkerPool; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/workerPools/\{workerPoolName\}/instances/\{instance\}/metricdefinitions' has methods for the following verbs: get */ ( @@ -8235,7 +8235,7 @@ export interface Routes { resourceGroupName: string, name: string, workerPoolName: string, - instance: string + instance: string, ): AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitions; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/workerPools/\{workerPoolName\}/metricdefinitions' has methods for the following verbs: get */ ( @@ -8243,7 +8243,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - workerPoolName: string + workerPoolName: string, ): AppServiceEnvironmentsListWebWorkerMetricDefinitions; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/workerPools/\{workerPoolName\}/skus' has methods for the following verbs: get */ ( @@ -8251,7 +8251,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - workerPoolName: string + workerPoolName: string, ): AppServiceEnvironmentsListWorkerPoolSkus; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/workerPools/\{workerPoolName\}/usages' has methods for the following verbs: get */ ( @@ -8259,32 +8259,32 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - workerPoolName: string + workerPoolName: string, ): AppServiceEnvironmentsListWebWorkerUsages; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/serverfarms' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/serverfarms", - subscriptionId: string + subscriptionId: string, ): AppServicePlansList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): AppServicePlansListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms/\{name\}' has methods for the following verbs: get, put, delete, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServicePlansGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms/\{name\}/capabilities' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/capabilities", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServicePlansListCapabilities; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms/\{name\}/hybridConnectionNamespaces/\{namespaceName\}/relays/\{relayName\}' has methods for the following verbs: get, delete */ ( @@ -8293,7 +8293,7 @@ export interface Routes { resourceGroupName: string, name: string, namespaceName: string, - relayName: string + relayName: string, ): AppServicePlansGetHybridConnection; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms/\{name\}/hybridConnectionNamespaces/\{namespaceName\}/relays/\{relayName\}/listKeys' has methods for the following verbs: post */ ( @@ -8302,7 +8302,7 @@ export interface Routes { resourceGroupName: string, name: string, namespaceName: string, - relayName: string + relayName: string, ): AppServicePlansListHybridConnectionKeys; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms/\{name\}/hybridConnectionNamespaces/\{namespaceName\}/relays/\{relayName\}/sites' has methods for the following verbs: get */ ( @@ -8311,56 +8311,56 @@ export interface Routes { resourceGroupName: string, name: string, namespaceName: string, - relayName: string + relayName: string, ): AppServicePlansListWebAppsByHybridConnection; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms/\{name\}/hybridConnectionPlanLimits/limit' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionPlanLimits/limit", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServicePlansGetHybridConnectionPlanLimit; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms/\{name\}/hybridConnectionRelays' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionRelays", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServicePlansListHybridConnections; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms/\{name\}/restartSites' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/restartSites", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServicePlansRestartWebApps; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms/\{name\}/sites' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/sites", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServicePlansListWebApps; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms/\{name\}/skus' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/skus", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServicePlansGetServerFarmSkus; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms/\{name\}/usages' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/usages", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServicePlansListUsages; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms/\{name\}/virtualNetworkConnections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): AppServicePlansListVnets; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms/\{name\}/virtualNetworkConnections/\{vnetName\}' has methods for the following verbs: get */ ( @@ -8368,7 +8368,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - vnetName: string + vnetName: string, ): AppServicePlansGetVnetFromServerFarm; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms/\{name\}/virtualNetworkConnections/\{vnetName\}/gateways/\{gatewayName\}' has methods for the following verbs: get, put */ ( @@ -8377,7 +8377,7 @@ export interface Routes { resourceGroupName: string, name: string, vnetName: string, - gatewayName: string + gatewayName: string, ): AppServicePlansGetVnetGateway; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms/\{name\}/virtualNetworkConnections/\{vnetName\}/routes' has methods for the following verbs: get */ ( @@ -8385,7 +8385,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - vnetName: string + vnetName: string, ): AppServicePlansListRoutesForVnet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms/\{name\}/virtualNetworkConnections/\{vnetName\}/routes/\{routeName\}' has methods for the following verbs: get, put, delete, patch */ ( @@ -8394,7 +8394,7 @@ export interface Routes { resourceGroupName: string, name: string, vnetName: string, - routeName: string + routeName: string, ): AppServicePlansGetRouteForVnet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/serverfarms/\{name\}/workers/\{workerName\}/reboot' has methods for the following verbs: post */ ( @@ -8402,56 +8402,56 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - workerName: string + workerName: string, ): AppServicePlansRebootWorker; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/certificates' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/certificates", - subscriptionId: string + subscriptionId: string, ): CertificatesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/certificates' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): CertificatesListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/certificates/\{name\}' has methods for the following verbs: get, put, delete, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): CertificatesGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/containerApps' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/containerApps", - subscriptionId: string + subscriptionId: string, ): ContainerAppsListBySubscription; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/containerApps' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): ContainerAppsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/containerApps/\{name\}' has methods for the following verbs: get, put, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{name}", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): ContainerAppsGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/containerApps/\{name\}/listSecrets' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/containerApps/{name}/listSecrets", subscriptionId: string, - name: string + name: string, ): ContainerAppsListSecrets; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/containerApps/\{containerAppName\}/revisions' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{containerAppName}/revisions", subscriptionId: string, resourceGroupName: string, - containerAppName: string + containerAppName: string, ): ContainerAppsRevisionsListRevisions; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/containerApps/\{containerAppName\}/revisions/\{name\}' has methods for the following verbs: get */ ( @@ -8459,7 +8459,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, containerAppName: string, - name: string + name: string, ): ContainerAppsRevisionsGetRevision; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/containerApps/\{containerAppName\}/revisions/\{name\}/activate' has methods for the following verbs: post */ ( @@ -8467,7 +8467,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, containerAppName: string, - name: string + name: string, ): ContainerAppsRevisionsActivateRevision; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/containerApps/\{containerAppName\}/revisions/\{name\}/deactivate' has methods for the following verbs: post */ ( @@ -8475,7 +8475,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, containerAppName: string, - name: string + name: string, ): ContainerAppsRevisionsDeactivateRevision; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/containerApps/\{containerAppName\}/revisions/\{name\}/restart' has methods for the following verbs: post */ ( @@ -8483,32 +8483,32 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, containerAppName: string, - name: string + name: string, ): ContainerAppsRevisionsRestartRevision; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/deletedSites' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites", - subscriptionId: string + subscriptionId: string, ): DeletedWebAppsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/locations/\{location\}/deletedSites' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/deletedSites", subscriptionId: string, - location: string + location: string, ): DeletedWebAppsListByLocation; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/locations/\{location\}/deletedSites/\{deletedSiteId\}' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/deletedSites/{deletedSiteId}", subscriptionId: string, location: string, - deletedSiteId: string + deletedSiteId: string, ): DeletedWebAppsGetDeletedWebAppByLocation; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/detectors' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): DiagnosticsListHostingEnvironmentDetectorResponses; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{name\}/detectors/\{detectorName\}' has methods for the following verbs: get */ ( @@ -8516,14 +8516,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - detectorName: string + detectorName: string, ): DiagnosticsGetHostingEnvironmentDetectorResponse; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/detectors' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors", subscriptionId: string, resourceGroupName: string, - siteName: string + siteName: string, ): DiagnosticsListSiteDetectorResponses; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/detectors/\{detectorName\}' has methods for the following verbs: get */ ( @@ -8531,14 +8531,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, siteName: string, - detectorName: string + detectorName: string, ): DiagnosticsGetSiteDetectorResponse; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/diagnostics' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics", subscriptionId: string, resourceGroupName: string, - siteName: string + siteName: string, ): DiagnosticsListSiteDiagnosticCategories; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/diagnostics/\{diagnosticCategory\}' has methods for the following verbs: get */ ( @@ -8546,7 +8546,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, siteName: string, - diagnosticCategory: string + diagnosticCategory: string, ): DiagnosticsGetSiteDiagnosticCategory; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/diagnostics/\{diagnosticCategory\}/analyses' has methods for the following verbs: get */ ( @@ -8554,7 +8554,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, siteName: string, - diagnosticCategory: string + diagnosticCategory: string, ): DiagnosticsListSiteAnalyses; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/diagnostics/\{diagnosticCategory\}/analyses/\{analysisName\}' has methods for the following verbs: get */ ( @@ -8563,7 +8563,7 @@ export interface Routes { resourceGroupName: string, siteName: string, diagnosticCategory: string, - analysisName: string + analysisName: string, ): DiagnosticsGetSiteAnalysis; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/diagnostics/\{diagnosticCategory\}/analyses/\{analysisName\}/execute' has methods for the following verbs: post */ ( @@ -8572,7 +8572,7 @@ export interface Routes { resourceGroupName: string, siteName: string, diagnosticCategory: string, - analysisName: string + analysisName: string, ): DiagnosticsExecuteSiteAnalysis; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/diagnostics/\{diagnosticCategory\}/detectors' has methods for the following verbs: get */ ( @@ -8580,7 +8580,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, siteName: string, - diagnosticCategory: string + diagnosticCategory: string, ): DiagnosticsListSiteDetectors; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/diagnostics/\{diagnosticCategory\}/detectors/\{detectorName\}' has methods for the following verbs: get */ ( @@ -8589,7 +8589,7 @@ export interface Routes { resourceGroupName: string, siteName: string, diagnosticCategory: string, - detectorName: string + detectorName: string, ): DiagnosticsGetSiteDetector; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/diagnostics/\{diagnosticCategory\}/detectors/\{detectorName\}/execute' has methods for the following verbs: post */ ( @@ -8598,7 +8598,7 @@ export interface Routes { resourceGroupName: string, siteName: string, diagnosticCategory: string, - detectorName: string + detectorName: string, ): DiagnosticsExecuteSiteDetector; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/slots/\{slot\}/detectors' has methods for the following verbs: get */ ( @@ -8606,7 +8606,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, siteName: string, - slot: string + slot: string, ): DiagnosticsListSiteDetectorResponsesSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/slots/\{slot\}/detectors/\{detectorName\}' has methods for the following verbs: get */ ( @@ -8615,7 +8615,7 @@ export interface Routes { resourceGroupName: string, siteName: string, slot: string, - detectorName: string + detectorName: string, ): DiagnosticsGetSiteDetectorResponseSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/slots/\{slot\}/diagnostics' has methods for the following verbs: get */ ( @@ -8623,7 +8623,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, siteName: string, - slot: string + slot: string, ): DiagnosticsListSiteDiagnosticCategoriesSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/slots/\{slot\}/diagnostics/\{diagnosticCategory\}' has methods for the following verbs: get */ ( @@ -8632,7 +8632,7 @@ export interface Routes { resourceGroupName: string, siteName: string, slot: string, - diagnosticCategory: string + diagnosticCategory: string, ): DiagnosticsGetSiteDiagnosticCategorySlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/slots/\{slot\}/diagnostics/\{diagnosticCategory\}/analyses' has methods for the following verbs: get */ ( @@ -8641,7 +8641,7 @@ export interface Routes { resourceGroupName: string, siteName: string, slot: string, - diagnosticCategory: string + diagnosticCategory: string, ): DiagnosticsListSiteAnalysesSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/slots/\{slot\}/diagnostics/\{diagnosticCategory\}/analyses/\{analysisName\}' has methods for the following verbs: get */ ( @@ -8651,7 +8651,7 @@ export interface Routes { siteName: string, slot: string, diagnosticCategory: string, - analysisName: string + analysisName: string, ): DiagnosticsGetSiteAnalysisSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/slots/\{slot\}/diagnostics/\{diagnosticCategory\}/analyses/\{analysisName\}/execute' has methods for the following verbs: post */ ( @@ -8661,7 +8661,7 @@ export interface Routes { siteName: string, slot: string, diagnosticCategory: string, - analysisName: string + analysisName: string, ): DiagnosticsExecuteSiteAnalysisSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/slots/\{slot\}/diagnostics/\{diagnosticCategory\}/detectors' has methods for the following verbs: get */ ( @@ -8670,7 +8670,7 @@ export interface Routes { resourceGroupName: string, siteName: string, slot: string, - diagnosticCategory: string + diagnosticCategory: string, ): DiagnosticsListSiteDetectorsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/slots/\{slot\}/diagnostics/\{diagnosticCategory\}/detectors/\{detectorName\}' has methods for the following verbs: get */ ( @@ -8680,7 +8680,7 @@ export interface Routes { siteName: string, slot: string, diagnosticCategory: string, - detectorName: string + detectorName: string, ): DiagnosticsGetSiteDetectorSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/slots/\{slot\}/diagnostics/\{diagnosticCategory\}/detectors/\{detectorName\}/execute' has methods for the following verbs: post */ ( @@ -8690,44 +8690,44 @@ export interface Routes { siteName: string, slot: string, diagnosticCategory: string, - detectorName: string + detectorName: string, ): DiagnosticsExecuteSiteDetectorSlot; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/deletedSites/\{deletedSiteId\}' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}", subscriptionId: string, - deletedSiteId: string + deletedSiteId: string, ): GlobalGetDeletedWebApp; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/deletedSites/\{deletedSiteId\}/snapshots' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}/snapshots", subscriptionId: string, - deletedSiteId: string + deletedSiteId: string, ): GlobalGetDeletedWebAppSnapshots; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/locations/\{location\}/operations/\{operationId\}' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/operations/{operationId}", subscriptionId: string, location: string, - operationId: string + operationId: string, ): GlobalGetSubscriptionOperationWithAsyncResponse; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/kubeEnvironments' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/kubeEnvironments", - subscriptionId: string + subscriptionId: string, ): KubeEnvironmentsListBySubscription; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/kubeEnvironments' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): KubeEnvironmentsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/kubeEnvironments/\{name\}' has methods for the following verbs: get, put, delete, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments/{name}", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): KubeEnvironmentsGet; /** Resource for '/providers/Microsoft.Web/availableStacks' has methods for the following verbs: get */ (path: "/providers/Microsoft.Web/availableStacks"): ProviderGetAvailableStacks; @@ -8736,12 +8736,12 @@ export interface Routes { /** Resource for '/providers/Microsoft.Web/locations/\{location\}/functionAppStacks' has methods for the following verbs: get */ ( path: "/providers/Microsoft.Web/locations/{location}/functionAppStacks", - location: string + location: string, ): ProviderGetFunctionAppStacksForLocation; /** Resource for '/providers/Microsoft.Web/locations/\{location\}/webAppStacks' has methods for the following verbs: get */ ( path: "/providers/Microsoft.Web/locations/{location}/webAppStacks", - location: string + location: string, ): ProviderGetWebAppStacksForLocation; /** Resource for '/providers/Microsoft.Web/operations' has methods for the following verbs: get */ (path: "/providers/Microsoft.Web/operations"): ProviderListOperations; @@ -8750,51 +8750,51 @@ export interface Routes { /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/availableStacks' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/availableStacks", - subscriptionId: string + subscriptionId: string, ): ProviderGetAvailableStacksOnPrem; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/recommendations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations", - subscriptionId: string + subscriptionId: string, ): RecommendationsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/recommendations/reset' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/reset", - subscriptionId: string + subscriptionId: string, ): RecommendationsResetAllFilters; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/recommendations/\{name\}/disable' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/{name}/disable", subscriptionId: string, - name: string + name: string, ): RecommendationsDisableRecommendationForSubscription; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{hostingEnvironmentName\}/recommendationHistory' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendationHistory", subscriptionId: string, resourceGroupName: string, - hostingEnvironmentName: string + hostingEnvironmentName: string, ): RecommendationsListHistoryForHostingEnvironment; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{hostingEnvironmentName\}/recommendations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations", subscriptionId: string, resourceGroupName: string, - hostingEnvironmentName: string + hostingEnvironmentName: string, ): RecommendationsListRecommendedRulesForHostingEnvironment; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{hostingEnvironmentName\}/recommendations/disable' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/disable", subscriptionId: string, resourceGroupName: string, - hostingEnvironmentName: string + hostingEnvironmentName: string, ): RecommendationsDisableAllForHostingEnvironment; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{hostingEnvironmentName\}/recommendations/reset' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/reset", subscriptionId: string, resourceGroupName: string, - hostingEnvironmentName: string + hostingEnvironmentName: string, ): RecommendationsResetAllFiltersForHostingEnvironment; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{hostingEnvironmentName\}/recommendations/\{name\}' has methods for the following verbs: get */ ( @@ -8802,7 +8802,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, hostingEnvironmentName: string, - name: string + name: string, ): RecommendationsGetRuleDetailsByHostingEnvironment; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/hostingEnvironments/\{hostingEnvironmentName\}/recommendations/\{name\}/disable' has methods for the following verbs: post */ ( @@ -8810,35 +8810,35 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, hostingEnvironmentName: string, - name: string + name: string, ): RecommendationsDisableRecommendationForHostingEnvironment; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/recommendationHistory' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendationHistory", subscriptionId: string, resourceGroupName: string, - siteName: string + siteName: string, ): RecommendationsListHistoryForWebApp; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/recommendations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations", subscriptionId: string, resourceGroupName: string, - siteName: string + siteName: string, ): RecommendationsListRecommendedRulesForWebApp; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/recommendations/disable' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/disable", subscriptionId: string, resourceGroupName: string, - siteName: string + siteName: string, ): RecommendationsDisableAllForWebApp; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/recommendations/reset' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/reset", subscriptionId: string, resourceGroupName: string, - siteName: string + siteName: string, ): RecommendationsResetAllFiltersForWebApp; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/recommendations/\{name\}' has methods for the following verbs: get */ ( @@ -8846,7 +8846,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, siteName: string, - name: string + name: string, ): RecommendationsGetRuleDetailsByWebApp; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{siteName\}/recommendations/\{name\}/disable' has methods for the following verbs: post */ ( @@ -8854,32 +8854,32 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, siteName: string, - name: string + name: string, ): RecommendationsDisableRecommendationForSite; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/resourceHealthMetadata' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/resourceHealthMetadata", - subscriptionId: string + subscriptionId: string, ): ResourceHealthMetadataList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/resourceHealthMetadata' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/resourceHealthMetadata", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): ResourceHealthMetadataListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/resourceHealthMetadata' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resourceHealthMetadata", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): ResourceHealthMetadataListBySite; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/resourceHealthMetadata/default' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resourceHealthMetadata/default", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): ResourceHealthMetadataGetBySite; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/resourceHealthMetadata' has methods for the following verbs: get */ ( @@ -8887,7 +8887,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): ResourceHealthMetadataListBySiteSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/resourceHealthMetadata/default' has methods for the following verbs: get */ ( @@ -8895,7 +8895,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): ResourceHealthMetadataGetBySiteSlot; /** Resource for '/providers/Microsoft.Web/publishingUsers/web' has methods for the following verbs: get, put */ (path: "/providers/Microsoft.Web/publishingUsers/web"): GetPublishingUser; @@ -8904,94 +8904,94 @@ export interface Routes { /** Resource for '/providers/Microsoft.Web/sourcecontrols/\{sourceControlType\}' has methods for the following verbs: get, put */ ( path: "/providers/Microsoft.Web/sourcecontrols/{sourceControlType}", - sourceControlType: string + sourceControlType: string, ): GetSourceControl; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/billingMeters' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/billingMeters", - subscriptionId: string + subscriptionId: string, ): ListBillingMeters; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/checknameavailability' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/checknameavailability", - subscriptionId: string + subscriptionId: string, ): CheckNameAvailability; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/customhostnameSites' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/customhostnameSites", - subscriptionId: string + subscriptionId: string, ): ListCustomHostNameSites; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/deploymentLocations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/deploymentLocations", - subscriptionId: string + subscriptionId: string, ): GetSubscriptionDeploymentLocations; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/geoRegions' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions", - subscriptionId: string + subscriptionId: string, ): ListGeoRegions; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/listSitesAssignedToHostName' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/listSitesAssignedToHostName", - subscriptionId: string + subscriptionId: string, ): ListSiteIdentifiersAssignedToHostName; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/premieraddonoffers' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/premieraddonoffers", - subscriptionId: string + subscriptionId: string, ): ListPremierAddOnOffers; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/skus' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/skus", - subscriptionId: string + subscriptionId: string, ): ListSkus; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/verifyHostingEnvironmentVnet' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/verifyHostingEnvironmentVnet", - subscriptionId: string + subscriptionId: string, ): VerifyHostingEnvironmentVnet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/moveResources' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): Move; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/validate' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/validate", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): Validate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/validateMoveResources' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/validateMoveResources", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): ValidateMove; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/locations/\{location\}/previewStaticSiteWorkflowFile' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/previewStaticSiteWorkflowFile", subscriptionId: string, - location: string + location: string, ): StaticSitesPreviewWorkflow; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/staticSites' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/staticSites", - subscriptionId: string + subscriptionId: string, ): StaticSitesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): StaticSitesGetStaticSitesByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}' has methods for the following verbs: get, put, delete, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): StaticSitesGetStaticSite; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/authproviders/\{authprovider\}/listUsers' has methods for the following verbs: post */ ( @@ -8999,7 +8999,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - authprovider: string + authprovider: string, ): StaticSitesListStaticSiteUsers; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/authproviders/\{authprovider\}/users/\{userid\}' has methods for the following verbs: delete, patch */ ( @@ -9008,14 +9008,14 @@ export interface Routes { resourceGroupName: string, name: string, authprovider: string, - userid: string + userid: string, ): StaticSitesDeleteStaticSiteUser; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/builds' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): StaticSitesGetStaticSiteBuilds; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/builds/\{environmentName\}' has methods for the following verbs: get, delete */ ( @@ -9023,7 +9023,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - environmentName: string + environmentName: string, ): StaticSitesGetStaticSiteBuild; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/builds/\{environmentName\}/config/appsettings' has methods for the following verbs: put */ ( @@ -9031,7 +9031,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - environmentName: string + environmentName: string, ): StaticSitesCreateOrUpdateStaticSiteBuildAppSettings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/builds/\{environmentName\}/config/functionappsettings' has methods for the following verbs: put */ ( @@ -9039,7 +9039,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - environmentName: string + environmentName: string, ): StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/builds/\{environmentName\}/functions' has methods for the following verbs: get */ ( @@ -9047,7 +9047,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - environmentName: string + environmentName: string, ): StaticSitesListStaticSiteBuildFunctions; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/builds/\{environmentName\}/listAppSettings' has methods for the following verbs: post */ ( @@ -9055,7 +9055,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - environmentName: string + environmentName: string, ): StaticSitesListStaticSiteBuildAppSettings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/builds/\{environmentName\}/listFunctionAppSettings' has methods for the following verbs: post */ ( @@ -9063,7 +9063,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - environmentName: string + environmentName: string, ): StaticSitesListStaticSiteBuildFunctionAppSettings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/builds/\{environmentName\}/userProvidedFunctionApps' has methods for the following verbs: get */ ( @@ -9071,7 +9071,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - environmentName: string + environmentName: string, ): StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuild; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/builds/\{environmentName\}/userProvidedFunctionApps/\{functionAppName\}' has methods for the following verbs: get, put, delete */ ( @@ -9080,7 +9080,7 @@ export interface Routes { resourceGroupName: string, name: string, environmentName: string, - functionAppName: string + functionAppName: string, ): StaticSitesGetUserProvidedFunctionAppForStaticSiteBuild; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/builds/\{environmentName\}/zipdeploy' has methods for the following verbs: post */ ( @@ -9088,35 +9088,35 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - environmentName: string + environmentName: string, ): StaticSitesCreateZipDeploymentForStaticSiteBuild; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/config/appsettings' has methods for the following verbs: put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/config/appsettings", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): StaticSitesCreateOrUpdateStaticSiteAppSettings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/config/functionappsettings' has methods for the following verbs: put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/config/functionappsettings", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): StaticSitesCreateOrUpdateStaticSiteFunctionAppSettings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/createUserInvitation' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/createUserInvitation", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): StaticSitesCreateUserRolesInvitationLink; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/customDomains' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): StaticSitesListStaticSiteCustomDomains; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/customDomains/\{domainName\}' has methods for the following verbs: get, put, delete */ ( @@ -9124,7 +9124,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - domainName: string + domainName: string, ): StaticSitesGetStaticSiteCustomDomain; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/customDomains/\{domainName\}/validate' has methods for the following verbs: post */ ( @@ -9132,56 +9132,56 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - domainName: string + domainName: string, ): StaticSitesValidateCustomDomainCanBeAddedToStaticSite; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/detach' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/detach", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): StaticSitesDetachStaticSite; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/functions' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/functions", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): StaticSitesListStaticSiteFunctions; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/listAppSettings' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listAppSettings", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): StaticSitesListStaticSiteAppSettings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/listConfiguredRoles' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listConfiguredRoles", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): StaticSitesListStaticSiteConfiguredRoles; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/listFunctionAppSettings' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listFunctionAppSettings", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): StaticSitesListStaticSiteFunctionAppSettings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/listSecrets' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listSecrets", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): StaticSitesListStaticSiteSecrets; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/privateEndpointConnections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): StaticSitesGetPrivateEndpointConnectionList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/privateEndpointConnections/\{privateEndpointConnectionName\}' has methods for the following verbs: get, put, delete */ ( @@ -9189,28 +9189,28 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - privateEndpointConnectionName: string + privateEndpointConnectionName: string, ): StaticSitesGetPrivateEndpointConnection; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/privateLinkResources' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateLinkResources", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): StaticSitesGetPrivateLinkResources; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/resetapikey' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/resetapikey", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): StaticSitesResetStaticSiteApiKey; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/userProvidedFunctionApps' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): StaticSitesGetUserProvidedFunctionAppsForStaticSite; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/userProvidedFunctionApps/\{functionAppName\}' has methods for the following verbs: get, put, delete */ ( @@ -9218,60 +9218,60 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - functionAppName: string + functionAppName: string, ): StaticSitesGetUserProvidedFunctionAppForStaticSite; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/staticSites/\{name\}/zipdeploy' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/zipdeploy", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): StaticSitesCreateZipDeploymentForStaticSite; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Web/sites' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/sites", - subscriptionId: string + subscriptionId: string, ): WebAppsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): WebAppsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}' has methods for the following verbs: get, put, delete, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/analyzeCustomHostname' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/analyzeCustomHostname", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsAnalyzeCustomHostname; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/applySlotConfig' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/applySlotConfig", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsApplySlotConfigToProduction; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/backup' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backup", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsBackup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/backups' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListBackups; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/backups/\{backupId\}' has methods for the following verbs: get, delete */ ( @@ -9279,7 +9279,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - backupId: string + backupId: string, ): WebAppsGetBackupStatus; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/backups/\{backupId\}/list' has methods for the following verbs: post */ ( @@ -9287,7 +9287,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - backupId: string + backupId: string, ): WebAppsListBackupStatusSecrets; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/backups/\{backupId\}/restore' has methods for the following verbs: post */ ( @@ -9295,112 +9295,112 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - backupId: string + backupId: string, ): WebAppsRestore; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/basicPublishingCredentialsPolicies' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListBasicPublishingCredentialsPolicies; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/basicPublishingCredentialsPolicies/ftp' has methods for the following verbs: get, put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies/ftp", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetFtpAllowed; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/basicPublishingCredentialsPolicies/scm' has methods for the following verbs: get, put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies/scm", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetScmAllowed; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListConfigurations; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/appsettings' has methods for the following verbs: put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/appsettings", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsUpdateApplicationSettings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/appsettings/list' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/appsettings/list", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListApplicationSettings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/authsettings' has methods for the following verbs: put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettings", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsUpdateAuthSettings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/authsettings/list' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettings/list", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetAuthSettings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/authsettingsV2' has methods for the following verbs: get, put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetAuthSettingsV2WithoutSecrets; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/authsettingsV2/list' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2/list", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetAuthSettingsV2; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/azurestorageaccounts' has methods for the following verbs: put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsUpdateAzureStorageAccounts; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/azurestorageaccounts/list' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts/list", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListAzureStorageAccounts; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/backup' has methods for the following verbs: put, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsUpdateBackupConfiguration; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/backup/list' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup/list", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetBackupConfiguration; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/configreferences/appsettings' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/configreferences/appsettings", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetAppSettingsKeyVaultReferences; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/configreferences/appsettings/\{appSettingKey\}' has methods for the following verbs: get */ ( @@ -9408,14 +9408,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - appSettingKey: string + appSettingKey: string, ): WebAppsGetAppSettingKeyVaultReference; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/configreferences/connectionstrings' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/configreferences/connectionstrings", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetSiteConnectionStringKeyVaultReferences; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/configreferences/connectionstrings/\{connectionStringKey\}' has methods for the following verbs: get */ ( @@ -9423,84 +9423,84 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - connectionStringKey: string + connectionStringKey: string, ): WebAppsGetSiteConnectionStringKeyVaultReference; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/connectionstrings' has methods for the following verbs: put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/connectionstrings", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsUpdateConnectionStrings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/connectionstrings/list' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/connectionstrings/list", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListConnectionStrings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/logs' has methods for the following verbs: get, put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/logs", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetDiagnosticLogsConfiguration; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/metadata' has methods for the following verbs: put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/metadata", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsUpdateMetadata; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/metadata/list' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/metadata/list", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListMetadata; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/publishingcredentials/list' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/publishingcredentials/list", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListPublishingCredentials; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/pushsettings' has methods for the following verbs: put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/pushsettings", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsUpdateSitePushSettings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/pushsettings/list' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/pushsettings/list", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListSitePushSettings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/slotConfigNames' has methods for the following verbs: get, put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/slotConfigNames", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListSlotConfigurationNames; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/web' has methods for the following verbs: get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetConfiguration; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/web/snapshots' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web/snapshots", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListConfigurationSnapshotInfo; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/web/snapshots/\{snapshotId\}' has methods for the following verbs: get */ ( @@ -9508,7 +9508,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - snapshotId: string + snapshotId: string, ): WebAppsGetConfigurationSnapshot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/config/web/snapshots/\{snapshotId\}/recover' has methods for the following verbs: post */ ( @@ -9516,28 +9516,28 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - snapshotId: string + snapshotId: string, ): WebAppsRecoverSiteConfigurationSnapshot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/containerlogs' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/containerlogs", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetWebSiteContainerLogs; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/containerlogs/zip/download' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/containerlogs/zip/download", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetContainerLogsZip; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/continuouswebjobs' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListContinuousWebJobs; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/continuouswebjobs/\{webJobName\}' has methods for the following verbs: get, delete */ ( @@ -9545,7 +9545,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - webJobName: string + webJobName: string, ): WebAppsGetContinuousWebJob; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/continuouswebjobs/\{webJobName\}/start' has methods for the following verbs: post */ ( @@ -9553,7 +9553,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - webJobName: string + webJobName: string, ): WebAppsStartContinuousWebJob; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/continuouswebjobs/\{webJobName\}/stop' has methods for the following verbs: post */ ( @@ -9561,14 +9561,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - webJobName: string + webJobName: string, ): WebAppsStopContinuousWebJob; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/deployments' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListDeployments; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/deployments/\{id\}' has methods for the following verbs: get, put, delete */ ( @@ -9576,7 +9576,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, id: string, - name: string + name: string, ): WebAppsGetDeployment; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/deployments/\{id\}/log' has methods for the following verbs: get */ ( @@ -9584,21 +9584,21 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, id: string, - name: string + name: string, ): WebAppsListDeploymentLog; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/discoverbackup' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/discoverbackup", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsDiscoverBackup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/domainOwnershipIdentifiers' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/domainOwnershipIdentifiers", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListDomainOwnershipIdentifiers; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/domainOwnershipIdentifiers/\{domainOwnershipIdentifierName\}' has methods for the following verbs: get, put, delete, patch */ ( @@ -9606,42 +9606,42 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - domainOwnershipIdentifierName: string + domainOwnershipIdentifierName: string, ): WebAppsGetDomainOwnershipIdentifier; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/extensions/MSDeploy' has methods for the following verbs: get, put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/MSDeploy", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetMSDeployStatus; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/extensions/MSDeploy/log' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/MSDeploy/log", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetMSDeployLog; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/extensions/onedeploy' has methods for the following verbs: get, put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/onedeploy", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetOneDeployStatus; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/functions' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListFunctions; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/functions/admin/token' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/admin/token", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetFunctionsAdminToken; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/functions/\{functionName\}' has methods for the following verbs: get, put, delete */ ( @@ -9649,7 +9649,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - functionName: string + functionName: string, ): WebAppsGetFunction; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/functions/\{functionName\}/keys/\{keyName\}' has methods for the following verbs: put, delete */ ( @@ -9658,7 +9658,7 @@ export interface Routes { resourceGroupName: string, name: string, functionName: string, - keyName: string + keyName: string, ): WebAppsCreateOrUpdateFunctionSecret; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/functions/\{functionName\}/listkeys' has methods for the following verbs: post */ ( @@ -9666,7 +9666,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - functionName: string + functionName: string, ): WebAppsListFunctionKeys; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/functions/\{functionName\}/listsecrets' has methods for the following verbs: post */ ( @@ -9674,28 +9674,28 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - functionName: string + functionName: string, ): WebAppsListFunctionSecrets; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/host/default/listkeys' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/host/default/listkeys", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListHostKeys; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/host/default/listsyncstatus' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/host/default/listsyncstatus", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListSyncStatus; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/host/default/sync' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/host/default/sync", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsSyncFunctions; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/host/default/\{keyType\}/\{keyName\}' has methods for the following verbs: put, delete */ ( @@ -9704,14 +9704,14 @@ export interface Routes { resourceGroupName: string, name: string, keyType: string, - keyName: string + keyName: string, ): WebAppsCreateOrUpdateHostSecret; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/hostNameBindings' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListHostNameBindings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/hostNameBindings/\{hostName\}' has methods for the following verbs: get, put, delete */ ( @@ -9719,7 +9719,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - hostName: string + hostName: string, ): WebAppsGetHostNameBinding; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/hybridConnectionNamespaces/\{namespaceName\}/relays/\{relayName\}' has methods for the following verbs: get, put, delete, patch */ ( @@ -9728,21 +9728,21 @@ export interface Routes { resourceGroupName: string, name: string, namespaceName: string, - relayName: string + relayName: string, ): WebAppsGetHybridConnection; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/hybridConnectionRelays' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionRelays", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListHybridConnections; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/hybridconnection' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListRelayServiceConnections; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/hybridconnection/\{entityName\}' has methods for the following verbs: get, put, delete, patch */ ( @@ -9750,14 +9750,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - entityName: string + entityName: string, ): WebAppsGetRelayServiceConnection; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/instances' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListInstanceIdentifiers; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/instances/\{instanceId\}' has methods for the following verbs: get */ ( @@ -9765,7 +9765,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - instanceId: string + instanceId: string, ): WebAppsGetInstanceInfo; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/instances/\{instanceId\}/extensions/MSDeploy' has methods for the following verbs: get, put */ ( @@ -9773,7 +9773,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - instanceId: string + instanceId: string, ): WebAppsGetInstanceMsDeployStatus; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/instances/\{instanceId\}/extensions/MSDeploy/log' has methods for the following verbs: get */ ( @@ -9781,7 +9781,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - instanceId: string + instanceId: string, ): WebAppsGetInstanceMSDeployLog; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/instances/\{instanceId\}/processes' has methods for the following verbs: get */ ( @@ -9789,7 +9789,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - instanceId: string + instanceId: string, ): WebAppsListInstanceProcesses; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/instances/\{instanceId\}/processes/\{processId\}' has methods for the following verbs: get, delete */ ( @@ -9798,7 +9798,7 @@ export interface Routes { resourceGroupName: string, name: string, instanceId: string, - processId: string + processId: string, ): WebAppsGetInstanceProcess; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/instances/\{instanceId\}/processes/\{processId\}/dump' has methods for the following verbs: get */ ( @@ -9807,7 +9807,7 @@ export interface Routes { resourceGroupName: string, name: string, instanceId: string, - processId: string + processId: string, ): WebAppsGetInstanceProcessDump; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/instances/\{instanceId\}/processes/\{processId\}/modules' has methods for the following verbs: get */ ( @@ -9816,7 +9816,7 @@ export interface Routes { resourceGroupName: string, name: string, instanceId: string, - processId: string + processId: string, ): WebAppsListInstanceProcessModules; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/instances/\{instanceId\}/processes/\{processId\}/modules/\{baseAddress\}' has methods for the following verbs: get */ ( @@ -9826,7 +9826,7 @@ export interface Routes { name: string, instanceId: string, processId: string, - baseAddress: string + baseAddress: string, ): WebAppsGetInstanceProcessModule; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/instances/\{instanceId\}/processes/\{processId\}/threads' has methods for the following verbs: get */ ( @@ -9835,56 +9835,56 @@ export interface Routes { resourceGroupName: string, name: string, instanceId: string, - processId: string + processId: string, ): WebAppsListInstanceProcessThreads; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/iscloneable' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/iscloneable", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsIsCloneable; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/listbackups' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/listbackups", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListSiteBackups; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/listsyncfunctiontriggerstatus' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/listsyncfunctiontriggerstatus", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListSyncFunctionTriggers; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/migrate' has methods for the following verbs: put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migrate", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsMigrateStorage; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/migratemysql' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migratemysql", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsMigrateMySql; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/migratemysql/status' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migratemysql/status", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetMigrateMySqlStatus; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/networkConfig/virtualNetwork' has methods for the following verbs: get, put, delete, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkConfig/virtualNetwork", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetSwiftVirtualNetworkConnection; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/networkFeatures/\{view\}' has methods for the following verbs: get */ ( @@ -9892,7 +9892,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - view: string + view: string, ): WebAppsListNetworkFeatures; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/networkTrace/operationresults/\{operationId\}' has methods for the following verbs: get */ ( @@ -9900,28 +9900,28 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - operationId: string + operationId: string, ): WebAppsGetNetworkTraceOperation; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/networkTrace/start' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/start", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsStartWebSiteNetworkTrace; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/networkTrace/startOperation' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/startOperation", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsStartWebSiteNetworkTraceOperation; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/networkTrace/stop' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/stop", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsStopWebSiteNetworkTrace; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/networkTrace/\{operationId\}' has methods for the following verbs: get */ ( @@ -9929,7 +9929,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - operationId: string + operationId: string, ): WebAppsGetNetworkTraces; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/networkTraces/current/operationresults/\{operationId\}' has methods for the following verbs: get */ ( @@ -9937,7 +9937,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - operationId: string + operationId: string, ): WebAppsGetNetworkTraceOperationV2; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/networkTraces/\{operationId\}' has methods for the following verbs: get */ ( @@ -9945,35 +9945,35 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - operationId: string + operationId: string, ): WebAppsGetNetworkTracesV2; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/newpassword' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/newpassword", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGenerateNewSitePublishingPassword; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/perfcounters' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/perfcounters", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListPerfMonCounters; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/phplogging' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/phplogging", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetSitePhpErrorLogFlag; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/premieraddons' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListPremierAddOns; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/premieraddons/\{premierAddOnName\}' has methods for the following verbs: get, put, delete, patch */ ( @@ -9981,21 +9981,21 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - premierAddOnName: string + premierAddOnName: string, ): WebAppsGetPremierAddOn; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/privateAccess/virtualNetworks' has methods for the following verbs: get, put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/privateAccess/virtualNetworks", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetPrivateAccess; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/privateEndpointConnections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/privateEndpointConnections", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetPrivateEndpointConnectionList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/privateEndpointConnections/\{privateEndpointConnectionName\}' has methods for the following verbs: get, put, delete */ ( @@ -10003,21 +10003,21 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - privateEndpointConnectionName: string + privateEndpointConnectionName: string, ): WebAppsGetPrivateEndpointConnection; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/privateLinkResources' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/privateLinkResources", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetPrivateLinkResources; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/processes' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListProcesses; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/processes/\{processId\}' has methods for the following verbs: get, delete */ ( @@ -10025,7 +10025,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - processId: string + processId: string, ): WebAppsGetProcess; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/processes/\{processId\}/dump' has methods for the following verbs: get */ ( @@ -10033,7 +10033,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - processId: string + processId: string, ): WebAppsGetProcessDump; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/processes/\{processId\}/modules' has methods for the following verbs: get */ ( @@ -10041,7 +10041,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - processId: string + processId: string, ): WebAppsListProcessModules; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/processes/\{processId\}/modules/\{baseAddress\}' has methods for the following verbs: get */ ( @@ -10050,7 +10050,7 @@ export interface Routes { resourceGroupName: string, name: string, processId: string, - baseAddress: string + baseAddress: string, ): WebAppsGetProcessModule; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/processes/\{processId\}/threads' has methods for the following verbs: get */ ( @@ -10058,14 +10058,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - processId: string + processId: string, ): WebAppsListProcessThreads; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/publicCertificates' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publicCertificates", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListPublicCertificates; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/publicCertificates/\{publicCertificateName\}' has methods for the following verbs: get, put, delete */ ( @@ -10073,56 +10073,56 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - publicCertificateName: string + publicCertificateName: string, ): WebAppsGetPublicCertificate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/publishxml' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publishxml", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListPublishingProfileXmlWithSecrets; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/resetSlotConfig' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resetSlotConfig", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsResetProductionSlotConfig; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/restart' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restart", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsRestart; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/restoreFromBackupBlob' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restoreFromBackupBlob", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsRestoreFromBackupBlob; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/restoreFromDeletedApp' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restoreFromDeletedApp", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsRestoreFromDeletedApp; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/restoreSnapshot' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restoreSnapshot", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsRestoreSnapshot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/siteextensions' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListSiteExtensions; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/siteextensions/\{siteExtensionId\}' has methods for the following verbs: get, put, delete */ ( @@ -10130,14 +10130,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - siteExtensionId: string + siteExtensionId: string, ): WebAppsGetSiteExtension; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListSlots; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}' has methods for the following verbs: get, put, delete, patch */ ( @@ -10145,7 +10145,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/analyzeCustomHostname' has methods for the following verbs: get */ ( @@ -10153,7 +10153,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsAnalyzeCustomHostnameSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/applySlotConfig' has methods for the following verbs: post */ ( @@ -10161,7 +10161,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsApplySlotConfigurationSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/backup' has methods for the following verbs: post */ ( @@ -10169,7 +10169,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsBackupSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/backups' has methods for the following verbs: get */ ( @@ -10177,7 +10177,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListBackupsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/backups/\{backupId\}' has methods for the following verbs: get, delete */ ( @@ -10186,7 +10186,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - backupId: string + backupId: string, ): WebAppsGetBackupStatusSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/backups/\{backupId\}/list' has methods for the following verbs: post */ ( @@ -10195,7 +10195,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - backupId: string + backupId: string, ): WebAppsListBackupStatusSecretsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/backups/\{backupId\}/restore' has methods for the following verbs: post */ ( @@ -10204,7 +10204,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - backupId: string + backupId: string, ): WebAppsRestoreSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/basicPublishingCredentialsPolicies' has methods for the following verbs: get */ ( @@ -10212,7 +10212,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListBasicPublishingCredentialsPoliciesSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/basicPublishingCredentialsPolicies/ftp' has methods for the following verbs: get, put */ ( @@ -10220,7 +10220,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetFtpAllowedSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/basicPublishingCredentialsPolicies/scm' has methods for the following verbs: get, put */ ( @@ -10228,7 +10228,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetScmAllowedSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config' has methods for the following verbs: get */ ( @@ -10236,7 +10236,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListConfigurationsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/appsettings' has methods for the following verbs: put */ ( @@ -10244,7 +10244,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsUpdateApplicationSettingsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/appsettings/list' has methods for the following verbs: post */ ( @@ -10252,7 +10252,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListApplicationSettingsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/authsettings' has methods for the following verbs: put */ ( @@ -10260,7 +10260,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsUpdateAuthSettingsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/authsettings/list' has methods for the following verbs: post */ ( @@ -10268,7 +10268,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetAuthSettingsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/authsettingsV2' has methods for the following verbs: get, put */ ( @@ -10276,7 +10276,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetAuthSettingsV2WithoutSecretsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/authsettingsV2/list' has methods for the following verbs: get */ ( @@ -10284,7 +10284,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetAuthSettingsV2Slot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/azurestorageaccounts' has methods for the following verbs: put */ ( @@ -10292,7 +10292,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsUpdateAzureStorageAccountsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/azurestorageaccounts/list' has methods for the following verbs: post */ ( @@ -10300,7 +10300,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListAzureStorageAccountsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/backup' has methods for the following verbs: put, delete */ ( @@ -10308,7 +10308,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsUpdateBackupConfigurationSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/backup/list' has methods for the following verbs: post */ ( @@ -10316,7 +10316,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetBackupConfigurationSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/configreferences/appsettings' has methods for the following verbs: get */ ( @@ -10324,7 +10324,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetAppSettingsKeyVaultReferencesSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/configreferences/appsettings/\{appSettingKey\}' has methods for the following verbs: get */ ( @@ -10333,7 +10333,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - appSettingKey: string + appSettingKey: string, ): WebAppsGetAppSettingKeyVaultReferenceSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/configreferences/connectionstrings' has methods for the following verbs: get */ ( @@ -10341,7 +10341,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetSiteConnectionStringKeyVaultReferencesSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/configreferences/connectionstrings/\{connectionStringKey\}' has methods for the following verbs: get */ ( @@ -10350,7 +10350,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - connectionStringKey: string + connectionStringKey: string, ): WebAppsGetSiteConnectionStringKeyVaultReferenceSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/connectionstrings' has methods for the following verbs: put */ ( @@ -10358,7 +10358,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsUpdateConnectionStringsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/connectionstrings/list' has methods for the following verbs: post */ ( @@ -10366,7 +10366,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListConnectionStringsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/logs' has methods for the following verbs: get, put */ ( @@ -10374,7 +10374,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetDiagnosticLogsConfigurationSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/metadata' has methods for the following verbs: put */ ( @@ -10382,7 +10382,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsUpdateMetadataSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/metadata/list' has methods for the following verbs: post */ ( @@ -10390,7 +10390,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListMetadataSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/publishingcredentials/list' has methods for the following verbs: post */ ( @@ -10398,7 +10398,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListPublishingCredentialsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/pushsettings' has methods for the following verbs: put */ ( @@ -10406,7 +10406,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsUpdateSitePushSettingsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/pushsettings/list' has methods for the following verbs: post */ ( @@ -10414,7 +10414,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListSitePushSettingsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/web' has methods for the following verbs: get, put, patch */ ( @@ -10422,7 +10422,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetConfigurationSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/web/snapshots' has methods for the following verbs: get */ ( @@ -10430,7 +10430,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListConfigurationSnapshotInfoSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/web/snapshots/\{snapshotId\}' has methods for the following verbs: get */ ( @@ -10439,7 +10439,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - snapshotId: string + snapshotId: string, ): WebAppsGetConfigurationSnapshotSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/config/web/snapshots/\{snapshotId\}/recover' has methods for the following verbs: post */ ( @@ -10448,7 +10448,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - snapshotId: string + snapshotId: string, ): WebAppsRecoverSiteConfigurationSnapshotSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/containerlogs' has methods for the following verbs: post */ ( @@ -10456,7 +10456,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetWebSiteContainerLogsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/containerlogs/zip/download' has methods for the following verbs: post */ ( @@ -10464,7 +10464,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetContainerLogsZipSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/continuouswebjobs' has methods for the following verbs: get */ ( @@ -10472,7 +10472,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListContinuousWebJobsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/continuouswebjobs/\{webJobName\}' has methods for the following verbs: get, delete */ ( @@ -10481,7 +10481,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - webJobName: string + webJobName: string, ): WebAppsGetContinuousWebJobSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/continuouswebjobs/\{webJobName\}/start' has methods for the following verbs: post */ ( @@ -10490,7 +10490,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - webJobName: string + webJobName: string, ): WebAppsStartContinuousWebJobSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/continuouswebjobs/\{webJobName\}/stop' has methods for the following verbs: post */ ( @@ -10499,7 +10499,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - webJobName: string + webJobName: string, ): WebAppsStopContinuousWebJobSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/deployments' has methods for the following verbs: get */ ( @@ -10507,7 +10507,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListDeploymentsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/deployments/\{id\}' has methods for the following verbs: get, put, delete */ ( @@ -10516,7 +10516,7 @@ export interface Routes { resourceGroupName: string, id: string, name: string, - slot: string + slot: string, ): WebAppsGetDeploymentSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/deployments/\{id\}/log' has methods for the following verbs: get */ ( @@ -10525,7 +10525,7 @@ export interface Routes { resourceGroupName: string, id: string, name: string, - slot: string + slot: string, ): WebAppsListDeploymentLogSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/discoverbackup' has methods for the following verbs: post */ ( @@ -10533,7 +10533,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsDiscoverBackupSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/domainOwnershipIdentifiers' has methods for the following verbs: get */ ( @@ -10541,7 +10541,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListDomainOwnershipIdentifiersSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/domainOwnershipIdentifiers/\{domainOwnershipIdentifierName\}' has methods for the following verbs: get, put, delete, patch */ ( @@ -10550,7 +10550,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - domainOwnershipIdentifierName: string + domainOwnershipIdentifierName: string, ): WebAppsGetDomainOwnershipIdentifierSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/extensions/MSDeploy' has methods for the following verbs: get, put */ ( @@ -10558,7 +10558,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetMSDeployStatusSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/extensions/MSDeploy/log' has methods for the following verbs: get */ ( @@ -10566,7 +10566,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetMSDeployLogSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/functions' has methods for the following verbs: get */ ( @@ -10574,7 +10574,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListInstanceFunctionsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/functions/admin/token' has methods for the following verbs: get */ ( @@ -10582,7 +10582,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetFunctionsAdminTokenSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/functions/\{functionName\}' has methods for the following verbs: get, put, delete */ ( @@ -10591,7 +10591,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - functionName: string + functionName: string, ): WebAppsGetInstanceFunctionSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/functions/\{functionName\}/keys/\{keyName\}' has methods for the following verbs: put, delete */ ( @@ -10601,7 +10601,7 @@ export interface Routes { name: string, slot: string, functionName: string, - keyName: string + keyName: string, ): WebAppsCreateOrUpdateFunctionSecretSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/functions/\{functionName\}/listkeys' has methods for the following verbs: post */ ( @@ -10610,7 +10610,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - functionName: string + functionName: string, ): WebAppsListFunctionKeysSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/functions/\{functionName\}/listsecrets' has methods for the following verbs: post */ ( @@ -10619,7 +10619,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - functionName: string + functionName: string, ): WebAppsListFunctionSecretsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/host/default/listkeys' has methods for the following verbs: post */ ( @@ -10627,7 +10627,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListHostKeysSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/host/default/listsyncstatus' has methods for the following verbs: post */ ( @@ -10635,7 +10635,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListSyncStatusSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/host/default/sync' has methods for the following verbs: post */ ( @@ -10643,7 +10643,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsSyncFunctionsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/host/default/\{keyType\}/\{keyName\}' has methods for the following verbs: put, delete */ ( @@ -10653,7 +10653,7 @@ export interface Routes { name: string, slot: string, keyType: string, - keyName: string + keyName: string, ): WebAppsCreateOrUpdateHostSecretSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/hostNameBindings' has methods for the following verbs: get */ ( @@ -10661,7 +10661,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListHostNameBindingsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/hostNameBindings/\{hostName\}' has methods for the following verbs: get, put, delete */ ( @@ -10670,7 +10670,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - hostName: string + hostName: string, ): WebAppsGetHostNameBindingSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/hybridConnectionNamespaces/\{namespaceName\}/relays/\{relayName\}' has methods for the following verbs: get, put, delete, patch */ ( @@ -10680,7 +10680,7 @@ export interface Routes { name: string, slot: string, namespaceName: string, - relayName: string + relayName: string, ): WebAppsGetHybridConnectionSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/hybridConnectionRelays' has methods for the following verbs: get */ ( @@ -10688,7 +10688,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListHybridConnectionsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/hybridconnection' has methods for the following verbs: get */ ( @@ -10696,7 +10696,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListRelayServiceConnectionsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/hybridconnection/\{entityName\}' has methods for the following verbs: get, put, delete, patch */ ( @@ -10705,7 +10705,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - entityName: string + entityName: string, ): WebAppsGetRelayServiceConnectionSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/instances' has methods for the following verbs: get */ ( @@ -10713,7 +10713,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListInstanceIdentifiersSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/instances/\{instanceId\}' has methods for the following verbs: get */ ( @@ -10722,7 +10722,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - instanceId: string + instanceId: string, ): WebAppsGetInstanceInfoSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/instances/\{instanceId\}/extensions/MSDeploy' has methods for the following verbs: get, put */ ( @@ -10731,7 +10731,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - instanceId: string + instanceId: string, ): WebAppsGetInstanceMsDeployStatusSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/instances/\{instanceId\}/extensions/MSDeploy/log' has methods for the following verbs: get */ ( @@ -10740,7 +10740,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - instanceId: string + instanceId: string, ): WebAppsGetInstanceMSDeployLogSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/instances/\{instanceId\}/processes' has methods for the following verbs: get */ ( @@ -10749,7 +10749,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - instanceId: string + instanceId: string, ): WebAppsListInstanceProcessesSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/instances/\{instanceId\}/processes/\{processId\}' has methods for the following verbs: get, delete */ ( @@ -10759,7 +10759,7 @@ export interface Routes { name: string, slot: string, instanceId: string, - processId: string + processId: string, ): WebAppsGetInstanceProcessSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/instances/\{instanceId\}/processes/\{processId\}/dump' has methods for the following verbs: get */ ( @@ -10769,7 +10769,7 @@ export interface Routes { name: string, slot: string, instanceId: string, - processId: string + processId: string, ): WebAppsGetInstanceProcessDumpSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/instances/\{instanceId\}/processes/\{processId\}/modules' has methods for the following verbs: get */ ( @@ -10779,7 +10779,7 @@ export interface Routes { name: string, slot: string, instanceId: string, - processId: string + processId: string, ): WebAppsListInstanceProcessModulesSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/instances/\{instanceId\}/processes/\{processId\}/modules/\{baseAddress\}' has methods for the following verbs: get */ ( @@ -10790,7 +10790,7 @@ export interface Routes { slot: string, instanceId: string, processId: string, - baseAddress: string + baseAddress: string, ): WebAppsGetInstanceProcessModuleSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/instances/\{instanceId\}/processes/\{processId\}/threads' has methods for the following verbs: get */ ( @@ -10800,7 +10800,7 @@ export interface Routes { name: string, slot: string, instanceId: string, - processId: string + processId: string, ): WebAppsListInstanceProcessThreadsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/iscloneable' has methods for the following verbs: post */ ( @@ -10808,7 +10808,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsIsCloneableSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/listbackups' has methods for the following verbs: post */ ( @@ -10816,7 +10816,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListSiteBackupsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/listsyncfunctiontriggerstatus' has methods for the following verbs: post */ ( @@ -10824,7 +10824,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListSyncFunctionTriggersSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/migratemysql/status' has methods for the following verbs: get */ ( @@ -10832,7 +10832,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetMigrateMySqlStatusSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/networkConfig/virtualNetwork' has methods for the following verbs: get, put, delete, patch */ ( @@ -10840,7 +10840,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetSwiftVirtualNetworkConnectionSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/networkFeatures/\{view\}' has methods for the following verbs: get */ ( @@ -10849,7 +10849,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - view: string + view: string, ): WebAppsListNetworkFeaturesSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/networkTrace/operationresults/\{operationId\}' has methods for the following verbs: get */ ( @@ -10858,7 +10858,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - operationId: string + operationId: string, ): WebAppsGetNetworkTraceOperationSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/networkTrace/start' has methods for the following verbs: post */ ( @@ -10866,7 +10866,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsStartWebSiteNetworkTraceSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/networkTrace/startOperation' has methods for the following verbs: post */ ( @@ -10874,7 +10874,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsStartWebSiteNetworkTraceOperationSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/networkTrace/stop' has methods for the following verbs: post */ ( @@ -10882,7 +10882,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsStopWebSiteNetworkTraceSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/networkTrace/\{operationId\}' has methods for the following verbs: get */ ( @@ -10891,7 +10891,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - operationId: string + operationId: string, ): WebAppsGetNetworkTracesSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/networkTraces/current/operationresults/\{operationId\}' has methods for the following verbs: get */ ( @@ -10900,7 +10900,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - operationId: string + operationId: string, ): WebAppsGetNetworkTraceOperationSlotV2; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/networkTraces/\{operationId\}' has methods for the following verbs: get */ ( @@ -10909,7 +10909,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - operationId: string + operationId: string, ): WebAppsGetNetworkTracesSlotV2; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/newpassword' has methods for the following verbs: post */ ( @@ -10917,7 +10917,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGenerateNewSitePublishingPasswordSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/perfcounters' has methods for the following verbs: get */ ( @@ -10925,7 +10925,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListPerfMonCountersSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/phplogging' has methods for the following verbs: get */ ( @@ -10933,7 +10933,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetSitePhpErrorLogFlagSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/premieraddons' has methods for the following verbs: get */ ( @@ -10941,7 +10941,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListPremierAddOnsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/premieraddons/\{premierAddOnName\}' has methods for the following verbs: get, put, delete, patch */ ( @@ -10950,7 +10950,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - premierAddOnName: string + premierAddOnName: string, ): WebAppsGetPremierAddOnSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/privateAccess/virtualNetworks' has methods for the following verbs: get, put */ ( @@ -10958,7 +10958,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetPrivateAccessSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/privateEndpointConnections' has methods for the following verbs: get */ ( @@ -10966,7 +10966,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetPrivateEndpointConnectionListSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/privateEndpointConnections/\{privateEndpointConnectionName\}' has methods for the following verbs: get, put, delete */ ( @@ -10975,7 +10975,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - privateEndpointConnectionName: string + privateEndpointConnectionName: string, ): WebAppsGetPrivateEndpointConnectionSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/privateLinkResources' has methods for the following verbs: get */ ( @@ -10983,7 +10983,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetPrivateLinkResourcesSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/processes' has methods for the following verbs: get */ ( @@ -10991,7 +10991,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListProcessesSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/processes/\{processId\}' has methods for the following verbs: get, delete */ ( @@ -11000,7 +11000,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - processId: string + processId: string, ): WebAppsGetProcessSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/processes/\{processId\}/dump' has methods for the following verbs: get */ ( @@ -11009,7 +11009,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - processId: string + processId: string, ): WebAppsGetProcessDumpSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/processes/\{processId\}/modules' has methods for the following verbs: get */ ( @@ -11018,7 +11018,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - processId: string + processId: string, ): WebAppsListProcessModulesSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/processes/\{processId\}/modules/\{baseAddress\}' has methods for the following verbs: get */ ( @@ -11028,7 +11028,7 @@ export interface Routes { name: string, slot: string, processId: string, - baseAddress: string + baseAddress: string, ): WebAppsGetProcessModuleSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/processes/\{processId\}/threads' has methods for the following verbs: get */ ( @@ -11037,7 +11037,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - processId: string + processId: string, ): WebAppsListProcessThreadsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/publicCertificates' has methods for the following verbs: get */ ( @@ -11045,7 +11045,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListPublicCertificatesSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/publicCertificates/\{publicCertificateName\}' has methods for the following verbs: get, put, delete */ ( @@ -11054,7 +11054,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - publicCertificateName: string + publicCertificateName: string, ): WebAppsGetPublicCertificateSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/publishxml' has methods for the following verbs: post */ ( @@ -11062,7 +11062,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListPublishingProfileXmlWithSecretsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/resetSlotConfig' has methods for the following verbs: post */ ( @@ -11070,7 +11070,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsResetSlotConfigurationSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/restart' has methods for the following verbs: post */ ( @@ -11078,7 +11078,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsRestartSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/restoreFromBackupBlob' has methods for the following verbs: post */ ( @@ -11086,7 +11086,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsRestoreFromBackupBlobSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/restoreFromDeletedApp' has methods for the following verbs: post */ ( @@ -11094,7 +11094,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsRestoreFromDeletedAppSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/restoreSnapshot' has methods for the following verbs: post */ ( @@ -11102,7 +11102,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsRestoreSnapshotSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/siteextensions' has methods for the following verbs: get */ ( @@ -11110,7 +11110,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListSiteExtensionsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/siteextensions/\{siteExtensionId\}' has methods for the following verbs: get, put, delete */ ( @@ -11119,7 +11119,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - siteExtensionId: string + siteExtensionId: string, ): WebAppsGetSiteExtensionSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/slotsdiffs' has methods for the following verbs: post */ ( @@ -11127,7 +11127,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListSlotDifferencesSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/slotsswap' has methods for the following verbs: post */ ( @@ -11135,7 +11135,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsSwapSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/snapshots' has methods for the following verbs: get */ ( @@ -11143,7 +11143,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListSnapshotsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/snapshotsdr' has methods for the following verbs: get */ ( @@ -11151,7 +11151,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListSnapshotsFromDRSecondarySlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/sourcecontrols/web' has methods for the following verbs: get, put, delete, patch */ ( @@ -11159,7 +11159,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsGetSourceControlSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/start' has methods for the following verbs: post */ ( @@ -11167,7 +11167,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsStartSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/startNetworkTrace' has methods for the following verbs: post */ ( @@ -11175,7 +11175,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsStartNetworkTraceSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/stop' has methods for the following verbs: post */ ( @@ -11183,7 +11183,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsStopSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/stopNetworkTrace' has methods for the following verbs: post */ ( @@ -11191,7 +11191,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsStopNetworkTraceSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/sync' has methods for the following verbs: post */ ( @@ -11199,7 +11199,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsSyncRepositorySlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/syncfunctiontriggers' has methods for the following verbs: post */ ( @@ -11207,7 +11207,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsSyncFunctionTriggersSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/triggeredwebjobs' has methods for the following verbs: get */ ( @@ -11215,7 +11215,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListTriggeredWebJobsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/triggeredwebjobs/\{webJobName\}' has methods for the following verbs: get, delete */ ( @@ -11224,7 +11224,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - webJobName: string + webJobName: string, ): WebAppsGetTriggeredWebJobSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/triggeredwebjobs/\{webJobName\}/history' has methods for the following verbs: get */ ( @@ -11233,7 +11233,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - webJobName: string + webJobName: string, ): WebAppsListTriggeredWebJobHistorySlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/triggeredwebjobs/\{webJobName\}/history/\{id\}' has methods for the following verbs: get */ ( @@ -11243,7 +11243,7 @@ export interface Routes { id: string, name: string, slot: string, - webJobName: string + webJobName: string, ): WebAppsGetTriggeredWebJobHistorySlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/triggeredwebjobs/\{webJobName\}/run' has methods for the following verbs: post */ ( @@ -11252,7 +11252,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - webJobName: string + webJobName: string, ): WebAppsRunTriggeredWebJobSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/usages' has methods for the following verbs: get */ ( @@ -11260,7 +11260,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListUsagesSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/virtualNetworkConnections' has methods for the following verbs: get */ ( @@ -11268,7 +11268,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListVnetConnectionsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/virtualNetworkConnections/\{vnetName\}' has methods for the following verbs: get, put, delete, patch */ ( @@ -11277,7 +11277,7 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - vnetName: string + vnetName: string, ): WebAppsGetVnetConnectionSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/virtualNetworkConnections/\{vnetName\}/gateways/\{gatewayName\}' has methods for the following verbs: get, put, patch */ ( @@ -11287,7 +11287,7 @@ export interface Routes { name: string, slot: string, vnetName: string, - gatewayName: string + gatewayName: string, ): WebAppsGetVnetConnectionGatewaySlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/webjobs' has methods for the following verbs: get */ ( @@ -11295,7 +11295,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - slot: string + slot: string, ): WebAppsListWebJobsSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slots/\{slot\}/webjobs/\{webJobName\}' has methods for the following verbs: get */ ( @@ -11304,91 +11304,91 @@ export interface Routes { resourceGroupName: string, name: string, slot: string, - webJobName: string + webJobName: string, ): WebAppsGetWebJobSlot; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slotsdiffs' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slotsdiffs", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListSlotDifferencesFromProduction; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/slotsswap' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slotsswap", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsSwapSlotWithProduction; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/snapshots' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/snapshots", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListSnapshots; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/snapshotsdr' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/snapshotsdr", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListSnapshotsFromDRSecondary; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/sourcecontrols/web' has methods for the following verbs: get, put, delete, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsGetSourceControl; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/start' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/start", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsStart; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/startNetworkTrace' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/startNetworkTrace", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsStartNetworkTrace; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/stop' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/stop", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsStop; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/stopNetworkTrace' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/stopNetworkTrace", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsStopNetworkTrace; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/sync' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sync", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsSyncRepository; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/syncfunctiontriggers' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/syncfunctiontriggers", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsSyncFunctionTriggers; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/triggeredwebjobs' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListTriggeredWebJobs; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/triggeredwebjobs/\{webJobName\}' has methods for the following verbs: get, delete */ ( @@ -11396,7 +11396,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - webJobName: string + webJobName: string, ): WebAppsGetTriggeredWebJob; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/triggeredwebjobs/\{webJobName\}/history' has methods for the following verbs: get */ ( @@ -11404,7 +11404,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - webJobName: string + webJobName: string, ): WebAppsListTriggeredWebJobHistory; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/triggeredwebjobs/\{webJobName\}/history/\{id\}' has methods for the following verbs: get */ ( @@ -11413,7 +11413,7 @@ export interface Routes { resourceGroupName: string, id: string, name: string, - webJobName: string + webJobName: string, ): WebAppsGetTriggeredWebJobHistory; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/triggeredwebjobs/\{webJobName\}/run' has methods for the following verbs: post */ ( @@ -11421,21 +11421,21 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - webJobName: string + webJobName: string, ): WebAppsRunTriggeredWebJob; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/usages' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/usages", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListUsages; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/virtualNetworkConnections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListVnetConnections; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/virtualNetworkConnections/\{vnetName\}' has methods for the following verbs: get, put, delete, patch */ ( @@ -11443,7 +11443,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - vnetName: string + vnetName: string, ): WebAppsGetVnetConnection; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/virtualNetworkConnections/\{vnetName\}/gateways/\{gatewayName\}' has methods for the following verbs: get, put, patch */ ( @@ -11452,14 +11452,14 @@ export interface Routes { resourceGroupName: string, name: string, vnetName: string, - gatewayName: string + gatewayName: string, ): WebAppsGetVnetConnectionGateway; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/webjobs' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/webjobs", subscriptionId: string, resourceGroupName: string, - name: string + name: string, ): WebAppsListWebJobs; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Web/sites/\{name\}/webjobs/\{webJobName\}' has methods for the following verbs: get */ ( @@ -11467,7 +11467,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, name: string, - webJobName: string + webJobName: string, ): WebAppsGetWebJob; } diff --git a/sdk/appservice/arm-appservice-rest/src/paginateHelper.ts b/sdk/appservice/arm-appservice-rest/src/paginateHelper.ts index 477bace4a37f..f0d91c952cda 100644 --- a/sdk/appservice/arm-appservice-rest/src/paginateHelper.ts +++ b/sdk/appservice/arm-appservice-rest/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/appservice/arm-appservice-rest/src/pollingHelper.ts b/sdk/appservice/arm-appservice-rest/src/pollingHelper.ts index 4868774b8c3b..9ea8c49b0ad0 100644 --- a/sdk/appservice/arm-appservice-rest/src/pollingHelper.ts +++ b/sdk/appservice/arm-appservice-rest/src/pollingHelper.ts @@ -21,7 +21,7 @@ import { export function getLongRunningPoller( client: Client, initialResponse: TResult, - options: LroEngineOptions> = {} + options: LroEngineOptions> = {}, ): PollerLike, TResult> { const poller: LongRunningOperation = { requestMethod: initialResponse.request.method, diff --git a/sdk/appservice/arm-appservice-rest/src/webSiteManagementClient.ts b/sdk/appservice/arm-appservice-rest/src/webSiteManagementClient.ts index 7d5ca0b06df2..9c74077aa89e 100644 --- a/sdk/appservice/arm-appservice-rest/src/webSiteManagementClient.ts +++ b/sdk/appservice/arm-appservice-rest/src/webSiteManagementClient.ts @@ -7,7 +7,7 @@ import { WebSiteManagementClient } from "./clientDefinitions"; export default function createClient( credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): WebSiteManagementClient { const baseUrl = options.baseUrl ?? "https://management.azure.com"; options.apiVersion = options.apiVersion ?? "2021-03-01"; diff --git a/sdk/appservice/arm-appservice-rest/test/public/appservice-rest.spec.ts b/sdk/appservice/arm-appservice-rest/test/public/appservice-rest.spec.ts index 51d975a82a7d..062d8fba8873 100644 --- a/sdk/appservice/arm-appservice-rest/test/public/appservice-rest.spec.ts +++ b/sdk/appservice/arm-appservice-rest/test/public/appservice-rest.spec.ts @@ -38,7 +38,7 @@ describe("Web test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}", subscriptionId, resourceGroup, - appservicePlanName + appservicePlanName, ) .put({ body: { @@ -66,7 +66,7 @@ describe("Web test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}", subscriptionId, resourceGroup, - name + name, ) .put({ body: { @@ -107,7 +107,7 @@ describe("Web test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}", subscriptionId, resourceGroup, - appservicePlanName + appservicePlanName, ) .get(); assert.strictEqual(res.status, "200"); @@ -119,7 +119,7 @@ describe("Web test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}", subscriptionId, resourceGroup, - name + name, ) .get(); assert.strictEqual(res.status, "200"); @@ -131,7 +131,7 @@ describe("Web test", () => { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms", subscriptionId, - resourceGroup + resourceGroup, ) .get(); /** @@ -167,7 +167,7 @@ describe("Web test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}", subscriptionId, resourceGroup, - name + name, ) .patch({ body: { @@ -198,7 +198,7 @@ describe("Web test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}", subscriptionId, resourceGroup, - name + name, ) .delete(); const resArray = new Array(); @@ -218,7 +218,7 @@ describe("Web test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}", subscriptionId, resourceGroup, - appservicePlanName + appservicePlanName, ) .delete(); const resArray = new Array(); @@ -226,7 +226,7 @@ describe("Web test", () => { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms", subscriptionId, - resourceGroup + resourceGroup, ) .get(); const result = paginate(client, initialResposne); diff --git a/sdk/appservice/arm-appservice-rest/test/public/utils/recordedClient.ts b/sdk/appservice/arm-appservice-rest/test/public/utils/recordedClient.ts index cd3c5511cf4f..726a9b9c93fc 100644 --- a/sdk/appservice/arm-appservice-rest/test/public/utils/recordedClient.ts +++ b/sdk/appservice/arm-appservice-rest/test/public/utils/recordedClient.ts @@ -33,7 +33,7 @@ export async function createRecorder(context: Context): Promise { export async function createClient( recorder: Recorder, - options?: ClientOptions + options?: ClientOptions, ): Promise { const credential = createTestCredential(); return WebSiteClient(credential, recorder.configureClientOptions({ ...options })); diff --git a/sdk/attestation/attestation/package.json b/sdk/attestation/attestation/package.json index 9feaabb356ee..0d348822c0c1 100644 --- a/sdk/attestation/attestation/package.json +++ b/sdk/attestation/attestation/package.json @@ -35,11 +35,11 @@ "build:samples": "echo Obsolete.", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && npm run build:nodebrowser && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 --exclude 'dist-esm/test/**/browser/*.spec.js' 'dist-esm/test/**/*.spec.js'", @@ -123,7 +123,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "safe-buffer": "^5.2.1", "source-map-support": "^0.5.9", diff --git a/sdk/attestation/attestation/samples-dev/attestEnclaves.ts b/sdk/attestation/attestation/samples-dev/attestEnclaves.ts index d15b630d1d86..dea387f52fd0 100644 --- a/sdk/attestation/attestation/samples-dev/attestEnclaves.ts +++ b/sdk/attestation/attestation/samples-dev/attestEnclaves.ts @@ -239,7 +239,7 @@ async function attestOpenEnclaveWithRuntimeData() { if (attestResponse.body.enclaveHeldData) { console.log( " Runtime Data received by the service: ", - bytesToString(attestResponse.body.enclaveHeldData) + bytesToString(attestResponse.body.enclaveHeldData), ); } } diff --git a/sdk/attestation/attestation/samples-dev/getPolicyManagementCertificates.ts b/sdk/attestation/attestation/samples-dev/getPolicyManagementCertificates.ts index 7bf02a137125..38fd691df481 100644 --- a/sdk/attestation/attestation/samples-dev/getPolicyManagementCertificates.ts +++ b/sdk/attestation/attestation/samples-dev/getPolicyManagementCertificates.ts @@ -46,7 +46,7 @@ async function getPolicyManagementCertificates() { const policyCertificates = await client.getPolicyManagementCertificates(); console.log( - `Attestation Instance ${endpoint} has ${policyCertificates.body.length} certificates.` + `Attestation Instance ${endpoint} has ${policyCertificates.body.length} certificates.`, ); // Now print the Key ID and certificate subject for each signer. policyCertificates.body.forEach((element) => { diff --git a/sdk/attestation/attestation/samples-dev/modifyPolicyManagementCertificates.ts b/sdk/attestation/attestation/samples-dev/modifyPolicyManagementCertificates.ts index 19baf05a11ca..75d75e8f5211 100644 --- a/sdk/attestation/attestation/samples-dev/modifyPolicyManagementCertificates.ts +++ b/sdk/attestation/attestation/samples-dev/modifyPolicyManagementCertificates.ts @@ -81,7 +81,7 @@ async function modifyPolicyManagementCertificates() { const setResult = await client.addPolicyManagementCertificate( rsaCertificate, privateKey, - certificate + certificate, ); console.log("Certificate modification result: ", setResult.body.certificateResolution); @@ -93,7 +93,7 @@ async function modifyPolicyManagementCertificates() { const removeResult = await client.removePolicyManagementCertificate( rsaCertificate, privateKey, - certificate + certificate, ); console.log("Certificate modification result: ", removeResult.body.certificateResolution); console.log("Modified Certificate Thumbprint: ", removeResult.body.certificateThumbprint); diff --git a/sdk/attestation/attestation/samples-dev/utils/cryptoUtils.ts b/sdk/attestation/attestation/samples-dev/utils/cryptoUtils.ts index b1a2cacaf44c..13a634027443 100644 --- a/sdk/attestation/attestation/samples-dev/utils/cryptoUtils.ts +++ b/sdk/attestation/attestation/samples-dev/utils/cryptoUtils.ts @@ -52,7 +52,7 @@ function formatDateString(dateObject: Date): string { export function createX509Certificate( privKeyPEM: string, pubKeyPEM: string, - subject_name: string + subject_name: string, ): string { const pubKey = jsrsasign.KEYUTIL.getKey(pubKeyPEM); const privKey = jsrsasign.KEYUTIL.getKey(privKeyPEM); diff --git a/sdk/attestation/attestation/src/attestationAdministrationClient.ts b/sdk/attestation/attestation/src/attestationAdministrationClient.ts index 34da809062aa..99a5f33d9b12 100644 --- a/sdk/attestation/attestation/src/attestationAdministrationClient.ts +++ b/sdk/attestation/attestation/src/attestationAdministrationClient.ts @@ -124,7 +124,7 @@ export class AttestationAdministrationClient { constructor( endpoint: string, credentials: TokenCredential, - options: AttestationAdministrationClientOptions = {} + options: AttestationAdministrationClientOptions = {}, ) { this._validationOptions = options.validationOptions; @@ -155,7 +155,7 @@ export class AttestationAdministrationClient { */ public async getPolicy( attestationType: AttestationType, - options: AttestationAdministrationClientPolicyOperationOptions = {} + options: AttestationAdministrationClientPolicyOperationOptions = {}, ): Promise> { return tracingClient.withSpan( "AttestationAdministrationClient-getPolicy", @@ -170,7 +170,7 @@ export class AttestationAdministrationClient { // Validate the token returned from the service. const problems = token.getTokenProblems( await this.signingKeys(), - options.validationOptions ?? this._validationOptions + options.validationOptions ?? this._validationOptions, ); if (problems.length) { throw new Error(problems.join(";")); @@ -195,9 +195,9 @@ export class AttestationAdministrationClient { // as the AttestationResponse to the caller. return createAttestationResponse( token, - bytesToString(storedPolicy.attestationPolicy) + bytesToString(storedPolicy.attestationPolicy), ); - } + }, ); } @@ -223,7 +223,7 @@ export class AttestationAdministrationClient { public async setPolicy( attestationType: AttestationType, newPolicyDocument: string, - options: AttestationAdministrationClientPolicyOperationOptions = {} + options: AttestationAdministrationClientPolicyOperationOptions = {}, ): Promise> { return tracingClient.withSpan( "AttestationAdministrationClient-setPolicy", @@ -234,7 +234,7 @@ export class AttestationAdministrationClient { (options.privateKey && !options.certificate) ) { throw new Error( - "If privateKey is specified, certificate must also be provided. If certificate is provided, privateKey must also be provided." + "If privateKey is specified, certificate must also be provided. If certificate is provided, privateKey must also be provided.", ); } @@ -251,7 +251,7 @@ export class AttestationAdministrationClient { const setPolicyResult = await this._client.policy.set( attestationType, setPolicyToken.serialize(), - updatedOptions + updatedOptions, ); // The attestation token returned from the service has a PolicyResult @@ -259,7 +259,7 @@ export class AttestationAdministrationClient { const token = new AttestationTokenImpl(setPolicyResult.token); const problems = token.getTokenProblems( await this.signingKeys(), - options.validationOptions ?? this._validationOptions + options.validationOptions ?? this._validationOptions, ); if (problems.length) { throw new Error(problems.join(";")); @@ -273,7 +273,7 @@ export class AttestationAdministrationClient { // the actual policy object being retrieved. Serialize the token to an // AttestationToken object so we can access the body properties on the token. return createAttestationResponse(token, policyResult); - } + }, ); } @@ -299,7 +299,7 @@ export class AttestationAdministrationClient { public async resetPolicy( attestationType: AttestationType, - options: AttestationAdministrationClientPolicyOperationOptions = {} + options: AttestationAdministrationClientPolicyOperationOptions = {}, ): Promise> { return tracingClient.withSpan( "AttestationAdministrationClient-setPolicy", @@ -310,7 +310,7 @@ export class AttestationAdministrationClient { (options.privateKey && !options.certificate) ) { throw new Error( - "If privateKey is specified, certificate must also be provided. If certificate is provided, privateKey must also be provided." + "If privateKey is specified, certificate must also be provided. If certificate is provided, privateKey must also be provided.", ); } @@ -326,7 +326,7 @@ export class AttestationAdministrationClient { const resetPolicyResult = await this._client.policy.reset( attestationType, resetPolicyToken.serialize(), - updatedOptions + updatedOptions, ); // The attestation token returned from the service has a PolicyResult @@ -334,7 +334,7 @@ export class AttestationAdministrationClient { const token = new AttestationTokenImpl(resetPolicyResult.token); const problems = token.getTokenProblems( await this.signingKeys(), - options.validationOptions ?? this._validationOptions + options.validationOptions ?? this._validationOptions, ); if (problems.length) { throw new Error(problems.join(";")); @@ -348,7 +348,7 @@ export class AttestationAdministrationClient { // the actual policy object being retrieved. Serialize the token to an // AttestationToken object so we can access the body properties on the token. return createAttestationResponse(token, policyResult); - } + }, ); } @@ -361,7 +361,7 @@ export class AttestationAdministrationClient { * @returns AttestationResponse wrapping a list of Attestation Signers. */ public async getPolicyManagementCertificates( - options: AttestationAdministrationClientPolicyCertificateOperationOptions = {} + options: AttestationAdministrationClientPolicyCertificateOperationOptions = {}, ): Promise> { return tracingClient.withSpan( "AttestationAdministrationClient-getPolicyManagementCertificates", @@ -373,7 +373,7 @@ export class AttestationAdministrationClient { const token = new AttestationTokenImpl(getCertificatesResult.token); const problems = token.getTokenProblems( await this.signingKeys(), - options.validationOptions ?? this._validationOptions + options.validationOptions ?? this._validationOptions, ); if (problems.length) { throw new Error(problems.join(";")); @@ -388,7 +388,7 @@ export class AttestationAdministrationClient { JsonWebKeySet: Mappers.JsonWebKeySet, JsonWebKey: Mappers.JsonWebKey, }, - "PolicyCertificatesResult" + "PolicyCertificatesResult", ) as PolicyCertificatesResult; const policyCertificates = new Array(); @@ -397,7 +397,7 @@ export class AttestationAdministrationClient { }); return createAttestationResponse(token, policyCertificates); - } + }, ); } @@ -423,7 +423,7 @@ export class AttestationAdministrationClient { pemCertificate: string, privateKey: string, certificate: string, - options: AttestationAdministrationClientPolicyCertificateOperationOptions = {} + options: AttestationAdministrationClientPolicyCertificateOperationOptions = {}, ): Promise> { return tracingClient.withSpan( "AttestationAdministrationClient-addPolicyManagementCertificate", @@ -431,7 +431,7 @@ export class AttestationAdministrationClient { async (updatedOptions) => { if ((!privateKey && certificate) || (privateKey && !certificate)) { throw new Error( - "If privateKey is specified, certificate must also be provided. If certificate is provided, privateKey must also be provided." + "If privateKey is specified, certificate must also be provided. If certificate is provided, privateKey must also be provided.", ); } @@ -459,7 +459,7 @@ export class AttestationAdministrationClient { AttestationCertificateManagementBody: Mappers.AttestationCertificateManagementBody, JsonWebKey: Mappers.JsonWebKey, }, - Mappers.AttestationCertificateManagementBody + Mappers.AttestationCertificateManagementBody, ), privateKey: privateKey, certificate: certificate, @@ -467,14 +467,14 @@ export class AttestationAdministrationClient { const addCertificateResult = await this._client.policyCertificates.add( addCertToken.serialize(), - updatedOptions + updatedOptions, ); // The attestation token returned from the service has a PolicyResult // object as the body. const token = new AttestationTokenImpl(addCertificateResult.token); const problems = token.getTokenProblems( await this.signingKeys(), - options.validationOptions ?? this._validationOptions + options.validationOptions ?? this._validationOptions, ); if (problems.length) { throw new Error(problems.join(";")); @@ -488,11 +488,11 @@ export class AttestationAdministrationClient { JsonWebKeySet: Mappers.JsonWebKeySet, JsonWebKey: Mappers.JsonWebKey, }, - "PolicyCertificatesModificationResult" + "PolicyCertificatesModificationResult", ) as PolicyCertificatesModificationResult; return createAttestationResponse(token, result); - } + }, ); } @@ -536,7 +536,7 @@ export class AttestationAdministrationClient { pemCertificate: string, privateKey: string, certificate: string, - options: AttestationAdministrationClientPolicyCertificateOperationOptions = {} + options: AttestationAdministrationClientPolicyCertificateOperationOptions = {}, ): Promise> { return tracingClient.withSpan( "AttestationAdministrationClient-removePolicyManagementCertificate", @@ -544,7 +544,7 @@ export class AttestationAdministrationClient { async (updatedOptions) => { if ((!privateKey && certificate) || (privateKey && !certificate)) { throw new Error( - "If privateKey is specified, certificate must also be provided. If certificate is provided, privateKey must also be provided." + "If privateKey is specified, certificate must also be provided. If certificate is provided, privateKey must also be provided.", ); } @@ -572,7 +572,7 @@ export class AttestationAdministrationClient { AttestationCertificateManagementBody: Mappers.AttestationCertificateManagementBody, JsonWebKey: Mappers.JsonWebKey, }, - Mappers.AttestationCertificateManagementBody + Mappers.AttestationCertificateManagementBody, ), privateKey: privateKey, certificate: certificate, @@ -580,14 +580,14 @@ export class AttestationAdministrationClient { const removeCertificateResult = await this._client.policyCertificates.remove( removeCertToken.serialize(), - updatedOptions + updatedOptions, ); // The attestation token returned from the service has a PolicyResult // object as the body. const token = new AttestationTokenImpl(removeCertificateResult.token); const problems = token.getTokenProblems( await this.signingKeys(), - options.validationOptions ?? this._validationOptions + options.validationOptions ?? this._validationOptions, ); if (problems.length) { throw new Error(problems.join(";")); @@ -601,11 +601,11 @@ export class AttestationAdministrationClient { JsonWebKeySet: Mappers.JsonWebKeySet, JsonWebKey: Mappers.JsonWebKey, }, - "PolicyCertificatesModificationResult" + "PolicyCertificatesModificationResult", ) as PolicyCertificatesModificationResult; return createAttestationResponse(token, result); - } + }, ); } diff --git a/sdk/attestation/attestation/src/attestationClient.ts b/sdk/attestation/attestation/src/attestationClient.ts index f23bc549b9c8..f56a0f3dda90 100644 --- a/sdk/attestation/attestation/src/attestationClient.ts +++ b/sdk/attestation/attestation/src/attestationClient.ts @@ -178,12 +178,12 @@ export class AttestationClient { public constructor( endpoint: string, credentials: TokenCredential, - options?: AttestationClientOptions + options?: AttestationClientOptions, ); public constructor( endpoint: string, credentialsOrOptions?: TokenCredential | AttestationClientOptions, - clientOptions: AttestationClientOptions = {} + clientOptions: AttestationClientOptions = {}, ) { let credentialScopes: string[] | undefined = undefined; let credential: TokenCredential | undefined = undefined; @@ -227,7 +227,7 @@ export class AttestationClient { */ public async attestOpenEnclave( report: Uint8Array | Buffer | Blob, - options: AttestOpenEnclaveOptions = {} + options: AttestOpenEnclaveOptions = {}, ): Promise> { return tracingClient.withSpan( "AttestationClient-attestOpenEnclave", @@ -268,13 +268,13 @@ export class AttestationClient { runtimeData: runTimeData, draftPolicyForAttestation: options.draftPolicyForAttestation ?? undefined, }, - updatedOptions + updatedOptions, ); const token = new AttestationTokenImpl(attestationResponse.token); const problems = token.getTokenProblems( await this._signingKeys(), - options.validationOptions ?? this._validationOptions + options.validationOptions ?? this._validationOptions, ); if (problems.length) { throw new Error(problems.join(";")); @@ -286,14 +286,14 @@ export class AttestationClient { GeneratedAttestationResult: Mappers.GeneratedAttestationResult, JsonWebKey: Mappers.JsonWebKey, }, - "GeneratedAttestationResult" + "GeneratedAttestationResult", ) as GeneratedAttestationResult; return createAttestationResponse( token, - _attestationResultFromGenerated(attestationResult) + _attestationResultFromGenerated(attestationResult), ); - } + }, ); } @@ -308,7 +308,7 @@ export class AttestationClient { */ public async attestSgxEnclave( quote: Uint8Array | Buffer | Blob, - options: AttestSgxEnclaveOptions = {} + options: AttestSgxEnclaveOptions = {}, ): Promise> { return tracingClient.withSpan( "AttestationClient-attestSgxEnclave", @@ -348,13 +348,13 @@ export class AttestationClient { runtimeData: runTimeData, draftPolicyForAttestation: options.draftPolicyForAttestation ?? undefined, }, - updatedOptions + updatedOptions, ); const token = new AttestationTokenImpl(attestationResponse.token); const problems = token.getTokenProblems( await this._signingKeys(), - options.validationOptions ?? this._validationOptions + options.validationOptions ?? this._validationOptions, ); if (problems.length) { throw new Error(problems.join(";")); @@ -366,14 +366,14 @@ export class AttestationClient { GeneratedAttestationResult: Mappers.GeneratedAttestationResult, JsonWebKey: Mappers.JsonWebKey, }, - "GeneratedAttestationResult" + "GeneratedAttestationResult", ) as GeneratedAttestationResult; return createAttestationResponse( token, - _attestationResultFromGenerated(attestationResult) + _attestationResultFromGenerated(attestationResult), ); - } + }, ); } @@ -410,14 +410,14 @@ export class AttestationClient { async (updatedOptions) => { const response = await this._client.attestation.attestTpm( { data: stringToBytes(request) }, - updatedOptions + updatedOptions, ); if (response.data) { return bytesToString(response.data); } else { throw Error("Internal error - response data cannot be undefined."); } - } + }, ); } @@ -429,7 +429,7 @@ export class AttestationClient { * @returns the set of AttestationSigners which may be used to sign attestation tokens. */ public async getAttestationSigners( - options: AttestationClientOperationOptions = {} + options: AttestationClientOperationOptions = {}, ): Promise { return tracingClient.withSpan( "AttestationClient-getAttestationSigners", @@ -441,7 +441,7 @@ export class AttestationClient { signers.push(_attestationSignerFromGenerated(element)); }); return signers; - } + }, ); } @@ -451,7 +451,7 @@ export class AttestationClient { * @returns The OpenID metadata discovery document for the attestation service. */ public async getOpenIdMetadata( - options: AttestationClientOperationOptions = {} + options: AttestationClientOperationOptions = {}, ): Promise> { return tracingClient.withSpan( "AttestationClient-getOpenIdMetadata", @@ -459,7 +459,7 @@ export class AttestationClient { async (updatedOptions) => { const configs = await this._client.metadataConfiguration.get(updatedOptions); return configs; - } + }, ); } diff --git a/sdk/attestation/attestation/src/models/attestationPolicyToken.ts b/sdk/attestation/attestation/src/models/attestationPolicyToken.ts index bf532b9fdcf1..fe80ce751d79 100644 --- a/sdk/attestation/attestation/src/models/attestationPolicyToken.ts +++ b/sdk/attestation/attestation/src/models/attestationPolicyToken.ts @@ -33,7 +33,7 @@ export interface AttestationPolicyToken extends AttestationToken {} export function createAttestationPolicyToken( policy: string, privateKey?: string, - certificate?: string + certificate?: string, ): AttestationPolicyToken { const token = AttestationTokenImpl.create({ body: new StoredAttestationPolicy(policy).serialize(), diff --git a/sdk/attestation/attestation/src/models/attestationResponse.ts b/sdk/attestation/attestation/src/models/attestationResponse.ts index 98c968663a66..cf749514c574 100644 --- a/sdk/attestation/attestation/src/models/attestationResponse.ts +++ b/sdk/attestation/attestation/src/models/attestationResponse.ts @@ -35,7 +35,7 @@ export interface AttestationResponse { */ export function createAttestationResponse( token: AttestationToken, - value: T + value: T, ): AttestationResponse { return { token: token, body: value }; } diff --git a/sdk/attestation/attestation/src/models/attestationResult.ts b/sdk/attestation/attestation/src/models/attestationResult.ts index da5fc7bc882c..4cadcd78c9b3 100644 --- a/sdk/attestation/attestation/src/models/attestationResult.ts +++ b/sdk/attestation/attestation/src/models/attestationResult.ts @@ -369,7 +369,7 @@ export class AttestationResultImpl implements AttestationResult { * @internal */ export function _attestationResultFromGenerated( - generated: GeneratedAttestationResult + generated: GeneratedAttestationResult, ): AttestationResultImpl { return new AttestationResultImpl({ issuer: generated.iss, diff --git a/sdk/attestation/attestation/src/models/attestationToken.ts b/sdk/attestation/attestation/src/models/attestationToken.ts index 3c5ae09e448b..df348d6eb66c 100644 --- a/sdk/attestation/attestation/src/models/attestationToken.ts +++ b/sdk/attestation/attestation/src/models/attestationToken.ts @@ -74,7 +74,7 @@ export interface AttestationTokenValidationOptions { */ validateAttestationToken?: ( token: AttestationToken, - signer?: AttestationSigner + signer?: AttestationSigner, ) => string[] | undefined; } @@ -112,7 +112,7 @@ export interface AttestationToken { */ getTokenProblems( possibleSigners?: AttestationSigner[], - options?: AttestationTokenValidationOptions + options?: AttestationTokenValidationOptions, ): string[]; /** ********* JSON WEB SIGNATURE (RFC 7515) PROPERTIES */ @@ -295,7 +295,7 @@ export class AttestationTokenImpl implements AttestationToken { validateExpirationTime: true, validateToken: true, validateNotBeforeTime: true, - } + }, ): string[] { let problems = new Array(); if (!options.validateToken) { @@ -344,7 +344,7 @@ export class AttestationTokenImpl implements AttestationToken { if (this.issuer && options.validateIssuer) { if (this.issuer !== options.expectedIssuer) { problems.push( - "Found issuer: " + this.issuer + "; expected issuer: " + options.expectedIssuer + "Found issuer: " + this.issuer + "; expected issuer: " + options.expectedIssuer, ); } } @@ -391,7 +391,7 @@ export class AttestationTokenImpl implements AttestationToken { } private getCandidateSigners( - possibleSigningCertificates?: AttestationSigner[] + possibleSigningCertificates?: AttestationSigner[], ): AttestationSigner[] { const candidateSigners = new Array(); @@ -520,13 +520,13 @@ export class AttestationTokenImpl implements AttestationToken { jwk = TypeDeserializer.deserialize( this._header.jwk, [Mappers.JsonWebKey], - "JsonWebKey" + "JsonWebKey", ) as JsonWebKey; } else { jwk = TypeDeserializer.deserialize( this._header, { JsonWebKey: Mappers.JsonWebKey }, - "JsonWebKey" + "JsonWebKey", ) as JsonWebKey; } return _attestationSignerFromGenerated(jwk); @@ -588,7 +588,7 @@ export class AttestationTokenImpl implements AttestationToken { if ((!params.privateKey && params.certificate) || (params.privateKey && !params.certificate)) { throw new Error( - "If privateKey is specified, certificate must also be provided. If certificate is provided, privateKey must also be provided." + "If privateKey is specified, certificate must also be provided. If certificate is provided, privateKey must also be provided.", ); } @@ -616,7 +616,7 @@ export class AttestationTokenImpl implements AttestationToken { header.alg, header, params.body ?? "", - params.privateKey + params.privateKey, ); return new AttestationTokenImpl(encodedToken); } diff --git a/sdk/attestation/attestation/src/models/policyResult.ts b/sdk/attestation/attestation/src/models/policyResult.ts index 4aa87a8d1a46..33bbb890c0b7 100644 --- a/sdk/attestation/attestation/src/models/policyResult.ts +++ b/sdk/attestation/attestation/src/models/policyResult.ts @@ -47,7 +47,7 @@ export function _policyResultFromGenerated(rawJson: unknown): PolicyResult { const policyResult: GeneratedPolicyResult = TypeDeserializer.deserialize( rawJson, { PolicyResult: Mappers.PolicyResult, JsonWebKey: Mappers.JsonWebKey }, - "PolicyResult" + "PolicyResult", ) as GeneratedPolicyResult; return { policyResolution: policyResult.policyResolution, diff --git a/sdk/attestation/attestation/src/models/storedAttestationPolicy.ts b/sdk/attestation/attestation/src/models/storedAttestationPolicy.ts index 5ae07d37f619..3ead71d28d6b 100644 --- a/sdk/attestation/attestation/src/models/storedAttestationPolicy.ts +++ b/sdk/attestation/attestation/src/models/storedAttestationPolicy.ts @@ -29,7 +29,7 @@ export class StoredAttestationPolicy { return TypeDeserializer.serialize( this, { StoredAttestationPolicy: Mappers.StoredAttestationPolicy }, - Mappers.StoredAttestationPolicy + Mappers.StoredAttestationPolicy, ); } @@ -43,7 +43,7 @@ export class StoredAttestationPolicy { return TypeDeserializer.deserialize( value, { StoredAttestationPolicy: Mappers.StoredAttestationPolicy }, - "StoredAttestationPolicy" + "StoredAttestationPolicy", ) as StoredAttestationPolicy; } diff --git a/sdk/attestation/attestation/src/utils/buffer.browser.ts b/sdk/attestation/attestation/src/utils/buffer.browser.ts index 1d582300de9f..5496d2cc6ed3 100644 --- a/sdk/attestation/attestation/src/utils/buffer.browser.ts +++ b/sdk/attestation/attestation/src/utils/buffer.browser.ts @@ -20,7 +20,7 @@ async function blobToArrayBuffer(blob: Blob): Promise { * @returns Promise which completes with the input data as a Uint8Array. */ export async function Uint8ArrayFromInput( - input: Uint8Array | Buffer | Blob | undefined + input: Uint8Array | Buffer | Blob | undefined, ): Promise { if (input === undefined) { return input; diff --git a/sdk/attestation/attestation/src/utils/buffer.ts b/sdk/attestation/attestation/src/utils/buffer.ts index ce4de530be3d..cb630103a88f 100644 --- a/sdk/attestation/attestation/src/utils/buffer.ts +++ b/sdk/attestation/attestation/src/utils/buffer.ts @@ -8,7 +8,7 @@ * @returns Promise which completes with the input data as a Uint8Array. */ export async function Uint8ArrayFromInput( - input: Uint8Array | Buffer | Blob | undefined + input: Uint8Array | Buffer | Blob | undefined, ): Promise { if (input === undefined) { return input; diff --git a/sdk/attestation/attestation/src/utils/helpers.ts b/sdk/attestation/attestation/src/utils/helpers.ts index 9a61666c9a6e..a50c73856ee2 100644 --- a/sdk/attestation/attestation/src/utils/helpers.ts +++ b/sdk/attestation/attestation/src/utils/helpers.ts @@ -13,7 +13,7 @@ import { base64EncodeByteArray, hexToByteArray } from "./base64"; */ export function verifyAttestationSigningKey( privateKey: string, - certificate: string + certificate: string, ): { certificate: string; privateKey: string } { // // Ensure that the key and certificate are associated with each other. diff --git a/sdk/attestation/attestation/src/utils/typeDeserializer.ts b/sdk/attestation/attestation/src/utils/typeDeserializer.ts index 1f18daa75909..66f4a32eec94 100644 --- a/sdk/attestation/attestation/src/utils/typeDeserializer.ts +++ b/sdk/attestation/attestation/src/utils/typeDeserializer.ts @@ -23,7 +23,7 @@ export class TypeDeserializer { public static deserialize( rawJson: unknown, typeMappers: { [key: string]: any }, - bodyTypeName: string + bodyTypeName: string, ): unknown { const serializer = createSerializer(typeMappers); return serializer.deserialize(typeMappers[bodyTypeName], rawJson, bodyTypeName); @@ -40,7 +40,7 @@ export class TypeDeserializer { public static serialize( objectToSerialize: unknown, typeMappers: { [key: string]: Mapper }, - bodyMapper: Mapper + bodyMapper: Mapper, ): string { const serializer = createSerializer(typeMappers); return JSON.stringify(serializer.serialize(bodyMapper, objectToSerialize)); diff --git a/sdk/attestation/attestation/test/browser/attestationTests.browser.spec.ts b/sdk/attestation/attestation/test/browser/attestationTests.browser.spec.ts index 93fa62af0380..85bf18ae47ff 100644 --- a/sdk/attestation/attestation/test/browser/attestationTests.browser.spec.ts +++ b/sdk/attestation/attestation/test/browser/attestationTests.browser.spec.ts @@ -174,7 +174,7 @@ describe("AttestationClient in Browser", function () { // Set the policy on the instance to a known value. await adminClient.setPolicy( KnownAttestationType.Tpm, - "version=1.0; authorizationrules{=> permit();}; issuancerules{};" + "version=1.0; authorizationrules{=> permit();}; issuancerules{};", ); const encodedPayload = JSON.stringify({ payload: { type: "aikcert" } }); @@ -203,7 +203,7 @@ describe("AttestationClient in Browser", function () { client.attestOpenEnclave(new Blob([base64url.decodeString(_openEnclaveReport)]), { runTimeData: binaryRuntimeData, runTimeJson: binaryRuntimeData, - }) + }), ).to.eventually.be.rejectedWith("Cannot provide both runTimeData and runTimeJson"); } @@ -212,14 +212,14 @@ describe("AttestationClient in Browser", function () { new Blob([base64url.decodeString(_openEnclaveReport)]), { runTimeData: binaryRuntimeData, - } + }, ); assert.isNotNull(attestationResult.body.sgxCollateral); assert.isUndefined(attestationResult.body.runTimeClaims); expect(attestationResult.body.enclaveHeldData?.length).is.equal(binaryRuntimeData.size); expect(attestationResult.body.enclaveHeldData).to.deep.equal( - new Uint8Array(await binaryRuntimeData.arrayBuffer()) + new Uint8Array(await binaryRuntimeData.arrayBuffer()), ); assert(attestationResult.token, "Expected a token from the service but did not receive one"); @@ -230,7 +230,7 @@ describe("AttestationClient in Browser", function () { new Blob([base64url.decodeString(_openEnclaveReport)]), { runTimeJson: binaryRuntimeData, - } + }, ); assert.isNotNull(attestationResult.body.sgxCollateral); @@ -261,8 +261,8 @@ describe("AttestationClient in Browser", function () { { runTimeData: binaryRuntimeData, runTimeJson: binaryRuntimeData, - } - ) + }, + ), ).to.eventually.be.rejectedWith("Cannot provide both runTimeData and runTimeJson"); } @@ -274,14 +274,14 @@ describe("AttestationClient in Browser", function () { new Blob([base64url.decodeString(_openEnclaveReport).subarray(0x10)]), { runTimeData: binaryRuntimeData, - } + }, ); assert.isNotNull(attestationResult.body.sgxCollateral); assert.isUndefined(attestationResult.body.runTimeClaims); expect(attestationResult.body.enclaveHeldData?.length).is.equal(binaryRuntimeData.size); expect(attestationResult.body.enclaveHeldData).to.deep.equal( - new Uint8Array(await binaryRuntimeData.arrayBuffer()) + new Uint8Array(await binaryRuntimeData.arrayBuffer()), ); assert(attestationResult.token, "Expected a token from the service but did not receive one"); } @@ -294,7 +294,7 @@ describe("AttestationClient in Browser", function () { new Blob([base64url.decodeString(_openEnclaveReport).subarray(0x10)]), { runTimeJson: binaryRuntimeData, - } + }, ); assert.isNotNull(attestationResult.body.sgxCollateral); diff --git a/sdk/attestation/attestation/test/public/attestationTests.spec.ts b/sdk/attestation/attestation/test/public/attestationTests.spec.ts index 2809ae532179..5e07bb6d360c 100644 --- a/sdk/attestation/attestation/test/public/attestationTests.spec.ts +++ b/sdk/attestation/attestation/test/public/attestationTests.spec.ts @@ -174,7 +174,7 @@ describe("[AAD] Attestation Client", function () { // Set the policy on the instance to a known value. await adminClient.setPolicy( KnownAttestationType.Tpm, - "version=1.0; authorizationrules{=> permit();}; issuancerules{};" + "version=1.0; authorizationrules{=> permit();}; issuancerules{};", ); const encodedPayload = JSON.stringify({ payload: { type: "aikcert" } }); @@ -204,7 +204,7 @@ describe("[AAD] Attestation Client", function () { runTimeJson: binaryRuntimeData, }), "Cannot provide both runTimeData and runTimeJson.", - "Expected to throw since you can't specify both runtimeData and runtimeJson" + "Expected to throw since you can't specify both runtimeData and runtimeJson", ); { @@ -212,7 +212,7 @@ describe("[AAD] Attestation Client", function () { base64url.decodeString(_openEnclaveReport), { runTimeData: binaryRuntimeData, - } + }, ); assert.isNotNull(attestationResult.body.sgxCollateral); @@ -228,7 +228,7 @@ describe("[AAD] Attestation Client", function () { base64url.decodeString(_openEnclaveReport), { runTimeJson: binaryRuntimeData, - } + }, ); assert.isNotNull(attestationResult.body.sgxCollateral); @@ -257,7 +257,7 @@ describe("[AAD] Attestation Client", function () { runTimeJson: binaryRuntimeData, }), "Cannot provide both runTimeData and runTimeJson.", - "Expected to throw since you can't specify both runtimeData and runtimeJson" + "Expected to throw since you can't specify both runtimeData and runtimeJson", ); { @@ -268,7 +268,7 @@ describe("[AAD] Attestation Client", function () { base64url.decodeString(_openEnclaveReport).subarray(0x10), { runTimeData: binaryRuntimeData, - } + }, ); assert.isNotNull(attestationResult.body.sgxCollateral); @@ -286,7 +286,7 @@ describe("[AAD] Attestation Client", function () { base64url.decodeString(_openEnclaveReport).subarray(0x10), { runTimeJson: binaryRuntimeData, - } + }, ); assert.isNotNull(attestationResult.body.sgxCollateral); diff --git a/sdk/attestation/attestation/test/public/attestationTokenTests.spec.ts b/sdk/attestation/attestation/test/public/attestationTokenTests.spec.ts index 3bd16adf47fa..4f825ed898a4 100644 --- a/sdk/attestation/attestation/test/public/attestationTokenTests.spec.ts +++ b/sdk/attestation/attestation/test/public/attestationTokenTests.spec.ts @@ -180,7 +180,7 @@ describe("AttestationTokenTests", function () { console.log("In callback, token algorithm: " + tokenToCheck.algorithm); return undefined; }, - }) + }), ); assert.isTrue( @@ -192,7 +192,7 @@ describe("AttestationTokenTests", function () { return ["There was a validation failure"]; }, }) - .find((s) => s.search("validation")) !== undefined + .find((s) => s.search("validation")) !== undefined, ); }); @@ -217,7 +217,7 @@ describe("AttestationTokenTests", function () { validateToken: true, validateIssuer: true, expectedIssuer: "this is an issuer", - }) + }), ); assert.isTrue( @@ -227,7 +227,7 @@ describe("AttestationTokenTests", function () { validateIssuer: true, expectedIssuer: "this is a different issuer", }) - .find((s) => s.search("different issuer")) !== undefined + .find((s) => s.search("different issuer")) !== undefined, ); } }); @@ -252,7 +252,7 @@ describe("AttestationTokenTests", function () { validateToken: true, validateExpirationTime: true, validateNotBeforeTime: true, - }) + }), ); } @@ -275,7 +275,7 @@ describe("AttestationTokenTests", function () { validateExpirationTime: true, validateNotBeforeTime: true, }) - .find((s) => s.search("expired")) !== undefined + .find((s) => s.search("expired")) !== undefined, ); // Validate the token again, this time specifying a validation slack of @@ -287,7 +287,7 @@ describe("AttestationTokenTests", function () { validateExpirationTime: true, validateNotBeforeTime: true, timeValidationSlack: 10, - }) + }), ); } { @@ -308,7 +308,7 @@ describe("AttestationTokenTests", function () { validateExpirationTime: true, validateNotBeforeTime: true, }) - .find((s) => s.search("not yet")) !== undefined + .find((s) => s.search("not yet")) !== undefined, ); // Validate the token again, this time specifying a validation slack of @@ -320,7 +320,7 @@ describe("AttestationTokenTests", function () { validateExpirationTime: true, validateNotBeforeTime: true, timeValidationSlack: 10, - }) + }), ); } }); diff --git a/sdk/attestation/attestation/test/public/policyGetSetTests.spec.ts b/sdk/attestation/attestation/test/public/policyGetSetTests.spec.ts index aea753be255a..c2f65982d666 100644 --- a/sdk/attestation/attestation/test/public/policyGetSetTests.spec.ts +++ b/sdk/attestation/attestation/test/public/policyGetSetTests.spec.ts @@ -63,27 +63,27 @@ describe("PolicyGetSetTests ", function () { const rsaCertificate = createX509Certificate(rsaKey, rsapubKey, "CertificateName"); await expect( - adminClient.setPolicy(KnownAttestationType.SgxEnclave, minimalPolicy, { privateKey: rsaKey }) + adminClient.setPolicy(KnownAttestationType.SgxEnclave, minimalPolicy, { privateKey: rsaKey }), ).to.be.rejectedWith("privateKey is specified"); await expect( adminClient.setPolicy(KnownAttestationType.SgxEnclave, minimalPolicy, { certificate: rsaCertificate, - }) + }), ).to.be.rejectedWith("privateKey is specified"); await expect( adminClient.setPolicy(KnownAttestationType.SgxEnclave, minimalPolicy, { privateKey: rsaKey2, certificate: rsaCertificate, - }) + }), ).to.be.rejectedWith("Key does not match Certificate"); await expect( adminClient.setPolicy(KnownAttestationType.SgxEnclave, minimalPolicy, { privateKey: "BogusKey", certificate: rsaCertificate, - }) + }), ).to.be.rejectedWith("not supported argument"); await adminClient.setPolicy(KnownAttestationType.SgxEnclave, minimalPolicy); @@ -99,25 +99,25 @@ describe("PolicyGetSetTests ", function () { const rsaCertificate = createX509Certificate(rsaKey, rsapubKey, "CertificateName"); await expect( - adminClient.resetPolicy(KnownAttestationType.SgxEnclave, { privateKey: rsaKey }) + adminClient.resetPolicy(KnownAttestationType.SgxEnclave, { privateKey: rsaKey }), ).to.be.rejectedWith("privateKey is specified"); await expect( - adminClient.resetPolicy(KnownAttestationType.SgxEnclave, { certificate: rsaCertificate }) + adminClient.resetPolicy(KnownAttestationType.SgxEnclave, { certificate: rsaCertificate }), ).to.be.rejectedWith("privateKey is specified"); await expect( adminClient.resetPolicy(KnownAttestationType.SgxEnclave, { privateKey: "BogusKey", certificate: rsaCertificate, - }) + }), ).to.be.rejectedWith("not supported argument"); await expect( adminClient.resetPolicy(KnownAttestationType.SgxEnclave, { privateKey: rsaKey2, certificate: rsaCertificate, - }) + }), ).to.be.rejectedWith("Key does not match Certificate"); await adminClient.resetPolicy(KnownAttestationType.SgxEnclave); @@ -158,7 +158,7 @@ describe("PolicyGetSetTests ", function () { async function testGetPolicy( attestationType: AttestationType, - clientLocation: EndpointType + clientLocation: EndpointType, ): Promise { const adminClient = createRecordedAdminClient(recorder, clientLocation); const policyResult = await adminClient.getPolicy(attestationType); @@ -168,7 +168,7 @@ describe("PolicyGetSetTests ", function () { async function testSetPolicy( attestationType: AttestationType, clientLocation: EndpointType, - signer?: { privateKey: string; certificate: string } + signer?: { privateKey: string; certificate: string }, ): Promise { const adminClient = createRecordedAdminClient(recorder, clientLocation); @@ -184,7 +184,7 @@ describe("PolicyGetSetTests ", function () { const expectedPolicy = createAttestationPolicyToken( minimalPolicy, signer?.privateKey, - signer?.certificate + signer?.certificate, ); const expectedHash = generateSha256Hash(expectedPolicy.serialize()); @@ -221,7 +221,7 @@ describe("PolicyGetSetTests ", function () { async function testResetPolicy( attestationType: AttestationType, clientLocation: EndpointType, - signer?: { privateKey: string; certificate: string } + signer?: { privateKey: string; certificate: string }, ): Promise { const adminClient = createRecordedAdminClient(recorder, clientLocation); diff --git a/sdk/attestation/attestation/test/public/policyManagementGetSetTests.spec.ts b/sdk/attestation/attestation/test/public/policyManagementGetSetTests.spec.ts index 186fe40f56d7..5c552e3b8f47 100644 --- a/sdk/attestation/attestation/test/public/policyManagementGetSetTests.spec.ts +++ b/sdk/attestation/attestation/test/public/policyManagementGetSetTests.spec.ts @@ -70,11 +70,11 @@ describe("PolicyManagementTests ", function () { const rsaCertificate = createX509Certificate(rsaKey, rsapubKey, "CertificateName"); await expect( - adminClient.addPolicyManagementCertificate(rsaCertificate, "Foo", "Bar") + adminClient.addPolicyManagementCertificate(rsaCertificate, "Foo", "Bar"), ).to.be.rejectedWith("can't find PEM header"); await expect( - adminClient.addPolicyManagementCertificate(rsaCertificate, rsaKey2, rsaCertificate) + adminClient.addPolicyManagementCertificate(rsaCertificate, rsaKey2, rsaCertificate), ).to.be.rejectedWith("Key does not match Certificate"); }); @@ -86,11 +86,11 @@ describe("PolicyManagementTests ", function () { const rsaCertificate = createX509Certificate(rsaKey, rsapubKey, "CertificateName"); await expect( - adminClient.removePolicyManagementCertificate(rsaCertificate, "Foo", "Bar") + adminClient.removePolicyManagementCertificate(rsaCertificate, "Foo", "Bar"), ).to.be.rejectedWith("can't find PEM header"); await expect( - adminClient.removePolicyManagementCertificate(rsaCertificate, rsaKey2, rsaCertificate) + adminClient.removePolicyManagementCertificate(rsaCertificate, rsaKey2, rsaCertificate), ).to.be.rejectedWith("Key does not match Certificate"); }); @@ -115,7 +115,7 @@ describe("PolicyManagementTests ", function () { const setResult = await client.addPolicyManagementCertificate( rsaCertificate, signingKeys.privateKey, - signingKeys.certificate + signingKeys.certificate, ); assert(setResult.body.certificateResolution === KnownCertificateModification.IsPresent); assert(setResult.body.certificateThumbprint === expectedThumbprint); @@ -126,7 +126,7 @@ describe("PolicyManagementTests ", function () { const setResult = await client.addPolicyManagementCertificate( rsaCertificate, signingKeys.privateKey, - signingKeys.certificate + signingKeys.certificate, ); assert(setResult.body.certificateResolution === KnownCertificateModification.IsPresent); assert(setResult.body.certificateThumbprint === expectedThumbprint); @@ -136,7 +136,7 @@ describe("PolicyManagementTests ", function () { const removeResult = await client.removePolicyManagementCertificate( rsaCertificate, signingKeys.privateKey, - signingKeys.certificate + signingKeys.certificate, ); assert(removeResult.body.certificateResolution === KnownCertificateModification.IsAbsent); assert(removeResult.body.certificateThumbprint === expectedThumbprint); @@ -146,7 +146,7 @@ describe("PolicyManagementTests ", function () { const removeResult = await client.removePolicyManagementCertificate( rsaCertificate, signingKeys.privateKey, - signingKeys.certificate + signingKeys.certificate, ); assert(removeResult.body.certificateResolution === KnownCertificateModification.IsAbsent); assert(removeResult.body.certificateThumbprint === expectedThumbprint); diff --git a/sdk/attestation/attestation/test/public/tokenCertTests.spec.ts b/sdk/attestation/attestation/test/public/tokenCertTests.spec.ts index ef73020277f4..208daae86b6a 100644 --- a/sdk/attestation/attestation/test/public/tokenCertTests.spec.ts +++ b/sdk/attestation/attestation/test/public/tokenCertTests.spec.ts @@ -73,7 +73,7 @@ describe("TokenCertTests", function () { async function getMetadataConfigTest( client: AttestationClient, - instanceUrl: string + instanceUrl: string, ): Promise { const openIdMetadata = await client.getOpenIdMetadata(); assert.isDefined(openIdMetadata["response_types_supported"]); diff --git a/sdk/attestation/attestation/test/utils/cryptoUtils.ts b/sdk/attestation/attestation/test/utils/cryptoUtils.ts index b1a2cacaf44c..13a634027443 100644 --- a/sdk/attestation/attestation/test/utils/cryptoUtils.ts +++ b/sdk/attestation/attestation/test/utils/cryptoUtils.ts @@ -52,7 +52,7 @@ function formatDateString(dateObject: Date): string { export function createX509Certificate( privKeyPEM: string, pubKeyPEM: string, - subject_name: string + subject_name: string, ): string { const pubKey = jsrsasign.KEYUTIL.getKey(pubKeyPEM); const privKey = jsrsasign.KEYUTIL.getKey(privKeyPEM); diff --git a/sdk/attestation/attestation/test/utils/recordedClient.ts b/sdk/attestation/attestation/test/utils/recordedClient.ts index 8030624f253d..38c109bdf99a 100644 --- a/sdk/attestation/attestation/test/utils/recordedClient.ts +++ b/sdk/attestation/attestation/test/utils/recordedClient.ts @@ -76,7 +76,7 @@ export function createRecordedClient( recorder: Recorder, endpointType: EndpointType, authenticatedClient?: boolean, - options?: AttestationClientOptions + options?: AttestationClientOptions, ): AttestationClient { // If we're talking to a live server, we should validate the time results, // otherwise we want to skip them. @@ -96,13 +96,13 @@ export function createRecordedClient( const attClient = new AttestationClient( getAttestationUri(endpointType), createTestCredential(), - recorder.configureClientOptions(options) + recorder.configureClientOptions(options), ); return attClient; } const attClient = new AttestationClient( getAttestationUri(endpointType), - recorder.configureClientOptions(options) + recorder.configureClientOptions(options), ); return attClient; } @@ -110,7 +110,7 @@ export function createRecordedClient( export function createRecordedAdminClient( recorder: Recorder, endpointType: EndpointType, - options?: AttestationClientOptions + options?: AttestationClientOptions, ): AttestationAdministrationClient { // If we're talking to a live server, we should validate the time results, // otherwise we want to skip them. @@ -129,7 +129,7 @@ export function createRecordedAdminClient( const adminClient = new AttestationAdministrationClient( getAttestationUri(endpointType), createTestCredential(), - recorder.configureClientOptions(options) + recorder.configureClientOptions(options), ); return adminClient; } diff --git a/sdk/cognitivelanguage/ai-language-conversations/package.json b/sdk/cognitivelanguage/ai-language-conversations/package.json index ed8285fa118b..a30bb19fb304 100644 --- a/sdk/cognitivelanguage/ai-language-conversations/package.json +++ b/sdk/cognitivelanguage/ai-language-conversations/package.json @@ -59,7 +59,6 @@ "karma-source-map-support": "~1.4.0", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "sinon": "^17.0.0", "source-map-support": "^0.5.9", "ts-node": "^10.0.0", @@ -99,11 +98,11 @@ "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", diff --git a/sdk/cognitivelanguage/ai-language-conversations/samples-dev/analyzeConversationApp.ts b/sdk/cognitivelanguage/ai-language-conversations/samples-dev/analyzeConversationApp.ts index d08784196e90..81084e2e0d80 100644 --- a/sdk/cognitivelanguage/ai-language-conversations/samples-dev/analyzeConversationApp.ts +++ b/sdk/cognitivelanguage/ai-language-conversations/samples-dev/analyzeConversationApp.ts @@ -25,7 +25,7 @@ const deploymentName = process.env.AZURE_CONVERSATIONS_DEPLOYMENT_NAME || ""; const service: ConversationAnalysisClient = new ConversationAnalysisClient( cluEndpoint, - new AzureKeyCredential(cluKey) + new AzureKeyCredential(cluKey), ); export async function main() { diff --git a/sdk/cognitivelanguage/ai-language-conversations/samples-dev/convSummarization.ts b/sdk/cognitivelanguage/ai-language-conversations/samples-dev/convSummarization.ts index 30aad867f6f9..acda38f46b02 100644 --- a/sdk/cognitivelanguage/ai-language-conversations/samples-dev/convSummarization.ts +++ b/sdk/cognitivelanguage/ai-language-conversations/samples-dev/convSummarization.ts @@ -21,7 +21,7 @@ const cluKey = process.env.AZURE_CONVERSATIONS_KEY || ""; const service: ConversationAnalysisClient = new ConversationAnalysisClient( cluEndpoint, - new AzureKeyCredential(cluKey) + new AzureKeyCredential(cluKey), ); export async function main() { diff --git a/sdk/cognitivelanguage/ai-language-conversations/src/azureKeyCredentialPolicy.ts b/sdk/cognitivelanguage/ai-language-conversations/src/azureKeyCredentialPolicy.ts index 562a31b56bc1..c359c4423f04 100644 --- a/sdk/cognitivelanguage/ai-language-conversations/src/azureKeyCredentialPolicy.ts +++ b/sdk/cognitivelanguage/ai-language-conversations/src/azureKeyCredentialPolicy.ts @@ -23,7 +23,7 @@ const conversationAnalysisAzureKeyCredentialPolicyName = * @internal */ export function conversationAnalysisAzureKeyCredentialPolicy( - credential: KeyCredential + credential: KeyCredential, ): PipelinePolicy { return { name: conversationAnalysisAzureKeyCredentialPolicyName, diff --git a/sdk/cognitivelanguage/ai-language-conversations/src/conversationAnalysisClient.ts b/sdk/cognitivelanguage/ai-language-conversations/src/conversationAnalysisClient.ts index b911d0091231..09db906c7740 100644 --- a/sdk/cognitivelanguage/ai-language-conversations/src/conversationAnalysisClient.ts +++ b/sdk/cognitivelanguage/ai-language-conversations/src/conversationAnalysisClient.ts @@ -74,7 +74,7 @@ export class ConversationAnalysisClient { constructor( endpoint: string, credential: TokenCredential | KeyCredential, - options: ConversationAnalysisClientOptionalParams = {} + options: ConversationAnalysisClientOptionalParams = {}, ) { this._client = new GeneratedClient(endpoint, options); @@ -98,7 +98,7 @@ export class ConversationAnalysisClient { */ analyzeConversation( task: AnalyzeConversationTaskUnion, - options?: AnalyzeConversationOptionalParams + options?: AnalyzeConversationOptionalParams, ): Promise { return this._tracing.withSpan( "ConversationAnalysisClient.analyzeConversation", @@ -106,8 +106,8 @@ export class ConversationAnalysisClient { (updatedOptions) => this._client.analyzeConversation( task, - updatedOptions - ) as Promise + updatedOptions, + ) as Promise, ); } @@ -118,7 +118,7 @@ export class ConversationAnalysisClient { */ async beginConversationAnalysis( task: AnalyzeConversationJobsInput, - options?: ConversationAnalysisOptionalParams + options?: ConversationAnalysisOptionalParams, ): Promise< PollerLike, ConversationAnalysisResponse> > { @@ -128,7 +128,7 @@ export class ConversationAnalysisClient { (updatedOptions) => this._client.beginConversationAnalysis(task, updatedOptions) as Promise< PollerLike, ConversationAnalysisResponse> - > + >, ); } } diff --git a/sdk/cognitivelanguage/ai-language-conversations/test/public/utils/recordedClient.ts b/sdk/cognitivelanguage/ai-language-conversations/test/public/utils/recordedClient.ts index d9f806d23de2..610d776e2299 100644 --- a/sdk/cognitivelanguage/ai-language-conversations/test/public/utils/recordedClient.ts +++ b/sdk/cognitivelanguage/ai-language-conversations/test/public/utils/recordedClient.ts @@ -42,7 +42,7 @@ export function createClient(options: { return new ConversationAnalysisClient( endpoint, new AzureKeyCredential(assertEnvironmentVariable("LANGUAGE_API_KEY")), - updatedOptions + updatedOptions, ); } case "AAD": { @@ -52,7 +52,7 @@ export function createClient(options: { return new ConversationAnalysisClient( endpoint, new AzureKeyCredential("whatever"), - updatedOptions + updatedOptions, ); } default: { diff --git a/sdk/cognitivelanguage/ai-language-text/package.json b/sdk/cognitivelanguage/ai-language-text/package.json index b791cda55516..57cc47155930 100644 --- a/sdk/cognitivelanguage/ai-language-text/package.json +++ b/sdk/cognitivelanguage/ai-language-text/package.json @@ -66,11 +66,11 @@ "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"", @@ -131,7 +131,6 @@ "karma-source-map-support": "~1.4.0", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "source-map-support": "^0.5.9", diff --git a/sdk/cognitivelanguage/ai-language-text/samples-dev/abstractiveSummarization.ts b/sdk/cognitivelanguage/ai-language-text/samples-dev/abstractiveSummarization.ts index 273d7cf7f259..11af914599bd 100644 --- a/sdk/cognitivelanguage/ai-language-text/samples-dev/abstractiveSummarization.ts +++ b/sdk/cognitivelanguage/ai-language-text/samples-dev/abstractiveSummarization.ts @@ -51,7 +51,7 @@ export async function main() { poller.onProgress(() => { console.log( - `Last time the operation was updated was on: ${poller.getOperationState().modifiedOn}` + `Last time the operation was updated was on: ${poller.getOperationState().modifiedOn}`, ); }); console.log(`The operation was created on ${poller.getOperationState().createdOn}`); diff --git a/sdk/cognitivelanguage/ai-language-text/samples-dev/batching.ts b/sdk/cognitivelanguage/ai-language-text/samples-dev/batching.ts index 5e27b5b42f06..bcbe0a14687f 100644 --- a/sdk/cognitivelanguage/ai-language-text/samples-dev/batching.ts +++ b/sdk/cognitivelanguage/ai-language-text/samples-dev/batching.ts @@ -55,7 +55,7 @@ export async function main() { poller.onProgress(() => { console.log( - `Number of actions still in progress: ${poller.getOperationState().actionInProgressCount}` + `Number of actions still in progress: ${poller.getOperationState().actionInProgressCount}`, ); }); diff --git a/sdk/cognitivelanguage/ai-language-text/samples-dev/customMultiLabelClassification.ts b/sdk/cognitivelanguage/ai-language-text/samples-dev/customMultiLabelClassification.ts index 8b2b7b0dfe04..abce5922eeb7 100644 --- a/sdk/cognitivelanguage/ai-language-text/samples-dev/customMultiLabelClassification.ts +++ b/sdk/cognitivelanguage/ai-language-text/samples-dev/customMultiLabelClassification.ts @@ -46,7 +46,7 @@ export async function main() { for await (const actionResult of results) { if (actionResult.kind !== "CustomMultiLabelClassification") { throw new Error( - `Expected a CustomMultiLabelClassification results but got: ${actionResult.kind}` + `Expected a CustomMultiLabelClassification results but got: ${actionResult.kind}`, ); } if (actionResult.error) { diff --git a/sdk/cognitivelanguage/ai-language-text/samples-dev/customSingleLabelClassification.ts b/sdk/cognitivelanguage/ai-language-text/samples-dev/customSingleLabelClassification.ts index 3f3a5bcdde5a..1659edb60a2d 100644 --- a/sdk/cognitivelanguage/ai-language-text/samples-dev/customSingleLabelClassification.ts +++ b/sdk/cognitivelanguage/ai-language-text/samples-dev/customSingleLabelClassification.ts @@ -46,7 +46,7 @@ export async function main() { for await (const actionResult of results) { if (actionResult.kind !== "CustomSingleLabelClassification") { throw new Error( - `Expected a CustomSingleLabelClassification results but got: ${actionResult.kind}` + `Expected a CustomSingleLabelClassification results but got: ${actionResult.kind}`, ); } if (actionResult.error) { diff --git a/sdk/cognitivelanguage/ai-language-text/samples-dev/entityLinking.ts b/sdk/cognitivelanguage/ai-language-text/samples-dev/entityLinking.ts index e7ce46645560..4cfe818b945d 100644 --- a/sdk/cognitivelanguage/ai-language-text/samples-dev/entityLinking.ts +++ b/sdk/cognitivelanguage/ai-language-text/samples-dev/entityLinking.ts @@ -39,12 +39,12 @@ export async function main() { console.log("\tEntities:"); for (const entity of result.entities) { console.log( - `\t- Entity ${entity.name}; link ${entity.url}; datasource: ${entity.dataSource}` + `\t- Entity ${entity.name}; link ${entity.url}; datasource: ${entity.dataSource}`, ); console.log("\t\tMatches:"); for (const match of entity.matches) { console.log( - `\t\t- Entity appears as "${match.text}" (confidence: ${match.confidenceScore}` + `\t\t- Entity appears as "${match.text}" (confidence: ${match.confidenceScore}`, ); } } diff --git a/sdk/cognitivelanguage/ai-language-text/samples-dev/extractiveSummarization.ts b/sdk/cognitivelanguage/ai-language-text/samples-dev/extractiveSummarization.ts index 3eb3032e2bb4..ae7dc279633a 100644 --- a/sdk/cognitivelanguage/ai-language-text/samples-dev/extractiveSummarization.ts +++ b/sdk/cognitivelanguage/ai-language-text/samples-dev/extractiveSummarization.ts @@ -51,7 +51,7 @@ export async function main() { poller.onProgress(() => { console.log( - `Last time the operation was updated was on: ${poller.getOperationState().modifiedOn}` + `Last time the operation was updated was on: ${poller.getOperationState().modifiedOn}`, ); }); console.log(`The operation was created on ${poller.getOperationState().createdOn}`); diff --git a/sdk/cognitivelanguage/ai-language-text/samples-dev/healthcare.ts b/sdk/cognitivelanguage/ai-language-text/samples-dev/healthcare.ts index 9bae96089100..cc5556abf99e 100644 --- a/sdk/cognitivelanguage/ai-language-text/samples-dev/healthcare.ts +++ b/sdk/cognitivelanguage/ai-language-text/samples-dev/healthcare.ts @@ -43,7 +43,7 @@ export async function main() { poller.onProgress(() => { console.log( - `Last time the operation was updated was on: ${poller.getOperationState().modifiedOn}` + `Last time the operation was updated was on: ${poller.getOperationState().modifiedOn}`, ); }); console.log(`The operation was created on ${poller.getOperationState().createdOn}`); @@ -79,7 +79,7 @@ export async function main() { console.log(`\tRecognized relations between entities:`); for (const relation of result.entityRelations) { console.log( - `\t\t- Relation of type ${relation.relationType} found between the following entities:` + `\t\t- Relation of type ${relation.relationType} found between the following entities:`, ); for (const role of relation.roles) { console.log(`\t\t\t- "${role.entity.text}" with the role ${role.name}`); diff --git a/sdk/cognitivelanguage/ai-language-text/samples-dev/languageDetection.ts b/sdk/cognitivelanguage/ai-language-text/samples-dev/languageDetection.ts index 02336b9d4da7..5527711dbec5 100644 --- a/sdk/cognitivelanguage/ai-language-text/samples-dev/languageDetection.ts +++ b/sdk/cognitivelanguage/ai-language-text/samples-dev/languageDetection.ts @@ -41,7 +41,7 @@ export async function main() { for (const doc of result) { if (!doc.error) { console.log( - `Primary language: ${doc.primaryLanguage.name} (iso6391 name: ${doc.primaryLanguage.iso6391Name})` + `Primary language: ${doc.primaryLanguage.name} (iso6391 name: ${doc.primaryLanguage.iso6391Name})`, ); } } diff --git a/sdk/cognitivelanguage/ai-language-text/samples-dev/modelVersion.ts b/sdk/cognitivelanguage/ai-language-text/samples-dev/modelVersion.ts index 718378b1ea0a..26d03e282cc2 100644 --- a/sdk/cognitivelanguage/ai-language-text/samples-dev/modelVersion.ts +++ b/sdk/cognitivelanguage/ai-language-text/samples-dev/modelVersion.ts @@ -41,7 +41,7 @@ export async function main() { onResponse: (_rawResponse, flatResponse) => { const modelVersion = (flatResponse as any).results.modelVersion; console.log( - `The result of the sentiment analysis was computed using model version: ${modelVersion}` + `The result of the sentiment analysis was computed using model version: ${modelVersion}`, ); }, }); @@ -61,7 +61,7 @@ export async function main() { }, ], documents, - "en" + "en", ); const results = await poller.pollUntilDone(); for await (const actionResult of results) { @@ -73,7 +73,7 @@ export async function main() { throw new Error(`Unexpected error (${code}): ${message}`); } console.log( - `The result of the healthcare analysis was computed using model version: ${actionResult.modelVersion} ` + `The result of the healthcare analysis was computed using model version: ${actionResult.modelVersion} `, ); } } diff --git a/sdk/cognitivelanguage/ai-language-text/samples-dev/paging.ts b/sdk/cognitivelanguage/ai-language-text/samples-dev/paging.ts index 7ff48dd4dc24..39a033e7d086 100644 --- a/sdk/cognitivelanguage/ai-language-text/samples-dev/paging.ts +++ b/sdk/cognitivelanguage/ai-language-text/samples-dev/paging.ts @@ -54,19 +54,19 @@ export async function main() { nextContinuationToken = nextLink; } }, - } + }, ); poller.onProgress(() => { console.log( - `Number of actions still in progress: ${poller.getOperationState().actionInProgressCount}` + `Number of actions still in progress: ${poller.getOperationState().actionInProgressCount}`, ); }); console.log(`The analyze actions operation created on ${poller.getOperationState().createdOn}`); console.log( - `The analyze actions operation results will expire on ${poller.getOperationState().expiresOn}` + `The analyze actions operation results will expire on ${poller.getOperationState().expiresOn}`, ); const actionResults = await poller.pollUntilDone(); diff --git a/sdk/cognitivelanguage/ai-language-text/samples-dev/rehydratePolling.ts b/sdk/cognitivelanguage/ai-language-text/samples-dev/rehydratePolling.ts index 15a025cd1532..adfdf624da4a 100644 --- a/sdk/cognitivelanguage/ai-language-text/samples-dev/rehydratePolling.ts +++ b/sdk/cognitivelanguage/ai-language-text/samples-dev/rehydratePolling.ts @@ -46,12 +46,12 @@ export async function main() { }, ], documents, - "en" + "en", ); poller.onProgress(() => { console.log( - `Number of actions still in progress: ${poller.getOperationState().actionInProgressCount}` + `Number of actions still in progress: ${poller.getOperationState().actionInProgressCount}`, ); }); diff --git a/sdk/cognitivelanguage/ai-language-text/samples-dev/stats.ts b/sdk/cognitivelanguage/ai-language-text/samples-dev/stats.ts index 684f6d79ba78..2bae566e5338 100644 --- a/sdk/cognitivelanguage/ai-language-text/samples-dev/stats.ts +++ b/sdk/cognitivelanguage/ai-language-text/samples-dev/stats.ts @@ -77,7 +77,7 @@ export async function main() { "en", { includeStatistics: true, - } + }, ); const actions = await poller.pollUntilDone(); console.log("Statistics for beginAnalyzeActions:"); diff --git a/sdk/cognitivelanguage/ai-language-text/src/lro.ts b/sdk/cognitivelanguage/ai-language-text/src/lro.ts index 9de7556dca80..ff8b660addec 100644 --- a/sdk/cognitivelanguage/ai-language-text/src/lro.ts +++ b/sdk/cognitivelanguage/ai-language-text/src/lro.ts @@ -49,7 +49,7 @@ const jobStatusOperationSpec: OperationSpec = { function addOnResponse( options: TOptions, - cb: (rawResponse: FullOperationResponse, response: unknown, error: unknown) => void + cb: (rawResponse: FullOperationResponse, response: unknown, error: unknown) => void, ): TOptions { return { ...options, @@ -69,13 +69,13 @@ function logWarnHeader(rawResponse: FullOperationResponse) { async function getRawResponse( getResponse: (options: TOptions) => Promise, - options: TOptions + options: TOptions, ): Promise> { let rawResponse: FullOperationResponse; const flatResponse = await getResponse( addOnResponse(options, (response) => { rawResponse = response; - }) + }), ); return { flatResponse, @@ -107,11 +107,11 @@ async function sendRequest(settings: { ...spec, path, httpMethod, - } + }, ), - finalOptions - ) - ) + finalOptions, + ), + ), ); } @@ -139,7 +139,7 @@ function createSendPollRequest(settings: { spanStr, spec: jobStatusOperationSpec, tracing, - }) + }), ); }; } @@ -178,7 +178,7 @@ export function createAnalyzeBatchLro(settings: { ...commonOptions, ...initialRequestOptions, }, - logWarnHeader + logWarnHeader, ), async (finalOptions) => throwError( @@ -192,11 +192,11 @@ export function createAnalyzeBatchLro(settings: { }, displayName: initialRequestOptions.displayName, }, - paramOptions + paramOptions, ), - finalOptions - ) - ) + finalOptions, + ), + ), ); }, sendPollRequest: createSendPollRequest({ @@ -217,7 +217,7 @@ export function getDocIDsFromState(serializedState: string): string[] { return docIds; } catch (e) { logger.error( - `Document IDs are not found in the LRO's state. The results may not be ordered correctly.` + `Document IDs are not found in the LRO's state. The results may not be ordered correctly.`, ); return []; } @@ -329,9 +329,9 @@ export function createPollerWithCancellation(settings: { throwError( getRawResponse( (paramOptions) => client.analyzeText.cancelJob(id, paramOptions), - finalOptions - ) - ) + finalOptions, + ), + ), ); }, }; diff --git a/sdk/cognitivelanguage/ai-language-text/src/textAnalysisClient.ts b/sdk/cognitivelanguage/ai-language-text/src/textAnalysisClient.ts index 4a8d6d5f171e..39d183e7bd85 100644 --- a/sdk/cognitivelanguage/ai-language-text/src/textAnalysisClient.ts +++ b/sdk/cognitivelanguage/ai-language-text/src/textAnalysisClient.ts @@ -139,12 +139,12 @@ export class TextAnalysisClient { constructor( endpointUrl: string, credential: TokenCredential, - options?: TextAnalysisClientOptions + options?: TextAnalysisClientOptions, ); constructor( endpointUrl: string, credential: TokenCredential | KeyCredential, - options: TextAnalysisClientOptions = {} + options: TextAnalysisClientOptions = {}, ) { const { defaultCountryHint = "us", @@ -223,7 +223,7 @@ export class TextAnalysisClient { public async analyze( actionName: ActionName, documents: LanguageDetectionInput[], - options?: AnalyzeActionParameters & TextAnalysisOperationOptions + options?: AnalyzeActionParameters & TextAnalysisOperationOptions, ): Promise>; /** * Runs a predictive model to determine the language that the passed-in @@ -275,7 +275,7 @@ export class TextAnalysisClient { actionName: ActionName, documents: string[], countryHint?: string, - options?: AnalyzeActionParameters & TextAnalysisOperationOptions + options?: AnalyzeActionParameters & TextAnalysisOperationOptions, ): Promise>; /** * Runs a predictive model to perform the action of choice on the input @@ -360,7 +360,7 @@ export class TextAnalysisClient { public async analyze( actionName: ActionName, documents: TextDocumentInput[], - options?: AnalyzeActionParameters & TextAnalysisOperationOptions + options?: AnalyzeActionParameters & TextAnalysisOperationOptions, ): Promise>; /** @@ -453,7 +453,7 @@ export class TextAnalysisClient { actionName: ActionName, documents: string[], languageCode?: string, - options?: AnalyzeActionParameters & TextAnalysisOperationOptions + options?: AnalyzeActionParameters & TextAnalysisOperationOptions, ): Promise>; // implementation public async analyze( @@ -462,7 +462,7 @@ export class TextAnalysisClient { languageOrCountryHintOrOptions?: | string | (AnalyzeActionParameters & TextAnalysisOperationOptions), - options?: AnalyzeActionParameters & TextAnalysisOperationOptions + options?: AnalyzeActionParameters & TextAnalysisOperationOptions, ): Promise> { let realOptions: AnalyzeActionParameters & TextAnalysisOperationOptions; @@ -477,14 +477,14 @@ export class TextAnalysisClient { documents, typeof languageOrCountryHintOrOptions === "string" ? languageOrCountryHintOrOptions - : this.defaultCountryHint + : this.defaultCountryHint, ); } else { realInputs = convertToTextDocumentInput( documents, typeof languageOrCountryHintOrOptions === "string" ? languageOrCountryHintOrOptions - : this.defaultLanguage + : this.defaultLanguage, ); } realOptions = options || ({} as any); @@ -509,17 +509,17 @@ export class TextAnalysisClient { }, parameters: action, } as any, - updatedOptions + updatedOptions, ) .then( (result) => transformActionResult( actionName, realInputs.map(({ id }) => id), - result - ) as AnalyzeResult - ) - ) + result, + ) as AnalyzeResult, + ), + ), ); } @@ -586,7 +586,7 @@ export class TextAnalysisClient { actions: AnalyzeBatchAction[], documents: string[], languageCode?: string, - options?: BeginAnalyzeBatchOptions + options?: BeginAnalyzeBatchOptions, ): Promise; /** * Performs an array (batch) of actions on the input documents. Each action has @@ -641,14 +641,14 @@ export class TextAnalysisClient { async beginAnalyzeBatch( actions: AnalyzeBatchAction[], documents: TextDocumentInput[], - options?: BeginAnalyzeBatchOptions + options?: BeginAnalyzeBatchOptions, ): Promise; // implementation async beginAnalyzeBatch( actions: AnalyzeBatchAction[], documents: TextDocumentInput[] | string[], languageOrOptions?: BeginAnalyzeBatchOptions | string, - options: BeginAnalyzeBatchOptions = {} + options: BeginAnalyzeBatchOptions = {}, ): Promise { let realOptions: BeginAnalyzeBatchOptions; let realInputs: TextDocumentInput[]; @@ -670,7 +670,7 @@ export class TextAnalysisClient { kind, actionName, parameters: rest, - }) + }), ); const { includeStatistics, updateIntervalInMs, displayName, ...rest } = realOptions; const lro = createAnalyzeBatchLro({ @@ -735,12 +735,12 @@ export class TextAnalysisClient { */ async restoreAnalyzeBatchPoller( serializedState: string, - options?: RestoreAnalyzeBatchPollerOptions + options?: RestoreAnalyzeBatchPollerOptions, ): Promise; // implementation async restoreAnalyzeBatchPoller( serializedState: string, - options: RestoreAnalyzeBatchPollerOptions = {} + options: RestoreAnalyzeBatchPollerOptions = {}, ): Promise { const { includeStatistics, updateIntervalInMs, ...rest } = options; const docIds = getDocIDsFromState(serializedState); diff --git a/sdk/cognitivelanguage/ai-language-text/src/transforms.ts b/sdk/cognitivelanguage/ai-language-text/src/transforms.ts index 063cb8f9a097..caafcc9d9467 100644 --- a/sdk/cognitivelanguage/ai-language-text/src/transforms.ts +++ b/sdk/cognitivelanguage/ai-language-text/src/transforms.ts @@ -107,7 +107,7 @@ function makeTextAnalysisErrorResult(id: string, error: ErrorModel): TextAnalysi function transformDocumentResults< DocumentSuccess extends TextAnalysisSuccessResult, PublicDocumentSuccess extends TextAnalysisSuccessResult = DocumentSuccess, - TError extends TextAnalysisErrorResult = TextAnalysisErrorResult + TError extends TextAnalysisErrorResult = TextAnalysisErrorResult, >( ids: string[], response: { @@ -117,7 +117,7 @@ function transformDocumentResults< options?: { processSuccess?: (successResult: DocumentSuccess) => PublicDocumentSuccess; processError?: (id: string, error: ErrorModel) => TError; - } + }, ): (PublicDocumentSuccess | TextAnalysisErrorResult)[] { const { processError = makeTextAnalysisErrorResult, processSuccess } = options || {}; const successResults = processSuccess @@ -132,7 +132,7 @@ function transformDocumentResults< function toLanguageDetectionResult( docIds: string[], - results: GeneratedLanguageDetectionResult + results: GeneratedLanguageDetectionResult, ): LanguageDetectionResult[] { return transformDocumentResults(docIds, results, { processSuccess: ({ detectedLanguage, ...rest }) => ({ @@ -144,20 +144,20 @@ function toLanguageDetectionResult( function toPiiEntityRecognitionResult( docIds: string[], - results: GeneratedPiiEntityRecognitionResult + results: GeneratedPiiEntityRecognitionResult, ): PiiEntityRecognitionResult[] { return transformDocumentResults(docIds, results); } function toSentimentAnalysisResult( docIds: string[], - results: GeneratedSentimentAnalysisResult + results: GeneratedSentimentAnalysisResult, ): SentimentAnalysisResult[] { return transformDocumentResults(docIds, results, { processSuccess: ({ sentences, ...rest }) => ({ ...rest, sentences: sentences.map((sentence) => - convertGeneratedSentenceSentiment(sentence, sentences) + convertGeneratedSentenceSentiment(sentence, sentences), ), }), }); @@ -174,7 +174,7 @@ function toSentimentAnalysisResult( */ function convertGeneratedSentenceSentiment( { targets, assessments: _, ...rest }: GeneratedSentenceSentiment, - sentences: GeneratedSentenceSentiment[] + sentences: GeneratedSentenceSentiment[], ): SentenceSentiment { return { ...rest, @@ -186,7 +186,7 @@ function convertGeneratedSentenceSentiment( assessments: relations .filter((relation) => relation.relationType === "assessment") .map((relation) => convertTargetRelationToAssessmentSentiment(relation, sentences)), - }) + }), ) ?? [], }; } @@ -203,7 +203,7 @@ function convertGeneratedSentenceSentiment( */ function convertTargetRelationToAssessmentSentiment( targetRelation: TargetRelation, - sentences: GeneratedSentenceSentiment[] + sentences: GeneratedSentenceSentiment[], ): AssessmentSentiment { const assessmentPtr = targetRelation.ref; const assessmentIndex: AssessmentIndex = parseAssessmentIndex(assessmentPtr); @@ -218,21 +218,21 @@ function convertTargetRelationToAssessmentSentiment( function toEntityLinkingResult( docIds: string[], - results: GeneratedEntityLinkingResult + results: GeneratedEntityLinkingResult, ): EntityLinkingResult[] { return transformDocumentResults(docIds, results); } function toKeyPhraseExtractionResult( docIds: string[], - results: GeneratedKeyPhraseExtractionResult + results: GeneratedKeyPhraseExtractionResult, ): KeyPhraseExtractionResult[] { return transformDocumentResults(docIds, results); } function toEntityRecognitionResult( docIds: string[], - results: GeneratedEntityRecognitionResult + results: GeneratedEntityRecognitionResult, ): EntityRecognitionResult[] { return transformDocumentResults(docIds, results); } @@ -243,7 +243,7 @@ function toEntityRecognitionResult( export function transformActionResult( actionName: ActionName, docIds: string[], - response: AnalyzeResponse + response: AnalyzeResponse, ): AnalyzeResult { switch (response.kind) { case "EntityLinkingResults": { @@ -328,7 +328,7 @@ export async function throwError(p: Promise): Promise { function toHealthcareResult( docIds: string[], - results: GeneratedHealthcareResult + results: GeneratedHealthcareResult, ): HealthcareResult[] { function makeHealthcareEntity(entity: GeneratedHealthcareEntity): HealthcareEntity { const { dataSources, ...rest } = entity; @@ -338,7 +338,7 @@ function toHealthcareResult( }; } function makeHealthcareRelation( - entities: HealthcareEntity[] + entities: HealthcareEntity[], ): (relation: HealthcareRelation) => HealthcareEntityRelation { return ({ entities: generatedEntities, @@ -351,7 +351,7 @@ function toHealthcareResult( (role: HealthcareRelationEntity): HealthcareEntityRelationRole => ({ entity: entities[parseHealthcareEntityIndex(role.ref)], name: role.role, - }) + }), ), }); } @@ -367,7 +367,7 @@ function toHealthcareResult( ...rest, }; }, - } + }, ); } @@ -377,7 +377,7 @@ function toHealthcareResult( export function transformAnalyzeBatchResults( docIds: string[], response: AnalyzeTextLROResultUnion[] = [], - errors: ErrorModel[] = [] + errors: ErrorModel[] = [], ): AnalyzeBatchResult[] { const errorMap = toIndexErrorMap(errors); return response.map((actionData, idx): AnalyzeBatchResult => { @@ -508,7 +508,7 @@ export function transformAnalyzeBatchResults( kind, results: transformDocumentResults( docIds, - results + results, ), completedOn, ...(actionName ? { actionName } : {}), @@ -528,7 +528,7 @@ export function transformAnalyzeBatchResults( kind, results: transformDocumentResults( docIds, - results + results, ), completedOn, ...(actionName ? { actionName } : {}), @@ -600,7 +600,7 @@ function toIndexErrorMap(errors: ErrorModel[]): Map { function returnErrorTask( kind: AnalyzeBatchActionName, error: TextAnalysisError | undefined, - failedOn: Date + failedOn: Date, ): AnalyzeBatchResult { if (!error) { throw new Error("Unexpected response from service - no errors for missing action results."); @@ -623,7 +623,7 @@ function returnErrorTask( function returnErrorCustomTask( kind: AnalyzeBatchActionName, error: TextAnalysisError | undefined, - failedOn: Date + failedOn: Date, ): AnalyzeBatchResult { if (!error) { throw new Error("Unexpected response from service - no errors for missing action results."); diff --git a/sdk/cognitivelanguage/ai-language-text/src/util.ts b/sdk/cognitivelanguage/ai-language-text/src/util.ts index edae5a2da837..8fef05b31686 100644 --- a/sdk/cognitivelanguage/ai-language-text/src/util.ts +++ b/sdk/cognitivelanguage/ai-language-text/src/util.ts @@ -15,7 +15,7 @@ import { logger } from "./logger"; */ export function sortResponseIdObjects( sortedIds: string[], - unsortedArray: U[] + unsortedArray: U[], ): U[] { const unsortedMap = new Map(); for (const item of unsortedArray) { @@ -25,7 +25,7 @@ export function sortResponseIdObjects( if (unsortedArray.length !== sortedIds.length) { const ordinal = unsortedArray.length > sortedIds.length ? "more" : "fewer"; logger.warning( - `The service returned ${ordinal} responses than inputs. Some errors may be treated as fatal.` + `The service returned ${ordinal} responses than inputs. Some errors may be treated as fatal.`, ); } @@ -98,7 +98,7 @@ export function isStringArray(documents: unknown[]): documents is string[] { */ export function convertToTextDocumentInput( inputs: string[], - language?: string + language?: string, ): TextDocumentInput[] { return inputs.map((text: string, index): TextDocumentInput => { return { @@ -114,7 +114,7 @@ export function convertToTextDocumentInput( */ export function convertToLanguageDetectionInput( inputs: string[], - countryHint?: string + countryHint?: string, ): LanguageDetectionInput[] { return inputs.map((text: string, index): LanguageDetectionInput => { return { @@ -129,7 +129,7 @@ export function convertToLanguageDetectionInput( * @internal */ export function getOperationOptions( - options: OptionsT + options: OptionsT, ): { options: TextAnalysisOperationOptions; rest: Omit< @@ -177,7 +177,7 @@ export function extractErrorPointerIndex(error: ErrorModel): number { if (isNaN(position)) { throw new Error( - `Unexpected response from service - action pointer "${error.target}" is not a valid action pointer.` + `Unexpected response from service - action pointer "${error.target}" is not a valid action pointer.`, ); } diff --git a/sdk/cognitivelanguage/ai-language-text/test/internal/errorTargets.spec.ts b/sdk/cognitivelanguage/ai-language-text/test/internal/errorTargets.spec.ts index b27a53a139df..a3e6c281cdd7 100644 --- a/sdk/cognitivelanguage/ai-language-text/test/internal/errorTargets.spec.ts +++ b/sdk/cognitivelanguage/ai-language-text/test/internal/errorTargets.spec.ts @@ -24,7 +24,7 @@ describe("Error targets", function () { }, ], docs, - "en" + "en", ); assertActionsResults(await poller.pollUntilDone(), expectation73); }); @@ -47,7 +47,7 @@ describe("extractErrorPointerIndex", function () { }; assert.Throw( () => extractErrorPointerIndex(error), - "Unexpected response from service - no target present" + "Unexpected response from service - no target present", ); }); @@ -59,7 +59,7 @@ describe("extractErrorPointerIndex", function () { }; assert.Throw( () => extractErrorPointerIndex(error), - 'Unexpected response from service - action pointer "invalid target" is not a valid action pointer.' + 'Unexpected response from service - action pointer "invalid target" is not a valid action pointer.', ); }); }); diff --git a/sdk/cognitivelanguage/ai-language-text/test/node/customTest.spec.ts b/sdk/cognitivelanguage/ai-language-text/test/node/customTest.spec.ts index 78d7007dc6a0..e1d04606b91a 100644 --- a/sdk/cognitivelanguage/ai-language-text/test/node/customTest.spec.ts +++ b/sdk/cognitivelanguage/ai-language-text/test/node/customTest.spec.ts @@ -47,7 +47,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { authoringClient, "CustomEntityRecognition", projectName, - deploymentName + deploymentName, ); }); @@ -79,7 +79,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation1); }); @@ -98,7 +98,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { authoringClient, "CustomSingleLabelClassification", projectName, - deploymentName + deploymentName, ); }); @@ -129,7 +129,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation2); }); @@ -148,7 +148,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { authoringClient, "CustomMultiLabelClassification", projectName, - deploymentName + deploymentName, ); }); @@ -179,7 +179,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation4); }); diff --git a/sdk/cognitivelanguage/ai-language-text/test/public/analyze.spec.ts b/sdk/cognitivelanguage/ai-language-text/test/public/analyze.spec.ts index fd594ca06c7b..9b717dace474 100644 --- a/sdk/cognitivelanguage/ai-language-text/test/public/analyze.spec.ts +++ b/sdk/cognitivelanguage/ai-language-text/test/public/analyze.spec.ts @@ -87,21 +87,21 @@ matrix(authModes, async (authMethod: AuthMethod) => { it("client throws on empty list", async function () { await assert.isRejected( client.analyze(AnalyzeActionNames.SentimentAnalysis, []), - /non-empty array/ + /non-empty array/, ); }); it("client accepts string[] and language", async function () { assertActionResults( await client.analyze(AnalyzeActionNames.SentimentAnalysis, testDataEn, "en"), - expectation63 + expectation63, ); }); it("client accepts string[] with no language", async function () { assertActionResults( await client.analyze(AnalyzeActionNames.SentimentAnalysis, testDataEn), - expectation63 + expectation63, ); }); @@ -109,7 +109,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { const [result] = await client.analyze( AnalyzeActionNames.SentimentAnalysis, ["Hello world!"], - "notalanguage" + "notalanguage", ); if (result.error === undefined) { assert.fail("Expected an error from the service"); @@ -131,7 +131,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { await client.analyze(AnalyzeActionNames.SentimentAnalysis, docs, "en", { includeOpinionMining: true, }), - expectation65 + expectation65, ); }); @@ -140,7 +140,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { data.splice(1, 0, ""); assertActionResults( await client.analyze(AnalyzeActionNames.SentimentAnalysis, data), - expectation66 + expectation66, ); }); @@ -158,7 +158,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { const docs = enDocs.concat(esDocs); assertActionResults( await client.analyze(AnalyzeActionNames.SentimentAnalysis, docs), - expectation34 + expectation34, ); }); @@ -170,7 +170,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { await client.analyze(AnalyzeActionNames.SentimentAnalysis, docs, "en", { includeOpinionMining: true, }), - expectation35 + expectation35, ); }); @@ -180,7 +180,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { await client.analyze(AnalyzeActionNames.SentimentAnalysis, docs, "en", { includeOpinionMining: true, }), - expectation36 + expectation36, ); }); @@ -190,7 +190,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { await client.analyze(AnalyzeActionNames.SentimentAnalysis, docs, "en", { includeOpinionMining: true, }), - expectation37 + expectation37, ); }); }); @@ -199,14 +199,14 @@ matrix(authModes, async (authMethod: AuthMethod) => { it("client throws on empty list", async function () { await assert.isRejected( client.analyze(AnalyzeActionNames.LanguageDetection, []), - /non-empty array/ + /non-empty array/, ); }); it("client accepts no countryHint", async function () { assertActionResults( await client.analyze(AnalyzeActionNames.LanguageDetection, testDataEn), - expectation38 + expectation38, ); }); @@ -215,7 +215,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { const docs = ["impossible"]; assertActionResults( await client.analyze(AnalyzeActionNames.LanguageDetection, docs, "fr"), - expectation39 + expectation39, ); }); @@ -223,7 +223,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { const docs = ["I use Azure Functions to develop my service."]; assertActionResults( await client.analyze(AnalyzeActionNames.LanguageDetection, docs, "none"), - expectation40 + expectation40, ); }); @@ -235,7 +235,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { })); assertActionResults( await client.analyze(AnalyzeActionNames.LanguageDetection, docs), - expectation41 + expectation41, ); }); @@ -243,7 +243,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { const docs = ["hello"]; assertActionResults( await client.analyze(AnalyzeActionNames.LanguageDetection, docs, "invalidcountry"), - expectation42 + expectation42, ); }); @@ -260,7 +260,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { const docs = enDocs.concat(esDocs); assertActionResults( await client.analyze(AnalyzeActionNames.LanguageDetection, docs), - expectation43 + expectation43, ); }); }); @@ -269,21 +269,21 @@ matrix(authModes, async (authMethod: AuthMethod) => { it("client throws on empty list", async function () { await assert.isRejected( client.analyze(AnalyzeActionNames.EntityRecognition, []), - /non-empty array/ + /non-empty array/, ); }); it("client accepts string[] with no language", async function () { assertActionResults( await client.analyze(AnalyzeActionNames.EntityRecognition, testDataEn), - expectation44 + expectation44, ); }); it("client accepts string[] with a language specified", async function () { assertActionResults( await client.analyze(AnalyzeActionNames.EntityRecognition, testDataEn, "en"), - expectation45 + expectation45, ); }); @@ -292,7 +292,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { const [result] = await client.analyze( AnalyzeActionNames.EntityRecognition, docs, - "notalanguage" + "notalanguage", ); if (result.error === undefined) { assert.fail("Expected an error from the service"); @@ -314,7 +314,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { const docs = enDocs.concat(esDocs); assertActionResults( await client.analyze(AnalyzeActionNames.EntityRecognition, docs), - expectation47 + expectation47, ); }); @@ -342,21 +342,21 @@ matrix(authModes, async (authMethod: AuthMethod) => { it("client throws on empty list", async function () { await assert.isRejected( client.analyze(AnalyzeActionNames.KeyPhraseExtraction, []), - /non-empty array/ + /non-empty array/, ); }); it("client accepts string[] with no language", async function () { assertActionResults( await client.analyze(AnalyzeActionNames.KeyPhraseExtraction, testDataEn), - expectation48 + expectation48, ); }); it("client accepts string[] with a language specified", async function () { assertActionResults( await client.analyze(AnalyzeActionNames.KeyPhraseExtraction, testDataEn, "en"), - expectation49 + expectation49, ); }); @@ -365,7 +365,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { const [result] = await client.analyze( AnalyzeActionNames.KeyPhraseExtraction, docs, - "notalanguage" + "notalanguage", ); if (result.error === undefined) { assert.fail("Expected an error from the service"); @@ -387,7 +387,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { const docs = enDocs.concat(esDocs); assertActionResults( await client.analyze(AnalyzeActionNames.KeyPhraseExtraction, docs), - expectation51 + expectation51, ); }); }); @@ -400,14 +400,14 @@ matrix(authModes, async (authMethod: AuthMethod) => { it("client accepts string[] with no language", async function () { assertActionResults( await client.analyze(AnalyzeActionNames.PiiEntityRecognition, testDataEn), - expectation52 + expectation52, ); }); it("client accepts string[] with a language specified", async function () { assertActionResults( await client.analyze(AnalyzeActionNames.PiiEntityRecognition, testDataEn, "en"), - expectation53 + expectation53, ); }); @@ -417,7 +417,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { const docs = ["Your Social Security Number is 859-98-0987."]; assertActionResults( await client.analyze(AnalyzeActionNames.PiiEntityRecognition, docs), - expectation54 + expectation54, ); }); @@ -426,7 +426,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { const [result] = await client.analyze( AnalyzeActionNames.PiiEntityRecognition, docs, - "notalanguage" + "notalanguage", ); if (result.error === undefined) { assert.fail("Expected an error from the service"); @@ -449,7 +449,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { const docs = enDocs.concat(esDocs); assertActionResults( await client.analyze(AnalyzeActionNames.PiiEntityRecognition, docs), - expectation56 + expectation56, ); }); @@ -459,7 +459,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { await client.analyze(AnalyzeActionNames.PiiEntityRecognition, docs, "en", { domainFilter: KnownPiiEntityDomain.Phi, }), - expectation57 + expectation57, ); }); @@ -469,7 +469,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { await client.analyze(AnalyzeActionNames.PiiEntityRecognition, docs, "en", { categoriesFilter: [KnownPiiEntityCategory.USSocialSecurityNumber], }), - expectation58 + expectation58, ); }); @@ -477,13 +477,13 @@ matrix(authModes, async (authMethod: AuthMethod) => { const docs = ["Patient name is Joe and SSN is 859-98-0987"]; assertActionResults( await client.analyze(AnalyzeActionNames.PiiEntityRecognition, docs), - expectation59 + expectation59, ); assertActionResults( await client.analyze(AnalyzeActionNames.PiiEntityRecognition, docs, "en", { categoriesFilter: [expectation59[0].entities[1].category], }), - expectation58 + expectation58, ); }); }); @@ -492,21 +492,21 @@ matrix(authModes, async (authMethod: AuthMethod) => { it("client throws on empty list", async function () { return assert.isRejected( client.analyze(AnalyzeActionNames.EntityLinking, []), - /non-empty array/ + /non-empty array/, ); }); it("client accepts string[] with no language", async function () { assertActionResults( await client.analyze(AnalyzeActionNames.EntityLinking, testDataEn), - expectation60 + expectation60, ); }); it("client accepts string[] with a language specified", async function () { assertActionResults( await client.analyze(AnalyzeActionNames.EntityLinking, testDataEn, "en"), - expectation60 + expectation60, ); }); @@ -514,7 +514,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { const [result] = await client.analyze( AnalyzeActionNames.EntityLinking, ["This is some text, but it doesn't matter."], - "notalanguage" + "notalanguage", ); if (result.error === undefined) { assert.fail("Expected an error from the service"); @@ -537,7 +537,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { assertActionResults( await client.analyze(AnalyzeActionNames.EntityLinking, docs), - expectation62 + expectation62, ); }); @@ -571,7 +571,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { KnownStringIndexType.Utf16CodeUnit, 8, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); it("emoji with skin tone modifier", async function () { @@ -581,7 +581,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { KnownStringIndexType.Utf16CodeUnit, 10, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); @@ -592,7 +592,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { KnownStringIndexType.Utf16CodeUnit, 17, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); @@ -603,7 +603,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { KnownStringIndexType.Utf16CodeUnit, 25, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); @@ -614,7 +614,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { KnownStringIndexType.Utf16CodeUnit, 9, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); @@ -625,7 +625,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { KnownStringIndexType.Utf16CodeUnit, 10, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); @@ -636,7 +636,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { KnownStringIndexType.Utf16CodeUnit, 8, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); @@ -647,7 +647,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { KnownStringIndexType.Utf16CodeUnit, 8, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); @@ -658,7 +658,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { KnownStringIndexType.Utf16CodeUnit, 121, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); }); @@ -669,7 +669,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "👩 SSN: 859-98-0987", KnownStringIndexType.UnicodeCodePoint, 7, - 11 + 11, ); // offset was 8 with UTF16 }); @@ -679,7 +679,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "👩🏻 SSN: 859-98-0987", KnownStringIndexType.UnicodeCodePoint, 8, - 11 + 11, ); // offset was 10 with UTF16 }); @@ -689,7 +689,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "👩‍👩‍👧‍👧 SSN: 859-98-0987", KnownStringIndexType.UnicodeCodePoint, 13, - 11 + 11, ); // offset was 17 with UTF16 }); @@ -699,7 +699,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "👩🏻‍👩🏽‍👧🏾‍👦🏿 SSN: 859-98-0987", KnownStringIndexType.UnicodeCodePoint, 17, - 11 + 11, ); // offset was 25 with UTF16 }); @@ -709,7 +709,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "año SSN: 859-98-0987", KnownStringIndexType.UnicodeCodePoint, 9, - 11 + 11, ); }); @@ -719,7 +719,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "año SSN: 859-98-0987", KnownStringIndexType.UnicodeCodePoint, 10, - 11 + 11, ); }); @@ -729,7 +729,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "아가 SSN: 859-98-0987", KnownStringIndexType.UnicodeCodePoint, 8, - 11 + 11, ); }); @@ -739,7 +739,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "아가 SSN: 859-98-0987", KnownStringIndexType.UnicodeCodePoint, 8, - 11 + 11, ); }); @@ -749,7 +749,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "ơ̵̧̧̢̳̘̘͕͔͕̭̟̙͎͈̞͔̈̇̒̃͋̇̅͛̋͛̎́͑̄̐̂̎͗͝m̵͍͉̗̄̏͌̂̑̽̕͝͠g̵̢̡̢̡̨̡̧̛͉̞̯̠̤̣͕̟̫̫̼̰͓̦͖̣̣͎̋͒̈́̓̒̈̍̌̓̅͑̒̓̅̅͒̿̏́͗̀̇͛̏̀̈́̀̊̾̀̔͜͠͝ͅ SSN: 859-98-0987", KnownStringIndexType.UnicodeCodePoint, 121, - 11 + 11, ); }); }); @@ -760,7 +760,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "👩 SSN: 859-98-0987", KnownStringIndexType.TextElementsV8, 7, - 11 + 11, ); // offset was 8 with UTF16 }); @@ -770,7 +770,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "👩🏻 SSN: 859-98-0987", KnownStringIndexType.TextElementsV8, 7, - 11 + 11, ); // offset was 10 with UTF16 }); @@ -780,7 +780,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "👩‍👩‍👧‍👧 SSN: 859-98-0987", KnownStringIndexType.TextElementsV8, 7, - 11 + 11, ); // offset was 17 with UTF16 }); @@ -790,7 +790,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "👩🏻‍👩🏽‍👧🏾‍👦🏿 SSN: 859-98-0987", KnownStringIndexType.TextElementsV8, 7, - 11 + 11, ); // offset was 25 with UTF16 }); @@ -800,7 +800,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "año SSN: 859-98-0987", KnownStringIndexType.TextElementsV8, 9, - 11 + 11, ); }); @@ -810,7 +810,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "año SSN: 859-98-0987", KnownStringIndexType.TextElementsV8, 9, - 11 + 11, ); // offset was 10 with UTF16 }); @@ -820,7 +820,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "아가 SSN: 859-98-0987", KnownStringIndexType.TextElementsV8, 8, - 11 + 11, ); }); @@ -830,7 +830,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "아가 SSN: 859-98-0987", KnownStringIndexType.TextElementsV8, 8, - 11 + 11, ); }); @@ -840,7 +840,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "ơ̵̧̧̢̳̘̘͕͔͕̭̟̙͎͈̞͔̈̇̒̃͋̇̅͛̋͛̎́͑̄̐̂̎͗͝m̵͍͉̗̄̏͌̂̑̽̕͝͠g̵̢̡̢̡̨̡̧̛͉̞̯̠̤̣͕̟̫̫̼̰͓̦͖̣̣͎̋͒̈́̓̒̈̍̌̓̅͑̒̓̅̅͒̿̏́͗̀̇͛̏̀̈́̀̊̾̀̔͜͠͝ͅ SSN: 859-98-0987", KnownStringIndexType.TextElementsV8, 9, - 11 + 11, ); // offset was 121 with UTF16 }); }); diff --git a/sdk/cognitivelanguage/ai-language-text/test/public/analyzeBatch.spec.ts b/sdk/cognitivelanguage/ai-language-text/test/public/analyzeBatch.spec.ts index fe53a9e836b4..ed6284680076 100644 --- a/sdk/cognitivelanguage/ai-language-text/test/public/analyzeBatch.spec.ts +++ b/sdk/cognitivelanguage/ai-language-text/test/public/analyzeBatch.spec.ts @@ -93,7 +93,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { docs, { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation3); @@ -122,7 +122,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { docs, { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation5); }); @@ -144,7 +144,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation6); }); @@ -166,7 +166,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation7); }); @@ -188,7 +188,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation8); }); @@ -210,7 +210,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation24); }); @@ -237,7 +237,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation9); }); @@ -258,7 +258,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation20); }); @@ -275,13 +275,13 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults( await poller.pollUntilDone(), expectation27, - excludedSummarizationProperties + excludedSummarizationProperties, ); }); @@ -299,7 +299,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); const results = await poller.pollUntilDone(); @@ -311,7 +311,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { assert.isAtMost( result.sentences.length, maxSentenceCount, - `Exceeded maximum sentence count, expected ${maxSentenceCount}` + `Exceeded maximum sentence count, expected ${maxSentenceCount}`, ); } } @@ -334,7 +334,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); const results = await poller.pollUntilDone(); @@ -346,9 +346,9 @@ matrix(authModes, async (authMethod: AuthMethod) => { assert.isTrue( result.sentences.every( (sentence, i) => - i === 0 || sentence.rankScore <= result.sentences[i - 1].rankScore + i === 0 || sentence.rankScore <= result.sentences[i - 1].rankScore, ), - "Expected the sentences to be in descending order" + "Expected the sentences to be in descending order", ); } } @@ -369,7 +369,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation30, { ...excludedSummarizationProperties, @@ -389,7 +389,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation31, { ...excludedSummarizationProperties, @@ -409,12 +409,12 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ), { code: KnownTextAnalysisErrorCode.InvalidDocumentBatch, statusCode: 400, - } + }, ); }); @@ -432,12 +432,12 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ), { code: KnownTextAnalysisErrorCode.InvalidParameterValue, statusCode: 400, - } + }, ); }); @@ -457,13 +457,13 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ), { code: KnownTextAnalysisErrorCode.InvalidRequestBodyFormat, statusCode: 400, messagePattern: /Duplicate task name/, - } + }, ); }); @@ -480,13 +480,13 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ), { code: KnownTextAnalysisErrorCode.InvalidDocumentBatch, statusCode: 400, messagePattern: /Batch request contains too many records/, - } + }, ); }); @@ -517,13 +517,13 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ), { code: KnownTextAnalysisErrorCode.InvalidDocumentBatch, statusCode: 413, messagePattern: /Request Payload sent is too large to be processed/, - } + }, ); }); }); @@ -545,7 +545,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation19); }); @@ -579,7 +579,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { docs, { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation10); }); @@ -613,7 +613,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { docs, { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation11); }); @@ -641,7 +641,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { docs, { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation12); }); @@ -669,7 +669,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { docs, { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation13); }); @@ -694,7 +694,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { { updateIntervalInMs: pollingInterval, includeStatistics: true, - } + }, ); const actions = await poller.pollUntilDone(); for await (const action of actions) { @@ -740,7 +740,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation14); }); @@ -766,7 +766,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { docs, { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation15); }); @@ -789,7 +789,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "notalanguage", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation16); }); @@ -811,7 +811,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation17, { maxPageSize: 10, @@ -831,7 +831,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { { updateIntervalInMs: pollingInterval, displayName: "testJob", - } + }, ); poller.onProgress((state) => { assert.ok(state.createdOn, "createdOn is undefined!"); @@ -917,7 +917,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { docs, { updateIntervalInMs: pollingInterval, - } + }, ); if (originalPoller.isDone()) { assert.fail("Operation finished processing before creating a new poller"); @@ -925,7 +925,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { const serializedState = originalPoller.toString(); assert.deepEqual( JSON.parse(serializedState).state.docIds, - docs.map(({ id }) => id) + docs.map(({ id }) => id), ); const rehydratedPoller = await client.restoreAnalyzeBatchPoller(serializedState, { updateIntervalInMs: pollingInterval, @@ -948,7 +948,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation18); }); @@ -966,7 +966,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation22); }); @@ -984,7 +984,7 @@ matrix(authModes, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); await assertActionsResults(await poller.pollUntilDone(), expectation23); }); diff --git a/sdk/cognitivelanguage/ai-language-text/test/public/utils/customTestHelpter.ts b/sdk/cognitivelanguage/ai-language-text/test/public/utils/customTestHelpter.ts index f222bbf1d19a..33cb73cb7135 100644 --- a/sdk/cognitivelanguage/ai-language-text/test/public/utils/customTestHelpter.ts +++ b/sdk/cognitivelanguage/ai-language-text/test/public/utils/customTestHelpter.ts @@ -28,7 +28,7 @@ const pathName = path.join( "ai-language-text", "test", "public", - "utils" + "utils", ); const storageInputContainerName = "documents"; const language = "en-us"; @@ -57,7 +57,7 @@ async function createStorageBlob(): Promise { // Get documents containers const blobServiceClient = new BlobServiceClient( assertEnvironmentVariable("STORAGE_ENDPOINT"), - defaultAzureCredential + defaultAzureCredential, ); return blobServiceClient.getContainerClient(storageInputContainerName); } @@ -79,7 +79,7 @@ async function getAssetsforProject( projectKind: | "CustomEntityRecognition" | "CustomSingleLabelClassification" - | "CustomMultiLabelClassification" + | "CustomMultiLabelClassification", ): Promise<{ assets: | ExportedCustomSingleLabelClassificationProjectAssets @@ -111,7 +111,7 @@ export async function createCustomTestProject( | "CustomSingleLabelClassification" | "CustomMultiLabelClassification", projectName: string, - deploymentName: string + deploymentName: string, ): Promise { const { assets, fileName } = await getAssetsforProject(projectKind); const dirName = path.join(pathName, fileName); @@ -151,7 +151,7 @@ export async function createCustomTestProject( .path( "/authoring/analyze-text/projects/{projectName}/deployments/{deploymentName}", projectName, - deploymentName + deploymentName, ) .put(deployParam); await polling(client, deployTask); diff --git a/sdk/cognitivelanguage/ai-language-text/test/public/utils/recordedClient.ts b/sdk/cognitivelanguage/ai-language-text/test/public/utils/recordedClient.ts index 232217fe6e5f..b5f259ff408b 100644 --- a/sdk/cognitivelanguage/ai-language-text/test/public/utils/recordedClient.ts +++ b/sdk/cognitivelanguage/ai-language-text/test/public/utils/recordedClient.ts @@ -36,7 +36,7 @@ export function createClient( options: { recorder?: Recorder; clientOptions?: TextAnalysisClientOptions; - } + }, ): TextAnalysisClient { const { recorder, clientOptions = {} } = options; const endpoint = assertEnvironmentVariable("ENDPOINT"); @@ -47,7 +47,7 @@ export function createClient( return new TextAnalysisClient( endpoint, new AzureKeyCredential(assertEnvironmentVariable("LANGUAGE_API_KEY")), - updatedOptions + updatedOptions, ); } case "AAD": { diff --git a/sdk/cognitivelanguage/ai-language-text/test/public/utils/resultHelper.ts b/sdk/cognitivelanguage/ai-language-text/test/public/utils/resultHelper.ts index bc2405f81001..fb54f1726cca 100644 --- a/sdk/cognitivelanguage/ai-language-text/test/public/utils/resultHelper.ts +++ b/sdk/cognitivelanguage/ai-language-text/test/public/utils/resultHelper.ts @@ -15,7 +15,7 @@ export async function assertActionsResults( options: { maxPageSize?: number; excludedAdditionalProps?: string[]; - } = {} + } = {}, ): Promise { const { maxPageSize, excludedAdditionalProps = [] } = options; let actionIndex = 0; @@ -41,7 +41,7 @@ export async function assertRestError( statusCode?: number; code?: keyof typeof KnownTextAnalysisErrorCode; messagePattern?: RegExp; - } = {} + } = {}, ): Promise { const { code, statusCode, messagePattern } = options; try { @@ -69,7 +69,7 @@ export function assertActionResults( expectation: T[], options: { excludedAdditionalProps?: string[]; - } = {} + } = {}, ): void { const { excludedAdditionalProps = ["confidenceScore", "confidenceScores"] } = options; assert.deepEqualExcludingEvery(result, expectation, excludedAdditionalProps as any); diff --git a/sdk/cognitivelanguage/ai-language-text/test/public/utils/stringIndexTypeHelpers.ts b/sdk/cognitivelanguage/ai-language-text/test/public/utils/stringIndexTypeHelpers.ts index 45f6ee4c1a96..c3e0f384c168 100644 --- a/sdk/cognitivelanguage/ai-language-text/test/public/utils/stringIndexTypeHelpers.ts +++ b/sdk/cognitivelanguage/ai-language-text/test/public/utils/stringIndexTypeHelpers.ts @@ -21,14 +21,14 @@ export async function checkOffsetAndLength( stringIndexType: StringIndexType, offset: number, length: number, - callback?: (doc: string, entity: Entity, offset: number, length: number) => unknown + callback?: (doc: string, entity: Entity, offset: number, length: number) => unknown, ): Promise { const [result] = await client.analyze( "PiiEntityRecognition", [{ id: "0", text: doc, language: "en" }], { stringIndexType: stringIndexType, - } + }, ); if (!result.error) { const entity = result.entities[0]; @@ -51,7 +51,7 @@ export function checkEntityTextOffset( doc: string, entity: Entity, offset: number, - length: number + length: number, ): void { assert.equal(doc.substr(offset, length), entity.text); } diff --git a/sdk/cognitivelanguage/ai-language-textauthoring/package.json b/sdk/cognitivelanguage/ai-language-textauthoring/package.json index 12f5ea9b2309..140e5fd8fe59 100644 --- a/sdk/cognitivelanguage/ai-language-textauthoring/package.json +++ b/sdk/cognitivelanguage/ai-language-textauthoring/package.json @@ -38,11 +38,11 @@ "build:samples": "echo skipped.", "build:test": "echo skipped.", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", @@ -76,7 +76,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^1.0.4", - "prettier": "^2.2.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/cognitivelanguage/ai-language-textauthoring/src/clientDefinitions.ts b/sdk/cognitivelanguage/ai-language-textauthoring/src/clientDefinitions.ts index 8227eea5b9a9..c0eff56deaa4 100644 --- a/sdk/cognitivelanguage/ai-language-textauthoring/src/clientDefinitions.ts +++ b/sdk/cognitivelanguage/ai-language-textauthoring/src/clientDefinitions.ts @@ -122,7 +122,7 @@ import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface ListProjects { /** Lists the existing projects. */ get( - options?: TextAnalysisAuthoringListProjectsParameters + options?: TextAnalysisAuthoringListProjectsParameters, ): StreamableMethod< TextAnalysisAuthoringListProjects200Response | TextAnalysisAuthoringListProjectsDefaultResponse >; @@ -131,7 +131,7 @@ export interface ListProjects { export interface CreateProject { /** Creates a new project or updates an existing one. */ patch( - options: TextAnalysisAuthoringCreateProjectParameters + options: TextAnalysisAuthoringCreateProjectParameters, ): StreamableMethod< | TextAnalysisAuthoringCreateProject200Response | TextAnalysisAuthoringCreateProject201Response @@ -139,13 +139,13 @@ export interface CreateProject { >; /** Gets the details of a project. */ get( - options?: TextAnalysisAuthoringGetProjectParameters + options?: TextAnalysisAuthoringGetProjectParameters, ): StreamableMethod< TextAnalysisAuthoringGetProject200Response | TextAnalysisAuthoringGetProjectDefaultResponse >; /** Deletes a project. */ delete( - options?: TextAnalysisAuthoringDeleteProjectParameters + options?: TextAnalysisAuthoringDeleteProjectParameters, ): StreamableMethod< | TextAnalysisAuthoringDeleteProject202Response | TextAnalysisAuthoringDeleteProjectDefaultResponse @@ -155,7 +155,7 @@ export interface CreateProject { export interface Export { /** Triggers a job to export a project's data. */ post( - options: TextAnalysisAuthoringExportParameters + options: TextAnalysisAuthoringExportParameters, ): StreamableMethod< TextAnalysisAuthoringExport202Response | TextAnalysisAuthoringExportDefaultResponse >; @@ -164,7 +164,7 @@ export interface Export { export interface Import { /** Triggers a job to import a project. If a project with the same name already exists, the data of that project is replaced. */ post( - options: TextAnalysisAuthoringImportParameters + options: TextAnalysisAuthoringImportParameters, ): StreamableMethod< TextAnalysisAuthoringImport202Response | TextAnalysisAuthoringImportDefaultResponse >; @@ -173,7 +173,7 @@ export interface Import { export interface Train { /** Triggers a training job for a project. */ post( - options: TextAnalysisAuthoringTrainParameters + options: TextAnalysisAuthoringTrainParameters, ): StreamableMethod< TextAnalysisAuthoringTrain202Response | TextAnalysisAuthoringTrainDefaultResponse >; @@ -182,7 +182,7 @@ export interface Train { export interface ListDeployments { /** Lists the deployments belonging to a project. */ get( - options?: TextAnalysisAuthoringListDeploymentsParameters + options?: TextAnalysisAuthoringListDeploymentsParameters, ): StreamableMethod< | TextAnalysisAuthoringListDeployments200Response | TextAnalysisAuthoringListDeploymentsDefaultResponse @@ -192,7 +192,7 @@ export interface ListDeployments { export interface SwapDeployments { /** Swaps two existing deployments with each other. */ post( - options: TextAnalysisAuthoringSwapDeploymentsParameters + options: TextAnalysisAuthoringSwapDeploymentsParameters, ): StreamableMethod< | TextAnalysisAuthoringSwapDeployments202Response | TextAnalysisAuthoringSwapDeploymentsDefaultResponse @@ -202,21 +202,21 @@ export interface SwapDeployments { export interface GetDeployment { /** Gets the details of a deployment. */ get( - options?: TextAnalysisAuthoringGetDeploymentParameters + options?: TextAnalysisAuthoringGetDeploymentParameters, ): StreamableMethod< | TextAnalysisAuthoringGetDeployment200Response | TextAnalysisAuthoringGetDeploymentDefaultResponse >; /** Creates a new deployment or replaces an existing one. */ put( - options: TextAnalysisAuthoringDeployProjectParameters + options: TextAnalysisAuthoringDeployProjectParameters, ): StreamableMethod< | TextAnalysisAuthoringDeployProject202Response | TextAnalysisAuthoringDeployProjectDefaultResponse >; /** Deletes a project deployment. */ delete( - options?: TextAnalysisAuthoringDeleteDeploymentParameters + options?: TextAnalysisAuthoringDeleteDeploymentParameters, ): StreamableMethod< | TextAnalysisAuthoringDeleteDeployment202Response | TextAnalysisAuthoringDeleteDeploymentDefaultResponse @@ -226,7 +226,7 @@ export interface GetDeployment { export interface DeleteDeploymentFromResources { /** Deletes a project deployment from the specified assigned resources. */ post( - options: TextAnalysisAuthoringDeleteDeploymentFromResourcesParameters + options: TextAnalysisAuthoringDeleteDeploymentFromResourcesParameters, ): StreamableMethod< | TextAnalysisAuthoringDeleteDeploymentFromResources202Response | TextAnalysisAuthoringDeleteDeploymentFromResourcesDefaultResponse @@ -236,7 +236,7 @@ export interface DeleteDeploymentFromResources { export interface GetDeploymentDeleteFromResourcesStatus { /** Gets the status of an existing delete deployment from specific resources job. */ get( - options?: TextAnalysisAuthoringGetDeploymentDeleteFromResourcesStatusParameters + options?: TextAnalysisAuthoringGetDeploymentDeleteFromResourcesStatusParameters, ): StreamableMethod< | TextAnalysisAuthoringGetDeploymentDeleteFromResourcesStatus200Response | TextAnalysisAuthoringGetDeploymentDeleteFromResourcesStatusDefaultResponse @@ -246,7 +246,7 @@ export interface GetDeploymentDeleteFromResourcesStatus { export interface GetDeploymentStatus { /** Gets the status of an existing deployment job. */ get( - options?: TextAnalysisAuthoringGetDeploymentStatusParameters + options?: TextAnalysisAuthoringGetDeploymentStatusParameters, ): StreamableMethod< | TextAnalysisAuthoringGetDeploymentStatus200Response | TextAnalysisAuthoringGetDeploymentStatusDefaultResponse @@ -256,7 +256,7 @@ export interface GetDeploymentStatus { export interface GetSwapDeploymentsStatus { /** Gets the status of an existing swap deployment job. */ get( - options?: TextAnalysisAuthoringGetSwapDeploymentsStatusParameters + options?: TextAnalysisAuthoringGetSwapDeploymentsStatusParameters, ): StreamableMethod< | TextAnalysisAuthoringGetSwapDeploymentsStatus200Response | TextAnalysisAuthoringGetSwapDeploymentsStatusDefaultResponse @@ -266,7 +266,7 @@ export interface GetSwapDeploymentsStatus { export interface GetExportStatus { /** Gets the status of an export job. Once job completes, returns the project metadata, and assets. */ get( - options?: TextAnalysisAuthoringGetExportStatusParameters + options?: TextAnalysisAuthoringGetExportStatusParameters, ): StreamableMethod< | TextAnalysisAuthoringGetExportStatus200Response | TextAnalysisAuthoringGetExportStatusDefaultResponse @@ -276,7 +276,7 @@ export interface GetExportStatus { export interface GetImportStatus { /** Gets the status for an import. */ get( - options?: TextAnalysisAuthoringGetImportStatusParameters + options?: TextAnalysisAuthoringGetImportStatusParameters, ): StreamableMethod< | TextAnalysisAuthoringGetImportStatus200Response | TextAnalysisAuthoringGetImportStatusDefaultResponse @@ -286,7 +286,7 @@ export interface GetImportStatus { export interface ListTrainedModels { /** Lists the trained models belonging to a project. */ get( - options?: TextAnalysisAuthoringListTrainedModelsParameters + options?: TextAnalysisAuthoringListTrainedModelsParameters, ): StreamableMethod< | TextAnalysisAuthoringListTrainedModels200Response | TextAnalysisAuthoringListTrainedModelsDefaultResponse @@ -296,14 +296,14 @@ export interface ListTrainedModels { export interface GetTrainedModel { /** Gets the details of a trained model. */ get( - options?: TextAnalysisAuthoringGetTrainedModelParameters + options?: TextAnalysisAuthoringGetTrainedModelParameters, ): StreamableMethod< | TextAnalysisAuthoringGetTrainedModel200Response | TextAnalysisAuthoringGetTrainedModelDefaultResponse >; /** Deletes an existing trained model. */ delete( - options?: TextAnalysisAuthoringDeleteTrainedModelParameters + options?: TextAnalysisAuthoringDeleteTrainedModelParameters, ): StreamableMethod< | TextAnalysisAuthoringDeleteTrainedModel204Response | TextAnalysisAuthoringDeleteTrainedModelDefaultResponse @@ -313,7 +313,7 @@ export interface GetTrainedModel { export interface LoadSnapshot { /** Restores the snapshot of this trained model to be the current working directory of the project. */ post( - options?: TextAnalysisAuthoringLoadSnapshotParameters + options?: TextAnalysisAuthoringLoadSnapshotParameters, ): StreamableMethod< TextAnalysisAuthoringLoadSnapshot202Response | TextAnalysisAuthoringLoadSnapshotDefaultResponse >; @@ -322,7 +322,7 @@ export interface LoadSnapshot { export interface GetModelEvaluationResults { /** Gets the detailed results of the evaluation for a trained model. This includes the raw inference results for the data included in the evaluation process. */ get( - options: TextAnalysisAuthoringGetModelEvaluationResultsParameters + options: TextAnalysisAuthoringGetModelEvaluationResultsParameters, ): StreamableMethod< | TextAnalysisAuthoringGetModelEvaluationResults200Response | TextAnalysisAuthoringGetModelEvaluationResultsDefaultResponse @@ -332,7 +332,7 @@ export interface GetModelEvaluationResults { export interface GetModelEvaluationSummary { /** Gets the evaluation summary of a trained model. The summary includes high level performance measurements of the model e.g., F1, Precision, Recall, etc. */ get( - options?: TextAnalysisAuthoringGetModelEvaluationSummaryParameters + options?: TextAnalysisAuthoringGetModelEvaluationSummaryParameters, ): StreamableMethod< | TextAnalysisAuthoringGetModelEvaluationSummary200Response | TextAnalysisAuthoringGetModelEvaluationSummaryDefaultResponse @@ -342,7 +342,7 @@ export interface GetModelEvaluationSummary { export interface GetLoadSnapshotStatus { /** Gets the status for loading a snapshot. */ get( - options?: TextAnalysisAuthoringGetLoadSnapshotStatusParameters + options?: TextAnalysisAuthoringGetLoadSnapshotStatusParameters, ): StreamableMethod< | TextAnalysisAuthoringGetLoadSnapshotStatus200Response | TextAnalysisAuthoringGetLoadSnapshotStatusDefaultResponse @@ -352,7 +352,7 @@ export interface GetLoadSnapshotStatus { export interface ListDeploymentResources { /** Lists the deployments resources assigned to the project. */ get( - options?: TextAnalysisAuthoringListDeploymentResourcesParameters + options?: TextAnalysisAuthoringListDeploymentResourcesParameters, ): StreamableMethod< | TextAnalysisAuthoringListDeploymentResources200Response | TextAnalysisAuthoringListDeploymentResourcesDefaultResponse @@ -362,7 +362,7 @@ export interface ListDeploymentResources { export interface AssignDeploymentResources { /** Assign new Azure resources to a project to allow deploying new deployments to them. This API is available only via AAD authentication and not supported via subscription key authentication. For more details about AAD authentication, check here: https://learn.microsoft.com/en-us/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-azure-active-directory */ post( - options: TextAnalysisAuthoringAssignDeploymentResourcesParameters + options: TextAnalysisAuthoringAssignDeploymentResourcesParameters, ): StreamableMethod< | TextAnalysisAuthoringAssignDeploymentResources202Response | TextAnalysisAuthoringAssignDeploymentResourcesDefaultResponse @@ -372,7 +372,7 @@ export interface AssignDeploymentResources { export interface UnassignDeploymentResources { /** Unassign resources from a project. This disallows deploying new deployments to these resources, and deletes existing deployments assigned to them. */ post( - options: TextAnalysisAuthoringUnassignDeploymentResourcesParameters + options: TextAnalysisAuthoringUnassignDeploymentResourcesParameters, ): StreamableMethod< | TextAnalysisAuthoringUnassignDeploymentResources202Response | TextAnalysisAuthoringUnassignDeploymentResourcesDefaultResponse @@ -382,7 +382,7 @@ export interface UnassignDeploymentResources { export interface GetAssignDeploymentResourcesStatus { /** Gets the status of an existing assign deployment resources job. */ get( - options?: TextAnalysisAuthoringGetAssignDeploymentResourcesStatusParameters + options?: TextAnalysisAuthoringGetAssignDeploymentResourcesStatusParameters, ): StreamableMethod< | TextAnalysisAuthoringGetAssignDeploymentResourcesStatus200Response | TextAnalysisAuthoringGetAssignDeploymentResourcesStatusDefaultResponse @@ -392,7 +392,7 @@ export interface GetAssignDeploymentResourcesStatus { export interface GetUnassignDeploymentResourcesStatus { /** Gets the status of an existing unassign deployment resources job. */ get( - options?: TextAnalysisAuthoringGetUnassignDeploymentResourcesStatusParameters + options?: TextAnalysisAuthoringGetUnassignDeploymentResourcesStatusParameters, ): StreamableMethod< | TextAnalysisAuthoringGetUnassignDeploymentResourcesStatus200Response | TextAnalysisAuthoringGetUnassignDeploymentResourcesStatusDefaultResponse @@ -402,7 +402,7 @@ export interface GetUnassignDeploymentResourcesStatus { export interface ListTrainingJobs { /** Lists the non-expired training jobs created for a project. */ get( - options?: TextAnalysisAuthoringListTrainingJobsParameters + options?: TextAnalysisAuthoringListTrainingJobsParameters, ): StreamableMethod< | TextAnalysisAuthoringListTrainingJobs200Response | TextAnalysisAuthoringListTrainingJobsDefaultResponse @@ -412,7 +412,7 @@ export interface ListTrainingJobs { export interface GetTrainingStatus { /** Gets the status for a training job. */ get( - options?: TextAnalysisAuthoringGetTrainingStatusParameters + options?: TextAnalysisAuthoringGetTrainingStatusParameters, ): StreamableMethod< | TextAnalysisAuthoringGetTrainingStatus200Response | TextAnalysisAuthoringGetTrainingStatusDefaultResponse @@ -422,7 +422,7 @@ export interface GetTrainingStatus { export interface CancelTrainingJob { /** Triggers a cancellation for a running training job. */ post( - options?: TextAnalysisAuthoringCancelTrainingJobParameters + options?: TextAnalysisAuthoringCancelTrainingJobParameters, ): StreamableMethod< | TextAnalysisAuthoringCancelTrainingJob202Response | TextAnalysisAuthoringCancelTrainingJobDefaultResponse @@ -432,7 +432,7 @@ export interface CancelTrainingJob { export interface GetProjectDeletionStatus { /** Gets the status for a project deletion job. */ get( - options?: TextAnalysisAuthoringGetProjectDeletionStatusParameters + options?: TextAnalysisAuthoringGetProjectDeletionStatusParameters, ): StreamableMethod< | TextAnalysisAuthoringGetProjectDeletionStatus200Response | TextAnalysisAuthoringGetProjectDeletionStatusDefaultResponse @@ -442,7 +442,7 @@ export interface GetProjectDeletionStatus { export interface ListAssignedResourceDeployments { /** Lists the deployments to which an Azure resource is assigned. This doesn't return deployments belonging to projects owned by this resource. It only returns deployments belonging to projects owned by other resources. */ get( - options?: TextAnalysisAuthoringListAssignedResourceDeploymentsParameters + options?: TextAnalysisAuthoringListAssignedResourceDeploymentsParameters, ): StreamableMethod< | TextAnalysisAuthoringListAssignedResourceDeployments200Response | TextAnalysisAuthoringListAssignedResourceDeploymentsDefaultResponse @@ -452,7 +452,7 @@ export interface ListAssignedResourceDeployments { export interface GetSupportedLanguages { /** Lists the supported languages. */ get( - options?: TextAnalysisAuthoringGetSupportedLanguagesParameters + options?: TextAnalysisAuthoringGetSupportedLanguagesParameters, ): StreamableMethod< | TextAnalysisAuthoringGetSupportedLanguages200Response | TextAnalysisAuthoringGetSupportedLanguagesDefaultResponse @@ -462,7 +462,7 @@ export interface GetSupportedLanguages { export interface ListTrainingConfigVersions { /** Lists the support training config version for a given project type. */ get( - options: TextAnalysisAuthoringListTrainingConfigVersionsParameters + options: TextAnalysisAuthoringListTrainingConfigVersionsParameters, ): StreamableMethod< | TextAnalysisAuthoringListTrainingConfigVersions200Response | TextAnalysisAuthoringListTrainingConfigVersionsDefaultResponse @@ -483,151 +483,151 @@ export interface Routes { /** Resource for '/authoring/analyze-text/projects/\{projectName\}/deployments' has methods for the following verbs: get */ ( path: "/authoring/analyze-text/projects/{projectName}/deployments", - projectName: string + projectName: string, ): ListDeployments; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/deployments/:swap' has methods for the following verbs: post */ ( path: "/authoring/analyze-text/projects/{projectName}/deployments/:swap", - projectName: string + projectName: string, ): SwapDeployments; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/deployments/\{deploymentName\}' has methods for the following verbs: get, put, delete */ ( path: "/authoring/analyze-text/projects/{projectName}/deployments/{deploymentName}", projectName: string, - deploymentName: string + deploymentName: string, ): GetDeployment; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/deployments/\{deploymentName\}/:delete-from-resources' has methods for the following verbs: post */ ( path: "/authoring/analyze-text/projects/{projectName}/deployments/{deploymentName}/:delete-from-resources", projectName: string, - deploymentName: string + deploymentName: string, ): DeleteDeploymentFromResources; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/deployments/\{deploymentName\}/delete-from-resources/jobs/\{jobId\}' has methods for the following verbs: get */ ( path: "/authoring/analyze-text/projects/{projectName}/deployments/{deploymentName}/delete-from-resources/jobs/{jobId}", projectName: string, deploymentName: string, - jobId: string + jobId: string, ): GetDeploymentDeleteFromResourcesStatus; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/deployments/\{deploymentName\}/jobs/\{jobId\}' has methods for the following verbs: get */ ( path: "/authoring/analyze-text/projects/{projectName}/deployments/{deploymentName}/jobs/{jobId}", projectName: string, deploymentName: string, - jobId: string + jobId: string, ): GetDeploymentStatus; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/deployments/swap/jobs/\{jobId\}' has methods for the following verbs: get */ ( path: "/authoring/analyze-text/projects/{projectName}/deployments/swap/jobs/{jobId}", projectName: string, - jobId: string + jobId: string, ): GetSwapDeploymentsStatus; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/export/jobs/\{jobId\}' has methods for the following verbs: get */ ( path: "/authoring/analyze-text/projects/{projectName}/export/jobs/{jobId}", projectName: string, - jobId: string + jobId: string, ): GetExportStatus; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/import/jobs/\{jobId\}' has methods for the following verbs: get */ ( path: "/authoring/analyze-text/projects/{projectName}/import/jobs/{jobId}", projectName: string, - jobId: string + jobId: string, ): GetImportStatus; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/models' has methods for the following verbs: get */ ( path: "/authoring/analyze-text/projects/{projectName}/models", - projectName: string + projectName: string, ): ListTrainedModels; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/models/\{trainedModelLabel\}' has methods for the following verbs: get, delete */ ( path: "/authoring/analyze-text/projects/{projectName}/models/{trainedModelLabel}", projectName: string, - trainedModelLabel: string + trainedModelLabel: string, ): GetTrainedModel; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/models/\{trainedModelLabel\}/:load-snapshot' has methods for the following verbs: post */ ( path: "/authoring/analyze-text/projects/{projectName}/models/{trainedModelLabel}/:load-snapshot", projectName: string, - trainedModelLabel: string + trainedModelLabel: string, ): LoadSnapshot; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/models/\{trainedModelLabel\}/evaluation/result' has methods for the following verbs: get */ ( path: "/authoring/analyze-text/projects/{projectName}/models/{trainedModelLabel}/evaluation/result", projectName: string, - trainedModelLabel: string + trainedModelLabel: string, ): GetModelEvaluationResults; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/models/\{trainedModelLabel\}/evaluation/summary-result' has methods for the following verbs: get */ ( path: "/authoring/analyze-text/projects/{projectName}/models/{trainedModelLabel}/evaluation/summary-result", projectName: string, - trainedModelLabel: string + trainedModelLabel: string, ): GetModelEvaluationSummary; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/models/\{trainedModelLabel\}/load-snapshot/jobs/\{jobId\}' has methods for the following verbs: get */ ( path: "/authoring/analyze-text/projects/{projectName}/models/{trainedModelLabel}/load-snapshot/jobs/{jobId}", projectName: string, trainedModelLabel: string, - jobId: string + jobId: string, ): GetLoadSnapshotStatus; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/resources' has methods for the following verbs: get */ ( path: "/authoring/analyze-text/projects/{projectName}/resources", - projectName: string + projectName: string, ): ListDeploymentResources; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/resources/:assign' has methods for the following verbs: post */ ( path: "/authoring/analyze-text/projects/{projectName}/resources/:assign", - projectName: string + projectName: string, ): AssignDeploymentResources; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/resources/:unassign' has methods for the following verbs: post */ ( path: "/authoring/analyze-text/projects/{projectName}/resources/:unassign", - projectName: string + projectName: string, ): UnassignDeploymentResources; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/resources/assign/jobs/\{jobId\}' has methods for the following verbs: get */ ( path: "/authoring/analyze-text/projects/{projectName}/resources/assign/jobs/{jobId}", projectName: string, - jobId: string + jobId: string, ): GetAssignDeploymentResourcesStatus; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/resources/unassign/jobs/\{jobId\}' has methods for the following verbs: get */ ( path: "/authoring/analyze-text/projects/{projectName}/resources/unassign/jobs/{jobId}", projectName: string, - jobId: string + jobId: string, ): GetUnassignDeploymentResourcesStatus; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/train/jobs' has methods for the following verbs: get */ ( path: "/authoring/analyze-text/projects/{projectName}/train/jobs", - projectName: string + projectName: string, ): ListTrainingJobs; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/train/jobs/\{jobId\}' has methods for the following verbs: get */ ( path: "/authoring/analyze-text/projects/{projectName}/train/jobs/{jobId}", projectName: string, - jobId: string + jobId: string, ): GetTrainingStatus; /** Resource for '/authoring/analyze-text/projects/\{projectName\}/train/jobs/\{jobId\}/:cancel' has methods for the following verbs: post */ ( path: "/authoring/analyze-text/projects/{projectName}/train/jobs/{jobId}/:cancel", projectName: string, - jobId: string + jobId: string, ): CancelTrainingJob; /** Resource for '/authoring/analyze-text/projects/global/deletion-jobs/\{jobId\}' has methods for the following verbs: get */ ( path: "/authoring/analyze-text/projects/global/deletion-jobs/{jobId}", - jobId: string + jobId: string, ): GetProjectDeletionStatus; /** Resource for '/authoring/analyze-text/projects/global/deployments/resources' has methods for the following verbs: get */ ( - path: "/authoring/analyze-text/projects/global/deployments/resources" + path: "/authoring/analyze-text/projects/global/deployments/resources", ): ListAssignedResourceDeployments; /** Resource for '/authoring/analyze-text/projects/global/languages' has methods for the following verbs: get */ (path: "/authoring/analyze-text/projects/global/languages"): GetSupportedLanguages; /** Resource for '/authoring/analyze-text/projects/global/training-config-versions' has methods for the following verbs: get */ ( - path: "/authoring/analyze-text/projects/global/training-config-versions" + path: "/authoring/analyze-text/projects/global/training-config-versions", ): ListTrainingConfigVersions; } diff --git a/sdk/cognitivelanguage/ai-language-textauthoring/src/isUnexpected.ts b/sdk/cognitivelanguage/ai-language-textauthoring/src/isUnexpected.ts index da3a21a5f0ae..bc7bce2d994f 100644 --- a/sdk/cognitivelanguage/ai-language-textauthoring/src/isUnexpected.ts +++ b/sdk/cognitivelanguage/ai-language-textauthoring/src/isUnexpected.ts @@ -143,182 +143,182 @@ const responseMap: Record = { export function isUnexpected( response: | TextAnalysisAuthoringListProjects200Response - | TextAnalysisAuthoringListProjectsDefaultResponse + | TextAnalysisAuthoringListProjectsDefaultResponse, ): response is TextAnalysisAuthoringListProjectsDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringCreateProject200Response | TextAnalysisAuthoringCreateProject201Response - | TextAnalysisAuthoringCreateProjectDefaultResponse + | TextAnalysisAuthoringCreateProjectDefaultResponse, ): response is TextAnalysisAuthoringCreateProjectDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringGetProject200Response - | TextAnalysisAuthoringGetProjectDefaultResponse + | TextAnalysisAuthoringGetProjectDefaultResponse, ): response is TextAnalysisAuthoringGetProjectDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringDeleteProject202Response - | TextAnalysisAuthoringDeleteProjectDefaultResponse + | TextAnalysisAuthoringDeleteProjectDefaultResponse, ): response is TextAnalysisAuthoringDeleteProjectDefaultResponse; export function isUnexpected( - response: TextAnalysisAuthoringExport202Response | TextAnalysisAuthoringExportDefaultResponse + response: TextAnalysisAuthoringExport202Response | TextAnalysisAuthoringExportDefaultResponse, ): response is TextAnalysisAuthoringExportDefaultResponse; export function isUnexpected( - response: TextAnalysisAuthoringImport202Response | TextAnalysisAuthoringImportDefaultResponse + response: TextAnalysisAuthoringImport202Response | TextAnalysisAuthoringImportDefaultResponse, ): response is TextAnalysisAuthoringImportDefaultResponse; export function isUnexpected( - response: TextAnalysisAuthoringTrain202Response | TextAnalysisAuthoringTrainDefaultResponse + response: TextAnalysisAuthoringTrain202Response | TextAnalysisAuthoringTrainDefaultResponse, ): response is TextAnalysisAuthoringTrainDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringListDeployments200Response - | TextAnalysisAuthoringListDeploymentsDefaultResponse + | TextAnalysisAuthoringListDeploymentsDefaultResponse, ): response is TextAnalysisAuthoringListDeploymentsDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringSwapDeployments202Response - | TextAnalysisAuthoringSwapDeploymentsDefaultResponse + | TextAnalysisAuthoringSwapDeploymentsDefaultResponse, ): response is TextAnalysisAuthoringSwapDeploymentsDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringGetDeployment200Response - | TextAnalysisAuthoringGetDeploymentDefaultResponse + | TextAnalysisAuthoringGetDeploymentDefaultResponse, ): response is TextAnalysisAuthoringGetDeploymentDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringDeployProject202Response - | TextAnalysisAuthoringDeployProjectDefaultResponse + | TextAnalysisAuthoringDeployProjectDefaultResponse, ): response is TextAnalysisAuthoringDeployProjectDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringDeleteDeployment202Response - | TextAnalysisAuthoringDeleteDeploymentDefaultResponse + | TextAnalysisAuthoringDeleteDeploymentDefaultResponse, ): response is TextAnalysisAuthoringDeleteDeploymentDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringDeleteDeploymentFromResources202Response - | TextAnalysisAuthoringDeleteDeploymentFromResourcesDefaultResponse + | TextAnalysisAuthoringDeleteDeploymentFromResourcesDefaultResponse, ): response is TextAnalysisAuthoringDeleteDeploymentFromResourcesDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringGetDeploymentDeleteFromResourcesStatus200Response - | TextAnalysisAuthoringGetDeploymentDeleteFromResourcesStatusDefaultResponse + | TextAnalysisAuthoringGetDeploymentDeleteFromResourcesStatusDefaultResponse, ): response is TextAnalysisAuthoringGetDeploymentDeleteFromResourcesStatusDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringGetDeploymentStatus200Response - | TextAnalysisAuthoringGetDeploymentStatusDefaultResponse + | TextAnalysisAuthoringGetDeploymentStatusDefaultResponse, ): response is TextAnalysisAuthoringGetDeploymentStatusDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringGetSwapDeploymentsStatus200Response - | TextAnalysisAuthoringGetSwapDeploymentsStatusDefaultResponse + | TextAnalysisAuthoringGetSwapDeploymentsStatusDefaultResponse, ): response is TextAnalysisAuthoringGetSwapDeploymentsStatusDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringGetExportStatus200Response - | TextAnalysisAuthoringGetExportStatusDefaultResponse + | TextAnalysisAuthoringGetExportStatusDefaultResponse, ): response is TextAnalysisAuthoringGetExportStatusDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringGetImportStatus200Response - | TextAnalysisAuthoringGetImportStatusDefaultResponse + | TextAnalysisAuthoringGetImportStatusDefaultResponse, ): response is TextAnalysisAuthoringGetImportStatusDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringListTrainedModels200Response - | TextAnalysisAuthoringListTrainedModelsDefaultResponse + | TextAnalysisAuthoringListTrainedModelsDefaultResponse, ): response is TextAnalysisAuthoringListTrainedModelsDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringGetTrainedModel200Response - | TextAnalysisAuthoringGetTrainedModelDefaultResponse + | TextAnalysisAuthoringGetTrainedModelDefaultResponse, ): response is TextAnalysisAuthoringGetTrainedModelDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringDeleteTrainedModel204Response - | TextAnalysisAuthoringDeleteTrainedModelDefaultResponse + | TextAnalysisAuthoringDeleteTrainedModelDefaultResponse, ): response is TextAnalysisAuthoringDeleteTrainedModelDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringLoadSnapshot202Response - | TextAnalysisAuthoringLoadSnapshotDefaultResponse + | TextAnalysisAuthoringLoadSnapshotDefaultResponse, ): response is TextAnalysisAuthoringLoadSnapshotDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringGetModelEvaluationResults200Response - | TextAnalysisAuthoringGetModelEvaluationResultsDefaultResponse + | TextAnalysisAuthoringGetModelEvaluationResultsDefaultResponse, ): response is TextAnalysisAuthoringGetModelEvaluationResultsDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringGetModelEvaluationSummary200Response - | TextAnalysisAuthoringGetModelEvaluationSummaryDefaultResponse + | TextAnalysisAuthoringGetModelEvaluationSummaryDefaultResponse, ): response is TextAnalysisAuthoringGetModelEvaluationSummaryDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringGetLoadSnapshotStatus200Response - | TextAnalysisAuthoringGetLoadSnapshotStatusDefaultResponse + | TextAnalysisAuthoringGetLoadSnapshotStatusDefaultResponse, ): response is TextAnalysisAuthoringGetLoadSnapshotStatusDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringListDeploymentResources200Response - | TextAnalysisAuthoringListDeploymentResourcesDefaultResponse + | TextAnalysisAuthoringListDeploymentResourcesDefaultResponse, ): response is TextAnalysisAuthoringListDeploymentResourcesDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringAssignDeploymentResources202Response - | TextAnalysisAuthoringAssignDeploymentResourcesDefaultResponse + | TextAnalysisAuthoringAssignDeploymentResourcesDefaultResponse, ): response is TextAnalysisAuthoringAssignDeploymentResourcesDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringUnassignDeploymentResources202Response - | TextAnalysisAuthoringUnassignDeploymentResourcesDefaultResponse + | TextAnalysisAuthoringUnassignDeploymentResourcesDefaultResponse, ): response is TextAnalysisAuthoringUnassignDeploymentResourcesDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringGetAssignDeploymentResourcesStatus200Response - | TextAnalysisAuthoringGetAssignDeploymentResourcesStatusDefaultResponse + | TextAnalysisAuthoringGetAssignDeploymentResourcesStatusDefaultResponse, ): response is TextAnalysisAuthoringGetAssignDeploymentResourcesStatusDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringGetUnassignDeploymentResourcesStatus200Response - | TextAnalysisAuthoringGetUnassignDeploymentResourcesStatusDefaultResponse + | TextAnalysisAuthoringGetUnassignDeploymentResourcesStatusDefaultResponse, ): response is TextAnalysisAuthoringGetUnassignDeploymentResourcesStatusDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringListTrainingJobs200Response - | TextAnalysisAuthoringListTrainingJobsDefaultResponse + | TextAnalysisAuthoringListTrainingJobsDefaultResponse, ): response is TextAnalysisAuthoringListTrainingJobsDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringGetTrainingStatus200Response - | TextAnalysisAuthoringGetTrainingStatusDefaultResponse + | TextAnalysisAuthoringGetTrainingStatusDefaultResponse, ): response is TextAnalysisAuthoringGetTrainingStatusDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringCancelTrainingJob202Response - | TextAnalysisAuthoringCancelTrainingJobDefaultResponse + | TextAnalysisAuthoringCancelTrainingJobDefaultResponse, ): response is TextAnalysisAuthoringCancelTrainingJobDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringGetProjectDeletionStatus200Response - | TextAnalysisAuthoringGetProjectDeletionStatusDefaultResponse + | TextAnalysisAuthoringGetProjectDeletionStatusDefaultResponse, ): response is TextAnalysisAuthoringGetProjectDeletionStatusDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringListAssignedResourceDeployments200Response - | TextAnalysisAuthoringListAssignedResourceDeploymentsDefaultResponse + | TextAnalysisAuthoringListAssignedResourceDeploymentsDefaultResponse, ): response is TextAnalysisAuthoringListAssignedResourceDeploymentsDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringGetSupportedLanguages200Response - | TextAnalysisAuthoringGetSupportedLanguagesDefaultResponse + | TextAnalysisAuthoringGetSupportedLanguagesDefaultResponse, ): response is TextAnalysisAuthoringGetSupportedLanguagesDefaultResponse; export function isUnexpected( response: | TextAnalysisAuthoringListTrainingConfigVersions200Response - | TextAnalysisAuthoringListTrainingConfigVersionsDefaultResponse + | TextAnalysisAuthoringListTrainingConfigVersionsDefaultResponse, ): response is TextAnalysisAuthoringListTrainingConfigVersionsDefaultResponse; export function isUnexpected( response: @@ -396,7 +396,7 @@ export function isUnexpected( | TextAnalysisAuthoringGetSupportedLanguages200Response | TextAnalysisAuthoringGetSupportedLanguagesDefaultResponse | TextAnalysisAuthoringListTrainingConfigVersions200Response - | TextAnalysisAuthoringListTrainingConfigVersionsDefaultResponse + | TextAnalysisAuthoringListTrainingConfigVersionsDefaultResponse, ): response is | TextAnalysisAuthoringListProjectsDefaultResponse | TextAnalysisAuthoringCreateProjectDefaultResponse diff --git a/sdk/cognitivelanguage/ai-language-textauthoring/src/paginateHelper.ts b/sdk/cognitivelanguage/ai-language-textauthoring/src/paginateHelper.ts index 477bace4a37f..f0d91c952cda 100644 --- a/sdk/cognitivelanguage/ai-language-textauthoring/src/paginateHelper.ts +++ b/sdk/cognitivelanguage/ai-language-textauthoring/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/cognitivelanguage/ai-language-textauthoring/src/pollingHelper.ts b/sdk/cognitivelanguage/ai-language-textauthoring/src/pollingHelper.ts index fe2776d3cc16..5164627d9696 100644 --- a/sdk/cognitivelanguage/ai-language-textauthoring/src/pollingHelper.ts +++ b/sdk/cognitivelanguage/ai-language-textauthoring/src/pollingHelper.ts @@ -21,7 +21,7 @@ import { export function getLongRunningPoller( client: Client, initialResponse: TResult, - options: LroEngineOptions> = {} + options: LroEngineOptions> = {}, ): PollerLike, TResult> { const poller: LongRunningOperation = { requestMethod: initialResponse.request.method, diff --git a/sdk/cognitivelanguage/ai-language-textauthoring/src/textAuthoringClient.ts b/sdk/cognitivelanguage/ai-language-textauthoring/src/textAuthoringClient.ts index 23ea225c2927..54dae169181b 100644 --- a/sdk/cognitivelanguage/ai-language-textauthoring/src/textAuthoringClient.ts +++ b/sdk/cognitivelanguage/ai-language-textauthoring/src/textAuthoringClient.ts @@ -13,7 +13,7 @@ import { TextAuthoringClient } from "./clientDefinitions"; export default function createAuthoringClient( Endpoint: string, credentials: TokenCredential | KeyCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): TextAuthoringClient { const baseUrl = options.baseUrl ?? `${Endpoint}/language`; options.apiVersion = options.apiVersion ?? "2022-10-01-preview"; diff --git a/sdk/cognitivelanguage/ai-language-textauthoring/test/public/helloWorld.spec.ts b/sdk/cognitivelanguage/ai-language-textauthoring/test/public/helloWorld.spec.ts index 04a1c53227b2..3c942de37cac 100644 --- a/sdk/cognitivelanguage/ai-language-textauthoring/test/public/helloWorld.spec.ts +++ b/sdk/cognitivelanguage/ai-language-textauthoring/test/public/helloWorld.spec.ts @@ -10,7 +10,7 @@ describe(`Authoring Test`, function (this: Suite) { try { const client = createAuthoringClient( "Random Endpoint", - new AzureKeyCredential("Random API Key") + new AzureKeyCredential("Random API Key"), ); client.path("/authoring/analyze-text/projects").get(); throw new Error("Test failure"); diff --git a/sdk/cognitivelanguage/perf-tests/ai-language-text/package.json b/sdk/cognitivelanguage/perf-tests/ai-language-text/package.json index 0ffedc2894cf..b557526b2fe9 100644 --- a/sdk/cognitivelanguage/perf-tests/ai-language-text/package.json +++ b/sdk/cognitivelanguage/perf-tests/ai-language-text/package.json @@ -16,11 +16,11 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -29,9 +29,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/cognitivelanguage/perf-tests/ai-language-text/test/languageDetection.spec.ts b/sdk/cognitivelanguage/perf-tests/ai-language-text/test/languageDetection.spec.ts index 4b03ef7fab42..e358b1888614 100644 --- a/sdk/cognitivelanguage/perf-tests/ai-language-text/test/languageDetection.spec.ts +++ b/sdk/cognitivelanguage/perf-tests/ai-language-text/test/languageDetection.spec.ts @@ -31,7 +31,7 @@ export class LanguageDetectionTest extends PerfTest { return tracingClient.withSpan( "AlphaIdsClient-getConfiguration", options, async (updatedOptions) => { return this.client.alphaIds.getDynamicAlphaIdConfiguration(updatedOptions); - } + }, ); } public upsertDynamicAlphaIdConfiguration( enabled: boolean, - options: UpsertConfigurationOptions = {} + options: UpsertConfigurationOptions = {}, ): Promise { return tracingClient.withSpan( "AlphaIdsClient-upsertConfiguration", options, async (updatedOptions) => { return this.client.alphaIds.upsertDynamicAlphaIdConfiguration(enabled, updatedOptions); - } + }, ); } public getAlphaIds(options: ListAlphaIdsOptions = {}): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "AlphaIdsClient-listAlphaIds", - options + options, ); try { return this.client.alphaIds.listAlphaIds(updatedOptions); @@ -116,11 +116,11 @@ export class AlphaIdsClient { } public getDynamicAlphaIdCountries( - options: GetDynamicAlphaIdCountriesOptions = {} + options: GetDynamicAlphaIdCountriesOptions = {}, ): Promise { const { span, updatedOptions } = tracingClient.startSpan( "AlphaIdsClient-getDynamicAlphaIdCountries", - options + options, ); try { return this.client.alphaIds.getDynamicAlphaIdCountries(updatedOptions); @@ -136,11 +136,11 @@ export class AlphaIdsClient { } public getPreRegisteredAlphaIdCountries( - options: GetPreRegisteredAlphaIdCountriesOptions = {} + options: GetPreRegisteredAlphaIdCountriesOptions = {}, ): Promise { const { span, updatedOptions } = tracingClient.startSpan( "AlphaIdsClient-getPreRegisteredAlphaIdCountries", - options + options, ); try { return this.client.alphaIds.getPreRegisteredAlphaIdCountries(updatedOptions); diff --git a/sdk/communication/communication-alpha-ids/test/internal/generated_client.spec.ts b/sdk/communication/communication-alpha-ids/test/internal/generated_client.spec.ts index 047890a75330..b4d5efa03044 100644 --- a/sdk/communication/communication-alpha-ids/test/internal/generated_client.spec.ts +++ b/sdk/communication/communication-alpha-ids/test/internal/generated_client.spec.ts @@ -18,7 +18,7 @@ import { HttpClient, PipelineRequest, PipelineResponse } from "@azure/core-rest- export const createMockHttpClient = >( status: number = 200, - parsedBody?: T + parsedBody?: T, ): HttpClient => { return { async sendRequest(request: PipelineRequest): Promise { @@ -34,7 +34,7 @@ export const createMockHttpClient = >( export const userAgentPolicy: (policyName: string, customHeader: string) => PipelinePolicy = ( customHeader: string, - policyName: string + policyName: string, ) => { return { name: policyName, @@ -97,15 +97,15 @@ describe("AlphaIdsGeneratedClient - constructor", function () { // verify bearer token policy exists, after explicitly adding it assert.isDefined( policies.find((p) => p.name === bearerTokenAuthenticationPolicyName), - "pipeline should have bearerTokenAuthenticationPolicyName" + "pipeline should have bearerTokenAuthenticationPolicyName", ); assert.isDefined( policies.find((p) => p.name === customHeaderPolicyName), - "pipeline should have customHeaderPolicyName" + "pipeline should have customHeaderPolicyName", ); assert.isDefined( policies.find((p) => p.name === "CustomApiVersionPolicy"), - "pipeline should have CustomApiVersionPolicy" + "pipeline should have CustomApiVersionPolicy", ); const spy = sinon.spy(mockHttpClient, "sendRequest"); diff --git a/sdk/communication/communication-alpha-ids/test/internal/headers.spec.ts b/sdk/communication/communication-alpha-ids/test/internal/headers.spec.ts index e19a4a2c339a..d1de2889024d 100644 --- a/sdk/communication/communication-alpha-ids/test/internal/headers.spec.ts +++ b/sdk/communication/communication-alpha-ids/test/internal/headers.spec.ts @@ -44,7 +44,7 @@ describe("AlphaIdsClient - headers", function () { const userAgentHeader = isNode ? "user-agent" : "x-ms-useragent"; assert.match( request.headers.get(userAgentHeader) as string, - new RegExp(`azsdk-js-communication-alpha-ids/${SDK_VERSION}`, "g") + new RegExp(`azsdk-js-communication-alpha-ids/${SDK_VERSION}`, "g"), ); }); @@ -57,7 +57,7 @@ describe("AlphaIdsClient - headers", function () { assert.isDefined(request.headers.get("authorization")); assert.match( request.headers.get("authorization") as string, - /HMAC-SHA256 SignedHeaders=.+&Signature=.+/ + /HMAC-SHA256 SignedHeaders=.+&Signature=.+/, ); }); @@ -74,7 +74,7 @@ describe("AlphaIdsClient - headers", function () { assert.isDefined(request.headers.get("authorization")); assert.match( request.headers.get("authorization") as string, - /HMAC-SHA256 SignedHeaders=.+&Signature=.+/ + /HMAC-SHA256 SignedHeaders=.+&Signature=.+/, ); }); @@ -111,7 +111,10 @@ describe("AlphaIdsClient - headers", function () { const userAgentHeader = isNode ? "user-agent" : "x-ms-useragent"; assert.match( request.headers.get(userAgentHeader) as string, - new RegExp(`alphaidsclient-headers-test azsdk-js-communication-alpha-ids/${SDK_VERSION}`, "g") + new RegExp( + `alphaidsclient-headers-test azsdk-js-communication-alpha-ids/${SDK_VERSION}`, + "g", + ), ); }); }); diff --git a/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts b/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts index 9d1e6961f20f..32683b41c578 100644 --- a/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts +++ b/sdk/communication/communication-alpha-ids/test/public/dynamicAlphaId.spec.ts @@ -33,14 +33,14 @@ describe(`AlphaIdsClient - manage configuration`, function () { try { const newConfig = await client.upsertDynamicAlphaIdConfiguration( config, - getConfigurationRequest + getConfigurationRequest, ); return newConfig; } catch (error) { assert.fail( `There was an error calling upsertDynamicAlphaIdConfiguration. MS-CV: ${configurationResponse?.headers.get( - "MS-CV" - )}, ${JSON.stringify(error)} ` + "MS-CV", + )}, ${JSON.stringify(error)} `, ); } }; @@ -58,8 +58,8 @@ describe(`AlphaIdsClient - manage configuration`, function () { } catch (error) { assert.fail( `There was an error calling getDynamicAlphaIdConfiguration. MS-CV: ${configurationResponse?.headers.get( - "MS-CV" - )}, ${JSON.stringify(error)}` + "MS-CV", + )}, ${JSON.stringify(error)}`, ); } }; @@ -78,8 +78,8 @@ describe(`AlphaIdsClient - manage configuration`, function () { } catch (error) { assert.fail( `There was an error calling getDynamicAlphaIdCountries. MS-CV: ${configurationResponse?.headers.get( - "MS-CV" - )}, ${JSON.stringify(error)}` + "MS-CV", + )}, ${JSON.stringify(error)}`, ); } }; @@ -94,7 +94,7 @@ describe(`AlphaIdsClient - manage configuration`, function () { assert.isTrue( configuration.enabled, `The expected configuration: true is different than the received configuration: false - CV: ${configurationResponse?.headers.get("MS-CV")}` + CV: ${configurationResponse?.headers.get("MS-CV")}`, ); configuration = await _getConfiguration(); @@ -105,7 +105,7 @@ describe(`AlphaIdsClient - manage configuration`, function () { assert.isFalse( configuration.enabled, `The expected configuration: false is different than the received configuration: true - CV: ${configurationResponse?.headers.get("MS-CV")}` + CV: ${configurationResponse?.headers.get("MS-CV")}`, ); }).timeout(15000); diff --git a/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts b/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts index a842fd478ad5..114f90d20f11 100644 --- a/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts +++ b/sdk/communication/communication-alpha-ids/test/public/preRegisteredAlphaId.spec.ts @@ -38,8 +38,8 @@ describe(`AlphaIdsClient - Preregistered Alpha Ids Operations`, function () { } catch (error) { assert.fail( `There was an error calling getAlphaIds. MS-CV: ${configurationResponse?.headers.get( - "MS-CV" - )}, ${JSON.stringify(error)}` + "MS-CV", + )}, ${JSON.stringify(error)}`, ); } @@ -63,8 +63,8 @@ describe(`AlphaIdsClient - Preregistered Alpha Ids Operations`, function () { } catch (error) { assert.fail( `There was an error calling getAlphaIds by page. MS-CV: ${configurationResponse?.headers.get( - "MS-CV" - )}, ${JSON.stringify(error)}` + "MS-CV", + )}, ${JSON.stringify(error)}`, ); } }).timeout(40000); @@ -85,8 +85,8 @@ describe(`AlphaIdsClient - Preregistered Alpha Ids Operations`, function () { } catch (error) { assert.fail( `There was an error calling getPreRegisteredAlphaIdCountries by page. MS-CV: ${configurationResponse?.headers.get( - "MS-CV" - )}, ${JSON.stringify(error)}` + "MS-CV", + )}, ${JSON.stringify(error)}`, ); } }).timeout(20000); diff --git a/sdk/communication/communication-alpha-ids/test/public/utils/mockHttpClients.ts b/sdk/communication/communication-alpha-ids/test/public/utils/mockHttpClients.ts index 9b63d06ad924..79fa0e900d3f 100644 --- a/sdk/communication/communication-alpha-ids/test/public/utils/mockHttpClients.ts +++ b/sdk/communication/communication-alpha-ids/test/public/utils/mockHttpClients.ts @@ -5,7 +5,7 @@ import { HttpClient, PipelineRequest, PipelineResponse } from "@azure/core-rest- export const createMockHttpClient = >( status: number = 200, - parsedBody?: T + parsedBody?: T, ): HttpClient => { return { async sendRequest(request: PipelineRequest): Promise { diff --git a/sdk/communication/communication-alpha-ids/test/public/utils/recordedClient.ts b/sdk/communication/communication-alpha-ids/test/public/utils/recordedClient.ts index 21cf8f78a7e4..8330b497da0c 100644 --- a/sdk/communication/communication-alpha-ids/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-alpha-ids/test/public/utils/recordedClient.ts @@ -53,7 +53,7 @@ export const recorderOptions: RecorderStartOptions = { }; export async function createRecordedClient( - context: Context + context: Context, ): Promise> { const recorder = new Recorder(context.currentTest); await recorder.start(recorderOptions); @@ -69,7 +69,7 @@ export async function createRecordedClient( position: "perCall", }, ], - }) + }), ), recorder, }; @@ -86,14 +86,14 @@ export function createMockToken(): { } export async function createRecordedClientWithToken( - context: Context + context: Context, ): Promise | undefined> { const recorder = new Recorder(context.currentTest); await recorder.start(recorderOptions); let credential: TokenCredential; const endpoint = parseConnectionString( - assertEnvironmentVariable("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING") + assertEnvironmentVariable("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING"), ).endpoint; if (isPlaybackMode()) { @@ -111,7 +111,7 @@ export async function createRecordedClientWithToken( position: "perCall", }, ], - }) + }), ), recorder, }; @@ -123,7 +123,7 @@ export async function createRecordedClientWithToken( credential = new ClientSecretCredential( assertEnvironmentVariable("AZURE_TENANT_ID"), assertEnvironmentVariable("AZURE_CLIENT_ID"), - assertEnvironmentVariable("AZURE_CLIENT_SECRET") + assertEnvironmentVariable("AZURE_CLIENT_SECRET"), ); } @@ -139,7 +139,7 @@ export async function createRecordedClientWithToken( position: "perCall", }, ], - }) + }), ), recorder, }; diff --git a/sdk/communication/communication-call-automation/package.json b/sdk/communication/communication-call-automation/package.json index 0d61d5a3db1c..43a4b3b9fcc2 100644 --- a/sdk/communication/communication-call-automation/package.json +++ b/sdk/communication/communication-call-automation/package.json @@ -17,11 +17,11 @@ "build:samples": "dev-tool samples publish --force", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md && rushx format", "integration-test:browser": "echo skipped", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -117,7 +117,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "ts-node": "^10.0.0", diff --git a/sdk/communication/communication-call-automation/src/callAutomationClient.ts b/sdk/communication/communication-call-automation/src/callAutomationClient.ts index 6152eb1536cc..484955e26142 100644 --- a/sdk/communication/communication-call-automation/src/callAutomationClient.ts +++ b/sdk/communication/communication-call-automation/src/callAutomationClient.ts @@ -86,13 +86,13 @@ export class CallAutomationClient { constructor( endpoint: string, credential: TokenCredential | KeyCredential, - options?: CallAutomationClientOptions + options?: CallAutomationClientOptions, ); constructor( connectionStringOrUrl: string, credentialOrOptions?: KeyCredential | TokenCredential | CallAutomationClientOptions, - maybeOptions: CallAutomationClientOptions = {} + maybeOptions: CallAutomationClientOptions = {}, ) { const options = isCallAutomationClientOptions(credentialOrOptions) ? credentialOrOptions @@ -123,7 +123,7 @@ export class CallAutomationClient { this.callAutomationApiClient = createCustomCallAutomationApiClient( credential, this.internalPipelineOptions, - this.endpoint + this.endpoint, ); this.sourceIdentity = communicationUserIdentifierModelConverter(options.sourceIdentity); @@ -139,7 +139,7 @@ export class CallAutomationClient { this.endpoint, this.credential, this.callAutomationEventProcessor, - this.internalPipelineOptions + this.internalPipelineOptions, ); } @@ -166,7 +166,7 @@ export class CallAutomationClient { private async createCallInternal( request: CreateCallRequest, - options?: CreateCallOptions + options?: CreateCallOptions, ): Promise { const optionsInternal = { ...options, @@ -183,7 +183,7 @@ export class CallAutomationClient { source: source ? communicationIdentifierConverter(source) : undefined, answeredby: communicationUserIdentifierConverter(answeredBy), targetParticipants: targets?.map((returnedTarget) => - communicationIdentifierConverter(returnedTarget) + communicationIdentifierConverter(returnedTarget), ), sourceCallerIdNumber: sourceCallerIdNumber ? phoneNumberIdentifierConverter(sourceCallerIdNumber) @@ -194,7 +194,7 @@ export class CallAutomationClient { this.endpoint, this.credential, this.callAutomationEventProcessor, - this.internalPipelineOptions + this.internalPipelineOptions, ); const createCallResult: CreateCallResult = { callConnectionProperties: callConnectionPropertiesDto, @@ -214,7 +214,7 @@ export class CallAutomationClient { } }, abortSignal, - timeoutInMs + timeoutInMs, ); return createCallEventResult; @@ -234,7 +234,7 @@ export class CallAutomationClient { public async createCall( targetParticipant: CallInvite, callbackUrl: string, - options: CreateCallOptions = {} + options: CreateCallOptions = {}, ): Promise { const request: CreateCallRequest = { source: this.sourceIdentity, @@ -245,10 +245,10 @@ export class CallAutomationClient { mediaStreamingConfiguration: options.mediaStreamingConfiguration, transcriptionConfiguration: options.transcriptionConfiguration, customCallingContext: this.createCustomCallingContextInternal( - targetParticipant.customCallingContext! + targetParticipant.customCallingContext!, ), sourceCallerIdNumber: PhoneNumberIdentifierModelConverter( - targetParticipant.sourceCallIdNumber + targetParticipant.sourceCallIdNumber, ), sourceDisplayName: targetParticipant.sourceDisplayName, }; @@ -265,7 +265,7 @@ export class CallAutomationClient { public async createGroupCall( targetParticipants: CommunicationIdentifier[], callbackUrl: string, - options: CreateCallOptions = {} + options: CreateCallOptions = {}, ): Promise { const request: CreateCallRequest = { source: this.sourceIdentity, @@ -290,7 +290,7 @@ export class CallAutomationClient { public async answerCall( incomingCallContext: string, callbackUrl: string, - options: AnswerCallOptions = {} + options: AnswerCallOptions = {}, ): Promise { const { callIntelligenceOptions, @@ -332,7 +332,7 @@ export class CallAutomationClient { this.endpoint, this.credential, this.callAutomationEventProcessor, - this.internalPipelineOptions + this.internalPipelineOptions, ); const answerCallResult: AnswerCallResult = { callConnectionProperties: callConnectionProperties, @@ -352,7 +352,7 @@ export class CallAutomationClient { } }, abortSignal, - timeoutInMs + timeoutInMs, ); return answerCallEventResult; }, @@ -372,13 +372,13 @@ export class CallAutomationClient { public async redirectCall( incomingCallContext: string, targetParticipant: CallInvite, - options: RedirectCallOptions = {} + options: RedirectCallOptions = {}, ): Promise { const request: RedirectCallRequest = { incomingCallContext: incomingCallContext, target: communicationIdentifierModelConverter(targetParticipant.targetParticipant), customCallingContext: this.createCustomCallingContextInternal( - targetParticipant.customCallingContext! + targetParticipant.customCallingContext!, ), }; const optionsInternal = { @@ -398,7 +398,7 @@ export class CallAutomationClient { */ public async rejectCall( incomingCallContext: string, - options: RejectCallOptions = {} + options: RejectCallOptions = {}, ): Promise { const request: RejectCallRequest = { incomingCallContext: incomingCallContext, @@ -414,7 +414,7 @@ export class CallAutomationClient { } private createCustomCallingContextInternal( - customCallingContext: CustomCallingContext + customCallingContext: CustomCallingContext, ): CustomCallingContextInternal { const sipHeaders: { [key: string]: string } = {}; const voipHeaders: { [key: string]: string } = {}; diff --git a/sdk/communication/communication-call-automation/src/callAutomationEventParser.ts b/sdk/communication/communication-call-automation/src/callAutomationEventParser.ts index 7f397395894f..d03566852b62 100644 --- a/sdk/communication/communication-call-automation/src/callAutomationEventParser.ts +++ b/sdk/communication/communication-call-automation/src/callAutomationEventParser.ts @@ -46,7 +46,7 @@ const serializer = createSerializer(); * Helper function for parsing Acs callback events. */ export function parseCallAutomationEvent( - encodedEvents: string | Record + encodedEvents: string | Record, ): CallAutomationEvent { const decodedInput = parseAndWrap(encodedEvents); @@ -189,7 +189,7 @@ function participantsParserForEvent(data: any): any { return { ...rest, participants: participants?.map((participant: CallParticipantInternal) => - callParticipantConverter(participant) + callParticipantConverter(participant), ), }; } diff --git a/sdk/communication/communication-call-automation/src/callConnection.ts b/sdk/communication/communication-call-automation/src/callConnection.ts index 83225b5fd11b..f53514287da6 100644 --- a/sdk/communication/communication-call-automation/src/callConnection.ts +++ b/sdk/communication/communication-call-automation/src/callConnection.ts @@ -72,12 +72,12 @@ export class CallConnection { endpoint: string, credential: KeyCredential | TokenCredential, eventProcessor: CallAutomationEventProcessor, - options?: CallAutomationApiClientOptionalParams + options?: CallAutomationApiClientOptionalParams, ) { this.callAutomationApiClient = createCustomCallAutomationApiClient( credential, options, - endpoint + endpoint, ); this.callConnectionId = callConnectionId; this.callConnection = new CallConnectionImpl(this.callAutomationApiClient); @@ -96,7 +96,7 @@ export class CallConnection { this.endpoint, this.credential, this.callAutomationEventProcessor, - this.callAutomationApiClientOptions + this.callAutomationApiClientOptions, ); } @@ -104,7 +104,7 @@ export class CallConnection { * Get call connection properties of the call */ public async getCallConnectionProperties( - options: GetCallConnectionPropertiesOptions = {} + options: GetCallConnectionPropertiesOptions = {}, ): Promise { const { targets, sourceCallerIdNumber, answeredBy, source, ...result } = await this.callConnection.getCall(this.callConnectionId, options); @@ -146,7 +146,7 @@ export class CallConnection { */ public async getParticipant( targetParticipant: CommunicationIdentifier, - options: GetParticipantOptions = {} + options: GetParticipantOptions = {}, ): Promise { let rawId: string | undefined = communicationIdentifierModelConverter(targetParticipant).rawId; rawId = rawId === undefined ? "" : rawId; @@ -165,7 +165,7 @@ export class CallConnection { * Get all participants from the call */ public async listParticipants( - options: GetParticipantOptions = {} + options: GetParticipantOptions = {}, ): Promise { const result = this.callConnection.listParticipants(this.callConnectionId, options); const participants = []; @@ -185,7 +185,7 @@ export class CallConnection { } private createCustomCallingContextInternal( - customCallingContext: CustomCallingContext + customCallingContext: CustomCallingContext, ): CustomCallingContextInternal { const sipHeaders: { [key: string]: string } = {}; const voipHeaders: { [key: string]: string } = {}; @@ -210,19 +210,19 @@ export class CallConnection { */ public async addParticipant( targetParticipant: CallInvite, - options: AddParticipantOptions = {} + options: AddParticipantOptions = {}, ): Promise { const addParticipantRequest: AddParticipantRequest = { participantToAdd: communicationIdentifierModelConverter(targetParticipant.targetParticipant), sourceCallerIdNumber: PhoneNumberIdentifierModelConverter( - targetParticipant.sourceCallIdNumber + targetParticipant.sourceCallIdNumber, ), sourceDisplayName: targetParticipant.sourceDisplayName, invitationTimeoutInSeconds: options.invitationTimeoutInSeconds, operationContext: options.operationContext ? options.operationContext : randomUUID(), operationCallbackUri: options.operationCallbackUrl, customCallingContext: this.createCustomCallingContextInternal( - targetParticipant.customCallingContext! + targetParticipant.customCallingContext!, ), }; const optionsInternal = { @@ -233,7 +233,7 @@ export class CallConnection { const result = await this.callConnection.addParticipant( this.callConnectionId, addParticipantRequest, - optionsInternal + optionsInternal, ); const addParticipantsResult: AddParticipantResult = { ...result, @@ -270,7 +270,7 @@ export class CallConnection { } }, abortSignal, - timeoutInMs + timeoutInMs, ); return addParticipantEventResult; }, @@ -285,7 +285,7 @@ export class CallConnection { */ public async transferCallToParticipant( targetParticipant: CommunicationIdentifier, - options: TransferCallToParticipantOptions = {} + options: TransferCallToParticipantOptions = {}, ): Promise { const transferToParticipantRequest: TransferToParticipantRequest = { targetParticipant: communicationIdentifierModelConverter(targetParticipant), @@ -302,7 +302,7 @@ export class CallConnection { const result = await this.callConnection.transferToParticipant( this.callConnectionId, transferToParticipantRequest, - optionsInternal + optionsInternal, ); const transferCallResult: TransferCallResult = { ...result, @@ -333,7 +333,7 @@ export class CallConnection { } }, abortSignal, - timeoutInMs + timeoutInMs, ); return transferCallToParticipantEventResult; }, @@ -348,7 +348,7 @@ export class CallConnection { */ public async removeParticipant( participant: CommunicationIdentifier, - options: RemoveParticipantsOption = {} + options: RemoveParticipantsOption = {}, ): Promise { const removeParticipantRequest: RemoveParticipantRequest = { participantToRemove: communicationIdentifierModelConverter(participant), @@ -363,7 +363,7 @@ export class CallConnection { const result = await this.callConnection.removeParticipant( this.callConnectionId, removeParticipantRequest, - optionsInternal + optionsInternal, ); const removeParticipantsResult: RemoveParticipantResult = { ...result, @@ -394,7 +394,7 @@ export class CallConnection { } }, abortSignal, - timeoutInMs + timeoutInMs, ); return removeParticipantEventResult; }, @@ -410,7 +410,7 @@ export class CallConnection { */ public async muteParticipant( participant: CommunicationIdentifier, - options: MuteParticipantOption = {} + options: MuteParticipantOption = {}, ): Promise { const muteParticipantsRequest: MuteParticipantsRequest = { targetParticipants: [communicationIdentifierModelConverter(participant)], @@ -424,7 +424,7 @@ export class CallConnection { const result = await this.callConnection.mute( this.callConnectionId, muteParticipantsRequest, - optionsInternal + optionsInternal, ); const muteParticipantResult: MuteParticipantResult = { ...result, @@ -438,7 +438,7 @@ export class CallConnection { */ public async cancelAddParticipantOperation( invitationId: string, - options: CancelAddParticipantOperationOptions = {} + options: CancelAddParticipantOperationOptions = {}, ): Promise { const { operationContext, @@ -459,7 +459,7 @@ export class CallConnection { const result = await this.callConnection.cancelAddParticipant( this.callConnectionId, cancelAddParticipantRequest, - optionsInternal + optionsInternal, ); const cancelAddParticipantResult: CancelAddParticipantOperationResult = { @@ -491,7 +491,7 @@ export class CallConnection { } }, abortSignal, - timeoutInMs + timeoutInMs, ); return cancelAddParticipantEventResult; }, diff --git a/sdk/communication/communication-call-automation/src/callMedia.ts b/sdk/communication/communication-call-automation/src/callMedia.ts index fc90cc149efc..3255431f1c8d 100644 --- a/sdk/communication/communication-call-automation/src/callMedia.ts +++ b/sdk/communication/communication-call-automation/src/callMedia.ts @@ -74,12 +74,12 @@ export class CallMedia { endpoint: string, credential: KeyCredential | TokenCredential, eventProcessor: CallAutomationEventProcessor, - options?: CallAutomationApiClientOptionalParams + options?: CallAutomationApiClientOptionalParams, ) { this.callAutomationApiClient = createCustomCallAutomationApiClient( credential, options, - endpoint + endpoint, ); this.callConnectionId = callConnectionId; this.callAutomationEventProcessor = eventProcessor; @@ -87,7 +87,7 @@ export class CallMedia { } private createPlaySourceInternal( - playSource: FileSource | TextSource | SsmlSource + playSource: FileSource | TextSource | SsmlSource, ): PlaySourceInternal { if (playSource.kind === "fileSource") { const fileSource: FileSourceInternal = { @@ -141,7 +141,7 @@ export class CallMedia { public async play( playSources: (FileSource | TextSource | SsmlSource)[], playTo: CommunicationIdentifier[], - options: PlayOptions = { loop: false } + options: PlayOptions = { loop: false }, ): Promise { const playRequest: PlayRequest = { playSources: playSources.map((source) => this.createPlaySourceInternal(source)), @@ -187,7 +187,7 @@ export class CallMedia { } }, abortSignal, - timeoutInMs + timeoutInMs, ); return playEventResult; }, @@ -203,7 +203,7 @@ export class CallMedia { */ public async playToAll( playSources: (FileSource | TextSource | SsmlSource)[], - options: PlayOptions = { loop: false } + options: PlayOptions = { loop: false }, ): Promise { const playRequest: PlayRequest = { playSources: playSources.map((source) => this.createPlaySourceInternal(source)), @@ -249,7 +249,7 @@ export class CallMedia { } }, abortSignal, - timeoutInMs + timeoutInMs, ); return playEventResult; }, @@ -263,7 +263,7 @@ export class CallMedia { | CallMediaRecognizeDtmfOptions | CallMediaRecognizeChoiceOptions | CallMediaRecognizeSpeechOptions - | CallMediaRecognizeSpeechOrDtmfOptions + | CallMediaRecognizeSpeechOrDtmfOptions, ): RecognizeRequest { if (recognizeOptions.kind === "callMediaRecognizeDtmfOptions") { const dtmfOptionsInternal: DtmfOptions = { @@ -385,7 +385,7 @@ export class CallMedia { public async startRecognizing( targetParticipant: CommunicationIdentifier, maxTonesToCollect: number, - options: CallMediaRecognizeDtmfOptions + options: CallMediaRecognizeDtmfOptions, ): Promise; /** @@ -399,7 +399,7 @@ export class CallMedia { | CallMediaRecognizeDtmfOptions | CallMediaRecognizeChoiceOptions | CallMediaRecognizeSpeechOptions - | CallMediaRecognizeSpeechOrDtmfOptions + | CallMediaRecognizeSpeechOrDtmfOptions, ): Promise; async startRecognizing( targetParticipant: CommunicationIdentifier, @@ -409,18 +409,18 @@ export class CallMedia { | CallMediaRecognizeChoiceOptions | CallMediaRecognizeSpeechOptions | CallMediaRecognizeSpeechOrDtmfOptions, - options?: CallMediaRecognizeDtmfOptions + options?: CallMediaRecognizeDtmfOptions, ): Promise { if (typeof maxTonesOrOptions === "number" && options) { // Old function signature logic console.warn( - "Deprecated function signature used. Please use the new signature with targetParticipant and options params instead, and set maxTonesToCollect in options." + "Deprecated function signature used. Please use the new signature with targetParticipant and options params instead, and set maxTonesToCollect in options.", ); options.maxTonesToCollect = maxTonesOrOptions; await this.callMedia.recognize( this.callConnectionId, this.createRecognizeRequest(targetParticipant, options), - {} + {}, ); } else if (typeof maxTonesOrOptions !== "number" && !options) { maxTonesOrOptions.operationContext = maxTonesOrOptions.operationContext @@ -430,7 +430,7 @@ export class CallMedia { await this.callMedia.recognize( this.callConnectionId, this.createRecognizeRequest(targetParticipant, maxTonesOrOptions), - {} + {}, ); const startRecognizingResult: StartRecognizingResult = { waitForEventProcessor: async (abortSignal, timeoutInMs) => { @@ -460,7 +460,7 @@ export class CallMedia { } }, abortSignal, - timeoutInMs + timeoutInMs, ); return startRecognizingEventResult; }, @@ -499,7 +499,7 @@ export class CallMedia { } }, abortSignal, - timeoutInMs + timeoutInMs, ); return cancelAllMediaOperationsEventResult; }, @@ -514,7 +514,7 @@ export class CallMedia { * */ public async startContinuousDtmfRecognition( targetParticipant: CommunicationIdentifier, - options: ContinuousDtmfRecognitionOptions = {} + options: ContinuousDtmfRecognitionOptions = {}, ): Promise { const continuousDtmfRecognitionRequest: ContinuousDtmfRecognitionRequest = { targetParticipant: serializeCommunicationIdentifier(targetParticipant), @@ -523,7 +523,7 @@ export class CallMedia { return this.callMedia.startContinuousDtmfRecognition( this.callConnectionId, continuousDtmfRecognitionRequest, - {} + {}, ); } @@ -534,7 +534,7 @@ export class CallMedia { * */ public async stopContinuousDtmfRecognition( targetParticipant: CommunicationIdentifier, - options: ContinuousDtmfRecognitionOptions = {} + options: ContinuousDtmfRecognitionOptions = {}, ): Promise { const continuousDtmfRecognitionRequest: ContinuousDtmfRecognitionRequest = { targetParticipant: serializeCommunicationIdentifier(targetParticipant), @@ -544,7 +544,7 @@ export class CallMedia { return this.callMedia.stopContinuousDtmfRecognition( this.callConnectionId, continuousDtmfRecognitionRequest, - {} + {}, ); } @@ -557,7 +557,7 @@ export class CallMedia { public async sendDtmfTones( tones: Tone[] | DtmfTone[], targetParticipant: CommunicationIdentifier, - options: SendDtmfTonesOptions = {} + options: SendDtmfTonesOptions = {}, ): Promise { const sendDtmfTonesRequest: SendDtmfTonesRequest = { tones: tones, @@ -595,7 +595,7 @@ export class CallMedia { } }, abortSignal, - timeoutInMs + timeoutInMs, ); return sendDtmfEventResult; }, @@ -615,7 +615,7 @@ export class CallMedia { targetParticipant: CommunicationIdentifier, playSource: FileSource | TextSource | SsmlSource, loop: boolean = true, - operationContext: string | undefined = undefined + operationContext: string | undefined = undefined, ): Promise { const holdRequest: StartHoldMusicRequest = { targetParticipant: serializeCommunicationIdentifier(targetParticipant), @@ -635,7 +635,7 @@ export class CallMedia { */ public async stopHoldMusic( targetParticipant: CommunicationIdentifier, - operationContext: string | undefined = undefined + operationContext: string | undefined = undefined, ): Promise { const unholdRequest: StopHoldMusicRequest = { targetParticipant: serializeCommunicationIdentifier(targetParticipant), @@ -679,7 +679,7 @@ export class CallMedia { return this.callMedia.updateTranscription( this.callConnectionId, updateTranscriptionRequest, - {} + {}, ); } } diff --git a/sdk/communication/communication-call-automation/src/callRecording.ts b/sdk/communication/communication-call-automation/src/callRecording.ts index 8a707680986b..6ba2f4c5931a 100644 --- a/sdk/communication/communication-call-automation/src/callRecording.ts +++ b/sdk/communication/communication-call-automation/src/callRecording.ts @@ -34,12 +34,12 @@ export class CallRecording { constructor( endpoint: string, credential: KeyCredential | TokenCredential, - options?: CallAutomationApiClientOptionalParams + options?: CallAutomationApiClientOptionalParams, ) { this.callAutomationApiClient = createCustomCallAutomationApiClient( credential, options, - endpoint + endpoint, ); this.callRecordingImpl = new CallRecordingImpl(this.callAutomationApiClient); @@ -76,7 +76,7 @@ export class CallRecording { startCallRecordingRequest.audioChannelParticipantOrdering = []; options.audioChannelParticipantOrdering.forEach((identifier) => { startCallRecordingRequest.audioChannelParticipantOrdering?.push( - communicationIdentifierModelConverter(identifier) + communicationIdentifierModelConverter(identifier), ); }); } @@ -96,7 +96,7 @@ export class CallRecording { }; const response = await this.callRecordingImpl.startRecording( startCallRecordingRequest, - optionsInternal + optionsInternal, ); const result: RecordingStateResult = { @@ -114,7 +114,7 @@ export class CallRecording { */ public async getState( recordingId: string, - options: GetRecordingPropertiesOptions = {} + options: GetRecordingPropertiesOptions = {}, ): Promise { const response = await this.callRecordingImpl.getRecordingProperties(recordingId, options); @@ -160,7 +160,7 @@ export class CallRecording { */ public async delete( recordingLocationUrl: string, - options: DeleteRecordingOptions = {} + options: DeleteRecordingOptions = {}, ): Promise { await this.contentDownloader.deleteRecording(recordingLocationUrl, options); } @@ -172,7 +172,7 @@ export class CallRecording { */ public async downloadStreaming( sourceLocationUrl: string, - options: DownloadRecordingOptions = {} + options: DownloadRecordingOptions = {}, ): Promise { const result = this.contentDownloader.download(sourceLocationUrl, options); const recordingStream = (await result).readableStreamBody; @@ -192,7 +192,7 @@ export class CallRecording { public async downloadToStream( sourceLocationUrl: string, destinationStream: NodeJS.WritableStream, - options: DownloadRecordingOptions = {} + options: DownloadRecordingOptions = {}, ): Promise { const result = this.contentDownloader.download(sourceLocationUrl, options); const recordingStream = (await result).readableStreamBody; @@ -217,7 +217,7 @@ export class CallRecording { public async downloadToPath( sourceLocationUrl: string, destinationPath: string, - options: DownloadRecordingOptions = {} + options: DownloadRecordingOptions = {}, ): Promise { const result = this.contentDownloader.download(sourceLocationUrl, options); const recordingStream = (await result).readableStreamBody; diff --git a/sdk/communication/communication-call-automation/src/contentDownloader.ts b/sdk/communication/communication-call-automation/src/contentDownloader.ts index 85535fec7e69..d3b3c2348db0 100644 --- a/sdk/communication/communication-call-automation/src/contentDownloader.ts +++ b/sdk/communication/communication-call-automation/src/contentDownloader.ts @@ -86,7 +86,7 @@ export class ContentDownloaderImpl { */ async download( sourceLocationUrl: string, - options: DownloadRecordingOptions + options: DownloadRecordingOptions, ): Promise { const fileLocation = new URL(sourceLocationUrl); const endpoint = new URL(this.client.endpoint); diff --git a/sdk/communication/communication-call-automation/src/credential/callAutomationAccessKeyCredentialPolicy.ts b/sdk/communication/communication-call-automation/src/credential/callAutomationAccessKeyCredentialPolicy.ts index 131e8831ea85..b24dc331dd9c 100644 --- a/sdk/communication/communication-call-automation/src/credential/callAutomationAccessKeyCredentialPolicy.ts +++ b/sdk/communication/communication-call-automation/src/credential/callAutomationAccessKeyCredentialPolicy.ts @@ -21,7 +21,7 @@ const callAutomationAccessKeyCredentialPolicy = "CallAutomationAccessKeyCredenti */ export function createCallAutomationAccessKeyCredentialPolicy( credential: KeyCredential, - acsUrl: string + acsUrl: string, ): PipelinePolicy { return { name: callAutomationAccessKeyCredentialPolicy, @@ -50,7 +50,7 @@ export function createCallAutomationAccessKeyCredentialPolicy( request.headers.set("x-ms-content-sha256", contentHash); request.headers.set( "Authorization", - `HMAC-SHA256 SignedHeaders=${signedHeaders}&Signature=${signature}` + `HMAC-SHA256 SignedHeaders=${signedHeaders}&Signature=${signature}`, ); return next(request); }, diff --git a/sdk/communication/communication-call-automation/src/credential/callAutomationAuthPolicy.ts b/sdk/communication/communication-call-automation/src/credential/callAutomationAuthPolicy.ts index abf7158280d5..a41b6150c184 100644 --- a/sdk/communication/communication-call-automation/src/credential/callAutomationAuthPolicy.ts +++ b/sdk/communication/communication-call-automation/src/credential/callAutomationAuthPolicy.ts @@ -19,7 +19,7 @@ import { createCommunicationAuthPolicy } from "@azure/communication-common"; */ export function createCallAutomationAuthPolicy( credential: KeyCredential | TokenCredential, - acsUrl: string + acsUrl: string, ): PipelinePolicy { if (isTokenCredential(credential)) { const policyOptions: BearerTokenAuthenticationPolicyOptions = { @@ -43,7 +43,7 @@ export function createCallAutomationAuthPolicy( export function createCustomCallAutomationApiClient( credential: KeyCredential | TokenCredential, internalPipelineOptions: CallAutomationApiClientOptionalParams | undefined, - url: string + url: string, ): CallAutomationApiClient { // read environment variable for callAutomation auth const customEnabled = process.env.COMMUNICATION_CUSTOM_ENDPOINT_ENABLED; diff --git a/sdk/communication/communication-call-automation/src/eventprocessor/callAutomationEventProcessor.ts b/sdk/communication/communication-call-automation/src/eventprocessor/callAutomationEventProcessor.ts index 78a8966d6ddb..dfadd8f0f4a1 100644 --- a/sdk/communication/communication-call-automation/src/eventprocessor/callAutomationEventProcessor.ts +++ b/sdk/communication/communication-call-automation/src/eventprocessor/callAutomationEventProcessor.ts @@ -26,7 +26,7 @@ export class CallAutomationEventProcessor { // parse the event if not parsed already if (typeof event === "string" || Array.isArray(event)) { callAutomationEvent = parseCallAutomationEvent( - (event as string) || (event as Record) + (event as string) || (event as Record), ); } else { callAutomationEvent = event as CallAutomationEvent; @@ -67,7 +67,7 @@ export class CallAutomationEventProcessor { public async waitForEventProcessor( predicate: (event: CallAutomationEvent) => boolean, abortSignal?: AbortSignalLike, - timeoutInMs?: number + timeoutInMs?: number, ): Promise { const controller = new AbortController(); if (!timeoutInMs) { @@ -128,7 +128,7 @@ export class CallAutomationEventProcessor { public async attachOngoingEventProcessor( callConnectionId: string, eventTypeKind: CallAutomationEvent["kind"], - eventProcessor: (event: CallAutomationEvent) => Promise + eventProcessor: (event: CallAutomationEvent) => Promise, ): Promise { const eventAwaiter = (event: CallAutomationEvent) => { if (event.callConnectionId === callConnectionId && event.kind === eventTypeKind) { @@ -150,7 +150,7 @@ export class CallAutomationEventProcessor { */ public async detachOngoingEventProcessor( callConnectionId: string, - eventTypeKind: CallAutomationEvent["kind"] + eventTypeKind: CallAutomationEvent["kind"], ): Promise { const uniqueId = this.generateIdTypeKey(callConnectionId, eventTypeKind); const value = this.ongoingEvents.get(uniqueId); diff --git a/sdk/communication/communication-call-automation/src/models/responses.ts b/sdk/communication/communication-call-automation/src/models/responses.ts index d97b6ddd61db..5ee8a73513d0 100644 --- a/sdk/communication/communication-call-automation/src/models/responses.ts +++ b/sdk/communication/communication-call-automation/src/models/responses.ts @@ -31,7 +31,7 @@ export interface CreateCallResult { /** Waiting for event processor to process the event */ waitForEventProcessor( abortSignal?: AbortSignalLike, - timeoutInMs?: number + timeoutInMs?: number, ): Promise; } @@ -48,7 +48,7 @@ export interface AnswerCallResult { /** Waiting for event processor to process the event */ waitForEventProcessor( abortSignal?: AbortSignalLike, - timeoutInMs?: number + timeoutInMs?: number, ): Promise; } @@ -71,7 +71,7 @@ export interface AddParticipantResult { /** Waiting for event processor to process the event */ waitForEventProcessor( abortSignal?: AbortSignalLike, - timeoutInMs?: number + timeoutInMs?: number, ): Promise; } @@ -82,7 +82,7 @@ export interface TransferCallResult { /** Waiting for event processor to process the event */ waitForEventProcessor( abortSignal?: AbortSignalLike, - timeoutInMs?: number + timeoutInMs?: number, ): Promise; } @@ -93,7 +93,7 @@ export interface RemoveParticipantResult { /** Waiting for event processor to process the event */ waitForEventProcessor( abortSignal?: AbortSignalLike, - timeoutInMs?: number + timeoutInMs?: number, ): Promise; } @@ -114,7 +114,7 @@ export interface CancelAllMediaOperationsResult { /** Waiting for event processor to process the event */ waitForEventProcessor( abortSignal?: AbortSignalLike, - timeoutInMs?: number + timeoutInMs?: number, ): Promise; } @@ -123,7 +123,7 @@ export interface PlayResult { /** Waiting for event processor to process the event */ waitForEventProcessor( abortSignal?: AbortSignalLike, - timeoutInMs?: number + timeoutInMs?: number, ): Promise; } @@ -134,7 +134,7 @@ export interface SendDtmfTonesResult { /** Waiting for event processor to process the event */ waitForEventProcessor( abortSignal?: AbortSignalLike, - timeoutInMs?: number + timeoutInMs?: number, ): Promise; } @@ -143,7 +143,7 @@ export interface StartRecognizingResult { /** Waiting for event processor to process the event */ waitForEventProcessor( abortSignal?: AbortSignalLike, - timeoutInMs?: number + timeoutInMs?: number, ): Promise; } @@ -156,6 +156,6 @@ export interface CancelAddParticipantOperationResult { /** Waiting for event processor to process the event */ waitForEventProcessor( abortSignal?: AbortSignalLike, - timeoutInMs?: number + timeoutInMs?: number, ): Promise; } diff --git a/sdk/communication/communication-call-automation/src/utli/converters.ts b/sdk/communication/communication-call-automation/src/utli/converters.ts index f8c3bc6ca4be..bb713cc85f9f 100644 --- a/sdk/communication/communication-call-automation/src/utli/converters.ts +++ b/sdk/communication/communication-call-automation/src/utli/converters.ts @@ -27,7 +27,7 @@ import { import { CallParticipant } from "../models/models"; function extractKind( - identifierModel: CommunicationIdentifierModel + identifierModel: CommunicationIdentifierModel, ): CommunicationIdentifierModelKind { if (identifierModel.communicationUser !== undefined) { return KnownCommunicationIdentifierModelKind.CommunicationUser; @@ -43,7 +43,7 @@ function extractKind( /** Convert PhoneNumberIdentifier to PhoneNumberIdentifierModel(Internal usage class) */ export function PhoneNumberIdentifierModelConverter( - phoneNumberIdentifier: PhoneNumberIdentifier | undefined + phoneNumberIdentifier: PhoneNumberIdentifier | undefined, ): PhoneNumberIdentifierModel | undefined { if (phoneNumberIdentifier === undefined || phoneNumberIdentifier.phoneNumber === undefined) { return undefined; @@ -56,7 +56,7 @@ export function PhoneNumberIdentifierModelConverter( /** Convert SerializedPhoneNumberIdentifier to PhoneNumberIdentifier(Public usage class) */ export function phoneNumberIdentifierConverter( - serializedPhoneNumberIdentifier: SerializedPhoneNumberIdentifier | undefined + serializedPhoneNumberIdentifier: SerializedPhoneNumberIdentifier | undefined, ): PhoneNumberIdentifier | undefined { if ( serializedPhoneNumberIdentifier === undefined || @@ -73,7 +73,7 @@ export function phoneNumberIdentifierConverter( /** Convert CommunicationIdentifierModel to CommunicationIdentifier(Public usage class) */ export function communicationIdentifierConverter( - identifierModel: CommunicationIdentifierModel + identifierModel: CommunicationIdentifierModel, ): CommunicationIdentifier { const rawId = identifierModel.rawId; const kind = @@ -121,7 +121,7 @@ export function communicationIdentifierConverter( /** Convert CommunicationIdentifier to CommunicationIdentifierModel(Internal usage class) */ export function communicationIdentifierModelConverter( - identifier: CommunicationIdentifier + identifier: CommunicationIdentifier, ): CommunicationIdentifierModel { const serializedIdentifier: SerializedCommunicationIdentifier = serializeCommunicationIdentifier(identifier); @@ -162,7 +162,7 @@ export function communicationIdentifierModelConverter( /** Convert CallParticipantInternal to CallParticipant */ export function callParticipantConverter( - acsCallParticipant: CallParticipantInternal + acsCallParticipant: CallParticipantInternal, ): CallParticipant { const callParticipant: CallParticipant = { ...acsCallParticipant, @@ -175,7 +175,7 @@ export function callParticipantConverter( /** Convert CommunicationUserIdentifier to CommunicationUserIdentifierModel (Internal usage class) */ export function communicationUserIdentifierModelConverter( - identifier: CommunicationUserIdentifier | undefined + identifier: CommunicationUserIdentifier | undefined, ): CommunicationUserIdentifierModel | undefined { if (!identifier || !identifier.communicationUserId) { return undefined; @@ -186,7 +186,7 @@ export function communicationUserIdentifierModelConverter( /** Convert CommunicationUserIdentifierModel to CommunicationUserIdentifier (Public usage class) */ export function communicationUserIdentifierConverter( - identifier: CommunicationUserIdentifierModel | undefined + identifier: CommunicationUserIdentifierModel | undefined, ): CommunicationUserIdentifier | undefined { if (!identifier || !identifier.id) { return undefined; diff --git a/sdk/communication/communication-call-automation/test/callAutomationClient.spec.ts b/sdk/communication/communication-call-automation/test/callAutomationClient.spec.ts index 3cabd27708d5..c40d9a9c6213 100644 --- a/sdk/communication/communication-call-automation/test/callAutomationClient.spec.ts +++ b/sdk/communication/communication-call-automation/test/callAutomationClient.spec.ts @@ -58,7 +58,7 @@ describe("Call Automation Client Unit Tests", () => { }; // stub CallAutomationClient client = Sinon.createStubInstance( - CallAutomationClient + CallAutomationClient, ) as SinonStubbedInstance & CallAutomationClient; }); @@ -86,7 +86,7 @@ describe("Call Automation Client Unit Tests", () => { client.createCall.returns( new Promise((resolve) => { resolve(createCallResultMock); - }) + }), ); const promiseResult = client.createCall(target, CALL_CALLBACK_URL); @@ -114,7 +114,7 @@ describe("Call Automation Client Unit Tests", () => { client.createGroupCall.returns( new Promise((resolve) => { resolve(createGroupCallResultMock); - }) + }), ); const promiseResult = client.createGroupCall(targets, CALL_CALLBACK_URL); @@ -142,7 +142,7 @@ describe("Call Automation Client Unit Tests", () => { client.answerCall.returns( new Promise((resolve) => { resolve(answerCallResultMock); - }) + }), ); const promiseResult = client.answerCall(CALL_INCOMING_CALL_CONTEXT, CALL_CALLBACK_URL); @@ -163,7 +163,7 @@ describe("Call Automation Client Unit Tests", () => { client.redirectCall.returns( new Promise((resolve) => { resolve(undefined); - }) + }), ); const promiseResult = client.redirectCall(CALL_INCOMING_CALL_CONTEXT, target); @@ -182,7 +182,7 @@ describe("Call Automation Client Unit Tests", () => { client.rejectCall.returns( new Promise((resolve) => { resolve(undefined); - }) + }), ); const promiseResult = client.rejectCall(CALL_INCOMING_CALL_CONTEXT); @@ -249,7 +249,7 @@ describe("Call Automation Main Client Live Tests", function () { const result = await callerCallAutomationClient.createCall( callInvite, callBackUrl, - createCallOption + createCallOption, ); const incomingCallContext = await waitForIncomingCallContext(uniqueId, 8000); const callConnectionId: string = result.callConnectionProperties.callConnectionId @@ -264,7 +264,7 @@ describe("Call Automation Main Client Live Tests", function () { await receiverCallAutomationClient.answerCall( incomingCallContext, callBackUrl, - answerCallOptions + answerCallOptions, ); } @@ -290,7 +290,7 @@ describe("Call Automation Main Client Live Tests", function () { const result = await callerCallAutomationClient.createCall( callInvite, callBackUrl, - createCallOption + createCallOption, ); const incomingCallContext = await waitForIncomingCallContext(uniqueId, 8000); const callConnectionId: string = result.callConnectionProperties.callConnectionId diff --git a/sdk/communication/communication-call-automation/test/callAutomationEventProcessor.spec.ts b/sdk/communication/communication-call-automation/test/callAutomationEventProcessor.spec.ts index 2e45bd5a3b4a..b7ff6964bf03 100644 --- a/sdk/communication/communication-call-automation/test/callAutomationEventProcessor.spec.ts +++ b/sdk/communication/communication-call-automation/test/callAutomationEventProcessor.spec.ts @@ -37,7 +37,7 @@ describe("Call Automation Event Processor Unit Tests", () => { } }, undefined, - 500 + 500, ); // send the event @@ -75,7 +75,7 @@ describe("Call Automation Event Processor Unit Tests", () => { } }, undefined, - 500 + 500, ); // asserts @@ -95,7 +95,7 @@ describe("Call Automation Event Processor Unit Tests", () => { } }, undefined, - 500 + 500, ); // send the event @@ -134,7 +134,7 @@ describe("Call Automation Event Processor Unit Tests", () => { } }, undefined, - 500 + 500, ); // send the event @@ -168,7 +168,7 @@ describe("Call Automation Event Processor Unit Tests", () => { } }, controller.signal, - 500 + 500, ); // abort + asserts @@ -261,7 +261,7 @@ describe("Call Automation Event Processor Unit Tests", () => { async (event) => { expect(event).to.equal(connectedEvent); ongoingEventCalled = true; - } + }, ); // send the event @@ -289,7 +289,7 @@ describe("Call Automation Event Processor Unit Tests", () => { async (event) => { expect(event).to.equal(connectedEvent); ongoingEventCalled = true; - } + }, ); // send the event @@ -327,7 +327,7 @@ describe("Call Automation Event Processor Unit Tests", () => { async (event) => { expect(event).to.equal(connectedEvent); ongoingEventCalled = true; - } + }, ); // send the event diff --git a/sdk/communication/communication-call-automation/test/callConnection.spec.ts b/sdk/communication/communication-call-automation/test/callConnection.spec.ts index c83d7aaf353e..39ceb110d61a 100644 --- a/sdk/communication/communication-call-automation/test/callConnection.spec.ts +++ b/sdk/communication/communication-call-automation/test/callConnection.spec.ts @@ -57,7 +57,7 @@ describe("CallConnection Unit Tests", () => { // stub CallConnection callConnection = Sinon.createStubInstance( - CallConnection + CallConnection, ) as SinonStubbedInstance & CallConnection; }); @@ -67,7 +67,7 @@ describe("CallConnection Unit Tests", () => { callConnection.getCallConnectionProperties.returns( new Promise((resolve) => { resolve(callConnectionPropertiesMock); - }) + }), ); const promiseResult = callConnection.getCallConnectionProperties(); @@ -88,7 +88,7 @@ describe("CallConnection Unit Tests", () => { callConnection.hangUp.returns( new Promise((resolve) => { resolve(undefined); - }) + }), ); const promiseResult = callConnection.hangUp(false); @@ -107,7 +107,7 @@ describe("CallConnection Unit Tests", () => { callConnection.hangUp.returns( new Promise((resolve) => { resolve(undefined); - }) + }), ); const promiseResult = callConnection.hangUp(true); @@ -127,7 +127,7 @@ describe("CallConnection Unit Tests", () => { callConnection.getParticipant.returns( new Promise((resolve) => { resolve(callParticipantMock); - }) + }), ); const promiseResult = callConnection.getParticipant(target.targetParticipant); @@ -149,7 +149,7 @@ describe("CallConnection Unit Tests", () => { callConnection.listParticipants.returns( new Promise((resolve) => { resolve(listParticipantsResultMock); - }) + }), ); const promiseResult = callConnection.listParticipants(); @@ -175,7 +175,7 @@ describe("CallConnection Unit Tests", () => { callConnection.addParticipant.returns( new Promise((resolve) => { resolve(addParticipantResultMock); - }) + }), ); const promiseResult = callConnection.addParticipant(target); @@ -201,7 +201,7 @@ describe("CallConnection Unit Tests", () => { callConnection.transferCallToParticipant.returns( new Promise((resolve) => { resolve(transferCallResultMock); - }) + }), ); const promiseResult = callConnection.transferCallToParticipant(target.targetParticipant); @@ -211,7 +211,7 @@ describe("CallConnection Unit Tests", () => { .then((result: TransferCallResult) => { assert.isNotNull(result); assert.isTrue( - callConnection.transferCallToParticipant.calledWith(target.targetParticipant) + callConnection.transferCallToParticipant.calledWith(target.targetParticipant), ); assert.equal(result, transferCallResultMock); return; @@ -229,7 +229,7 @@ describe("CallConnection Unit Tests", () => { callConnection.transferCallToParticipant.returns( new Promise((resolve) => { resolve(transferCallResultMock); - }) + }), ); const transferee = { communicationUserId: CALL_TARGET_ID_2 }; @@ -243,7 +243,7 @@ describe("CallConnection Unit Tests", () => { .then((result: TransferCallResult) => { assert.isNotNull(result); assert.isTrue( - callConnection.transferCallToParticipant.calledWith(target.targetParticipant) + callConnection.transferCallToParticipant.calledWith(target.targetParticipant), ); assert.equal(result, transferCallResultMock); return; @@ -261,7 +261,7 @@ describe("CallConnection Unit Tests", () => { callConnection.removeParticipant.returns( new Promise((resolve) => { resolve(removeParticipantResultMock); - }) + }), ); const promiseResult = callConnection.removeParticipant(target.targetParticipant); @@ -283,7 +283,7 @@ describe("CallConnection Unit Tests", () => { callConnection.muteParticipant.returns( new Promise((resolve) => { resolve(muteParticipantResultMock); - }) + }), ); const promiseResult = callConnection.muteParticipant(target.targetParticipant); @@ -310,7 +310,7 @@ describe("CallConnection Unit Tests", () => { callConnection.cancelAddParticipantOperation.returns( new Promise((resolve) => { resolve(cancelAddParticipantResultMock); - }) + }), ); callConnection @@ -378,7 +378,7 @@ describe("CallConnection Live Tests", function () { const result = await callerCallAutomationClient.createCall( callInvite, callBackUrl, - createCallOption + createCallOption, ); const incomingCallContext = await waitForIncomingCallContext(uniqueId, 8000); callConnectionId = result.callConnectionProperties.callConnectionId @@ -390,7 +390,7 @@ describe("CallConnection Live Tests", function () { await receiverCallAutomationClient.answerCall( incomingCallContext, callBackUrl, - answerCallOptions + answerCallOptions, ); } const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 8000); @@ -414,7 +414,7 @@ describe("CallConnection Live Tests", function () { const result = await callerCallAutomationClient.createCall( callInvite, callBackUrl, - createCallOption + createCallOption, ); const incomingCallContext = await waitForIncomingCallContext(uniqueId, 10000); @@ -427,7 +427,7 @@ describe("CallConnection Live Tests", function () { await receiverCallAutomationClient.answerCall( incomingCallContext, callBackUrl, - answerCallOptions + answerCallOptions, ); } const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 10000); @@ -444,7 +444,7 @@ describe("CallConnection Live Tests", function () { const anotherReceiverCallAutomationClient: CallAutomationClient = createCallAutomationClient( recorder, - testUser3 + testUser3, ); const anotherIncomingCallContext = await waitForIncomingCallContext(uniqueId2, 20000); if (anotherIncomingCallContext) { @@ -454,13 +454,13 @@ describe("CallConnection Live Tests", function () { await anotherReceiverCallAutomationClient.answerCall( anotherIncomingCallContext, callBackUrl2, - answerCallOption2 + answerCallOption2, ); } const participantAddedEvent = await waitForEvent( "AddParticipantSucceeded", callConnectionId, - 10000 + 10000, ); assert.isDefined(participantAddedEvent); @@ -481,7 +481,7 @@ describe("CallConnection Live Tests", function () { const result = await callerCallAutomationClient.createCall( callInvite, callBackUrl, - createCallOption + createCallOption, ); const incomingCallContext = await waitForIncomingCallContext(uniqueId, 8000); callConnectionId = result.callConnectionProperties.callConnectionId @@ -493,7 +493,7 @@ describe("CallConnection Live Tests", function () { await receiverCallAutomationClient.answerCall( incomingCallContext, callBackUrl, - answerCallOption + answerCallOption, ); } const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 8000); @@ -504,7 +504,7 @@ describe("CallConnection Live Tests", function () { }; const removeResult = await callConnection.removeParticipant( testUser2, - removeParticipantOptions + removeParticipantOptions, ); assert.isDefined(removeResult); @@ -546,19 +546,19 @@ describe("CallConnection Live Tests", function () { // A call needs at least 3 participants to mute a participant. So adding one more participant. const anotherReceiverCallAutomationClient: CallAutomationClient = createCallAutomationClient( recorder, - testUser3 + testUser3, ); const anotherIncomingCallContext = await waitForIncomingCallContext(uniqueId2, 20000); if (anotherIncomingCallContext) { await anotherReceiverCallAutomationClient.answerCall( anotherIncomingCallContext, - callBackUrl2 + callBackUrl2, ); } const participantAddedEvent = await waitForEvent( "AddParticipantSucceeded", callConnectionId, - 8000 + 8000, ); assert.isDefined(participantAddedEvent); @@ -591,7 +591,7 @@ describe("CallConnection Live Tests", function () { const result = await callerCallAutomationClient.createCall( callInvite, callBackUrl, - createCallOption + createCallOption, ); const incomingCallContext = await waitForIncomingCallContext(uniqueId, 10000); callConnectionId = result.callConnectionProperties.callConnectionId @@ -603,7 +603,7 @@ describe("CallConnection Live Tests", function () { await receiverCallAutomationClient.answerCall( incomingCallContext, callBackUrl, - answerCallOption + answerCallOption, ); } const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 10000); @@ -625,13 +625,13 @@ describe("CallConnection Live Tests", function () { }; await callConnection.cancelAddParticipantOperation( addResult.invitationId!, - cancelParticipantOption + cancelParticipantOption, ); const addParticipantCancelledEvent = (await waitForEvent( "CancelAddParticipantSucceeded", callConnectionId, - 10000 + 10000, )) as CancelAddParticipantSucceeded; assert.isDefined(addParticipantCancelledEvent); diff --git a/sdk/communication/communication-call-automation/test/callMediaClient.spec.ts b/sdk/communication/communication-call-automation/test/callMediaClient.spec.ts index f1fc491c3d2a..d583e98ec145 100644 --- a/sdk/communication/communication-call-automation/test/callMediaClient.spec.ts +++ b/sdk/communication/communication-call-automation/test/callMediaClient.spec.ts @@ -79,7 +79,7 @@ describe("CallMedia Unit Tests", async function () { CALL_CONNECTION_ID, baseUri, { key: generateToken() }, - new CallAutomationEventProcessor() + new CallAutomationEventProcessor(), ); }); @@ -273,7 +273,7 @@ describe("CallMedia Unit Tests", async function () { await callMedia.startContinuousDtmfRecognition( targetParticipant, - continuousDtmfRecognitionOptions + continuousDtmfRecognitionOptions, ); const request = spy.getCall(0).args[0]; const data = JSON.parse(request.body?.toString() || ""); @@ -295,7 +295,7 @@ describe("CallMedia Unit Tests", async function () { await callMedia.stopContinuousDtmfRecognition( targetParticipant, - continuousDtmfRecognitionOptions + continuousDtmfRecognitionOptions, ); const request = spy.getCall(0).args[0]; const data = JSON.parse(request.body?.toString() || ""); @@ -471,7 +471,7 @@ describe("Call Media Client Live Tests", function () { const result = await callerCallAutomationClient.createCall( callInvite, callBackUrl, - createCallOption + createCallOption, ); const incomingCallContext = await waitForIncomingCallContext(uniqueId, 8000); const callConnectionId: string = result.callConnectionProperties.callConnectionId @@ -484,7 +484,7 @@ describe("Call Media Client Live Tests", function () { await receiverCallAutomationClient.answerCall( incomingCallContext, callBackUrl, - answerCallOption + answerCallOption, ); } const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 8000); @@ -521,7 +521,7 @@ describe("Call Media Client Live Tests", function () { const result = await callerCallAutomationClient.createCall( callInvite, callBackUrl, - createCallOption + createCallOption, ); const incomingCallContext = await waitForIncomingCallContext(uniqueId, 8000); const callConnectionId: string = result.callConnectionProperties.callConnectionId @@ -534,7 +534,7 @@ describe("Call Media Client Live Tests", function () { await receiverCallAutomationClient.answerCall( incomingCallContext, callBackUrl, - answerCallOption + answerCallOption, ); } const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 8000); @@ -573,7 +573,7 @@ describe("Call Media Client Live Tests", function () { const result = await callerCallAutomationClient.createCall( callInvite, callBackUrl, - createCallOption + createCallOption, ); const incomingCallContext = await waitForIncomingCallContext(uniqueId, 8000); const callConnectionId: string = result.callConnectionProperties.callConnectionId @@ -586,7 +586,7 @@ describe("Call Media Client Live Tests", function () { await receiverCallAutomationClient.answerCall( incomingCallContext, callBackUrl, - answerCallOption + answerCallOption, ); } const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 8000); @@ -622,7 +622,7 @@ describe("Call Media Client Live Tests", function () { assert.isAtLeast( phoneNumbers.length, 2, - "Invalid PSTN setup, test needs at least 2 phone numbers" + "Invalid PSTN setup, test needs at least 2 phone numbers", ); callerPhoneUser = { phoneNumber: phoneNumbers.pop() as string }; receiverPhoneUser = { phoneNumber: phoneNumbers.pop() as string }; @@ -673,7 +673,7 @@ describe("Call Media Client Live Tests", function () { const continuousDtmfRecognitionStopped = await waitForEvent( "ContinuousDtmfRecognitionStopped", callConnectionId, - 8000 + 8000, ); assert.isDefined(continuousDtmfRecognitionStopped); diff --git a/sdk/communication/communication-call-automation/test/callRecordingClient.spec.ts b/sdk/communication/communication-call-automation/test/callRecordingClient.spec.ts index c0938c6542b0..8d60463d82a7 100644 --- a/sdk/communication/communication-call-automation/test/callRecordingClient.spec.ts +++ b/sdk/communication/communication-call-automation/test/callRecordingClient.spec.ts @@ -93,7 +93,7 @@ describe("CallRecording Unit Tests", async function () { assert.equal(request.method, "POST"); assert.equal( request.url, - `${baseUri}/calling/recordings?api-version=${apiVersion.mapper.defaultValue}` + `${baseUri}/calling/recordings?api-version=${apiVersion.mapper.defaultValue}`, ); }); @@ -124,7 +124,7 @@ describe("CallRecording Unit Tests", async function () { assert.equal(request.method, "POST"); assert.equal( request.url, - `${baseUri}/calling/recordings?api-version=${apiVersion.mapper.defaultValue}` + `${baseUri}/calling/recordings?api-version=${apiVersion.mapper.defaultValue}`, ); }); @@ -144,7 +144,7 @@ describe("CallRecording Unit Tests", async function () { assert.equal(request.method, "GET"); assert.equal( request.url, - `${baseUri}/calling/recordings/${RECORDING_ID}?api-version=${apiVersion.mapper.defaultValue}` + `${baseUri}/calling/recordings/${RECORDING_ID}?api-version=${apiVersion.mapper.defaultValue}`, ); }); @@ -157,7 +157,7 @@ describe("CallRecording Unit Tests", async function () { assert.equal( request.url, - `${baseUri}/calling/recordings/${RECORDING_ID}?api-version=${apiVersion.mapper.defaultValue}` + `${baseUri}/calling/recordings/${RECORDING_ID}?api-version=${apiVersion.mapper.defaultValue}`, ); assert.equal(request.method, "DELETE"); }); @@ -171,7 +171,7 @@ describe("CallRecording Unit Tests", async function () { assert.equal( request.url, - `${baseUri}/calling/recordings/${RECORDING_ID}:pause?api-version=${apiVersion.mapper.defaultValue}` + `${baseUri}/calling/recordings/${RECORDING_ID}:pause?api-version=${apiVersion.mapper.defaultValue}`, ); assert.equal(request.method, "POST"); }); @@ -185,7 +185,7 @@ describe("CallRecording Unit Tests", async function () { assert.equal( request.url, - `${baseUri}/calling/recordings/${RECORDING_ID}:resume?api-version=${apiVersion.mapper.defaultValue}` + `${baseUri}/calling/recordings/${RECORDING_ID}:resume?api-version=${apiVersion.mapper.defaultValue}`, ); assert.equal(request.method, "POST"); }); @@ -243,7 +243,7 @@ describe("CallRecording Live Tests", function () { const result = await callerCallAutomationClient.createCall( callInvite, callBackUrl, - createCallOption + createCallOption, ); const incomingCallContext = await waitForIncomingCallContext(uniqueId, 8000); const callConnectionId: string = result.callConnectionProperties.callConnectionId @@ -256,7 +256,7 @@ describe("CallRecording Live Tests", function () { await receiverCallAutomationClient.answerCall( incomingCallContext, callBackUrl, - answerCallOption + answerCallOption, ); } const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 8000); diff --git a/sdk/communication/communication-call-automation/test/utils/mockClient.ts b/sdk/communication/communication-call-automation/test/utils/mockClient.ts index d9b09821dbcf..17353ce05bec 100644 --- a/sdk/communication/communication-call-automation/test/utils/mockClient.ts +++ b/sdk/communication/communication-call-automation/test/utils/mockClient.ts @@ -34,7 +34,7 @@ export const createMediaClient = (mockHttpClient: HttpClient): CallMedia => { new CallAutomationEventProcessor(), { httpClient: mockHttpClient, - } + }, ); }; @@ -44,6 +44,6 @@ export const createRecordingClient = (mockHttpClient: HttpClient): CallRecording { key: generateToken() }, { httpClient: mockHttpClient, - } + }, ); }; diff --git a/sdk/communication/communication-call-automation/test/utils/recordedClient.ts b/sdk/communication/communication-call-automation/test/utils/recordedClient.ts index 8d753ce77381..43a5f5690340 100644 --- a/sdk/communication/communication-call-automation/test/utils/recordedClient.ts +++ b/sdk/communication/communication-call-automation/test/utils/recordedClient.ts @@ -135,17 +135,17 @@ export async function createRecorder(context: Test | undefined): Promise { const identityClient = new CommunicationIdentityClient( assertEnvironmentVariable("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING"), - recorder.configureClientOptions({}) as CommunicationIdentityClientOptions + recorder.configureClientOptions({}) as CommunicationIdentityClientOptions, ); return identityClient.createUser(); } export function createCallAutomationClient( recorder: Recorder, - sourceIdentity: CommunicationUserIdentifier + sourceIdentity: CommunicationUserIdentifier, ): CallAutomationClient { const connectionString = assertEnvironmentVariable( - "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING" + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING", ); const options: CallAutomationClientOptions = { sourceIdentity: sourceIdentity, @@ -176,7 +176,7 @@ async function eventBodyHandler(body: any): Promise { export async function serviceBusWithNewCall( caller: CommunicationIdentifier, - receiver: CommunicationIdentifier + receiver: CommunicationIdentifier, ): Promise { const callerId: string = parseIdsFromIdentifier(caller); const receiverId: string = parseIdsFromIdentifier(receiver); @@ -233,7 +233,7 @@ export async function serviceBusWithNewCall( export async function waitForIncomingCallContext( uniqueId: string, - timeOut: number + timeOut: number, ): Promise { if (!isPlaybackMode()) { let currentTime = new Date().getTime(); @@ -253,7 +253,7 @@ export async function waitForIncomingCallContext( export async function waitForEvent( eventName: string, callConnectionId: string, - timeOut: number + timeOut: number, ): Promise { let currentTime = new Date().getTime(); const timeOutTime = currentTime + timeOut; @@ -317,7 +317,7 @@ export async function loadPersistedEvents(testName: string): Promise { export async function getPhoneNumbers(recorder: Recorder): Promise { const phoneNumbersClient = new PhoneNumbersClient( assertEnvironmentVariable("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING"), - recorder.configureClientOptions({}) as PhoneNumbersClientOptions + recorder.configureClientOptions({}) as PhoneNumbersClientOptions, ); const purchasedPhoneNumbers = phoneNumbersClient.listPurchasedPhoneNumbers(); const phoneNumbers: string[] = []; diff --git a/sdk/communication/communication-chat/package.json b/sdk/communication/communication-chat/package.json index c071a8f10489..9c4552579fa2 100644 --- a/sdk/communication/communication-chat/package.json +++ b/sdk/communication/communication-chat/package.json @@ -13,11 +13,11 @@ "build:samples": "echo Obsolete.", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md && rushx format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -106,7 +106,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "typescript": "~5.2.0", diff --git a/sdk/communication/communication-chat/samples-dev/messageOperations.ts b/sdk/communication/communication-chat/samples-dev/messageOperations.ts index 6504383ea892..ce4bfd4f9cc2 100644 --- a/sdk/communication/communication-chat/samples-dev/messageOperations.ts +++ b/sdk/communication/communication-chat/samples-dev/messageOperations.ts @@ -29,7 +29,7 @@ export async function main() { // create ChatClient const chatClient = new ChatClient( endpoint, - new AzureCommunicationTokenCredential(userToken.token) + new AzureCommunicationTokenCredential(userToken.token), ); const createChatThreadResult = await chatClient.createChatThread({ topic: "Hello, World!" }); const threadId = createChatThreadResult.chatThread ? createChatThreadResult.chatThread.id : ""; diff --git a/sdk/communication/communication-chat/samples-dev/participantsOperations.ts b/sdk/communication/communication-chat/samples-dev/participantsOperations.ts index 0b14e68d1fd5..9747c6f3da2e 100644 --- a/sdk/communication/communication-chat/samples-dev/participantsOperations.ts +++ b/sdk/communication/communication-chat/samples-dev/participantsOperations.ts @@ -31,7 +31,7 @@ export async function main() { // create ChatClient const chatClient = new ChatClient( endpoint, - new AzureCommunicationTokenCredential(userToken.token) + new AzureCommunicationTokenCredential(userToken.token), ); const createChatThreadResult = await chatClient.createChatThread({ topic: "Hello, World!" }); const threadId = createChatThreadResult.chatThread ? createChatThreadResult.chatThread.id : ""; diff --git a/sdk/communication/communication-chat/samples-dev/threadOperations.ts b/sdk/communication/communication-chat/samples-dev/threadOperations.ts index bbf85fde71d3..a013b44056e4 100644 --- a/sdk/communication/communication-chat/samples-dev/threadOperations.ts +++ b/sdk/communication/communication-chat/samples-dev/threadOperations.ts @@ -29,7 +29,7 @@ export async function main() { // create ChatClient const chatClient = new ChatClient( endpoint, - new AzureCommunicationTokenCredential(userToken.token) + new AzureCommunicationTokenCredential(userToken.token), ); // create chat thread @@ -47,7 +47,7 @@ export async function main() { }; const createChatThreadResult = await chatClient.createChatThread( createChatThreadRequest, - createChatThreadOptions + createChatThreadOptions, ); const threadId = createChatThreadResult.chatThread ? createChatThreadResult.chatThread.id : ""; diff --git a/sdk/communication/communication-chat/src/chatClient.ts b/sdk/communication/communication-chat/src/chatClient.ts index f42654f7dc93..047b25e03bea 100644 --- a/sdk/communication/communication-chat/src/chatClient.ts +++ b/sdk/communication/communication-chat/src/chatClient.ts @@ -71,7 +71,7 @@ export class ChatClient { constructor( private readonly endpoint: string, credential: CommunicationTokenCredential, - options: ChatClientOptions = {} + options: ChatClientOptions = {}, ) { this.tokenCredential = credential; this.clientOptions = { ...options }; @@ -100,7 +100,7 @@ export class ChatClient { this.signalingClient = getSignalingClient( credential, logger, - this.clientOptions.signalingClientOptions + this.clientOptions.signalingClientOptions, ); } @@ -120,7 +120,7 @@ export class ChatClient { */ public async createChatThread( request: CreateChatThreadRequest, - options: CreateChatThreadOptions = {} + options: CreateChatThreadOptions = {}, ): Promise { return tracingClient.withSpan( "ChatClient-CreateChatThread", @@ -134,19 +134,19 @@ export class ChatClient { { topic: request.topic, participants: options.participants?.map((participant) => - mapToChatParticipantRestModel(participant) + mapToChatParticipantRestModel(participant), ), }, - updatedRestModelOptions + updatedRestModelOptions, ); return mapToCreateChatThreadResultSdkModel(result); - } + }, ); } private async *listChatThreadsPage( continuationState: ListPageSettings, - options: ListChatThreadsOptions = {} + options: ListChatThreadsOptions = {}, ): AsyncIterableIterator { if (!continuationState.continuationToken) { const currentSetResponse = await this.client.chat.listChatThreads(options); @@ -159,7 +159,7 @@ export class ChatClient { while (continuationState.continuationToken) { const currentSetResponse = await this.client.chat.listChatThreadsNext( continuationState.continuationToken, - options + options, ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -171,7 +171,7 @@ export class ChatClient { } private async *listChatThreadsAll( - options: ListChatThreadsOptions + options: ListChatThreadsOptions, ): AsyncIterableIterator { for await (const page of this.listChatThreadsPage({}, options)) { yield* page; @@ -183,7 +183,7 @@ export class ChatClient { * @param options - List chat threads options. */ public listChatThreads( - options: ListChatThreadsOptions = {} + options: ListChatThreadsOptions = {}, ): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan("ChatClient-ListChatThreads", options); try { @@ -217,14 +217,14 @@ export class ChatClient { */ public async deleteChatThread( threadId: string, - options: DeleteChatThreadOptions = {} + options: DeleteChatThreadOptions = {}, ): Promise { return tracingClient.withSpan( "ChatClient-DeleteChatThread", options, async (updatedOptions) => { await this.client.chat.deleteChatThread(threadId, updatedOptions); - } + }, ); } @@ -293,7 +293,7 @@ export class ChatClient { */ public on( event: "typingIndicatorReceived", - listener: (e: TypingIndicatorReceivedEvent) => void + listener: (e: TypingIndicatorReceivedEvent) => void, ): void; /** @@ -324,7 +324,7 @@ export class ChatClient { */ public on( event: "chatThreadPropertiesUpdated", - listener: (e: ChatThreadPropertiesUpdatedEvent) => void + listener: (e: ChatThreadPropertiesUpdatedEvent) => void, ): void; /** @@ -365,7 +365,7 @@ export class ChatClient { event !== "realTimeNotificationDisconnected" ) { throw new Error( - "You must call startRealtimeNotifications before you can subscribe to events." + "You must call startRealtimeNotifications before you can subscribe to events.", ); } @@ -400,7 +400,7 @@ export class ChatClient { */ public off( event: "typingIndicatorReceived", - listener: (e: TypingIndicatorReceivedEvent) => void + listener: (e: TypingIndicatorReceivedEvent) => void, ): void; /** @@ -431,7 +431,7 @@ export class ChatClient { */ public off( event: "chatThreadPropertiesUpdated", - listener: (e: ChatThreadPropertiesUpdatedEvent) => void + listener: (e: ChatThreadPropertiesUpdatedEvent) => void, ): void; /** diff --git a/sdk/communication/communication-chat/src/chatThreadClient.ts b/sdk/communication/communication-chat/src/chatThreadClient.ts index c57950a04f45..478fe04ce86c 100644 --- a/sdk/communication/communication-chat/src/chatThreadClient.ts +++ b/sdk/communication/communication-chat/src/chatThreadClient.ts @@ -71,7 +71,7 @@ export class ChatThreadClient { private readonly endpoint: string, threadId: string, credential: CommunicationTokenCredential, - options: ChatThreadClientOptions = {} + options: ChatThreadClientOptions = {}, ) { this.threadId = threadId; this.tokenCredential = credential; @@ -103,7 +103,7 @@ export class ChatThreadClient { return tracingClient.withSpan("ChatClient-GetProperties", options, async (updatedOptions) => { const result = await this.client.chatThread.getChatThreadProperties( this.threadId, - updatedOptions + updatedOptions, ); return mapToChatThreadPropertiesSdkModel(result); }); @@ -122,9 +122,9 @@ export class ChatThreadClient { await this.client.chatThread.updateChatThreadProperties( this.threadId, { topic: topic }, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -136,7 +136,7 @@ export class ChatThreadClient { */ public sendMessage( request: SendMessageRequest, - options: SendMessageOptions = {} + options: SendMessageOptions = {}, ): Promise { return tracingClient.withSpan( "ChatThreadClient-SendMessage", @@ -148,10 +148,10 @@ export class ChatThreadClient { const result = await this.client.chatThread.sendChatMessage( this.threadId, { ...request, ...options }, - updatedOptions + updatedOptions, ); return result; - } + }, ); } @@ -169,21 +169,21 @@ export class ChatThreadClient { const result = await this.client.chatThread.getChatMessage( this.threadId, messageId, - updatedOptions + updatedOptions, ); return mapToChatMessageSdkModel(result); - } + }, ); } private async *listMessagesPage( pageSettings: ListPageSettings, - options: ListMessagesOptions = {} + options: ListMessagesOptions = {}, ): AsyncIterableIterator { if (!pageSettings.continuationToken) { const currentSetResponse = await this.client.chatThread.listChatMessages( this.threadId, - options + options, ); pageSettings.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -195,7 +195,7 @@ export class ChatThreadClient { const currentSetResponse = await this.client.chatThread.listChatMessagesNext( this.threadId, pageSettings.continuationToken, - options + options, ); pageSettings.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -220,7 +220,7 @@ export class ChatThreadClient { public listMessages(options: ListMessagesOptions = {}): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "ChatThreadClient-ListMessages", - options + options, ); try { @@ -258,7 +258,7 @@ export class ChatThreadClient { options, async (updatedOptions) => { await this.client.chatThread.deleteChatMessage(this.threadId, messageId, updatedOptions); - } + }, ); } @@ -276,9 +276,9 @@ export class ChatThreadClient { this.threadId, messageId, options, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -289,7 +289,7 @@ export class ChatThreadClient { */ public async addParticipants( request: AddParticipantsRequest, - options: AddParticipantsOptions = {} + options: AddParticipantsOptions = {}, ): Promise { return tracingClient.withSpan( "ChatThreadClient-AddParticipants", @@ -298,21 +298,21 @@ export class ChatThreadClient { const result = await this.client.chatThread.addChatParticipants( this.threadId, mapToAddChatParticipantsRequestRestModel(request), - updatedOptions + updatedOptions, ); return result; - } + }, ); } private async *listParticipantsPage( continuationState: ListPageSettings, - options: ListParticipantsOptions = {} + options: ListParticipantsOptions = {}, ): AsyncIterableIterator { if (!continuationState.continuationToken) { const currentSetResponse = await this.client.chatThread.listChatParticipants( this.threadId, - options + options, ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -324,7 +324,7 @@ export class ChatThreadClient { const currentSetResponse = await this.client.chatThread.listChatParticipantsNext( this.threadId, continuationState.continuationToken, - options + options, ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -336,7 +336,7 @@ export class ChatThreadClient { } private async *listParticipantsAll( - options: ListParticipantsOptions + options: ListParticipantsOptions, ): AsyncIterableIterator { for await (const page of this.listParticipantsPage({}, options)) { yield* page; @@ -349,11 +349,11 @@ export class ChatThreadClient { * @param options - Operation options. */ public listParticipants( - options: ListParticipantsOptions = {} + options: ListParticipantsOptions = {}, ): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "ChatThreadClient-ListParticipants", - options + options, ); try { @@ -387,7 +387,7 @@ export class ChatThreadClient { */ public async removeParticipant( participant: CommunicationIdentifier, - options: RemoveParticipantOptions = {} + options: RemoveParticipantOptions = {}, ): Promise { return tracingClient.withSpan( "ChatThreadClient-RemoveParticipant", @@ -396,9 +396,9 @@ export class ChatThreadClient { await this.client.chatThread.removeChatParticipant( this.threadId, serializeCommunicationIdentifier(participant), - updatedOptions + updatedOptions, ); - } + }, ); } @@ -409,7 +409,7 @@ export class ChatThreadClient { * @returns True if the typing message notification could be sent, otherwise false. */ public async sendTypingNotification( - options: SendTypingNotificationOptions = {} + options: SendTypingNotificationOptions = {}, ): Promise { return tracingClient.withSpan( "ChatThreadClient-SendTypingNotification", @@ -430,7 +430,7 @@ export class ChatThreadClient { logger.info(`Typing Notification NOT Send. [thread_id=${this.threadId}]`); return false; - } + }, ); } @@ -441,25 +441,25 @@ export class ChatThreadClient { */ public async sendReadReceipt( request: SendReadReceiptRequest, - options: SendReadReceiptOptions = {} + options: SendReadReceiptOptions = {}, ): Promise { return tracingClient.withSpan( "ChatThreadClient-SendReadReceipt", options, async (updatedOptions) => { await this.client.chatThread.sendChatReadReceipt(this.threadId, request, updatedOptions); - } + }, ); } private async *listReadReceiptsPage( continuationState: ListPageSettings, - options: ListReadReceiptsOptions = {} + options: ListReadReceiptsOptions = {}, ): AsyncIterableIterator { if (!continuationState.continuationToken) { const currentSetResponse = await this.client.chatThread.listChatReadReceipts( this.threadId, - options + options, ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -471,7 +471,7 @@ export class ChatThreadClient { const currentSetResponse = await this.client.chatThread.listChatReadReceiptsNext( this.threadId, continuationState.continuationToken, - options + options, ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -483,7 +483,7 @@ export class ChatThreadClient { } private async *listReadReceiptsAll( - options: ListReadReceiptsOptions + options: ListReadReceiptsOptions, ): AsyncIterableIterator { for await (const page of this.listReadReceiptsPage({}, options)) { yield* page; @@ -496,11 +496,11 @@ export class ChatThreadClient { * @param options - Get messages options. */ public listReadReceipts( - options: ListReadReceiptsOptions = {} + options: ListReadReceiptsOptions = {}, ): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "ChatThreadClient-ListChatReadReceipts", - options + options, ); try { diff --git a/sdk/communication/communication-chat/src/credential/communicationTokenCredentialPolicy.ts b/sdk/communication/communication-chat/src/credential/communicationTokenCredentialPolicy.ts index 20bf46f386e0..2f87662a780e 100644 --- a/sdk/communication/communication-chat/src/credential/communicationTokenCredentialPolicy.ts +++ b/sdk/communication/communication-chat/src/credential/communicationTokenCredentialPolicy.ts @@ -14,7 +14,7 @@ import { * @param credential - The CommunicationTokenCredential implementation that can supply the user credential. */ export const createCommunicationTokenCredentialPolicy = ( - credential: CommunicationTokenCredential + credential: CommunicationTokenCredential, ): PipelinePolicy => { const policyOptions: BearerTokenAuthenticationPolicyOptions = { credential: { diff --git a/sdk/communication/communication-chat/src/models/mappers.ts b/sdk/communication/communication-chat/src/models/mappers.ts index bba40370641a..0ac6a047fd7a 100644 --- a/sdk/communication/communication-chat/src/models/mappers.ts +++ b/sdk/communication/communication-chat/src/models/mappers.ts @@ -19,7 +19,7 @@ import { } from "./models"; export const mapToCreateChatThreadOptionsRestModel = ( - options: CreateChatThreadOptions + options: CreateChatThreadOptions, ): RestModel.ChatCreateChatThreadOptionalParams => { const { participants, idempotencyToken, ...rest } = options; return { @@ -33,7 +33,7 @@ export const mapToCreateChatThreadOptionsRestModel = ( * Mapping chat participant customer model to chat participant REST model */ export const mapToChatParticipantRestModel = ( - chatParticipant: ChatParticipant + chatParticipant: ChatParticipant, ): RestModel.ChatParticipant => { const { id, ...rest } = chatParticipant; return { @@ -47,11 +47,11 @@ export const mapToChatParticipantRestModel = ( * Mapping add participants request to add chat participants request REST model */ export const mapToAddChatParticipantsRequestRestModel = ( - addParticipantsRequest: AddParticipantsRequest + addParticipantsRequest: AddParticipantsRequest, ): RestModel.AddChatParticipantsRequest => { return { participants: addParticipantsRequest.participants?.map((participant) => - mapToChatParticipantRestModel(participant) + mapToChatParticipantRestModel(participant), ), }; }; @@ -61,13 +61,13 @@ export const mapToAddChatParticipantsRequestRestModel = ( * Mapping chat participant REST model to chat participant SDK model */ export const mapToChatParticipantSdkModel = ( - chatParticipant: RestModel.ChatParticipant + chatParticipant: RestModel.ChatParticipant, ): ChatParticipant => { const { communicationIdentifier, ...rest } = chatParticipant; return { ...rest, id: deserializeCommunicationIdentifier( - communicationIdentifier as SerializedCommunicationIdentifier + communicationIdentifier as SerializedCommunicationIdentifier, ), }; }; @@ -76,13 +76,13 @@ export const mapToChatParticipantSdkModel = ( * @internal */ export const mapToChatContentSdkModel = ( - content: RestModel.ChatMessageContent + content: RestModel.ChatMessageContent, ): ChatMessageContent => { const { participants, initiatorCommunicationIdentifier, ...otherChatContents } = content; let result: ChatMessageContent = { ...otherChatContents }; if (initiatorCommunicationIdentifier) { const initiator = deserializeCommunicationIdentifier( - initiatorCommunicationIdentifier as SerializedCommunicationIdentifier + initiatorCommunicationIdentifier as SerializedCommunicationIdentifier, ); result = { ...result, initiator }; } @@ -110,7 +110,7 @@ export const mapToChatMessageSdkModel = (chatMessage: RestModel.ChatMessage): Ch } if (senderCommunicationIdentifier) { const sender = deserializeCommunicationIdentifier( - senderCommunicationIdentifier as SerializedCommunicationIdentifier + senderCommunicationIdentifier as SerializedCommunicationIdentifier, ); result = { ...result, sender }; } @@ -122,7 +122,7 @@ export const mapToChatMessageSdkModel = (chatMessage: RestModel.ChatMessage): Ch * Mapping chat messages collection REST model to chat message SDK model array */ export const mapToChatMessagesSdkModelArray = ( - chatMessagesCollection: RestModel.ChatMessagesCollection + chatMessagesCollection: RestModel.ChatMessagesCollection, ): ChatMessage[] => { return chatMessagesCollection.value?.map((chatMessage) => mapToChatMessageSdkModel(chatMessage)); }; @@ -132,14 +132,14 @@ export const mapToChatMessagesSdkModelArray = ( * Mapping chat thread REST model to chat thread SDK model */ export const mapToChatThreadPropertiesSdkModel = ( - chatThread: RestModel.ChatThreadProperties + chatThread: RestModel.ChatThreadProperties, ): ChatThreadProperties => { const { createdByCommunicationIdentifier, ...rest } = chatThread; if (createdByCommunicationIdentifier) { return { ...rest, createdBy: deserializeCommunicationIdentifier( - createdByCommunicationIdentifier as SerializedCommunicationIdentifier + createdByCommunicationIdentifier as SerializedCommunicationIdentifier, ), }; } else { @@ -152,7 +152,7 @@ export const mapToChatThreadPropertiesSdkModel = ( * Mapping chat thread REST model to chat thread SDK model */ export const mapToCreateChatThreadResultSdkModel = ( - result: RestModel.CreateChatThreadResult + result: RestModel.CreateChatThreadResult, ): CreateChatThreadResult => { const { chatThread, ...rest } = result; if (chatThread) { @@ -170,13 +170,13 @@ export const mapToCreateChatThreadResultSdkModel = ( * Mapping read receipt REST model to read receipt SDK model */ export const mapToReadReceiptSdkModel = ( - readReceipt: RestModel.ChatMessageReadReceipt + readReceipt: RestModel.ChatMessageReadReceipt, ): ChatMessageReadReceipt => { const { senderCommunicationIdentifier, ...rest } = readReceipt; return { ...rest, sender: deserializeCommunicationIdentifier( - senderCommunicationIdentifier as SerializedCommunicationIdentifier + senderCommunicationIdentifier as SerializedCommunicationIdentifier, ), }; }; diff --git a/sdk/communication/communication-chat/src/signaling/signalingClient.browser.ts b/sdk/communication/communication-chat/src/signaling/signalingClient.browser.ts index d78d90767620..5709c7702291 100644 --- a/sdk/communication/communication-chat/src/signaling/signalingClient.browser.ts +++ b/sdk/communication/communication-chat/src/signaling/signalingClient.browser.ts @@ -9,7 +9,7 @@ import { SignalingClientOptions } from "./signalingClient"; export const getSignalingClient = ( credential: CommunicationTokenCredential, logger: AzureLogger, - options?: SignalingClientOptions + options?: SignalingClientOptions, ): SignalingClient | undefined => { return new CommunicationSignalingClient(credential, logger, { environment: options?.environment ?? undefined, diff --git a/sdk/communication/communication-chat/src/signaling/signalingClient.ts b/sdk/communication/communication-chat/src/signaling/signalingClient.ts index 04962d9f05b4..8cc2472a5176 100644 --- a/sdk/communication/communication-chat/src/signaling/signalingClient.ts +++ b/sdk/communication/communication-chat/src/signaling/signalingClient.ts @@ -13,7 +13,7 @@ export interface SignalingClientOptions { export const getSignalingClient = ( credential: CommunicationTokenCredential, logger: AzureLogger, - options?: SignalingClientOptions + options?: SignalingClientOptions, ): SignalingClient | undefined => { if (typeof navigator !== "undefined" && navigator.product === "ReactNative") { // In React Native diff --git a/sdk/communication/communication-chat/test/internal/chatClient.mocked.spec.ts b/sdk/communication/communication-chat/test/internal/chatClient.mocked.spec.ts index 1f8a3f488a44..a6a7dc878324 100644 --- a/sdk/communication/communication-chat/test/internal/chatClient.mocked.spec.ts +++ b/sdk/communication/communication-chat/test/internal/chatClient.mocked.spec.ts @@ -43,7 +43,7 @@ describe("[Mocked] ChatClient", async function () { chatClient = new ChatClient( baseUri, new AzureCommunicationTokenCredential(generateToken()), - options as ChatClientOptions + options as ChatClientOptions, ); const spy = sinon.spy(mockHttpClient, "sendRequest"); @@ -72,7 +72,7 @@ describe("[Mocked] ChatClient", async function () { assert.equal(createThreadResult.chatThread?.createdBy?.kind, "communicationUser"); assert.deepEqual( (createThreadResult.chatThread?.createdBy as CommunicationUserIdentifier).communicationUserId, - mockCreateThreadResult.chatThread?.createdByCommunicationIdentifier.communicationUser?.id + mockCreateThreadResult.chatThread?.createdByCommunicationIdentifier.communicationUser?.id, ); const request = spy.getCall(0).args[0]; @@ -147,7 +147,7 @@ describe("[Mocked] ChatClient", async function () { const request = spy.getCall(0).args[0]; assert.equal( request.url, - `${baseUri}/chat/threads/${mockThread.id}?api-version=${API_VERSION}` + `${baseUri}/chat/threads/${mockThread.id}?api-version=${API_VERSION}`, ); assert.equal(request.method, "DELETE"); }); @@ -163,7 +163,7 @@ describe("[Mocked] ChatClient", async function () { } catch (error) { expect(error).to.be.an.instanceof(Error); expect((error as Error).message).to.equal( - "Realtime notifications are not supported in node js." + "Realtime notifications are not supported in node js.", ); } }); @@ -179,7 +179,7 @@ describe("[Mocked] ChatClient", async function () { } catch (error) { expect(error).to.be.an.instanceof(Error); expect((error as Error).message).to.equal( - "Realtime notifications are not supported in node js." + "Realtime notifications are not supported in node js.", ); } }); @@ -195,7 +195,7 @@ describe("[Mocked] ChatClient", async function () { } catch (error) { expect(error).to.be.an.instanceof(Error); expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser." + "Realtime notifications are only supported in the browser.", ); } }); @@ -211,7 +211,7 @@ describe("[Mocked] ChatClient", async function () { } catch (error) { expect(error).to.be.an.instanceof(Error); expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser." + "Realtime notifications are only supported in the browser.", ); } }); @@ -227,7 +227,7 @@ describe("[Mocked] ChatClient", async function () { } catch (error) { expect(error).to.be.an.instanceof(Error); expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser." + "Realtime notifications are only supported in the browser.", ); } }); @@ -243,7 +243,7 @@ describe("[Mocked] ChatClient", async function () { } catch (error) { expect(error).to.be.an.instanceof(Error); expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser." + "Realtime notifications are only supported in the browser.", ); } }); @@ -259,7 +259,7 @@ describe("[Mocked] ChatClient", async function () { } catch (error) { expect(error).to.be.an.instanceof(Error); expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser." + "Realtime notifications are only supported in the browser.", ); } }); @@ -275,7 +275,7 @@ describe("[Mocked] ChatClient", async function () { } catch (error) { expect(error).to.be.an.instanceof(Error); expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser." + "Realtime notifications are only supported in the browser.", ); } }); @@ -291,7 +291,7 @@ describe("[Mocked] ChatClient", async function () { } catch (error) { expect(error).to.be.an.instanceof(Error); expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser." + "Realtime notifications are only supported in the browser.", ); } }); @@ -307,7 +307,7 @@ describe("[Mocked] ChatClient", async function () { } catch (error) { expect(error).to.be.an.instanceof(Error); expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser." + "Realtime notifications are only supported in the browser.", ); } }); @@ -323,7 +323,7 @@ describe("[Mocked] ChatClient", async function () { } catch (error) { expect(error).to.be.an.instanceof(Error); expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser." + "Realtime notifications are only supported in the browser.", ); } }); @@ -339,7 +339,7 @@ describe("[Mocked] ChatClient", async function () { } catch (error) { expect(error).to.be.an.instanceof(Error); expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser." + "Realtime notifications are only supported in the browser.", ); } }); @@ -355,7 +355,7 @@ describe("[Mocked] ChatClient", async function () { } catch (error) { expect(error).to.be.an.instanceof(Error); expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser." + "Realtime notifications are only supported in the browser.", ); } }); diff --git a/sdk/communication/communication-chat/test/internal/chatThreadClient.mocked.spec.ts b/sdk/communication/communication-chat/test/internal/chatThreadClient.mocked.spec.ts index 326a882fbb5e..de66611f7310 100644 --- a/sdk/communication/communication-chat/test/internal/chatThreadClient.mocked.spec.ts +++ b/sdk/communication/communication-chat/test/internal/chatThreadClient.mocked.spec.ts @@ -57,14 +57,14 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal(responseUser?.kind, "communicationUser"); assert.equal( (responseUser as CommunicationUserIdentifier)?.communicationUserId, - expectedIdentifier.communicationUser?.id + expectedIdentifier.communicationUser?.id, ); const request = spy.getCall(0).args[0]; assert.equal( request.url, - `${baseUri}/chat/threads/${mockThread.id}?api-version=${API_VERSION}` + `${baseUri}/chat/threads/${mockThread.id}?api-version=${API_VERSION}`, ); assert.equal(request.method, "GET"); }); @@ -111,7 +111,7 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal( request.url, - `${baseUri}/chat/threads/${threadId}/messages?api-version=${API_VERSION}` + `${baseUri}/chat/threads/${threadId}/messages?api-version=${API_VERSION}`, ); assert.equal(request.method, "POST"); assert.deepEqual(JSON.parse(request.body as string), { @@ -143,7 +143,7 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal(responseUser?.kind, "communicationUser"); assert.equal( (responseUser as CommunicationUserIdentifier)?.communicationUserId, - expectedIdentifier?.communicationUser?.id + expectedIdentifier?.communicationUser?.id, ); assert.deepEqual(repsonseContents, expectedContents); @@ -151,7 +151,7 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal( request.url, - `${baseUri}/chat/threads/${threadId}/messages/${mockMessage.id}?api-version=${API_VERSION}` + `${baseUri}/chat/threads/${threadId}/messages/${mockMessage.id}?api-version=${API_VERSION}`, ); assert.equal(request.method, "GET"); }); @@ -220,7 +220,7 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal(responseUser?.kind, "communicationUser"); assert.equal( (responseUser as CommunicationUserIdentifier)?.communicationUserId, - expectedIdentifier?.communicationUser?.id + expectedIdentifier?.communicationUser?.id, ); } assert.deepEqual(responseMessage, expectedMessage); @@ -236,7 +236,7 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal( request.url, - `${baseUri}/chat/threads/${threadId}/messages?api-version=${API_VERSION}` + `${baseUri}/chat/threads/${threadId}/messages?api-version=${API_VERSION}`, ); assert.equal(request.method, "GET"); }); @@ -271,7 +271,7 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal( request.url, - `${baseUri}/chat/threads/${threadId}/messages?maxPageSize=2&api-version=${API_VERSION}` + `${baseUri}/chat/threads/${threadId}/messages?maxPageSize=2&api-version=${API_VERSION}`, ); assert.equal(request.method, "GET"); }); @@ -292,7 +292,7 @@ describe("[Mocked] ChatThreadClient", async function () { const request = spy.getCall(0).args[0]; assert.equal( request.url, - `${baseUri}/chat/threads/${threadId}/messages/${mockMessage.id}?api-version=${API_VERSION}` + `${baseUri}/chat/threads/${threadId}/messages/${mockMessage.id}?api-version=${API_VERSION}`, ); assert.equal(request.method, "PATCH"); assert.deepEqual(JSON.parse(request.body as string), { @@ -312,7 +312,7 @@ describe("[Mocked] ChatThreadClient", async function () { const request = spy.getCall(0).args[0]; assert.equal( request.url, - `${baseUri}/chat/threads/${threadId}/messages/${mockMessage.id}?api-version=${API_VERSION}` + `${baseUri}/chat/threads/${threadId}/messages/${mockMessage.id}?api-version=${API_VERSION}`, ); assert.equal(request.method, "DELETE"); }); @@ -333,18 +333,18 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal( request.url, - `${baseUri}/chat/threads/${threadId}/participants/:add?api-version=${API_VERSION}` + `${baseUri}/chat/threads/${threadId}/participants/:add?api-version=${API_VERSION}`, ); assert.equal(request.method, "POST"); const requestJson = JSON.parse(request.body as string); assert.equal( (sendRequest.participants[0].id as CommunicationUserIdentifier).communicationUserId, - requestJson.participants[0].communicationIdentifier.communicationUser.id + requestJson.participants[0].communicationIdentifier.communicationUser.id, ); assert.equal(sendRequest.participants[0].displayName, requestJson.participants[0].displayName); assert.equal( sendRequest.participants[0].shareHistoryTime?.toDateString(), - new Date(requestJson.participants[0].shareHistoryTime).toDateString() + new Date(requestJson.participants[0].shareHistoryTime).toDateString(), ); }); @@ -363,7 +363,7 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal( (id as CommunicationUserIdentifier).communicationUserId, - communicationIdentifier?.communicationUser?.id + communicationIdentifier?.communicationUser?.id, ); assert.deepEqual(requestParticipant, expectedParticipant); } @@ -375,7 +375,7 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal( request.url, - `${baseUri}/chat/threads/${threadId}/participants?api-version=${API_VERSION}` + `${baseUri}/chat/threads/${threadId}/participants?api-version=${API_VERSION}`, ); assert.equal(request.method, "GET"); }); @@ -404,7 +404,7 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal( request.url, - `${baseUri}/chat/threads/${threadId}/participants?maxPageSize=2&api-version=${API_VERSION}` + `${baseUri}/chat/threads/${threadId}/participants?maxPageSize=2&api-version=${API_VERSION}`, ); assert.equal(request.method, "GET"); }); @@ -420,7 +420,7 @@ describe("[Mocked] ChatThreadClient", async function () { const request = spy.getCall(0).args[0]; assert.equal( request.url, - `${baseUri}/chat/threads/${threadId}/participants/:remove?api-version=${API_VERSION}` + `${baseUri}/chat/threads/${threadId}/participants/:remove?api-version=${API_VERSION}`, ); assert.equal(request.method, "POST"); const requestJson = JSON.parse(request.body as string); @@ -439,7 +439,7 @@ describe("[Mocked] ChatThreadClient", async function () { const request = spy.getCall(0).args[0]; assert.equal( request.url, - `${baseUri}/chat/threads/${threadId}/typing?api-version=${API_VERSION}` + `${baseUri}/chat/threads/${threadId}/typing?api-version=${API_VERSION}`, ); assert.equal(request.method, "POST"); }); @@ -462,7 +462,7 @@ describe("[Mocked] ChatThreadClient", async function () { const request = spy.getCall(0).args[0]; assert.equal( request.url, - `${baseUri}/chat/threads/${threadId}/typing?api-version=${API_VERSION}` + `${baseUri}/chat/threads/${threadId}/typing?api-version=${API_VERSION}`, ); assert.equal(request.method, "POST"); } @@ -481,7 +481,7 @@ describe("[Mocked] ChatThreadClient", async function () { const request = spy.getCall(0).args[0]; assert.equal( request.url, - `${baseUri}/chat/threads/${threadId}/typing?api-version=${API_VERSION}` + `${baseUri}/chat/threads/${threadId}/typing?api-version=${API_VERSION}`, ); assert.equal(request.method, "POST"); assert.deepEqual(JSON.parse(request.body as string), options); @@ -498,7 +498,7 @@ describe("[Mocked] ChatThreadClient", async function () { const request = spy.getCall(0).args[0]; assert.equal( request.url, - `${baseUri}/chat/threads/${threadId}/readReceipts?api-version=${API_VERSION}` + `${baseUri}/chat/threads/${threadId}/readReceipts?api-version=${API_VERSION}`, ); assert.equal(request.method, "POST"); }); @@ -519,7 +519,7 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal(sender?.kind, "communicationUser"); assert.equal( (sender as CommunicationUserIdentifier)?.communicationUserId, - senderCommunicationIdentifier.communicationUser?.id + senderCommunicationIdentifier.communicationUser?.id, ); assert.deepEqual(requestReceipt, expectedReceipt); } @@ -530,7 +530,7 @@ describe("[Mocked] ChatThreadClient", async function () { const request = spy.getCall(0).args[0]; assert.equal( request.url, - `${baseUri}/chat/threads/${threadId}/readReceipts?api-version=${API_VERSION}` + `${baseUri}/chat/threads/${threadId}/readReceipts?api-version=${API_VERSION}`, ); assert.equal(request.method, "GET"); }); diff --git a/sdk/communication/communication-chat/test/internal/utils/mockClient.ts b/sdk/communication/communication-chat/test/internal/utils/mockClient.ts index ef97e70bffc4..dd6eb20cce9d 100644 --- a/sdk/communication/communication-chat/test/internal/utils/mockClient.ts +++ b/sdk/communication/communication-chat/test/internal/utils/mockClient.ts @@ -119,7 +119,7 @@ export const createChatClient = (mockHttpClient: HttpClient): ChatClient => { export const createChatThreadClient = ( threadId: string, - mockHttpClient: HttpClient + mockHttpClient: HttpClient, ): ChatThreadClient => { return new ChatThreadClient( baseUri, @@ -127,6 +127,6 @@ export const createChatThreadClient = ( new AzureCommunicationTokenCredential(generateToken()), { httpClient: mockHttpClient, - } + }, ); }; diff --git a/sdk/communication/communication-chat/test/public/utils/recordedClient.ts b/sdk/communication/communication-chat/test/public/utils/recordedClient.ts index a8d669556c35..50e31e8edc18 100644 --- a/sdk/communication/communication-chat/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-chat/test/public/utils/recordedClient.ts @@ -44,7 +44,7 @@ export const recorderOptions: RecorderStartOptions = { export async function createTestUser(recorder: Recorder): Promise { const identityClient = new CommunicationIdentityClient( assertEnvironmentVariable("COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING"), - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); return identityClient.createUserAndToken(["chat"]); } @@ -52,7 +52,7 @@ export async function createTestUser(recorder: Recorder): Promise { if (testUser) { const identityClient = new CommunicationIdentityClient( - assertEnvironmentVariable("COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING") + assertEnvironmentVariable("COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING"), ); await identityClient.deleteUser(testUser); } @@ -69,12 +69,12 @@ export function createChatClient(userToken: string, recorder: Recorder): ChatCli userToken = generateToken(); } const { url } = parseClientArguments( - assertEnvironmentVariable("COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING") + assertEnvironmentVariable("COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING"), ); return new ChatClient( url, new AzureCommunicationTokenCredential(userToken), - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); } diff --git a/sdk/communication/communication-common/package.json b/sdk/communication/communication-common/package.json index fbb779a59338..43fbedb6579e 100644 --- a/sdk/communication/communication-common/package.json +++ b/sdk/communication/communication-common/package.json @@ -17,11 +17,11 @@ "build:samples": "echo Skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "karma start --single-run", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -96,7 +96,6 @@ "karma": "^6.2.0", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "typescript": "~5.2.0", diff --git a/sdk/communication/communication-common/src/credential/clientArguments.ts b/sdk/communication/communication-common/src/credential/clientArguments.ts index 9db9142d87eb..3bba9052bdf0 100644 --- a/sdk/communication/communication-common/src/credential/clientArguments.ts +++ b/sdk/communication/communication-common/src/credential/clientArguments.ts @@ -53,7 +53,7 @@ export type UrlWithCredential = { */ export const parseClientArguments = ( connectionStringOrUrl: string, - credentialOrOptions?: unknown + credentialOrOptions?: unknown, ): UrlWithCredential => { if (isKeyCredential(credentialOrOptions) || isTokenCredential(credentialOrOptions)) { assertValidEndpoint(connectionStringOrUrl); diff --git a/sdk/communication/communication-common/src/credential/communicationAccessKeyCredentialPolicy.ts b/sdk/communication/communication-common/src/credential/communicationAccessKeyCredentialPolicy.ts index 1deb3ff55078..7c600eae43ca 100644 --- a/sdk/communication/communication-common/src/credential/communicationAccessKeyCredentialPolicy.ts +++ b/sdk/communication/communication-common/src/credential/communicationAccessKeyCredentialPolicy.ts @@ -24,7 +24,7 @@ const communicationAccessKeyCredentialPolicy = "CommunicationAccessKeyCredential * @param credential - The key credential. */ export function createCommunicationAccessKeyCredentialPolicy( - credential: KeyCredential + credential: KeyCredential, ): PipelinePolicy { return { name: communicationAccessKeyCredentialPolicy, @@ -52,7 +52,7 @@ export function createCommunicationAccessKeyCredentialPolicy( request.headers.set("x-ms-content-sha256", contentHash); request.headers.set( "Authorization", - `HMAC-SHA256 SignedHeaders=${signedHeaders}&Signature=${signature}` + `HMAC-SHA256 SignedHeaders=${signedHeaders}&Signature=${signature}`, ); return next(request); }, diff --git a/sdk/communication/communication-common/src/credential/communicationAuthPolicy.ts b/sdk/communication/communication-common/src/credential/communicationAuthPolicy.ts index 001b7c51afdb..69c765c426e0 100644 --- a/sdk/communication/communication-common/src/credential/communicationAuthPolicy.ts +++ b/sdk/communication/communication-common/src/credential/communicationAuthPolicy.ts @@ -16,7 +16,7 @@ import { createCommunicationAccessKeyCredentialPolicy } from "./communicationAcc * @param credential - The KeyCredential or TokenCredential. */ export function createCommunicationAuthPolicy( - credential: KeyCredential | TokenCredential + credential: KeyCredential | TokenCredential, ): PipelinePolicy { if (isTokenCredential(credential)) { const policyOptions: BearerTokenAuthenticationPolicyOptions = { diff --git a/sdk/communication/communication-common/src/identifierModelSerializer.ts b/sdk/communication/communication-common/src/identifierModelSerializer.ts index 0cbd53d119ec..d95ce7eb2978 100644 --- a/sdk/communication/communication-common/src/identifierModelSerializer.ts +++ b/sdk/communication/communication-common/src/identifierModelSerializer.ts @@ -105,10 +105,10 @@ export type SerializedCommunicationCloudEnvironment = "public" | "dod" | "gcch"; const assertNotNullOrUndefined = < T extends Record, P extends keyof T, - Q extends string & keyof T[P] + Q extends string & keyof T[P], >( obj: T, - prop: Q + prop: Q, ): Required[P]>[Q] => { const subObjName = Object.keys(obj)[0]; const subObj = (obj as any)[subObjName]; @@ -134,7 +134,7 @@ const assertMaximumOneNestedModel = (identifier: SerializedCommunicationIdentifi } if (presentProperties.length > 1) { throw new Error( - `Only one of the properties in ${JSON.stringify(presentProperties)} should be present.` + `Only one of the properties in ${JSON.stringify(presentProperties)} should be present.`, ); } }; @@ -145,7 +145,7 @@ const assertMaximumOneNestedModel = (identifier: SerializedCommunicationIdentifi * @param identifier - The CommunicationIdentifier to be serialized. */ export const serializeCommunicationIdentifier = ( - identifier: CommunicationIdentifier + identifier: CommunicationIdentifier, ): SerializedCommunicationIdentifier => { const identifierKind = getIdentifierKind(identifier); switch (identifierKind.kind) { @@ -211,7 +211,7 @@ const getKind = (serializedIdentifier: SerializedCommunicationIdentifier): strin * @param serializedIdentifier - The SerializedCommunicationIdentifier to be deserialized. */ export const deserializeCommunicationIdentifier = ( - serializedIdentifier: SerializedCommunicationIdentifier + serializedIdentifier: SerializedCommunicationIdentifier, ): CommunicationIdentifierKind => { assertMaximumOneNestedModel(serializedIdentifier); diff --git a/sdk/communication/communication-common/src/identifierModels.ts b/sdk/communication/communication-common/src/identifierModels.ts index fca500478195..4d57e70084d7 100644 --- a/sdk/communication/communication-common/src/identifierModels.ts +++ b/sdk/communication/communication-common/src/identifierModels.ts @@ -96,7 +96,7 @@ export interface UnknownIdentifier { * @param identifier - The assumed CommunicationUserIdentifier to be tested. */ export const isCommunicationUserIdentifier = ( - identifier: CommunicationIdentifier + identifier: CommunicationIdentifier, ): identifier is CommunicationUserIdentifier => { return typeof (identifier as any).communicationUserId === "string"; }; @@ -107,7 +107,7 @@ export const isCommunicationUserIdentifier = ( * @param identifier - The assumed PhoneNumberIdentifier to be tested. */ export const isPhoneNumberIdentifier = ( - identifier: CommunicationIdentifier + identifier: CommunicationIdentifier, ): identifier is PhoneNumberIdentifier => { return typeof (identifier as any).phoneNumber === "string"; }; @@ -118,7 +118,7 @@ export const isPhoneNumberIdentifier = ( * @param identifier - The assumed available to be tested. */ export const isMicrosoftTeamsUserIdentifier = ( - identifier: CommunicationIdentifier + identifier: CommunicationIdentifier, ): identifier is MicrosoftTeamsUserIdentifier => { return typeof (identifier as any).microsoftTeamsUserId === "string"; }; @@ -129,7 +129,7 @@ export const isMicrosoftTeamsUserIdentifier = ( * @param identifier - The assumed available to be tested. */ export const isMicrosoftTeamsAppIdentifier = ( - identifier: CommunicationIdentifier + identifier: CommunicationIdentifier, ): identifier is MicrosoftTeamsAppIdentifier => { return typeof (identifier as any).teamsAppId === "string"; }; @@ -140,7 +140,7 @@ export const isMicrosoftTeamsAppIdentifier = ( * @param identifier - The assumed UnknownIdentifier to be tested. */ export const isUnknownIdentifier = ( - identifier: CommunicationIdentifier + identifier: CommunicationIdentifier, ): identifier is UnknownIdentifier => { return typeof (identifier as any).id === "string"; }; @@ -211,7 +211,7 @@ export interface UnknownIdentifierKind extends UnknownIdentifier { * @param identifier - The identifier whose kind is to be inferred. */ export const getIdentifierKind = ( - identifier: CommunicationIdentifier + identifier: CommunicationIdentifier, ): CommunicationIdentifierKind => { if (isCommunicationUserIdentifier(identifier)) { return { ...identifier, kind: "communicationUser" }; @@ -276,7 +276,7 @@ export const getIdentifierRawId = (identifier: CommunicationIdentifier): string const buildMicrosoftTeamsAppIdentifier = ( teamsAppId: string, - cloud: "public" | "dod" | "gcch" + cloud: "public" | "dod" | "gcch", ): CommunicationIdentifierKind => { return { kind: "microsoftTeamsApp", @@ -288,7 +288,7 @@ const buildMicrosoftTeamsAppIdentifier = ( const buildMicrosoftTeamsUserIdentifier = ( id: string, cloud: "public" | "dod" | "gcch", - isAnonymous: boolean + isAnonymous: boolean, ): CommunicationIdentifierKind => { return { kind: "microsoftTeamsUser", diff --git a/sdk/communication/communication-common/test/public/communicationKeyCredentialPolicy.spec.ts b/sdk/communication/communication-common/test/public/communicationKeyCredentialPolicy.spec.ts index c4db8fd3fe65..aa6d4ce1dd56 100644 --- a/sdk/communication/communication-common/test/public/communicationKeyCredentialPolicy.spec.ts +++ b/sdk/communication/communication-common/test/public/communicationKeyCredentialPolicy.spec.ts @@ -27,11 +27,11 @@ describe("CommunicationKeyCredentialPolicy", function () { describe("CommunicationKeyCredentialPolicy", function () { it("signs the request correctly with path and query params", async function () { const authHeader = await verifyHeadersForUrlReturnAuthHeader( - "https://example.com/testPath?testQuery=test" + "https://example.com/testPath?testQuery=test", ); assert.equal( authHeader, - "HMAC-SHA256 SignedHeaders=x-ms-date;host;x-ms-content-sha256&Signature=DGdgwggJWnQyc6EHjR/Vbqg1ES64KpD6U2XwTDDj3tU=" + "HMAC-SHA256 SignedHeaders=x-ms-date;host;x-ms-content-sha256&Signature=DGdgwggJWnQyc6EHjR/Vbqg1ES64KpD6U2XwTDDj3tU=", ); }); }); @@ -41,7 +41,7 @@ describe("CommunicationKeyCredentialPolicy", function () { const authHeader = await verifyHeadersForUrlReturnAuthHeader("https://example.com/testPath"); assert.equal( authHeader, - "HMAC-SHA256 SignedHeaders=x-ms-date;host;x-ms-content-sha256&Signature=+6tWkg3lNKVjQHHmxkdGQcJjUgzclsWTMebnuCz1ngU=" + "HMAC-SHA256 SignedHeaders=x-ms-date;host;x-ms-content-sha256&Signature=+6tWkg3lNKVjQHHmxkdGQcJjUgzclsWTMebnuCz1ngU=", ); }); }); diff --git a/sdk/communication/communication-common/test/public/communicationTokenCredential.spec.ts b/sdk/communication/communication-common/test/public/communicationTokenCredential.spec.ts index 8acc8423c1a4..ac1ed5635062 100644 --- a/sdk/communication/communication-common/test/public/communicationTokenCredential.spec.ts +++ b/sdk/communication/communication-common/test/public/communicationTokenCredential.spec.ts @@ -20,13 +20,13 @@ const generateToken = (validForMinutes: number): string => { }; const exposeInternalTimeout = ( - tokenCredential: AzureCommunicationTokenCredential + tokenCredential: AzureCommunicationTokenCredential, ): ReturnType => { return ((tokenCredential as any).tokenCredential as any).activeTimeout; }; const exposeInternalUpdatePromise = async ( - tokenCredential: AzureCommunicationTokenCredential + tokenCredential: AzureCommunicationTokenCredential, ): Promise => { const internalPromise = ((tokenCredential as any).tokenCredential as any).activeTokenUpdating; if (internalPromise) { @@ -57,7 +57,7 @@ describe("CommunicationTokenCredential", function () { await assert.isRejected( new AzureCommunicationTokenCredential({ tokenRefresher: async () => "IAmNotAToken", - }).getToken() + }).getToken(), ); }); @@ -122,7 +122,7 @@ describe("CommunicationTokenCredential", function () { await assert.isRejected( credential.getToken(), Error, - "The token returned from the tokenRefresher is expired." + "The token returned from the tokenRefresher is expired.", ); sinon.assert.calledOnce(tokenRefresher); }); @@ -267,7 +267,7 @@ describe("CommunicationTokenCredential", function () { const tokenExpirationMinutes = 20; const expectedPreBackOffCallCount = 1; const expectedTotalCallCount = Math.floor( - Math.log(tokenExpirationMinutes * 60) / Math.log(1 / defaultRefreshAfterLifetimePercentage) + Math.log(tokenExpirationMinutes * 60) / Math.log(1 / defaultRefreshAfterLifetimePercentage), ); const staticToken = generateToken(tokenExpirationMinutes); const tokenRefresher = sinon.stub().resolves(((): string => staticToken)()); // keep returning the same token for the duration of the test diff --git a/sdk/communication/communication-common/test/public/identifierModelSerializer.spec.ts b/sdk/communication/communication-common/test/public/identifierModelSerializer.spec.ts index d9e24e0bc0fc..6d5035a728f9 100644 --- a/sdk/communication/communication-common/test/public/identifierModelSerializer.spec.ts +++ b/sdk/communication/communication-common/test/public/identifierModelSerializer.spec.ts @@ -12,25 +12,25 @@ import { assert } from "chai"; const assertSerialize = ( identifier: CommunicationIdentifier, - expected: SerializedCommunicationIdentifier + expected: SerializedCommunicationIdentifier, ): void => { assert.deepEqual(serializeCommunicationIdentifier(identifier), expected); }; const assertDeserialize = ( serializedIdentifier: SerializedCommunicationIdentifier, - expected: CommunicationIdentifierKind + expected: CommunicationIdentifierKind, ): void => { assert.deepEqual(deserializeCommunicationIdentifier(serializedIdentifier), expected); }; const assertThrowsMissingProperty = < P extends keyof SerializedCommunicationIdentifier, - Q extends string & keyof Required[P] + Q extends string & keyof Required[P], >( serializedIdentifier: SerializedCommunicationIdentifier, identifierType: P, - missingPropertyName: Q + missingPropertyName: Q, ): void => { assert.throws(() => { deserializeCommunicationIdentifier(serializedIdentifier); @@ -38,7 +38,7 @@ const assertThrowsMissingProperty = < }; const assertThrowsTooManyProperties = ( - serializedIdentifier: SerializedCommunicationIdentifier + serializedIdentifier: SerializedCommunicationIdentifier, ): void => { assert.throws(() => { deserializeCommunicationIdentifier(serializedIdentifier); @@ -57,7 +57,7 @@ describe("Identifier model serializer", function () { communicationUser: { id: "8:acs:37691ec4-57fb-4c0f-ae31-32791610cb14_37691ec4-57fb-4c0f-ae31-32791610cb14", }, - } + }, ); assertSerialize( { microsoftTeamsUserId: "37691ec4-57fb-4c0f-ae31-32791610cb14" }, @@ -68,7 +68,7 @@ describe("Identifier model serializer", function () { isAnonymous: false, cloud: "public", }, - } + }, ); assertSerialize( { microsoftTeamsUserId: "37691ec4-57fb-4c0f-ae31-32791610cb14", isAnonymous: false }, @@ -79,7 +79,7 @@ describe("Identifier model serializer", function () { isAnonymous: false, cloud: "public", }, - } + }, ); assertSerialize( { microsoftTeamsUserId: "37691ec4-57fb-4c0f-ae31-32791610cb14", isAnonymous: true }, @@ -90,7 +90,7 @@ describe("Identifier model serializer", function () { isAnonymous: true, cloud: "public", }, - } + }, ); assertSerialize( { microsoftTeamsUserId: "37691ec4-57fb-4c0f-ae31-32791610cb14", rawId: "override" }, @@ -101,7 +101,7 @@ describe("Identifier model serializer", function () { isAnonymous: false, cloud: "public", }, - } + }, ); assertSerialize( { @@ -115,7 +115,7 @@ describe("Identifier model serializer", function () { isAnonymous: false, cloud: "dod", }, - } + }, ); assertSerialize( { phoneNumber: "+12345556789" }, @@ -124,7 +124,7 @@ describe("Identifier model serializer", function () { phoneNumber: { value: "+12345556789", }, - } + }, ); assertSerialize( { phoneNumber: "+12345556789", rawId: "override" }, @@ -133,11 +133,11 @@ describe("Identifier model serializer", function () { phoneNumber: { value: "+12345556789", }, - } + }, ); assertSerialize( { id: "48:37691ec4-57fb-4c0f-ae31-32791610cb14" }, - { rawId: "48:37691ec4-57fb-4c0f-ae31-32791610cb14" } + { rawId: "48:37691ec4-57fb-4c0f-ae31-32791610cb14" }, ); }); @@ -158,7 +158,7 @@ describe("Identifier model serializer", function () { kind: "communicationUser", communicationUserId: "8:acs:37691ec4-57fb-4c0f-ae31-32791610cb14_37691ec4-57fb-4c0f-ae31-32791610cb14", - } + }, ); assertDeserialize( { @@ -171,7 +171,7 @@ describe("Identifier model serializer", function () { kind: "communicationUser", communicationUserId: "8:acs:37691ec4-57fb-4c0f-ae31-32791610cb14_37691ec4-57fb-4c0f-ae31-32791610cb14", - } + }, ); assertDeserialize( { @@ -184,7 +184,7 @@ describe("Identifier model serializer", function () { kind: "communicationUser", communicationUserId: "8:acs:37691ec4-57fb-4c0f-ae31-32791610cb14_37691ec4-57fb-4c0f-ae31-32791610cb14", - } + }, ); assertDeserialize( { @@ -194,7 +194,7 @@ describe("Identifier model serializer", function () { { kind: "unknown", id: "8:acs:37691ec4-57fb-4c0f-ae31-32791610cb14_37691ec4-57fb-4c0f-ae31-32791610cb14", - } + }, ); assertDeserialize( { @@ -207,7 +207,7 @@ describe("Identifier model serializer", function () { kind: "communicationUser", communicationUserId: "8:acs:37691ec4-57fb-4c0f-ae31-32791610cb14_37691ec4-57fb-4c0f-ae31-32791610cb14", - } + }, ); assertDeserialize( { @@ -220,19 +220,19 @@ describe("Identifier model serializer", function () { kind: "communicationUser", communicationUserId: "8:acs:37691ec4-57fb-4c0f-ae31-32791610cb14_37691ec4-57fb-4c0f-ae31-32791610cb14", - } + }, ); assertDeserialize( { phoneNumber: { value: "+1234555000" }, rawId: "4:+1234555000" }, - { kind: "phoneNumber", phoneNumber: "+1234555000", rawId: "4:+1234555000" } + { kind: "phoneNumber", phoneNumber: "+1234555000", rawId: "4:+1234555000" }, ); assertDeserialize( { kind: "phoneNumber", phoneNumber: { value: "+1234555000" }, rawId: "4:+1234555000" }, - { kind: "phoneNumber", phoneNumber: "+1234555000", rawId: "4:+1234555000" } + { kind: "phoneNumber", phoneNumber: "+1234555000", rawId: "4:+1234555000" }, ); assertDeserialize( { kind: "phoneNumber", rawId: "4:+1234555000" }, - { kind: "unknown", id: "4:+1234555000" } + { kind: "unknown", id: "4:+1234555000" }, ); assertDeserialize( { @@ -249,7 +249,7 @@ describe("Identifier model serializer", function () { isAnonymous: false, cloud: "public", rawId: "8:orgid:37691ec4-57fb-4c0f-ae31-32791610cb14", - } + }, ); assertDeserialize( { @@ -266,7 +266,7 @@ describe("Identifier model serializer", function () { isAnonymous: true, cloud: "public", rawId: "8:teamsvisitor:37691ec4-57fb-4c0f-ae31-32791610cb14", - } + }, ); assertDeserialize( { @@ -283,7 +283,7 @@ describe("Identifier model serializer", function () { isAnonymous: false, cloud: "gcch", rawId: "8:gcch:37691ec4-57fb-4c0f-ae31-32791610cb14", - } + }, ); assertDeserialize( { @@ -301,7 +301,7 @@ describe("Identifier model serializer", function () { isAnonymous: false, cloud: "public", rawId: "8:orgid:37691ec4-57fb-4c0f-ae31-32791610cb14", - } + }, ); assertDeserialize( { @@ -311,15 +311,15 @@ describe("Identifier model serializer", function () { { kind: "unknown", id: "8:orgid:37691ec4-57fb-4c0f-ae31-32791610cb14", - } + }, ); assertDeserialize( { rawId: "48:37691ec4-57fb-4c0f-ae31-32791610cb14" }, - { kind: "unknown", id: "48:37691ec4-57fb-4c0f-ae31-32791610cb14" } + { kind: "unknown", id: "48:37691ec4-57fb-4c0f-ae31-32791610cb14" }, ); assertDeserialize( { kind: "unknown", rawId: "48:37691ec4-57fb-4c0f-ae31-32791610cb14" }, - { kind: "unknown", id: "48:37691ec4-57fb-4c0f-ae31-32791610cb14" } + { kind: "unknown", id: "48:37691ec4-57fb-4c0f-ae31-32791610cb14" }, ); }); @@ -336,14 +336,14 @@ describe("Identifier model serializer", function () { communicationUser: {} as any, }, "communicationUser", - "id" + "id", ); assertThrowsMissingProperty( { phoneNumber: {} as any, }, "phoneNumber", - "value" + "value", ); assertThrowsMissingProperty( { @@ -352,7 +352,7 @@ describe("Identifier model serializer", function () { } as any, }, "microsoftTeamsUser", - "userId" + "userId", ); assertThrowsMissingProperty( { @@ -362,7 +362,7 @@ describe("Identifier model serializer", function () { } as any, }, "microsoftTeamsUser", - "isAnonymous" + "isAnonymous", ); assertThrowsMissingProperty( { @@ -372,7 +372,7 @@ describe("Identifier model serializer", function () { } as any, }, "microsoftTeamsUser", - "cloud" + "cloud", ); assert.throws(() => { diff --git a/sdk/communication/communication-common/test/public/identifierModels.spec.ts b/sdk/communication/communication-common/test/public/identifierModels.spec.ts index 7bbdfc6d801f..ac62bb0bf0b2 100644 --- a/sdk/communication/communication-common/test/public/identifierModels.spec.ts +++ b/sdk/communication/communication-common/test/public/identifierModels.spec.ts @@ -30,7 +30,7 @@ describe("Identifier models", function () { assert.strictEqual(identifierKind.kind, "phoneNumber"); assert.strictEqual( (identifierKind as PhoneNumberIdentifier).phoneNumber, - phoneNumber.phoneNumber + phoneNumber.phoneNumber, ); }); @@ -43,118 +43,118 @@ describe("Identifier models", function () { communicationUserId: "8:acs:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130", }, - "8:acs:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130" + "8:acs:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130", ); assertRawId( { communicationUserId: "8:gcch-acs:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130", }, - "8:gcch-acs:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130" + "8:gcch-acs:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130", ); assertRawId( { communicationUserId: "someFutureFormat", }, - "someFutureFormat" + "someFutureFormat", ); assertRawId( { microsoftTeamsUserId: "45ab2481-1c1c-4005-be24-0ffb879b1130" }, - "8:orgid:45ab2481-1c1c-4005-be24-0ffb879b1130" + "8:orgid:45ab2481-1c1c-4005-be24-0ffb879b1130", ); assertRawId( { microsoftTeamsUserId: "45ab2481-1c1c-4005-be24-0ffb879b1130", cloud: "public", }, - "8:orgid:45ab2481-1c1c-4005-be24-0ffb879b1130" + "8:orgid:45ab2481-1c1c-4005-be24-0ffb879b1130", ); assertRawId( { microsoftTeamsUserId: "45ab2481-1c1c-4005-be24-0ffb879b1130", cloud: "dod", }, - "8:dod:45ab2481-1c1c-4005-be24-0ffb879b1130" + "8:dod:45ab2481-1c1c-4005-be24-0ffb879b1130", ); assertRawId( { microsoftTeamsUserId: "45ab2481-1c1c-4005-be24-0ffb879b1130", cloud: "gcch", }, - "8:gcch:45ab2481-1c1c-4005-be24-0ffb879b1130" + "8:gcch:45ab2481-1c1c-4005-be24-0ffb879b1130", ); assertRawId( { microsoftTeamsUserId: "45ab2481-1c1c-4005-be24-0ffb879b1130", isAnonymous: false, }, - "8:orgid:45ab2481-1c1c-4005-be24-0ffb879b1130" + "8:orgid:45ab2481-1c1c-4005-be24-0ffb879b1130", ); assertRawId( { microsoftTeamsUserId: "45ab2481-1c1c-4005-be24-0ffb879b1130", isAnonymous: true, }, - "8:teamsvisitor:45ab2481-1c1c-4005-be24-0ffb879b1130" + "8:teamsvisitor:45ab2481-1c1c-4005-be24-0ffb879b1130", ); assertRawId( { microsoftTeamsUserId: "45ab2481-1c1c-4005-be24-0ffb879b1130", rawId: "8:orgid:legacyFormat", }, - "8:orgid:legacyFormat" + "8:orgid:legacyFormat", ); assertRawId( { phoneNumber: "+112345556789", }, - "4:+112345556789" + "4:+112345556789", ); assertRawId( { phoneNumber: "112345556789", }, - "4:112345556789" + "4:112345556789", ); assertRawId( { phoneNumber: "+112345556789", rawId: "4:112345556789", }, - "4:112345556789" + "4:112345556789", ); assertRawId( { phoneNumber: "otherFormat", rawId: "4:207ffef6-9444-41fb-92ab-20eacaae2768", }, - "4:207ffef6-9444-41fb-92ab-20eacaae2768" + "4:207ffef6-9444-41fb-92ab-20eacaae2768", ); assertRawId( { phoneNumber: "otherFormat", rawId: "4:207ffef6-9444-41fb-92ab-20eacaae2768_207ffef6-9444-41fb-92ab-20eacaae2768", }, - "4:207ffef6-9444-41fb-92ab-20eacaae2768_207ffef6-9444-41fb-92ab-20eacaae2768" + "4:207ffef6-9444-41fb-92ab-20eacaae2768_207ffef6-9444-41fb-92ab-20eacaae2768", ); assertRawId( { phoneNumber: "otherFormat", rawId: "4:+112345556789_207ffef6-9444-41fb-92ab-20eacaae2768", }, - "4:+112345556789_207ffef6-9444-41fb-92ab-20eacaae2768" + "4:+112345556789_207ffef6-9444-41fb-92ab-20eacaae2768", ); assertRawId( { id: "28:45ab2481-1c1c-4005-be24-0ffb879b1130", }, - "28:45ab2481-1c1c-4005-be24-0ffb879b1130" + "28:45ab2481-1c1c-4005-be24-0ffb879b1130", ); assertRawId( { foo: "nonsense", } as any, - undefined as unknown as string + undefined as unknown as string, ); }); @@ -168,7 +168,7 @@ describe("Identifier models", function () { communicationUserId: "8:acs:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130", kind: "communicationUser", - } + }, ); assertIdentifier( "8:spool:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130", @@ -176,7 +176,7 @@ describe("Identifier models", function () { communicationUserId: "8:spool:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130", kind: "communicationUser", - } + }, ); assertIdentifier( "8:dod-acs:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130", @@ -184,7 +184,7 @@ describe("Identifier models", function () { communicationUserId: "8:dod-acs:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130", kind: "communicationUser", - } + }, ); assertIdentifier( "8:gcch-acs:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130", @@ -192,7 +192,7 @@ describe("Identifier models", function () { communicationUserId: "8:gcch-acs:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130", kind: "communicationUser", - } + }, ); assertIdentifier("8:acs:something", { communicationUserId: "8:acs:something", @@ -244,7 +244,7 @@ describe("Identifier models", function () { { phoneNumber: "207ffef6-9444-41fb-92ab-20eacaae2768_207ffef6-9444-41fb-92ab-20eacaae2768", kind: "phoneNumber", - } + }, ); assertIdentifier("4:+112345556789_207ffef6-9444-41fb-92ab-20eacaae2768", { phoneNumber: "+112345556789_207ffef6-9444-41fb-92ab-20eacaae2768", @@ -306,16 +306,16 @@ describe("Identifier models", function () { assert.strictEqual(getIdentifierRawId(createIdentifierFromRawId(rawId)), rawId); assertRoundtrip( - "8:acs:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130" + "8:acs:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130", ); assertRoundtrip( - "8:spool:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130" + "8:spool:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130", ); assertRoundtrip( - "8:dod-acs:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130" + "8:dod-acs:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130", ); assertRoundtrip( - "8:gcch-acs:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130" + "8:gcch-acs:bbbcbc1e-9f06-482a-b5d8-20e3f26ef0cd_45ab2481-1c1c-4005-be24-0ffb879b1130", ); assertRoundtrip("8:acs:something"); assertRoundtrip("8:orgid:45ab2481-1c1c-4005-be24-0ffb879b1130"); diff --git a/sdk/communication/communication-common/test/public/utils/credentialUtils.ts b/sdk/communication/communication-common/test/public/utils/credentialUtils.ts index 4165475ecc98..ed3060c0c608 100644 --- a/sdk/communication/communication-common/test/public/utils/credentialUtils.ts +++ b/sdk/communication/communication-common/test/public/utils/credentialUtils.ts @@ -6,11 +6,11 @@ import { assert } from "chai"; export const assertPropertyNames = ( expectedInstance: AzureKeyCredential, - actualInstance: T + actualInstance: T, ): void => { assert.includeMembers( Object.getOwnPropertyNames(expectedInstance), Object.getOwnPropertyNames(actualInstance), - `Object is not an instance of ${expectedInstance.constructor.name}.` + `Object is not an instance of ${expectedInstance.constructor.name}.`, ); }; diff --git a/sdk/communication/communication-email/package.json b/sdk/communication/communication-email/package.json index aa13e2f49673..6f3967f52dca 100644 --- a/sdk/communication/communication-email/package.json +++ b/sdk/communication/communication-email/package.json @@ -13,11 +13,11 @@ "build": "npm run clean && tsc -p . && dev-tool run bundle --browser-test=false && api-extractor run --local", "build:samples": "dev-tool samples publish -f", "build:test": "tsc -p . && dev-tool run bundle", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md && rushx format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -83,7 +83,6 @@ "mocha": "^10.0.0", "c8": "^8.0.0", "typescript": "~5.2.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "ts-node": "^10.0.0", "esm": "^3.2.18" diff --git a/sdk/communication/communication-email/src/emailClient.ts b/sdk/communication/communication-email/src/emailClient.ts index df3bb0347558..710b96314a2f 100644 --- a/sdk/communication/communication-email/src/emailClient.ts +++ b/sdk/communication/communication-email/src/emailClient.ts @@ -45,13 +45,13 @@ export class EmailClient { constructor( endpoint: string, credential: KeyCredential | TokenCredential, - options?: EmailClientOptions + options?: EmailClientOptions, ); constructor( connectionStringOrUrl: string, credentialOrOptions?: EmailClientOptions | TokenCredential | KeyCredential, - maybeOptions: EmailClientOptions = {} + maybeOptions: EmailClientOptions = {}, ) { const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions); const options = isEmailClientOptions(credentialOrOptions) ? credentialOrOptions : maybeOptions; @@ -77,7 +77,7 @@ export class EmailClient { */ beginSend( message: EmailMessage, - options?: EmailSendOptionalParams + options?: EmailSendOptionalParams, ): Promise, EmailSendResponse>> { return this.generatedClient.email.beginSend(message, options); } diff --git a/sdk/communication/communication-email/test/public/utils/recordedClient.ts b/sdk/communication/communication-email/test/public/utils/recordedClient.ts index b011aa2315f9..9af3d3fa6c69 100644 --- a/sdk/communication/communication-email/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-email/test/public/utils/recordedClient.ts @@ -61,13 +61,13 @@ export async function createRecorder(context: Test | undefined): Promise { const recorder = await createRecorder(context.currentTest); const client = new EmailClient( env.COMMUNICATION_CONNECTION_STRING_EMAIL ?? "", - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); return { client: client, diff --git a/sdk/communication/communication-identity/package.json b/sdk/communication/communication-identity/package.json index 1daa8a10e215..d821e1b56b1f 100644 --- a/sdk/communication/communication-identity/package.json +++ b/sdk/communication/communication-identity/package.json @@ -14,13 +14,13 @@ "build:node": "tsc -p . && dev-tool run bundle", "build:samples": "echo Obsolete.", "build:test": "tsc -p . && dev-tool run bundle", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "execute:js-samples": "dev-tool samples run dist-samples/javascript", "execute:ts-samples": "dev-tool samples run dist-samples/typescript/dist/dist-samples/typescript/src/", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md && rushx format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 --exclude 'dist-esm/test/**/browser/*.spec.js' 'dist-esm/test/**/*.spec.js'", @@ -136,7 +136,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "process": "^0.11.10", "rimraf": "^3.0.0", "sinon": "^17.0.0", diff --git a/sdk/communication/communication-identity/src/communicationIdentityClient.ts b/sdk/communication/communication-identity/src/communicationIdentityClient.ts index 62b295c33b3d..c32a0ee2f130 100644 --- a/sdk/communication/communication-identity/src/communicationIdentityClient.ts +++ b/sdk/communication/communication-identity/src/communicationIdentityClient.ts @@ -23,7 +23,7 @@ import { logger } from "./common/logger"; import { tracingClient } from "./generated/src/tracing"; const isCommunicationIdentityClientOptions = ( - options: any + options: any, ): options is CommunicationIdentityClientOptions => options && !isTokenCredential(options) && !isKeyCredential(options); @@ -53,7 +53,7 @@ export class CommunicationIdentityClient { public constructor( endpoint: string, credential: KeyCredential, - options?: CommunicationIdentityClientOptions + options?: CommunicationIdentityClientOptions, ); /** * Initializes a new instance of the CommunicationIdentity class using a TokenCredential. @@ -64,17 +64,17 @@ export class CommunicationIdentityClient { public constructor( endpoint: string, credential: TokenCredential, - options?: CommunicationIdentityClientOptions + options?: CommunicationIdentityClientOptions, ); public constructor( connectionStringOrEndpoint: string, credentialOrOptions?: KeyCredential | CommunicationIdentityClientOptions | TokenCredential, - maybeOptions: CommunicationIdentityClientOptions = {} + maybeOptions: CommunicationIdentityClientOptions = {}, ) { const { url, credential } = parseClientArguments( connectionStringOrEndpoint, - credentialOrOptions + credentialOrOptions, ); const options = isCommunicationIdentityClientOptions(credentialOrOptions) ? credentialOrOptions @@ -105,13 +105,13 @@ export class CommunicationIdentityClient { public getToken( user: CommunicationUserIdentifier, scopes: TokenScope[], - options: GetTokenOptions = {} + options: GetTokenOptions = {}, ): Promise { return tracingClient.withSpan("CommunicationIdentity-issueToken", options, (updatedOptions) => { return this.client.communicationIdentityOperations.issueAccessToken( user.communicationUserId, scopes, - { expiresInMinutes: options.tokenExpiresInMinutes, ...updatedOptions } + { expiresInMinutes: options.tokenExpiresInMinutes, ...updatedOptions }, ); }); } @@ -124,7 +124,7 @@ export class CommunicationIdentityClient { */ public revokeTokens( user: CommunicationUserIdentifier, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "CommunicationIdentity-revokeTokens", @@ -132,9 +132,9 @@ export class CommunicationIdentityClient { async (updatedOptions) => { await this.client.communicationIdentityOperations.revokeAccessTokens( user.communicationUserId, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -155,7 +155,7 @@ export class CommunicationIdentityClient { return { communicationUserId: result.identity.id, }; - } + }, ); } @@ -167,7 +167,7 @@ export class CommunicationIdentityClient { */ public createUserAndToken( scopes: TokenScope[], - options: CreateUserAndTokenOptions = {} + options: CreateUserAndTokenOptions = {}, ): Promise { return tracingClient.withSpan( "CommunicationIdentity-createUserAndToken", @@ -182,7 +182,7 @@ export class CommunicationIdentityClient { ...accessToken!, user: { communicationUserId: identity.id }, }; - } + }, ); } @@ -194,7 +194,7 @@ export class CommunicationIdentityClient { */ public deleteUser( user: CommunicationUserIdentifier, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "CommunicationIdentity-deleteUser", @@ -202,9 +202,9 @@ export class CommunicationIdentityClient { async (updatedOptions) => { await this.client.communicationIdentityOperations.delete( user.communicationUserId, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -214,7 +214,7 @@ export class CommunicationIdentityClient { * @param options - Options used to exchange an Azure AD access token of a Teams user for a new Communication Identity access token. */ public getTokenForTeamsUser( - options: GetTokenForTeamsUserOptions + options: GetTokenForTeamsUserOptions, ): Promise { return tracingClient.withSpan( "CommunicationIdentity-getTokenForTeamsUser", @@ -225,9 +225,9 @@ export class CommunicationIdentityClient { teamsUserAadToken, clientId, userObjectId, - updatedOptions + updatedOptions, ); - } + }, ); } } diff --git a/sdk/communication/communication-identity/test/public/communicationIdentityClient.mocked.spec.ts b/sdk/communication/communication-identity/test/public/communicationIdentityClient.mocked.spec.ts index 8e5b003d9b5b..ff2023bf3a63 100644 --- a/sdk/communication/communication-identity/test/public/communicationIdentityClient.mocked.spec.ts +++ b/sdk/communication/communication-identity/test/public/communicationIdentityClient.mocked.spec.ts @@ -22,7 +22,7 @@ describe("CommunicationIdentityClient [Mocked]", function () { it("creates instance of CommunicationIdentityClient", function () { const client = new CommunicationIdentityClient( - "endpoint=https://contoso.spool.azure.local;accesskey=banana" + "endpoint=https://contoso.spool.azure.local;accesskey=banana", ); assert.instanceOf(client, CommunicationIdentityClient); }); @@ -44,7 +44,7 @@ describe("CommunicationIdentityClient [Mocked]", function () { assert.isDefined(request.headers.get("authorization")); assert.match( request.headers.get("authorization") as string, - /HMAC-SHA256 SignedHeaders=.+&Signature=.+/ + /HMAC-SHA256 SignedHeaders=.+&Signature=.+/, ); }); diff --git a/sdk/communication/communication-identity/test/public/communicationIdentityClient.spec.ts b/sdk/communication/communication-identity/test/public/communicationIdentityClient.spec.ts index e4c81ce68e2e..9177c4d95f62 100644 --- a/sdk/communication/communication-identity/test/public/communicationIdentityClient.spec.ts +++ b/sdk/communication/communication-identity/test/public/communicationIdentityClient.spec.ts @@ -64,7 +64,7 @@ matrix([[true, false]], async function (useAad: boolean) { assert.isString(newUser.communicationUserId); assert.isString(token); assert.instanceOf(expiresOn, Date); - }) + }), ); tokenScopeScenarios.forEach((scenario) => @@ -73,7 +73,7 @@ matrix([[true, false]], async function (useAad: boolean) { const { token, expiresOn } = await client.getToken(user, scenario.scopes as TokenScope[]); assert.isString(token); assert.instanceOf(expiresOn, Date); - }) + }), ); it("successfully revokes tokens issued for a user", async function () { diff --git a/sdk/communication/communication-identity/test/public/node/getTokenForTeamsUser.node.spec.ts b/sdk/communication/communication-identity/test/public/node/getTokenForTeamsUser.node.spec.ts index 366035aa5c04..a21fd375baeb 100644 --- a/sdk/communication/communication-identity/test/public/node/getTokenForTeamsUser.node.spec.ts +++ b/sdk/communication/communication-identity/test/public/node/getTokenForTeamsUser.node.spec.ts @@ -77,9 +77,8 @@ matrix([[true, false]], async function (useAad) { } it("successfully exchanges a Teams User AAD token for a Communication access token", async function () { - const { token, expiresOn }: CommunicationAccessToken = await client.getTokenForTeamsUser( - options - ); + const { token, expiresOn }: CommunicationAccessToken = + await client.getTokenForTeamsUser(options); assert.isString(token); assert.instanceOf(expiresOn, Date); }).timeout(5000); @@ -108,7 +107,7 @@ matrix([[true, false]], async function (useAad) { } assert.fail("Should have thrown an error"); - }) + }), ); [ @@ -132,7 +131,7 @@ matrix([[true, false]], async function (useAad) { } assert.fail("Should have thrown an error"); - }) + }), ); [ @@ -156,7 +155,7 @@ matrix([[true, false]], async function (useAad) { } assert.fail("Should have thrown an error"); - }) + }), ); }); }); diff --git a/sdk/communication/communication-identity/test/public/node/tokenCustomExpiration.node.spec.ts b/sdk/communication/communication-identity/test/public/node/tokenCustomExpiration.node.spec.ts index 90a1aa90a2c2..0c59cdae6e3d 100644 --- a/sdk/communication/communication-identity/test/public/node/tokenCustomExpiration.node.spec.ts +++ b/sdk/communication/communication-identity/test/public/node/tokenCustomExpiration.node.spec.ts @@ -38,7 +38,7 @@ matrix([[true, false]], async function (useAad: boolean) { function tokenExpirationWithinAllowedDeviation( expectedTokenExpiration: number, tokenExpiresIn: Date, - allowedDeviation: number + allowedDeviation: number, ) { const timeNow = Date.now(); const expiration = tokenExpiresIn.getTime(); @@ -70,7 +70,7 @@ matrix([[true, false]], async function (useAad: boolean) { tokenExpirationWithinAllowedDeviation( input.tokenExpiresInMinutes, expiresOn, - TOKEN_EXPIRATION_ALLOWED_DEVIATION + TOKEN_EXPIRATION_ALLOWED_DEVIATION, ); assert.isTrue( withinAllowedDeviation, @@ -79,10 +79,10 @@ matrix([[true, false]], async function (useAad: boolean) { }% deviation. Expected minutes: ${input.tokenExpiresInMinutes}, actual minutes: ${ // to round to max 2 decimal places Math.round((tokenExpirationInMinutes + Number.EPSILON) * 100) / 100 - }.` + }.`, ); } - }) + }), ); [ @@ -102,7 +102,7 @@ matrix([[true, false]], async function (useAad: boolean) { tokenExpirationWithinAllowedDeviation( input.tokenExpiresInMinutes, expiresOn, - TOKEN_EXPIRATION_ALLOWED_DEVIATION + TOKEN_EXPIRATION_ALLOWED_DEVIATION, ); assert.isTrue( withinAllowedDeviation, @@ -111,10 +111,10 @@ matrix([[true, false]], async function (useAad: boolean) { }% deviation. Expected minutes: ${input.tokenExpiresInMinutes}, actual minutes: ${ // to round to max 2 decimal places Math.round((tokenExpirationInMinutes + Number.EPSILON) * 100) / 100 - }.` + }.`, ); } - }) + }), ); [ @@ -132,7 +132,7 @@ matrix([[true, false]], async function (useAad: boolean) { } catch (e: any) { assert.equal(e.statusCode, 400); } - }) + }), ); [ @@ -149,7 +149,7 @@ matrix([[true, false]], async function (useAad: boolean) { } catch (e: any) { assert.equal(e.statusCode, 400); } - }) + }), ); }); }); diff --git a/sdk/communication/communication-identity/test/public/utils/matrix.ts b/sdk/communication/communication-identity/test/public/utils/matrix.ts index f3dccbc23e19..ab76013859ca 100644 --- a/sdk/communication/communication-identity/test/public/utils/matrix.ts +++ b/sdk/communication/communication-identity/test/public/utils/matrix.ts @@ -34,7 +34,7 @@ export function matrix>( values: T, handler: ( ...args: { [idx in keyof T]: T[idx] extends ReadonlyArray ? U : never } - ) => Promise + ) => Promise, ): void { // Classic recursive approach if (values.length === 0) { diff --git a/sdk/communication/communication-identity/test/public/utils/mockHttpClients.ts b/sdk/communication/communication-identity/test/public/utils/mockHttpClients.ts index 28db57d42893..cd57de08e14a 100644 --- a/sdk/communication/communication-identity/test/public/utils/mockHttpClients.ts +++ b/sdk/communication/communication-identity/test/public/utils/mockHttpClients.ts @@ -11,7 +11,7 @@ import { CommunicationAccessToken } from "../../../src"; export const createMockHttpClient = >( status: number = 200, - parsedBody?: T + parsedBody?: T, ): HttpClient => { return { async sendRequest(httpRequest: PipelineRequest): Promise { @@ -37,7 +37,7 @@ const tokenResponse = { export const getTokenHttpClient: HttpClient = createMockHttpClient( 200, - tokenResponse + tokenResponse, ); export const revokeTokensHttpClient: HttpClient = createMockHttpClient(204); diff --git a/sdk/communication/communication-identity/test/public/utils/recordedClient.ts b/sdk/communication/communication-identity/test/public/utils/recordedClient.ts index 21163fe90e1b..18d9bcfd46c2 100644 --- a/sdk/communication/communication-identity/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-identity/test/public/utils/recordedClient.ts @@ -81,13 +81,13 @@ export async function createRecorder(context: Test | undefined): Promise> { const recorder = await createRecorder(context.currentTest); const client = new CommunicationIdentityClient( env.COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING ?? "", - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); return { @@ -97,13 +97,13 @@ export async function createRecordedCommunicationIdentityClient( } export async function createRecordedCommunicationIdentityClientWithToken( - context: Context + context: Context, ): Promise> { const recorder = await createRecorder(context.currentTest); let credential: TokenCredential; const endpoint = parseConnectionString( - env.COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING ?? "" + env.COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING ?? "", ).endpoint; if (isPlaybackMode()) { credential = { @@ -118,7 +118,7 @@ export async function createRecordedCommunicationIdentityClientWithToken( const client = new CommunicationIdentityClient( endpoint, credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); return { client, recorder }; diff --git a/sdk/communication/communication-identity/test/public/utils/testCommunicationIdentityClient.ts b/sdk/communication/communication-identity/test/public/utils/testCommunicationIdentityClient.ts index cb91b51a94d1..7a0e1816ec68 100644 --- a/sdk/communication/communication-identity/test/public/utils/testCommunicationIdentityClient.ts +++ b/sdk/communication/communication-identity/test/public/utils/testCommunicationIdentityClient.ts @@ -24,7 +24,7 @@ export class TestCommunicationIdentityClient { public async getTokenTest( user: CommunicationUserIdentifier, scopes: TokenScope[], - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { // casting is a workaround to enable min-max testing const client = new CommunicationIdentityClient(this.connectionString, { @@ -35,7 +35,7 @@ export class TestCommunicationIdentityClient { public async revokeTokensTest( user: CommunicationUserIdentifier, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { // casting is a workaround to enable min-max testing const client = new CommunicationIdentityClient(this.connectionString, { @@ -45,7 +45,7 @@ export class TestCommunicationIdentityClient { } public async createUserTest( - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { // casting is a workaround to enable min-max testing const client = new CommunicationIdentityClient(this.connectionString, { @@ -56,7 +56,7 @@ export class TestCommunicationIdentityClient { public async createUserAndTokenTest( scopes: TokenScope[], - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { // casting is a workaround to enable min-max testing const client = new CommunicationIdentityClient(this.connectionString, { @@ -68,7 +68,7 @@ export class TestCommunicationIdentityClient { public async getTokenForTeamsUserTest( teamsToken: string, clientId: string, - userObjectId: string + userObjectId: string, ): Promise { // casting is a workaround to enable min-max testing const client = new CommunicationIdentityClient(this.connectionString, { diff --git a/sdk/communication/communication-job-router-rest/package.json b/sdk/communication/communication-job-router-rest/package.json index 48250205cfdc..40ad4058ca85 100644 --- a/sdk/communication/communication-job-router-rest/package.json +++ b/sdk/communication/communication-job-router-rest/package.json @@ -38,11 +38,11 @@ "build:samples": "dev-tool samples publish --force", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "generate:client": "echo skipped", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -76,7 +76,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^2.1.2", - "prettier": "^2.5.1", "rimraf": "^5.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/communication/communication-job-router-rest/src/azureCommunicationRoutingServiceClient.ts b/sdk/communication/communication-job-router-rest/src/azureCommunicationRoutingServiceClient.ts index 698e283615e5..2cc1bffd880c 100644 --- a/sdk/communication/communication-job-router-rest/src/azureCommunicationRoutingServiceClient.ts +++ b/sdk/communication/communication-job-router-rest/src/azureCommunicationRoutingServiceClient.ts @@ -18,7 +18,7 @@ import { */ export default function createClient( connectionString: string, - options: ClientOptions + options: ClientOptions, ): AzureCommunicationRoutingServiceClient; /** @@ -30,14 +30,14 @@ export default function createClient( export default function createClient( endpoint: string, credentialOrOptions?: KeyCredential | TokenCredential, - options?: ClientOptions + options?: ClientOptions, ): AzureCommunicationRoutingServiceClient; // Implementation export default function createClient( arg1: string, arg2?: ClientOptions | (KeyCredential | TokenCredential), - arg3?: ClientOptions + arg3?: ClientOptions, ): AzureCommunicationRoutingServiceClient { let credentialOrOptions: KeyCredential | TokenCredential | undefined; let options: ClientOptions | undefined; diff --git a/sdk/communication/communication-job-router-rest/src/clientDefinitions.ts b/sdk/communication/communication-job-router-rest/src/clientDefinitions.ts index 9a4800cf7d92..ba8218b198fa 100644 --- a/sdk/communication/communication-job-router-rest/src/clientDefinitions.ts +++ b/sdk/communication/communication-job-router-rest/src/clientDefinitions.ts @@ -115,7 +115,7 @@ import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface UpsertClassificationPolicy { /** Creates or updates a classification policy. */ patch( - options: UpsertClassificationPolicyParameters + options: UpsertClassificationPolicyParameters, ): StreamableMethod< | UpsertClassificationPolicy200Response | UpsertClassificationPolicy201Response @@ -123,11 +123,11 @@ export interface UpsertClassificationPolicy { >; /** Retrieves an existing classification policy by Id. */ get( - options?: GetClassificationPolicyParameters + options?: GetClassificationPolicyParameters, ): StreamableMethod; /** Delete a classification policy by Id. */ delete( - options?: DeleteClassificationPolicyParameters + options?: DeleteClassificationPolicyParameters, ): StreamableMethod< DeleteClassificationPolicy204Response | DeleteClassificationPolicyDefaultResponse >; @@ -136,7 +136,7 @@ export interface UpsertClassificationPolicy { export interface ListClassificationPolicies { /** Retrieves existing classification policies. */ get( - options?: ListClassificationPoliciesParameters + options?: ListClassificationPoliciesParameters, ): StreamableMethod< ListClassificationPolicies200Response | ListClassificationPoliciesDefaultResponse >; @@ -145,7 +145,7 @@ export interface ListClassificationPolicies { export interface UpsertDistributionPolicy { /** Creates or updates a distribution policy. */ patch( - options: UpsertDistributionPolicyParameters + options: UpsertDistributionPolicyParameters, ): StreamableMethod< | UpsertDistributionPolicy200Response | UpsertDistributionPolicy201Response @@ -153,11 +153,11 @@ export interface UpsertDistributionPolicy { >; /** Retrieves an existing distribution policy by Id. */ get( - options?: GetDistributionPolicyParameters + options?: GetDistributionPolicyParameters, ): StreamableMethod; /** Delete a distribution policy by Id. */ delete( - options?: DeleteDistributionPolicyParameters + options?: DeleteDistributionPolicyParameters, ): StreamableMethod< DeleteDistributionPolicy204Response | DeleteDistributionPolicyDefaultResponse >; @@ -166,7 +166,7 @@ export interface UpsertDistributionPolicy { export interface ListDistributionPolicies { /** Retrieves existing distribution policies. */ get( - options?: ListDistributionPoliciesParameters + options?: ListDistributionPoliciesParameters, ): StreamableMethod< ListDistributionPolicies200Response | ListDistributionPoliciesDefaultResponse >; @@ -175,7 +175,7 @@ export interface ListDistributionPolicies { export interface UpsertExceptionPolicy { /** Creates or updates a exception policy. */ patch( - options: UpsertExceptionPolicyParameters + options: UpsertExceptionPolicyParameters, ): StreamableMethod< | UpsertExceptionPolicy200Response | UpsertExceptionPolicy201Response @@ -183,60 +183,60 @@ export interface UpsertExceptionPolicy { >; /** Retrieves an existing exception policy by Id. */ get( - options?: GetExceptionPolicyParameters + options?: GetExceptionPolicyParameters, ): StreamableMethod; /** Deletes a exception policy by Id. */ delete( - options?: DeleteExceptionPolicyParameters + options?: DeleteExceptionPolicyParameters, ): StreamableMethod; } export interface ListExceptionPolicies { /** Retrieves existing exception policies. */ get( - options?: ListExceptionPoliciesParameters + options?: ListExceptionPoliciesParameters, ): StreamableMethod; } export interface UpsertQueue { /** Creates or updates a queue. */ patch( - options: UpsertQueueParameters + options: UpsertQueueParameters, ): StreamableMethod; /** Retrieves an existing queue by Id. */ get( - options?: GetQueueParameters + options?: GetQueueParameters, ): StreamableMethod; /** Deletes a queue by Id. */ delete( - options?: DeleteQueueParameters + options?: DeleteQueueParameters, ): StreamableMethod; } export interface ListQueues { /** Retrieves existing queues. */ get( - options?: ListQueuesParameters + options?: ListQueuesParameters, ): StreamableMethod; } export interface UpsertJob { /** Creates or updates a router job. */ patch( - options: UpsertJobParameters + options: UpsertJobParameters, ): StreamableMethod; /** Retrieves an existing job by Id. */ get(options?: GetJobParameters): StreamableMethod; /** Deletes a job and all of its traces. */ delete( - options?: DeleteJobParameters + options?: DeleteJobParameters, ): StreamableMethod; } export interface Reclassify { /** Reclassify a job. */ post( - options?: ReclassifyParameters + options?: ReclassifyParameters, ): StreamableMethod; } @@ -248,7 +248,7 @@ export interface Cancel { export interface Complete { /** Completes an assigned job. */ post( - options?: CompleteParameters + options?: CompleteParameters, ): StreamableMethod; } @@ -260,21 +260,21 @@ export interface Close { export interface ListJobs { /** Retrieves list of jobs based on filter parameters. */ get( - options?: ListJobsParameters + options?: ListJobsParameters, ): StreamableMethod; } export interface GetInQueuePosition { /** Gets a job's position details. */ get( - options?: GetInQueuePositionParameters + options?: GetInQueuePositionParameters, ): StreamableMethod; } export interface Unassign { /** Unassign a job. */ post( - options?: UnassignParameters + options?: UnassignParameters, ): StreamableMethod; } @@ -291,31 +291,31 @@ export interface Decline { export interface GetQueueStatistics { /** Retrieves a queue's statistics. */ get( - options?: GetQueueStatisticsParameters + options?: GetQueueStatisticsParameters, ): StreamableMethod; } export interface UpsertWorker { /** Creates or updates a worker. */ patch( - options: UpsertWorkerParameters + options: UpsertWorkerParameters, ): StreamableMethod< UpsertWorker200Response | UpsertWorker201Response | UpsertWorkerDefaultResponse >; /** Retrieves an existing worker by Id. */ get( - options?: GetWorkerParameters + options?: GetWorkerParameters, ): StreamableMethod; /** Deletes a worker and all of its traces. */ delete( - options?: DeleteWorkerParameters + options?: DeleteWorkerParameters, ): StreamableMethod; } export interface ListWorkers { /** Retrieves existing workers. */ get( - options?: ListWorkersParameters + options?: ListWorkersParameters, ): StreamableMethod; } @@ -323,21 +323,21 @@ export interface Routes { /** Resource for '/routing/classificationPolicies/\{classificationPolicyId\}' has methods for the following verbs: patch, get, delete */ ( path: "/routing/classificationPolicies/{classificationPolicyId}", - classificationPolicyId: string + classificationPolicyId: string, ): UpsertClassificationPolicy; /** Resource for '/routing/classificationPolicies' has methods for the following verbs: get */ (path: "/routing/classificationPolicies"): ListClassificationPolicies; /** Resource for '/routing/distributionPolicies/\{distributionPolicyId\}' has methods for the following verbs: patch, get, delete */ ( path: "/routing/distributionPolicies/{distributionPolicyId}", - distributionPolicyId: string + distributionPolicyId: string, ): UpsertDistributionPolicy; /** Resource for '/routing/distributionPolicies' has methods for the following verbs: get */ (path: "/routing/distributionPolicies"): ListDistributionPolicies; /** Resource for '/routing/exceptionPolicies/\{exceptionPolicyId\}' has methods for the following verbs: patch, get, delete */ ( path: "/routing/exceptionPolicies/{exceptionPolicyId}", - exceptionPolicyId: string + exceptionPolicyId: string, ): UpsertExceptionPolicy; /** Resource for '/routing/exceptionPolicies' has methods for the following verbs: get */ (path: "/routing/exceptionPolicies"): ListExceptionPolicies; @@ -355,13 +355,13 @@ export interface Routes { ( path: "/routing/jobs/{jobId}/assignments/{assignmentId}:complete", jobId: string, - assignmentId: string + assignmentId: string, ): Complete; /** Resource for '/routing/jobs/\{jobId\}/assignments/\{assignmentId\}:close' has methods for the following verbs: post */ ( path: "/routing/jobs/{jobId}/assignments/{assignmentId}:close", jobId: string, - assignmentId: string + assignmentId: string, ): Close; /** Resource for '/routing/jobs' has methods for the following verbs: get */ (path: "/routing/jobs"): ListJobs; @@ -371,19 +371,19 @@ export interface Routes { ( path: "/routing/jobs/{jobId}/assignments/{assignmentId}:unassign", jobId: string, - assignmentId: string + assignmentId: string, ): Unassign; /** Resource for '/routing/workers/\{workerId\}/offers/\{offerId\}:accept' has methods for the following verbs: post */ ( path: "/routing/workers/{workerId}/offers/{offerId}:accept", workerId: string, - offerId: string + offerId: string, ): Accept; /** Resource for '/routing/workers/\{workerId\}/offers/\{offerId\}:decline' has methods for the following verbs: post */ ( path: "/routing/workers/{workerId}/offers/{offerId}:decline", workerId: string, - offerId: string + offerId: string, ): Decline; /** Resource for '/routing/queues/\{queueId\}/statistics' has methods for the following verbs: get */ (path: "/routing/queues/{queueId}/statistics", queueId: string): GetQueueStatistics; diff --git a/sdk/communication/communication-job-router-rest/src/isUnexpected.ts b/sdk/communication/communication-job-router-rest/src/isUnexpected.ts index 681514646ad1..daf27f08f387 100644 --- a/sdk/communication/communication-job-router-rest/src/isUnexpected.ts +++ b/sdk/communication/communication-job-router-rest/src/isUnexpected.ts @@ -116,109 +116,109 @@ export function isUnexpected( response: | UpsertClassificationPolicy200Response | UpsertClassificationPolicy201Response - | UpsertClassificationPolicyDefaultResponse + | UpsertClassificationPolicyDefaultResponse, ): response is UpsertClassificationPolicyDefaultResponse; export function isUnexpected( - response: GetClassificationPolicy200Response | GetClassificationPolicyDefaultResponse + response: GetClassificationPolicy200Response | GetClassificationPolicyDefaultResponse, ): response is GetClassificationPolicyDefaultResponse; export function isUnexpected( - response: DeleteClassificationPolicy204Response | DeleteClassificationPolicyDefaultResponse + response: DeleteClassificationPolicy204Response | DeleteClassificationPolicyDefaultResponse, ): response is DeleteClassificationPolicyDefaultResponse; export function isUnexpected( - response: ListClassificationPolicies200Response | ListClassificationPoliciesDefaultResponse + response: ListClassificationPolicies200Response | ListClassificationPoliciesDefaultResponse, ): response is ListClassificationPoliciesDefaultResponse; export function isUnexpected( response: | UpsertDistributionPolicy200Response | UpsertDistributionPolicy201Response - | UpsertDistributionPolicyDefaultResponse + | UpsertDistributionPolicyDefaultResponse, ): response is UpsertDistributionPolicyDefaultResponse; export function isUnexpected( - response: GetDistributionPolicy200Response | GetDistributionPolicyDefaultResponse + response: GetDistributionPolicy200Response | GetDistributionPolicyDefaultResponse, ): response is GetDistributionPolicyDefaultResponse; export function isUnexpected( - response: DeleteDistributionPolicy204Response | DeleteDistributionPolicyDefaultResponse + response: DeleteDistributionPolicy204Response | DeleteDistributionPolicyDefaultResponse, ): response is DeleteDistributionPolicyDefaultResponse; export function isUnexpected( - response: ListDistributionPolicies200Response | ListDistributionPoliciesDefaultResponse + response: ListDistributionPolicies200Response | ListDistributionPoliciesDefaultResponse, ): response is ListDistributionPoliciesDefaultResponse; export function isUnexpected( response: | UpsertExceptionPolicy200Response | UpsertExceptionPolicy201Response - | UpsertExceptionPolicyDefaultResponse + | UpsertExceptionPolicyDefaultResponse, ): response is UpsertExceptionPolicyDefaultResponse; export function isUnexpected( - response: GetExceptionPolicy200Response | GetExceptionPolicyDefaultResponse + response: GetExceptionPolicy200Response | GetExceptionPolicyDefaultResponse, ): response is GetExceptionPolicyDefaultResponse; export function isUnexpected( - response: DeleteExceptionPolicy204Response | DeleteExceptionPolicyDefaultResponse + response: DeleteExceptionPolicy204Response | DeleteExceptionPolicyDefaultResponse, ): response is DeleteExceptionPolicyDefaultResponse; export function isUnexpected( - response: ListExceptionPolicies200Response | ListExceptionPoliciesDefaultResponse + response: ListExceptionPolicies200Response | ListExceptionPoliciesDefaultResponse, ): response is ListExceptionPoliciesDefaultResponse; export function isUnexpected( - response: UpsertQueue200Response | UpsertQueue201Response | UpsertQueueDefaultResponse + response: UpsertQueue200Response | UpsertQueue201Response | UpsertQueueDefaultResponse, ): response is UpsertQueueDefaultResponse; export function isUnexpected( - response: GetQueue200Response | GetQueueDefaultResponse + response: GetQueue200Response | GetQueueDefaultResponse, ): response is GetQueueDefaultResponse; export function isUnexpected( - response: DeleteQueue204Response | DeleteQueueDefaultResponse + response: DeleteQueue204Response | DeleteQueueDefaultResponse, ): response is DeleteQueueDefaultResponse; export function isUnexpected( - response: ListQueues200Response | ListQueuesDefaultResponse + response: ListQueues200Response | ListQueuesDefaultResponse, ): response is ListQueuesDefaultResponse; export function isUnexpected( - response: UpsertJob200Response | UpsertJob201Response | UpsertJobDefaultResponse + response: UpsertJob200Response | UpsertJob201Response | UpsertJobDefaultResponse, ): response is UpsertJobDefaultResponse; export function isUnexpected( - response: GetJob200Response | GetJobDefaultResponse + response: GetJob200Response | GetJobDefaultResponse, ): response is GetJobDefaultResponse; export function isUnexpected( - response: DeleteJob204Response | DeleteJobDefaultResponse + response: DeleteJob204Response | DeleteJobDefaultResponse, ): response is DeleteJobDefaultResponse; export function isUnexpected( - response: Reclassify200Response | ReclassifyDefaultResponse + response: Reclassify200Response | ReclassifyDefaultResponse, ): response is ReclassifyDefaultResponse; export function isUnexpected( - response: Cancel200Response | CancelDefaultResponse + response: Cancel200Response | CancelDefaultResponse, ): response is CancelDefaultResponse; export function isUnexpected( - response: Complete200Response | CompleteDefaultResponse + response: Complete200Response | CompleteDefaultResponse, ): response is CompleteDefaultResponse; export function isUnexpected( - response: Close200Response | CloseDefaultResponse + response: Close200Response | CloseDefaultResponse, ): response is CloseDefaultResponse; export function isUnexpected( - response: ListJobs200Response | ListJobsDefaultResponse + response: ListJobs200Response | ListJobsDefaultResponse, ): response is ListJobsDefaultResponse; export function isUnexpected( - response: GetInQueuePosition200Response | GetInQueuePositionDefaultResponse + response: GetInQueuePosition200Response | GetInQueuePositionDefaultResponse, ): response is GetInQueuePositionDefaultResponse; export function isUnexpected( - response: Unassign200Response | UnassignDefaultResponse + response: Unassign200Response | UnassignDefaultResponse, ): response is UnassignDefaultResponse; export function isUnexpected( - response: Accept200Response | AcceptDefaultResponse + response: Accept200Response | AcceptDefaultResponse, ): response is AcceptDefaultResponse; export function isUnexpected( - response: Decline200Response | DeclineDefaultResponse + response: Decline200Response | DeclineDefaultResponse, ): response is DeclineDefaultResponse; export function isUnexpected( - response: GetQueueStatistics200Response | GetQueueStatisticsDefaultResponse + response: GetQueueStatistics200Response | GetQueueStatisticsDefaultResponse, ): response is GetQueueStatisticsDefaultResponse; export function isUnexpected( - response: UpsertWorker200Response | UpsertWorker201Response | UpsertWorkerDefaultResponse + response: UpsertWorker200Response | UpsertWorker201Response | UpsertWorkerDefaultResponse, ): response is UpsertWorkerDefaultResponse; export function isUnexpected( - response: GetWorker200Response | GetWorkerDefaultResponse + response: GetWorker200Response | GetWorkerDefaultResponse, ): response is GetWorkerDefaultResponse; export function isUnexpected( - response: DeleteWorker204Response | DeleteWorkerDefaultResponse + response: DeleteWorker204Response | DeleteWorkerDefaultResponse, ): response is DeleteWorkerDefaultResponse; export function isUnexpected( - response: ListWorkers200Response | ListWorkersDefaultResponse + response: ListWorkers200Response | ListWorkersDefaultResponse, ): response is ListWorkersDefaultResponse; export function isUnexpected( response: @@ -293,7 +293,7 @@ export function isUnexpected( | DeleteWorker204Response | DeleteWorkerDefaultResponse | ListWorkers200Response - | ListWorkersDefaultResponse + | ListWorkersDefaultResponse, ): response is | UpsertClassificationPolicyDefaultResponse | GetClassificationPolicyDefaultResponse @@ -369,7 +369,7 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // {guid} ==> $ // {guid}:export ==> :export$ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "" + pathParts[j] || "", ); if (!isMatched) { diff --git a/sdk/communication/communication-job-router-rest/src/paginateHelper.ts b/sdk/communication/communication-job-router-rest/src/paginateHelper.ts index 477bace4a37f..f0d91c952cda 100644 --- a/sdk/communication/communication-job-router-rest/src/paginateHelper.ts +++ b/sdk/communication/communication-job-router-rest/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/communication/communication-job-router-rest/test/internal/utils/mockClient.ts b/sdk/communication/communication-job-router-rest/test/internal/utils/mockClient.ts index 074babf1081a..87efab8950e0 100644 --- a/sdk/communication/communication-job-router-rest/test/internal/utils/mockClient.ts +++ b/sdk/communication/communication-job-router-rest/test/internal/utils/mockClient.ts @@ -46,14 +46,14 @@ export interface RecordedRouterClient { } export async function createRecordedRouterClientWithConnectionString( - context: Context + context: Context, ): Promise { const recorder = await createRecorder(context.currentTest); return { routerClient: JobRouter( env.COMMUNICATION_CONNECTION_STRING as string, - recorder.configureClientOptions({}) as ClientOptions + recorder.configureClientOptions({}) as ClientOptions, ), recorder, }; diff --git a/sdk/communication/communication-job-router-rest/test/public/methods/distributionPolicies.spec.ts b/sdk/communication/communication-job-router-rest/test/public/methods/distributionPolicies.spec.ts index 817408501dcf..7a9c26e751bf 100644 --- a/sdk/communication/communication-job-router-rest/test/public/methods/distributionPolicies.spec.ts +++ b/sdk/communication/communication-job-router-rest/test/public/methods/distributionPolicies.spec.ts @@ -37,7 +37,7 @@ describe("JobRouterClient", function () { const response = await routerClient .path( "/routing/distributionPolicies/{distributionPolicyId}", - distributionPolicyIdForCreationAndDeletionTest + distributionPolicyIdForCreationAndDeletionTest, ) .patch({ contentType: "application/merge-patch+json", @@ -58,7 +58,7 @@ describe("JobRouterClient", function () { const response = await routerClient .path( "/routing/distributionPolicies/{distributionPolicyId}", - distributionPolicyIdForCreationAndDeletionTest + distributionPolicyIdForCreationAndDeletionTest, ) .get(); @@ -71,7 +71,7 @@ describe("JobRouterClient", function () { assert.equal(result.name, distributionPolicyRequest.name); assert.equal( result.offerExpiresAfterSeconds, - distributionPolicyRequest.offerExpiresAfterSeconds + distributionPolicyRequest.offerExpiresAfterSeconds, ); assert.deepEqual(result.mode, distributionPolicyRequest.mode); }).timeout(timeoutMs); @@ -81,7 +81,7 @@ describe("JobRouterClient", function () { let response = await routerClient .path( "/routing/distributionPolicies/{distributionPolicyId}", - distributionPolicyIdForCreationAndDeletionTest + distributionPolicyIdForCreationAndDeletionTest, ) .patch({ contentType: "application/merge-patch+json", @@ -97,7 +97,7 @@ describe("JobRouterClient", function () { response = await routerClient .path( "/routing/distributionPolicies/{distributionPolicyId}", - distributionPolicyIdForCreationAndDeletionTest + distributionPolicyIdForCreationAndDeletionTest, ) .patch({ contentType: "application/merge-patch+json", @@ -140,7 +140,7 @@ describe("JobRouterClient", function () { const response = await routerClient .path( "/routing/distributionPolicies/{distributionPolicyId}", - distributionPolicyIdForCreationAndDeletionTest + distributionPolicyIdForCreationAndDeletionTest, ) .delete(); diff --git a/sdk/communication/communication-job-router-rest/test/public/methods/exceptionPolicies.spec.ts b/sdk/communication/communication-job-router-rest/test/public/methods/exceptionPolicies.spec.ts index 843568953707..82fbefee3cb8 100644 --- a/sdk/communication/communication-job-router-rest/test/public/methods/exceptionPolicies.spec.ts +++ b/sdk/communication/communication-job-router-rest/test/public/methods/exceptionPolicies.spec.ts @@ -38,7 +38,7 @@ describe("JobRouterClient", function () { const response = await routerClient .path( "/routing/exceptionPolicies/{exceptionPolicyId}", - exceptionPolicyIdForCreationAndDeletionTest + exceptionPolicyIdForCreationAndDeletionTest, ) .patch({ contentType: "application/merge-patch+json", @@ -59,7 +59,7 @@ describe("JobRouterClient", function () { const response = await routerClient .path( "/routing/exceptionPolicies/{exceptionPolicyId}", - exceptionPolicyIdForCreationAndDeletionTest + exceptionPolicyIdForCreationAndDeletionTest, ) .get(); @@ -79,7 +79,7 @@ describe("JobRouterClient", function () { let response = await routerClient .path( "/routing/exceptionPolicies/{exceptionPolicyId}", - exceptionPolicyIdForCreationAndDeletionTest + exceptionPolicyIdForCreationAndDeletionTest, ) .patch({ contentType: "application/merge-patch+json", @@ -95,7 +95,7 @@ describe("JobRouterClient", function () { response = await routerClient .path( "/routing/exceptionPolicies/{exceptionPolicyId}", - exceptionPolicyIdForCreationAndDeletionTest + exceptionPolicyIdForCreationAndDeletionTest, ) .patch({ contentType: "application/merge-patch+json", @@ -138,7 +138,7 @@ describe("JobRouterClient", function () { const response = await routerClient .path( "/routing/exceptionPolicies/{exceptionPolicyId}", - exceptionPolicyIdForCreationAndDeletionTest + exceptionPolicyIdForCreationAndDeletionTest, ) .delete(); diff --git a/sdk/communication/communication-job-router-rest/test/public/methods/jobs.spec.ts b/sdk/communication/communication-job-router-rest/test/public/methods/jobs.spec.ts index 566052f5993d..fa00dbfbd2cd 100644 --- a/sdk/communication/communication-job-router-rest/test/public/methods/jobs.spec.ts +++ b/sdk/communication/communication-job-router-rest/test/public/methods/jobs.spec.ts @@ -210,7 +210,7 @@ describe("JobRouterClient", function () { } result = response.body; }, - { retries: 3, retryIntervalMs: 1500 } + { retries: 3, retryIntervalMs: 1500 }, ); assert.isDefined(result); @@ -272,7 +272,7 @@ describe("JobRouterClient", function () { } result = response.body; }, - { retries: 3, retryIntervalMs: 1500 } + { retries: 3, retryIntervalMs: 1500 }, ); assert.isDefined(result); @@ -300,7 +300,7 @@ describe("JobRouterClient", function () { deleted = true; } }, - { retries: 5, retryIntervalMs: 1500 } + { retries: 5, retryIntervalMs: 1500 }, ); assert.isTrue(deleted); diff --git a/sdk/communication/communication-job-router-rest/test/public/utils/polling.ts b/sdk/communication/communication-job-router-rest/test/public/utils/polling.ts index 2a05b2426d85..5cd6c299c54d 100644 --- a/sdk/communication/communication-job-router-rest/test/public/utils/polling.ts +++ b/sdk/communication/communication-job-router-rest/test/public/utils/polling.ts @@ -30,7 +30,7 @@ import { RouterJob } from "../../../src"; export async function pollForJobQueued( jobId: string, - routerClient: AzureCommunicationRoutingServiceClient + routerClient: AzureCommunicationRoutingServiceClient, ): Promise { let job: RouterJobOutput = { id: "dummy", @@ -70,7 +70,7 @@ export async function pollForJobQueued( */ export const retry = async ( fn: () => Promise | T, - { retries, retryIntervalMs }: { retries: number; retryIntervalMs: number } + { retries, retryIntervalMs }: { retries: number; retryIntervalMs: number }, ): Promise => { const sleep = (ms = 0) => new Promise((resolve) => setTimeout(resolve, ms)); try { diff --git a/sdk/communication/communication-job-router-rest/test/public/utils/testData.ts b/sdk/communication/communication-job-router-rest/test/public/utils/testData.ts index 28e06758c939..1f8f8f0967ea 100644 --- a/sdk/communication/communication-job-router-rest/test/public/utils/testData.ts +++ b/sdk/communication/communication-job-router-rest/test/public/utils/testData.ts @@ -264,7 +264,7 @@ export interface ExceptionPolicyRequest { exceptionPolicyRequest: ExceptionPolicy; } export function getExceptionPolicyRequestWithReclassifyAction( - guid: string + guid: string, ): ExceptionPolicyRequest { return getExceptionPolicyRequestInternal(guid, true); } @@ -273,7 +273,7 @@ export function getExceptionPolicyRequest(guid: string): ExceptionPolicyRequest } function getExceptionPolicyRequestInternal( guid: string, - addReclassifyAction: boolean + addReclassifyAction: boolean, ): ExceptionPolicyRequest { const id = `${exceptionPolicyId}-${guid}`; const id2 = `${exceptionPolicyId2}-${guid}`; diff --git a/sdk/communication/communication-job-router/package.json b/sdk/communication/communication-job-router/package.json index ac56fcab1a2d..6a2209d3cc9a 100644 --- a/sdk/communication/communication-job-router/package.json +++ b/sdk/communication/communication-job-router/package.json @@ -14,11 +14,11 @@ "build:samples": "dev-tool samples publish -f", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local --verbose", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local --verbose", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -119,7 +119,6 @@ "karma": "^6.2.0", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "typescript": "~5.2.0", diff --git a/sdk/communication/communication-job-router/src/clientUtils.ts b/sdk/communication/communication-job-router/src/clientUtils.ts index ee222135d0ec..ca1e67810b93 100644 --- a/sdk/communication/communication-job-router/src/clientUtils.ts +++ b/sdk/communication/communication-job-router/src/clientUtils.ts @@ -10,11 +10,11 @@ export class TransformingPagedAsyncIterableIterator< TTransformed, TPage = TElement[], TTransformedPage = TTransformed[], - TPageSettings = PageSettings + TPageSettings = PageSettings, > { constructor( private internalIterator: PagedAsyncIterableIterator, - private transform: Transformer + private transform: Transformer, ) {} async next(): Promise> { diff --git a/sdk/communication/communication-job-router/src/jobRouterAdministrationClient.ts b/sdk/communication/communication-job-router/src/jobRouterAdministrationClient.ts index 5107ddaf9c8f..7091dc6095a0 100644 --- a/sdk/communication/communication-job-router/src/jobRouterAdministrationClient.ts +++ b/sdk/communication/communication-job-router/src/jobRouterAdministrationClient.ts @@ -58,7 +58,7 @@ import { logger } from "./logger"; * @param value - The value being checked. */ const isRouterAdministrationClientOptions = ( - value: any + value: any, ): value is JobRouterAdministrationClientOptions => !!value && !isKeyCredential(value); /** @@ -83,7 +83,7 @@ export class JobRouterAdministrationClient { constructor( endpoint: string, credential: KeyCredential | TokenCredential, - options?: JobRouterAdministrationClientOptions + options?: JobRouterAdministrationClientOptions, ); /** @@ -95,7 +95,7 @@ export class JobRouterAdministrationClient { constructor( endpoint: string, credential: CommunicationTokenCredential, - options?: JobRouterAdministrationClientOptions + options?: JobRouterAdministrationClientOptions, ); /** @@ -111,7 +111,7 @@ export class JobRouterAdministrationClient { | TokenCredential | CommunicationTokenCredential | JobRouterAdministrationClientOptions, - maybeOptions: JobRouterAdministrationClientOptions = {} + maybeOptions: JobRouterAdministrationClientOptions = {}, ) { const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions); const options = isRouterAdministrationClientOptions(credentialOrOptions) @@ -153,13 +153,13 @@ export class JobRouterAdministrationClient { */ public async createClassificationPolicy( classificationPolicyId: string, - options: CreateClassificationPolicyOptions = {} + options: CreateClassificationPolicyOptions = {}, ): Promise { const patch = options as ClassificationPolicy; const response = await this.client.jobRouterAdministration.upsertClassificationPolicy( classificationPolicyId, patch, - options + options, ); return response as ClassificationPolicyResponse; } @@ -172,13 +172,13 @@ export class JobRouterAdministrationClient { */ public async updateClassificationPolicy( classificationPolicyId: string, - options: UpdateClassificationPolicyOptions = {} + options: UpdateClassificationPolicyOptions = {}, ): Promise { const patch = options as ClassificationPolicy; const response = await this.client.jobRouterAdministration.upsertClassificationPolicy( classificationPolicyId, patch, - options + options, ); return response as ClassificationPolicyResponse; } @@ -189,7 +189,7 @@ export class JobRouterAdministrationClient { * @returns - The list of classification policies. */ public listClassificationPolicies( - options: ListClassificationPoliciesOptions = {} + options: ListClassificationPoliciesOptions = {}, ): PagedAsyncIterableIterator { const listOptions = options as JobRouterAdministrationListClassificationPoliciesOptionalParams; listOptions.maxpagesize = options.maxPageSize; @@ -204,11 +204,11 @@ export class JobRouterAdministrationClient { */ public async getClassificationPolicy( classificationPolicyId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { const response = await this.client.jobRouterAdministration.getClassificationPolicy( classificationPolicyId, - options + options, ); return response as ClassificationPolicyResponse; } @@ -220,11 +220,11 @@ export class JobRouterAdministrationClient { */ public async deleteClassificationPolicy( classificationPolicyId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return this.client.jobRouterAdministration.deleteClassificationPolicy( classificationPolicyId, - options + options, ); } @@ -236,13 +236,13 @@ export class JobRouterAdministrationClient { */ public async createDistributionPolicy( distributionPolicyId: string, - options: CreateDistributionPolicyOptions = {} + options: CreateDistributionPolicyOptions = {}, ): Promise { const patch = options as DistributionPolicy; const response = await this.client.jobRouterAdministration.upsertDistributionPolicy( distributionPolicyId, patch, - options + options, ); return response as DistributionPolicyResponse; } @@ -255,13 +255,13 @@ export class JobRouterAdministrationClient { */ public async updateDistributionPolicy( distributionPolicyId: string, - options: UpdateDistributionPolicyOptions = {} + options: UpdateDistributionPolicyOptions = {}, ): Promise { const patch = options as DistributionPolicy; const response = await this.client.jobRouterAdministration.upsertDistributionPolicy( distributionPolicyId, patch, - options + options, ); return response as DistributionPolicyResponse; } @@ -272,7 +272,7 @@ export class JobRouterAdministrationClient { * @returns - The list of distribution policies. */ public listDistributionPolicies( - options: ListDistributionPoliciesOptions = {} + options: ListDistributionPoliciesOptions = {}, ): PagedAsyncIterableIterator { const listOptions = options as JobRouterAdministrationListDistributionPoliciesOptionalParams; listOptions.maxpagesize = options.maxPageSize; @@ -287,11 +287,11 @@ export class JobRouterAdministrationClient { */ public async getDistributionPolicy( distributionPolicyId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { const response = await this.client.jobRouterAdministration.getDistributionPolicy( distributionPolicyId, - options + options, ); return response as DistributionPolicyResponse; } @@ -303,11 +303,11 @@ export class JobRouterAdministrationClient { */ public async deleteDistributionPolicy( distributionPolicyId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return this.client.jobRouterAdministration.deleteDistributionPolicy( distributionPolicyId, - options + options, ); } @@ -319,13 +319,13 @@ export class JobRouterAdministrationClient { */ public async createExceptionPolicy( exceptionPolicyId: string, - options: CreateExceptionPolicyOptions = {} + options: CreateExceptionPolicyOptions = {}, ): Promise { const patch = options as ExceptionPolicy; const response = await this.client.jobRouterAdministration.upsertExceptionPolicy( exceptionPolicyId, patch, - options + options, ); return response as ExceptionPolicyResponse; } @@ -338,13 +338,13 @@ export class JobRouterAdministrationClient { */ public async updateExceptionPolicy( exceptionPolicyId: string, - options: UpdateExceptionPolicyOptions = {} + options: UpdateExceptionPolicyOptions = {}, ): Promise { const patch = options as ExceptionPolicy; const response = await this.client.jobRouterAdministration.upsertExceptionPolicy( exceptionPolicyId, patch, - options + options, ); return response as ExceptionPolicyResponse; } @@ -355,7 +355,7 @@ export class JobRouterAdministrationClient { * @returns - The list of exception policies. */ public listExceptionPolicies( - options: ListExceptionPoliciesOptions = {} + options: ListExceptionPoliciesOptions = {}, ): PagedAsyncIterableIterator { const listOptions = options; listOptions.maxpagesize = options.maxPageSize; @@ -370,11 +370,11 @@ export class JobRouterAdministrationClient { */ public async getExceptionPolicy( exceptionPolicyId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { const response = await this.client.jobRouterAdministration.getExceptionPolicy( exceptionPolicyId, - options + options, ); return response as ExceptionPolicyResponse; } @@ -386,7 +386,7 @@ export class JobRouterAdministrationClient { */ public async deleteExceptionPolicy( exceptionPolicyId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return this.client.jobRouterAdministration.deleteExceptionPolicy(exceptionPolicyId, options); } @@ -399,7 +399,7 @@ export class JobRouterAdministrationClient { */ public async createQueue( queueId: string, - options: CreateQueueOptions = {} + options: CreateQueueOptions = {}, ): Promise { const patch = options as RouterQueue; const response = await this.client.jobRouterAdministration.upsertQueue(queueId, patch, options); @@ -414,7 +414,7 @@ export class JobRouterAdministrationClient { */ public async updateQueue( queueId: string, - options: UpdateQueueOptions = {} + options: UpdateQueueOptions = {}, ): Promise { const patch = options as RouterQueue; const response = await this.client.jobRouterAdministration.upsertQueue(queueId, patch, options); @@ -440,7 +440,7 @@ export class JobRouterAdministrationClient { */ public async getQueue( queueId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { const response = await this.client.jobRouterAdministration.getQueue(queueId, options); return response as RouterQueueResponse; diff --git a/sdk/communication/communication-job-router/src/jobRouterClient.ts b/sdk/communication/communication-job-router/src/jobRouterClient.ts index 7336699185bb..737e5f656700 100644 --- a/sdk/communication/communication-job-router/src/jobRouterClient.ts +++ b/sdk/communication/communication-job-router/src/jobRouterClient.ts @@ -76,7 +76,7 @@ const isRouterClientOptions = (value: any): value is JobRouterClientOptions => * @returns - An array of notes as {@link RouterJobNote}. */ const transformNotesForSDK = ( - notes: { [propertyName: string]: string } | undefined + notes: { [propertyName: string]: string } | undefined, ): RouterJobNote[] => { if (notes === undefined) return []; @@ -89,13 +89,13 @@ const transformNotesForSDK = ( * @returns - An array of notes as their generated type. */ const transformNotesForService = ( - notes: RouterJobNote[] | undefined | null + notes: RouterJobNote[] | undefined | null, ): { [propertyName: string]: string } | undefined => { if (notes === undefined || notes === null || !Array.isArray(notes)) return {}; return notes.reduce( (acc, { addedAt, message }) => ({ ...acc, [addedAt.toISOString()]: message }), - {} + {}, ); }; @@ -105,7 +105,7 @@ const transformNotesForService = ( * @returns - The job matching mode as {@link JobMatchingMode}. */ const transformMatchingModeForService = ( - matchingMode: RouterJobMatchingMode | undefined | null + matchingMode: RouterJobMatchingMode | undefined | null, ): JobMatchingMode | undefined => { if (matchingMode === undefined || matchingMode === null) { return null!; @@ -187,7 +187,7 @@ export class JobRouterClient { constructor( endpoint: string, credential: KeyCredential | TokenCredential, - options?: JobRouterClientOptions + options?: JobRouterClientOptions, ); /** @@ -199,7 +199,7 @@ export class JobRouterClient { constructor( endpoint: string, credential: CommunicationTokenCredential, - options?: JobRouterClientOptions + options?: JobRouterClientOptions, ); /** @@ -215,7 +215,7 @@ export class JobRouterClient { | TokenCredential | CommunicationTokenCredential | JobRouterClientOptions, - maybeOptions: JobRouterClientOptions = {} + maybeOptions: JobRouterClientOptions = {}, ) { const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions); const options = isRouterClientOptions(credentialOrOptions) ? credentialOrOptions : maybeOptions; @@ -256,7 +256,7 @@ export class JobRouterClient { */ public async createJob( jobId: string, - options: CreateJobOptions = {} + options: CreateJobOptions = {}, ): Promise { const patch = options as RouterJobGenerated; patch.notes = transformNotesForService(options.notes); @@ -277,7 +277,7 @@ export class JobRouterClient { */ public async updateJob( jobId: string, - options: UpdateJobOptions = {} + options: UpdateJobOptions = {}, ): Promise { const patch = options as RouterJobGenerated; patch.notes = transformNotesForService(options.notes); @@ -307,7 +307,7 @@ export class JobRouterClient { * @returns - The list of jobs. */ public listJobs( - options: ListJobsOptions = {} + options: ListJobsOptions = {}, ): TransformingPagedAsyncIterableIterator { const listOptions = options; listOptions.maxpagesize = options.maxPageSize; @@ -315,7 +315,7 @@ export class JobRouterClient { const transformingIterator = new TransformingPagedAsyncIterableIterator( this.client.jobRouter.listJobs(listOptions), - listJobsTransform + listJobsTransform, ); return transformingIterator; @@ -329,7 +329,7 @@ export class JobRouterClient { */ public async getJobQueuePosition( jobId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return this.client.jobRouter.getInQueuePosition(jobId, options); } @@ -341,7 +341,7 @@ export class JobRouterClient { */ public async cancelJob( jobId: string, - options: CancelJobOptions = {} + options: CancelJobOptions = {}, ): Promise { return this.client.jobRouter.cancelJobAction(jobId, options); } @@ -355,7 +355,7 @@ export class JobRouterClient { public async completeJob( jobId: string, assignmentId: string, - options: CompleteJobOptions = {} + options: CompleteJobOptions = {}, ): Promise { return this.client.jobRouter.completeJobAction(jobId, assignmentId, options); } @@ -367,7 +367,7 @@ export class JobRouterClient { */ public async reclassifyJob( jobId: string, - options: ReclassifyJobOptions = {} + options: ReclassifyJobOptions = {}, ): Promise { return this.client.jobRouter.reclassifyJobAction(jobId, options); } @@ -381,7 +381,7 @@ export class JobRouterClient { public async closeJob( jobId: string, assignmentId: string, - options: CloseJobOptions = {} + options: CloseJobOptions = {}, ): Promise { return this.client.jobRouter.closeJobAction(jobId, assignmentId, options); } @@ -395,7 +395,7 @@ export class JobRouterClient { public async unassignJob( jobId: string, assignmentId: string, - options: UnassignJobOptions = {} + options: UnassignJobOptions = {}, ): Promise { return this.client.jobRouter.unassignJobAction(jobId, assignmentId, options); } @@ -418,7 +418,7 @@ export class JobRouterClient { public async acceptJobOffer( workerId: string, offerId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return this.client.jobRouter.acceptJobAction(workerId, offerId, options); } @@ -432,7 +432,7 @@ export class JobRouterClient { public async declineJobOffer( workerId: string, offerId: string, - options: DeclineJobOfferOptions = {} + options: DeclineJobOfferOptions = {}, ): Promise { return this.client.jobRouter.declineJobAction(workerId, offerId, options); } @@ -445,7 +445,7 @@ export class JobRouterClient { */ public async createWorker( workerId: string, - options: CreateWorkerOptions = {} + options: CreateWorkerOptions = {}, ): Promise { const response = await this.client.jobRouter.upsertWorker(workerId, options, options); return response as RouterWorkerResponse; @@ -459,7 +459,7 @@ export class JobRouterClient { */ public async updateWorker( workerId: string, - options: UpdateWorkerOptions = {} + options: UpdateWorkerOptions = {}, ): Promise { const response = await this.client.jobRouter.upsertWorker(workerId, options, options); return response as RouterWorkerResponse; @@ -473,7 +473,7 @@ export class JobRouterClient { */ public async getWorker( workerId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { const response = await this.client.jobRouter.getWorker(workerId, options); return response as RouterWorkerResponse; @@ -485,14 +485,14 @@ export class JobRouterClient { * @returns - The list of workers. */ public listWorkers( - options: ListWorkersOptions = {} + options: ListWorkersOptions = {}, ): TransformingPagedAsyncIterableIterator { const listOptions = options; listOptions.maxpagesize = options.maxPageSize; const transformingIterator = new TransformingPagedAsyncIterableIterator( this.client.jobRouter.listWorkers(listOptions), - listWorkersTransform + listWorkersTransform, ); return transformingIterator; @@ -515,7 +515,7 @@ export class JobRouterClient { */ public async getQueueStatistics( queueId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return this.client.jobRouter.getQueueStatistics(queueId, options); } diff --git a/sdk/communication/communication-job-router/test/internal/utils/mockClient.ts b/sdk/communication/communication-job-router/test/internal/utils/mockClient.ts index 99076e80e97d..a1e0cdf9c340 100644 --- a/sdk/communication/communication-job-router/test/internal/utils/mockClient.ts +++ b/sdk/communication/communication-job-router/test/internal/utils/mockClient.ts @@ -20,18 +20,18 @@ export interface RecordedRouterClient { } export async function createRecordedRouterClientWithConnectionString( - context: Context + context: Context, ): Promise { const recorder = await createRecorder(context.currentTest); return { client: new JobRouterClient( env.COMMUNICATION_CONNECTION_STRING as string, - recorder.configureClientOptions({}) as JobRouterClientOptions + recorder.configureClientOptions({}) as JobRouterClientOptions, ), administrationClient: new JobRouterAdministrationClient( env.COMMUNICATION_CONNECTION_STRING as string, - recorder.configureClientOptions({}) as JobRouterAdministrationClientOptions + recorder.configureClientOptions({}) as JobRouterAdministrationClientOptions, ), recorder, }; diff --git a/sdk/communication/communication-job-router/test/public/methods/classificationPolicies.spec.ts b/sdk/communication/communication-job-router/test/public/methods/classificationPolicies.spec.ts index 4c223a4961e0..df6dd7f6f098 100644 --- a/sdk/communication/communication-job-router/test/public/methods/classificationPolicies.spec.ts +++ b/sdk/communication/communication-job-router/test/public/methods/classificationPolicies.spec.ts @@ -29,19 +29,18 @@ describe("JobRouterClient", function () { describe("Classification Policy Operations", function () { this.beforeEach(async function (this: Context) { - ({ administrationClient, recorder } = await createRecordedRouterClientWithConnectionString( - this - )); + ({ administrationClient, recorder } = + await createRecordedRouterClientWithConnectionString(this)); await administrationClient.createDistributionPolicy( distributionPolicyId, - distributionPolicyRequest + distributionPolicyRequest, ); await administrationClient.createExceptionPolicy(exceptionPolicyId, exceptionPolicyRequest); await administrationClient.createQueue(queueId, queueRequest); await administrationClient.createClassificationPolicy( classificationPolicyId, - classificationPolicyRequest + classificationPolicyRequest, ); }); @@ -59,7 +58,7 @@ describe("JobRouterClient", function () { it("should create a classification policy", async function () { const result = await administrationClient.createClassificationPolicy( classificationPolicyId, - classificationPolicyRequest + classificationPolicyRequest, ); assert.isDefined(result); @@ -78,13 +77,13 @@ describe("JobRouterClient", function () { const updatePatch = { ...classificationPolicyRequest, name: "new name" }; const updateResult = await administrationClient.updateClassificationPolicy( classificationPolicyId, - updatePatch + updatePatch, ); const removePatch = { ...classificationPolicyRequest, name: null! }; const removeResult = await administrationClient.updateClassificationPolicy( classificationPolicyId, - removePatch + removePatch, ); assert.isDefined(updateResult); diff --git a/sdk/communication/communication-job-router/test/public/methods/distributionPolicies.spec.ts b/sdk/communication/communication-job-router/test/public/methods/distributionPolicies.spec.ts index e012d5a80069..40ba788d39f7 100644 --- a/sdk/communication/communication-job-router/test/public/methods/distributionPolicies.spec.ts +++ b/sdk/communication/communication-job-router/test/public/methods/distributionPolicies.spec.ts @@ -20,9 +20,8 @@ describe("JobRouterClient", function () { describe("Distribution Policy Operations", function () { this.beforeEach(async function (this: Context) { - ({ administrationClient, recorder } = await createRecordedRouterClientWithConnectionString( - this - )); + ({ administrationClient, recorder } = + await createRecordedRouterClientWithConnectionString(this)); }); this.afterEach(async function (this: Context) { @@ -34,7 +33,7 @@ describe("JobRouterClient", function () { it("should create a distribution policy", async function () { const result = await administrationClient.createDistributionPolicy( distributionPolicyId, - distributionPolicyRequest + distributionPolicyRequest, ); assert.isDefined(result); @@ -49,7 +48,7 @@ describe("JobRouterClient", function () { assert.equal(result.name, distributionPolicyRequest.name); assert.equal( result.offerExpiresAfterSeconds, - distributionPolicyRequest.offerExpiresAfterSeconds + distributionPolicyRequest.offerExpiresAfterSeconds, ); assert.deepEqual(result.mode, distributionPolicyRequest.mode); }).timeout(timeoutMs); @@ -58,13 +57,13 @@ describe("JobRouterClient", function () { const updatePatch = { ...distributionPolicyRequest, name: "new-name" }; const updateResult = await administrationClient.updateDistributionPolicy( distributionPolicyId, - updatePatch + updatePatch, ); const removePatch = { ...distributionPolicyRequest, name: null! }; const removeResult = await administrationClient.updateDistributionPolicy( distributionPolicyId, - removePatch + removePatch, ); assert.isDefined(updateResult); diff --git a/sdk/communication/communication-job-router/test/public/methods/exceptionPolicies.spec.ts b/sdk/communication/communication-job-router/test/public/methods/exceptionPolicies.spec.ts index 37f5914aa085..a6400467861b 100644 --- a/sdk/communication/communication-job-router/test/public/methods/exceptionPolicies.spec.ts +++ b/sdk/communication/communication-job-router/test/public/methods/exceptionPolicies.spec.ts @@ -19,9 +19,8 @@ describe("JobRouterClient", function () { describe("Exception Policy Operations", function () { this.beforeEach(async function (this: Context) { - ({ administrationClient, recorder } = await createRecordedRouterClientWithConnectionString( - this - )); + ({ administrationClient, recorder } = + await createRecordedRouterClientWithConnectionString(this)); }); this.afterEach(async function (this: Context) { @@ -33,7 +32,7 @@ describe("JobRouterClient", function () { it("should create an exception policy", async function () { const result = await administrationClient.createExceptionPolicy( exceptionPolicyId, - exceptionPolicyRequest + exceptionPolicyRequest, ); assert.isDefined(result); @@ -53,13 +52,13 @@ describe("JobRouterClient", function () { const updatePatch = { ...exceptionPolicyRequest, name: "new-name" }; const updateResult = await administrationClient.updateExceptionPolicy( exceptionPolicyId, - updatePatch + updatePatch, ); const removePatch = { ...exceptionPolicyRequest, name: null! }; const removeResult = await administrationClient.updateExceptionPolicy( exceptionPolicyId, - removePatch + removePatch, ); assert.isDefined(updateResult); diff --git a/sdk/communication/communication-job-router/test/public/methods/jobs.spec.ts b/sdk/communication/communication-job-router/test/public/methods/jobs.spec.ts index e5ad75abf451..473c7e265de8 100644 --- a/sdk/communication/communication-job-router/test/public/methods/jobs.spec.ts +++ b/sdk/communication/communication-job-router/test/public/methods/jobs.spec.ts @@ -54,13 +54,13 @@ describe("JobRouterClient", function () { await administrationClient.createDistributionPolicy( distributionPolicyId, - distributionPolicyRequest + distributionPolicyRequest, ); await administrationClient.createExceptionPolicy(exceptionPolicyId, exceptionPolicyRequest); await administrationClient.createQueue(queueId, queueRequest); await administrationClient.createClassificationPolicy( classificationPolicyId, - classificationPolicyRequest + classificationPolicyRequest, ); }); @@ -82,7 +82,7 @@ describe("JobRouterClient", function () { await administrationClient.deleteExceptionPolicy(exceptionPolicyId); await administrationClient.deleteDistributionPolicy(distributionPolicyId); }, - { retries: 5, retryIntervalMs: 1500 } + { retries: 5, retryIntervalMs: 1500 }, ); if (!this.currentTest?.isPending() && recorder) { @@ -112,7 +112,7 @@ describe("JobRouterClient", function () { assert.equal(result.id, jobId); assert.equal( result.matchingMode?.scheduleAndSuspendMode?.scheduleAt?.toISOString(), - scheduledTime + scheduledTime, ); }).timeout(timeoutMs); @@ -163,7 +163,7 @@ describe("JobRouterClient", function () { async () => { result = await client.reclassifyJob(jobId); }, - { retries: 3, retryIntervalMs: 1500 } + { retries: 3, retryIntervalMs: 1500 }, ); assert.isDefined(result); @@ -206,7 +206,7 @@ describe("JobRouterClient", function () { async () => { result = await client.cancelJob(jobId); }, - { retries: 3, retryIntervalMs: 1500 } + { retries: 3, retryIntervalMs: 1500 }, ); assert.isDefined(result); diff --git a/sdk/communication/communication-job-router/test/public/methods/queues.spec.ts b/sdk/communication/communication-job-router/test/public/methods/queues.spec.ts index d36c5d4dff5d..54abb0c02748 100644 --- a/sdk/communication/communication-job-router/test/public/methods/queues.spec.ts +++ b/sdk/communication/communication-job-router/test/public/methods/queues.spec.ts @@ -26,13 +26,12 @@ describe("JobRouterClient", function () { describe("Queue Operations", function () { this.beforeEach(async function (this: Context) { - ({ administrationClient, recorder } = await createRecordedRouterClientWithConnectionString( - this - )); + ({ administrationClient, recorder } = + await createRecordedRouterClientWithConnectionString(this)); await administrationClient.createDistributionPolicy( distributionPolicyId, - distributionPolicyRequest + distributionPolicyRequest, ); await administrationClient.createExceptionPolicy(exceptionPolicyId, exceptionPolicyRequest); await administrationClient.createQueue(queueId, queueRequest); diff --git a/sdk/communication/communication-job-router/test/public/methods/workers.spec.ts b/sdk/communication/communication-job-router/test/public/methods/workers.spec.ts index 695282b4c6af..190919d9607b 100644 --- a/sdk/communication/communication-job-router/test/public/methods/workers.spec.ts +++ b/sdk/communication/communication-job-router/test/public/methods/workers.spec.ts @@ -35,7 +35,7 @@ describe("JobRouterClient", function () { await administrationClient.createDistributionPolicy( distributionPolicyId, - distributionPolicyRequest + distributionPolicyRequest, ); await administrationClient.createExceptionPolicy(exceptionPolicyId, exceptionPolicyRequest); await administrationClient.createQueue(queueId, queueRequest); diff --git a/sdk/communication/communication-job-router/test/public/scenarios/assignmentScenario.spec.ts b/sdk/communication/communication-job-router/test/public/scenarios/assignmentScenario.spec.ts index 64cc95b01b4c..94caca71f665 100644 --- a/sdk/communication/communication-job-router/test/public/scenarios/assignmentScenario.spec.ts +++ b/sdk/communication/communication-job-router/test/public/scenarios/assignmentScenario.spec.ts @@ -46,12 +46,12 @@ describe("JobRouterClient", function () { await administrationClient.createExceptionPolicy(exceptionPolicyId, exceptionPolicyRequest); await administrationClient.createDistributionPolicy( distributionPolicyId, - distributionPolicyRequest + distributionPolicyRequest, ); await administrationClient.createQueue(queueId, queueRequest); await administrationClient.createClassificationPolicy( classificationPolicyId, - classificationPolicyRequest + classificationPolicyRequest, ); await client.createWorker(workerId, { ...workerRequest, availableForOffers: true }); }); diff --git a/sdk/communication/communication-job-router/test/public/scenarios/cancellationScenario.spec.ts b/sdk/communication/communication-job-router/test/public/scenarios/cancellationScenario.spec.ts index 7bfaac1a7083..7ba090791e80 100644 --- a/sdk/communication/communication-job-router/test/public/scenarios/cancellationScenario.spec.ts +++ b/sdk/communication/communication-job-router/test/public/scenarios/cancellationScenario.spec.ts @@ -39,13 +39,13 @@ describe("JobRouterClient", function () { await administrationClient.createDistributionPolicy( distributionPolicyId, - distributionPolicyRequest + distributionPolicyRequest, ); await administrationClient.createExceptionPolicy(exceptionPolicyId, exceptionPolicyRequest); await administrationClient.createQueue(queueId, queueRequest); await administrationClient.createClassificationPolicy( classificationPolicyId, - classificationPolicyRequest + classificationPolicyRequest, ); }); diff --git a/sdk/communication/communication-job-router/test/public/scenarios/queueingScenario.spec.ts b/sdk/communication/communication-job-router/test/public/scenarios/queueingScenario.spec.ts index 35c2d830aa71..90f1d5516930 100644 --- a/sdk/communication/communication-job-router/test/public/scenarios/queueingScenario.spec.ts +++ b/sdk/communication/communication-job-router/test/public/scenarios/queueingScenario.spec.ts @@ -53,7 +53,7 @@ describe("JobRouterClient", function () { await administrationClient.createDistributionPolicy( distributionPolicyId, - distributionPolicyRequest + distributionPolicyRequest, ); await administrationClient.createExceptionPolicy(exceptionPolicyId, exceptionPolicyRequest); await administrationClient.createQueue(queueId, queueRequest); @@ -66,7 +66,7 @@ describe("JobRouterClient", function () { await administrationClient.deleteExceptionPolicy(exceptionPolicyId); await administrationClient.deleteDistributionPolicy(distributionPolicyId); }, - { retries: 1, retryIntervalMs: 500 } + { retries: 1, retryIntervalMs: 500 }, ); if (!this.currentTest?.isPending() && recorder) { diff --git a/sdk/communication/communication-job-router/test/public/utils/polling.ts b/sdk/communication/communication-job-router/test/public/utils/polling.ts index 83d48f4df38c..fbe452f17c5f 100644 --- a/sdk/communication/communication-job-router/test/public/utils/polling.ts +++ b/sdk/communication/communication-job-router/test/public/utils/polling.ts @@ -6,7 +6,7 @@ import { RouterJob, RouterWorker, RouterJobAssignment, RouterJobOffer } from ".. export async function pollForJobOffer( workerId: string, - client: JobRouterClient + client: JobRouterClient, ): Promise { let worker: RouterWorker = {}; while (worker.offers?.length === undefined || worker.offers.length < 1) { @@ -18,7 +18,7 @@ export async function pollForJobOffer( export async function pollForJobAssignment( jobId: string, - client: JobRouterClient + client: JobRouterClient, ): Promise { let job: RouterJob = {}; while (job.assignments === undefined || Object.keys(job.assignments).length < 1) { @@ -39,7 +39,7 @@ export async function pollForJobQueued(jobId: string, client: JobRouterClient): export async function pollForJobCancelled( jobId: string, - client: JobRouterClient + client: JobRouterClient, ): Promise { let job: RouterJob = {}; while (job.status !== "cancelled") { @@ -60,7 +60,7 @@ export async function pollForJobCancelled( */ export const retry = async ( fn: () => Promise | T, - { retries, retryIntervalMs }: { retries: number; retryIntervalMs: number } + { retries, retryIntervalMs }: { retries: number; retryIntervalMs: number }, ): Promise => { const sleep = (ms = 0) => new Promise((resolve) => setTimeout(resolve, ms)); try { diff --git a/sdk/communication/communication-job-router/test/public/utils/testData.ts b/sdk/communication/communication-job-router/test/public/utils/testData.ts index 0aa33bd09bfe..5c8358b65071 100644 --- a/sdk/communication/communication-job-router/test/public/utils/testData.ts +++ b/sdk/communication/communication-job-router/test/public/utils/testData.ts @@ -255,7 +255,7 @@ export interface ExceptionPolicyRequest { exceptionPolicyRequest: ExceptionPolicy; } export function getExceptionPolicyRequestWithReclassifyAction( - guid: string + guid: string, ): ExceptionPolicyRequest { return getExceptionPolicyRequestInternal(guid, true); } @@ -264,7 +264,7 @@ export function getExceptionPolicyRequest(guid: string): ExceptionPolicyRequest } function getExceptionPolicyRequestInternal( guid: string, - addReclassifyAction: boolean + addReclassifyAction: boolean, ): ExceptionPolicyRequest { function getExceptionRules(): Record { let exceptionRules = {}; diff --git a/sdk/communication/communication-network-traversal/package.json b/sdk/communication/communication-network-traversal/package.json index f3aa8363ff57..facb476b72b2 100644 --- a/sdk/communication/communication-network-traversal/package.json +++ b/sdk/communication/communication-network-traversal/package.json @@ -14,13 +14,13 @@ "build:node": "tsc -p . && dev-tool run bundle --browser-test=false", "build:samples": "echo Obsolete.", "build:test": "tsc -p . && dev-tool run bundle", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "execute:js-samples": "dev-tool samples run dist-samples/javascript", "execute:ts-samples": "dev-tool samples run dist-samples/typescript/dist/dist-samples/typescript/src/", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md && rushx format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -132,7 +132,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "typescript": "~5.2.0", diff --git a/sdk/communication/communication-network-traversal/src/communicationRelayClient.ts b/sdk/communication/communication-network-traversal/src/communicationRelayClient.ts index 978fd1a4041f..b92094654073 100644 --- a/sdk/communication/communication-network-traversal/src/communicationRelayClient.ts +++ b/sdk/communication/communication-network-traversal/src/communicationRelayClient.ts @@ -17,7 +17,7 @@ import { logger } from "./common/logger"; import { tracingClient } from "./generated/src/tracing"; const isCommunicationRelayClientOptions = ( - options: any + options: any, ): options is CommunicationRelayClientOptions => options && !isTokenCredential(options) && !isKeyCredential(options); @@ -47,7 +47,7 @@ export class CommunicationRelayClient { public constructor( endpoint: string, credential: KeyCredential, - options?: CommunicationRelayClientOptions + options?: CommunicationRelayClientOptions, ); /** * Initializes a new instance of the CommunicationRelayClient class using a TokenCredential. @@ -58,7 +58,7 @@ export class CommunicationRelayClient { public constructor( endpoint: string, credential: TokenCredential, - options?: CommunicationRelayClientOptions + options?: CommunicationRelayClientOptions, ); /** @@ -71,11 +71,11 @@ export class CommunicationRelayClient { public constructor( connectionStringOrEndpoint: string, credentialOrOptions?: KeyCredential | CommunicationRelayClientOptions | TokenCredential, - maybeOptions: CommunicationRelayClientOptions = {} + maybeOptions: CommunicationRelayClientOptions = {}, ) { const { url, credential } = parseClientArguments( connectionStringOrEndpoint, - credentialOrOptions + credentialOrOptions, ); const options = isCommunicationRelayClientOptions(credentialOrOptions) ? credentialOrOptions @@ -105,7 +105,7 @@ export class CommunicationRelayClient { * @param options - Additional options for the request. */ public getRelayConfiguration( - options?: GetRelayConfigurationOptions + options?: GetRelayConfigurationOptions, ): Promise; /** @@ -114,7 +114,7 @@ export class CommunicationRelayClient { * @param options - Additional options for the request. */ public getRelayConfiguration( - options: GetRelayConfigurationOptions = {} + options: GetRelayConfigurationOptions = {}, ): Promise { const { id, routeType, ttl } = options; const requestOptions: CommunicationNetworkTraversalIssueRelayConfigurationOptionalParams = { @@ -129,7 +129,7 @@ export class CommunicationRelayClient { requestOptions, (updatedOptions) => { return this.client.communicationNetworkTraversal.issueRelayConfiguration(updatedOptions); - } + }, ); } } diff --git a/sdk/communication/communication-network-traversal/test/public/communicationNetworkTraversalClient.spec.ts b/sdk/communication/communication-network-traversal/test/public/communicationNetworkTraversalClient.spec.ts index 7cc3315ca642..274beb207a52 100644 --- a/sdk/communication/communication-network-traversal/test/public/communicationNetworkTraversalClient.spec.ts +++ b/sdk/communication/communication-network-traversal/test/public/communicationNetworkTraversalClient.spec.ts @@ -25,9 +25,8 @@ matrix([[true, false]], async function (useAad: boolean) { ({ identityClient, relayClient, recorder } = await createRecordedCommunicationRelayClientWithToken(this)); } else { - ({ identityClient, relayClient, recorder } = await createRecordedCommunicationRelayClient( - this - )); + ({ identityClient, relayClient, recorder } = + await createRecordedCommunicationRelayClient(this)); } }); @@ -144,7 +143,7 @@ matrix([[true, false]], async function (useAad: boolean) { if (!isPlaybackMode()) { // The token should expire between the requestedTime and the expectedExpirationTime assert.isTrue( - requestedTime <= turnTokenExpiresOn && turnTokenExpiresOn <= expectedExpirationTime + requestedTime <= turnTokenExpiresOn && turnTokenExpiresOn <= expectedExpirationTime, ); } diff --git a/sdk/communication/communication-network-traversal/test/public/utils/mockHttpClients.ts b/sdk/communication/communication-network-traversal/test/public/utils/mockHttpClients.ts index 5c3ce9434806..f5a61e3505b3 100644 --- a/sdk/communication/communication-network-traversal/test/public/utils/mockHttpClients.ts +++ b/sdk/communication/communication-network-traversal/test/public/utils/mockHttpClients.ts @@ -10,7 +10,7 @@ import { export const createMockHttpClient = >( status: number = 200, - parsedBody?: T + parsedBody?: T, ): HttpClient => { return { async sendRequest(httpRequest: PipelineRequest): Promise { diff --git a/sdk/communication/communication-network-traversal/test/public/utils/recordedClient.ts b/sdk/communication/communication-network-traversal/test/public/utils/recordedClient.ts index f2d86e88d093..37eb7c9f8873 100644 --- a/sdk/communication/communication-network-traversal/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-network-traversal/test/public/utils/recordedClient.ts @@ -88,17 +88,17 @@ export async function createRecorder(context: Test | undefined): Promise { const recorder = await createRecorder(context.currentTest); const identityClient = new CommunicationIdentityClient( env.COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING ?? "", - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); const client = new CommunicationRelayClient( env.COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING ?? "", - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); // casting is a workaround to enable min-max testing @@ -110,13 +110,13 @@ export async function createRecordedCommunicationRelayClient( } export async function createRecordedCommunicationRelayClientWithToken( - context: Context + context: Context, ): Promise { const recorder = await createRecorder(context.currentTest); let credential: TokenCredential; const endpoint = parseConnectionString( - env.COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING ?? "" + env.COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING ?? "", ).endpoint; if (isPlaybackMode()) { credential = { @@ -130,13 +130,13 @@ export async function createRecordedCommunicationRelayClientWithToken( const identityClient = new CommunicationIdentityClient( endpoint, credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); const client = new CommunicationRelayClient( endpoint, credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); return { diff --git a/sdk/communication/communication-phone-numbers/package.json b/sdk/communication/communication-phone-numbers/package.json index f90928d1cccf..0e636cb55ace 100644 --- a/sdk/communication/communication-phone-numbers/package.json +++ b/sdk/communication/communication-phone-numbers/package.json @@ -13,11 +13,11 @@ "build:samples": "echo Obsolete.", "build:test": "tsc -p . && dev-tool run bundle", "bundle": "dev-tool run bundle", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md && rushx format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -99,7 +99,6 @@ "karma": "^6.2.0", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "typescript": "~5.2.0", diff --git a/sdk/communication/communication-phone-numbers/samples-dev/updatePhoneNumberCapabilities.ts b/sdk/communication/communication-phone-numbers/samples-dev/updatePhoneNumberCapabilities.ts index c504a2e07bf0..893c1449c273 100644 --- a/sdk/communication/communication-phone-numbers/samples-dev/updatePhoneNumberCapabilities.ts +++ b/sdk/communication/communication-phone-numbers/samples-dev/updatePhoneNumberCapabilities.ts @@ -39,7 +39,7 @@ export async function main() { const updatePoller = await client.beginUpdatePhoneNumberCapabilities( phoneNumberToUpdate, - updateRequest + updateRequest, ); // Update is underway. diff --git a/sdk/communication/communication-phone-numbers/src/mappers.ts b/sdk/communication/communication-phone-numbers/src/mappers.ts index b30aa3f86105..3d3615b19ec5 100644 --- a/sdk/communication/communication-phone-numbers/src/mappers.ts +++ b/sdk/communication/communication-phone-numbers/src/mappers.ts @@ -9,7 +9,7 @@ import { TrunkUpdate as RestSipTrunk } from "./generated/src/siprouting/models"; * Transforming SIP trunks REST model to SDK model */ export function transformFromRestModel( - trunks: { [propertyName: string]: RestSipTrunk } | undefined + trunks: { [propertyName: string]: RestSipTrunk } | undefined, ): SipTrunk[] { const result: SipTrunk[] = []; diff --git a/sdk/communication/communication-phone-numbers/src/phoneNumbersClient.ts b/sdk/communication/communication-phone-numbers/src/phoneNumbersClient.ts index d672ba180023..9caf5eb669e6 100644 --- a/sdk/communication/communication-phone-numbers/src/phoneNumbersClient.ts +++ b/sdk/communication/communication-phone-numbers/src/phoneNumbersClient.ts @@ -99,7 +99,7 @@ export class PhoneNumbersClient { public constructor( connectionStringOrUrl: string, credentialOrOptions?: KeyCredential | TokenCredential | PhoneNumbersClientOptions, - maybeOptions: PhoneNumbersClientOptions = {} + maybeOptions: PhoneNumbersClientOptions = {}, ) { const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions); const options = isPhoneNumbersClientOptions(credentialOrOptions) @@ -136,7 +136,7 @@ export class PhoneNumbersClient { */ public getPurchasedPhoneNumber( phoneNumber: string, - options: GetPurchasedPhoneNumberOptions = {} + options: GetPurchasedPhoneNumberOptions = {}, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient-getPurchasedPhoneNumber", @@ -145,7 +145,7 @@ export class PhoneNumbersClient { return this.client.phoneNumbers.getByNumber(phoneNumber, { ...updatedOptions, }); - } + }, ); } @@ -163,11 +163,11 @@ export class PhoneNumbersClient { * @param options - The optional parameters. */ public listPurchasedPhoneNumbers( - options: ListPurchasedPhoneNumbersOptions = {} + options: ListPurchasedPhoneNumbersOptions = {}, ): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "PhoneNumbersClient-listPurchasedPhoneNumbers", - options + options, ); try { @@ -208,14 +208,14 @@ export class PhoneNumbersClient { */ public beginReleasePhoneNumber( phoneNumber: string, - options: BeginReleasePhoneNumberOptions = {} + options: BeginReleasePhoneNumberOptions = {}, ): Promise, ReleasePhoneNumberResult>> { return tracingClient.withSpan( "PhoneNumbersClient-beginReleasePhoneNumber", options, (updatedOptions) => { return this.client.phoneNumbers.beginReleasePhoneNumber(phoneNumber, updatedOptions); - } + }, ); } @@ -243,7 +243,7 @@ export class PhoneNumbersClient { */ public beginSearchAvailablePhoneNumbers( search: SearchAvailablePhoneNumbersRequest, - options: BeginSearchAvailablePhoneNumbersOptions = {} + options: BeginSearchAvailablePhoneNumbersOptions = {}, ): Promise, PhoneNumberSearchResult>> { return tracingClient.withSpan( "PhoneNumbersClient-beginSearchAvailablePhoneNumbers", @@ -258,9 +258,9 @@ export class PhoneNumbersClient { { ...updatedOptions, ...rest, - } + }, ); - } + }, ); } @@ -287,7 +287,7 @@ export class PhoneNumbersClient { */ public beginPurchasePhoneNumbers( searchId: string, - options: BeginPurchasePhoneNumbersOptions = {} + options: BeginPurchasePhoneNumbersOptions = {}, ): Promise< PollerLike, PurchasePhoneNumbersResult> > { @@ -296,7 +296,7 @@ export class PhoneNumbersClient { options, (updatedOptions) => { return this.client.phoneNumbers.beginPurchasePhoneNumbers({ ...updatedOptions, searchId }); - } + }, ); } @@ -325,7 +325,7 @@ export class PhoneNumbersClient { public beginUpdatePhoneNumberCapabilities( phoneNumber: string, request: PhoneNumberCapabilitiesRequest, - options: BeginUpdatePhoneNumberCapabilitiesOptions = {} + options: BeginUpdatePhoneNumberCapabilitiesOptions = {}, ): Promise, PurchasedPhoneNumber>> { if (!phoneNumber) { throw Error("phone number can't be empty"); @@ -338,7 +338,7 @@ export class PhoneNumbersClient { ...updatedOptions, ...request, }); - } + }, ); } @@ -356,11 +356,11 @@ export class PhoneNumbersClient { * @param options - The optional parameters. */ public listAvailableCountries( - options: ListAvailableCountriesOptions = {} + options: ListAvailableCountriesOptions = {}, ): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "PhoneNumbersClient-listAvailableCountries", - options + options, ); try { @@ -396,11 +396,11 @@ export class PhoneNumbersClient { */ public listAvailableTollFreeAreaCodes( countryCode: string, - options: ListTollFreeAreaCodesOptions = {} + options: ListTollFreeAreaCodesOptions = {}, ): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "PhoneNumbersClient-listAvailableTollFreeAreaCodes", - options + options, ); try { @@ -436,11 +436,11 @@ export class PhoneNumbersClient { */ public listAvailableGeographicAreaCodes( countryCode: string, - options: ListGeographicAreaCodesOptions = {} + options: ListGeographicAreaCodesOptions = {}, ): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "PhoneNumbersClient-listAvailableGeographicFreeAreaCodes", - options + options, ); try { @@ -475,11 +475,11 @@ export class PhoneNumbersClient { */ public listAvailableLocalities( countryCode: string, - options: ListLocalitiesOptions = {} + options: ListLocalitiesOptions = {}, ): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "PhoneNumbersClient-listAvailableLocalities", - options + options, ); try { @@ -516,11 +516,11 @@ export class PhoneNumbersClient { */ public listAvailableOfferings( countryCode: string, - options: ListOfferingsOptions = {} + options: ListOfferingsOptions = {}, ): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "PhoneNumbersClient-listOfferings", - options + options, ); try { diff --git a/sdk/communication/communication-phone-numbers/src/sipRoutingClient.ts b/sdk/communication/communication-phone-numbers/src/sipRoutingClient.ts index 7647ff2a2ed4..34320e2cdb34 100644 --- a/sdk/communication/communication-phone-numbers/src/sipRoutingClient.ts +++ b/sdk/communication/communication-phone-numbers/src/sipRoutingClient.ts @@ -59,7 +59,7 @@ export class SipRoutingClient { public constructor( endpoint: string, credential: KeyCredential, - options?: SipRoutingClientOptions + options?: SipRoutingClientOptions, ); /** @@ -71,13 +71,13 @@ export class SipRoutingClient { public constructor( endpoint: string, credential: TokenCredential, - options?: SipRoutingClientOptions + options?: SipRoutingClientOptions, ); public constructor( connectionStringOrUrl: string, credentialOrOptions?: KeyCredential | TokenCredential | SipRoutingClientOptions, - maybeOptions: SipRoutingClientOptions = {} + maybeOptions: SipRoutingClientOptions = {}, ) { const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions); const options = isSipClientOptions(credentialOrOptions) ? credentialOrOptions : maybeOptions; @@ -106,7 +106,7 @@ export class SipRoutingClient { public listTrunks(options: ListSipTrunksOptions = {}): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "SipRoutingClient-listTrunks", - options + options, ); try { @@ -156,7 +156,7 @@ export class SipRoutingClient { public listRoutes(options: ListSipRoutesOptions = {}): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "SipRoutingClient-listRoutes", - options + options, ); try { @@ -230,7 +230,7 @@ export class SipRoutingClient { }; const config = await this.client.sipRouting.update(payload); const storedTrunk = transformFromRestModel(config.trunks).find( - (value: SipTrunk) => value.fqdn === trunk.fqdn + (value: SipTrunk) => value.fqdn === trunk.fqdn, ); if (storedTrunk) { return storedTrunk; @@ -247,7 +247,7 @@ export class SipRoutingClient { */ public async setRoutes( routes: SipTrunkRoute[], - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan("SipRoutingClient-setRoutes", options, async (updatedOptions) => { const patch: SipConfigurationUpdate = { @@ -284,7 +284,7 @@ export class SipRoutingClient { ...patch, }; await this.client.sipRouting.update(payload); - } + }, ); } @@ -299,7 +299,7 @@ export class SipRoutingClient { } private async *listRoutesPagingAll( - options?: ListSipRoutesOptions + options?: ListSipRoutesOptions, ): AsyncIterableIterator { for await (const page of this.listRoutesPagingPage(options)) { yield* page; @@ -307,7 +307,7 @@ export class SipRoutingClient { } private async *listTrunksPagingAll( - options?: ListSipTrunksOptions + options?: ListSipTrunksOptions, ): AsyncIterableIterator { for await (const page of this.listTrunksPagingPage(options)) { yield* page; @@ -315,14 +315,14 @@ export class SipRoutingClient { } private async *listTrunksPagingPage( - options: ListSipTrunksOptions = {} + options: ListSipTrunksOptions = {}, ): AsyncIterableIterator { const apiResult = await this.getTrunksInternal(options as OperationOptions); yield apiResult; } private async *listRoutesPagingPage( - options: ListSipRoutesOptions = {} + options: ListSipRoutesOptions = {}, ): AsyncIterableIterator { const apiResult = await this.getRoutesInternal(options as OperationOptions); yield apiResult; diff --git a/sdk/communication/communication-phone-numbers/test/internal/customPipelinePolicies.spec.ts b/sdk/communication/communication-phone-numbers/test/internal/customPipelinePolicies.spec.ts index 5860894aed57..0f91164c5b37 100644 --- a/sdk/communication/communication-phone-numbers/test/internal/customPipelinePolicies.spec.ts +++ b/sdk/communication/communication-phone-numbers/test/internal/customPipelinePolicies.spec.ts @@ -27,11 +27,11 @@ describe("phoneNumbersPagingPolicy", function () { createMockResponse({ phoneNumbers: [], nextLink: "/phoneNumbers?top=100&skip=100", - }) + }), ); assert.equal( response.parsedBody.nextLink, - "https://contoso.spool.azure.local/phoneNumbers?top=100&skip=100" + "https://contoso.spool.azure.local/phoneNumbers?top=100&skip=100", ); }); @@ -41,18 +41,18 @@ describe("phoneNumbersPagingPolicy", function () { createMockResponse({ phoneNumbers: [], nextLink: "https://contoso.spool.azure.local/phoneNumbers?top=100&skip=100", - }) + }), ); assert.equal( response.parsedBody.nextLink, - "https://contoso.spool.azure.local/phoneNumbers?top=100&skip=100" + "https://contoso.spool.azure.local/phoneNumbers?top=100&skip=100", ); }); it("does not change responses without nextLink", async function () { const policy = createPhoneNumbersPagingPolicy(endpoint); const response: FullOperationResponse = await policy.sendRequest(request, (_request) => - createMockResponse({ phoneNumbers: [] }) + createMockResponse({ phoneNumbers: [] }), ); assert.isUndefined(response.parsedBody.nextLink); }); @@ -63,11 +63,11 @@ describe("phoneNumbersPagingPolicy", function () { createMockResponse({ phoneNumbers: [], nextLink: "/phoneNumbers?top=100&skip=100", - }) + }), ); assert.equal( response.parsedBody.nextLink, - "https://contoso.spool.azure.local/phoneNumbers?top=100&skip=100" + "https://contoso.spool.azure.local/phoneNumbers?top=100&skip=100", ); }); }); diff --git a/sdk/communication/communication-phone-numbers/test/internal/headers.spec.ts b/sdk/communication/communication-phone-numbers/test/internal/headers.spec.ts index b0e6425e3846..57bdd2e1a058 100644 --- a/sdk/communication/communication-phone-numbers/test/internal/headers.spec.ts +++ b/sdk/communication/communication-phone-numbers/test/internal/headers.spec.ts @@ -44,7 +44,7 @@ describe("PhoneNumbersClient - headers", function () { const userAgentHeader = isNode ? "user-agent" : "x-ms-useragent"; assert.match( request.headers.get(userAgentHeader) as string, - new RegExp(`azsdk-js-communication-phone-numbers/${SDK_VERSION}`, "g") + new RegExp(`azsdk-js-communication-phone-numbers/${SDK_VERSION}`, "g"), ); }); @@ -57,7 +57,7 @@ describe("PhoneNumbersClient - headers", function () { assert.isDefined(request.headers.get("authorization")); assert.match( request.headers.get("authorization") as string, - /HMAC-SHA256 SignedHeaders=.+&Signature=.+/ + /HMAC-SHA256 SignedHeaders=.+&Signature=.+/, ); }); @@ -74,7 +74,7 @@ describe("PhoneNumbersClient - headers", function () { assert.isDefined(request.headers.get("authorization")); assert.match( request.headers.get("authorization") as string, - /HMAC-SHA256 SignedHeaders=.+&Signature=.+/ + /HMAC-SHA256 SignedHeaders=.+&Signature=.+/, ); }); @@ -113,8 +113,8 @@ describe("PhoneNumbersClient - headers", function () { request.headers.get(userAgentHeader) as string, new RegExp( `phonenumbersclient-headers-test azsdk-js-communication-phone-numbers/${SDK_VERSION}`, - "g" - ) + "g", + ), ); }); }); diff --git a/sdk/communication/communication-phone-numbers/test/internal/siprouting/headers.spec.ts b/sdk/communication/communication-phone-numbers/test/internal/siprouting/headers.spec.ts index 7aa00a835117..c83b5e75e6fc 100644 --- a/sdk/communication/communication-phone-numbers/test/internal/siprouting/headers.spec.ts +++ b/sdk/communication/communication-phone-numbers/test/internal/siprouting/headers.spec.ts @@ -45,7 +45,7 @@ describe("SipRoutingClient - headers", function () { const userAgentHeader = isNode ? "user-agent" : "x-ms-useragent"; assert.match( request.headers.get(userAgentHeader) as string, - new RegExp(`azsdk-js-communication-phone-numbers/${SDK_VERSION}`, "g") + new RegExp(`azsdk-js-communication-phone-numbers/${SDK_VERSION}`, "g"), ); }); @@ -58,7 +58,7 @@ describe("SipRoutingClient - headers", function () { assert.isDefined(request.headers.get("authorization")); assert.match( request.headers.get("authorization") as string, - /HMAC-SHA256 SignedHeaders=.+&Signature=.+/ + /HMAC-SHA256 SignedHeaders=.+&Signature=.+/, ); }); @@ -76,7 +76,7 @@ describe("SipRoutingClient - headers", function () { assert.isDefined(request.headers.get("authorization")); assert.match( request.headers.get("authorization") as string, - /HMAC-SHA256 SignedHeaders=.+&Signature=.+/ + /HMAC-SHA256 SignedHeaders=.+&Signature=.+/, ); }); @@ -117,8 +117,8 @@ describe("SipRoutingClient - headers", function () { request.headers.get(userAgentHeader) as string, new RegExp( `siproutingclient-headers-test azsdk-js-communication-phone-numbers/${SDK_VERSION}`, - "g" - ) + "g", + ), ); }); }); diff --git a/sdk/communication/communication-phone-numbers/test/public/localities.spec.ts b/sdk/communication/communication-phone-numbers/test/public/localities.spec.ts index 0536efbdbf02..467ef85cca52 100644 --- a/sdk/communication/communication-phone-numbers/test/public/localities.spec.ts +++ b/sdk/communication/communication-phone-numbers/test/public/localities.spec.ts @@ -43,7 +43,7 @@ matrix([[true, false]], async function (useAad) { for await (const locality of client.listAvailableLocalities("US", request)) { assert.equal( locality.administrativeDivision?.abbreviatedName, - firstLocality.value.administrativeDivision.abbreviatedName + firstLocality.value.administrativeDivision.abbreviatedName, ); } }).timeout(60000); diff --git a/sdk/communication/communication-phone-numbers/test/public/lro.search.spec.ts b/sdk/communication/communication-phone-numbers/test/public/lro.search.spec.ts index e51282c4ebcb..4c7f35041476 100644 --- a/sdk/communication/communication-phone-numbers/test/public/lro.search.spec.ts +++ b/sdk/communication/communication-phone-numbers/test/public/lro.search.spec.ts @@ -68,7 +68,7 @@ matrix([[true, false]], async function (useAad) { } catch (error: any) { assert.isTrue( isClientErrorStatusCode(error.statusCode), - `Status code ${error.statusCode} does not indicate client error.` + `Status code ${error.statusCode} does not indicate client error.`, ); return; } diff --git a/sdk/communication/communication-phone-numbers/test/public/lro.update.spec.ts b/sdk/communication/communication-phone-numbers/test/public/lro.update.spec.ts index 805c59309dc9..5c359b03dfc4 100644 --- a/sdk/communication/communication-phone-numbers/test/public/lro.update.spec.ts +++ b/sdk/communication/communication-phone-numbers/test/public/lro.update.spec.ts @@ -42,7 +42,7 @@ matrix([[true, false]], async function (useAad) { it("can update a phone number's capabilities", async function () { const updatePoller = await client.beginUpdatePhoneNumberCapabilities( purchasedPhoneNumber, - update + update, ); const phoneNumber = await updatePoller.pollUntilDone(); @@ -59,7 +59,7 @@ matrix([[true, false]], async function (useAad) { } catch (error: any) { assert.isTrue( isClientErrorStatusCode(error.statusCode), - `Status code ${error.statusCode} does not indicate client error.` + `Status code ${error.statusCode} does not indicate client error.`, ); return; } @@ -75,7 +75,7 @@ matrix([[true, false]], async function (useAad) { } catch (error: any) { assert.isTrue( isClientErrorStatusCode(error.statusCode), - `Status code ${error.statusCode} does not indicate client error.` + `Status code ${error.statusCode} does not indicate client error.`, ); return; } diff --git a/sdk/communication/communication-phone-numbers/test/public/siprouting/setRoutes.spec.ts b/sdk/communication/communication-phone-numbers/test/public/siprouting/setRoutes.spec.ts index a2ee5cbe3900..7b8d02d3d0aa 100644 --- a/sdk/communication/communication-phone-numbers/test/public/siprouting/setRoutes.spec.ts +++ b/sdk/communication/communication-phone-numbers/test/public/siprouting/setRoutes.spec.ts @@ -235,7 +235,7 @@ matrix([[true, false]], async function (useAad) { assert.equal(error.code, "UnprocessableConfiguration"); const storedRoutes = await listAllRoutes(client); assert.isUndefined( - storedRoutes.find((item) => item.name === "invalidDuplicatedRoutingTrunksRoute") + storedRoutes.find((item) => item.name === "invalidDuplicatedRoutingTrunksRoute"), ); return; } diff --git a/sdk/communication/communication-phone-numbers/test/public/siprouting/utils/mockHttpClients.ts b/sdk/communication/communication-phone-numbers/test/public/siprouting/utils/mockHttpClients.ts index 0453573ba5e4..c554062dcbbc 100644 --- a/sdk/communication/communication-phone-numbers/test/public/siprouting/utils/mockHttpClients.ts +++ b/sdk/communication/communication-phone-numbers/test/public/siprouting/utils/mockHttpClients.ts @@ -12,7 +12,7 @@ import { SipTrunk } from "../../../../src"; export const createMockHttpClient = >( status: number = 200, parsedBody?: T, - headers?: HttpHeaders + headers?: HttpHeaders, ): HttpClient => { return { async sendRequest(request: PipelineRequest): Promise { diff --git a/sdk/communication/communication-phone-numbers/test/public/siprouting/utils/recordedClient.ts b/sdk/communication/communication-phone-numbers/test/public/siprouting/utils/recordedClient.ts index bf6f7002336d..7a94432f8d37 100644 --- a/sdk/communication/communication-phone-numbers/test/public/siprouting/utils/recordedClient.ts +++ b/sdk/communication/communication-phone-numbers/test/public/siprouting/utils/recordedClient.ts @@ -79,7 +79,7 @@ export async function createRecorder(context: Test | undefined): Promise> { const recorder = await createRecorder(context.currentTest); @@ -92,7 +92,7 @@ export async function createRecordedClient( position: "perCall", }, ], - }) + }), ); return { client, recorder }; @@ -107,13 +107,13 @@ export function createMockToken(): TokenCredential { } export async function createRecordedClientWithToken( - context: Context + context: Context, ): Promise> { const recorder = await createRecorder(context.currentTest); let credential: TokenCredential; const endpoint = parseConnectionString( - assertEnvironmentVariable("COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING") + assertEnvironmentVariable("COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING"), ).endpoint; if (isPlaybackMode()) { @@ -132,7 +132,7 @@ export async function createRecordedClientWithToken( position: "perCall", }, ], - }) + }), ); // casting is a workaround to enable min-max testing @@ -141,7 +141,7 @@ export async function createRecordedClientWithToken( export async function clearSipConfiguration(): Promise { const client = new SipRoutingClient( - assertEnvironmentVariable("COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING") + assertEnvironmentVariable("COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING"), ); await client.setRoutes([]); await client.setTrunks([]); diff --git a/sdk/communication/communication-phone-numbers/test/public/utils/mockHttpClients.ts b/sdk/communication/communication-phone-numbers/test/public/utils/mockHttpClients.ts index 33cebb94e3dc..befc531f3624 100644 --- a/sdk/communication/communication-phone-numbers/test/public/utils/mockHttpClients.ts +++ b/sdk/communication/communication-phone-numbers/test/public/utils/mockHttpClients.ts @@ -13,7 +13,7 @@ import { PurchasedPhoneNumbers } from "../../../src/generated/src/models"; export const createMockHttpClient = >( status: number = 200, parsedBody?: T, - headers?: HttpHeaders + headers?: HttpHeaders, ): HttpClient => { return { async sendRequest(request: PipelineRequest): Promise { @@ -45,7 +45,7 @@ export const getPhoneNumberHttpClient: HttpClient = createMockHttpClient(200, { diff --git a/sdk/communication/communication-phone-numbers/test/public/utils/recordedClient.ts b/sdk/communication/communication-phone-numbers/test/public/utils/recordedClient.ts index 169c1f1e2391..66686791e282 100644 --- a/sdk/communication/communication-phone-numbers/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-phone-numbers/test/public/utils/recordedClient.ts @@ -85,7 +85,7 @@ export async function createRecorder(context: Test | undefined): Promise> { const recorder = await createRecorder(context.currentTest); @@ -98,7 +98,7 @@ export async function createRecordedClient( position: "perCall", }, ], - }) + }), ); // casting is a workaround to enable min-max testing @@ -114,13 +114,13 @@ export function createMockToken(): TokenCredential { } export async function createRecordedClientWithToken( - context: Context + context: Context, ): Promise> { const recorder = await createRecorder(context.currentTest); let credential: TokenCredential; const endpoint = parseConnectionString( - env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING ?? "" + env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING ?? "", ).endpoint; if (isPlaybackMode()) { @@ -139,7 +139,7 @@ export async function createRecordedClientWithToken( position: "perCall", }, ], - }) + }), ); // casting is a workaround to enable min-max testing diff --git a/sdk/communication/communication-recipient-verification/package.json b/sdk/communication/communication-recipient-verification/package.json index 6ceb6148bc47..8dab9e7f71e1 100644 --- a/sdk/communication/communication-recipient-verification/package.json +++ b/sdk/communication/communication-recipient-verification/package.json @@ -15,11 +15,11 @@ "build:node": "tsc -p . && dev-tool run bundle", "build:samples": "dev-tool samples publish --force", "build:test": "tsc -p . && dev-tool run bundle", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 300000 'dist-esm/test/public/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -100,7 +100,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "typescript": "~5.2.0", diff --git a/sdk/communication/communication-recipient-verification/src/recipientVerificationClient.ts b/sdk/communication/communication-recipient-verification/src/recipientVerificationClient.ts index 54175ec1344b..9e442a69e31d 100644 --- a/sdk/communication/communication-recipient-verification/src/recipientVerificationClient.ts +++ b/sdk/communication/communication-recipient-verification/src/recipientVerificationClient.ts @@ -26,7 +26,7 @@ import { tracingClient } from "./generated/src/tracing"; export interface RecipientVerificationClientOptions extends CommonClientOptions {} const isRecipientVerificationClientOptions = ( - options: any + options: any, ): options is RecipientVerificationClientOptions => options && !isKeyCredential(options) && !isTokenCredential(options); @@ -57,7 +57,7 @@ export class RecipientVerificationClient { public constructor( endpoint: string, credential: KeyCredential, - options?: RecipientVerificationClientOptions + options?: RecipientVerificationClientOptions, ); /** @@ -70,13 +70,13 @@ export class RecipientVerificationClient { public constructor( endpoint: string, credential: TokenCredential, - options?: RecipientVerificationClientOptions + options?: RecipientVerificationClientOptions, ); public constructor( connectionStringOrUrl: string, credentialOrOptions?: KeyCredential | TokenCredential | RecipientVerificationClientOptions, - maybeOptions: RecipientVerificationClientOptions = {} + maybeOptions: RecipientVerificationClientOptions = {}, ) { const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions); const options = isRecipientVerificationClientOptions(credentialOrOptions) @@ -103,14 +103,14 @@ export class RecipientVerificationClient { * @param options - Additional request options. */ public getVerifications( - options: AcsVerificationGetVerificationsOptionalParams = {} + options: AcsVerificationGetVerificationsOptionalParams = {}, ): Promise { return tracingClient.withSpan( "RecipientVerification.getVerifications", options, (updatedOptions) => { return this.client.acsVerificationOperations.getVerifications(updatedOptions); - } + }, ); } @@ -122,7 +122,7 @@ export class RecipientVerificationClient { */ public deleteVerification( verificationId: string, - options: AcsVerificationDeleteVerificationOptionalParams = {} + options: AcsVerificationDeleteVerificationOptionalParams = {}, ): Promise { return tracingClient.withSpan( "RecipientVerification.deleteVerification", @@ -130,9 +130,9 @@ export class RecipientVerificationClient { (updatedOptions) => { return this.client.acsVerificationOperations.deleteVerification( verificationId, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -144,14 +144,14 @@ export class RecipientVerificationClient { */ public verifyIdentity( verificationId: string, - options: AcsVerificationVerifyIdentityOptionalParams = {} + options: AcsVerificationVerifyIdentityOptionalParams = {}, ): Promise { return tracingClient.withSpan( "RecipientVerification.verifyIdentity", options, (updatedOptions) => { return this.client.acsVerificationOperations.verifyIdentity(verificationId, updatedOptions); - } + }, ); } @@ -161,14 +161,14 @@ export class RecipientVerificationClient { * @param options - Additional request options. */ public getVerificationConstants( - options: AcsVerificationGetVerificationConstantsOptionalParams = {} + options: AcsVerificationGetVerificationConstantsOptionalParams = {}, ): Promise { return tracingClient.withSpan( "RecipientVerification.getVerificationConstants", options, (updatedOptions) => { return this.client.acsVerificationOperations.getVerificationConstants(updatedOptions); - } + }, ); } @@ -178,14 +178,14 @@ export class RecipientVerificationClient { * @param options - Additional request options. */ public requestVerification( - options: AcsVerificationRequestVerificationOptionalParams = {} + options: AcsVerificationRequestVerificationOptionalParams = {}, ): Promise { return tracingClient.withSpan( "RecipientVerification.requestVerification", options, (updatedOptions) => { return this.client.acsVerificationOperations.requestVerification(updatedOptions); - } + }, ); } } diff --git a/sdk/communication/communication-recipient-verification/test/public/utils/recordedClient.ts b/sdk/communication/communication-recipient-verification/test/public/utils/recordedClient.ts index ca45f983f28b..e269899c5d5c 100644 --- a/sdk/communication/communication-recipient-verification/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-recipient-verification/test/public/utils/recordedClient.ts @@ -51,7 +51,7 @@ export const recorderOptions: RecorderStartOptions = { }; export async function createRecordedClient( - context: Context + context: Context, ): Promise> { const recorder = new Recorder(context.currentTest); await recorder.start(recorderOptions); @@ -66,7 +66,7 @@ export async function createRecordedClient( return { client: new RecipientVerificationClient( assertEnvironmentVariable("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING"), - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ), recorder, }; @@ -83,14 +83,14 @@ export function createMockToken(): { } export async function createRecordedClientWithToken( - context: Context + context: Context, ): Promise | undefined> { const recorder = new Recorder(context.currentTest); await recorder.start(recorderOptions); let credential: TokenCredential; const endpoint = parseConnectionString( - assertEnvironmentVariable("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING") + assertEnvironmentVariable("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING"), ).endpoint; if (isPlaybackMode()) { @@ -101,7 +101,7 @@ export async function createRecordedClientWithToken( client: new RecipientVerificationClient( endpoint, credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ), recorder, }; @@ -113,7 +113,7 @@ export async function createRecordedClientWithToken( credential = new ClientSecretCredential( assertEnvironmentVariable("AZURE_TENANT_ID"), assertEnvironmentVariable("AZURE_CLIENT_ID"), - assertEnvironmentVariable("AZURE_CLIENT_SECRET") + assertEnvironmentVariable("AZURE_CLIENT_SECRET"), ); } @@ -122,7 +122,7 @@ export async function createRecordedClientWithToken( client: new RecipientVerificationClient( endpoint, credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ), recorder, }; diff --git a/sdk/communication/communication-rooms/package.json b/sdk/communication/communication-rooms/package.json index f7fda595de91..f9ce76f27f2f 100644 --- a/sdk/communication/communication-rooms/package.json +++ b/sdk/communication/communication-rooms/package.json @@ -55,7 +55,6 @@ "mkdirp": "^1.0.4", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "typescript": "~5.2.0", @@ -81,11 +80,11 @@ "build:samples": "dev-tool samples publish --force", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript --disable-async-iterators ./swagger/README.md && rushx format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", diff --git a/sdk/communication/communication-rooms/samples-dev/participantOperations.ts b/sdk/communication/communication-rooms/samples-dev/participantOperations.ts index fb77dab85681..6e8048131f2e 100644 --- a/sdk/communication/communication-rooms/samples-dev/participantOperations.ts +++ b/sdk/communication/communication-rooms/samples-dev/participantOperations.ts @@ -124,7 +124,7 @@ export async function main() { * @param participants - The Participants being printed to console. */ async function printParticipants( - participants: PagedAsyncIterableIterator> + participants: PagedAsyncIterableIterator>, ): Promise { var count = 0; for await (const participant of participants) { diff --git a/sdk/communication/communication-rooms/src/models/mappers.ts b/sdk/communication/communication-rooms/src/models/mappers.ts index aad13d437cc4..e9b838f33a27 100644 --- a/sdk/communication/communication-rooms/src/models/mappers.ts +++ b/sdk/communication/communication-rooms/src/models/mappers.ts @@ -26,7 +26,7 @@ const defaultRole: ParticipantRole = "Attendee"; * Mapping room participant customer model to room participant REST model. */ export const mapToRoomParticipantRestModel = ( - roomParticipant: RoomParticipantPatch + roomParticipant: RoomParticipantPatch, ): RESTRoomParticipant => { const { id, role } = roomParticipant; if (getIdentifierKind(id).kind !== "communicationUser") { @@ -43,7 +43,7 @@ export const mapToRoomParticipantRestModel = ( * Mapping room participant REST model to room participant customer model */ export const mapToRoomParticipantSDKModel = ( - roomParticipant: RESTRoomParticipant + roomParticipant: RESTRoomParticipant, ): RoomParticipant => { const { rawId, role } = roomParticipant; return { @@ -57,7 +57,7 @@ export const mapToRoomParticipantSDKModel = ( * Mapping room participant role to participants rawId. */ export const mapRoomParticipantToRawId = ( - participants?: RoomParticipantPatch[] + participants?: RoomParticipantPatch[], ): Record => { participants = participants ?? []; const mappedParticipants: Record = {}; @@ -74,7 +74,7 @@ export const mapRoomParticipantToRawId = ( * Mapping communication identifier for removal. */ export const mapRoomParticipantForRemoval = ( - ids: CommunicationIdentifier[] + ids: CommunicationIdentifier[], ): Record => { const mappedParticipants: Record = {}; for (const id of ids) { diff --git a/sdk/communication/communication-rooms/src/roomsClient.ts b/sdk/communication/communication-rooms/src/roomsClient.ts index 8d14f28931d3..dba9ba2e7962 100644 --- a/sdk/communication/communication-rooms/src/roomsClient.ts +++ b/sdk/communication/communication-rooms/src/roomsClient.ts @@ -76,13 +76,13 @@ export class RoomsClient { constructor( endpoint: string, credential: KeyCredential | TokenCredential, - options?: RoomsClientOptions + options?: RoomsClientOptions, ); constructor( connectionStringOrUrl: string, credentialOrOptions?: RoomsClientOptions | KeyCredential | TokenCredential, - maybeOptions: RoomsClientOptions = {} + maybeOptions: RoomsClientOptions = {}, ) { const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions); const options = isRoomsClientOptions(credentialOrOptions) ? credentialOrOptions : maybeOptions; @@ -132,7 +132,7 @@ export class RoomsClient { */ public async updateRoom( roomId: string, - options: UpdateRoomOptions = {} + options: UpdateRoomOptions = {}, ): Promise { return tracingClient.withSpan("RoomsClient-UpdateRoom", options, async () => { const room = await this.client.rooms.update(roomId, options); @@ -155,7 +155,7 @@ export class RoomsClient { private async *listRoomsPage( pageSettings: ListPageSettings, - options: ListRoomOptions = {} + options: ListRoomOptions = {}, ): AsyncIterableIterator { if (!pageSettings.continuationToken) { const currentSetResponse = await this.client.rooms.list(options); @@ -168,7 +168,7 @@ export class RoomsClient { while (pageSettings.continuationToken) { const currentSetResponse = await this.client.rooms.listNext( pageSettings.continuationToken, - options + options, ); pageSettings.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -180,7 +180,7 @@ export class RoomsClient { } private async *listRoomsAll( - options: ListRoomOptions = {} + options: ListRoomOptions = {}, ): AsyncIterableIterator { for await (const page of this.listRoomsPage({}, options)) { yield* page; @@ -231,7 +231,7 @@ export class RoomsClient { private async *listParticipantsPage( roomId: string, pageSettings: ListPageSettings, - options: ListParticipantsOptions = {} + options: ListParticipantsOptions = {}, ): AsyncIterableIterator { if (!pageSettings.continuationToken) { const currentSetResponse = await this.client.participants.list(roomId, options); @@ -245,7 +245,7 @@ export class RoomsClient { const currentSetResponse = await this.client.participants.listNext( roomId, pageSettings.continuationToken, - options + options, ); pageSettings.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -258,7 +258,7 @@ export class RoomsClient { private async *listParticipantsAll( roomId: string, - options: ListParticipantsOptions = {} + options: ListParticipantsOptions = {}, ): AsyncIterableIterator { for await (const page of this.listParticipantsPage(roomId, {}, options)) { yield* page; @@ -273,11 +273,11 @@ export class RoomsClient { */ public listParticipants( roomId: string, - options: ListParticipantsOptions = {} + options: ListParticipantsOptions = {}, ): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "RoomsClient-GetParticipants", - options + options, ); try { const iter = this.listParticipantsAll(roomId, updatedOptions); @@ -314,7 +314,7 @@ export class RoomsClient { public async addOrUpdateParticipants( roomId: string, participants: RoomParticipantPatch[], - options: AddOrUpdateParticipantsOptions = {} + options: AddOrUpdateParticipantsOptions = {}, ): Promise { return tracingClient.withSpan( "RoomsClient-AddOrUpdateParticipants", @@ -324,7 +324,7 @@ export class RoomsClient { ...updatedOptions, participants: mapRoomParticipantToRawId(participants), }); - } + }, ); } @@ -338,7 +338,7 @@ export class RoomsClient { public async removeParticipants( roomId: string, participantIdentifiers: CommunicationIdentifier[], - options: RemoveParticipantsOptions = {} + options: RemoveParticipantsOptions = {}, ): Promise { return tracingClient.withSpan("RoomsClient-RemoveParticipants", options, (updatedOptions) => { this.client.participants.update(roomId, { diff --git a/sdk/communication/communication-rooms/test/internal/roomsClient.mocked.spec.ts b/sdk/communication/communication-rooms/test/internal/roomsClient.mocked.spec.ts index 09166b5535b2..c0f6fe9574a5 100644 --- a/sdk/communication/communication-rooms/test/internal/roomsClient.mocked.spec.ts +++ b/sdk/communication/communication-rooms/test/internal/roomsClient.mocked.spec.ts @@ -39,7 +39,7 @@ describe("[Mocked] RoomsClient", async function () { assert.deepEqual(createRoomsResult.validUntil, mockCreateRoomsResult.validUntil); assert.deepEqual( createRoomsResult.pstnDialOutEnabled, - mockCreateRoomsResult.pstnDialOutEnabled + mockCreateRoomsResult.pstnDialOutEnabled, ); const request = spy.getCall(0).args[0]; @@ -65,15 +65,15 @@ describe("[Mocked] RoomsClient", async function () { assert.equal(createRoomsResult.id, mockCreateRoomsWithPstnDialOutEnabledResult.id); assert.deepEqual( createRoomsResult.validFrom, - mockCreateRoomsWithPstnDialOutEnabledResult.validFrom + mockCreateRoomsWithPstnDialOutEnabledResult.validFrom, ); assert.deepEqual( createRoomsResult.validUntil, - mockCreateRoomsWithPstnDialOutEnabledResult.validUntil + mockCreateRoomsWithPstnDialOutEnabledResult.validUntil, ); assert.deepEqual( createRoomsResult.pstnDialOutEnabled, - mockCreateRoomsWithPstnDialOutEnabledResult.pstnDialOutEnabled + mockCreateRoomsWithPstnDialOutEnabledResult.pstnDialOutEnabled, ); const request = spy.getCall(0).args[0]; @@ -176,7 +176,7 @@ describe("[Mocked] RoomsClient", async function () { assert.isDefined(roomModel); assert.isNotEmpty(roomModel); assert.isTrue( - mockListRoomsResultWithoutNextLink.value.some((room) => room.id === roomModel.id) + mockListRoomsResultWithoutNextLink.value.some((room) => room.id === roomModel.id), ); } }); diff --git a/sdk/communication/communication-rooms/test/public/roomsClient.spec.ts b/sdk/communication/communication-rooms/test/public/roomsClient.spec.ts index 9096ffc6e67a..e9b4b8c8e1d3 100644 --- a/sdk/communication/communication-rooms/test/public/roomsClient.spec.ts +++ b/sdk/communication/communication-rooms/test/public/roomsClient.spec.ts @@ -120,7 +120,7 @@ describe("RoomsClient", function () { await client.createRoom(options); } catch (e: any) { expect(e.message).to.eq( - "The request could not be understood by the server due to malformed syntax." + "The request could not be understood by the server due to malformed syntax.", ); } }); @@ -137,7 +137,7 @@ describe("RoomsClient", function () { await client.createRoom(options); } catch (e: any) { expect(e.message).to.eq( - "The request could not be understood by the server due to malformed syntax." + "The request could not be understood by the server due to malformed syntax.", ); } }); @@ -261,14 +261,14 @@ describe("RoomsClient", function () { validFrom: new Date( recorder.variable( "validFromUpdated", - new Date(validFrom.getTime() + 5 * 60 * 1000).toString() - ) + new Date(validFrom.getTime() + 5 * 60 * 1000).toString(), + ), ), validUntil: new Date( recorder.variable( "validUntilUpdated", - new Date(validUntil.getTime() + 5 * 60 * 1000).toString() - ) + new Date(validUntil.getTime() + 5 * 60 * 1000).toString(), + ), ), }; @@ -291,7 +291,7 @@ describe("RoomsClient", function () { const options: UpdateRoomOptions = { validFrom: new Date( - recorder.variable("validFrom", new Date(validFrom.getTime() + 5 * 60 * 1000).toString()) + recorder.variable("validFrom", new Date(validFrom.getTime() + 5 * 60 * 1000).toString()), ), validUntil: new Date(recorder.variable("validUntil", over180DaysValidUntil.toString())), }; @@ -300,7 +300,7 @@ describe("RoomsClient", function () { await client.updateRoom(roomId, options); } catch (e: any) { expect(e.message).to.eq( - "The request could not be understood by the server due to malformed syntax." + "The request could not be understood by the server due to malformed syntax.", ); } }); @@ -321,7 +321,7 @@ describe("RoomsClient", function () { const options: UpdateRoomOptions = { validFrom: new Date( - recorder.variable("validFrom", new Date(validFrom.getTime() + 5 * 60 * 1000).toString()) + recorder.variable("validFrom", new Date(validFrom.getTime() + 5 * 60 * 1000).toString()), ), validUntil: new Date(recorder.variable("validUntil", expiredValidUntil.toString())), }; @@ -330,7 +330,7 @@ describe("RoomsClient", function () { await client.updateRoom(roomId, options); } catch (e: any) { expect(e.message).to.eq( - "The request could not be understood by the server due to malformed syntax." + "The request could not be understood by the server due to malformed syntax.", ); } }); @@ -355,7 +355,7 @@ describe("RoomsClient", function () { await client.updateRoom(roomId, options); } catch (e: any) { expect(e.message).to.eq( - "The request could not be understood by the server due to malformed syntax." + "The request could not be understood by the server due to malformed syntax.", ); } }); @@ -369,14 +369,14 @@ describe("RoomsClient", function () { validFrom: new Date( recorder.variable( "validFromUpdated", - new Date(validFrom.getTime() + 5 * 60 * 1000).toString() - ) + new Date(validFrom.getTime() + 5 * 60 * 1000).toString(), + ), ), validUntil: new Date( recorder.variable( "validUntilUpdated", - new Date(validUntil.getTime() + 5 * 60 * 1000).toString() - ) + new Date(validUntil.getTime() + 5 * 60 * 1000).toString(), + ), ), }; @@ -413,14 +413,14 @@ describe("RoomsClient", function () { validFrom: new Date( recorder.variable( "validFromUpdated", - new Date(validFrom.getTime() + 5 * 60 * 1000).toString() - ) + new Date(validFrom.getTime() + 5 * 60 * 1000).toString(), + ), ), validUntil: new Date( recorder.variable( "validUntilUpdated", - new Date(validUntil.getTime() + 5 * 60 * 1000).toString() - ) + new Date(validUntil.getTime() + 5 * 60 * 1000).toString(), + ), ), pstnDialOutEnabled: true, }; @@ -627,7 +627,7 @@ async function pause(time: number): Promise { function verifyRoomsAttributes( actualRoom: CommunicationRoom, - expectedValue: CreateRoomOptions + expectedValue: CreateRoomOptions, ): void { // Assert assert.isDefined(actualRoom); @@ -635,7 +635,7 @@ function verifyRoomsAttributes( assert.isDefined(actualRoom.createdOn); assert.deepEqual( actualRoom.pstnDialOutEnabled, - expectedValue.pstnDialOutEnabled != null ? expectedValue.pstnDialOutEnabled : false + expectedValue.pstnDialOutEnabled != null ? expectedValue.pstnDialOutEnabled : false, ); if (expectedValue.validFrom != null) { @@ -652,7 +652,7 @@ async function verifyRoomsParticipantsAttributes( expectedCount: number, expectPresenter: number, expectAttendee: number, - expectConsumer: number + expectConsumer: number, ): Promise { // Assert assert.isDefined(actualRoomParticipant); diff --git a/sdk/communication/communication-rooms/test/public/utils/recordedClient.ts b/sdk/communication/communication-rooms/test/public/utils/recordedClient.ts index 78152c0807e0..8e026e98da3d 100644 --- a/sdk/communication/communication-rooms/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-rooms/test/public/utils/recordedClient.ts @@ -70,13 +70,13 @@ export async function createRecorder(context: Test | undefined): Promise> { const recorder = await createRecorder(context.currentTest); const client = new RoomsClient( env.COMMUNICATION_CONNECTION_STRING_ROOMS ?? "", - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); return { client, @@ -85,7 +85,7 @@ export async function createRecordedRoomsClient( } export async function createRecordedRoomsClientWithToken( - context: Context + context: Context, ): Promise> { const recorder = await createRecorder(context.currentTest); @@ -112,7 +112,7 @@ export async function createRecordedRoomsClientWithToken( export async function createTestUser(recorder: Recorder): Promise { const identityClient = new CommunicationIdentityClient( assertEnvironmentVariable("COMMUNICATION_CONNECTION_STRING_ROOMS"), - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); return identityClient.createUserAndToken(["voip"]); } @@ -120,7 +120,7 @@ export async function createTestUser(recorder: Recorder): Promise { if (testUser) { const identityClient = new CommunicationIdentityClient( - assertEnvironmentVariable("COMMUNICATION_CONNECTION_STRING_ROOMS") + assertEnvironmentVariable("COMMUNICATION_CONNECTION_STRING_ROOMS"), ); await identityClient.deleteUser(testUser); } diff --git a/sdk/communication/communication-short-codes/package.json b/sdk/communication/communication-short-codes/package.json index f2d0fbfaf638..b01b21a6c951 100644 --- a/sdk/communication/communication-short-codes/package.json +++ b/sdk/communication/communication-short-codes/package.json @@ -15,11 +15,11 @@ "build:node": "tsc -p . && dev-tool run bundle", "build:samples": "dev-tool samples publish --force", "build:test": "tsc -p . && dev-tool run bundle", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 300000 'dist-esm/test/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -100,7 +100,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "typescript": "~5.2.0", diff --git a/sdk/communication/communication-short-codes/samples-dev/createAndDeleteProgramBrief.ts b/sdk/communication/communication-short-codes/samples-dev/createAndDeleteProgramBrief.ts index ed100239a90e..7d014dc982b8 100644 --- a/sdk/communication/communication-short-codes/samples-dev/createAndDeleteProgramBrief.ts +++ b/sdk/communication/communication-short-codes/samples-dev/createAndDeleteProgramBrief.ts @@ -105,7 +105,7 @@ export async function main() { `Program brief creation failed. Status code: ${res.status}; Error: ${res.bodyAsText}; - CV: ${res.headers.get("MS-CV")}` + CV: ${res.headers.get("MS-CV")}`, ); } }, @@ -114,7 +114,7 @@ export async function main() { var programBrief = await client.getUSProgramBrief(programBriefId); console.log( - `Program brief with Id ${programBrief.id} has status ${programBrief.status} which was last updated ${programBrief.statusUpdatedDate}` + `Program brief with Id ${programBrief.id} has status ${programBrief.status} which was last updated ${programBrief.statusUpdatedDate}`, ); // delete program brief @@ -127,13 +127,13 @@ export async function main() { `Program brief deletion failed. Status code: ${res.status}; Error: ${res.bodyAsText}; - CV: ${res.headers.get("MS-CV")}` + CV: ${res.headers.get("MS-CV")}`, ); } }, }); console.log( - `Successfully deleted draft program brief with Id ${programBriefId} ${deleteResponse}` + `Successfully deleted draft program brief with Id ${programBriefId} ${deleteResponse}`, ); } diff --git a/sdk/communication/communication-short-codes/samples-dev/getAllProgramBriefs.ts b/sdk/communication/communication-short-codes/samples-dev/getAllProgramBriefs.ts index 6bd476c52a19..c0e7f03e50d5 100644 --- a/sdk/communication/communication-short-codes/samples-dev/getAllProgramBriefs.ts +++ b/sdk/communication/communication-short-codes/samples-dev/getAllProgramBriefs.ts @@ -32,7 +32,7 @@ export async function main() { `US Program briefs Listing failed. Status code: ${res.status}; Error: ${res.bodyAsText}; - CV: ${res.headers.get("MS-CV")}` + CV: ${res.headers.get("MS-CV")}`, ); } }, diff --git a/sdk/communication/communication-short-codes/samples-dev/getAllShortCodeCosts.ts b/sdk/communication/communication-short-codes/samples-dev/getAllShortCodeCosts.ts index 79305c5b1789..2ad3d61c387b 100644 --- a/sdk/communication/communication-short-codes/samples-dev/getAllShortCodeCosts.ts +++ b/sdk/communication/communication-short-codes/samples-dev/getAllShortCodeCosts.ts @@ -32,7 +32,7 @@ export async function main() { `Short Code Cots listing failed. Status code cost: ${res.status}; Error: ${res.bodyAsText}; - CV: ${res.headers.get("MS-CV")}` + CV: ${res.headers.get("MS-CV")}`, ); } }, diff --git a/sdk/communication/communication-short-codes/samples-dev/getAllShortCodes.ts b/sdk/communication/communication-short-codes/samples-dev/getAllShortCodes.ts index 95b6b7809755..55f0fc205210 100644 --- a/sdk/communication/communication-short-codes/samples-dev/getAllShortCodes.ts +++ b/sdk/communication/communication-short-codes/samples-dev/getAllShortCodes.ts @@ -32,7 +32,7 @@ export async function main() { `Short Codes listing failed. Status code: ${res.status}; Error: ${res.bodyAsText}; - CV: ${res.headers.get("MS-CV")}` + CV: ${res.headers.get("MS-CV")}`, ); } }, diff --git a/sdk/communication/communication-short-codes/src/shortCodesClient.ts b/sdk/communication/communication-short-codes/src/shortCodesClient.ts index 8ca6cff1239b..c60eff2745ee 100644 --- a/sdk/communication/communication-short-codes/src/shortCodesClient.ts +++ b/sdk/communication/communication-short-codes/src/shortCodesClient.ts @@ -52,19 +52,19 @@ export class ShortCodesClient { public constructor( endpoint: string, credential: KeyCredential, - options?: ShortCodesClientOptions + options?: ShortCodesClientOptions, ); public constructor( endpoint: string, credential: TokenCredential, - options?: ShortCodesClientOptions + options?: ShortCodesClientOptions, ); public constructor( connectionStringOrUrl: string, credentialOrOptions?: KeyCredential | TokenCredential | ShortCodesClientOptions, - maybeOptions: ShortCodesClientOptions = {} + maybeOptions: ShortCodesClientOptions = {}, ) { const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions); const options = isShortCodesClientOptions(credentialOrOptions) @@ -89,11 +89,11 @@ export class ShortCodesClient { } public listShortCodes( - options: ListShortCodesOptions = {} + options: ListShortCodesOptions = {}, ): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "ShortCodesClient-listShortCodes", - options + options, ); try { return this.client.shortCodes.listShortCodes(updatedOptions); @@ -109,11 +109,11 @@ export class ShortCodesClient { } public listShortCodeCosts( - options: ListShortCodeCostsOptions = {} + options: ListShortCodeCostsOptions = {}, ): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "ShortCodesClient-listShortCodeCosts", - options + options, ); try { return this.client.shortCodes.listCosts(updatedOptions); @@ -130,49 +130,49 @@ export class ShortCodesClient { public upsertUSProgramBrief( programBriefId: string, - options: ShortCodesUpsertUSProgramBriefOptionalParams = {} + options: ShortCodesUpsertUSProgramBriefOptionalParams = {}, ): Promise { return tracingClient.withSpan( "ShortCodesClient-upsertUSProgramBrief", options, (updatedOptions) => { return this.client.shortCodes.upsertUSProgramBrief(programBriefId, updatedOptions); - } + }, ); } public deleteUSProgramBrief( programBriefId: string, - options: DeleteUSProgramBriefOptions = {} + options: DeleteUSProgramBriefOptions = {}, ): Promise { return tracingClient.withSpan( "ShortCodesClient-deleteUSProgramBrief", options, (updatedOptions) => { return this.client.shortCodes.deleteUSProgramBrief(programBriefId, updatedOptions); - } + }, ); } public getUSProgramBrief( programBriefId: string, - options: GetUSProgramBriefOptions = {} + options: GetUSProgramBriefOptions = {}, ): Promise { return tracingClient.withSpan( "ShortCodesClient-getUSProgramBrief", options, (updatedOptions) => { return this.client.shortCodes.getUSProgramBrief(programBriefId, updatedOptions); - } + }, ); } public listUSProgramBriefs( - options: ListUSProgramBriefsOptions = {} + options: ListUSProgramBriefsOptions = {}, ): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "ShortCodesClient-listUSProgramBriefs", - options + options, ); try { return this.client.shortCodes.listUSProgramBriefs(updatedOptions); @@ -189,21 +189,21 @@ export class ShortCodesClient { public submitUSProgramBrief( programBriefId: string, - options: SubmitUSProgramBriefOptions = {} + options: SubmitUSProgramBriefOptions = {}, ): Promise { return tracingClient.withSpan( "ShortCodesClient-submitUSProgramBrief", options, (updatedOptions) => { return this.client.shortCodes.submitUSProgramBrief(programBriefId, updatedOptions); - } + }, ); } public getUSProgramBriefAttachment( programBriefId: string, attachmentId: string, - options: ShortCodesGetUSProgramBriefAttachmentOptionalParams = {} + options: ShortCodesGetUSProgramBriefAttachmentOptionalParams = {}, ): Promise { return tracingClient.withSpan( "ShortCodesClient-getUSProgramBriefAttachment", @@ -212,19 +212,19 @@ export class ShortCodesClient { return this.client.shortCodes.getUSProgramBriefAttachment( programBriefId, attachmentId, - updatedOptions + updatedOptions, ); - } + }, ); } public listUSProgramBriefAttachments( programBriefId: string, - options: ShortCodesGetUSProgramBriefAttachmentsOptionalParams = {} + options: ShortCodesGetUSProgramBriefAttachmentsOptionalParams = {}, ): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "ShortCodesClient-listUSProgramBriefAttachments", - options + options, ); try { return this.client.shortCodes.listUSProgramBriefAttachments(programBriefId, updatedOptions); @@ -242,7 +242,7 @@ export class ShortCodesClient { public deleteUSProgramBriefAttachment( programBriefId: string, attachmentId: string, - options: ShortCodesDeleteUSProgramBriefAttachmentOptionalParams = {} + options: ShortCodesDeleteUSProgramBriefAttachmentOptionalParams = {}, ): Promise { return tracingClient.withSpan( "ShortCodesClient-deleteUSProgramBriefAttachment", @@ -251,9 +251,9 @@ export class ShortCodesClient { return this.client.shortCodes.deleteUSProgramBriefAttachment( programBriefId, attachmentId, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -264,7 +264,7 @@ export class ShortCodesClient { fileType: FileType, fileContent: string, attachmentType: AttachmentType, - options: ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams = {} + options: ShortCodesCreateOrReplaceUSProgramBriefAttachmentOptionalParams = {}, ): Promise { return tracingClient.withSpan( "ShortCodesClient-createOrReplaceUSProgramBriefAttachment", @@ -278,9 +278,9 @@ export class ShortCodesClient { fileType, fileContent, attachmentType, - updatedOptions + updatedOptions, ); - } + }, ); } } diff --git a/sdk/communication/communication-short-codes/test/internal/generated_client.spec.ts b/sdk/communication/communication-short-codes/test/internal/generated_client.spec.ts index 57e64d33042b..92bf13d5c9a1 100644 --- a/sdk/communication/communication-short-codes/test/internal/generated_client.spec.ts +++ b/sdk/communication/communication-short-codes/test/internal/generated_client.spec.ts @@ -18,7 +18,7 @@ import { HttpClient, PipelineRequest, PipelineResponse } from "@azure/core-rest- export const createMockHttpClient = >( status: number = 200, - parsedBody?: T + parsedBody?: T, ): HttpClient => { return { async sendRequest(request: PipelineRequest): Promise { @@ -34,7 +34,7 @@ export const createMockHttpClient = >( export const userAgentPolicy: (policyName: string, customHeader: string) => PipelinePolicy = ( customHeader: string, - policyName: string + policyName: string, ) => { return { name: policyName, @@ -99,15 +99,15 @@ describe("ShortCodesGeneratedClient - constructor", function () { // verify bearer token policy exists, after explicitly adding it assert.isDefined( policies.find((p) => p.name === bearerTokenAuthenticationPolicyName), - "pipeline should have bearerTokenAuthenticationPolicyName" + "pipeline should have bearerTokenAuthenticationPolicyName", ); assert.isDefined( policies.find((p) => p.name === customHeaderPolicyName), - "pipeline should have customHeaderPolicyName" + "pipeline should have customHeaderPolicyName", ); assert.isDefined( policies.find((p) => p.name === "CustomApiVersionPolicy"), - "pipeline should have CustomApiVersionPolicy" + "pipeline should have CustomApiVersionPolicy", ); const spy = sinon.spy(mockHttpClient, "sendRequest"); @@ -135,15 +135,15 @@ describe("ShortCodesGeneratedClient - constructor", function () { // verify bearer token policy exists, after explicitly adding it assert.isDefined( policies.find((p) => p.name === bearerTokenAuthenticationPolicyName), - "pipeline should have bearerTokenAuthenticationPolicyName" + "pipeline should have bearerTokenAuthenticationPolicyName", ); assert.isDefined( policies.find((p) => p.name === customHeaderPolicyName), - "pipeline should have customHeaderPolicyName" + "pipeline should have customHeaderPolicyName", ); assert.isDefined( policies.find((p) => p.name === "CustomApiVersionPolicy"), - "pipeline should have CustomApiVersionPolicy" + "pipeline should have CustomApiVersionPolicy", ); const spy = sinon.spy(mockHttpClient, "sendRequest"); diff --git a/sdk/communication/communication-short-codes/test/internal/headers.spec.ts b/sdk/communication/communication-short-codes/test/internal/headers.spec.ts index ba0c8e78cfde..e84de8cae232 100644 --- a/sdk/communication/communication-short-codes/test/internal/headers.spec.ts +++ b/sdk/communication/communication-short-codes/test/internal/headers.spec.ts @@ -44,7 +44,7 @@ describe("ShortCodesClient - headers", function () { const userAgentHeader = isNode ? "user-agent" : "x-ms-useragent"; assert.match( request.headers.get(userAgentHeader) as string, - new RegExp(`azsdk-js-communication-short-codes/${SDK_VERSION}`, "g") + new RegExp(`azsdk-js-communication-short-codes/${SDK_VERSION}`, "g"), ); }); @@ -57,7 +57,7 @@ describe("ShortCodesClient - headers", function () { assert.isDefined(request.headers.get("authorization")); assert.match( request.headers.get("authorization") as string, - /HMAC-SHA256 SignedHeaders=.+&Signature=.+/ + /HMAC-SHA256 SignedHeaders=.+&Signature=.+/, ); }); @@ -74,7 +74,7 @@ describe("ShortCodesClient - headers", function () { assert.isDefined(request.headers.get("authorization")); assert.match( request.headers.get("authorization") as string, - /HMAC-SHA256 SignedHeaders=.+&Signature=.+/ + /HMAC-SHA256 SignedHeaders=.+&Signature=.+/, ); }); @@ -113,8 +113,8 @@ describe("ShortCodesClient - headers", function () { request.headers.get(userAgentHeader) as string, new RegExp( `shortcodesclient-headers-test azsdk-js-communication-short-codes/${SDK_VERSION}`, - "g" - ) + "g", + ), ); }); }); diff --git a/sdk/communication/communication-short-codes/test/public/manageProgramBriefAttachment.spec.ts b/sdk/communication/communication-short-codes/test/public/manageProgramBriefAttachment.spec.ts index 68ff1931ed3e..88e61bec91a5 100644 --- a/sdk/communication/communication-short-codes/test/public/manageProgramBriefAttachment.spec.ts +++ b/sdk/communication/communication-short-codes/test/public/manageProgramBriefAttachment.spec.ts @@ -45,7 +45,7 @@ describe(`ShortCodesClient - manage Attachments`, function () { // before test begins, make sure program brief does not exist, clean up if necessary if (await doesProgramBriefExist(client, uspb.id)) { console.warn( - "Program brief should not exist, it has not yet been created. Cleaning up program brief." + "Program brief should not exist, it has not yet been created. Cleaning up program brief.", ); await client.deleteUSProgramBrief(uspb.id); if (await doesProgramBriefExist(client, uspb.id)) { @@ -60,14 +60,14 @@ describe(`ShortCodesClient - manage Attachments`, function () { assert.isFalse( await doesProgramBriefContainAnyAttachment(client, uspb.id), - "Recently created Program Brief already contain attachments" + "Recently created Program Brief already contain attachments", ); }; const _listProgramBriefAttachments = async ( programBriefId: string, expectedAttachments: ProgramBriefAttachment[], - byPage?: boolean + byPage?: boolean, ): Promise => { // create map of expected ids const expectedAttachmentMap: Record< @@ -82,13 +82,13 @@ describe(`ShortCodesClient - manage Attachments`, function () { actualAttachments = await getProgramBriefAttachmentsWithIdByPage( client, programBriefId, - expectedAttachments.map((item) => item.id) + expectedAttachments.map((item) => item.id), ); } else { actualAttachments = await getProgramBriefAttachmentsWithId( client, programBriefId, - expectedAttachments.map((item) => item.id) + expectedAttachments.map((item) => item.id), ); } actualAttachments.forEach((attachment) => { @@ -108,13 +108,13 @@ describe(`ShortCodesClient - manage Attachments`, function () { : "Attachments not found while listUSProgramBriefAttachments"; assert.isTrue( attachmentsNotFound.length === 0, - `${notFoundErrorMsg} : ${attachmentsNotFound.join(",")}` + `${notFoundErrorMsg} : ${attachmentsNotFound.join(",")}`, ); }; const _testListAttachments = async ( programBriefId: string, - expectedAttachments: ProgramBriefAttachment[] + expectedAttachments: ProgramBriefAttachment[], ): Promise => { // list program briefs, validate test program brief is in the list const listAttachments = _listProgramBriefAttachments(programBriefId, expectedAttachments); @@ -122,11 +122,11 @@ describe(`ShortCodesClient - manage Attachments`, function () { const listAttachmentsByPage = _listProgramBriefAttachments( programBriefId, expectedAttachments, - true + true, ); assert.isOk( await Promise.all([listAttachments, listAttachmentsByPage]), - "Something went wrong while listing attachments" + "Something went wrong while listing attachments", ); return true; }; @@ -162,7 +162,7 @@ describe(`ShortCodesClient - manage Attachments`, function () { attachment.fileName, attachment.fileType, attachment.fileContentBase64, - attachment.type + attachment.type, ); assert.isOk(attachmentCreationResult); // fetch attachment @@ -175,7 +175,7 @@ describe(`ShortCodesClient - manage Attachments`, function () { }); assert.isOk( await Promise.all(testPBAttachments), - "There was an issue while creating and verifying attachments" + "There was an issue while creating and verifying attachments", ); // test list attachments @@ -191,7 +191,7 @@ describe(`ShortCodesClient - manage Attachments`, function () { assert.isFalse( await doesProgramBriefContainAnyAttachment(client, uspb.id), - "Failed to delete Program Brief Attachments" + "Failed to delete Program Brief Attachments", ); // delete program brief, ensure it was removed @@ -199,7 +199,7 @@ describe(`ShortCodesClient - manage Attachments`, function () { assert.isOk(delRes, "Deleting program brief failed"); assert.isFalse( await doesProgramBriefExist(client, uspb.id), - "Delete program brief was unsuccessful, program brief is still returned" + "Delete program brief was unsuccessful, program brief is still returned", ); }); }).timeout(80000); diff --git a/sdk/communication/communication-short-codes/test/public/manageUSProgramBriefs.spec.ts b/sdk/communication/communication-short-codes/test/public/manageUSProgramBriefs.spec.ts index 833f398684cd..17b3e32fe664 100644 --- a/sdk/communication/communication-short-codes/test/public/manageUSProgramBriefs.spec.ts +++ b/sdk/communication/communication-short-codes/test/public/manageUSProgramBriefs.spec.ts @@ -39,7 +39,7 @@ describe(`ShortCodesClient - creates, gets, updates, lists, and deletes US Progr // before test begins, make sure program brief does not exist, clean up if necessary if (await doesProgramBriefExist(client, uspb.id)) { console.warn( - "Program brief should not exist, it has not yet been created. Cleaning up program brief." + "Program brief should not exist, it has not yet been created. Cleaning up program brief.", ); await client.deleteUSProgramBrief(uspb.id); if (await doesProgramBriefExist(client, uspb.id)) { @@ -124,7 +124,7 @@ describe(`ShortCodesClient - creates, gets, updates, lists, and deletes US Progr assert.isOk(delRes, "Deleting program brief failed"); assert.isFalse( await doesProgramBriefExist(client, pb.id), - "Delete program brief was unsuccessful, program brief is still returned" + "Delete program brief was unsuccessful, program brief is still returned", ); return true; }); diff --git a/sdk/communication/communication-short-codes/test/public/utils/mockHttpClients.ts b/sdk/communication/communication-short-codes/test/public/utils/mockHttpClients.ts index e0ea06d3df66..52c657dbfcb4 100644 --- a/sdk/communication/communication-short-codes/test/public/utils/mockHttpClients.ts +++ b/sdk/communication/communication-short-codes/test/public/utils/mockHttpClients.ts @@ -5,7 +5,7 @@ import { HttpClient, PipelineRequest, PipelineResponse } from "@azure/core-rest- export const createMockHttpClient = >( status: number = 200, - parsedBody?: T + parsedBody?: T, ): HttpClient => { return { async sendRequest(request: PipelineRequest): Promise { diff --git a/sdk/communication/communication-short-codes/test/public/utils/recordedClient.ts b/sdk/communication/communication-short-codes/test/public/utils/recordedClient.ts index 509229f346ae..caeb73eb431c 100644 --- a/sdk/communication/communication-short-codes/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-short-codes/test/public/utils/recordedClient.ts @@ -50,7 +50,7 @@ export const recorderOptions: RecorderStartOptions = { }; export async function createRecordedClient( - context: Context + context: Context, ): Promise> { const recorder = new Recorder(context.currentTest); await recorder.start(recorderOptions); @@ -72,7 +72,7 @@ export async function createRecordedClient( position: "perCall", }, ], - }) + }), ), recorder, }; @@ -89,14 +89,14 @@ export function createMockToken(): { } export async function createRecordedClientWithToken( - context: Context + context: Context, ): Promise | undefined> { const recorder = new Recorder(context.currentTest); await recorder.start(recorderOptions); let credential: TokenCredential; const endpoint = parseConnectionString( - assertEnvironmentVariable("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING") + assertEnvironmentVariable("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING"), ).endpoint; if (isPlaybackMode()) { @@ -114,7 +114,7 @@ export async function createRecordedClientWithToken( position: "perCall", }, ], - }) + }), ), recorder, }; @@ -126,7 +126,7 @@ export async function createRecordedClientWithToken( credential = new ClientSecretCredential( assertEnvironmentVariable("AZURE_TENANT_ID"), assertEnvironmentVariable("AZURE_CLIENT_ID"), - assertEnvironmentVariable("AZURE_CLIENT_SECRET") + assertEnvironmentVariable("AZURE_CLIENT_SECRET"), ); } @@ -142,7 +142,7 @@ export async function createRecordedClientWithToken( position: "perCall", }, ], - }) + }), ), recorder, }; diff --git a/sdk/communication/communication-short-codes/test/public/utils/testProgramBriefAttachment.ts b/sdk/communication/communication-short-codes/test/public/utils/testProgramBriefAttachment.ts index dcd22673ad6c..db8910f6b909 100644 --- a/sdk/communication/communication-short-codes/test/public/utils/testProgramBriefAttachment.ts +++ b/sdk/communication/communication-short-codes/test/public/utils/testProgramBriefAttachment.ts @@ -21,7 +21,7 @@ export function getTestProgramBriefAttachment(): ProgramBriefAttachment { export async function doesProgramBriefContainAnyAttachment( client: ShortCodesClient, - programBriefId: string + programBriefId: string, ): Promise { const attachments = await getProgramBriefAttachments(client, programBriefId, (_) => true); return attachments.length > 0; @@ -30,23 +30,23 @@ export async function doesProgramBriefContainAnyAttachment( export async function getProgramBriefAttachmentsWithId( client: ShortCodesClient, programBriefId: string, - attachmentIds: string[] + attachmentIds: string[], ): Promise { return getProgramBriefAttachments(client, programBriefId, (attachment) => - attachmentIds.includes(attachment.id) + attachmentIds.includes(attachment.id), ); } export async function getProgramBriefAttachmentsWithIdByPage( client: ShortCodesClient, programBriefId: string, - attachmentIds: string[] + attachmentIds: string[], ): Promise { return getProgramBriefAttachments( client, programBriefId, (attachment) => attachmentIds.includes(attachment.id), - true + true, ); } @@ -54,7 +54,7 @@ async function getProgramBriefAttachments( client: ShortCodesClient, programBriefId: string, predicate: (attachment: ProgramBriefAttachment) => boolean, - byPage?: boolean + byPage?: boolean, ): Promise { const attachments: ProgramBriefAttachment[] = []; if (byPage) { diff --git a/sdk/communication/communication-short-codes/test/public/utils/testUSProgramBrief.ts b/sdk/communication/communication-short-codes/test/public/utils/testUSProgramBrief.ts index 71cc010b5693..f10dda7449ea 100644 --- a/sdk/communication/communication-short-codes/test/public/utils/testUSProgramBrief.ts +++ b/sdk/communication/communication-short-codes/test/public/utils/testUSProgramBrief.ts @@ -94,7 +94,7 @@ export function getTestUSProgramBrief(): USProgramBrief { export function assertEditableFieldsAreEqual( expected: USProgramBrief, actual: USProgramBrief, - messageContext: string + messageContext: string, ): void { assert.equal(expected.id, actual.id, `Program brief Id is incorrect - ${messageContext}`); @@ -119,8 +119,8 @@ function assertDeepEqualKnownFields( comparisons: [ propertyToCompareExtractor: (object: any) => any, mapper: CompositeMapper, - errorMessage: string - ][] + errorMessage: string, + ][], ): void { for (const comparison of comparisons) { assertDeepEqualKnownFieldsInternal( @@ -129,7 +129,7 @@ function assertDeepEqualKnownFields( comparison[1], comparison[0], comparison[2], - messageContext + messageContext, ); } } @@ -140,7 +140,7 @@ function assertDeepEqualKnownFieldsInternal( mapper: CompositeMapper, propertyToCompareExtractor: (object: any) => any, errorMessage: string, - messageContext: string + messageContext: string, ): void { const mappedActual = mapKnownFields(propertyToCompareExtractor(actual), mapper); const mappedExpected = mapKnownFields(propertyToCompareExtractor(expected), mapper); @@ -161,7 +161,7 @@ function mapKnownFields(object: any, mapper: TM export async function doesProgramBriefExist( client: ShortCodesClient, - id: string + id: string, ): Promise { try { const programBrief = await client.getUSProgramBrief(id); @@ -182,7 +182,7 @@ export async function doesProgramBriefExist( export async function runTestCleaningLeftovers( testProgramBriefIds: string[], client: ShortCodesClient, - testLogic: () => Promise + testLogic: () => Promise, ): Promise { try { await tryDeleteLeftOversFromPreviousTests(client); @@ -240,7 +240,7 @@ function getDateDifferenceInDays(date: Date): number { now.getHours(), now.getMinutes(), now.getSeconds(), - now.getMilliseconds() + now.getMilliseconds(), ); const utcOther = Date.UTC( date.getFullYear(), @@ -249,7 +249,7 @@ function getDateDifferenceInDays(date: Date): number { date.getHours(), date.getMinutes(), date.getSeconds(), - date.getMilliseconds() + date.getMilliseconds(), ); return (utcThis - utcOther) / 86400000; diff --git a/sdk/communication/communication-sms/package.json b/sdk/communication/communication-sms/package.json index c6353fdee6b3..247f732d2d00 100644 --- a/sdk/communication/communication-sms/package.json +++ b/sdk/communication/communication-sms/package.json @@ -17,11 +17,11 @@ "build:samples": "dev-tool samples publish --force", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md && rushx format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -102,7 +102,6 @@ "karma": "^6.2.0", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "typescript": "~5.2.0", diff --git a/sdk/communication/communication-sms/samples-dev/usingAadAuth.ts b/sdk/communication/communication-sms/samples-dev/usingAadAuth.ts index b8f263eede6d..eb881d16992f 100644 --- a/sdk/communication/communication-sms/samples-dev/usingAadAuth.ts +++ b/sdk/communication/communication-sms/samples-dev/usingAadAuth.ts @@ -29,7 +29,7 @@ export async function main() { !process.env.AZURE_CLIENT_SECRET ) { console.error( - "Azure AD authentication information not provided, but it is required to run this sample. Exiting." + "Azure AD authentication information not provided, but it is required to run this sample. Exiting.", ); return; } @@ -40,7 +40,7 @@ export async function main() { : new ClientSecretCredential( process.env.AZURE_TENANT_ID, process.env.AZURE_CLIENT_ID, - process.env.AZURE_CLIENT_SECRET + process.env.AZURE_CLIENT_SECRET, ); // create new client with endpoint and credentials diff --git a/sdk/communication/communication-sms/src/extractOperationOptions.ts b/sdk/communication/communication-sms/src/extractOperationOptions.ts index 38ec3c9e519c..54762035c172 100644 --- a/sdk/communication/communication-sms/src/extractOperationOptions.ts +++ b/sdk/communication/communication-sms/src/extractOperationOptions.ts @@ -4,7 +4,7 @@ import { OperationOptions } from "@azure/core-client"; export const extractOperationOptions = ( - obj: T + obj: T, ): { operationOptions: OperationOptions; restOptions: Pick>; diff --git a/sdk/communication/communication-sms/src/smsClient.ts b/sdk/communication/communication-sms/src/smsClient.ts index 277576576c3e..ea96727cf115 100644 --- a/sdk/communication/communication-sms/src/smsClient.ts +++ b/sdk/communication/communication-sms/src/smsClient.ts @@ -121,7 +121,7 @@ export class SmsClient { constructor( connectionStringOrUrl: string, credentialOrOptions?: KeyCredential | TokenCredential | SmsClientOptions, - maybeOptions: SmsClientOptions = {} + maybeOptions: SmsClientOptions = {}, ) { const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions); const options = isSmsClientOptions(credentialOrOptions) ? credentialOrOptions : maybeOptions; @@ -148,13 +148,13 @@ export class SmsClient { */ public async send( sendRequest: SmsSendRequest, - options: SmsSendOptions = { enableDeliveryReport: false } + options: SmsSendOptions = { enableDeliveryReport: false }, ): Promise { const { operationOptions, restOptions } = extractOperationOptions(options); return tracingClient.withSpan("SmsClient-Send", operationOptions, async (updatedOptions) => { const response = await this.api.sms.send( generateSendMessageRequest(sendRequest, restOptions), - updatedOptions + updatedOptions, ); return response.value; }); diff --git a/sdk/communication/communication-sms/src/utils/smsUtils.ts b/sdk/communication/communication-sms/src/utils/smsUtils.ts index 87f9d58aba7f..6e9ccd82d39e 100644 --- a/sdk/communication/communication-sms/src/utils/smsUtils.ts +++ b/sdk/communication/communication-sms/src/utils/smsUtils.ts @@ -8,7 +8,7 @@ import { SmsSendOptions as InternalOptions } from "../generated/src/models"; export function generateSendMessageRequest( smsRequest: SmsSendRequest, - options: SmsSendOptions = {} + options: SmsSendOptions = {}, ): SendMessageRequest { const _smsSendOptions: InternalOptions = { enableDeliveryReport: options.enableDeliveryReport ?? false, diff --git a/sdk/communication/communication-sms/test/public/smsClient.mocked.spec.ts b/sdk/communication/communication-sms/test/public/smsClient.mocked.spec.ts index 57bc16bcc113..a34faa4b8e70 100644 --- a/sdk/communication/communication-sms/test/public/smsClient.mocked.spec.ts +++ b/sdk/communication/communication-sms/test/public/smsClient.mocked.spec.ts @@ -66,7 +66,7 @@ describe("[mocked] SmsClient", async function () { assert.isDefined(request.headers.get("authorization")); assert.match( request.headers.get("authorization") as string, - /HMAC-SHA256 SignedHeaders=.+&Signature=.+/ + /HMAC-SHA256 SignedHeaders=.+&Signature=.+/, ); }); diff --git a/sdk/communication/communication-sms/test/public/suites/smsClient.send.ts b/sdk/communication/communication-sms/test/public/suites/smsClient.send.ts index 30c7b78ceecb..5772041a853b 100644 --- a/sdk/communication/communication-sms/test/public/suites/smsClient.send.ts +++ b/sdk/communication/communication-sms/test/public/suites/smsClient.send.ts @@ -33,7 +33,7 @@ export default function testCases(): void { { enableDeliveryReport: true, tag: "SMS_LIVE_TEST", - } + }, ); assert.lengthOf(results, 1, "must return as many results as there were recipients"); @@ -77,7 +77,7 @@ export default function testCases(): void { assert.lengthOf( results, recipients.length, - "must return as many results as there were recipients" + "must return as many results as there were recipients", ); assertIsSuccessResult(results[0], validToNumber); @@ -97,7 +97,7 @@ export default function testCases(): void { { enableDeliveryReport: true, tag: "SMS_LIVE_TEST", - } + }, ); assert.fail("Should have thrown an error"); } catch (e: any) { @@ -118,7 +118,7 @@ export default function testCases(): void { { enableDeliveryReport: true, tag: "SMS_LIVE_TEST", - } + }, ); assert.fail("Should have thrown an error"); } catch (e: any) { diff --git a/sdk/communication/communication-sms/test/public/utils/assertHelpers.ts b/sdk/communication/communication-sms/test/public/utils/assertHelpers.ts index 301a9254dbef..c815fa658a10 100644 --- a/sdk/communication/communication-sms/test/public/utils/assertHelpers.ts +++ b/sdk/communication/communication-sms/test/public/utils/assertHelpers.ts @@ -6,7 +6,7 @@ import { SmsSendResult } from "../../../src"; export const assertIsSuccessResult = ( actualSmsResult: SmsSendResult, - expectedRecipient: string + expectedRecipient: string, ): void => { assert.equal(actualSmsResult.httpStatusCode, 202); assert.equal(actualSmsResult.to, expectedRecipient); @@ -19,7 +19,7 @@ export const assertIsSuccessResult = ( export const assertIsFailureResult = ( actualSmsResult: SmsSendResult, expectedRecipient: string, - expectedErrorMessage: string + expectedErrorMessage: string, ): void => { assert.equal(actualSmsResult.httpStatusCode, 400); assert.equal(actualSmsResult.to, expectedRecipient); diff --git a/sdk/communication/communication-sms/test/public/utils/recordedClient.ts b/sdk/communication/communication-sms/test/public/utils/recordedClient.ts index 7b4771f93a50..e1c16d01f84a 100644 --- a/sdk/communication/communication-sms/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-sms/test/public/utils/recordedClient.ts @@ -70,13 +70,13 @@ export async function createRecorder(context: Test | undefined): Promise> { const recorder = await createRecorder(context.currentTest); const client = new SmsClient( env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING ?? "", - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); return { client, @@ -85,13 +85,13 @@ export async function createRecordedSmsClient( } export async function createRecordedSmsClientWithToken( - context: Context + context: Context, ): Promise> { const recorder = await createRecorder(context.currentTest); let credential: TokenCredential; const endpoint = parseConnectionString( - env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING ?? "" + env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING ?? "", ).endpoint; if (isPlaybackMode()) { diff --git a/sdk/communication/communication-tiering/package.json b/sdk/communication/communication-tiering/package.json index 96c38588290a..c50208821ed1 100644 --- a/sdk/communication/communication-tiering/package.json +++ b/sdk/communication/communication-tiering/package.json @@ -15,11 +15,11 @@ "build:node": "tsc -p . && dev-tool run bundle", "build:samples": "dev-tool samples publish --force", "build:test": "tsc -p . && dev-tool run bundle", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 300000 'dist-esm/test/public/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -100,7 +100,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "typescript": "~5.2.0", diff --git a/sdk/communication/communication-tiering/src/tieringClient.ts b/sdk/communication/communication-tiering/src/tieringClient.ts index 6aceeca7f7bb..897a8b82f7ff 100644 --- a/sdk/communication/communication-tiering/src/tieringClient.ts +++ b/sdk/communication/communication-tiering/src/tieringClient.ts @@ -62,7 +62,7 @@ export class TieringClient { public constructor( connectionStringOrUrl: string, credentialOrOptions?: KeyCredential | TokenCredential | TieringClientOptions, - maybeOptions: TieringClientOptions = {} + maybeOptions: TieringClientOptions = {}, ) { const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions); const options = isTieringClientOptions(credentialOrOptions) @@ -90,14 +90,14 @@ export class TieringClient { */ public getAcquiredNumberLimits( resourceId: string, - options: NumberAllotmentGetAcquiredNumberLimitsOptionalParams = {} + options: NumberAllotmentGetAcquiredNumberLimitsOptionalParams = {}, ): Promise { return tracingClient.withSpan( "numberAllotment.getAcquiredNumberLimits", options, (updatedOptions) => { return this.client.numberAllotment.getAcquiredNumberLimits(resourceId, updatedOptions); - } + }, ); } @@ -108,7 +108,7 @@ export class TieringClient { */ public getTierByResourceId( resourceId: string, - options: TieringGetByResourceIdOptionalParams = {} + options: TieringGetByResourceIdOptionalParams = {}, ): Promise { return tracingClient.withSpan("tiering.getTierByResourceId", options, (updatedOptions) => { return this.client.tiering.getByResourceId(resourceId, updatedOptions); diff --git a/sdk/communication/communication-tiering/test/public/utils/recordedClient.ts b/sdk/communication/communication-tiering/test/public/utils/recordedClient.ts index c5438f1d39d0..675854c2b353 100644 --- a/sdk/communication/communication-tiering/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-tiering/test/public/utils/recordedClient.ts @@ -52,7 +52,7 @@ export const recorderOptions: RecorderStartOptions = { }; export async function createRecordedClient( - context: Context + context: Context, ): Promise> { const recorder = new Recorder(context.currentTest); await recorder.start(recorderOptions); @@ -67,7 +67,7 @@ export async function createRecordedClient( return { client: new TieringClient( assertEnvironmentVariable("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING"), - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ), recorder, }; @@ -84,14 +84,14 @@ export function createMockToken(): { } export async function createRecordedClientWithToken( - context: Context + context: Context, ): Promise | undefined> { const recorder = new Recorder(context.currentTest); await recorder.start(recorderOptions); let credential: TokenCredential; const endpoint = parseConnectionString( - assertEnvironmentVariable("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING") + assertEnvironmentVariable("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING"), ).endpoint; if (isPlaybackMode()) { @@ -110,7 +110,7 @@ export async function createRecordedClientWithToken( credential = new ClientSecretCredential( assertEnvironmentVariable("AZURE_TENANT_ID"), assertEnvironmentVariable("AZURE_CLIENT_ID"), - assertEnvironmentVariable("AZURE_CLIENT_SECRET") + assertEnvironmentVariable("AZURE_CLIENT_SECRET"), ); } diff --git a/sdk/communication/communication-toll-free-verification/package.json b/sdk/communication/communication-toll-free-verification/package.json index d1eb8b7b21c0..d3c20312fdc1 100644 --- a/sdk/communication/communication-toll-free-verification/package.json +++ b/sdk/communication/communication-toll-free-verification/package.json @@ -15,11 +15,11 @@ "build:node": "tsc -p . && dev-tool run bundle", "build:samples": "dev-tool samples publish --force", "build:test": "tsc -p . && dev-tool run bundle", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 300000 'dist-esm/test/public/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -98,7 +98,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "typescript": "~5.2.0", diff --git a/sdk/communication/communication-toll-free-verification/src/tollFreeVerificationClient.ts b/sdk/communication/communication-toll-free-verification/src/tollFreeVerificationClient.ts index 27074f36aa26..acfaec93ed05 100644 --- a/sdk/communication/communication-toll-free-verification/src/tollFreeVerificationClient.ts +++ b/sdk/communication/communication-toll-free-verification/src/tollFreeVerificationClient.ts @@ -34,7 +34,7 @@ import { tracingClient } from "./generated/src/tracing"; export interface TollFreeVerificationClientOptions extends CommonClientOptions {} const isTollFreeVerificationClientOptions = ( - options: any + options: any, ): options is TollFreeVerificationClientOptions => options && !isKeyCredential(options) && !isTokenCredential(options); @@ -49,19 +49,19 @@ export class TollFreeVerificationClient { public constructor( endpoint: string, credential: KeyCredential, - options?: TollFreeVerificationClientOptions + options?: TollFreeVerificationClientOptions, ); public constructor( endpoint: string, credential: TokenCredential, - options?: TollFreeVerificationClientOptions + options?: TollFreeVerificationClientOptions, ); public constructor( connectionStringOrUrl: string, credentialOrOptions?: KeyCredential | TokenCredential | TollFreeVerificationClientOptions, - maybeOptions: TollFreeVerificationClientOptions = {} + maybeOptions: TollFreeVerificationClientOptions = {}, ) { const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions); const options = isTollFreeVerificationClientOptions(credentialOrOptions) @@ -85,7 +85,7 @@ export class TollFreeVerificationClient { public getCampaignBrief( campaignBriefId: string, countryCode: string, - options: TollFreeVerificationGetCampaignBriefOptionalParams = {} + options: TollFreeVerificationGetCampaignBriefOptionalParams = {}, ): Promise { return tracingClient.withSpan( "TollFreeVerificationClient-getCampaignBrief", @@ -94,18 +94,18 @@ export class TollFreeVerificationClient { return this.client.tollFreeVerification.getCampaignBrief( countryCode, campaignBriefId, - updatedOptions + updatedOptions, ); - } + }, ); } public listCampaignBriefs( - options: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams = {} + options: TollFreeVerificationGetAllCampaignBriefSummariesOptionalParams = {}, ): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "TollFreeVerificationClient-listCampaignBriefs", - options + options, ); try { return this.client.tollFreeVerification.listAllCampaignBriefSummaries(updatedOptions); @@ -123,7 +123,7 @@ export class TollFreeVerificationClient { public upsertCampaignBrief( campaignBriefId: string, countryCode: string, - options: TollFreeVerificationUpsertCampaignBriefOptionalParams = {} + options: TollFreeVerificationUpsertCampaignBriefOptionalParams = {}, ): Promise { return tracingClient.withSpan( "TollFreeVerificationClient-upsertCampaignBrief", @@ -132,16 +132,16 @@ export class TollFreeVerificationClient { return this.client.tollFreeVerification.upsertCampaignBrief( countryCode, campaignBriefId, - updatedOptions + updatedOptions, ); - } + }, ); } public deleteCampaignBrief( campaignBriefId: string, countryCode: string, - options: TollFreeVerificationDeleteCampaignBriefOptionalParams = {} + options: TollFreeVerificationDeleteCampaignBriefOptionalParams = {}, ): Promise { return tracingClient.withSpan( "TollFreeVerificationClient-deleteCampaignBrief", @@ -150,16 +150,16 @@ export class TollFreeVerificationClient { return this.client.tollFreeVerification.deleteCampaignBrief( countryCode, campaignBriefId, - updatedOptions + updatedOptions, ); - } + }, ); } public submitCampaignBrief( campaignBriefId: string, countryCode: string, - options: TollFreeVerificationSubmitCampaignBriefOptionalParams = {} + options: TollFreeVerificationSubmitCampaignBriefOptionalParams = {}, ): Promise { return tracingClient.withSpan( "TollFreeVerificationClient-upsertCampaignBrief", @@ -168,9 +168,9 @@ export class TollFreeVerificationClient { return this.client.tollFreeVerification.submitCampaignBrief( countryCode, campaignBriefId, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -182,7 +182,7 @@ export class TollFreeVerificationClient { fileName: string, fileType: FileType, fileContentBase64: string, - options: TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentOptionalParams = {} + options: TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentOptionalParams = {}, ): Promise { return tracingClient.withSpan( "TollFreeVerificationClient-upsertCampaignBriefAttachment", @@ -190,7 +190,7 @@ export class TollFreeVerificationClient { async ( updatedOptions: | TollFreeVerificationCreateOrReplaceCampaignBriefAttachmentOptionalParams - | undefined + | undefined, ) => { return this.client.tollFreeVerification.createOrReplaceCampaignBriefAttachment( countryCode, @@ -201,9 +201,9 @@ export class TollFreeVerificationClient { fileName, fileType, fileContentBase64, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -211,38 +211,38 @@ export class TollFreeVerificationClient { campaignBriefId: string, attachmentId: string, countryCode: string, - options: TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams = {} + options: TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams = {}, ): Promise { return tracingClient.withSpan( "TollFreeVerificationClient-deleteCampaignBriefAttachment", options, async ( - updatedOptions: TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams | undefined + updatedOptions: TollFreeVerificationDeleteCampaignBriefAttachmentOptionalParams | undefined, ) => { return this.client.tollFreeVerification.deleteCampaignBriefAttachment( countryCode, campaignBriefId, attachmentId, - updatedOptions + updatedOptions, ); - } + }, ); } public listCampaignBriefAttachments( countryCode: string, campaignBriefId: string, - options: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams = {} + options: TollFreeVerificationGetCampaignBriefAttachmentsOptionalParams = {}, ): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "TollFreeVerificationClient-listCampaignBriefAttachments", - options + options, ); try { return this.client.tollFreeVerification.listCampaignBriefAttachments( countryCode, campaignBriefId, - updatedOptions + updatedOptions, ); } catch (e: any) { span.setStatus({ @@ -259,21 +259,21 @@ export class TollFreeVerificationClient { countryCode: string, campaignBriefId: string, attachmentId: string, - options: TollFreeVerificationGetCampaignBriefAttachmentOptionalParams = {} + options: TollFreeVerificationGetCampaignBriefAttachmentOptionalParams = {}, ): Promise { return tracingClient.withSpan( "TollFreeVerificationClient-getCampaignBriefAttachment", options, async ( - updatedOptions: TollFreeVerificationGetCampaignBriefAttachmentOptionalParams | undefined + updatedOptions: TollFreeVerificationGetCampaignBriefAttachmentOptionalParams | undefined, ) => { return this.client.tollFreeVerification.getCampaignBriefAttachment( countryCode, campaignBriefId, attachmentId, - updatedOptions + updatedOptions, ); - } + }, ); } } diff --git a/sdk/communication/communication-toll-free-verification/test/internal/headers.spec.ts b/sdk/communication/communication-toll-free-verification/test/internal/headers.spec.ts index f0cc03ebcba5..2c2753a01d1f 100644 --- a/sdk/communication/communication-toll-free-verification/test/internal/headers.spec.ts +++ b/sdk/communication/communication-toll-free-verification/test/internal/headers.spec.ts @@ -45,7 +45,7 @@ describe("TollFreeVerificationClient - headers", function () { const userAgentHeader = isNode ? "user-agent" : "x-ms-useragent"; assert.match( request.headers.get(userAgentHeader) as string, - new RegExp(`azsdk-js-communication-toll-free-verification/${SDK_VERSION}`, "g") + new RegExp(`azsdk-js-communication-toll-free-verification/${SDK_VERSION}`, "g"), ); }); @@ -58,7 +58,7 @@ describe("TollFreeVerificationClient - headers", function () { assert.isDefined(request.headers.get("authorization")); assert.match( request.headers.get("authorization") as string, - /HMAC-SHA256 SignedHeaders=.+&Signature=.+/ + /HMAC-SHA256 SignedHeaders=.+&Signature=.+/, ); }); @@ -75,7 +75,7 @@ describe("TollFreeVerificationClient - headers", function () { assert.isDefined(request.headers.get("authorization")); assert.match( request.headers.get("authorization") as string, - /HMAC-SHA256 SignedHeaders=.+&Signature=.+/ + /HMAC-SHA256 SignedHeaders=.+&Signature=.+/, ); }); @@ -114,8 +114,8 @@ describe("TollFreeVerificationClient - headers", function () { request.headers.get(userAgentHeader) as string, new RegExp( `tollfreeverificationclient-headers-test azsdk-js-communication-toll-free-verification/${SDK_VERSION}`, - "g" - ) + "g", + ), ); }); }); diff --git a/sdk/communication/communication-toll-free-verification/test/public/manageUSCampaignBriefs.spec.ts b/sdk/communication/communication-toll-free-verification/test/public/manageUSCampaignBriefs.spec.ts index caf0e935bf08..863fbca8fde7 100644 --- a/sdk/communication/communication-toll-free-verification/test/public/manageUSCampaignBriefs.spec.ts +++ b/sdk/communication/communication-toll-free-verification/test/public/manageUSCampaignBriefs.spec.ts @@ -47,7 +47,7 @@ describe(`TollFreeVerificationClient - Campaign Brief`, function () { // before test begins, make sure campaign brief does not exist, clean up if necessary if (await doesCampaignBriefExist(client, uscb.id)) { console.warn( - "Campaign brief should not exist, it has not yet been created. Cleaning up campaign brief." + "Campaign brief should not exist, it has not yet been created. Cleaning up campaign brief.", ); await client.deleteCampaignBrief(uscb.id, "US"); if (await doesCampaignBriefExist(client, uscb.id)) { @@ -83,7 +83,7 @@ describe(`TollFreeVerificationClient - Campaign Brief`, function () { } assert.isTrue( foundTestCampaignBrief, - "Test campaign brief was not returned in list of all campaign briefs" + "Test campaign brief was not returned in list of all campaign briefs", ); // delete campaign brief, ensure it was removed @@ -91,7 +91,7 @@ describe(`TollFreeVerificationClient - Campaign Brief`, function () { assert.isOk(delRes, "Deleting campaign brief failed"); assert.isFalse( await doesCampaignBriefExist(client, uscb.id), - "Delete campaign brief was unsuccessful, campaign brief is still returned" + "Delete campaign brief was unsuccessful, campaign brief is still returned", ); }).timeout(35000); }); diff --git a/sdk/communication/communication-toll-free-verification/test/public/utils/mockHttpClients.ts b/sdk/communication/communication-toll-free-verification/test/public/utils/mockHttpClients.ts index 9b63d06ad924..79fa0e900d3f 100644 --- a/sdk/communication/communication-toll-free-verification/test/public/utils/mockHttpClients.ts +++ b/sdk/communication/communication-toll-free-verification/test/public/utils/mockHttpClients.ts @@ -5,7 +5,7 @@ import { HttpClient, PipelineRequest, PipelineResponse } from "@azure/core-rest- export const createMockHttpClient = >( status: number = 200, - parsedBody?: T + parsedBody?: T, ): HttpClient => { return { async sendRequest(request: PipelineRequest): Promise { diff --git a/sdk/communication/communication-toll-free-verification/test/public/utils/recordedClient.ts b/sdk/communication/communication-toll-free-verification/test/public/utils/recordedClient.ts index 5218e25b8780..454bcd18b43b 100644 --- a/sdk/communication/communication-toll-free-verification/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-toll-free-verification/test/public/utils/recordedClient.ts @@ -51,7 +51,7 @@ export const recorderOptions: RecorderStartOptions = { }; export async function createRecordedClient( - context: Context + context: Context, ): Promise> { const recorder = new Recorder(context.currentTest); await recorder.start(recorderOptions); @@ -66,7 +66,7 @@ export async function createRecordedClient( return { client: new TollFreeVerificationClient( assertEnvironmentVariable("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING"), - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ), recorder, }; @@ -83,14 +83,14 @@ export function createMockToken(): { } export async function createRecordedClientWithToken( - context: Context + context: Context, ): Promise | undefined> { const recorder = new Recorder(context.currentTest); await recorder.start(recorderOptions); let credential: TokenCredential; const endpoint = parseConnectionString( - assertEnvironmentVariable("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING") + assertEnvironmentVariable("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING"), ).endpoint; if (isPlaybackMode()) { @@ -101,7 +101,7 @@ export async function createRecordedClientWithToken( client: new TollFreeVerificationClient( endpoint, credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ), recorder, }; @@ -113,7 +113,7 @@ export async function createRecordedClientWithToken( credential = new ClientSecretCredential( assertEnvironmentVariable("AZURE_TENANT_ID"), assertEnvironmentVariable("AZURE_CLIENT_ID"), - assertEnvironmentVariable("AZURE_CLIENT_SECRET") + assertEnvironmentVariable("AZURE_CLIENT_SECRET"), ); } @@ -122,7 +122,7 @@ export async function createRecordedClientWithToken( client: new TollFreeVerificationClient( endpoint, credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ), recorder, }; diff --git a/sdk/communication/communication-toll-free-verification/test/public/utils/testUSCampaignBrief.ts b/sdk/communication/communication-toll-free-verification/test/public/utils/testUSCampaignBrief.ts index e6df0ac9b71e..58186308a6b4 100644 --- a/sdk/communication/communication-toll-free-verification/test/public/utils/testUSCampaignBrief.ts +++ b/sdk/communication/communication-toll-free-verification/test/public/utils/testUSCampaignBrief.ts @@ -75,7 +75,7 @@ export function getTestUSCampaignBrief(): { export function assertEditableFieldsAreEqual( expected: CampaignBrief, actual: CampaignBrief, - messageContext: string + messageContext: string, ): void { assert.equal(expected.id, actual.id, `Campaign brief Id is incorrect - ${messageContext}`); @@ -92,7 +92,7 @@ export function assertEditableFieldsAreEqual( export function assertCampaignBriefSummaryEditableFieldsAreEqual( expected: CampaignBriefSummary, actual: CampaignBriefSummary, - messageContext: string + messageContext: string, ): void { assert.equal(expected.id, actual.id, `Campaign brief Id is incorrect - ${messageContext}`); @@ -112,8 +112,8 @@ function assertDeepEqualKnownFields( comparisons: [ propertyToCompareExtractor: (object: any) => any, mapper: CompositeMapper, - errorMessage: string - ][] + errorMessage: string, + ][], ): void { for (const comparison of comparisons) { assertDeepEqualKnownFieldsInternal( @@ -122,7 +122,7 @@ function assertDeepEqualKnownFields( comparison[1], comparison[0], comparison[2], - messageContext + messageContext, ); } } @@ -133,7 +133,7 @@ function assertDeepEqualKnownFieldsInternal( mapper: CompositeMapper, propertyToCompareExtractor: (object: any) => any, errorMessage: string, - messageContext: string + messageContext: string, ): void { const mappedActual = mapKnownFields(propertyToCompareExtractor(actual), mapper); const mappedExpected = mapKnownFields(propertyToCompareExtractor(expected), mapper); @@ -154,7 +154,7 @@ function mapKnownFields(object: any, mapper: TM export async function doesCampaignBriefExist( client: TollFreeVerificationClient, - id: string + id: string, ): Promise { try { const campaignBrief = await client.getCampaignBrief(id, "US"); diff --git a/sdk/compute/arm-compute-rest/package.json b/sdk/compute/arm-compute-rest/package.json index 9ccdbc5ae1f1..73dbbe390817 100644 --- a/sdk/compute/arm-compute-rest/package.json +++ b/sdk/compute/arm-compute-rest/package.json @@ -38,11 +38,11 @@ "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -76,7 +76,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^1.0.4", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsCreateOrUpdateSample.ts index 57ba551fffe7..a77da7446f1b 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsCreateOrUpdateSample.ts @@ -35,7 +35,7 @@ async function createAnAvailabilitySet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", subscriptionId, resourceGroupName, - availabilitySetName + availabilitySetName, ) .put(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsDeleteSample.ts index 24b7f22b8e60..ab35fdea129f 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsDeleteSample.ts @@ -31,7 +31,7 @@ async function availabilitySetsDeleteMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", subscriptionId, resourceGroupName, - availabilitySetName + availabilitySetName, ) .delete(options); console.log(result); @@ -58,7 +58,7 @@ async function availabilitySetsDeleteMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", subscriptionId, resourceGroupName, - availabilitySetName + availabilitySetName, ) .delete(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsGetSample.ts index 394e678fdfef..7a6228349802 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsGetSample.ts @@ -31,7 +31,7 @@ async function availabilitySetsGetMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", subscriptionId, resourceGroupName, - availabilitySetName + availabilitySetName, ) .get(options); console.log(result); @@ -58,7 +58,7 @@ async function availabilitySetsGetMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", subscriptionId, resourceGroupName, - availabilitySetName + availabilitySetName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsListAvailableSizesSample.ts b/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsListAvailableSizesSample.ts index cd8234b7897d..b4d14453206c 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsListAvailableSizesSample.ts @@ -32,7 +32,7 @@ async function availabilitySetsListAvailableSizesMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes", subscriptionId, resourceGroupName, - availabilitySetName + availabilitySetName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -64,7 +64,7 @@ async function availabilitySetsListAvailableSizesMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes", subscriptionId, resourceGroupName, - availabilitySetName + availabilitySetName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsListBySubscriptionSample.ts b/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsListBySubscriptionSample.ts index ed5e92259532..d4d103025e01 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsListBySubscriptionSample.ts @@ -31,7 +31,7 @@ async function listAvailabilitySetsInASubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsListSample.ts index 0267ce066ee2..97d924db0928 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsListSample.ts @@ -30,7 +30,7 @@ async function availabilitySetsListMaximumSetGen() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -60,7 +60,7 @@ async function availabilitySetsListMinimumSetGen() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsUpdateSample.ts index 788b1433c333..4f0c2d3cd185 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/availabilitySetsUpdateSample.ts @@ -47,7 +47,7 @@ async function availabilitySetsUpdateMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", subscriptionId, resourceGroupName, - availabilitySetName + availabilitySetName, ) .patch(options); console.log(result); @@ -75,7 +75,7 @@ async function availabilitySetsUpdateMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", subscriptionId, resourceGroupName, - availabilitySetName + availabilitySetName, ) .patch(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsCreateOrUpdateSample.ts index d25cc49381f6..05bf612355be 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsCreateOrUpdateSample.ts @@ -36,7 +36,7 @@ async function createOrUpdateACapacityReservationGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", subscriptionId, resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, ) .put(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsDeleteSample.ts index 869b9a90e2cb..faad44efab9c 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsDeleteSample.ts @@ -31,7 +31,7 @@ async function capacityReservationGroupsDeleteMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", subscriptionId, resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, ) .delete(options); console.log(result); @@ -58,7 +58,7 @@ async function capacityReservationGroupsDeleteMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", subscriptionId, resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, ) .delete(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsGetSample.ts index 48dd7f18cdff..f7cdcc3beade 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsGetSample.ts @@ -31,7 +31,7 @@ async function getACapacityReservationGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", subscriptionId, resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsListByResourceGroupSample.ts index 7d0961bb7599..8574757e3bae 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsListByResourceGroupSample.ts @@ -33,7 +33,7 @@ async function listCapacityReservationGroupsInResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsListBySubscriptionSample.ts b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsListBySubscriptionSample.ts index 6c37e8c10d43..fdab5131a788 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsListBySubscriptionSample.ts @@ -31,7 +31,7 @@ async function listCapacityReservationGroupsInSubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsUpdateSample.ts index 700a3019dec1..120c61d6d918 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationGroupsUpdateSample.ts @@ -32,7 +32,7 @@ async function capacityReservationGroupsUpdateMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", subscriptionId, resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, ) .patch(options); console.log(result); @@ -60,7 +60,7 @@ async function capacityReservationGroupsUpdateMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", subscriptionId, resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, ) .patch(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsCreateOrUpdateSample.ts index 35dd1bae95f0..ae27b554af58 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsCreateOrUpdateSample.ts @@ -40,7 +40,7 @@ async function createOrUpdateACapacityReservation() { subscriptionId, resourceGroupName, capacityReservationGroupName, - capacityReservationName + capacityReservationName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsDeleteSample.ts index 54301b808ffa..80eb761c0dc1 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsDeleteSample.ts @@ -34,7 +34,7 @@ async function capacityReservationsDeleteMaximumSetGen() { subscriptionId, resourceGroupName, capacityReservationGroupName, - capacityReservationName + capacityReservationName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); @@ -65,7 +65,7 @@ async function capacityReservationsDeleteMinimumSetGen() { subscriptionId, resourceGroupName, capacityReservationGroupName, - capacityReservationName + capacityReservationName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsGetSample.ts index d36d644eda5b..7b401e004133 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsGetSample.ts @@ -33,7 +33,7 @@ async function getACapacityReservation() { subscriptionId, resourceGroupName, capacityReservationGroupName, - capacityReservationName + capacityReservationName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsListByCapacityReservationGroupSample.ts b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsListByCapacityReservationGroupSample.ts index 1344f2e434bc..7d3fb68d0ee1 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsListByCapacityReservationGroupSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsListByCapacityReservationGroupSample.ts @@ -32,7 +32,7 @@ async function listCapacityReservationsInReservationGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations", subscriptionId, resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsUpdateSample.ts index 9cd8f80a0d38..43474dcb3c3c 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/capacityReservationsUpdateSample.ts @@ -52,7 +52,7 @@ async function capacityReservationsUpdateMaximumSetGen() { subscriptionId, resourceGroupName, capacityReservationGroupName, - capacityReservationName + capacityReservationName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -84,7 +84,7 @@ async function capacityReservationsUpdateMinimumSetGen() { subscriptionId, resourceGroupName, capacityReservationGroupName, - capacityReservationName + capacityReservationName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceOperatingSystemsGetOSFamilySample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceOperatingSystemsGetOSFamilySample.ts index 8375f646a4c4..d44070777b58 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceOperatingSystemsGetOSFamilySample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceOperatingSystemsGetOSFamilySample.ts @@ -31,7 +31,7 @@ async function getCloudServiceOSFamily() { "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}", subscriptionId, location, - osFamilyName + osFamilyName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceOperatingSystemsGetOSVersionSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceOperatingSystemsGetOSVersionSample.ts index f3431575817a..30c98033d58c 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceOperatingSystemsGetOSVersionSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceOperatingSystemsGetOSVersionSample.ts @@ -31,7 +31,7 @@ async function getCloudServiceOSVersion() { "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}", subscriptionId, location, - osVersionName + osVersionName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceOperatingSystemsListOSFamiliesSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceOperatingSystemsListOSFamiliesSample.ts index 6781d2976eb5..ab53261b8f1b 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceOperatingSystemsListOSFamiliesSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceOperatingSystemsListOSFamiliesSample.ts @@ -30,7 +30,7 @@ async function listCloudServiceOSFamiliesInASubscription() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceOperatingSystemsListOSVersionsSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceOperatingSystemsListOSVersionsSample.ts index 6f20c035409d..3693df78ea0c 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceOperatingSystemsListOSVersionsSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceOperatingSystemsListOSVersionsSample.ts @@ -30,7 +30,7 @@ async function listCloudServiceOSVersionsInASubscription() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesDeleteSample.ts index 3c4749fc0bbf..ddaf67b8cafc 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteCloudServiceRoleInstance() { subscriptionId, resourceGroupName, cloudServiceName, - roleInstanceName + roleInstanceName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesGetInstanceViewSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesGetInstanceViewSample.ts index 33cc96886159..d64cdb8a52e9 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesGetInstanceViewSample.ts @@ -33,7 +33,7 @@ async function getInstanceViewOfCloudServiceRoleInstance() { subscriptionId, resourceGroupName, cloudServiceName, - roleInstanceName + roleInstanceName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts index 04d2adf60726..d7f65a3ecf48 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts @@ -33,7 +33,7 @@ async function getCloudServiceRole() { subscriptionId, resourceGroupName, cloudServiceName, - roleInstanceName + roleInstanceName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesGetSample.ts index d6b33a400a61..12c486cea763 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesGetSample.ts @@ -33,7 +33,7 @@ async function getCloudServiceRoleInstance() { subscriptionId, resourceGroupName, cloudServiceName, - roleInstanceName + roleInstanceName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesListSample.ts index 78d3912a3e68..deb1f2d8d598 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesListSample.ts @@ -32,7 +32,7 @@ async function listRoleInstancesInACloudService() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesRebuildSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesRebuildSample.ts index 797345abf067..ac29b5245bcb 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesRebuildSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesRebuildSample.ts @@ -34,7 +34,7 @@ async function rebuildCloudServiceRoleInstance() { subscriptionId, resourceGroupName, cloudServiceName, - roleInstanceName + roleInstanceName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesReimageSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesReimageSample.ts index f577ae8f400c..ec751dbae7ce 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesReimageSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesReimageSample.ts @@ -34,7 +34,7 @@ async function reimageCloudServiceRoleInstance() { subscriptionId, resourceGroupName, cloudServiceName, - roleInstanceName + roleInstanceName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesRestartSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesRestartSample.ts index c5107d29397e..540e78879866 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesRestartSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRoleInstancesRestartSample.ts @@ -34,7 +34,7 @@ async function restartCloudServiceRoleInstance() { subscriptionId, resourceGroupName, cloudServiceName, - roleInstanceName + roleInstanceName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRolesGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRolesGetSample.ts index 8a3903a44228..91aff36f1459 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRolesGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRolesGetSample.ts @@ -33,7 +33,7 @@ async function getCloudServiceRole() { subscriptionId, resourceGroupName, cloudServiceName, - roleName + roleName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRolesListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRolesListSample.ts index c75180fc21fe..8010d7422748 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRolesListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServiceRolesListSample.ts @@ -32,7 +32,7 @@ async function listRolesInACloudService() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesCreateOrUpdateSample.ts index d0f494a2857d..3291c1a78d07 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesCreateOrUpdateSample.ts @@ -71,7 +71,7 @@ async function createNewCloudServiceWithMultipleRoles() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -135,7 +135,7 @@ async function createNewCloudServiceWithSingleRole() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -214,7 +214,7 @@ async function createNewCloudServiceWithSingleRoleAndCertificateFromKeyVault() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -294,7 +294,7 @@ async function createNewCloudServiceWithSingleRoleAndRdpExtension() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesDeleteInstancesSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesDeleteInstancesSample.ts index fcbdd0063941..0dbea520be3d 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesDeleteInstancesSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesDeleteInstancesSample.ts @@ -33,7 +33,7 @@ async function deleteCloudServiceRoleInstancesInACloudService() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesDeleteSample.ts index 4429e610c3ed..27a60e6c3e9e 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteCloudService() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesGetInstanceViewSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesGetInstanceViewSample.ts index 9dfd25d47c1a..caaca2c8bdfc 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesGetInstanceViewSample.ts @@ -31,7 +31,7 @@ async function getCloudServiceInstanceViewWithMultipleRoles() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesGetSample.ts index f656415275b8..f80630ff1d30 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesGetSample.ts @@ -29,7 +29,7 @@ async function getCloudServiceWithMultipleRolesAndRdpExtension() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesListAllSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesListAllSample.ts index 6dbcdfd38e2e..69a450a87171 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesListAllSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesListAllSample.ts @@ -28,7 +28,7 @@ async function listCloudServicesInASubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesListSample.ts index a9c9b5e77b24..b7cdab39240e 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesListSample.ts @@ -30,7 +30,7 @@ async function listCloudServicesInAResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesPowerOffSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesPowerOffSample.ts index c6654296b34a..e8ff74a3cc08 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesPowerOffSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesPowerOffSample.ts @@ -32,7 +32,7 @@ async function stopOrPowerOffCloudService() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesRebuildSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesRebuildSample.ts index 162f52a8c3cb..9f8516a9b601 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesRebuildSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesRebuildSample.ts @@ -33,7 +33,7 @@ async function rebuildCloudServiceRoleInstancesInACloudService() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesReimageSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesReimageSample.ts index a594e5b8c4b8..ac11ac31e819 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesReimageSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesReimageSample.ts @@ -33,7 +33,7 @@ async function reimageCloudServiceRoleInstancesInACloudService() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesRestartSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesRestartSample.ts index 54f16d71c413..283e8437d76d 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesRestartSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesRestartSample.ts @@ -33,7 +33,7 @@ async function restartCloudServiceRoleInstancesInACloudService() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesStartSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesStartSample.ts index fbb34249f56b..6e589235277d 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesStartSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesStartSample.ts @@ -32,7 +32,7 @@ async function startCloudService() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesUpdateDomainGetUpdateDomainSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesUpdateDomainGetUpdateDomainSample.ts index 18a0143293b9..7472df33ad99 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesUpdateDomainGetUpdateDomainSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesUpdateDomainGetUpdateDomainSample.ts @@ -33,7 +33,7 @@ async function getCloudServiceUpdateDomain() { subscriptionId, resourceGroupName, cloudServiceName, - updateDomain + updateDomain, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesUpdateDomainListUpdateDomainsSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesUpdateDomainListUpdateDomainsSample.ts index 2f410b2bb844..893da332cf89 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesUpdateDomainListUpdateDomainsSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesUpdateDomainListUpdateDomainsSample.ts @@ -32,7 +32,7 @@ async function listUpdateDomainsInCloudService() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesUpdateDomainWalkUpdateDomainSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesUpdateDomainWalkUpdateDomainSample.ts index 4fcd1964fb0a..fb3932ab52d7 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesUpdateDomainWalkUpdateDomainSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesUpdateDomainWalkUpdateDomainSample.ts @@ -34,7 +34,7 @@ async function updateCloudServiceToSpecifiedDomain() { subscriptionId, resourceGroupName, cloudServiceName, - updateDomain + updateDomain, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesUpdateSample.ts index 63c90326b4e4..804d738f7814 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/cloudServicesUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/cloudServicesUpdateSample.ts @@ -33,7 +33,7 @@ async function updateExistingCloudServiceToAddTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/communityGalleriesGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/communityGalleriesGetSample.ts index 4784bd9406b2..2a986f37d930 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/communityGalleriesGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/communityGalleriesGetSample.ts @@ -31,7 +31,7 @@ async function getACommunityGallery() { "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}", subscriptionId, location, - publicGalleryName + publicGalleryName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/communityGalleryImageVersionsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/communityGalleryImageVersionsGetSample.ts index 4f8c1281c69c..3b9f141325ee 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/communityGalleryImageVersionsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/communityGalleryImageVersionsGetSample.ts @@ -35,7 +35,7 @@ async function getACommunityGalleryImageVersion() { location, publicGalleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/communityGalleryImageVersionsListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/communityGalleryImageVersionsListSample.ts index 12369a3f84ec..51b448d6b736 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/communityGalleryImageVersionsListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/communityGalleryImageVersionsListSample.ts @@ -34,7 +34,7 @@ async function listCommunityGalleryImageVersions() { subscriptionId, location, publicGalleryName, - galleryImageName + galleryImageName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/communityGalleryImagesGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/communityGalleryImagesGetSample.ts index 0d7c847709c3..47370bdd0579 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/communityGalleryImagesGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/communityGalleryImagesGetSample.ts @@ -33,7 +33,7 @@ async function getACommunityGalleryImage() { subscriptionId, location, publicGalleryName, - galleryImageName + galleryImageName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/communityGalleryImagesListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/communityGalleryImagesListSample.ts index 6c8b9e84e362..2972e4cb078b 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/communityGalleryImagesListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/communityGalleryImagesListSample.ts @@ -32,7 +32,7 @@ async function listCommunityGalleryImages() { "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images", subscriptionId, location, - publicGalleryName + publicGalleryName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsCreateOrUpdateSample.ts index 94d30f4588c1..35762bc55a98 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsCreateOrUpdateSample.ts @@ -41,7 +41,7 @@ async function createOrUpdateADedicatedHostGroupWithUltraSsdSupport() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", subscriptionId, resourceGroupName, - hostGroupName + hostGroupName, ) .put(options); console.log(result); @@ -77,7 +77,7 @@ async function createOrUpdateADedicatedHostGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", subscriptionId, resourceGroupName, - hostGroupName + hostGroupName, ) .put(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsDeleteSample.ts index 9be80e61add6..2f43abcb98d1 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsDeleteSample.ts @@ -31,7 +31,7 @@ async function dedicatedHostGroupsDeleteMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", subscriptionId, resourceGroupName, - hostGroupName + hostGroupName, ) .delete(options); console.log(result); @@ -58,7 +58,7 @@ async function dedicatedHostGroupsDeleteMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", subscriptionId, resourceGroupName, - hostGroupName + hostGroupName, ) .delete(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsGetSample.ts index e2be9e7d7f85..b53d5d89e46c 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsGetSample.ts @@ -31,7 +31,7 @@ async function createADedicatedHostGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", subscriptionId, resourceGroupName, - hostGroupName + hostGroupName, ) .get(options); console.log(result); @@ -58,7 +58,7 @@ async function createAnUltraSsdEnabledDedicatedHostGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", subscriptionId, resourceGroupName, - hostGroupName + hostGroupName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsListByResourceGroupSample.ts index 1b524abac1fe..2ca111033b65 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function dedicatedHostGroupsListByResourceGroupMaximumSetGen() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -60,7 +60,7 @@ async function dedicatedHostGroupsListByResourceGroupMinimumSetGen() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsUpdateSample.ts index 150ca03ed90f..bbe80fae8388 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostGroupsUpdateSample.ts @@ -57,7 +57,7 @@ async function dedicatedHostGroupsUpdateMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", subscriptionId, resourceGroupName, - hostGroupName + hostGroupName, ) .patch(options); console.log(result); @@ -85,7 +85,7 @@ async function dedicatedHostGroupsUpdateMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", subscriptionId, resourceGroupName, - hostGroupName + hostGroupName, ) .patch(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsCreateOrUpdateSample.ts index a6d577409ba1..f696348a84c4 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsCreateOrUpdateSample.ts @@ -40,7 +40,7 @@ async function createOrUpdateADedicatedHost() { subscriptionId, resourceGroupName, hostGroupName, - hostName + hostName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsDeleteSample.ts index 253bb213bc97..2e48a07bbf1d 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsDeleteSample.ts @@ -34,7 +34,7 @@ async function dedicatedHostsDeleteMaximumSetGen() { subscriptionId, resourceGroupName, hostGroupName, - hostName + hostName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); @@ -65,7 +65,7 @@ async function dedicatedHostsDeleteMinimumSetGen() { subscriptionId, resourceGroupName, hostGroupName, - hostName + hostName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsGetSample.ts index 605039cfd58d..037b18ea2b59 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsGetSample.ts @@ -33,7 +33,7 @@ async function getADedicatedHost() { subscriptionId, resourceGroupName, hostGroupName, - hostName + hostName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsListByHostGroupSample.ts b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsListByHostGroupSample.ts index b544c08dfe48..5f892b5c1f6f 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsListByHostGroupSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsListByHostGroupSample.ts @@ -32,7 +32,7 @@ async function dedicatedHostsListByHostGroupMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts", subscriptionId, resourceGroupName, - hostGroupName + hostGroupName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -64,7 +64,7 @@ async function dedicatedHostsListByHostGroupMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts", subscriptionId, resourceGroupName, - hostGroupName + hostGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsRestartSample.ts b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsRestartSample.ts index 35b121cfa1ed..a00f43869a2e 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsRestartSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsRestartSample.ts @@ -34,7 +34,7 @@ async function restartDedicatedHost() { subscriptionId, resourceGroupName, hostGroupName, - hostName + hostName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsUpdateSample.ts index db8a88cc93e0..852e99eba18e 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/dedicatedHostsUpdateSample.ts @@ -56,7 +56,7 @@ async function dedicatedHostsUpdateMaximumSetGen() { subscriptionId, resourceGroupName, hostGroupName, - hostName + hostName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -88,7 +88,7 @@ async function dedicatedHostsUpdateMinimumSetGen() { subscriptionId, resourceGroupName, hostGroupName, - hostName + hostName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesCreateOrUpdateSample.ts index f1fbf3faf3bf..2182fd7d8547 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesCreateOrUpdateSample.ts @@ -33,7 +33,7 @@ async function createADiskAccessResource() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", subscriptionId, resourceGroupName, - diskAccessName + diskAccessName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesDeleteAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesDeleteAPrivateEndpointConnectionSample.ts index f313bc0b91e8..ba5b36de5e38 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesDeleteAPrivateEndpointConnectionSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesDeleteAPrivateEndpointConnectionSample.ts @@ -34,7 +34,7 @@ async function deleteAPrivateEndpointConnectionUnderADiskAccessResource() { subscriptionId, resourceGroupName, diskAccessName, - privateEndpointConnectionName + privateEndpointConnectionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesDeleteSample.ts index 903ea66d3e23..a9bea8075b59 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteADiskAccessResource() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", subscriptionId, resourceGroupName, - diskAccessName + diskAccessName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesGetAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesGetAPrivateEndpointConnectionSample.ts index 5c2d70ef0803..62b9834d3041 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesGetAPrivateEndpointConnectionSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesGetAPrivateEndpointConnectionSample.ts @@ -33,7 +33,7 @@ async function getInformationAboutAPrivateEndpointConnectionUnderADiskAccessReso subscriptionId, resourceGroupName, diskAccessName, - privateEndpointConnectionName + privateEndpointConnectionName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesGetPrivateLinkResourcesSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesGetPrivateLinkResourcesSample.ts index 2c0a67d29900..480ebfaf58a7 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesGetPrivateLinkResourcesSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesGetPrivateLinkResourcesSample.ts @@ -31,7 +31,7 @@ async function listAllPossiblePrivateLinkResourcesUnderDiskAccessResource() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateLinkResources", subscriptionId, resourceGroupName, - diskAccessName + diskAccessName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesGetSample.ts index 7c879e8f8c80..3649e5315a81 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesGetSample.ts @@ -29,7 +29,7 @@ async function getInformationAboutADiskAccessResourceWithPrivateEndpoints() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", subscriptionId, resourceGroupName, - diskAccessName + diskAccessName, ) .get(options); console.log(result); @@ -56,7 +56,7 @@ async function getInformationAboutADiskAccessResource() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", subscriptionId, resourceGroupName, - diskAccessName + diskAccessName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesListByResourceGroupSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesListByResourceGroupSample.ts index 1987a69938e2..df21e87a51af 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function listAllDiskAccessResourcesInAResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesListPrivateEndpointConnectionsSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesListPrivateEndpointConnectionsSample.ts index f9eb74a491e0..f93129fdf351 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesListPrivateEndpointConnectionsSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesListPrivateEndpointConnectionsSample.ts @@ -32,7 +32,7 @@ async function getInformationAboutAPrivateEndpointConnectionUnderADiskAccessReso "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections", subscriptionId, resourceGroupName, - diskAccessName + diskAccessName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesListSample.ts index 75c4c0ac7171..b8ace6c330fd 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesListSample.ts @@ -28,7 +28,7 @@ async function listAllDiskAccessResourcesInASubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesUpdateAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesUpdateAPrivateEndpointConnectionSample.ts index c48e5f015bc2..f1eeb103ff8e 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesUpdateAPrivateEndpointConnectionSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesUpdateAPrivateEndpointConnectionSample.ts @@ -42,7 +42,7 @@ async function approveAPrivateEndpointConnectionUnderADiskAccessResource() { subscriptionId, resourceGroupName, diskAccessName, - privateEndpointConnectionName + privateEndpointConnectionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesUpdateSample.ts index adebc311e6b8..b1f0131318e4 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskAccessesUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskAccessesUpdateSample.ts @@ -33,7 +33,7 @@ async function updateADiskAccessResource() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", subscriptionId, resourceGroupName, - diskAccessName + diskAccessName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsCreateOrUpdateSample.ts index 9b1ef28bb993..a5f01ad816bc 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsCreateOrUpdateSample.ts @@ -42,7 +42,7 @@ async function createADiskEncryptionSetWithKeyVaultFromADifferentSubscription() "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", subscriptionId, resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -88,7 +88,7 @@ async function createADiskEncryptionSetWithKeyVaultFromADifferentTenant() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", subscriptionId, resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -130,7 +130,7 @@ async function createADiskEncryptionSet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", subscriptionId, resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsDeleteSample.ts index 8fb183c8debc..985616058bdf 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteADiskEncryptionSet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", subscriptionId, resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsGetSample.ts index 0e3fa2b0ce35..7a73a75808b3 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsGetSample.ts @@ -31,7 +31,7 @@ async function getInformationAboutADiskEncryptionSetWhenAutoKeyRotationFailed() "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", subscriptionId, resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ) .get(options); console.log(result); @@ -58,7 +58,7 @@ async function getInformationAboutADiskEncryptionSet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", subscriptionId, resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsListAssociatedResourcesSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsListAssociatedResourcesSample.ts index 3d47d5dde21b..b306a53b6edf 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsListAssociatedResourcesSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsListAssociatedResourcesSample.ts @@ -32,7 +32,7 @@ async function listAllResourcesThatAreEncryptedWithThisDiskEncryptionSet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}/associatedResources", subscriptionId, resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsListByResourceGroupSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsListByResourceGroupSample.ts index 78fce9ce3a25..69e343b012aa 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function listAllDiskEncryptionSetsInAResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsListSample.ts index f1e6f223e4bc..5c98e4605e8a 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsListSample.ts @@ -28,7 +28,7 @@ async function listAllDiskEncryptionSetsInASubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsUpdateSample.ts index 461914a22fc3..f806da1395a1 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskEncryptionSetsUpdateSample.ts @@ -42,7 +42,7 @@ async function updateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetT "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", subscriptionId, resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -51,7 +51,7 @@ async function updateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetT } updateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetToTrueSucceeded().catch( - console.error + console.error, ); /** * This sample demonstrates how to Updates (patches) a disk encryption set. @@ -83,7 +83,7 @@ async function updateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetT "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", subscriptionId, resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -92,7 +92,7 @@ async function updateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetT } updateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetToTrueUpdating().catch( - console.error + console.error, ); /** * This sample demonstrates how to Updates (patches) a disk encryption set. @@ -126,7 +126,7 @@ async function updateADiskEncryptionSet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", subscriptionId, resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskRestorePointGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskRestorePointGetSample.ts index 41518306c082..353cc13f680e 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskRestorePointGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskRestorePointGetSample.ts @@ -35,7 +35,7 @@ async function getAnIncrementalDiskRestorePointResource() { resourceGroupName, restorePointCollectionName, vmRestorePointName, - diskRestorePointName + diskRestorePointName, ) .get(options); console.log(result); @@ -66,7 +66,7 @@ async function getAnIncrementalDiskRestorePointWhenSourceResourceIsFromADifferen resourceGroupName, restorePointCollectionName, vmRestorePointName, - diskRestorePointName + diskRestorePointName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskRestorePointGrantAccessSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskRestorePointGrantAccessSample.ts index 9899da9fe5a7..28007a7ebe76 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskRestorePointGrantAccessSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskRestorePointGrantAccessSample.ts @@ -37,7 +37,7 @@ async function grantsAccessToADiskRestorePoint() { resourceGroupName, restorePointCollectionName, vmRestorePointName, - diskRestorePointName + diskRestorePointName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskRestorePointListByRestorePointSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskRestorePointListByRestorePointSample.ts index ed370c17b46d..4b9482a8cc30 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskRestorePointListByRestorePointSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskRestorePointListByRestorePointSample.ts @@ -34,7 +34,7 @@ async function getAnIncrementalDiskRestorePointResource() { subscriptionId, resourceGroupName, restorePointCollectionName, - vmRestorePointName + vmRestorePointName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/diskRestorePointRevokeAccessSample.ts b/sdk/compute/arm-compute-rest/samples-dev/diskRestorePointRevokeAccessSample.ts index dde7ac42f8a8..0d996dd9d7bb 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/diskRestorePointRevokeAccessSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/diskRestorePointRevokeAccessSample.ts @@ -36,7 +36,7 @@ async function revokesAccessToADiskRestorePoint() { resourceGroupName, restorePointCollectionName, vmRestorePointName, - diskRestorePointName + diskRestorePointName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/disksCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/disksCreateOrUpdateSample.ts index 6a87ab95a79e..ff87c5e9e6f2 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/disksCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/disksCreateOrUpdateSample.ts @@ -49,7 +49,7 @@ async function createAConfidentialVMSupportedDiskEncryptedWithCustomerManagedKey "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -88,7 +88,7 @@ async function createAManagedDiskAndAssociateWithDiskAccessResource() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -128,7 +128,7 @@ async function createAManagedDiskAndAssociateWithDiskEncryptionSet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -167,7 +167,7 @@ async function createAManagedDiskByCopyingASnapshot() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -207,7 +207,7 @@ async function createAManagedDiskByImportingAnUnmanagedBlobFromADifferentSubscri "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -245,7 +245,7 @@ async function createAManagedDiskByImportingAnUnmanagedBlobFromTheSameSubscripti "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -290,7 +290,7 @@ async function createAManagedDiskFromImportSecureCreateOption() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -330,7 +330,7 @@ async function createAManagedDiskFromUploadPreparedSecureCreateOption() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -371,7 +371,7 @@ async function createAManagedDiskFromAPlatformImage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -413,7 +413,7 @@ async function createAManagedDiskFromAnAzureComputeGalleryCommunityImage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -455,7 +455,7 @@ async function createAManagedDiskFromAnAzureComputeGalleryDirectSharedImage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -496,7 +496,7 @@ async function createAManagedDiskFromAnAzureComputeGalleryImage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -535,7 +535,7 @@ async function createAManagedDiskFromAnExistingManagedDiskInTheSameOrDifferentSu "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -572,7 +572,7 @@ async function createAManagedDiskWithDataAccessAuthMode() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -609,7 +609,7 @@ async function createAManagedDiskWithOptimizedForFrequentAttach() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -644,7 +644,7 @@ async function createAManagedDiskWithPerformancePlus() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -683,7 +683,7 @@ async function createAManagedDiskWithPremiumV2AccountType() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -725,7 +725,7 @@ async function createAManagedDiskWithSecurityProfile() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -759,7 +759,7 @@ async function createAManagedDiskWithSsdZrsAccountType() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -799,7 +799,7 @@ async function createAManagedDiskWithUltraAccountTypeWithReadOnlyPropertySet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -834,7 +834,7 @@ async function createAManagedUploadDisk() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -868,7 +868,7 @@ async function createAnEmptyManagedDiskInExtendedLocation() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -901,7 +901,7 @@ async function createAnEmptyManagedDisk() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -938,7 +938,7 @@ async function createAnUltraManagedDiskWithLogicalSectorSize512E() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/disksDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/disksDeleteSample.ts index b917372e6d12..99293121f60f 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/disksDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/disksDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteAManagedDisk() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/disksGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/disksGetSample.ts index 1fc4b238e9e2..02c690825819 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/disksGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/disksGetSample.ts @@ -29,7 +29,7 @@ async function getInformationAboutAManagedDisk() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/disksGrantAccessSample.ts b/sdk/compute/arm-compute-rest/samples-dev/disksGrantAccessSample.ts index 3ab8b6493ae6..df269fec09ab 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/disksGrantAccessSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/disksGrantAccessSample.ts @@ -33,7 +33,7 @@ async function getASasOnAManagedDisk() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/beginGetAccess", subscriptionId, resourceGroupName, - diskName + diskName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -67,7 +67,7 @@ async function getSasOnManagedDiskAndVMGuestState() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/beginGetAccess", subscriptionId, resourceGroupName, - diskName + diskName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/disksListByResourceGroupSample.ts b/sdk/compute/arm-compute-rest/samples-dev/disksListByResourceGroupSample.ts index 05d7c8b7c441..ac8e97e716ba 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/disksListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/disksListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function listAllManagedDisksInAResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/disksRevokeAccessSample.ts b/sdk/compute/arm-compute-rest/samples-dev/disksRevokeAccessSample.ts index 196552b42014..4e469bd7fdc4 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/disksRevokeAccessSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/disksRevokeAccessSample.ts @@ -32,7 +32,7 @@ async function revokeAccessToAManagedDisk() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/endGetAccess", subscriptionId, resourceGroupName, - diskName + diskName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/disksUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/disksUpdateSample.ts index 92483ac255ef..207069fee8ef 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/disksUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/disksUpdateSample.ts @@ -33,7 +33,7 @@ async function createOrUpdateABurstingEnabledManagedDisk() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -65,7 +65,7 @@ async function updateAManagedDiskToAddAcceleratedNetworking() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -95,7 +95,7 @@ async function updateAManagedDiskToAddArchitecture() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -134,7 +134,7 @@ async function updateAManagedDiskToAddPurchasePlan() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -164,7 +164,7 @@ async function updateAManagedDiskToAddSupportsHibernation() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -194,7 +194,7 @@ async function updateAManagedDiskToChangeTier() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -224,7 +224,7 @@ async function updateAManagedDiskToDisableBursting() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -254,7 +254,7 @@ async function updateAManagedDiskToDisableOptimizedForFrequentAttach() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -286,7 +286,7 @@ async function updateAManagedDiskWithDiskControllerTypes() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -316,7 +316,7 @@ async function updateManagedDiskToRemoveDiskAccessResourceAssociation() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId, resourceGroupName, - diskName + diskName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleriesCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleriesCreateOrUpdateSample.ts index 7db786d366b2..a7bc4ff163fd 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleriesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleriesCreateOrUpdateSample.ts @@ -47,7 +47,7 @@ async function createACommunityGallery() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", subscriptionId, resourceGroupName, - galleryName + galleryName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -83,7 +83,7 @@ async function createOrUpdateASimpleGalleryWithSharingProfile() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", subscriptionId, resourceGroupName, - galleryName + galleryName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -119,7 +119,7 @@ async function createOrUpdateASimpleGalleryWithSoftDeletionEnabled() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", subscriptionId, resourceGroupName, - galleryName + galleryName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -152,7 +152,7 @@ async function createOrUpdateASimpleGallery() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", subscriptionId, resourceGroupName, - galleryName + galleryName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleriesDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleriesDeleteSample.ts index dd7d18a3d3e0..d9adeebeaab4 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleriesDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleriesDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteAGallery() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", subscriptionId, resourceGroupName, - galleryName + galleryName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleriesGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleriesGetSample.ts index 5a78e5b2ddf8..5088619ccf0d 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleriesGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleriesGetSample.ts @@ -29,7 +29,7 @@ async function getACommunityGallery() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", subscriptionId, resourceGroupName, - galleryName + galleryName, ) .get(options); console.log(result); @@ -59,7 +59,7 @@ async function getAGalleryWithExpandSharingProfileGroups() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", subscriptionId, resourceGroupName, - galleryName + galleryName, ) .get(options); console.log(result); @@ -86,7 +86,7 @@ async function getAGalleryWithSelectPermissions() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", subscriptionId, resourceGroupName, - galleryName + galleryName, ) .get(options); console.log(result); @@ -113,7 +113,7 @@ async function getAGallery() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", subscriptionId, resourceGroupName, - galleryName + galleryName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleriesListByResourceGroupSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleriesListByResourceGroupSample.ts index a7a574ffa025..05fd53debc24 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleriesListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleriesListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function listGalleriesInAResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleriesUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleriesUpdateSample.ts index 8a0d8771cfb7..c1cf9b33de03 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleriesUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleriesUpdateSample.ts @@ -33,7 +33,7 @@ async function updateASimpleGallery() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", subscriptionId, resourceGroupName, - galleryName + galleryName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsCreateOrUpdateSample.ts index cafd271f4ef2..240a31016153 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsCreateOrUpdateSample.ts @@ -62,7 +62,7 @@ async function createOrUpdateASimpleGalleryApplicationVersion() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplicationVersionName + galleryApplicationVersionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsDeleteSample.ts index 42abfbd65bcf..f3f87b4e48ba 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsDeleteSample.ts @@ -36,7 +36,7 @@ async function deleteAGalleryApplicationVersion() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplicationVersionName + galleryApplicationVersionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsGetSample.ts index 457cb45a074c..a77ec69ca0a1 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsGetSample.ts @@ -38,7 +38,7 @@ async function getAGalleryApplicationVersionWithReplicationStatus() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplicationVersionName + galleryApplicationVersionName, ) .get(options); console.log(result); @@ -69,7 +69,7 @@ async function getAGalleryApplicationVersion() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplicationVersionName + galleryApplicationVersionName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsListByGalleryApplicationSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsListByGalleryApplicationSample.ts index e5685fdca483..d4393b59a39d 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsListByGalleryApplicationSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsListByGalleryApplicationSample.ts @@ -34,7 +34,7 @@ async function listGalleryApplicationVersionsInAGalleryApplicationDefinition() { subscriptionId, resourceGroupName, galleryName, - galleryApplicationName + galleryApplicationName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsUpdateSample.ts index c36962c52a4a..e975187c87f4 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationVersionsUpdateSample.ts @@ -61,7 +61,7 @@ async function updateASimpleGalleryApplicationVersion() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplicationVersionName + galleryApplicationVersionName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsCreateOrUpdateSample.ts index d900008754be..86f0a497acb8 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsCreateOrUpdateSample.ts @@ -44,7 +44,7 @@ async function createOrUpdateASimpleGalleryApplication() { subscriptionId, resourceGroupName, galleryName, - galleryApplicationName + galleryApplicationName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsDeleteSample.ts index 8dff0ef4828d..9ddf685b8de4 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteAGalleryApplication() { subscriptionId, resourceGroupName, galleryName, - galleryApplicationName + galleryApplicationName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsGetSample.ts index d310fc2b9e93..125a4038cfba 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsGetSample.ts @@ -33,7 +33,7 @@ async function getAGalleryApplication() { subscriptionId, resourceGroupName, galleryName, - galleryApplicationName + galleryApplicationName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsListByGallerySample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsListByGallerySample.ts index 6566cf255dba..0f8058fef1bf 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsListByGallerySample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsListByGallerySample.ts @@ -32,7 +32,7 @@ async function listGalleryApplicationsInAGallery() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications", subscriptionId, resourceGroupName, - galleryName + galleryName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsUpdateSample.ts index bc7470d174d3..63d15de9151a 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryApplicationsUpdateSample.ts @@ -43,7 +43,7 @@ async function updateASimpleGalleryApplication() { subscriptionId, resourceGroupName, galleryName, - galleryApplicationName + galleryApplicationName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsCreateOrUpdateSample.ts index 56df5e1a1dd3..ac52585cdc09 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsCreateOrUpdateSample.ts @@ -95,7 +95,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -187,7 +187,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -281,7 +281,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -328,7 +328,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMo resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -420,7 +420,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -514,7 +514,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -597,7 +597,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -689,7 +689,7 @@ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocatio resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsDeleteSample.ts index 1b1f4000b26b..fae8bf833b8a 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsDeleteSample.ts @@ -36,7 +36,7 @@ async function deleteAGalleryImageVersion() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsGetSample.ts index 0ac93bbdf4b1..73743810df68 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsGetSample.ts @@ -38,7 +38,7 @@ async function getAGalleryImageVersionWithReplicationStatus() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ) .get(options); console.log(result); @@ -69,7 +69,7 @@ async function getAGalleryImageVersionWithSnapshotsAsASource() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ) .get(options); console.log(result); @@ -100,7 +100,7 @@ async function getAGalleryImageVersionWithVhdAsASource() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ) .get(options); console.log(result); @@ -131,7 +131,7 @@ async function getAGalleryImageVersion() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsListByGalleryImageSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsListByGalleryImageSample.ts index 89301e9687bd..2258f1133fa8 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsListByGalleryImageSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsListByGalleryImageSample.ts @@ -34,7 +34,7 @@ async function listGalleryImageVersionsInAGalleryImageDefinition() { subscriptionId, resourceGroupName, galleryName, - galleryImageName + galleryImageName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsUpdateSample.ts index fe83c522253d..d354dca7be00 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryImageVersionsUpdateSample.ts @@ -55,7 +55,7 @@ async function updateASimpleGalleryImageVersionManagedImageAsSource() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -103,7 +103,7 @@ async function updateASimpleGalleryImageVersionWithoutSourceId() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryImagesCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryImagesCreateOrUpdateSample.ts index e65ed6081452..b6908a64b71b 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryImagesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryImagesCreateOrUpdateSample.ts @@ -47,7 +47,7 @@ async function createOrUpdateASimpleGalleryImage() { subscriptionId, resourceGroupName, galleryName, - galleryImageName + galleryImageName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryImagesDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryImagesDeleteSample.ts index 5353768f07ee..e4e9e07e6847 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryImagesDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryImagesDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteAGalleryImage() { subscriptionId, resourceGroupName, galleryName, - galleryImageName + galleryImageName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryImagesGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryImagesGetSample.ts index 5874cf30d65f..ea542ee0fb9b 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryImagesGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryImagesGetSample.ts @@ -31,7 +31,7 @@ async function getAGalleryImage() { subscriptionId, resourceGroupName, galleryName, - galleryImageName + galleryImageName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryImagesListByGallerySample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryImagesListByGallerySample.ts index ab8ac285665e..c5f814d53e80 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryImagesListByGallerySample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryImagesListByGallerySample.ts @@ -32,7 +32,7 @@ async function listGalleryImagesInAGallery() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images", subscriptionId, resourceGroupName, - galleryName + galleryName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/galleryImagesUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/galleryImagesUpdateSample.ts index 89522a71ab36..fc8f6390a02d 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/galleryImagesUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/galleryImagesUpdateSample.ts @@ -46,7 +46,7 @@ async function updateASimpleGalleryImage() { subscriptionId, resourceGroupName, galleryName, - galleryImageName + galleryImageName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/gallerySharingProfileUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/gallerySharingProfileUpdateSample.ts index f6103acb1271..36d27e989e89 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/gallerySharingProfileUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/gallerySharingProfileUpdateSample.ts @@ -42,7 +42,7 @@ async function addSharingIdToTheSharingProfileOfAGallery() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", subscriptionId, resourceGroupName, - galleryName + galleryName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -72,7 +72,7 @@ async function resetSharingProfileOfAGallery() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", subscriptionId, resourceGroupName, - galleryName + galleryName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -102,7 +102,7 @@ async function shareAGalleryToCommunity() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", subscriptionId, resourceGroupName, - galleryName + galleryName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/imagesCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/imagesCreateOrUpdateSample.ts index 9855408db58d..def131444061 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/imagesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/imagesCreateOrUpdateSample.ts @@ -47,7 +47,7 @@ async function createAVirtualMachineImageFromABlobWithDiskEncryptionSetResource( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", subscriptionId, resourceGroupName, - imageName + imageName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -89,7 +89,7 @@ async function createAVirtualMachineImageFromABlob() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", subscriptionId, resourceGroupName, - imageName + imageName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -135,7 +135,7 @@ async function createAVirtualMachineImageFromAManagedDiskWithDiskEncryptionSetRe "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", subscriptionId, resourceGroupName, - imageName + imageName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -179,7 +179,7 @@ async function createAVirtualMachineImageFromAManagedDisk() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", subscriptionId, resourceGroupName, - imageName + imageName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -225,7 +225,7 @@ async function createAVirtualMachineImageFromASnapshotWithDiskEncryptionSetResou "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", subscriptionId, resourceGroupName, - imageName + imageName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -269,7 +269,7 @@ async function createAVirtualMachineImageFromASnapshot() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", subscriptionId, resourceGroupName, - imageName + imageName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -306,7 +306,7 @@ async function createAVirtualMachineImageFromAnExistingVirtualMachine() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", subscriptionId, resourceGroupName, - imageName + imageName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -354,7 +354,7 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromABlob() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", subscriptionId, resourceGroupName, - imageName + imageName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -406,7 +406,7 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromAManagedDisk() "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", subscriptionId, resourceGroupName, - imageName + imageName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -458,7 +458,7 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromASnapshot() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", subscriptionId, resourceGroupName, - imageName + imageName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/imagesDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/imagesDeleteSample.ts index b7701172f096..7c682537f229 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/imagesDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/imagesDeleteSample.ts @@ -32,7 +32,7 @@ async function imagesDeleteMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", subscriptionId, resourceGroupName, - imageName + imageName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); @@ -61,7 +61,7 @@ async function imagesDeleteMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", subscriptionId, resourceGroupName, - imageName + imageName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/imagesGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/imagesGetSample.ts index 4140f818b2e8..340699cb2d81 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/imagesGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/imagesGetSample.ts @@ -29,7 +29,7 @@ async function getInformationAboutAVirtualMachineImage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", subscriptionId, resourceGroupName, - imageName + imageName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/imagesListByResourceGroupSample.ts b/sdk/compute/arm-compute-rest/samples-dev/imagesListByResourceGroupSample.ts index 03226cb6ee96..f10315b8e3be 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/imagesListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/imagesListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function listAllVirtualMachineImagesInAResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/imagesUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/imagesUpdateSample.ts index 3475c86aab9a..9be7259ec75e 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/imagesUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/imagesUpdateSample.ts @@ -41,7 +41,7 @@ async function updatesTagsOfAnImage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", subscriptionId, resourceGroupName, - imageName + imageName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/logAnalyticsExportRequestRateByIntervalSample.ts b/sdk/compute/arm-compute-rest/samples-dev/logAnalyticsExportRequestRateByIntervalSample.ts index 9f8bc2a09acf..698a4cd63127 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/logAnalyticsExportRequestRateByIntervalSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/logAnalyticsExportRequestRateByIntervalSample.ts @@ -37,7 +37,7 @@ async function exportLogsWhichContainAllApiRequestsMadeToComputeResourceProvider .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval", subscriptionId, - location + location, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -46,5 +46,5 @@ async function exportLogsWhichContainAllApiRequestsMadeToComputeResourceProvider } exportLogsWhichContainAllApiRequestsMadeToComputeResourceProviderWithinTheGivenTimePeriodBrokenDownByIntervals().catch( - console.error + console.error, ); diff --git a/sdk/compute/arm-compute-rest/samples-dev/logAnalyticsExportThrottledRequestsSample.ts b/sdk/compute/arm-compute-rest/samples-dev/logAnalyticsExportThrottledRequestsSample.ts index 9df243b8201f..df30ed0dcbde 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/logAnalyticsExportThrottledRequestsSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/logAnalyticsExportThrottledRequestsSample.ts @@ -39,7 +39,7 @@ async function exportLogsWhichContainAllThrottledApiRequestsMadeToComputeResourc .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests", subscriptionId, - location + location, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -48,5 +48,5 @@ async function exportLogsWhichContainAllThrottledApiRequestsMadeToComputeResourc } exportLogsWhichContainAllThrottledApiRequestsMadeToComputeResourceProviderWithinTheGivenTimePeriod().catch( - console.error + console.error, ); diff --git a/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsCreateOrUpdateSample.ts index b054154e0dd9..0364a973d229 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsCreateOrUpdateSample.ts @@ -39,7 +39,7 @@ async function createOrUpdateAProximityPlacementGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", subscriptionId, resourceGroupName, - proximityPlacementGroupName + proximityPlacementGroupName, ) .put(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsDeleteSample.ts index 8a1a49dcb6b5..55243186763f 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsDeleteSample.ts @@ -31,7 +31,7 @@ async function createAProximityPlacementGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", subscriptionId, resourceGroupName, - proximityPlacementGroupName + proximityPlacementGroupName, ) .delete(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsGetSample.ts index f1e9c77a400e..0de8b6d8c977 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsGetSample.ts @@ -31,7 +31,7 @@ async function createAProximityPlacementGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", subscriptionId, resourceGroupName, - proximityPlacementGroupName + proximityPlacementGroupName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsListByResourceGroupSample.ts index a5daa64ae12e..58dca4ca617f 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function createAProximityPlacementGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsListBySubscriptionSample.ts b/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsListBySubscriptionSample.ts index e50f066df6e3..543ae07c319e 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsListBySubscriptionSample.ts @@ -28,7 +28,7 @@ async function createAProximityPlacementGroup() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsUpdateSample.ts index bbbb8de0bf42..24cc860fb335 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/proximityPlacementGroupsUpdateSample.ts @@ -32,7 +32,7 @@ async function createAProximityPlacementGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", subscriptionId, resourceGroupName, - proximityPlacementGroupName + proximityPlacementGroupName, ) .patch(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsCreateOrUpdateSample.ts index 36891dfd4c3c..a3e604578346 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsCreateOrUpdateSample.ts @@ -40,7 +40,7 @@ async function createOrUpdateARestorePointCollectionForCrossRegionCopy() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", subscriptionId, resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ) .put(options); console.log(result); @@ -76,7 +76,7 @@ async function createOrUpdateARestorePointCollection() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", subscriptionId, resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ) .put(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsDeleteSample.ts index 3f44ecd9be80..17ca6a535c2f 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsDeleteSample.ts @@ -32,7 +32,7 @@ async function restorePointCollectionsDeleteMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", subscriptionId, resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); @@ -61,7 +61,7 @@ async function restorePointCollectionsDeleteMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", subscriptionId, resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsGetSample.ts index 99c4e99d544f..ec02f99385f9 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsGetSample.ts @@ -31,14 +31,14 @@ async function getARestorePointCollectionButNotTheRestorePointsContainedInTheRes "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", subscriptionId, resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ) .get(options); console.log(result); } getARestorePointCollectionButNotTheRestorePointsContainedInTheRestorePointCollection().catch( - console.error + console.error, ); /** * This sample demonstrates how to The operation to get the restore point collection. @@ -60,12 +60,12 @@ async function getARestorePointCollectionIncludingTheRestorePointsContainedInThe "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", subscriptionId, resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ) .get(options); console.log(result); } getARestorePointCollectionIncludingTheRestorePointsContainedInTheRestorePointCollection().catch( - console.error + console.error, ); diff --git a/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsListAllSample.ts b/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsListAllSample.ts index 53edaf539054..ffe0800e3ee3 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsListAllSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsListAllSample.ts @@ -28,7 +28,7 @@ async function getsTheListOfRestorePointCollectionsInASubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsListSample.ts index 0d8b02f8bdb0..961281a9f570 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsListSample.ts @@ -30,7 +30,7 @@ async function getsTheListOfRestorePointCollectionsInAResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsUpdateSample.ts index 5804d19d4a93..a9fc87831ffd 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/restorePointCollectionsUpdateSample.ts @@ -39,7 +39,7 @@ async function restorePointCollectionsUpdateMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", subscriptionId, resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ) .patch(options); console.log(result); @@ -67,7 +67,7 @@ async function restorePointCollectionsUpdateMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", subscriptionId, resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ) .patch(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/restorePointsCreateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/restorePointsCreateSample.ts index 85c64e05fec3..38b8c1c46f79 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/restorePointsCreateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/restorePointsCreateSample.ts @@ -41,7 +41,7 @@ async function copyARestorePointToADifferentRegion() { subscriptionId, resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -81,7 +81,7 @@ async function createARestorePoint() { subscriptionId, resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/restorePointsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/restorePointsDeleteSample.ts index 84e51cfe58e6..79bc93dfd5cd 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/restorePointsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/restorePointsDeleteSample.ts @@ -34,7 +34,7 @@ async function restorePointsDeleteMaximumSetGen() { subscriptionId, resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); @@ -65,7 +65,7 @@ async function restorePointsDeleteMinimumSetGen() { subscriptionId, resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/restorePointsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/restorePointsGetSample.ts index 73ab70d82eb6..68556c1a8148 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/restorePointsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/restorePointsGetSample.ts @@ -31,7 +31,7 @@ async function getARestorePoint() { subscriptionId, resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ) .get(options); console.log(result); @@ -60,7 +60,7 @@ async function getRestorePointWithInstanceView() { subscriptionId, resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/sharedGalleriesGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/sharedGalleriesGetSample.ts index 831d94cac261..164bbc3720d0 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/sharedGalleriesGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/sharedGalleriesGetSample.ts @@ -31,7 +31,7 @@ async function getASharedGallery() { "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}", subscriptionId, location, - galleryUniqueName + galleryUniqueName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/sharedGalleriesListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/sharedGalleriesListSample.ts index b6654bd259ed..1a510696c4ab 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/sharedGalleriesListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/sharedGalleriesListSample.ts @@ -30,7 +30,7 @@ async function listSharedGalleries() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/sharedGalleryImageVersionsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/sharedGalleryImageVersionsGetSample.ts index f96bb70cac3b..adb70fae68ec 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/sharedGalleryImageVersionsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/sharedGalleryImageVersionsGetSample.ts @@ -35,7 +35,7 @@ async function getASharedGalleryImageVersion() { location, galleryUniqueName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/sharedGalleryImageVersionsListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/sharedGalleryImageVersionsListSample.ts index 1f06bc4f0a62..c83a12f23184 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/sharedGalleryImageVersionsListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/sharedGalleryImageVersionsListSample.ts @@ -34,7 +34,7 @@ async function listSharedGalleryImageVersions() { subscriptionId, location, galleryUniqueName, - galleryImageName + galleryImageName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/sharedGalleryImagesGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/sharedGalleryImagesGetSample.ts index f99cba59ddab..a4e5815e22f1 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/sharedGalleryImagesGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/sharedGalleryImagesGetSample.ts @@ -33,7 +33,7 @@ async function getASharedGalleryImage() { subscriptionId, location, galleryUniqueName, - galleryImageName + galleryImageName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/sharedGalleryImagesListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/sharedGalleryImagesListSample.ts index d0351df47cfa..23642fc7626b 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/sharedGalleryImagesListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/sharedGalleryImagesListSample.ts @@ -32,7 +32,7 @@ async function listSharedGalleryImages() { "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images", subscriptionId, location, - galleryUniqueName + galleryUniqueName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/snapshotsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/snapshotsCreateOrUpdateSample.ts index c1a6a6fe2809..eb121d3da492 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/snapshotsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/snapshotsCreateOrUpdateSample.ts @@ -43,7 +43,7 @@ async function createASnapshotByImportingAnUnmanagedBlobFromADifferentSubscripti "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", subscriptionId, resourceGroupName, - snapshotName + snapshotName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -81,7 +81,7 @@ async function createASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", subscriptionId, resourceGroupName, - snapshotName + snapshotName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -120,7 +120,7 @@ async function createASnapshotFromAnExistingSnapshotInTheSameOrADifferentSubscri "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", subscriptionId, resourceGroupName, - snapshotName + snapshotName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -129,7 +129,7 @@ async function createASnapshotFromAnExistingSnapshotInTheSameOrADifferentSubscri } createASnapshotFromAnExistingSnapshotInTheSameOrADifferentSubscriptionInADifferentRegion().catch( - console.error + console.error, ); /** * This sample demonstrates how to Creates or updates a snapshot. @@ -161,7 +161,7 @@ async function createASnapshotFromAnExistingSnapshotInTheSameOrADifferentSubscri "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", subscriptionId, resourceGroupName, - snapshotName + snapshotName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/snapshotsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/snapshotsDeleteSample.ts index a7705438b4c4..ea0b7ca3611b 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/snapshotsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/snapshotsDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteASnapshot() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", subscriptionId, resourceGroupName, - snapshotName + snapshotName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/snapshotsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/snapshotsGetSample.ts index a0734d698dc5..bec016cea872 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/snapshotsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/snapshotsGetSample.ts @@ -29,7 +29,7 @@ async function getInformationAboutASnapshot() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", subscriptionId, resourceGroupName, - snapshotName + snapshotName, ) .get(options); console.log(result); @@ -56,7 +56,7 @@ async function getInformationAboutAnIncrementalSnapshot() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", subscriptionId, resourceGroupName, - snapshotName + snapshotName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/snapshotsGrantAccessSample.ts b/sdk/compute/arm-compute-rest/samples-dev/snapshotsGrantAccessSample.ts index 519665302e51..e7fb90d7ed58 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/snapshotsGrantAccessSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/snapshotsGrantAccessSample.ts @@ -33,7 +33,7 @@ async function getASasOnASnapshot() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/beginGetAccess", subscriptionId, resourceGroupName, - snapshotName + snapshotName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/snapshotsListByResourceGroupSample.ts b/sdk/compute/arm-compute-rest/samples-dev/snapshotsListByResourceGroupSample.ts index 0710853b44f3..9751ddf2e012 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/snapshotsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/snapshotsListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function listAllSnapshotsInAResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/snapshotsRevokeAccessSample.ts b/sdk/compute/arm-compute-rest/samples-dev/snapshotsRevokeAccessSample.ts index a913b2468857..c36e6d3e5844 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/snapshotsRevokeAccessSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/snapshotsRevokeAccessSample.ts @@ -32,7 +32,7 @@ async function revokeAccessToASnapshot() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess", subscriptionId, resourceGroupName, - snapshotName + snapshotName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/snapshotsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/snapshotsUpdateSample.ts index 210396a7d6f3..5945182588f6 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/snapshotsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/snapshotsUpdateSample.ts @@ -39,7 +39,7 @@ async function updateASnapshotWithAcceleratedNetworking() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", subscriptionId, resourceGroupName, - snapshotName + snapshotName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -72,7 +72,7 @@ async function updateASnapshot() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", subscriptionId, resourceGroupName, - snapshotName + snapshotName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysCreateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysCreateSample.ts index 9e6e20cbb970..e4c2bd52f97b 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysCreateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysCreateSample.ts @@ -35,7 +35,7 @@ async function createANewSshPublicKeyResource() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", subscriptionId, resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ) .put(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysDeleteSample.ts index 2166f6d5a3e7..32dbd840210b 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysDeleteSample.ts @@ -31,7 +31,7 @@ async function sshPublicKeysDeleteMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", subscriptionId, resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ) .delete(options); console.log(result); @@ -58,7 +58,7 @@ async function sshPublicKeysDeleteMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", subscriptionId, resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ) .delete(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysGenerateKeyPairSample.ts b/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysGenerateKeyPairSample.ts index cc71b67e94a0..0f1a1ecefc1b 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysGenerateKeyPairSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysGenerateKeyPairSample.ts @@ -31,7 +31,7 @@ async function generateAnSshKeyPair() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}/generateKeyPair", subscriptionId, resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ) .post(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysGetSample.ts index 41c6507199ac..94ed3547ab85 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysGetSample.ts @@ -29,7 +29,7 @@ async function getAnSshPublicKey() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", subscriptionId, resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysListByResourceGroupSample.ts b/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysListByResourceGroupSample.ts index add63f3a9685..7cd313f6bf09 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function sshPublicKeysListByResourceGroupMaximumSetGen() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -60,7 +60,7 @@ async function sshPublicKeysListByResourceGroupMinimumSetGen() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysListBySubscriptionSample.ts b/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysListBySubscriptionSample.ts index 07458cfc7734..7232530c434e 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysListBySubscriptionSample.ts @@ -28,7 +28,7 @@ async function sshPublicKeysListBySubscriptionMaximumSetGen() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); @@ -56,7 +56,7 @@ async function sshPublicKeysListBySubscriptionMinimumSetGen() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysUpdateSample.ts index d3696faf6116..46ed2f8eeca8 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/sshPublicKeysUpdateSample.ts @@ -35,7 +35,7 @@ async function sshPublicKeysUpdateMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", subscriptionId, resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ) .patch(options); console.log(result); @@ -63,7 +63,7 @@ async function sshPublicKeysUpdateMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", subscriptionId, resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ) .patch(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/usageListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/usageListSample.ts index bbaa7828bdeb..af86706912a4 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/usageListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/usageListSample.ts @@ -30,7 +30,7 @@ async function usageListMaximumSetGen() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/usages", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); @@ -60,7 +60,7 @@ async function usageListMinimumSetGen() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/usages", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionImagesGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionImagesGetSample.ts index 9210ec375cd4..726f18bbbfe6 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionImagesGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionImagesGetSample.ts @@ -35,7 +35,7 @@ async function virtualMachineExtensionImagesGetMaximumSetGen() { location, publisherName, type, - version + version, ) .get(options); console.log(result); @@ -66,7 +66,7 @@ async function virtualMachineExtensionImagesGetMinimumSetGen() { location, publisherName, type, - version + version, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionImagesListTypesSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionImagesListTypesSample.ts index 57f2f7cc070b..20c8592e8ce3 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionImagesListTypesSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionImagesListTypesSample.ts @@ -31,7 +31,7 @@ async function virtualMachineExtensionImagesListTypesMaximumSetGen() { "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types", subscriptionId, location, - publisherName + publisherName, ) .get(options); console.log(result); @@ -58,7 +58,7 @@ async function virtualMachineExtensionImagesListTypesMinimumSetGen() { "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types", subscriptionId, location, - publisherName + publisherName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionImagesListVersionsSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionImagesListVersionsSample.ts index a6e56ccbca88..9696e73378d0 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionImagesListVersionsSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionImagesListVersionsSample.ts @@ -38,7 +38,7 @@ async function virtualMachineExtensionImagesListVersionsMaximumSetGen() { subscriptionId, location, publisherName, - type + type, ) .get(options); console.log(result); @@ -67,7 +67,7 @@ async function virtualMachineExtensionImagesListVersionsMinimumSetGen() { subscriptionId, location, publisherName, - type + type, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsCreateOrUpdateSample.ts index d68444a948a7..32eb020c9d09 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsCreateOrUpdateSample.ts @@ -72,7 +72,7 @@ async function virtualMachineExtensionsCreateOrUpdateMaximumSetGen() { subscriptionId, resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -104,7 +104,7 @@ async function virtualMachineExtensionsCreateOrUpdateMinimumSetGen() { subscriptionId, resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsDeleteSample.ts index 9d72c1cad23a..b84d98e85856 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsDeleteSample.ts @@ -34,7 +34,7 @@ async function virtualMachineExtensionsDeleteMaximumSetGen() { subscriptionId, resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); @@ -65,7 +65,7 @@ async function virtualMachineExtensionsDeleteMinimumSetGen() { subscriptionId, resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsGetSample.ts index bbf67d9439e6..816509ccdeeb 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsGetSample.ts @@ -33,7 +33,7 @@ async function virtualMachineExtensionsGetMaximumSetGen() { subscriptionId, resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ) .get(options); console.log(result); @@ -62,7 +62,7 @@ async function virtualMachineExtensionsGetMinimumSetGen() { subscriptionId, resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsListSample.ts index 9d631669c110..2e09e20690f6 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsListSample.ts @@ -34,7 +34,7 @@ async function virtualMachineExtensionsListMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions", subscriptionId, resourceGroupName, - vmName + vmName, ) .get(options); console.log(result); @@ -61,7 +61,7 @@ async function virtualMachineExtensionsListMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions", subscriptionId, resourceGroupName, - vmName + vmName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsUpdateSample.ts index d4567d4c87f7..c7d345992dd7 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineExtensionsUpdateSample.ts @@ -51,7 +51,7 @@ async function updateVMExtension() { subscriptionId, resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneGetSample.ts index f6ca22bbddd6..f83b4c9b4ed8 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneGetSample.ts @@ -39,7 +39,7 @@ async function virtualMachineImagesEdgeZoneGetMaximumSetGen() { publisherName, offer, skus, - version + version, ) .get(options); console.log(result); @@ -74,7 +74,7 @@ async function virtualMachineImagesEdgeZoneGetMinimumSetGen() { publisherName, offer, skus, - version + version, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneListOffersSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneListOffersSample.ts index ee18ad1b6027..213ec65c9485 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneListOffersSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneListOffersSample.ts @@ -33,7 +33,7 @@ async function virtualMachineImagesEdgeZoneListOffersMaximumSetGen() { subscriptionId, location, edgeZone, - publisherName + publisherName, ) .get(options); console.log(result); @@ -62,7 +62,7 @@ async function virtualMachineImagesEdgeZoneListOffersMinimumSetGen() { subscriptionId, location, edgeZone, - publisherName + publisherName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneListPublishersSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneListPublishersSample.ts index 2aca29e9bde6..54e91befe9ae 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneListPublishersSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneListPublishersSample.ts @@ -31,7 +31,7 @@ async function virtualMachineImagesEdgeZoneListPublishersMaximumSetGen() { "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers", subscriptionId, location, - edgeZone + edgeZone, ) .get(options); console.log(result); @@ -58,7 +58,7 @@ async function virtualMachineImagesEdgeZoneListPublishersMinimumSetGen() { "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers", subscriptionId, location, - edgeZone + edgeZone, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneListSample.ts index 1b4790b4cc06..154a7d9773aa 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneListSample.ts @@ -42,7 +42,7 @@ async function virtualMachineImagesEdgeZoneListMaximumSetGen() { edgeZone, publisherName, offer, - skus + skus, ) .get(options); console.log(result); @@ -75,7 +75,7 @@ async function virtualMachineImagesEdgeZoneListMinimumSetGen() { edgeZone, publisherName, offer, - skus + skus, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneListSkusSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneListSkusSample.ts index e95e98d6233b..4933cc9b8d5c 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneListSkusSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesEdgeZoneListSkusSample.ts @@ -35,7 +35,7 @@ async function virtualMachineImagesEdgeZoneListSkusMaximumSetGen() { location, edgeZone, publisherName, - offer + offer, ) .get(options); console.log(result); @@ -66,7 +66,7 @@ async function virtualMachineImagesEdgeZoneListSkusMinimumSetGen() { location, edgeZone, publisherName, - offer + offer, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesGetSample.ts index 22b60e978c02..b497f1fe386c 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesGetSample.ts @@ -37,7 +37,7 @@ async function virtualMachineImagesGetMaximumSetGen() { publisherName, offer, skus, - version + version, ) .get(options); console.log(result); @@ -70,7 +70,7 @@ async function virtualMachineImagesGetMinimumSetGen() { publisherName, offer, skus, - version + version, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListByEdgeZoneSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListByEdgeZoneSample.ts index a32567d812a1..ea0c0623f93b 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListByEdgeZoneSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListByEdgeZoneSample.ts @@ -31,7 +31,7 @@ async function virtualMachineImagesEdgeZoneListByEdgeZoneMaximumSetGen() { "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/vmimages", subscriptionId, location, - edgeZone + edgeZone, ) .get(options); console.log(result); @@ -58,7 +58,7 @@ async function virtualMachineImagesEdgeZoneListByEdgeZoneMinimumSetGen() { "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/vmimages", subscriptionId, location, - edgeZone + edgeZone, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListOffersSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListOffersSample.ts index 8348b65f949c..ad8360e6907f 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListOffersSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListOffersSample.ts @@ -31,7 +31,7 @@ async function virtualMachineImagesListOffersMaximumSetGen() { "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers", subscriptionId, location, - publisherName + publisherName, ) .get(options); console.log(result); @@ -58,7 +58,7 @@ async function virtualMachineImagesListOffersMinimumSetGen() { "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers", subscriptionId, location, - publisherName + publisherName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListPublishersSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListPublishersSample.ts index 31435f1cf02d..ca1d27968c3f 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListPublishersSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListPublishersSample.ts @@ -29,7 +29,7 @@ async function virtualMachineImagesListPublishersMaximumSetGen() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers", subscriptionId, - location + location, ) .get(options); console.log(result); @@ -54,7 +54,7 @@ async function virtualMachineImagesListPublishersMinimumSetGen() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers", subscriptionId, - location + location, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListSample.ts index cc62c6ed4ba9..e8e03139d517 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListSample.ts @@ -40,7 +40,7 @@ async function virtualMachineImagesListMaximumSetGen() { location, publisherName, offer, - skus + skus, ) .get(options); console.log(result); @@ -71,7 +71,7 @@ async function virtualMachineImagesListMinimumSetGen() { location, publisherName, offer, - skus + skus, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListSkusSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListSkusSample.ts index ca0d29730d00..e26d649c02a6 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListSkusSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineImagesListSkusSample.ts @@ -33,7 +33,7 @@ async function virtualMachineImagesListSkusMaximumSetGen() { subscriptionId, location, publisherName, - offer + offer, ) .get(options); console.log(result); @@ -62,7 +62,7 @@ async function virtualMachineImagesListSkusMinimumSetGen() { subscriptionId, location, publisherName, - offer + offer, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsCreateOrUpdateSample.ts index 9917b6c0f61d..f89a65743abc 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsCreateOrUpdateSample.ts @@ -48,7 +48,7 @@ async function createOrUpdateARunCommand() { subscriptionId, resourceGroupName, vmName, - runCommandName + runCommandName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsDeleteSample.ts index 8b794203ad80..51e6d35bb8ff 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteARunCommand() { subscriptionId, resourceGroupName, vmName, - runCommandName + runCommandName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsGetByVirtualMachineSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsGetByVirtualMachineSample.ts index 51a24dd22250..58e38e3ee838 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsGetByVirtualMachineSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsGetByVirtualMachineSample.ts @@ -33,7 +33,7 @@ async function getARunCommand() { subscriptionId, resourceGroupName, vmName, - runCommandName + runCommandName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsGetSample.ts index 2b9d33973a69..76e8c874bbce 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsGetSample.ts @@ -31,7 +31,7 @@ async function virtualMachineRunCommandGet() { "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands/{commandId}", subscriptionId, location, - commandId + commandId, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsListByVirtualMachineSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsListByVirtualMachineSample.ts index 8d8a9cbd2be2..623b3e794bf2 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsListByVirtualMachineSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsListByVirtualMachineSample.ts @@ -32,7 +32,7 @@ async function listRunCommandsInAVirtualMachine() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands", subscriptionId, resourceGroupName, - vmName + vmName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsListSample.ts index 87947e669b72..c817f6772e4b 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsListSample.ts @@ -30,7 +30,7 @@ async function virtualMachineRunCommandList() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsUpdateSample.ts index 75b999bcb67c..15072e782eae 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineRunCommandsUpdateSample.ts @@ -37,7 +37,7 @@ async function updateARunCommand() { subscriptionId, resourceGroupName, vmName, - runCommandName + runCommandName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts index b83b43ea6ee9..30d447e06ba9 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts @@ -49,7 +49,7 @@ async function virtualMachineScaleSetExtensionsCreateOrUpdateMaximumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - vmssExtensionName + vmssExtensionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -81,7 +81,7 @@ async function virtualMachineScaleSetExtensionsCreateOrUpdateMinimumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - vmssExtensionName + vmssExtensionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsDeleteSample.ts index 59a55f73266e..cfa58b14b873 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsDeleteSample.ts @@ -34,7 +34,7 @@ async function virtualMachineScaleSetExtensionsDeleteMaximumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - vmssExtensionName + vmssExtensionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); @@ -65,7 +65,7 @@ async function virtualMachineScaleSetExtensionsDeleteMinimumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - vmssExtensionName + vmssExtensionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsGetSample.ts index 376ff6e53de8..6aec40ccdb71 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsGetSample.ts @@ -33,7 +33,7 @@ async function virtualMachineScaleSetExtensionsGetMaximumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - vmssExtensionName + vmssExtensionName, ) .get(options); console.log(result); @@ -62,7 +62,7 @@ async function virtualMachineScaleSetExtensionsGetMinimumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - vmssExtensionName + vmssExtensionName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsListSample.ts index 7507bd0220a6..361907369bf8 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsListSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetExtensionsListMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -64,7 +64,7 @@ async function virtualMachineScaleSetExtensionsListMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsUpdateSample.ts index 63ffa54fdc7c..7c6f66dd2fdb 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetExtensionsUpdateSample.ts @@ -48,7 +48,7 @@ async function virtualMachineScaleSetExtensionsUpdateMaximumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - vmssExtensionName + vmssExtensionName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -80,7 +80,7 @@ async function virtualMachineScaleSetExtensionsUpdateMinimumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - vmssExtensionName + vmssExtensionName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetRollingUpgradesCancelSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetRollingUpgradesCancelSample.ts index e2b408907800..a661925dfba6 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetRollingUpgradesCancelSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetRollingUpgradesCancelSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetRollingUpgradesCancelMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -61,7 +61,7 @@ async function virtualMachineScaleSetRollingUpgradesCancelMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts index a349312827e2..6514537f2992 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts @@ -31,7 +31,7 @@ async function virtualMachineScaleSetRollingUpgradesGetLatestMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .get(options); console.log(result); @@ -58,7 +58,7 @@ async function virtualMachineScaleSetRollingUpgradesGetLatestMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts index 7902860219ae..a3a14d2699ee 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts @@ -32,7 +32,7 @@ async function startAnExtensionRollingUpgrade() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts index 626752e985d5..1d8aacf16b48 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetRollingUpgradesStartOSUpgradeMaximumSetGen( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -61,7 +61,7 @@ async function virtualMachineScaleSetRollingUpgradesStartOSUpgradeMinimumSetGen( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts index 04f607542934..a58cde8b5d99 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts @@ -45,7 +45,7 @@ async function createVirtualMachineScaleSetVMExtension() { resourceGroupName, vmScaleSetName, instanceId, - vmExtensionName + vmExtensionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsDeleteSample.ts index 30eb68251899..e01815b26f1e 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsDeleteSample.ts @@ -36,7 +36,7 @@ async function deleteVirtualMachineScaleSetVMExtension() { resourceGroupName, vmScaleSetName, instanceId, - vmExtensionName + vmExtensionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsGetSample.ts index 03ff548c6e13..263a9e363f92 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsGetSample.ts @@ -35,7 +35,7 @@ async function getVirtualMachineScaleSetVMExtension() { resourceGroupName, vmScaleSetName, instanceId, - vmExtensionName + vmExtensionName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsListSample.ts index 713b9cb4ec02..d2110bb8eada 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsListSample.ts @@ -33,7 +33,7 @@ async function listExtensionsInVmssInstance() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsUpdateSample.ts index 04f56f31a1c5..7ce758a9e412 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMExtensionsUpdateSample.ts @@ -45,7 +45,7 @@ async function updateVirtualMachineScaleSetVMExtension() { resourceGroupName, vmScaleSetName, instanceId, - vmExtensionName + vmExtensionName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts index 7738786f9561..6a41676dd7d4 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts @@ -50,7 +50,7 @@ async function createVirtualMachineScaleSetVMRunCommand() { resourceGroupName, vmScaleSetName, instanceId, - runCommandName + runCommandName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsDeleteSample.ts index eb55bb41b7bd..658c5d30565f 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsDeleteSample.ts @@ -36,7 +36,7 @@ async function deleteVirtualMachineScaleSetVMRunCommand() { resourceGroupName, vmScaleSetName, instanceId, - runCommandName + runCommandName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsGetSample.ts index 3b3ba12d235a..d2a509223eef 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsGetSample.ts @@ -35,7 +35,7 @@ async function getVirtualMachineScaleSetVMRunCommands() { resourceGroupName, vmScaleSetName, instanceId, - runCommandName + runCommandName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsListSample.ts index 8763ab81241d..d934658220e8 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsListSample.ts @@ -34,7 +34,7 @@ async function listRunCommandsInVmssInstance() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsUpdateSample.ts index 82dbf80ab174..8d2b0f2a21fc 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMRunCommandsUpdateSample.ts @@ -39,7 +39,7 @@ async function updateVirtualMachineScaleSetVMRunCommand() { resourceGroupName, vmScaleSetName, instanceId, - runCommandName + runCommandName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSDeallocateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSDeallocateSample.ts index 9995160fe90d..97835232d664 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSDeallocateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSDeallocateSample.ts @@ -34,7 +34,7 @@ async function virtualMachineScaleSetVMSDeallocateMaximumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -65,7 +65,7 @@ async function virtualMachineScaleSetVMSDeallocateMinimumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSDeleteSample.ts index 438f2914d2f8..e533a02214f9 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSDeleteSample.ts @@ -34,7 +34,7 @@ async function forceDeleteAVirtualMachineFromAVMScaleSet() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSGetInstanceViewSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSGetInstanceViewSample.ts index e9ca3d085afb..1d54a11ffffa 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSGetInstanceViewSample.ts @@ -33,12 +33,12 @@ async function getInstanceViewOfAVirtualMachineFromAVMScaleSetPlacedOnADedicated subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .get(options); console.log(result); } getInstanceViewOfAVirtualMachineFromAVMScaleSetPlacedOnADedicatedHostGroupThroughAutomaticPlacement().catch( - console.error + console.error, ); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSGetSample.ts index 99f994db1f13..4e3528a36872 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSGetSample.ts @@ -33,7 +33,7 @@ async function getVMScaleSetVMWithUserData() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .get(options); console.log(result); @@ -62,7 +62,7 @@ async function getVMScaleSetVMWithVMSizeProperties() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSListSample.ts index c3f2920cb3a8..fcd3deb784eb 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSListSample.ts @@ -37,7 +37,7 @@ async function virtualMachineScaleSetVMSListMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines", subscriptionId, resourceGroupName, - virtualMachineScaleSetName + virtualMachineScaleSetName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -69,7 +69,7 @@ async function virtualMachineScaleSetVMSListMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines", subscriptionId, resourceGroupName, - virtualMachineScaleSetName + virtualMachineScaleSetName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSPerformMaintenanceSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSPerformMaintenanceSample.ts index a334a596a7b0..edd402b0a952 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSPerformMaintenanceSample.ts @@ -34,7 +34,7 @@ async function virtualMachineScaleSetVMSPerformMaintenanceMaximumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -65,7 +65,7 @@ async function virtualMachineScaleSetVMSPerformMaintenanceMinimumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSPowerOffSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSPowerOffSample.ts index 9b992ac72f6c..23e364f3ba36 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSPowerOffSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSPowerOffSample.ts @@ -34,7 +34,7 @@ async function virtualMachineScaleSetVMSPowerOffMaximumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -65,7 +65,7 @@ async function virtualMachineScaleSetVMSPowerOffMinimumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSRedeploySample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSRedeploySample.ts index 76b3c9cda6c5..b16db603977c 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSRedeploySample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSRedeploySample.ts @@ -34,7 +34,7 @@ async function virtualMachineScaleSetVMSRedeployMaximumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -65,7 +65,7 @@ async function virtualMachineScaleSetVMSRedeployMinimumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSReimageAllSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSReimageAllSample.ts index dff5c8e2a59c..5f91956d1294 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSReimageAllSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSReimageAllSample.ts @@ -34,7 +34,7 @@ async function virtualMachineScaleSetVMSReimageAllMaximumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -65,7 +65,7 @@ async function virtualMachineScaleSetVMSReimageAllMinimumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSReimageSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSReimageSample.ts index ee79c10490a2..b2a96e055b24 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSReimageSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSReimageSample.ts @@ -35,7 +35,7 @@ async function virtualMachineScaleSetVMSReimageMaximumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -66,7 +66,7 @@ async function virtualMachineScaleSetVMSReimageMinimumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSRestartSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSRestartSample.ts index 2d647eb87a13..ab12e9904e8a 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSRestartSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSRestartSample.ts @@ -34,7 +34,7 @@ async function virtualMachineScaleSetVMSRestartMaximumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -65,7 +65,7 @@ async function virtualMachineScaleSetVMSRestartMinimumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts index 448a4568ad0a..f6250872f7a2 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts @@ -36,7 +36,7 @@ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSRunCommandSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSRunCommandSample.ts index 39f5d993091b..68a0b825709f 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSRunCommandSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSRunCommandSample.ts @@ -38,7 +38,7 @@ async function virtualMachineScaleSetVMSRunCommand() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSSimulateEvictionSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSSimulateEvictionSample.ts index da80a572bd85..1489fe626b96 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSSimulateEvictionSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSSimulateEvictionSample.ts @@ -33,7 +33,7 @@ async function simulateEvictionAVirtualMachine() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSStartSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSStartSample.ts index 5c2a974d2eb1..2895941ac2d7 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSStartSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSStartSample.ts @@ -34,7 +34,7 @@ async function virtualMachineScaleSetVMSStartMaximumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -65,7 +65,7 @@ async function virtualMachineScaleSetVMSStartMinimumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSUpdateSample.ts index a90b1cb5d40c..b64c38808a19 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetVMSUpdateSample.ts @@ -454,7 +454,7 @@ async function virtualMachineScaleSetVMSUpdateMaximumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -486,7 +486,7 @@ async function virtualMachineScaleSetVMSUpdateMinimumSetGen() { subscriptionId, resourceGroupName, vmScaleSetName, - instanceId + instanceId, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts index eccebf229c6a..b5ab64c88033 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetsConvertToSinglePlacementGroupMaximumSetGen "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); console.log(result); @@ -60,7 +60,7 @@ async function virtualMachineScaleSetsConvertToSinglePlacementGroupMinimumSetGen "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsCreateOrUpdateSample.ts index 31abc9f1da51..3ce930fc2ee2 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsCreateOrUpdateSample.ts @@ -102,7 +102,7 @@ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -207,7 +207,7 @@ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -282,7 +282,7 @@ async function createACustomImageScaleSetFromAnUnmanagedGeneralizedOSImage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -367,7 +367,7 @@ async function createAPlatformImageScaleSetWithUnmanagedOSDisks() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -442,7 +442,7 @@ async function createAScaleSetFromACustomImage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -517,7 +517,7 @@ async function createAScaleSetFromAGeneralizedSharedImage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -587,7 +587,7 @@ async function createAScaleSetFromASpecializedSharedImage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -685,7 +685,7 @@ async function createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProperty() "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -781,7 +781,7 @@ async function createAScaleSetWithApplicationProfile() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -864,7 +864,7 @@ async function createAScaleSetWithDiskControllerType() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -958,7 +958,7 @@ async function createAScaleSetWithDiskEncryptionSetResourceInOSDiskAndDataDisk() "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1054,7 +1054,7 @@ async function createAScaleSetWithFpgaNetworkInterfaces() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1138,7 +1138,7 @@ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1223,7 +1223,7 @@ async function createAScaleSetWithSecurityTypeAsConfidentialVM() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1305,7 +1305,7 @@ async function createAScaleSetWithUefiSettingsOfSecureBootAndVTpm() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1388,7 +1388,7 @@ async function createAScaleSetWithAMarketplaceImagePlan() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1471,7 +1471,7 @@ async function createAScaleSetWithAnAzureApplicationGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1563,7 +1563,7 @@ async function createAScaleSetWithAnAzureLoadBalancer() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1642,7 +1642,7 @@ async function createAScaleSetWithAutomaticRepairsEnabled() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1726,7 +1726,7 @@ async function createAScaleSetWithBootDiagnostics() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1809,7 +1809,7 @@ async function createAScaleSetWithEmptyDataDisksOnEachVM() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1893,7 +1893,7 @@ async function createAScaleSetWithEphemeralOSDisksUsingPlacementProperty() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1977,7 +1977,7 @@ async function createAScaleSetWithEphemeralOSDisks() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2076,7 +2076,7 @@ async function createAScaleSetWithExtensionTimeBudget() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2155,7 +2155,7 @@ async function createAScaleSetWithManagedBootDiagnostics() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2233,7 +2233,7 @@ async function createAScaleSetWithPasswordAuthentication() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2311,7 +2311,7 @@ async function createAScaleSetWithPremiumStorage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2396,7 +2396,7 @@ async function createAScaleSetWithPriorityMixPolicy() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2475,7 +2475,7 @@ async function createAScaleSetWithScaleInPolicy() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2557,7 +2557,7 @@ async function createAScaleSetWithSpotRestorePolicy() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2646,7 +2646,7 @@ async function createAScaleSetWithSshAuthentication() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2730,7 +2730,7 @@ async function createAScaleSetWithTerminateScheduledEventsEnabled() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2809,7 +2809,7 @@ async function createAScaleSetWithUserData() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2893,7 +2893,7 @@ async function createAScaleSetWithVirtualMachinesInDifferentZones() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2975,7 +2975,7 @@ async function createAScaleSetWithVMSizeProperties() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -3058,7 +3058,7 @@ async function createOrUpdateAScaleSetWithCapacityReservation() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsDeallocateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsDeallocateSample.ts index 2d286b7dda88..c04b133d9608 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsDeallocateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsDeallocateSample.ts @@ -33,7 +33,7 @@ async function virtualMachineScaleSetsDeallocateMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -62,7 +62,7 @@ async function virtualMachineScaleSetsDeallocateMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsDeleteInstancesSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsDeleteInstancesSample.ts index 19a2edf7bb29..3aec16ab01aa 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsDeleteInstancesSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsDeleteInstancesSample.ts @@ -33,7 +33,7 @@ async function virtualMachineScaleSetsDeleteInstancesMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -63,7 +63,7 @@ async function virtualMachineScaleSetsDeleteInstancesMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsDeleteSample.ts index 91608a2b5762..7bcb5559bc86 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsDeleteSample.ts @@ -32,7 +32,7 @@ async function forceDeleteAVMScaleSet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts index 80ba0e2456d4..a05245cd78bc 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts @@ -32,14 +32,14 @@ async function virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDo "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); console.log(result); } virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkMaximumSetGen().catch( - console.error + console.error, ); /** * This sample demonstrates how to Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. @@ -62,12 +62,12 @@ async function virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDo "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); console.log(result); } virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkMinimumSetGen().catch( - console.error + console.error, ); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsGetInstanceViewSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsGetInstanceViewSample.ts index d87ca62e690a..0af864669000 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsGetInstanceViewSample.ts @@ -31,7 +31,7 @@ async function virtualMachineScaleSetsGetInstanceViewMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .get(options); console.log(result); @@ -58,7 +58,7 @@ async function virtualMachineScaleSetsGetInstanceViewMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts index 62599868404a..e3494e33244c 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetsGetOSUpgradeHistoryMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -64,7 +64,7 @@ async function virtualMachineScaleSetsGetOSUpgradeHistoryMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsGetSample.ts index ebfb193abbac..ca9c79bd777f 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsGetSample.ts @@ -31,7 +31,7 @@ async function getVMScaleSetVMWithDiskControllerType() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .get(options); console.log(result); @@ -58,7 +58,7 @@ async function getAVirtualMachineScaleSet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .get(options); console.log(result); @@ -85,14 +85,14 @@ async function getAVirtualMachineScaleSetPlacedOnADedicatedHostGroupThroughAutom "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .get(options); console.log(result); } getAVirtualMachineScaleSetPlacedOnADedicatedHostGroupThroughAutomaticPlacement().catch( - console.error + console.error, ); /** * This sample demonstrates how to Display information about a virtual machine scale set. @@ -114,7 +114,7 @@ async function getAVirtualMachineScaleSetWithUserData() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsListAllSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsListAllSample.ts index 253269a343eb..1735276516a6 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsListAllSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsListAllSample.ts @@ -28,7 +28,7 @@ async function virtualMachineScaleSetsListAllMaximumSetGen() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); @@ -56,7 +56,7 @@ async function virtualMachineScaleSetsListAllMinimumSetGen() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsListByLocationSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsListByLocationSample.ts index 3c7b518efca7..788b304758b1 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsListByLocationSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsListByLocationSample.ts @@ -30,7 +30,7 @@ async function listsAllTheVMScaleSetsUnderTheSpecifiedSubscriptionForTheSpecifie .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsListSample.ts index 17110b367616..999d2cc241c0 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsListSample.ts @@ -30,7 +30,7 @@ async function virtualMachineScaleSetsListMaximumSetGen() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -60,7 +60,7 @@ async function virtualMachineScaleSetsListMinimumSetGen() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsListSkusSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsListSkusSample.ts index 6b16785ec91a..954b29ed8c3b 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsListSkusSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsListSkusSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetsListSkusMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -64,7 +64,7 @@ async function virtualMachineScaleSetsListSkusMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsPerformMaintenanceSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsPerformMaintenanceSample.ts index 5f1aeecb9d61..1c2809ff1628 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsPerformMaintenanceSample.ts @@ -33,7 +33,7 @@ async function virtualMachineScaleSetsPerformMaintenanceMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -62,7 +62,7 @@ async function virtualMachineScaleSetsPerformMaintenanceMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsPowerOffSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsPowerOffSample.ts index ffa0715ea835..778415b57ac8 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsPowerOffSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsPowerOffSample.ts @@ -33,7 +33,7 @@ async function virtualMachineScaleSetsPowerOffMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -62,7 +62,7 @@ async function virtualMachineScaleSetsPowerOffMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsRedeploySample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsRedeploySample.ts index 682332940aa7..1fcb9500f379 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsRedeploySample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsRedeploySample.ts @@ -33,7 +33,7 @@ async function virtualMachineScaleSetsRedeployMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -62,7 +62,7 @@ async function virtualMachineScaleSetsRedeployMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsReimageAllSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsReimageAllSample.ts index fdd69c75b7b5..c9228a44f5db 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsReimageAllSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsReimageAllSample.ts @@ -33,7 +33,7 @@ async function virtualMachineScaleSetsReimageAllMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -62,7 +62,7 @@ async function virtualMachineScaleSetsReimageAllMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsReimageSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsReimageSample.ts index 42e191c6d69a..1bda1fbfa3a2 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsReimageSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsReimageSample.ts @@ -33,7 +33,7 @@ async function virtualMachineScaleSetsReimageMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -62,7 +62,7 @@ async function virtualMachineScaleSetsReimageMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsRestartSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsRestartSample.ts index d4a84dd33348..9037dfe9d5f7 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsRestartSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsRestartSample.ts @@ -33,7 +33,7 @@ async function virtualMachineScaleSetsRestartMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -62,7 +62,7 @@ async function virtualMachineScaleSetsRestartMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts index 8cb8816b57ea..928347ee6608 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts @@ -33,7 +33,7 @@ async function virtualMachineScaleSetsSetOrchestrationServiceStateMaximumSetGen( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -63,7 +63,7 @@ async function virtualMachineScaleSetsSetOrchestrationServiceStateMinimumSetGen( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsStartSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsStartSample.ts index d6db81d3615b..517c1f125d5f 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsStartSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsStartSample.ts @@ -33,7 +33,7 @@ async function virtualMachineScaleSetsStartMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -62,7 +62,7 @@ async function virtualMachineScaleSetsStartMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsUpdateInstancesSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsUpdateInstancesSample.ts index ffa1ff8cf085..1c78a5c031fe 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsUpdateInstancesSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsUpdateInstancesSample.ts @@ -33,7 +33,7 @@ async function virtualMachineScaleSetsUpdateInstancesMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -63,7 +63,7 @@ async function virtualMachineScaleSetsUpdateInstancesMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsUpdateSample.ts index 56fc229cd99c..4576b83e75b1 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineScaleSetsUpdateSample.ts @@ -277,7 +277,7 @@ async function virtualMachineScaleSetsUpdateMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -307,7 +307,7 @@ async function virtualMachineScaleSetsUpdateMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId, resourceGroupName, - vmScaleSetName + vmScaleSetName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineSizesListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineSizesListSample.ts index 92b1c6c9f5b0..79393b24b8ec 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachineSizesListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachineSizesListSample.ts @@ -30,7 +30,7 @@ async function virtualMachineSizesListMaximumSetGen() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizes", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); @@ -60,7 +60,7 @@ async function virtualMachineSizesListMinimumSetGen() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizes", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesAssessPatchesSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesAssessPatchesSample.ts index ddd2fd3c8a4a..1344e5fc43a0 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesAssessPatchesSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesAssessPatchesSample.ts @@ -32,7 +32,7 @@ async function assessPatchStateOfAVirtualMachine() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesCaptureSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesCaptureSample.ts index 04775658c723..a81178f173f2 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesCaptureSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesCaptureSample.ts @@ -37,7 +37,7 @@ async function virtualMachinesCaptureMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -71,7 +71,7 @@ async function virtualMachinesCaptureMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesConvertToManagedDisksSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesConvertToManagedDisksSample.ts index 2ffe0d65dd62..f95b3ceec280 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesConvertToManagedDisksSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesConvertToManagedDisksSample.ts @@ -32,7 +32,7 @@ async function virtualMachinesConvertToManagedDisksMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -61,7 +61,7 @@ async function virtualMachinesConvertToManagedDisksMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesCreateOrUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesCreateOrUpdateSample.ts index a5e4b300e322..57750c9c07b9 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesCreateOrUpdateSample.ts @@ -69,7 +69,7 @@ async function createALinuxVMWithAPatchSettingAssessmentModeOfImageDefault() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -139,7 +139,7 @@ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndA "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -148,7 +148,7 @@ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndA } createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndAutomaticByPlatformSettings().catch( - console.error + console.error, ); /** * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. @@ -207,7 +207,7 @@ async function createALinuxVMWithAPatchSettingPatchModeOfImageDefault() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -276,7 +276,7 @@ async function createALinuxVMWithAPatchSettingsPatchModeAndAssessmentModeSetToAu "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -285,7 +285,7 @@ async function createALinuxVMWithAPatchSettingsPatchModeAndAssessmentModeSetToAu } createALinuxVMWithAPatchSettingsPatchModeAndAssessmentModeSetToAutomaticByPlatform().catch( - console.error + console.error, ); /** * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. @@ -338,7 +338,7 @@ async function createAVMFromACommunityGalleryImage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -398,7 +398,7 @@ async function createAVMFromASharedGalleryImage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -468,7 +468,7 @@ async function createAVMWithDiskControllerType() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -537,7 +537,7 @@ async function createAVMWithHibernationEnabled() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -603,7 +603,7 @@ async function createAVMWithUefiSettingsOfSecureBootAndVTpm() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -672,7 +672,7 @@ async function createAVMWithUserData() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -744,7 +744,7 @@ async function createAVMWithVMSizeProperties() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -826,7 +826,7 @@ async function createAVMWithNetworkInterfaceConfiguration() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -900,7 +900,7 @@ async function createAVMWithSecurityTypeConfidentialVMWithCustomerManagedKeys() "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -971,7 +971,7 @@ async function createAVMWithSecurityTypeConfidentialVMWithPlatformManagedKeys() "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1038,7 +1038,7 @@ async function createAWindowsVMWithAPatchSettingAssessmentModeOfImageDefault() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1105,7 +1105,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByOS() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1176,7 +1176,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1185,7 +1185,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn } createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndAutomaticByPlatformSettings().catch( - console.error + console.error, ); /** * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. @@ -1248,7 +1248,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1257,7 +1257,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn } createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndEnableHotpatchingSetToTrue().catch( - console.error + console.error, ); /** * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. @@ -1317,7 +1317,7 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfManual() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1387,7 +1387,7 @@ async function createAWindowsVMWithPatchSettingsPatchModeAndAssessmentModeSetToA "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1396,7 +1396,7 @@ async function createAWindowsVMWithPatchSettingsPatchModeAndAssessmentModeSetToA } createAWindowsVMWithPatchSettingsPatchModeAndAssessmentModeSetToAutomaticByPlatform().catch( - console.error + console.error, ); /** * This sample demonstrates how to The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. @@ -1451,7 +1451,7 @@ async function createACustomImageVMFromAnUnmanagedGeneralizedOSImage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1533,7 +1533,7 @@ async function createAPlatformImageVMWithUnmanagedOSAndDataDisks() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1592,7 +1592,7 @@ async function createAVMFromACustomImage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1651,7 +1651,7 @@ async function createAVMFromAGeneralizedSharedImage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1705,7 +1705,7 @@ async function createAVMFromASpecializedSharedImage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1771,7 +1771,7 @@ async function createAVMInAVirtualMachineScaleSetWithCustomerAssignedPlatformFau "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1836,7 +1836,7 @@ async function createAVMInAnAvailabilitySet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -1916,7 +1916,7 @@ async function createAVMWithApplicationProfile() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2007,7 +2007,7 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2075,7 +2075,7 @@ async function createAVMWithHostEncryptionUsingEncryptionAtHostProperty() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2149,7 +2149,7 @@ async function createAVMWithScheduledEventsProfile() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2216,7 +2216,7 @@ async function createAVMWithAMarketplaceImagePlan() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2285,7 +2285,7 @@ async function createAVMWithAnExtensionsTimeBudget() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2353,7 +2353,7 @@ async function createAVMWithBootDiagnostics() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2419,7 +2419,7 @@ async function createAVMWithEmptyDataDisks() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2487,7 +2487,7 @@ async function createAVMWithEphemeralOSDiskProvisioningInCacheDiskUsingPlacement "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2555,7 +2555,7 @@ async function createAVMWithEphemeralOSDiskProvisioningInResourceDiskUsingPlacem "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2623,7 +2623,7 @@ async function createAVMWithEphemeralOSDisk() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2686,7 +2686,7 @@ async function createAVMWithManagedBootDiagnostics() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2748,7 +2748,7 @@ async function createAVMWithPasswordAuthentication() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2810,7 +2810,7 @@ async function createAVMWithPremiumStorage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2883,7 +2883,7 @@ async function createAVMWithSshAuthentication() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -2955,7 +2955,7 @@ async function createOrUpdateAVMWithCapacityReservation() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesDeallocateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesDeallocateSample.ts index e7e4aca66b05..714083ff0d18 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesDeallocateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesDeallocateSample.ts @@ -32,7 +32,7 @@ async function virtualMachinesDeallocateMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -61,7 +61,7 @@ async function virtualMachinesDeallocateMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesDeleteSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesDeleteSample.ts index 62fd34729230..4ba5180f7dea 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesDeleteSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesDeleteSample.ts @@ -32,7 +32,7 @@ async function forceDeleteAVM() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesGeneralizeSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesGeneralizeSample.ts index 91ef8a1d31e7..981ca22d38c3 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesGeneralizeSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesGeneralizeSample.ts @@ -31,7 +31,7 @@ async function generalizeAVirtualMachine() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesGetSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesGetSample.ts index e70dbaa6fa3c..f4298aeaa92d 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesGetSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesGetSample.ts @@ -31,7 +31,7 @@ async function getAVirtualMachine() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .get(options); console.log(result); @@ -58,7 +58,7 @@ async function getAVirtualMachinePlacedOnADedicatedHostGroupThroughAutomaticPlac "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .get(options); console.log(result); @@ -85,7 +85,7 @@ async function getAVirtualMachineWithDiskControllerTypeProperties() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .get(options); console.log(result); @@ -112,7 +112,7 @@ async function getAVirtualMachineWithVMSizeProperties() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .get(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesInstallPatchesSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesInstallPatchesSample.ts index a09f17ccdd4f..875d5a1e5997 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesInstallPatchesSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesInstallPatchesSample.ts @@ -40,7 +40,7 @@ async function installPatchStateOfAVirtualMachine() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesInstanceViewSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesInstanceViewSample.ts index 0da7d801e712..42e7c918a79e 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesInstanceViewSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesInstanceViewSample.ts @@ -31,7 +31,7 @@ async function getVirtualMachineInstanceView() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView", subscriptionId, resourceGroupName, - vmName + vmName, ) .get(options); console.log(result); @@ -58,12 +58,12 @@ async function getInstanceViewOfAVirtualMachinePlacedOnADedicatedHostGroupThroug "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView", subscriptionId, resourceGroupName, - vmName + vmName, ) .get(options); console.log(result); } getInstanceViewOfAVirtualMachinePlacedOnADedicatedHostGroupThroughAutomaticPlacement().catch( - console.error + console.error, ); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesListAllSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesListAllSample.ts index 4bc23b6db9d5..d04944fef52e 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesListAllSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesListAllSample.ts @@ -32,7 +32,7 @@ async function virtualMachinesListAllMaximumSetGen() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); @@ -60,7 +60,7 @@ async function virtualMachinesListAllMinimumSetGen() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesListAvailableSizesSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesListAvailableSizesSample.ts index 0171b8540df7..f840d5fa8b21 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesListAvailableSizesSample.ts @@ -32,7 +32,7 @@ async function listsAllAvailableVirtualMachineSizesToWhichTheSpecifiedVirtualMac "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes", subscriptionId, resourceGroupName, - vmName + vmName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -44,5 +44,5 @@ async function listsAllAvailableVirtualMachineSizesToWhichTheSpecifiedVirtualMac } listsAllAvailableVirtualMachineSizesToWhichTheSpecifiedVirtualMachineCanBeResized().catch( - console.error + console.error, ); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesListByLocationSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesListByLocationSample.ts index 6afb7f9c9bf1..fcbfb31ab7ec 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesListByLocationSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesListByLocationSample.ts @@ -30,7 +30,7 @@ async function listsAllTheVirtualMachinesUnderTheSpecifiedSubscriptionForTheSpec .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); @@ -42,5 +42,5 @@ async function listsAllTheVirtualMachinesUnderTheSpecifiedSubscriptionForTheSpec } listsAllTheVirtualMachinesUnderTheSpecifiedSubscriptionForTheSpecifiedLocation().catch( - console.error + console.error, ); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesListSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesListSample.ts index f42671ba97df..f61a41c4052c 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesListSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesListSample.ts @@ -33,7 +33,7 @@ async function virtualMachinesListMaximumSetGen() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -63,7 +63,7 @@ async function virtualMachinesListMinimumSetGen() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesPerformMaintenanceSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesPerformMaintenanceSample.ts index 92d5ec1a5050..c6f065d40c9e 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesPerformMaintenanceSample.ts @@ -32,7 +32,7 @@ async function virtualMachinesPerformMaintenanceMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -61,7 +61,7 @@ async function virtualMachinesPerformMaintenanceMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesPowerOffSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesPowerOffSample.ts index 073c6ef1f093..7050b78436d5 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesPowerOffSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesPowerOffSample.ts @@ -32,7 +32,7 @@ async function virtualMachinesPowerOffMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -61,7 +61,7 @@ async function virtualMachinesPowerOffMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesReapplySample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesReapplySample.ts index 462829c17ec9..7a18bea81c50 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesReapplySample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesReapplySample.ts @@ -32,7 +32,7 @@ async function reapplyTheStateOfAVirtualMachine() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesRedeploySample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesRedeploySample.ts index ddf85422f5e2..59f5cae981ae 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesRedeploySample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesRedeploySample.ts @@ -32,7 +32,7 @@ async function virtualMachinesRedeployMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -61,7 +61,7 @@ async function virtualMachinesRedeployMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesReimageSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesReimageSample.ts index 126ef2e52cc0..dcea38467c63 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesReimageSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesReimageSample.ts @@ -33,7 +33,7 @@ async function reimageAVirtualMachine() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesRestartSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesRestartSample.ts index 88dd75c72fa3..5d02d7c57b3a 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesRestartSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesRestartSample.ts @@ -32,7 +32,7 @@ async function virtualMachinesRestartMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -61,7 +61,7 @@ async function virtualMachinesRestartMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesRetrieveBootDiagnosticsDataSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesRetrieveBootDiagnosticsDataSample.ts index e386e02ef23e..09a850786a24 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesRetrieveBootDiagnosticsDataSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesRetrieveBootDiagnosticsDataSample.ts @@ -34,7 +34,7 @@ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesRunCommandSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesRunCommandSample.ts index b05c2253c934..365d4066a326 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesRunCommandSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesRunCommandSample.ts @@ -33,7 +33,7 @@ async function virtualMachineRunCommand() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesSimulateEvictionSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesSimulateEvictionSample.ts index 6fa956f93202..fef00dba4a94 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesSimulateEvictionSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesSimulateEvictionSample.ts @@ -31,7 +31,7 @@ async function simulateEvictionAVirtualMachine() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); console.log(result); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesStartSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesStartSample.ts index 674a9052c7f0..193d6c5d19d2 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesStartSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesStartSample.ts @@ -32,7 +32,7 @@ async function virtualMachinesStartMaximumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -61,7 +61,7 @@ async function virtualMachinesStartMinimumSetGen() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start", subscriptionId, resourceGroupName, - vmName + vmName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesUpdateSample.ts b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesUpdateSample.ts index eadb0adc519f..f7cbb0235868 100644 --- a/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesUpdateSample.ts +++ b/sdk/compute/arm-compute-rest/samples-dev/virtualMachinesUpdateSample.ts @@ -78,7 +78,7 @@ async function updateAVMByDetachingDataDisk() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); @@ -154,7 +154,7 @@ async function updateAVMByForceDetachingDataDisk() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - vmName + vmName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/src/clientDefinitions.ts b/sdk/compute/arm-compute-rest/src/clientDefinitions.ts index a2bd6b4848d2..fc620725a630 100644 --- a/sdk/compute/arm-compute-rest/src/clientDefinitions.ts +++ b/sdk/compute/arm-compute-rest/src/clientDefinitions.ts @@ -973,28 +973,28 @@ import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface OperationsList { /** Gets a list of compute operations. */ get( - options: OperationsListParameters + options: OperationsListParameters, ): StreamableMethod; } export interface UsageList { /** Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. */ get( - options: UsageListParameters + options: UsageListParameters, ): StreamableMethod; } export interface VirtualMachineSizesList { /** This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list) */ get( - options: VirtualMachineSizesListParameters + options: VirtualMachineSizesListParameters, ): StreamableMethod; } export interface VirtualMachineScaleSetsListByLocation { /** Gets all the VM scale sets under the specified subscription for the specified location. */ get( - options: VirtualMachineScaleSetsListByLocationParameters + options: VirtualMachineScaleSetsListByLocationParameters, ): StreamableMethod< | VirtualMachineScaleSetsListByLocation200Response | VirtualMachineScaleSetsListByLocationDefaultResponse @@ -1004,7 +1004,7 @@ export interface VirtualMachineScaleSetsListByLocation { export interface VirtualMachineScaleSetsCreateOrUpdate { /** Create or update a VM scale set. */ put( - options: VirtualMachineScaleSetsCreateOrUpdateParameters + options: VirtualMachineScaleSetsCreateOrUpdateParameters, ): StreamableMethod< | VirtualMachineScaleSetsCreateOrUpdate200Response | VirtualMachineScaleSetsCreateOrUpdate201Response @@ -1012,13 +1012,13 @@ export interface VirtualMachineScaleSetsCreateOrUpdate { >; /** Update a VM scale set. */ patch( - options: VirtualMachineScaleSetsUpdateParameters + options: VirtualMachineScaleSetsUpdateParameters, ): StreamableMethod< VirtualMachineScaleSetsUpdate200Response | VirtualMachineScaleSetsUpdateDefaultResponse >; /** Deletes a VM scale set. */ delete( - options: VirtualMachineScaleSetsDeleteParameters + options: VirtualMachineScaleSetsDeleteParameters, ): StreamableMethod< | VirtualMachineScaleSetsDelete200Response | VirtualMachineScaleSetsDelete202Response @@ -1027,7 +1027,7 @@ export interface VirtualMachineScaleSetsCreateOrUpdate { >; /** Display information about a virtual machine scale set. */ get( - options: VirtualMachineScaleSetsGetParameters + options: VirtualMachineScaleSetsGetParameters, ): StreamableMethod< VirtualMachineScaleSetsGet200Response | VirtualMachineScaleSetsGetDefaultResponse >; @@ -1036,7 +1036,7 @@ export interface VirtualMachineScaleSetsCreateOrUpdate { export interface VirtualMachineScaleSetsDeallocate { /** Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. */ post( - options: VirtualMachineScaleSetsDeallocateParameters + options: VirtualMachineScaleSetsDeallocateParameters, ): StreamableMethod< | VirtualMachineScaleSetsDeallocate200Response | VirtualMachineScaleSetsDeallocate202Response @@ -1047,7 +1047,7 @@ export interface VirtualMachineScaleSetsDeallocate { export interface VirtualMachineScaleSetsDeleteInstances { /** Deletes virtual machines in a VM scale set. */ post( - options: VirtualMachineScaleSetsDeleteInstancesParameters + options: VirtualMachineScaleSetsDeleteInstancesParameters, ): StreamableMethod< | VirtualMachineScaleSetsDeleteInstances200Response | VirtualMachineScaleSetsDeleteInstances202Response @@ -1058,7 +1058,7 @@ export interface VirtualMachineScaleSetsDeleteInstances { export interface VirtualMachineScaleSetsGetInstanceView { /** Gets the status of a VM scale set instance. */ get( - options: VirtualMachineScaleSetsGetInstanceViewParameters + options: VirtualMachineScaleSetsGetInstanceViewParameters, ): StreamableMethod< | VirtualMachineScaleSetsGetInstanceView200Response | VirtualMachineScaleSetsGetInstanceViewDefaultResponse @@ -1068,7 +1068,7 @@ export interface VirtualMachineScaleSetsGetInstanceView { export interface VirtualMachineScaleSetsList { /** Gets a list of all VM scale sets under a resource group. */ get( - options: VirtualMachineScaleSetsListParameters + options: VirtualMachineScaleSetsListParameters, ): StreamableMethod< VirtualMachineScaleSetsList200Response | VirtualMachineScaleSetsListDefaultResponse >; @@ -1077,7 +1077,7 @@ export interface VirtualMachineScaleSetsList { export interface VirtualMachineScaleSetsListAll { /** Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. */ get( - options: VirtualMachineScaleSetsListAllParameters + options: VirtualMachineScaleSetsListAllParameters, ): StreamableMethod< VirtualMachineScaleSetsListAll200Response | VirtualMachineScaleSetsListAllDefaultResponse >; @@ -1086,7 +1086,7 @@ export interface VirtualMachineScaleSetsListAll { export interface VirtualMachineScaleSetsListSkus { /** Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. */ get( - options: VirtualMachineScaleSetsListSkusParameters + options: VirtualMachineScaleSetsListSkusParameters, ): StreamableMethod< VirtualMachineScaleSetsListSkus200Response | VirtualMachineScaleSetsListSkusDefaultResponse >; @@ -1095,7 +1095,7 @@ export interface VirtualMachineScaleSetsListSkus { export interface VirtualMachineScaleSetsGetOSUpgradeHistory { /** Gets list of OS upgrades on a VM scale set instance. */ get( - options: VirtualMachineScaleSetsGetOSUpgradeHistoryParameters + options: VirtualMachineScaleSetsGetOSUpgradeHistoryParameters, ): StreamableMethod< | VirtualMachineScaleSetsGetOSUpgradeHistory200Response | VirtualMachineScaleSetsGetOSUpgradeHistoryDefaultResponse @@ -1105,7 +1105,7 @@ export interface VirtualMachineScaleSetsGetOSUpgradeHistory { export interface VirtualMachineScaleSetsPowerOff { /** Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. */ post( - options: VirtualMachineScaleSetsPowerOffParameters + options: VirtualMachineScaleSetsPowerOffParameters, ): StreamableMethod< | VirtualMachineScaleSetsPowerOff200Response | VirtualMachineScaleSetsPowerOff202Response @@ -1116,7 +1116,7 @@ export interface VirtualMachineScaleSetsPowerOff { export interface VirtualMachineScaleSetsRestart { /** Restarts one or more virtual machines in a VM scale set. */ post( - options: VirtualMachineScaleSetsRestartParameters + options: VirtualMachineScaleSetsRestartParameters, ): StreamableMethod< | VirtualMachineScaleSetsRestart200Response | VirtualMachineScaleSetsRestart202Response @@ -1127,7 +1127,7 @@ export interface VirtualMachineScaleSetsRestart { export interface VirtualMachineScaleSetsStart { /** Starts one or more virtual machines in a VM scale set. */ post( - options: VirtualMachineScaleSetsStartParameters + options: VirtualMachineScaleSetsStartParameters, ): StreamableMethod< | VirtualMachineScaleSetsStart200Response | VirtualMachineScaleSetsStart202Response @@ -1138,7 +1138,7 @@ export interface VirtualMachineScaleSetsStart { export interface VirtualMachineScaleSetsRedeploy { /** Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. */ post( - options: VirtualMachineScaleSetsRedeployParameters + options: VirtualMachineScaleSetsRedeployParameters, ): StreamableMethod< | VirtualMachineScaleSetsRedeploy200Response | VirtualMachineScaleSetsRedeploy202Response @@ -1149,7 +1149,7 @@ export interface VirtualMachineScaleSetsRedeploy { export interface VirtualMachineScaleSetsPerformMaintenance { /** Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications */ post( - options: VirtualMachineScaleSetsPerformMaintenanceParameters + options: VirtualMachineScaleSetsPerformMaintenanceParameters, ): StreamableMethod< | VirtualMachineScaleSetsPerformMaintenance200Response | VirtualMachineScaleSetsPerformMaintenance202Response @@ -1160,7 +1160,7 @@ export interface VirtualMachineScaleSetsPerformMaintenance { export interface VirtualMachineScaleSetsUpdateInstances { /** Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. */ post( - options: VirtualMachineScaleSetsUpdateInstancesParameters + options: VirtualMachineScaleSetsUpdateInstancesParameters, ): StreamableMethod< | VirtualMachineScaleSetsUpdateInstances200Response | VirtualMachineScaleSetsUpdateInstances202Response @@ -1171,7 +1171,7 @@ export interface VirtualMachineScaleSetsUpdateInstances { export interface VirtualMachineScaleSetsReimage { /** Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. */ post( - options: VirtualMachineScaleSetsReimageParameters + options: VirtualMachineScaleSetsReimageParameters, ): StreamableMethod< | VirtualMachineScaleSetsReimage200Response | VirtualMachineScaleSetsReimage202Response @@ -1182,7 +1182,7 @@ export interface VirtualMachineScaleSetsReimage { export interface VirtualMachineScaleSetsReimageAll { /** Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. */ post( - options: VirtualMachineScaleSetsReimageAllParameters + options: VirtualMachineScaleSetsReimageAllParameters, ): StreamableMethod< | VirtualMachineScaleSetsReimageAll200Response | VirtualMachineScaleSetsReimageAll202Response @@ -1193,7 +1193,7 @@ export interface VirtualMachineScaleSetsReimageAll { export interface VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalk { /** Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. */ post( - options: VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkParameters + options: VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkParameters, ): StreamableMethod< | VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalk200Response | VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkDefaultResponse @@ -1203,7 +1203,7 @@ export interface VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdate export interface VirtualMachineScaleSetsConvertToSinglePlacementGroup { /** Converts SinglePlacementGroup property to false for a existing virtual machine scale set. */ post( - options: VirtualMachineScaleSetsConvertToSinglePlacementGroupParameters + options: VirtualMachineScaleSetsConvertToSinglePlacementGroupParameters, ): StreamableMethod< | VirtualMachineScaleSetsConvertToSinglePlacementGroup200Response | VirtualMachineScaleSetsConvertToSinglePlacementGroupDefaultResponse @@ -1213,7 +1213,7 @@ export interface VirtualMachineScaleSetsConvertToSinglePlacementGroup { export interface VirtualMachineScaleSetsSetOrchestrationServiceState { /** Changes ServiceState property for a given service */ post( - options: VirtualMachineScaleSetsSetOrchestrationServiceStateParameters + options: VirtualMachineScaleSetsSetOrchestrationServiceStateParameters, ): StreamableMethod< | VirtualMachineScaleSetsSetOrchestrationServiceState200Response | VirtualMachineScaleSetsSetOrchestrationServiceState202Response @@ -1224,7 +1224,7 @@ export interface VirtualMachineScaleSetsSetOrchestrationServiceState { export interface VirtualMachineScaleSetExtensionsCreateOrUpdate { /** The operation to create or update an extension. */ put( - options: VirtualMachineScaleSetExtensionsCreateOrUpdateParameters + options: VirtualMachineScaleSetExtensionsCreateOrUpdateParameters, ): StreamableMethod< | VirtualMachineScaleSetExtensionsCreateOrUpdate200Response | VirtualMachineScaleSetExtensionsCreateOrUpdate201Response @@ -1232,7 +1232,7 @@ export interface VirtualMachineScaleSetExtensionsCreateOrUpdate { >; /** The operation to update an extension. */ patch( - options: VirtualMachineScaleSetExtensionsUpdateParameters + options: VirtualMachineScaleSetExtensionsUpdateParameters, ): StreamableMethod< | VirtualMachineScaleSetExtensionsUpdate200Response | VirtualMachineScaleSetExtensionsUpdate201Response @@ -1240,7 +1240,7 @@ export interface VirtualMachineScaleSetExtensionsCreateOrUpdate { >; /** The operation to delete the extension. */ delete( - options: VirtualMachineScaleSetExtensionsDeleteParameters + options: VirtualMachineScaleSetExtensionsDeleteParameters, ): StreamableMethod< | VirtualMachineScaleSetExtensionsDelete200Response | VirtualMachineScaleSetExtensionsDelete202Response @@ -1249,7 +1249,7 @@ export interface VirtualMachineScaleSetExtensionsCreateOrUpdate { >; /** The operation to get the extension. */ get( - options: VirtualMachineScaleSetExtensionsGetParameters + options: VirtualMachineScaleSetExtensionsGetParameters, ): StreamableMethod< | VirtualMachineScaleSetExtensionsGet200Response | VirtualMachineScaleSetExtensionsGetDefaultResponse @@ -1259,7 +1259,7 @@ export interface VirtualMachineScaleSetExtensionsCreateOrUpdate { export interface VirtualMachineScaleSetExtensionsList { /** Gets a list of all extensions in a VM scale set. */ get( - options: VirtualMachineScaleSetExtensionsListParameters + options: VirtualMachineScaleSetExtensionsListParameters, ): StreamableMethod< | VirtualMachineScaleSetExtensionsList200Response | VirtualMachineScaleSetExtensionsListDefaultResponse @@ -1269,7 +1269,7 @@ export interface VirtualMachineScaleSetExtensionsList { export interface VirtualMachineScaleSetRollingUpgradesCancel { /** Cancels the current virtual machine scale set rolling upgrade. */ post( - options: VirtualMachineScaleSetRollingUpgradesCancelParameters + options: VirtualMachineScaleSetRollingUpgradesCancelParameters, ): StreamableMethod< | VirtualMachineScaleSetRollingUpgradesCancel200Response | VirtualMachineScaleSetRollingUpgradesCancel202Response @@ -1280,7 +1280,7 @@ export interface VirtualMachineScaleSetRollingUpgradesCancel { export interface VirtualMachineScaleSetRollingUpgradesStartOSUpgrade { /** Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. */ post( - options: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeParameters + options: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeParameters, ): StreamableMethod< | VirtualMachineScaleSetRollingUpgradesStartOSUpgrade200Response | VirtualMachineScaleSetRollingUpgradesStartOSUpgrade202Response @@ -1291,7 +1291,7 @@ export interface VirtualMachineScaleSetRollingUpgradesStartOSUpgrade { export interface VirtualMachineScaleSetRollingUpgradesStartExtensionUpgrade { /** Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected. */ post( - options: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeParameters + options: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeParameters, ): StreamableMethod< | VirtualMachineScaleSetRollingUpgradesStartExtensionUpgrade200Response | VirtualMachineScaleSetRollingUpgradesStartExtensionUpgrade202Response @@ -1302,7 +1302,7 @@ export interface VirtualMachineScaleSetRollingUpgradesStartExtensionUpgrade { export interface VirtualMachineScaleSetRollingUpgradesGetLatest { /** Gets the status of the latest virtual machine scale set rolling upgrade. */ get( - options: VirtualMachineScaleSetRollingUpgradesGetLatestParameters + options: VirtualMachineScaleSetRollingUpgradesGetLatestParameters, ): StreamableMethod< | VirtualMachineScaleSetRollingUpgradesGetLatest200Response | VirtualMachineScaleSetRollingUpgradesGetLatestDefaultResponse @@ -1312,7 +1312,7 @@ export interface VirtualMachineScaleSetRollingUpgradesGetLatest { export interface VirtualMachineScaleSetVMExtensionsCreateOrUpdate { /** The operation to create or update the VMSS VM extension. */ put( - options: VirtualMachineScaleSetVMExtensionsCreateOrUpdateParameters + options: VirtualMachineScaleSetVMExtensionsCreateOrUpdateParameters, ): StreamableMethod< | VirtualMachineScaleSetVMExtensionsCreateOrUpdate200Response | VirtualMachineScaleSetVMExtensionsCreateOrUpdate201Response @@ -1320,14 +1320,14 @@ export interface VirtualMachineScaleSetVMExtensionsCreateOrUpdate { >; /** The operation to update the VMSS VM extension. */ patch( - options: VirtualMachineScaleSetVMExtensionsUpdateParameters + options: VirtualMachineScaleSetVMExtensionsUpdateParameters, ): StreamableMethod< | VirtualMachineScaleSetVMExtensionsUpdate200Response | VirtualMachineScaleSetVMExtensionsUpdateDefaultResponse >; /** The operation to delete the VMSS VM extension. */ delete( - options: VirtualMachineScaleSetVMExtensionsDeleteParameters + options: VirtualMachineScaleSetVMExtensionsDeleteParameters, ): StreamableMethod< | VirtualMachineScaleSetVMExtensionsDelete200Response | VirtualMachineScaleSetVMExtensionsDelete202Response @@ -1336,7 +1336,7 @@ export interface VirtualMachineScaleSetVMExtensionsCreateOrUpdate { >; /** The operation to get the VMSS VM extension. */ get( - options: VirtualMachineScaleSetVMExtensionsGetParameters + options: VirtualMachineScaleSetVMExtensionsGetParameters, ): StreamableMethod< | VirtualMachineScaleSetVMExtensionsGet200Response | VirtualMachineScaleSetVMExtensionsGetDefaultResponse @@ -1346,7 +1346,7 @@ export interface VirtualMachineScaleSetVMExtensionsCreateOrUpdate { export interface VirtualMachineScaleSetVMExtensionsList { /** The operation to get all extensions of an instance in Virtual Machine Scaleset. */ get( - options: VirtualMachineScaleSetVMExtensionsListParameters + options: VirtualMachineScaleSetVMExtensionsListParameters, ): StreamableMethod< | VirtualMachineScaleSetVMExtensionsList200Response | VirtualMachineScaleSetVMExtensionsListDefaultResponse @@ -1356,7 +1356,7 @@ export interface VirtualMachineScaleSetVMExtensionsList { export interface VirtualMachineScaleSetVMsReimage { /** Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. */ post( - options: VirtualMachineScaleSetVMsReimageParameters + options: VirtualMachineScaleSetVMsReimageParameters, ): StreamableMethod< | VirtualMachineScaleSetVMsReimage200Response | VirtualMachineScaleSetVMsReimage202Response @@ -1367,7 +1367,7 @@ export interface VirtualMachineScaleSetVMsReimage { export interface VirtualMachineScaleSetVMsReimageAll { /** Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. */ post( - options: VirtualMachineScaleSetVMsReimageAllParameters + options: VirtualMachineScaleSetVMsReimageAllParameters, ): StreamableMethod< | VirtualMachineScaleSetVMsReimageAll200Response | VirtualMachineScaleSetVMsReimageAll202Response @@ -1378,7 +1378,7 @@ export interface VirtualMachineScaleSetVMsReimageAll { export interface VirtualMachineScaleSetVMsDeallocate { /** Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. */ post( - options: VirtualMachineScaleSetVMsDeallocateParameters + options: VirtualMachineScaleSetVMsDeallocateParameters, ): StreamableMethod< | VirtualMachineScaleSetVMsDeallocate200Response | VirtualMachineScaleSetVMsDeallocate202Response @@ -1389,7 +1389,7 @@ export interface VirtualMachineScaleSetVMsDeallocate { export interface VirtualMachineScaleSetVMsUpdate { /** Updates a virtual machine of a VM scale set. */ put( - options: VirtualMachineScaleSetVMsUpdateParameters + options: VirtualMachineScaleSetVMsUpdateParameters, ): StreamableMethod< | VirtualMachineScaleSetVMsUpdate200Response | VirtualMachineScaleSetVMsUpdate202Response @@ -1397,7 +1397,7 @@ export interface VirtualMachineScaleSetVMsUpdate { >; /** Deletes a virtual machine from a VM scale set. */ delete( - options: VirtualMachineScaleSetVMsDeleteParameters + options: VirtualMachineScaleSetVMsDeleteParameters, ): StreamableMethod< | VirtualMachineScaleSetVMsDelete200Response | VirtualMachineScaleSetVMsDelete202Response @@ -1406,7 +1406,7 @@ export interface VirtualMachineScaleSetVMsUpdate { >; /** Gets a virtual machine from a VM scale set. */ get( - options: VirtualMachineScaleSetVMsGetParameters + options: VirtualMachineScaleSetVMsGetParameters, ): StreamableMethod< VirtualMachineScaleSetVMsGet200Response | VirtualMachineScaleSetVMsGetDefaultResponse >; @@ -1415,7 +1415,7 @@ export interface VirtualMachineScaleSetVMsUpdate { export interface VirtualMachineScaleSetVMsGetInstanceView { /** Gets the status of a virtual machine from a VM scale set. */ get( - options: VirtualMachineScaleSetVMsGetInstanceViewParameters + options: VirtualMachineScaleSetVMsGetInstanceViewParameters, ): StreamableMethod< | VirtualMachineScaleSetVMsGetInstanceView200Response | VirtualMachineScaleSetVMsGetInstanceViewDefaultResponse @@ -1425,7 +1425,7 @@ export interface VirtualMachineScaleSetVMsGetInstanceView { export interface VirtualMachineScaleSetVMsList { /** Gets a list of all virtual machines in a VM scale sets. */ get( - options: VirtualMachineScaleSetVMsListParameters + options: VirtualMachineScaleSetVMsListParameters, ): StreamableMethod< VirtualMachineScaleSetVMsList200Response | VirtualMachineScaleSetVMsListDefaultResponse >; @@ -1434,7 +1434,7 @@ export interface VirtualMachineScaleSetVMsList { export interface VirtualMachineScaleSetVMsPowerOff { /** Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. */ post( - options: VirtualMachineScaleSetVMsPowerOffParameters + options: VirtualMachineScaleSetVMsPowerOffParameters, ): StreamableMethod< | VirtualMachineScaleSetVMsPowerOff200Response | VirtualMachineScaleSetVMsPowerOff202Response @@ -1445,7 +1445,7 @@ export interface VirtualMachineScaleSetVMsPowerOff { export interface VirtualMachineScaleSetVMsRestart { /** Restarts a virtual machine in a VM scale set. */ post( - options: VirtualMachineScaleSetVMsRestartParameters + options: VirtualMachineScaleSetVMsRestartParameters, ): StreamableMethod< | VirtualMachineScaleSetVMsRestart200Response | VirtualMachineScaleSetVMsRestart202Response @@ -1456,7 +1456,7 @@ export interface VirtualMachineScaleSetVMsRestart { export interface VirtualMachineScaleSetVMsStart { /** Starts a virtual machine in a VM scale set. */ post( - options: VirtualMachineScaleSetVMsStartParameters + options: VirtualMachineScaleSetVMsStartParameters, ): StreamableMethod< | VirtualMachineScaleSetVMsStart200Response | VirtualMachineScaleSetVMsStart202Response @@ -1467,7 +1467,7 @@ export interface VirtualMachineScaleSetVMsStart { export interface VirtualMachineScaleSetVMsRedeploy { /** Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. */ post( - options: VirtualMachineScaleSetVMsRedeployParameters + options: VirtualMachineScaleSetVMsRedeployParameters, ): StreamableMethod< | VirtualMachineScaleSetVMsRedeploy200Response | VirtualMachineScaleSetVMsRedeploy202Response @@ -1478,7 +1478,7 @@ export interface VirtualMachineScaleSetVMsRedeploy { export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsData { /** The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set. */ post( - options: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataParameters + options: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataParameters, ): StreamableMethod< | VirtualMachineScaleSetVMsRetrieveBootDiagnosticsData200Response | VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataDefaultResponse @@ -1488,7 +1488,7 @@ export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsData { export interface VirtualMachineScaleSetVMsPerformMaintenance { /** Performs maintenance on a virtual machine in a VM scale set. */ post( - options: VirtualMachineScaleSetVMsPerformMaintenanceParameters + options: VirtualMachineScaleSetVMsPerformMaintenanceParameters, ): StreamableMethod< | VirtualMachineScaleSetVMsPerformMaintenance200Response | VirtualMachineScaleSetVMsPerformMaintenance202Response @@ -1499,7 +1499,7 @@ export interface VirtualMachineScaleSetVMsPerformMaintenance { export interface VirtualMachineScaleSetVMsSimulateEviction { /** The operation to simulate the eviction of spot virtual machine in a VM scale set. */ post( - options: VirtualMachineScaleSetVMsSimulateEvictionParameters + options: VirtualMachineScaleSetVMsSimulateEvictionParameters, ): StreamableMethod< | VirtualMachineScaleSetVMsSimulateEviction204Response | VirtualMachineScaleSetVMsSimulateEvictionDefaultResponse @@ -1509,7 +1509,7 @@ export interface VirtualMachineScaleSetVMsSimulateEviction { export interface VirtualMachineScaleSetVMsRunCommand { /** Run command on a virtual machine in a VM scale set. */ post( - options: VirtualMachineScaleSetVMsRunCommandParameters + options: VirtualMachineScaleSetVMsRunCommandParameters, ): StreamableMethod< VirtualMachineScaleSetVMsRunCommand200Response | VirtualMachineScaleSetVMsRunCommand202Response >; @@ -1518,7 +1518,7 @@ export interface VirtualMachineScaleSetVMsRunCommand { export interface VirtualMachineExtensionsCreateOrUpdate { /** The operation to create or update the extension. */ put( - options: VirtualMachineExtensionsCreateOrUpdateParameters + options: VirtualMachineExtensionsCreateOrUpdateParameters, ): StreamableMethod< | VirtualMachineExtensionsCreateOrUpdate200Response | VirtualMachineExtensionsCreateOrUpdate201Response @@ -1526,13 +1526,13 @@ export interface VirtualMachineExtensionsCreateOrUpdate { >; /** The operation to update the extension. */ patch( - options: VirtualMachineExtensionsUpdateParameters + options: VirtualMachineExtensionsUpdateParameters, ): StreamableMethod< VirtualMachineExtensionsUpdate200Response | VirtualMachineExtensionsUpdateDefaultResponse >; /** The operation to delete the extension. */ delete( - options: VirtualMachineExtensionsDeleteParameters + options: VirtualMachineExtensionsDeleteParameters, ): StreamableMethod< | VirtualMachineExtensionsDelete200Response | VirtualMachineExtensionsDelete202Response @@ -1541,7 +1541,7 @@ export interface VirtualMachineExtensionsCreateOrUpdate { >; /** The operation to get the extension. */ get( - options: VirtualMachineExtensionsGetParameters + options: VirtualMachineExtensionsGetParameters, ): StreamableMethod< VirtualMachineExtensionsGet200Response | VirtualMachineExtensionsGetDefaultResponse >; @@ -1550,7 +1550,7 @@ export interface VirtualMachineExtensionsCreateOrUpdate { export interface VirtualMachineExtensionsList { /** The operation to get all extensions of a Virtual Machine. */ get( - options: VirtualMachineExtensionsListParameters + options: VirtualMachineExtensionsListParameters, ): StreamableMethod< VirtualMachineExtensionsList200Response | VirtualMachineExtensionsListDefaultResponse >; @@ -1559,7 +1559,7 @@ export interface VirtualMachineExtensionsList { export interface VirtualMachinesListByLocation { /** Gets all the virtual machines under the specified subscription for the specified location. */ get( - options: VirtualMachinesListByLocationParameters + options: VirtualMachinesListByLocationParameters, ): StreamableMethod< VirtualMachinesListByLocation200Response | VirtualMachinesListByLocationDefaultResponse >; @@ -1568,7 +1568,7 @@ export interface VirtualMachinesListByLocation { export interface VirtualMachinesCapture { /** Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. */ post( - options: VirtualMachinesCaptureParameters + options: VirtualMachinesCaptureParameters, ): StreamableMethod< | VirtualMachinesCapture200Response | VirtualMachinesCapture202Response @@ -1579,7 +1579,7 @@ export interface VirtualMachinesCapture { export interface VirtualMachinesCreateOrUpdate { /** The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. */ put( - options: VirtualMachinesCreateOrUpdateParameters + options: VirtualMachinesCreateOrUpdateParameters, ): StreamableMethod< | VirtualMachinesCreateOrUpdate200Response | VirtualMachinesCreateOrUpdate201Response @@ -1587,11 +1587,11 @@ export interface VirtualMachinesCreateOrUpdate { >; /** The operation to update a virtual machine. */ patch( - options: VirtualMachinesUpdateParameters + options: VirtualMachinesUpdateParameters, ): StreamableMethod; /** The operation to delete a virtual machine. */ delete( - options: VirtualMachinesDeleteParameters + options: VirtualMachinesDeleteParameters, ): StreamableMethod< | VirtualMachinesDelete200Response | VirtualMachinesDelete202Response @@ -1600,14 +1600,14 @@ export interface VirtualMachinesCreateOrUpdate { >; /** Retrieves information about the model view or the instance view of a virtual machine. */ get( - options: VirtualMachinesGetParameters + options: VirtualMachinesGetParameters, ): StreamableMethod; } export interface VirtualMachinesInstanceView { /** Retrieves information about the run-time state of a virtual machine. */ get( - options: VirtualMachinesInstanceViewParameters + options: VirtualMachinesInstanceViewParameters, ): StreamableMethod< VirtualMachinesInstanceView200Response | VirtualMachinesInstanceViewDefaultResponse >; @@ -1616,7 +1616,7 @@ export interface VirtualMachinesInstanceView { export interface VirtualMachinesConvertToManagedDisks { /** Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. */ post( - options: VirtualMachinesConvertToManagedDisksParameters + options: VirtualMachinesConvertToManagedDisksParameters, ): StreamableMethod< | VirtualMachinesConvertToManagedDisks200Response | VirtualMachinesConvertToManagedDisks202Response @@ -1627,7 +1627,7 @@ export interface VirtualMachinesConvertToManagedDisks { export interface VirtualMachinesDeallocate { /** Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. */ post( - options: VirtualMachinesDeallocateParameters + options: VirtualMachinesDeallocateParameters, ): StreamableMethod< | VirtualMachinesDeallocate200Response | VirtualMachinesDeallocate202Response @@ -1638,7 +1638,7 @@ export interface VirtualMachinesDeallocate { export interface VirtualMachinesGeneralize { /** Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation.
For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).
For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image). */ post( - options: VirtualMachinesGeneralizeParameters + options: VirtualMachinesGeneralizeParameters, ): StreamableMethod< VirtualMachinesGeneralize200Response | VirtualMachinesGeneralizeDefaultResponse >; @@ -1647,21 +1647,21 @@ export interface VirtualMachinesGeneralize { export interface VirtualMachinesList { /** Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. */ get( - options: VirtualMachinesListParameters + options: VirtualMachinesListParameters, ): StreamableMethod; } export interface VirtualMachinesListAll { /** Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. */ get( - options: VirtualMachinesListAllParameters + options: VirtualMachinesListAllParameters, ): StreamableMethod; } export interface VirtualMachinesListAvailableSizes { /** Lists all available virtual machine sizes to which the specified virtual machine can be resized. */ get( - options: VirtualMachinesListAvailableSizesParameters + options: VirtualMachinesListAvailableSizesParameters, ): StreamableMethod< VirtualMachinesListAvailableSizes200Response | VirtualMachinesListAvailableSizesDefaultResponse >; @@ -1670,7 +1670,7 @@ export interface VirtualMachinesListAvailableSizes { export interface VirtualMachinesPowerOff { /** The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. */ post( - options: VirtualMachinesPowerOffParameters + options: VirtualMachinesPowerOffParameters, ): StreamableMethod< | VirtualMachinesPowerOff200Response | VirtualMachinesPowerOff202Response @@ -1681,7 +1681,7 @@ export interface VirtualMachinesPowerOff { export interface VirtualMachinesReapply { /** The operation to reapply a virtual machine's state. */ post( - options: VirtualMachinesReapplyParameters + options: VirtualMachinesReapplyParameters, ): StreamableMethod< | VirtualMachinesReapply200Response | VirtualMachinesReapply202Response @@ -1692,7 +1692,7 @@ export interface VirtualMachinesReapply { export interface VirtualMachinesRestart { /** The operation to restart a virtual machine. */ post( - options: VirtualMachinesRestartParameters + options: VirtualMachinesRestartParameters, ): StreamableMethod< | VirtualMachinesRestart200Response | VirtualMachinesRestart202Response @@ -1703,7 +1703,7 @@ export interface VirtualMachinesRestart { export interface VirtualMachinesStart { /** The operation to start a virtual machine. */ post( - options: VirtualMachinesStartParameters + options: VirtualMachinesStartParameters, ): StreamableMethod< | VirtualMachinesStart200Response | VirtualMachinesStart202Response @@ -1714,7 +1714,7 @@ export interface VirtualMachinesStart { export interface VirtualMachinesRedeploy { /** Shuts down the virtual machine, moves it to a new node, and powers it back on. */ post( - options: VirtualMachinesRedeployParameters + options: VirtualMachinesRedeployParameters, ): StreamableMethod< | VirtualMachinesRedeploy200Response | VirtualMachinesRedeploy202Response @@ -1725,7 +1725,7 @@ export interface VirtualMachinesRedeploy { export interface VirtualMachinesReimage { /** Reimages the virtual machine which has an ephemeral OS disk back to its initial state. */ post( - options: VirtualMachinesReimageParameters + options: VirtualMachinesReimageParameters, ): StreamableMethod< | VirtualMachinesReimage200Response | VirtualMachinesReimage202Response @@ -1736,7 +1736,7 @@ export interface VirtualMachinesReimage { export interface VirtualMachinesRetrieveBootDiagnosticsData { /** The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. */ post( - options: VirtualMachinesRetrieveBootDiagnosticsDataParameters + options: VirtualMachinesRetrieveBootDiagnosticsDataParameters, ): StreamableMethod< | VirtualMachinesRetrieveBootDiagnosticsData200Response | VirtualMachinesRetrieveBootDiagnosticsDataDefaultResponse @@ -1746,7 +1746,7 @@ export interface VirtualMachinesRetrieveBootDiagnosticsData { export interface VirtualMachinesPerformMaintenance { /** The operation to perform maintenance on a virtual machine. */ post( - options: VirtualMachinesPerformMaintenanceParameters + options: VirtualMachinesPerformMaintenanceParameters, ): StreamableMethod< | VirtualMachinesPerformMaintenance200Response | VirtualMachinesPerformMaintenance202Response @@ -1757,7 +1757,7 @@ export interface VirtualMachinesPerformMaintenance { export interface VirtualMachinesSimulateEviction { /** The operation to simulate the eviction of spot virtual machine. */ post( - options: VirtualMachinesSimulateEvictionParameters + options: VirtualMachinesSimulateEvictionParameters, ): StreamableMethod< VirtualMachinesSimulateEviction204Response | VirtualMachinesSimulateEvictionDefaultResponse >; @@ -1766,7 +1766,7 @@ export interface VirtualMachinesSimulateEviction { export interface VirtualMachinesAssessPatches { /** Assess patches on the VM. */ post( - options: VirtualMachinesAssessPatchesParameters + options: VirtualMachinesAssessPatchesParameters, ): StreamableMethod< | VirtualMachinesAssessPatches200Response | VirtualMachinesAssessPatches202Response @@ -1777,7 +1777,7 @@ export interface VirtualMachinesAssessPatches { export interface VirtualMachinesInstallPatches { /** Installs patches on the VM. */ post( - options: VirtualMachinesInstallPatchesParameters + options: VirtualMachinesInstallPatchesParameters, ): StreamableMethod< | VirtualMachinesInstallPatches200Response | VirtualMachinesInstallPatches202Response @@ -1788,21 +1788,21 @@ export interface VirtualMachinesInstallPatches { export interface VirtualMachinesRunCommand { /** Run command on the VM. */ post( - options: VirtualMachinesRunCommandParameters + options: VirtualMachinesRunCommandParameters, ): StreamableMethod; } export interface VirtualMachineImagesGet { /** Gets a virtual machine image. */ get( - options: VirtualMachineImagesGetParameters + options: VirtualMachineImagesGetParameters, ): StreamableMethod; } export interface VirtualMachineImagesList { /** Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. */ get( - options: VirtualMachineImagesListParameters + options: VirtualMachineImagesListParameters, ): StreamableMethod< VirtualMachineImagesList200Response | VirtualMachineImagesListDefaultResponse >; @@ -1811,7 +1811,7 @@ export interface VirtualMachineImagesList { export interface VirtualMachineImagesListOffers { /** Gets a list of virtual machine image offers for the specified location and publisher. */ get( - options: VirtualMachineImagesListOffersParameters + options: VirtualMachineImagesListOffersParameters, ): StreamableMethod< VirtualMachineImagesListOffers200Response | VirtualMachineImagesListOffersDefaultResponse >; @@ -1820,7 +1820,7 @@ export interface VirtualMachineImagesListOffers { export interface VirtualMachineImagesListPublishers { /** Gets a list of virtual machine image publishers for the specified Azure location. */ get( - options: VirtualMachineImagesListPublishersParameters + options: VirtualMachineImagesListPublishersParameters, ): StreamableMethod< | VirtualMachineImagesListPublishers200Response | VirtualMachineImagesListPublishersDefaultResponse @@ -1830,7 +1830,7 @@ export interface VirtualMachineImagesListPublishers { export interface VirtualMachineImagesListSkus { /** Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. */ get( - options: VirtualMachineImagesListSkusParameters + options: VirtualMachineImagesListSkusParameters, ): StreamableMethod< VirtualMachineImagesListSkus200Response | VirtualMachineImagesListSkusDefaultResponse >; @@ -1839,7 +1839,7 @@ export interface VirtualMachineImagesListSkus { export interface VirtualMachineImagesListByEdgeZone { /** Gets a list of all virtual machine image versions for the specified edge zone */ get( - options: VirtualMachineImagesListByEdgeZoneParameters + options: VirtualMachineImagesListByEdgeZoneParameters, ): StreamableMethod< | VirtualMachineImagesListByEdgeZone200Response | VirtualMachineImagesListByEdgeZoneDefaultResponse @@ -1849,7 +1849,7 @@ export interface VirtualMachineImagesListByEdgeZone { export interface VirtualMachineImagesEdgeZoneGet { /** Gets a virtual machine image in an edge zone. */ get( - options: VirtualMachineImagesEdgeZoneGetParameters + options: VirtualMachineImagesEdgeZoneGetParameters, ): StreamableMethod< VirtualMachineImagesEdgeZoneGet200Response | VirtualMachineImagesEdgeZoneGetDefaultResponse >; @@ -1858,7 +1858,7 @@ export interface VirtualMachineImagesEdgeZoneGet { export interface VirtualMachineImagesEdgeZoneList { /** Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. */ get( - options: VirtualMachineImagesEdgeZoneListParameters + options: VirtualMachineImagesEdgeZoneListParameters, ): StreamableMethod< VirtualMachineImagesEdgeZoneList200Response | VirtualMachineImagesEdgeZoneListDefaultResponse >; @@ -1867,7 +1867,7 @@ export interface VirtualMachineImagesEdgeZoneList { export interface VirtualMachineImagesEdgeZoneListOffers { /** Gets a list of virtual machine image offers for the specified location, edge zone and publisher. */ get( - options: VirtualMachineImagesEdgeZoneListOffersParameters + options: VirtualMachineImagesEdgeZoneListOffersParameters, ): StreamableMethod< | VirtualMachineImagesEdgeZoneListOffers200Response | VirtualMachineImagesEdgeZoneListOffersDefaultResponse @@ -1877,7 +1877,7 @@ export interface VirtualMachineImagesEdgeZoneListOffers { export interface VirtualMachineImagesEdgeZoneListPublishers { /** Gets a list of virtual machine image publishers for the specified Azure location and edge zone. */ get( - options: VirtualMachineImagesEdgeZoneListPublishersParameters + options: VirtualMachineImagesEdgeZoneListPublishersParameters, ): StreamableMethod< | VirtualMachineImagesEdgeZoneListPublishers200Response | VirtualMachineImagesEdgeZoneListPublishersDefaultResponse @@ -1887,7 +1887,7 @@ export interface VirtualMachineImagesEdgeZoneListPublishers { export interface VirtualMachineImagesEdgeZoneListSkus { /** Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. */ get( - options: VirtualMachineImagesEdgeZoneListSkusParameters + options: VirtualMachineImagesEdgeZoneListSkusParameters, ): StreamableMethod< | VirtualMachineImagesEdgeZoneListSkus200Response | VirtualMachineImagesEdgeZoneListSkusDefaultResponse @@ -1897,7 +1897,7 @@ export interface VirtualMachineImagesEdgeZoneListSkus { export interface VirtualMachineExtensionImagesGet { /** Gets a virtual machine extension image. */ get( - options: VirtualMachineExtensionImagesGetParameters + options: VirtualMachineExtensionImagesGetParameters, ): StreamableMethod< VirtualMachineExtensionImagesGet200Response | VirtualMachineExtensionImagesGetDefaultResponse >; @@ -1906,7 +1906,7 @@ export interface VirtualMachineExtensionImagesGet { export interface VirtualMachineExtensionImagesListTypes { /** Gets a list of virtual machine extension image types. */ get( - options: VirtualMachineExtensionImagesListTypesParameters + options: VirtualMachineExtensionImagesListTypesParameters, ): StreamableMethod< | VirtualMachineExtensionImagesListTypes200Response | VirtualMachineExtensionImagesListTypesDefaultResponse @@ -1916,7 +1916,7 @@ export interface VirtualMachineExtensionImagesListTypes { export interface VirtualMachineExtensionImagesListVersions { /** Gets a list of virtual machine extension image versions. */ get( - options: VirtualMachineExtensionImagesListVersionsParameters + options: VirtualMachineExtensionImagesListVersionsParameters, ): StreamableMethod< | VirtualMachineExtensionImagesListVersions200Response | VirtualMachineExtensionImagesListVersionsDefaultResponse @@ -1926,17 +1926,17 @@ export interface VirtualMachineExtensionImagesListVersions { export interface AvailabilitySetsCreateOrUpdate { /** Create or update an availability set. */ put( - options: AvailabilitySetsCreateOrUpdateParameters + options: AvailabilitySetsCreateOrUpdateParameters, ): StreamableMethod< AvailabilitySetsCreateOrUpdate200Response | AvailabilitySetsCreateOrUpdateDefaultResponse >; /** Update an availability set. */ patch( - options: AvailabilitySetsUpdateParameters + options: AvailabilitySetsUpdateParameters, ): StreamableMethod; /** Delete an availability set. */ delete( - options: AvailabilitySetsDeleteParameters + options: AvailabilitySetsDeleteParameters, ): StreamableMethod< | AvailabilitySetsDelete200Response | AvailabilitySetsDelete204Response @@ -1944,14 +1944,14 @@ export interface AvailabilitySetsCreateOrUpdate { >; /** Retrieves information about an availability set. */ get( - options: AvailabilitySetsGetParameters + options: AvailabilitySetsGetParameters, ): StreamableMethod; } export interface AvailabilitySetsListBySubscription { /** Lists all availability sets in a subscription. */ get( - options: AvailabilitySetsListBySubscriptionParameters + options: AvailabilitySetsListBySubscriptionParameters, ): StreamableMethod< | AvailabilitySetsListBySubscription200Response | AvailabilitySetsListBySubscriptionDefaultResponse @@ -1961,14 +1961,14 @@ export interface AvailabilitySetsListBySubscription { export interface AvailabilitySetsList { /** Lists all availability sets in a resource group. */ get( - options: AvailabilitySetsListParameters + options: AvailabilitySetsListParameters, ): StreamableMethod; } export interface AvailabilitySetsListAvailableSizes { /** Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. */ get( - options: AvailabilitySetsListAvailableSizesParameters + options: AvailabilitySetsListAvailableSizesParameters, ): StreamableMethod< | AvailabilitySetsListAvailableSizes200Response | AvailabilitySetsListAvailableSizesDefaultResponse @@ -1978,7 +1978,7 @@ export interface AvailabilitySetsListAvailableSizes { export interface ProximityPlacementGroupsCreateOrUpdate { /** Create or update a proximity placement group. */ put( - options: ProximityPlacementGroupsCreateOrUpdateParameters + options: ProximityPlacementGroupsCreateOrUpdateParameters, ): StreamableMethod< | ProximityPlacementGroupsCreateOrUpdate200Response | ProximityPlacementGroupsCreateOrUpdate201Response @@ -1986,19 +1986,19 @@ export interface ProximityPlacementGroupsCreateOrUpdate { >; /** Update a proximity placement group. */ patch( - options: ProximityPlacementGroupsUpdateParameters + options: ProximityPlacementGroupsUpdateParameters, ): StreamableMethod< ProximityPlacementGroupsUpdate200Response | ProximityPlacementGroupsUpdateDefaultResponse >; /** Delete a proximity placement group. */ delete( - options: ProximityPlacementGroupsDeleteParameters + options: ProximityPlacementGroupsDeleteParameters, ): StreamableMethod< ProximityPlacementGroupsDelete200Response | ProximityPlacementGroupsDeleteDefaultResponse >; /** Retrieves information about a proximity placement group . */ get( - options: ProximityPlacementGroupsGetParameters + options: ProximityPlacementGroupsGetParameters, ): StreamableMethod< ProximityPlacementGroupsGet200Response | ProximityPlacementGroupsGetDefaultResponse >; @@ -2007,7 +2007,7 @@ export interface ProximityPlacementGroupsCreateOrUpdate { export interface ProximityPlacementGroupsListBySubscription { /** Lists all proximity placement groups in a subscription. */ get( - options: ProximityPlacementGroupsListBySubscriptionParameters + options: ProximityPlacementGroupsListBySubscriptionParameters, ): StreamableMethod< | ProximityPlacementGroupsListBySubscription200Response | ProximityPlacementGroupsListBySubscriptionDefaultResponse @@ -2017,7 +2017,7 @@ export interface ProximityPlacementGroupsListBySubscription { export interface ProximityPlacementGroupsListByResourceGroup { /** Lists all proximity placement groups in a resource group. */ get( - options: ProximityPlacementGroupsListByResourceGroupParameters + options: ProximityPlacementGroupsListByResourceGroupParameters, ): StreamableMethod< | ProximityPlacementGroupsListByResourceGroup200Response | ProximityPlacementGroupsListByResourceGroupDefaultResponse @@ -2027,7 +2027,7 @@ export interface ProximityPlacementGroupsListByResourceGroup { export interface DedicatedHostGroupsCreateOrUpdate { /** Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) */ put( - options: DedicatedHostGroupsCreateOrUpdateParameters + options: DedicatedHostGroupsCreateOrUpdateParameters, ): StreamableMethod< | DedicatedHostGroupsCreateOrUpdate200Response | DedicatedHostGroupsCreateOrUpdate201Response @@ -2035,13 +2035,13 @@ export interface DedicatedHostGroupsCreateOrUpdate { >; /** Update an dedicated host group. */ patch( - options: DedicatedHostGroupsUpdateParameters + options: DedicatedHostGroupsUpdateParameters, ): StreamableMethod< DedicatedHostGroupsUpdate200Response | DedicatedHostGroupsUpdateDefaultResponse >; /** Delete a dedicated host group. */ delete( - options: DedicatedHostGroupsDeleteParameters + options: DedicatedHostGroupsDeleteParameters, ): StreamableMethod< | DedicatedHostGroupsDelete200Response | DedicatedHostGroupsDelete204Response @@ -2049,14 +2049,14 @@ export interface DedicatedHostGroupsCreateOrUpdate { >; /** Retrieves information about a dedicated host group. */ get( - options: DedicatedHostGroupsGetParameters + options: DedicatedHostGroupsGetParameters, ): StreamableMethod; } export interface DedicatedHostGroupsListByResourceGroup { /** Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. */ get( - options: DedicatedHostGroupsListByResourceGroupParameters + options: DedicatedHostGroupsListByResourceGroupParameters, ): StreamableMethod< | DedicatedHostGroupsListByResourceGroup200Response | DedicatedHostGroupsListByResourceGroupDefaultResponse @@ -2066,7 +2066,7 @@ export interface DedicatedHostGroupsListByResourceGroup { export interface DedicatedHostGroupsListBySubscription { /** Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. */ get( - options: DedicatedHostGroupsListBySubscriptionParameters + options: DedicatedHostGroupsListBySubscriptionParameters, ): StreamableMethod< | DedicatedHostGroupsListBySubscription200Response | DedicatedHostGroupsListBySubscriptionDefaultResponse @@ -2076,7 +2076,7 @@ export interface DedicatedHostGroupsListBySubscription { export interface DedicatedHostsCreateOrUpdate { /** Create or update a dedicated host . */ put( - options: DedicatedHostsCreateOrUpdateParameters + options: DedicatedHostsCreateOrUpdateParameters, ): StreamableMethod< | DedicatedHostsCreateOrUpdate200Response | DedicatedHostsCreateOrUpdate201Response @@ -2084,11 +2084,11 @@ export interface DedicatedHostsCreateOrUpdate { >; /** Update an dedicated host . */ patch( - options: DedicatedHostsUpdateParameters + options: DedicatedHostsUpdateParameters, ): StreamableMethod; /** Delete a dedicated host. */ delete( - options: DedicatedHostsDeleteParameters + options: DedicatedHostsDeleteParameters, ): StreamableMethod< | DedicatedHostsDelete200Response | DedicatedHostsDelete202Response @@ -2097,14 +2097,14 @@ export interface DedicatedHostsCreateOrUpdate { >; /** Retrieves information about a dedicated host. */ get( - options: DedicatedHostsGetParameters + options: DedicatedHostsGetParameters, ): StreamableMethod; } export interface DedicatedHostsListByHostGroup { /** Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. */ get( - options: DedicatedHostsListByHostGroupParameters + options: DedicatedHostsListByHostGroupParameters, ): StreamableMethod< DedicatedHostsListByHostGroup200Response | DedicatedHostsListByHostGroupDefaultResponse >; @@ -2113,14 +2113,14 @@ export interface DedicatedHostsListByHostGroup { export interface DedicatedHostsRestart { /** Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details. */ post( - options: DedicatedHostsRestartParameters + options: DedicatedHostsRestartParameters, ): StreamableMethod; } export interface SshPublicKeysListBySubscription { /** Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. */ get( - options: SshPublicKeysListBySubscriptionParameters + options: SshPublicKeysListBySubscriptionParameters, ): StreamableMethod< SshPublicKeysListBySubscription200Response | SshPublicKeysListBySubscriptionDefaultResponse >; @@ -2129,7 +2129,7 @@ export interface SshPublicKeysListBySubscription { export interface SshPublicKeysListByResourceGroup { /** Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. */ get( - options: SshPublicKeysListByResourceGroupParameters + options: SshPublicKeysListByResourceGroupParameters, ): StreamableMethod< SshPublicKeysListByResourceGroup200Response | SshPublicKeysListByResourceGroupDefaultResponse >; @@ -2138,7 +2138,7 @@ export interface SshPublicKeysListByResourceGroup { export interface SshPublicKeysCreate { /** Creates a new SSH public key resource. */ put( - options: SshPublicKeysCreateParameters + options: SshPublicKeysCreateParameters, ): StreamableMethod< | SshPublicKeysCreate200Response | SshPublicKeysCreate201Response @@ -2146,11 +2146,11 @@ export interface SshPublicKeysCreate { >; /** Updates a new SSH public key resource. */ patch( - options: SshPublicKeysUpdateParameters + options: SshPublicKeysUpdateParameters, ): StreamableMethod; /** Delete an SSH public key. */ delete( - options: SshPublicKeysDeleteParameters + options: SshPublicKeysDeleteParameters, ): StreamableMethod< | SshPublicKeysDelete200Response | SshPublicKeysDelete204Response @@ -2158,14 +2158,14 @@ export interface SshPublicKeysCreate { >; /** Retrieves information about an SSH public key. */ get( - options: SshPublicKeysGetParameters + options: SshPublicKeysGetParameters, ): StreamableMethod; } export interface SshPublicKeysGenerateKeyPair { /** Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource. */ post( - options: SshPublicKeysGenerateKeyPairParameters + options: SshPublicKeysGenerateKeyPairParameters, ): StreamableMethod< SshPublicKeysGenerateKeyPair200Response | SshPublicKeysGenerateKeyPairDefaultResponse >; @@ -2174,7 +2174,7 @@ export interface SshPublicKeysGenerateKeyPair { export interface ImagesCreateOrUpdate { /** Create or update an image. */ put( - options: ImagesCreateOrUpdateParameters + options: ImagesCreateOrUpdateParameters, ): StreamableMethod< | ImagesCreateOrUpdate200Response | ImagesCreateOrUpdate201Response @@ -2182,13 +2182,13 @@ export interface ImagesCreateOrUpdate { >; /** Update an image. */ patch( - options: ImagesUpdateParameters + options: ImagesUpdateParameters, ): StreamableMethod< ImagesUpdate200Response | ImagesUpdate201Response | ImagesUpdateDefaultResponse >; /** Deletes an Image. */ delete( - options: ImagesDeleteParameters + options: ImagesDeleteParameters, ): StreamableMethod< | ImagesDelete200Response | ImagesDelete202Response @@ -2197,14 +2197,14 @@ export interface ImagesCreateOrUpdate { >; /** Gets an image. */ get( - options: ImagesGetParameters + options: ImagesGetParameters, ): StreamableMethod; } export interface ImagesListByResourceGroup { /** Gets the list of images under a resource group. */ get( - options: ImagesListByResourceGroupParameters + options: ImagesListByResourceGroupParameters, ): StreamableMethod< ImagesListByResourceGroup200Response | ImagesListByResourceGroupDefaultResponse >; @@ -2213,14 +2213,14 @@ export interface ImagesListByResourceGroup { export interface ImagesList { /** Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. */ get( - options: ImagesListParameters + options: ImagesListParameters, ): StreamableMethod; } export interface RestorePointCollectionsCreateOrUpdate { /** The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. */ put( - options: RestorePointCollectionsCreateOrUpdateParameters + options: RestorePointCollectionsCreateOrUpdateParameters, ): StreamableMethod< | RestorePointCollectionsCreateOrUpdate200Response | RestorePointCollectionsCreateOrUpdate201Response @@ -2228,13 +2228,13 @@ export interface RestorePointCollectionsCreateOrUpdate { >; /** The operation to update the restore point collection. */ patch( - options: RestorePointCollectionsUpdateParameters + options: RestorePointCollectionsUpdateParameters, ): StreamableMethod< RestorePointCollectionsUpdate200Response | RestorePointCollectionsUpdateDefaultResponse >; /** The operation to delete the restore point collection. This operation will also delete all the contained restore points. */ delete( - options: RestorePointCollectionsDeleteParameters + options: RestorePointCollectionsDeleteParameters, ): StreamableMethod< | RestorePointCollectionsDelete200Response | RestorePointCollectionsDelete202Response @@ -2243,7 +2243,7 @@ export interface RestorePointCollectionsCreateOrUpdate { >; /** The operation to get the restore point collection. */ get( - options: RestorePointCollectionsGetParameters + options: RestorePointCollectionsGetParameters, ): StreamableMethod< RestorePointCollectionsGet200Response | RestorePointCollectionsGetDefaultResponse >; @@ -2252,7 +2252,7 @@ export interface RestorePointCollectionsCreateOrUpdate { export interface RestorePointCollectionsList { /** Gets the list of restore point collections in a resource group. */ get( - options: RestorePointCollectionsListParameters + options: RestorePointCollectionsListParameters, ): StreamableMethod< RestorePointCollectionsList200Response | RestorePointCollectionsListDefaultResponse >; @@ -2261,7 +2261,7 @@ export interface RestorePointCollectionsList { export interface RestorePointCollectionsListAll { /** Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections. */ get( - options: RestorePointCollectionsListAllParameters + options: RestorePointCollectionsListAllParameters, ): StreamableMethod< RestorePointCollectionsListAll200Response | RestorePointCollectionsListAllDefaultResponse >; @@ -2270,11 +2270,11 @@ export interface RestorePointCollectionsListAll { export interface RestorePointsCreate { /** The operation to create the restore point. Updating properties of an existing restore point is not allowed */ put( - options: RestorePointsCreateParameters + options: RestorePointsCreateParameters, ): StreamableMethod; /** The operation to delete the restore point. */ delete( - options: RestorePointsDeleteParameters + options: RestorePointsDeleteParameters, ): StreamableMethod< | RestorePointsDelete200Response | RestorePointsDelete202Response @@ -2283,14 +2283,14 @@ export interface RestorePointsCreate { >; /** The operation to get the restore point. */ get( - options: RestorePointsGetParameters + options: RestorePointsGetParameters, ): StreamableMethod; } export interface CapacityReservationGroupsCreateOrUpdate { /** The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more details. */ put( - options: CapacityReservationGroupsCreateOrUpdateParameters + options: CapacityReservationGroupsCreateOrUpdateParameters, ): StreamableMethod< | CapacityReservationGroupsCreateOrUpdate200Response | CapacityReservationGroupsCreateOrUpdate201Response @@ -2298,13 +2298,13 @@ export interface CapacityReservationGroupsCreateOrUpdate { >; /** The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. */ patch( - options: CapacityReservationGroupsUpdateParameters + options: CapacityReservationGroupsUpdateParameters, ): StreamableMethod< CapacityReservationGroupsUpdate200Response | CapacityReservationGroupsUpdateDefaultResponse >; /** The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details. */ delete( - options: CapacityReservationGroupsDeleteParameters + options: CapacityReservationGroupsDeleteParameters, ): StreamableMethod< | CapacityReservationGroupsDelete200Response | CapacityReservationGroupsDelete204Response @@ -2312,7 +2312,7 @@ export interface CapacityReservationGroupsCreateOrUpdate { >; /** The operation that retrieves information about a capacity reservation group. */ get( - options: CapacityReservationGroupsGetParameters + options: CapacityReservationGroupsGetParameters, ): StreamableMethod< CapacityReservationGroupsGet200Response | CapacityReservationGroupsGetDefaultResponse >; @@ -2321,7 +2321,7 @@ export interface CapacityReservationGroupsCreateOrUpdate { export interface CapacityReservationGroupsListByResourceGroup { /** Lists all of the capacity reservation groups in the specified resource group. Use the nextLink property in the response to get the next page of capacity reservation groups. */ get( - options: CapacityReservationGroupsListByResourceGroupParameters + options: CapacityReservationGroupsListByResourceGroupParameters, ): StreamableMethod< | CapacityReservationGroupsListByResourceGroup200Response | CapacityReservationGroupsListByResourceGroupDefaultResponse @@ -2331,7 +2331,7 @@ export interface CapacityReservationGroupsListByResourceGroup { export interface CapacityReservationGroupsListBySubscription { /** Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups. */ get( - options: CapacityReservationGroupsListBySubscriptionParameters + options: CapacityReservationGroupsListBySubscriptionParameters, ): StreamableMethod< | CapacityReservationGroupsListBySubscription200Response | CapacityReservationGroupsListBySubscriptionDefaultResponse @@ -2341,7 +2341,7 @@ export interface CapacityReservationGroupsListBySubscription { export interface CapacityReservationsCreateOrUpdate { /** The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details. */ put( - options: CapacityReservationsCreateOrUpdateParameters + options: CapacityReservationsCreateOrUpdateParameters, ): StreamableMethod< | CapacityReservationsCreateOrUpdate200Response | CapacityReservationsCreateOrUpdate201Response @@ -2349,7 +2349,7 @@ export interface CapacityReservationsCreateOrUpdate { >; /** The operation to update a capacity reservation. */ patch( - options: CapacityReservationsUpdateParameters + options: CapacityReservationsUpdateParameters, ): StreamableMethod< | CapacityReservationsUpdate200Response | CapacityReservationsUpdate202Response @@ -2357,7 +2357,7 @@ export interface CapacityReservationsCreateOrUpdate { >; /** The operation to delete a capacity reservation. This operation is allowed only when all the associated resources are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more details. */ delete( - options: CapacityReservationsDeleteParameters + options: CapacityReservationsDeleteParameters, ): StreamableMethod< | CapacityReservationsDelete200Response | CapacityReservationsDelete202Response @@ -2366,14 +2366,14 @@ export interface CapacityReservationsCreateOrUpdate { >; /** The operation that retrieves information about the capacity reservation. */ get( - options: CapacityReservationsGetParameters + options: CapacityReservationsGetParameters, ): StreamableMethod; } export interface CapacityReservationsListByCapacityReservationGroup { /** Lists all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations. */ get( - options: CapacityReservationsListByCapacityReservationGroupParameters + options: CapacityReservationsListByCapacityReservationGroupParameters, ): StreamableMethod< | CapacityReservationsListByCapacityReservationGroup200Response | CapacityReservationsListByCapacityReservationGroupDefaultResponse @@ -2383,7 +2383,7 @@ export interface CapacityReservationsListByCapacityReservationGroup { export interface LogAnalyticsExportRequestRateByInterval { /** Export logs that show Api requests made by this subscription in the given time window to show throttling activities. */ post( - options: LogAnalyticsExportRequestRateByIntervalParameters + options: LogAnalyticsExportRequestRateByIntervalParameters, ): StreamableMethod< | LogAnalyticsExportRequestRateByInterval200Response | LogAnalyticsExportRequestRateByInterval202Response @@ -2394,7 +2394,7 @@ export interface LogAnalyticsExportRequestRateByInterval { export interface LogAnalyticsExportThrottledRequests { /** Export logs that show total throttled Api requests for this subscription in the given time window. */ post( - options: LogAnalyticsExportThrottledRequestsParameters + options: LogAnalyticsExportThrottledRequestsParameters, ): StreamableMethod< | LogAnalyticsExportThrottledRequests200Response | LogAnalyticsExportThrottledRequests202Response @@ -2405,21 +2405,21 @@ export interface LogAnalyticsExportThrottledRequests { export interface VirtualMachineRunCommandsList { /** Lists all available run commands for a subscription in a location. */ get( - options: VirtualMachineRunCommandsListParameters + options: VirtualMachineRunCommandsListParameters, ): StreamableMethod; } export interface VirtualMachineRunCommandsGet { /** Gets specific run command for a subscription in a location. */ get( - options: VirtualMachineRunCommandsGetParameters + options: VirtualMachineRunCommandsGetParameters, ): StreamableMethod; } export interface VirtualMachineRunCommandsCreateOrUpdate { /** The operation to create or update the run command. */ put( - options: VirtualMachineRunCommandsCreateOrUpdateParameters + options: VirtualMachineRunCommandsCreateOrUpdateParameters, ): StreamableMethod< | VirtualMachineRunCommandsCreateOrUpdate200Response | VirtualMachineRunCommandsCreateOrUpdate201Response @@ -2427,13 +2427,13 @@ export interface VirtualMachineRunCommandsCreateOrUpdate { >; /** The operation to update the run command. */ patch( - options: VirtualMachineRunCommandsUpdateParameters + options: VirtualMachineRunCommandsUpdateParameters, ): StreamableMethod< VirtualMachineRunCommandsUpdate200Response | VirtualMachineRunCommandsUpdateDefaultResponse >; /** The operation to delete the run command. */ delete( - options: VirtualMachineRunCommandsDeleteParameters + options: VirtualMachineRunCommandsDeleteParameters, ): StreamableMethod< | VirtualMachineRunCommandsDelete200Response | VirtualMachineRunCommandsDelete202Response @@ -2442,7 +2442,7 @@ export interface VirtualMachineRunCommandsCreateOrUpdate { >; /** The operation to get the run command. */ get( - options: VirtualMachineRunCommandsGetByVirtualMachineParameters + options: VirtualMachineRunCommandsGetByVirtualMachineParameters, ): StreamableMethod< | VirtualMachineRunCommandsGetByVirtualMachine200Response | VirtualMachineRunCommandsGetByVirtualMachineDefaultResponse @@ -2452,7 +2452,7 @@ export interface VirtualMachineRunCommandsCreateOrUpdate { export interface VirtualMachineRunCommandsListByVirtualMachine { /** The operation to get all run commands of a Virtual Machine. */ get( - options: VirtualMachineRunCommandsListByVirtualMachineParameters + options: VirtualMachineRunCommandsListByVirtualMachineParameters, ): StreamableMethod< | VirtualMachineRunCommandsListByVirtualMachine200Response | VirtualMachineRunCommandsListByVirtualMachineDefaultResponse @@ -2462,7 +2462,7 @@ export interface VirtualMachineRunCommandsListByVirtualMachine { export interface VirtualMachineScaleSetVMRunCommandsCreateOrUpdate { /** The operation to create or update the VMSS VM run command. */ put( - options: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateParameters + options: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateParameters, ): StreamableMethod< | VirtualMachineScaleSetVMRunCommandsCreateOrUpdate200Response | VirtualMachineScaleSetVMRunCommandsCreateOrUpdate201Response @@ -2470,14 +2470,14 @@ export interface VirtualMachineScaleSetVMRunCommandsCreateOrUpdate { >; /** The operation to update the VMSS VM run command. */ patch( - options: VirtualMachineScaleSetVMRunCommandsUpdateParameters + options: VirtualMachineScaleSetVMRunCommandsUpdateParameters, ): StreamableMethod< | VirtualMachineScaleSetVMRunCommandsUpdate200Response | VirtualMachineScaleSetVMRunCommandsUpdateDefaultResponse >; /** The operation to delete the VMSS VM run command. */ delete( - options: VirtualMachineScaleSetVMRunCommandsDeleteParameters + options: VirtualMachineScaleSetVMRunCommandsDeleteParameters, ): StreamableMethod< | VirtualMachineScaleSetVMRunCommandsDelete200Response | VirtualMachineScaleSetVMRunCommandsDelete202Response @@ -2486,7 +2486,7 @@ export interface VirtualMachineScaleSetVMRunCommandsCreateOrUpdate { >; /** The operation to get the VMSS VM run command. */ get( - options: VirtualMachineScaleSetVMRunCommandsGetParameters + options: VirtualMachineScaleSetVMRunCommandsGetParameters, ): StreamableMethod< | VirtualMachineScaleSetVMRunCommandsGet200Response | VirtualMachineScaleSetVMRunCommandsGetDefaultResponse @@ -2496,7 +2496,7 @@ export interface VirtualMachineScaleSetVMRunCommandsCreateOrUpdate { export interface VirtualMachineScaleSetVMRunCommandsList { /** The operation to get all run commands of an instance in Virtual Machine Scaleset. */ get( - options: VirtualMachineScaleSetVMRunCommandsListParameters + options: VirtualMachineScaleSetVMRunCommandsListParameters, ): StreamableMethod< | VirtualMachineScaleSetVMRunCommandsList200Response | VirtualMachineScaleSetVMRunCommandsListDefaultResponse @@ -2506,24 +2506,24 @@ export interface VirtualMachineScaleSetVMRunCommandsList { export interface DisksCreateOrUpdate { /** Creates or updates a disk. */ put( - options: DisksCreateOrUpdateParameters + options: DisksCreateOrUpdateParameters, ): StreamableMethod; /** Updates (patches) a disk. */ patch( - options: DisksUpdateParameters + options: DisksUpdateParameters, ): StreamableMethod; /** Gets information about a disk. */ get(options: DisksGetParameters): StreamableMethod; /** Deletes a disk. */ delete( - options: DisksDeleteParameters + options: DisksDeleteParameters, ): StreamableMethod; } export interface DisksListByResourceGroup { /** Lists all the disks under a resource group. */ get( - options: DisksListByResourceGroupParameters + options: DisksListByResourceGroupParameters, ): StreamableMethod; } @@ -2535,21 +2535,21 @@ export interface DisksList { export interface DisksGrantAccess { /** Grants access to a disk. */ post( - options: DisksGrantAccessParameters + options: DisksGrantAccessParameters, ): StreamableMethod; } export interface DisksRevokeAccess { /** Revokes access to a disk. */ post( - options: DisksRevokeAccessParameters + options: DisksRevokeAccessParameters, ): StreamableMethod; } export interface DiskAccessesCreateOrUpdate { /** Creates or updates a disk access resource */ put( - options: DiskAccessesCreateOrUpdateParameters + options: DiskAccessesCreateOrUpdateParameters, ): StreamableMethod< | DiskAccessesCreateOrUpdate200Response | DiskAccessesCreateOrUpdate202Response @@ -2557,7 +2557,7 @@ export interface DiskAccessesCreateOrUpdate { >; /** Updates (patches) a disk access resource. */ patch( - options: DiskAccessesUpdateParameters + options: DiskAccessesUpdateParameters, ): StreamableMethod< | DiskAccessesUpdate200Response | DiskAccessesUpdate202Response @@ -2565,11 +2565,11 @@ export interface DiskAccessesCreateOrUpdate { >; /** Gets information about a disk access resource. */ get( - options: DiskAccessesGetParameters + options: DiskAccessesGetParameters, ): StreamableMethod; /** Deletes a disk access resource. */ delete( - options: DiskAccessesDeleteParameters + options: DiskAccessesDeleteParameters, ): StreamableMethod< | DiskAccessesDelete200Response | DiskAccessesDelete202Response @@ -2581,7 +2581,7 @@ export interface DiskAccessesCreateOrUpdate { export interface DiskAccessesListByResourceGroup { /** Lists all the disk access resources under a resource group. */ get( - options: DiskAccessesListByResourceGroupParameters + options: DiskAccessesListByResourceGroupParameters, ): StreamableMethod< DiskAccessesListByResourceGroup200Response | DiskAccessesListByResourceGroupDefaultResponse >; @@ -2590,21 +2590,21 @@ export interface DiskAccessesListByResourceGroup { export interface DiskAccessesList { /** Lists all the disk access resources under a subscription. */ get( - options: DiskAccessesListParameters + options: DiskAccessesListParameters, ): StreamableMethod; } export interface DiskAccessesGetPrivateLinkResources { /** Gets the private link resources possible under disk access resource */ get( - options: DiskAccessesGetPrivateLinkResourcesParameters + options: DiskAccessesGetPrivateLinkResourcesParameters, ): StreamableMethod; } export interface DiskAccessesUpdateAPrivateEndpointConnection { /** Approve or reject a private endpoint connection under disk access resource, this can't be used to create a new private endpoint connection. */ put( - options: DiskAccessesUpdateAPrivateEndpointConnectionParameters + options: DiskAccessesUpdateAPrivateEndpointConnectionParameters, ): StreamableMethod< | DiskAccessesUpdateAPrivateEndpointConnection200Response | DiskAccessesUpdateAPrivateEndpointConnection202Response @@ -2612,14 +2612,14 @@ export interface DiskAccessesUpdateAPrivateEndpointConnection { >; /** Gets information about a private endpoint connection under a disk access resource. */ get( - options: DiskAccessesGetAPrivateEndpointConnectionParameters + options: DiskAccessesGetAPrivateEndpointConnectionParameters, ): StreamableMethod< | DiskAccessesGetAPrivateEndpointConnection200Response | DiskAccessesGetAPrivateEndpointConnectionDefaultResponse >; /** Deletes a private endpoint connection under a disk access resource. */ delete( - options: DiskAccessesDeleteAPrivateEndpointConnectionParameters + options: DiskAccessesDeleteAPrivateEndpointConnectionParameters, ): StreamableMethod< | DiskAccessesDeleteAPrivateEndpointConnection200Response | DiskAccessesDeleteAPrivateEndpointConnection202Response @@ -2631,7 +2631,7 @@ export interface DiskAccessesUpdateAPrivateEndpointConnection { export interface DiskAccessesListPrivateEndpointConnections { /** List information about private endpoint connections under a disk access resource */ get( - options: DiskAccessesListPrivateEndpointConnectionsParameters + options: DiskAccessesListPrivateEndpointConnectionsParameters, ): StreamableMethod< | DiskAccessesListPrivateEndpointConnections200Response | DiskAccessesListPrivateEndpointConnectionsDefaultResponse @@ -2641,7 +2641,7 @@ export interface DiskAccessesListPrivateEndpointConnections { export interface DiskEncryptionSetsCreateOrUpdate { /** Creates or updates a disk encryption set */ put( - options: DiskEncryptionSetsCreateOrUpdateParameters + options: DiskEncryptionSetsCreateOrUpdateParameters, ): StreamableMethod< | DiskEncryptionSetsCreateOrUpdate200Response | DiskEncryptionSetsCreateOrUpdate202Response @@ -2649,7 +2649,7 @@ export interface DiskEncryptionSetsCreateOrUpdate { >; /** Updates (patches) a disk encryption set. */ patch( - options: DiskEncryptionSetsUpdateParameters + options: DiskEncryptionSetsUpdateParameters, ): StreamableMethod< | DiskEncryptionSetsUpdate200Response | DiskEncryptionSetsUpdate202Response @@ -2657,11 +2657,11 @@ export interface DiskEncryptionSetsCreateOrUpdate { >; /** Gets information about a disk encryption set. */ get( - options: DiskEncryptionSetsGetParameters + options: DiskEncryptionSetsGetParameters, ): StreamableMethod; /** Deletes a disk encryption set. */ delete( - options: DiskEncryptionSetsDeleteParameters + options: DiskEncryptionSetsDeleteParameters, ): StreamableMethod< | DiskEncryptionSetsDelete200Response | DiskEncryptionSetsDelete202Response @@ -2673,7 +2673,7 @@ export interface DiskEncryptionSetsCreateOrUpdate { export interface DiskEncryptionSetsListByResourceGroup { /** Lists all the disk encryption sets under a resource group. */ get( - options: DiskEncryptionSetsListByResourceGroupParameters + options: DiskEncryptionSetsListByResourceGroupParameters, ): StreamableMethod< | DiskEncryptionSetsListByResourceGroup200Response | DiskEncryptionSetsListByResourceGroupDefaultResponse @@ -2683,14 +2683,14 @@ export interface DiskEncryptionSetsListByResourceGroup { export interface DiskEncryptionSetsList { /** Lists all the disk encryption sets under a subscription. */ get( - options: DiskEncryptionSetsListParameters + options: DiskEncryptionSetsListParameters, ): StreamableMethod; } export interface DiskEncryptionSetsListAssociatedResources { /** Lists all resources that are encrypted with this disk encryption set. */ get( - options: DiskEncryptionSetsListAssociatedResourcesParameters + options: DiskEncryptionSetsListAssociatedResourcesParameters, ): StreamableMethod< | DiskEncryptionSetsListAssociatedResources200Response | DiskEncryptionSetsListAssociatedResourcesDefaultResponse @@ -2700,14 +2700,14 @@ export interface DiskEncryptionSetsListAssociatedResources { export interface DiskRestorePointGet { /** Get disk restorePoint resource */ get( - options: DiskRestorePointGetParameters + options: DiskRestorePointGetParameters, ): StreamableMethod; } export interface DiskRestorePointListByRestorePoint { /** Lists diskRestorePoints under a vmRestorePoint. */ get( - options: DiskRestorePointListByRestorePointParameters + options: DiskRestorePointListByRestorePointParameters, ): StreamableMethod< | DiskRestorePointListByRestorePoint200Response | DiskRestorePointListByRestorePointDefaultResponse @@ -2717,7 +2717,7 @@ export interface DiskRestorePointListByRestorePoint { export interface DiskRestorePointGrantAccess { /** Grants access to a diskRestorePoint. */ post( - options: DiskRestorePointGrantAccessParameters + options: DiskRestorePointGrantAccessParameters, ): StreamableMethod< | DiskRestorePointGrantAccess200Response | DiskRestorePointGrantAccess202Response @@ -2728,7 +2728,7 @@ export interface DiskRestorePointGrantAccess { export interface DiskRestorePointRevokeAccess { /** Revokes access to a diskRestorePoint. */ post( - options: DiskRestorePointRevokeAccessParameters + options: DiskRestorePointRevokeAccessParameters, ): StreamableMethod< | DiskRestorePointRevokeAccess200Response | DiskRestorePointRevokeAccess202Response @@ -2739,17 +2739,17 @@ export interface DiskRestorePointRevokeAccess { export interface SnapshotsCreateOrUpdate { /** Creates or updates a snapshot. */ put( - options: SnapshotsCreateOrUpdateParameters + options: SnapshotsCreateOrUpdateParameters, ): StreamableMethod; /** Updates (patches) a snapshot. */ patch( - options: SnapshotsUpdateParameters + options: SnapshotsUpdateParameters, ): StreamableMethod; /** Gets information about a snapshot. */ get(options: SnapshotsGetParameters): StreamableMethod; /** Deletes a snapshot. */ delete( - options: SnapshotsDeleteParameters + options: SnapshotsDeleteParameters, ): StreamableMethod< SnapshotsDelete200Response | SnapshotsDelete202Response | SnapshotsDelete204Response >; @@ -2758,7 +2758,7 @@ export interface SnapshotsCreateOrUpdate { export interface SnapshotsListByResourceGroup { /** Lists snapshots under a resource group. */ get( - options: SnapshotsListByResourceGroupParameters + options: SnapshotsListByResourceGroupParameters, ): StreamableMethod; } @@ -2770,14 +2770,14 @@ export interface SnapshotsList { export interface SnapshotsGrantAccess { /** Grants access to a snapshot. */ post( - options: SnapshotsGrantAccessParameters + options: SnapshotsGrantAccessParameters, ): StreamableMethod; } export interface SnapshotsRevokeAccess { /** Revokes access to a snapshot. */ post( - options: SnapshotsRevokeAccessParameters + options: SnapshotsRevokeAccessParameters, ): StreamableMethod; } @@ -2789,7 +2789,7 @@ export interface ResourceSkusList { export interface GalleriesCreateOrUpdate { /** Create or update a Shared Image Gallery. */ put( - options: GalleriesCreateOrUpdateParameters + options: GalleriesCreateOrUpdateParameters, ): StreamableMethod< | GalleriesCreateOrUpdate200Response | GalleriesCreateOrUpdate201Response @@ -2798,15 +2798,15 @@ export interface GalleriesCreateOrUpdate { >; /** Update a Shared Image Gallery. */ patch( - options: GalleriesUpdateParameters + options: GalleriesUpdateParameters, ): StreamableMethod; /** Retrieves information about a Shared Image Gallery. */ get( - options: GalleriesGetParameters + options: GalleriesGetParameters, ): StreamableMethod; /** Delete a Shared Image Gallery. */ delete( - options: GalleriesDeleteParameters + options: GalleriesDeleteParameters, ): StreamableMethod< | GalleriesDelete200Response | GalleriesDelete202Response @@ -2818,7 +2818,7 @@ export interface GalleriesCreateOrUpdate { export interface GalleriesListByResourceGroup { /** List galleries under a resource group. */ get( - options: GalleriesListByResourceGroupParameters + options: GalleriesListByResourceGroupParameters, ): StreamableMethod< GalleriesListByResourceGroup200Response | GalleriesListByResourceGroupDefaultResponse >; @@ -2827,14 +2827,14 @@ export interface GalleriesListByResourceGroup { export interface GalleriesList { /** List galleries under a subscription. */ get( - options: GalleriesListParameters + options: GalleriesListParameters, ): StreamableMethod; } export interface GalleryImagesCreateOrUpdate { /** Create or update a gallery image definition. */ put( - options: GalleryImagesCreateOrUpdateParameters + options: GalleryImagesCreateOrUpdateParameters, ): StreamableMethod< | GalleryImagesCreateOrUpdate200Response | GalleryImagesCreateOrUpdate201Response @@ -2843,15 +2843,15 @@ export interface GalleryImagesCreateOrUpdate { >; /** Update a gallery image definition. */ patch( - options: GalleryImagesUpdateParameters + options: GalleryImagesUpdateParameters, ): StreamableMethod; /** Retrieves information about a gallery image definition. */ get( - options: GalleryImagesGetParameters + options: GalleryImagesGetParameters, ): StreamableMethod; /** Delete a gallery image. */ delete( - options: GalleryImagesDeleteParameters + options: GalleryImagesDeleteParameters, ): StreamableMethod< | GalleryImagesDelete200Response | GalleryImagesDelete202Response @@ -2863,7 +2863,7 @@ export interface GalleryImagesCreateOrUpdate { export interface GalleryImagesListByGallery { /** List gallery image definitions in a gallery. */ get( - options: GalleryImagesListByGalleryParameters + options: GalleryImagesListByGalleryParameters, ): StreamableMethod< GalleryImagesListByGallery200Response | GalleryImagesListByGalleryDefaultResponse >; @@ -2872,7 +2872,7 @@ export interface GalleryImagesListByGallery { export interface GalleryImageVersionsCreateOrUpdate { /** Create or update a gallery image version. */ put( - options: GalleryImageVersionsCreateOrUpdateParameters + options: GalleryImageVersionsCreateOrUpdateParameters, ): StreamableMethod< | GalleryImageVersionsCreateOrUpdate200Response | GalleryImageVersionsCreateOrUpdate201Response @@ -2881,17 +2881,17 @@ export interface GalleryImageVersionsCreateOrUpdate { >; /** Update a gallery image version. */ patch( - options: GalleryImageVersionsUpdateParameters + options: GalleryImageVersionsUpdateParameters, ): StreamableMethod< GalleryImageVersionsUpdate200Response | GalleryImageVersionsUpdateDefaultResponse >; /** Retrieves information about a gallery image version. */ get( - options: GalleryImageVersionsGetParameters + options: GalleryImageVersionsGetParameters, ): StreamableMethod; /** Delete a gallery image version. */ delete( - options: GalleryImageVersionsDeleteParameters + options: GalleryImageVersionsDeleteParameters, ): StreamableMethod< | GalleryImageVersionsDelete200Response | GalleryImageVersionsDelete202Response @@ -2903,7 +2903,7 @@ export interface GalleryImageVersionsCreateOrUpdate { export interface GalleryImageVersionsListByGalleryImage { /** List gallery image versions in a gallery image definition. */ get( - options: GalleryImageVersionsListByGalleryImageParameters + options: GalleryImageVersionsListByGalleryImageParameters, ): StreamableMethod< | GalleryImageVersionsListByGalleryImage200Response | GalleryImageVersionsListByGalleryImageDefaultResponse @@ -2913,7 +2913,7 @@ export interface GalleryImageVersionsListByGalleryImage { export interface GalleryApplicationsCreateOrUpdate { /** Create or update a gallery Application Definition. */ put( - options: GalleryApplicationsCreateOrUpdateParameters + options: GalleryApplicationsCreateOrUpdateParameters, ): StreamableMethod< | GalleryApplicationsCreateOrUpdate200Response | GalleryApplicationsCreateOrUpdate201Response @@ -2922,17 +2922,17 @@ export interface GalleryApplicationsCreateOrUpdate { >; /** Update a gallery Application Definition. */ patch( - options: GalleryApplicationsUpdateParameters + options: GalleryApplicationsUpdateParameters, ): StreamableMethod< GalleryApplicationsUpdate200Response | GalleryApplicationsUpdateDefaultResponse >; /** Retrieves information about a gallery Application Definition. */ get( - options: GalleryApplicationsGetParameters + options: GalleryApplicationsGetParameters, ): StreamableMethod; /** Delete a gallery Application. */ delete( - options: GalleryApplicationsDeleteParameters + options: GalleryApplicationsDeleteParameters, ): StreamableMethod< | GalleryApplicationsDelete200Response | GalleryApplicationsDelete202Response @@ -2944,7 +2944,7 @@ export interface GalleryApplicationsCreateOrUpdate { export interface GalleryApplicationsListByGallery { /** List gallery Application Definitions in a gallery. */ get( - options: GalleryApplicationsListByGalleryParameters + options: GalleryApplicationsListByGalleryParameters, ): StreamableMethod< GalleryApplicationsListByGallery200Response | GalleryApplicationsListByGalleryDefaultResponse >; @@ -2953,7 +2953,7 @@ export interface GalleryApplicationsListByGallery { export interface GalleryApplicationVersionsCreateOrUpdate { /** Create or update a gallery Application Version. */ put( - options: GalleryApplicationVersionsCreateOrUpdateParameters + options: GalleryApplicationVersionsCreateOrUpdateParameters, ): StreamableMethod< | GalleryApplicationVersionsCreateOrUpdate200Response | GalleryApplicationVersionsCreateOrUpdate201Response @@ -2962,19 +2962,19 @@ export interface GalleryApplicationVersionsCreateOrUpdate { >; /** Update a gallery Application Version. */ patch( - options: GalleryApplicationVersionsUpdateParameters + options: GalleryApplicationVersionsUpdateParameters, ): StreamableMethod< GalleryApplicationVersionsUpdate200Response | GalleryApplicationVersionsUpdateDefaultResponse >; /** Retrieves information about a gallery Application Version. */ get( - options: GalleryApplicationVersionsGetParameters + options: GalleryApplicationVersionsGetParameters, ): StreamableMethod< GalleryApplicationVersionsGet200Response | GalleryApplicationVersionsGetDefaultResponse >; /** Delete a gallery Application Version. */ delete( - options: GalleryApplicationVersionsDeleteParameters + options: GalleryApplicationVersionsDeleteParameters, ): StreamableMethod< | GalleryApplicationVersionsDelete200Response | GalleryApplicationVersionsDelete202Response @@ -2986,7 +2986,7 @@ export interface GalleryApplicationVersionsCreateOrUpdate { export interface GalleryApplicationVersionsListByGalleryApplication { /** List gallery Application Versions in a gallery Application Definition. */ get( - options: GalleryApplicationVersionsListByGalleryApplicationParameters + options: GalleryApplicationVersionsListByGalleryApplicationParameters, ): StreamableMethod< | GalleryApplicationVersionsListByGalleryApplication200Response | GalleryApplicationVersionsListByGalleryApplicationDefaultResponse @@ -2996,7 +2996,7 @@ export interface GalleryApplicationVersionsListByGalleryApplication { export interface GallerySharingProfileUpdate { /** Update sharing profile of a gallery. */ post( - options: GallerySharingProfileUpdateParameters + options: GallerySharingProfileUpdateParameters, ): StreamableMethod< | GallerySharingProfileUpdate200Response | GallerySharingProfileUpdate202Response @@ -3007,35 +3007,35 @@ export interface GallerySharingProfileUpdate { export interface SharedGalleriesList { /** List shared galleries by subscription id or tenant id. */ get( - options: SharedGalleriesListParameters + options: SharedGalleriesListParameters, ): StreamableMethod; } export interface SharedGalleriesGet { /** Get a shared gallery by subscription id or tenant id. */ get( - options: SharedGalleriesGetParameters + options: SharedGalleriesGetParameters, ): StreamableMethod; } export interface SharedGalleryImagesList { /** List shared gallery images by subscription id or tenant id. */ get( - options: SharedGalleryImagesListParameters + options: SharedGalleryImagesListParameters, ): StreamableMethod; } export interface SharedGalleryImagesGet { /** Get a shared gallery image by subscription id or tenant id. */ get( - options: SharedGalleryImagesGetParameters + options: SharedGalleryImagesGetParameters, ): StreamableMethod; } export interface SharedGalleryImageVersionsList { /** List shared gallery image versions by subscription id or tenant id. */ get( - options: SharedGalleryImageVersionsListParameters + options: SharedGalleryImageVersionsListParameters, ): StreamableMethod< SharedGalleryImageVersionsList200Response | SharedGalleryImageVersionsListDefaultResponse >; @@ -3044,7 +3044,7 @@ export interface SharedGalleryImageVersionsList { export interface SharedGalleryImageVersionsGet { /** Get a shared gallery image version by subscription id or tenant id. */ get( - options: SharedGalleryImageVersionsGetParameters + options: SharedGalleryImageVersionsGetParameters, ): StreamableMethod< SharedGalleryImageVersionsGet200Response | SharedGalleryImageVersionsGetDefaultResponse >; @@ -3053,14 +3053,14 @@ export interface SharedGalleryImageVersionsGet { export interface CommunityGalleriesGet { /** Get a community gallery by gallery public name. */ get( - options: CommunityGalleriesGetParameters + options: CommunityGalleriesGetParameters, ): StreamableMethod; } export interface CommunityGalleryImagesGet { /** Get a community gallery image. */ get( - options: CommunityGalleryImagesGetParameters + options: CommunityGalleryImagesGetParameters, ): StreamableMethod< CommunityGalleryImagesGet200Response | CommunityGalleryImagesGetDefaultResponse >; @@ -3069,7 +3069,7 @@ export interface CommunityGalleryImagesGet { export interface CommunityGalleryImagesList { /** List community gallery images inside a gallery. */ get( - options: CommunityGalleryImagesListParameters + options: CommunityGalleryImagesListParameters, ): StreamableMethod< CommunityGalleryImagesList200Response | CommunityGalleryImagesListDefaultResponse >; @@ -3078,7 +3078,7 @@ export interface CommunityGalleryImagesList { export interface CommunityGalleryImageVersionsGet { /** Get a community gallery image version. */ get( - options: CommunityGalleryImageVersionsGetParameters + options: CommunityGalleryImageVersionsGetParameters, ): StreamableMethod< CommunityGalleryImageVersionsGet200Response | CommunityGalleryImageVersionsGetDefaultResponse >; @@ -3087,7 +3087,7 @@ export interface CommunityGalleryImageVersionsGet { export interface CommunityGalleryImageVersionsList { /** List community gallery image versions inside an image. */ get( - options: CommunityGalleryImageVersionsListParameters + options: CommunityGalleryImageVersionsListParameters, ): StreamableMethod< CommunityGalleryImageVersionsList200Response | CommunityGalleryImageVersionsListDefaultResponse >; @@ -3096,7 +3096,7 @@ export interface CommunityGalleryImageVersionsList { export interface CloudServiceRoleInstancesDelete { /** Deletes a role instance from a cloud service. */ delete( - options: CloudServiceRoleInstancesDeleteParameters + options: CloudServiceRoleInstancesDeleteParameters, ): StreamableMethod< | CloudServiceRoleInstancesDelete200Response | CloudServiceRoleInstancesDelete202Response @@ -3105,7 +3105,7 @@ export interface CloudServiceRoleInstancesDelete { >; /** Gets a role instance from a cloud service. */ get( - options: CloudServiceRoleInstancesGetParameters + options: CloudServiceRoleInstancesGetParameters, ): StreamableMethod< CloudServiceRoleInstancesGet200Response | CloudServiceRoleInstancesGetDefaultResponse >; @@ -3114,7 +3114,7 @@ export interface CloudServiceRoleInstancesDelete { export interface CloudServiceRoleInstancesGetInstanceView { /** Retrieves information about the run-time state of a role instance in a cloud service. */ get( - options: CloudServiceRoleInstancesGetInstanceViewParameters + options: CloudServiceRoleInstancesGetInstanceViewParameters, ): StreamableMethod< | CloudServiceRoleInstancesGetInstanceView200Response | CloudServiceRoleInstancesGetInstanceViewDefaultResponse @@ -3124,7 +3124,7 @@ export interface CloudServiceRoleInstancesGetInstanceView { export interface CloudServiceRoleInstancesList { /** Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role instances. */ get( - options: CloudServiceRoleInstancesListParameters + options: CloudServiceRoleInstancesListParameters, ): StreamableMethod< CloudServiceRoleInstancesList200Response | CloudServiceRoleInstancesListDefaultResponse >; @@ -3133,7 +3133,7 @@ export interface CloudServiceRoleInstancesList { export interface CloudServiceRoleInstancesRestart { /** The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. */ post( - options: CloudServiceRoleInstancesRestartParameters + options: CloudServiceRoleInstancesRestartParameters, ): StreamableMethod< | CloudServiceRoleInstancesRestart200Response | CloudServiceRoleInstancesRestart202Response @@ -3144,7 +3144,7 @@ export interface CloudServiceRoleInstancesRestart { export interface CloudServiceRoleInstancesReimage { /** The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. */ post( - options: CloudServiceRoleInstancesReimageParameters + options: CloudServiceRoleInstancesReimageParameters, ): StreamableMethod< | CloudServiceRoleInstancesReimage200Response | CloudServiceRoleInstancesReimage202Response @@ -3155,7 +3155,7 @@ export interface CloudServiceRoleInstancesReimage { export interface CloudServiceRoleInstancesRebuild { /** The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instance. */ post( - options: CloudServiceRoleInstancesRebuildParameters + options: CloudServiceRoleInstancesRebuildParameters, ): StreamableMethod< | CloudServiceRoleInstancesRebuild200Response | CloudServiceRoleInstancesRebuild202Response @@ -3166,7 +3166,7 @@ export interface CloudServiceRoleInstancesRebuild { export interface CloudServiceRoleInstancesGetRemoteDesktopFile { /** Gets a remote desktop file for a role instance in a cloud service. */ get( - options: CloudServiceRoleInstancesGetRemoteDesktopFileParameters + options: CloudServiceRoleInstancesGetRemoteDesktopFileParameters, ): StreamableMethod< | CloudServiceRoleInstancesGetRemoteDesktopFile200Response | CloudServiceRoleInstancesGetRemoteDesktopFileDefaultResponse @@ -3176,21 +3176,21 @@ export interface CloudServiceRoleInstancesGetRemoteDesktopFile { export interface CloudServiceRolesGet { /** Gets a role from a cloud service. */ get( - options: CloudServiceRolesGetParameters + options: CloudServiceRolesGetParameters, ): StreamableMethod; } export interface CloudServiceRolesList { /** Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles. */ get( - options: CloudServiceRolesListParameters + options: CloudServiceRolesListParameters, ): StreamableMethod; } export interface CloudServicesCreateOrUpdate { /** Create or update a cloud service. Please note some properties can be set only during cloud service creation. */ put( - options: CloudServicesCreateOrUpdateParameters + options: CloudServicesCreateOrUpdateParameters, ): StreamableMethod< | CloudServicesCreateOrUpdate200Response | CloudServicesCreateOrUpdate201Response @@ -3198,11 +3198,11 @@ export interface CloudServicesCreateOrUpdate { >; /** Update a cloud service. */ patch( - options: CloudServicesUpdateParameters + options: CloudServicesUpdateParameters, ): StreamableMethod; /** Deletes a cloud service. */ delete( - options: CloudServicesDeleteParameters + options: CloudServicesDeleteParameters, ): StreamableMethod< | CloudServicesDelete200Response | CloudServicesDelete202Response @@ -3211,14 +3211,14 @@ export interface CloudServicesCreateOrUpdate { >; /** Display information about a cloud service. */ get( - options: CloudServicesGetParameters + options: CloudServicesGetParameters, ): StreamableMethod; } export interface CloudServicesGetInstanceView { /** Gets the status of a cloud service. */ get( - options: CloudServicesGetInstanceViewParameters + options: CloudServicesGetInstanceViewParameters, ): StreamableMethod< CloudServicesGetInstanceView200Response | CloudServicesGetInstanceViewDefaultResponse >; @@ -3227,21 +3227,21 @@ export interface CloudServicesGetInstanceView { export interface CloudServicesListAll { /** Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services. */ get( - options: CloudServicesListAllParameters + options: CloudServicesListAllParameters, ): StreamableMethod; } export interface CloudServicesList { /** Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services. */ get( - options: CloudServicesListParameters + options: CloudServicesListParameters, ): StreamableMethod; } export interface CloudServicesStart { /** Starts the cloud service. */ post( - options: CloudServicesStartParameters + options: CloudServicesStartParameters, ): StreamableMethod< | CloudServicesStart200Response | CloudServicesStart202Response @@ -3252,7 +3252,7 @@ export interface CloudServicesStart { export interface CloudServicesPowerOff { /** Power off the cloud service. Note that resources are still attached and you are getting charged for the resources. */ post( - options: CloudServicesPowerOffParameters + options: CloudServicesPowerOffParameters, ): StreamableMethod< | CloudServicesPowerOff200Response | CloudServicesPowerOff202Response @@ -3263,7 +3263,7 @@ export interface CloudServicesPowerOff { export interface CloudServicesRestart { /** Restarts one or more role instances in a cloud service. */ post( - options: CloudServicesRestartParameters + options: CloudServicesRestartParameters, ): StreamableMethod< | CloudServicesRestart200Response | CloudServicesRestart202Response @@ -3274,7 +3274,7 @@ export interface CloudServicesRestart { export interface CloudServicesReimage { /** Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. */ post( - options: CloudServicesReimageParameters + options: CloudServicesReimageParameters, ): StreamableMethod< | CloudServicesReimage200Response | CloudServicesReimage202Response @@ -3285,7 +3285,7 @@ export interface CloudServicesReimage { export interface CloudServicesRebuild { /** Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances. */ post( - options: CloudServicesRebuildParameters + options: CloudServicesRebuildParameters, ): StreamableMethod< | CloudServicesRebuild200Response | CloudServicesRebuild202Response @@ -3296,7 +3296,7 @@ export interface CloudServicesRebuild { export interface CloudServicesDeleteInstances { /** Deletes role instances in a cloud service. */ post( - options: CloudServicesDeleteInstancesParameters + options: CloudServicesDeleteInstancesParameters, ): StreamableMethod< | CloudServicesDeleteInstances200Response | CloudServicesDeleteInstances202Response @@ -3307,7 +3307,7 @@ export interface CloudServicesDeleteInstances { export interface CloudServicesUpdateDomainWalkUpdateDomain { /** Updates the role instances in the specified update domain. */ put( - options: CloudServicesUpdateDomainWalkUpdateDomainParameters + options: CloudServicesUpdateDomainWalkUpdateDomainParameters, ): StreamableMethod< | CloudServicesUpdateDomainWalkUpdateDomain200Response | CloudServicesUpdateDomainWalkUpdateDomain202Response @@ -3315,7 +3315,7 @@ export interface CloudServicesUpdateDomainWalkUpdateDomain { >; /** Gets the specified update domain of a cloud service. Use nextLink property in the response to get the next page of update domains. Do this till nextLink is null to fetch all the update domains. */ get( - options: CloudServicesUpdateDomainGetUpdateDomainParameters + options: CloudServicesUpdateDomainGetUpdateDomainParameters, ): StreamableMethod< | CloudServicesUpdateDomainGetUpdateDomain200Response | CloudServicesUpdateDomainGetUpdateDomainDefaultResponse @@ -3325,7 +3325,7 @@ export interface CloudServicesUpdateDomainWalkUpdateDomain { export interface CloudServicesUpdateDomainListUpdateDomains { /** Gets a list of all update domains in a cloud service. */ get( - options: CloudServicesUpdateDomainListUpdateDomainsParameters + options: CloudServicesUpdateDomainListUpdateDomainsParameters, ): StreamableMethod< | CloudServicesUpdateDomainListUpdateDomains200Response | CloudServicesUpdateDomainListUpdateDomainsDefaultResponse @@ -3335,7 +3335,7 @@ export interface CloudServicesUpdateDomainListUpdateDomains { export interface CloudServiceOperatingSystemsGetOSVersion { /** Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service. */ get( - options: CloudServiceOperatingSystemsGetOSVersionParameters + options: CloudServiceOperatingSystemsGetOSVersionParameters, ): StreamableMethod< | CloudServiceOperatingSystemsGetOSVersion200Response | CloudServiceOperatingSystemsGetOSVersionDefaultResponse @@ -3345,7 +3345,7 @@ export interface CloudServiceOperatingSystemsGetOSVersion { export interface CloudServiceOperatingSystemsListOSVersions { /** Gets a list of all guest operating system versions available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS versions. Do this till nextLink is null to fetch all the OS versions. */ get( - options: CloudServiceOperatingSystemsListOSVersionsParameters + options: CloudServiceOperatingSystemsListOSVersionsParameters, ): StreamableMethod< | CloudServiceOperatingSystemsListOSVersions200Response | CloudServiceOperatingSystemsListOSVersionsDefaultResponse @@ -3355,7 +3355,7 @@ export interface CloudServiceOperatingSystemsListOSVersions { export interface CloudServiceOperatingSystemsGetOSFamily { /** Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service. */ get( - options: CloudServiceOperatingSystemsGetOSFamilyParameters + options: CloudServiceOperatingSystemsGetOSFamilyParameters, ): StreamableMethod< | CloudServiceOperatingSystemsGetOSFamily200Response | CloudServiceOperatingSystemsGetOSFamilyDefaultResponse @@ -3365,7 +3365,7 @@ export interface CloudServiceOperatingSystemsGetOSFamily { export interface CloudServiceOperatingSystemsListOSFamilies { /** Gets a list of all guest operating system families available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS Families. Do this till nextLink is null to fetch all the OS Families. */ get( - options: CloudServiceOperatingSystemsListOSFamiliesParameters + options: CloudServiceOperatingSystemsListOSFamiliesParameters, ): StreamableMethod< | CloudServiceOperatingSystemsListOSFamilies200Response | CloudServiceOperatingSystemsListOSFamiliesDefaultResponse @@ -3379,149 +3379,149 @@ export interface Routes { ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/usages", subscriptionId: string, - location: string + location: string, ): UsageList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/vmSizes' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizes", subscriptionId: string, - location: string + location: string, ): VirtualMachineSizesList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/virtualMachineScaleSets' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets", subscriptionId: string, - location: string + location: string, ): VirtualMachineScaleSetsListByLocation; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}' has methods for the following verbs: put, patch, delete, get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/deallocate' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetsDeallocate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/delete' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetsDeleteInstances; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/instanceView' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetsGetInstanceView; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): VirtualMachineScaleSetsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/virtualMachineScaleSets' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets", - subscriptionId: string + subscriptionId: string, ): VirtualMachineScaleSetsListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/skus' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetsListSkus; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/osUpgradeHistory' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetsGetOSUpgradeHistory; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/poweroff' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetsPowerOff; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/restart' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetsRestart; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/start' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetsStart; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/redeploy' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetsRedeploy; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/performMaintenance' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetsPerformMaintenance; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/manualupgrade' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetsUpdateInstances; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/reimage' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetsReimage; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/reimageall' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetsReimageAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/forceRecoveryServiceFabricPlatformUpdateDomainWalk' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalk; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/convertToSinglePlacementGroup' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetsConvertToSinglePlacementGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/setOrchestrationServiceState' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetsSetOrchestrationServiceState; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/extensions/\{vmssExtensionName\}' has methods for the following verbs: put, patch, delete, get */ ( @@ -3529,42 +3529,42 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmScaleSetName: string, - vmssExtensionName: string + vmssExtensionName: string, ): VirtualMachineScaleSetExtensionsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/extensions' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetExtensionsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/rollingUpgrades/cancel' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetRollingUpgradesCancel; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/osRollingUpgrade' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetRollingUpgradesStartOSUpgrade; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/extensionRollingUpgrade' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetRollingUpgradesStartExtensionUpgrade; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/rollingUpgrades/latest' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest", subscriptionId: string, resourceGroupName: string, - vmScaleSetName: string + vmScaleSetName: string, ): VirtualMachineScaleSetRollingUpgradesGetLatest; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/virtualMachines/\{instanceId\}/extensions/\{vmExtensionName\}' has methods for the following verbs: put, patch, delete, get */ ( @@ -3573,7 +3573,7 @@ export interface Routes { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - vmExtensionName: string + vmExtensionName: string, ): VirtualMachineScaleSetVMExtensionsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/virtualMachines/\{instanceId\}/extensions' has methods for the following verbs: get */ ( @@ -3581,7 +3581,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmScaleSetName: string, - instanceId: string + instanceId: string, ): VirtualMachineScaleSetVMExtensionsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/virtualMachines/\{instanceId\}/reimage' has methods for the following verbs: post */ ( @@ -3589,7 +3589,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmScaleSetName: string, - instanceId: string + instanceId: string, ): VirtualMachineScaleSetVMsReimage; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/virtualMachines/\{instanceId\}/reimageall' has methods for the following verbs: post */ ( @@ -3597,7 +3597,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmScaleSetName: string, - instanceId: string + instanceId: string, ): VirtualMachineScaleSetVMsReimageAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/virtualMachines/\{instanceId\}/deallocate' has methods for the following verbs: post */ ( @@ -3605,7 +3605,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmScaleSetName: string, - instanceId: string + instanceId: string, ): VirtualMachineScaleSetVMsDeallocate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/virtualMachines/\{instanceId\}' has methods for the following verbs: put, delete, get */ ( @@ -3613,7 +3613,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmScaleSetName: string, - instanceId: string + instanceId: string, ): VirtualMachineScaleSetVMsUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/virtualMachines/\{instanceId\}/instanceView' has methods for the following verbs: get */ ( @@ -3621,14 +3621,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmScaleSetName: string, - instanceId: string + instanceId: string, ): VirtualMachineScaleSetVMsGetInstanceView; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{virtualMachineScaleSetName\}/virtualMachines' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines", subscriptionId: string, resourceGroupName: string, - virtualMachineScaleSetName: string + virtualMachineScaleSetName: string, ): VirtualMachineScaleSetVMsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/virtualmachines/\{instanceId\}/poweroff' has methods for the following verbs: post */ ( @@ -3636,7 +3636,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmScaleSetName: string, - instanceId: string + instanceId: string, ): VirtualMachineScaleSetVMsPowerOff; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/virtualmachines/\{instanceId\}/restart' has methods for the following verbs: post */ ( @@ -3644,7 +3644,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmScaleSetName: string, - instanceId: string + instanceId: string, ): VirtualMachineScaleSetVMsRestart; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/virtualmachines/\{instanceId\}/start' has methods for the following verbs: post */ ( @@ -3652,7 +3652,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmScaleSetName: string, - instanceId: string + instanceId: string, ): VirtualMachineScaleSetVMsStart; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/virtualmachines/\{instanceId\}/redeploy' has methods for the following verbs: post */ ( @@ -3660,7 +3660,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmScaleSetName: string, - instanceId: string + instanceId: string, ): VirtualMachineScaleSetVMsRedeploy; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/virtualmachines/\{instanceId\}/retrieveBootDiagnosticsData' has methods for the following verbs: post */ ( @@ -3668,7 +3668,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmScaleSetName: string, - instanceId: string + instanceId: string, ): VirtualMachineScaleSetVMsRetrieveBootDiagnosticsData; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/virtualmachines/\{instanceId\}/performMaintenance' has methods for the following verbs: post */ ( @@ -3676,7 +3676,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmScaleSetName: string, - instanceId: string + instanceId: string, ): VirtualMachineScaleSetVMsPerformMaintenance; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/virtualMachines/\{instanceId\}/simulateEviction' has methods for the following verbs: post */ ( @@ -3684,7 +3684,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmScaleSetName: string, - instanceId: string + instanceId: string, ): VirtualMachineScaleSetVMsSimulateEviction; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/virtualmachines/\{instanceId\}/runCommand' has methods for the following verbs: post */ ( @@ -3692,7 +3692,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmScaleSetName: string, - instanceId: string + instanceId: string, ): VirtualMachineScaleSetVMsRunCommand; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/extensions/\{vmExtensionName\}' has methods for the following verbs: put, patch, delete, get */ ( @@ -3700,164 +3700,164 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmName: string, - vmExtensionName: string + vmExtensionName: string, ): VirtualMachineExtensionsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/extensions' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachineExtensionsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/virtualMachines' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines", subscriptionId: string, - location: string + location: string, ): VirtualMachinesListByLocation; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/capture' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesCapture; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}' has methods for the following verbs: put, patch, delete, get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/instanceView' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesInstanceView; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/convertToManagedDisks' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesConvertToManagedDisks; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/deallocate' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesDeallocate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/generalize' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesGeneralize; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): VirtualMachinesList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/virtualMachines' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines", - subscriptionId: string + subscriptionId: string, ): VirtualMachinesListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/vmSizes' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesListAvailableSizes; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/powerOff' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesPowerOff; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/reapply' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesReapply; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/restart' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesRestart; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/start' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesStart; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/redeploy' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesRedeploy; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/reimage' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesReimage; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/retrieveBootDiagnosticsData' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesRetrieveBootDiagnosticsData; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/performMaintenance' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesPerformMaintenance; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/simulateEviction' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesSimulateEviction; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/assessPatches' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesAssessPatches; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/installPatches' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesInstallPatches; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/runCommand' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachinesRunCommand; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/publishers/\{publisherName\}/artifacttypes/vmimage/offers/\{offer\}/skus/\{skus\}/versions/\{version\}' has methods for the following verbs: get */ ( @@ -3867,7 +3867,7 @@ export interface Routes { publisherName: string, offer: string, skus: string, - version: string + version: string, ): VirtualMachineImagesGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/publishers/\{publisherName\}/artifacttypes/vmimage/offers/\{offer\}/skus/\{skus\}/versions' has methods for the following verbs: get */ ( @@ -3876,20 +3876,20 @@ export interface Routes { location: string, publisherName: string, offer: string, - skus: string + skus: string, ): VirtualMachineImagesList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/publishers/\{publisherName\}/artifacttypes/vmimage/offers' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers", subscriptionId: string, location: string, - publisherName: string + publisherName: string, ): VirtualMachineImagesListOffers; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/publishers' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers", subscriptionId: string, - location: string + location: string, ): VirtualMachineImagesListPublishers; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/publishers/\{publisherName\}/artifacttypes/vmimage/offers/\{offer\}/skus' has methods for the following verbs: get */ ( @@ -3897,14 +3897,14 @@ export interface Routes { subscriptionId: string, location: string, publisherName: string, - offer: string + offer: string, ): VirtualMachineImagesListSkus; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/edgeZones/\{edgeZone\}/vmimages' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/vmimages", subscriptionId: string, location: string, - edgeZone: string + edgeZone: string, ): VirtualMachineImagesListByEdgeZone; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/edgeZones/\{edgeZone\}/publishers/\{publisherName\}/artifacttypes/vmimage/offers/\{offer\}/skus/\{skus\}/versions/\{version\}' has methods for the following verbs: get */ ( @@ -3915,7 +3915,7 @@ export interface Routes { publisherName: string, offer: string, skus: string, - version: string + version: string, ): VirtualMachineImagesEdgeZoneGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/edgeZones/\{edgeZone\}/publishers/\{publisherName\}/artifacttypes/vmimage/offers/\{offer\}/skus/\{skus\}/versions' has methods for the following verbs: get */ ( @@ -3925,7 +3925,7 @@ export interface Routes { edgeZone: string, publisherName: string, offer: string, - skus: string + skus: string, ): VirtualMachineImagesEdgeZoneList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/edgeZones/\{edgeZone\}/publishers/\{publisherName\}/artifacttypes/vmimage/offers' has methods for the following verbs: get */ ( @@ -3933,14 +3933,14 @@ export interface Routes { subscriptionId: string, location: string, edgeZone: string, - publisherName: string + publisherName: string, ): VirtualMachineImagesEdgeZoneListOffers; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/edgeZones/\{edgeZone\}/publishers' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers", subscriptionId: string, location: string, - edgeZone: string + edgeZone: string, ): VirtualMachineImagesEdgeZoneListPublishers; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/edgeZones/\{edgeZone\}/publishers/\{publisherName\}/artifacttypes/vmimage/offers/\{offer\}/skus' has methods for the following verbs: get */ ( @@ -3949,7 +3949,7 @@ export interface Routes { location: string, edgeZone: string, publisherName: string, - offer: string + offer: string, ): VirtualMachineImagesEdgeZoneListSkus; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/publishers/\{publisherName\}/artifacttypes/vmextension/types/\{type\}/versions/\{version\}' has methods for the following verbs: get */ ( @@ -3958,14 +3958,14 @@ export interface Routes { location: string, publisherName: string, type: string, - version: string + version: string, ): VirtualMachineExtensionImagesGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/publishers/\{publisherName\}/artifacttypes/vmextension/types' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types", subscriptionId: string, location: string, - publisherName: string + publisherName: string, ): VirtualMachineExtensionImagesListTypes; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/publishers/\{publisherName\}/artifacttypes/vmextension/types/\{type\}/versions' has methods for the following verbs: get */ ( @@ -3973,68 +3973,68 @@ export interface Routes { subscriptionId: string, location: string, publisherName: string, - type: string + type: string, ): VirtualMachineExtensionImagesListVersions; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/availabilitySets/\{availabilitySetName\}' has methods for the following verbs: put, patch, delete, get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", subscriptionId: string, resourceGroupName: string, - availabilitySetName: string + availabilitySetName: string, ): AvailabilitySetsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/availabilitySets' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets", - subscriptionId: string + subscriptionId: string, ): AvailabilitySetsListBySubscription; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/availabilitySets' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): AvailabilitySetsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/availabilitySets/\{availabilitySetName\}/vmSizes' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes", subscriptionId: string, resourceGroupName: string, - availabilitySetName: string + availabilitySetName: string, ): AvailabilitySetsListAvailableSizes; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/proximityPlacementGroups/\{proximityPlacementGroupName\}' has methods for the following verbs: put, patch, delete, get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", subscriptionId: string, resourceGroupName: string, - proximityPlacementGroupName: string + proximityPlacementGroupName: string, ): ProximityPlacementGroupsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/proximityPlacementGroups' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups", - subscriptionId: string + subscriptionId: string, ): ProximityPlacementGroupsListBySubscription; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/proximityPlacementGroups' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): ProximityPlacementGroupsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/hostGroups/\{hostGroupName\}' has methods for the following verbs: put, patch, delete, get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", subscriptionId: string, resourceGroupName: string, - hostGroupName: string + hostGroupName: string, ): DedicatedHostGroupsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/hostGroups' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): DedicatedHostGroupsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/hostGroups' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups", - subscriptionId: string + subscriptionId: string, ): DedicatedHostGroupsListBySubscription; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/hostGroups/\{hostGroupName\}/hosts/\{hostName\}' has methods for the following verbs: put, patch, delete, get */ ( @@ -4042,14 +4042,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, hostGroupName: string, - hostName: string + hostName: string, ): DedicatedHostsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/hostGroups/\{hostGroupName\}/hosts' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts", subscriptionId: string, resourceGroupName: string, - hostGroupName: string + hostGroupName: string, ): DedicatedHostsListByHostGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/hostGroups/\{hostGroupName\}/hosts/\{hostName\}/restart' has methods for the following verbs: post */ ( @@ -4057,68 +4057,68 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, hostGroupName: string, - hostName: string + hostName: string, ): DedicatedHostsRestart; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/sshPublicKeys' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys", - subscriptionId: string + subscriptionId: string, ): SshPublicKeysListBySubscription; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/sshPublicKeys' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): SshPublicKeysListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/sshPublicKeys/\{sshPublicKeyName\}' has methods for the following verbs: put, patch, delete, get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", subscriptionId: string, resourceGroupName: string, - sshPublicKeyName: string + sshPublicKeyName: string, ): SshPublicKeysCreate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/sshPublicKeys/\{sshPublicKeyName\}/generateKeyPair' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}/generateKeyPair", subscriptionId: string, resourceGroupName: string, - sshPublicKeyName: string + sshPublicKeyName: string, ): SshPublicKeysGenerateKeyPair; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/images/\{imageName\}' has methods for the following verbs: put, patch, delete, get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", subscriptionId: string, resourceGroupName: string, - imageName: string + imageName: string, ): ImagesCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/images' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): ImagesListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/images' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/images", - subscriptionId: string + subscriptionId: string, ): ImagesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/restorePointCollections/\{restorePointCollectionName\}' has methods for the following verbs: put, patch, delete, get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", subscriptionId: string, resourceGroupName: string, - restorePointCollectionName: string + restorePointCollectionName: string, ): RestorePointCollectionsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/restorePointCollections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): RestorePointCollectionsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/restorePointCollections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections", - subscriptionId: string + subscriptionId: string, ): RestorePointCollectionsListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/restorePointCollections/\{restorePointCollectionName\}/restorePoints/\{restorePointName\}' has methods for the following verbs: put, delete, get */ ( @@ -4126,25 +4126,25 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, restorePointCollectionName: string, - restorePointName: string + restorePointName: string, ): RestorePointsCreate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/capacityReservationGroups/\{capacityReservationGroupName\}' has methods for the following verbs: put, patch, delete, get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", subscriptionId: string, resourceGroupName: string, - capacityReservationGroupName: string + capacityReservationGroupName: string, ): CapacityReservationGroupsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/capacityReservationGroups' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): CapacityReservationGroupsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/capacityReservationGroups' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups", - subscriptionId: string + subscriptionId: string, ): CapacityReservationGroupsListBySubscription; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/capacityReservationGroups/\{capacityReservationGroupName\}/capacityReservations/\{capacityReservationName\}' has methods for the following verbs: put, patch, delete, get */ ( @@ -4152,39 +4152,39 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, capacityReservationGroupName: string, - capacityReservationName: string + capacityReservationName: string, ): CapacityReservationsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/capacityReservationGroups/\{capacityReservationGroupName\}/capacityReservations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations", subscriptionId: string, resourceGroupName: string, - capacityReservationGroupName: string + capacityReservationGroupName: string, ): CapacityReservationsListByCapacityReservationGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/logAnalytics/apiAccess/getRequestRateByInterval' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval", subscriptionId: string, - location: string + location: string, ): LogAnalyticsExportRequestRateByInterval; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/logAnalytics/apiAccess/getThrottledRequests' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests", subscriptionId: string, - location: string + location: string, ): LogAnalyticsExportThrottledRequests; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/runCommands' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands", subscriptionId: string, - location: string + location: string, ): VirtualMachineRunCommandsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/runCommands/\{commandId\}' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands/{commandId}", subscriptionId: string, location: string, - commandId: string + commandId: string, ): VirtualMachineRunCommandsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/runCommands/\{runCommandName\}' has methods for the following verbs: put, patch, delete, get */ ( @@ -4192,14 +4192,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmName: string, - runCommandName: string + runCommandName: string, ): VirtualMachineRunCommandsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachines/\{vmName\}/runCommands' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands", subscriptionId: string, resourceGroupName: string, - vmName: string + vmName: string, ): VirtualMachineRunCommandsListByVirtualMachine; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/virtualMachines/\{instanceId\}/runCommands/\{runCommandName\}' has methods for the following verbs: put, patch, delete, get */ ( @@ -4208,7 +4208,7 @@ export interface Routes { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - runCommandName: string + runCommandName: string, ): VirtualMachineScaleSetVMRunCommandsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{vmScaleSetName\}/virtualMachines/\{instanceId\}/runCommands' has methods for the following verbs: get */ ( @@ -4216,64 +4216,64 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vmScaleSetName: string, - instanceId: string + instanceId: string, ): VirtualMachineScaleSetVMRunCommandsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/disks/\{diskName\}' has methods for the following verbs: put, patch, get, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", subscriptionId: string, resourceGroupName: string, - diskName: string + diskName: string, ): DisksCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/disks' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): DisksListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/disks' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/disks", - subscriptionId: string + subscriptionId: string, ): DisksList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/disks/\{diskName\}/beginGetAccess' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/beginGetAccess", subscriptionId: string, resourceGroupName: string, - diskName: string + diskName: string, ): DisksGrantAccess; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/disks/\{diskName\}/endGetAccess' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/endGetAccess", subscriptionId: string, resourceGroupName: string, - diskName: string + diskName: string, ): DisksRevokeAccess; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/diskAccesses/\{diskAccessName\}' has methods for the following verbs: put, patch, get, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", subscriptionId: string, resourceGroupName: string, - diskAccessName: string + diskAccessName: string, ): DiskAccessesCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/diskAccesses' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): DiskAccessesListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/diskAccesses' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses", - subscriptionId: string + subscriptionId: string, ): DiskAccessesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/diskAccesses/\{diskAccessName\}/privateLinkResources' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateLinkResources", subscriptionId: string, resourceGroupName: string, - diskAccessName: string + diskAccessName: string, ): DiskAccessesGetPrivateLinkResources; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/diskAccesses/\{diskAccessName\}/privateEndpointConnections/\{privateEndpointConnectionName\}' has methods for the following verbs: put, get, delete */ ( @@ -4281,39 +4281,39 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, diskAccessName: string, - privateEndpointConnectionName: string + privateEndpointConnectionName: string, ): DiskAccessesUpdateAPrivateEndpointConnection; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/diskAccesses/\{diskAccessName\}/privateEndpointConnections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections", subscriptionId: string, resourceGroupName: string, - diskAccessName: string + diskAccessName: string, ): DiskAccessesListPrivateEndpointConnections; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/diskEncryptionSets/\{diskEncryptionSetName\}' has methods for the following verbs: put, patch, get, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", subscriptionId: string, resourceGroupName: string, - diskEncryptionSetName: string + diskEncryptionSetName: string, ): DiskEncryptionSetsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/diskEncryptionSets' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): DiskEncryptionSetsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/diskEncryptionSets' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets", - subscriptionId: string + subscriptionId: string, ): DiskEncryptionSetsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/diskEncryptionSets/\{diskEncryptionSetName\}/associatedResources' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}/associatedResources", subscriptionId: string, resourceGroupName: string, - diskEncryptionSetName: string + diskEncryptionSetName: string, ): DiskEncryptionSetsListAssociatedResources; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/restorePointCollections/\{restorePointCollectionName\}/restorePoints/\{vmRestorePointName\}/diskRestorePoints/\{diskRestorePointName\}' has methods for the following verbs: get */ ( @@ -4322,7 +4322,7 @@ export interface Routes { resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, - diskRestorePointName: string + diskRestorePointName: string, ): DiskRestorePointGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/restorePointCollections/\{restorePointCollectionName\}/restorePoints/\{vmRestorePointName\}/diskRestorePoints' has methods for the following verbs: get */ ( @@ -4330,7 +4330,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, restorePointCollectionName: string, - vmRestorePointName: string + vmRestorePointName: string, ): DiskRestorePointListByRestorePoint; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/restorePointCollections/\{restorePointCollectionName\}/restorePoints/\{vmRestorePointName\}/diskRestorePoints/\{diskRestorePointName\}/beginGetAccess' has methods for the following verbs: post */ ( @@ -4339,7 +4339,7 @@ export interface Routes { resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, - diskRestorePointName: string + diskRestorePointName: string, ): DiskRestorePointGrantAccess; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/restorePointCollections/\{restorePointCollectionName\}/restorePoints/\{vmRestorePointName\}/diskRestorePoints/\{diskRestorePointName\}/endGetAccess' has methods for the following verbs: post */ ( @@ -4348,62 +4348,62 @@ export interface Routes { resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, - diskRestorePointName: string + diskRestorePointName: string, ): DiskRestorePointRevokeAccess; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/snapshots/\{snapshotName\}' has methods for the following verbs: put, patch, get, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", subscriptionId: string, resourceGroupName: string, - snapshotName: string + snapshotName: string, ): SnapshotsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/snapshots' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): SnapshotsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/snapshots' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/snapshots", - subscriptionId: string + subscriptionId: string, ): SnapshotsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/snapshots/\{snapshotName\}/beginGetAccess' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/beginGetAccess", subscriptionId: string, resourceGroupName: string, - snapshotName: string + snapshotName: string, ): SnapshotsGrantAccess; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/snapshots/\{snapshotName\}/endGetAccess' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess", subscriptionId: string, resourceGroupName: string, - snapshotName: string + snapshotName: string, ): SnapshotsRevokeAccess; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/skus' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/skus", - subscriptionId: string + subscriptionId: string, ): ResourceSkusList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/galleries/\{galleryName\}' has methods for the following verbs: put, patch, get, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", subscriptionId: string, resourceGroupName: string, - galleryName: string + galleryName: string, ): GalleriesCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/galleries' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): GalleriesListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/galleries' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries", - subscriptionId: string + subscriptionId: string, ): GalleriesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/galleries/\{galleryName\}/images/\{galleryImageName\}' has methods for the following verbs: put, patch, get, delete */ ( @@ -4411,14 +4411,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, galleryName: string, - galleryImageName: string + galleryImageName: string, ): GalleryImagesCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/galleries/\{galleryName\}/images' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images", subscriptionId: string, resourceGroupName: string, - galleryName: string + galleryName: string, ): GalleryImagesListByGallery; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/galleries/\{galleryName\}/images/\{galleryImageName\}/versions/\{galleryImageVersionName\}' has methods for the following verbs: put, patch, get, delete */ ( @@ -4427,7 +4427,7 @@ export interface Routes { resourceGroupName: string, galleryName: string, galleryImageName: string, - galleryImageVersionName: string + galleryImageVersionName: string, ): GalleryImageVersionsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/galleries/\{galleryName\}/images/\{galleryImageName\}/versions' has methods for the following verbs: get */ ( @@ -4435,7 +4435,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, galleryName: string, - galleryImageName: string + galleryImageName: string, ): GalleryImageVersionsListByGalleryImage; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/galleries/\{galleryName\}/applications/\{galleryApplicationName\}' has methods for the following verbs: put, patch, get, delete */ ( @@ -4443,14 +4443,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, galleryName: string, - galleryApplicationName: string + galleryApplicationName: string, ): GalleryApplicationsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/galleries/\{galleryName\}/applications' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications", subscriptionId: string, resourceGroupName: string, - galleryName: string + galleryName: string, ): GalleryApplicationsListByGallery; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/galleries/\{galleryName\}/applications/\{galleryApplicationName\}/versions/\{galleryApplicationVersionName\}' has methods for the following verbs: put, patch, get, delete */ ( @@ -4459,7 +4459,7 @@ export interface Routes { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - galleryApplicationVersionName: string + galleryApplicationVersionName: string, ): GalleryApplicationVersionsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/galleries/\{galleryName\}/applications/\{galleryApplicationName\}/versions' has methods for the following verbs: get */ ( @@ -4467,34 +4467,34 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, galleryName: string, - galleryApplicationName: string + galleryApplicationName: string, ): GalleryApplicationVersionsListByGalleryApplication; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/galleries/\{galleryName\}/share' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", subscriptionId: string, resourceGroupName: string, - galleryName: string + galleryName: string, ): GallerySharingProfileUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/sharedGalleries' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries", subscriptionId: string, - location: string + location: string, ): SharedGalleriesList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/sharedGalleries/\{galleryUniqueName\}' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}", subscriptionId: string, location: string, - galleryUniqueName: string + galleryUniqueName: string, ): SharedGalleriesGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/sharedGalleries/\{galleryUniqueName\}/images' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images", subscriptionId: string, location: string, - galleryUniqueName: string + galleryUniqueName: string, ): SharedGalleryImagesList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/sharedGalleries/\{galleryUniqueName\}/images/\{galleryImageName\}' has methods for the following verbs: get */ ( @@ -4502,7 +4502,7 @@ export interface Routes { subscriptionId: string, location: string, galleryUniqueName: string, - galleryImageName: string + galleryImageName: string, ): SharedGalleryImagesGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/sharedGalleries/\{galleryUniqueName\}/images/\{galleryImageName\}/versions' has methods for the following verbs: get */ ( @@ -4510,7 +4510,7 @@ export interface Routes { subscriptionId: string, location: string, galleryUniqueName: string, - galleryImageName: string + galleryImageName: string, ): SharedGalleryImageVersionsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/sharedGalleries/\{galleryUniqueName\}/images/\{galleryImageName\}/versions/\{galleryImageVersionName\}' has methods for the following verbs: get */ ( @@ -4519,14 +4519,14 @@ export interface Routes { location: string, galleryUniqueName: string, galleryImageName: string, - galleryImageVersionName: string + galleryImageVersionName: string, ): SharedGalleryImageVersionsGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/communityGalleries/\{publicGalleryName\}' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}", subscriptionId: string, location: string, - publicGalleryName: string + publicGalleryName: string, ): CommunityGalleriesGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/communityGalleries/\{publicGalleryName\}/images/\{galleryImageName\}' has methods for the following verbs: get */ ( @@ -4534,14 +4534,14 @@ export interface Routes { subscriptionId: string, location: string, publicGalleryName: string, - galleryImageName: string + galleryImageName: string, ): CommunityGalleryImagesGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/communityGalleries/\{publicGalleryName\}/images' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images", subscriptionId: string, location: string, - publicGalleryName: string + publicGalleryName: string, ): CommunityGalleryImagesList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/communityGalleries/\{publicGalleryName\}/images/\{galleryImageName\}/versions/\{galleryImageVersionName\}' has methods for the following verbs: get */ ( @@ -4550,7 +4550,7 @@ export interface Routes { location: string, publicGalleryName: string, galleryImageName: string, - galleryImageVersionName: string + galleryImageVersionName: string, ): CommunityGalleryImageVersionsGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/communityGalleries/\{publicGalleryName\}/images/\{galleryImageName\}/versions' has methods for the following verbs: get */ ( @@ -4558,7 +4558,7 @@ export interface Routes { subscriptionId: string, location: string, publicGalleryName: string, - galleryImageName: string + galleryImageName: string, ): CommunityGalleryImageVersionsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/roleInstances/\{roleInstanceName\}' has methods for the following verbs: delete, get */ ( @@ -4566,7 +4566,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, cloudServiceName: string, - roleInstanceName: string + roleInstanceName: string, ): CloudServiceRoleInstancesDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/roleInstances/\{roleInstanceName\}/instanceView' has methods for the following verbs: get */ ( @@ -4574,14 +4574,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, cloudServiceName: string, - roleInstanceName: string + roleInstanceName: string, ): CloudServiceRoleInstancesGetInstanceView; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/roleInstances' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances", subscriptionId: string, resourceGroupName: string, - cloudServiceName: string + cloudServiceName: string, ): CloudServiceRoleInstancesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/roleInstances/\{roleInstanceName\}/restart' has methods for the following verbs: post */ ( @@ -4589,7 +4589,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, cloudServiceName: string, - roleInstanceName: string + roleInstanceName: string, ): CloudServiceRoleInstancesRestart; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/roleInstances/\{roleInstanceName\}/reimage' has methods for the following verbs: post */ ( @@ -4597,7 +4597,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, cloudServiceName: string, - roleInstanceName: string + roleInstanceName: string, ): CloudServiceRoleInstancesReimage; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/roleInstances/\{roleInstanceName\}/rebuild' has methods for the following verbs: post */ ( @@ -4605,7 +4605,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, cloudServiceName: string, - roleInstanceName: string + roleInstanceName: string, ): CloudServiceRoleInstancesRebuild; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/roleInstances/\{roleInstanceName\}/remoteDesktopFile' has methods for the following verbs: get */ ( @@ -4613,7 +4613,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, cloudServiceName: string, - roleInstanceName: string + roleInstanceName: string, ): CloudServiceRoleInstancesGetRemoteDesktopFile; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/roles/\{roleName\}' has methods for the following verbs: get */ ( @@ -4621,81 +4621,81 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, cloudServiceName: string, - roleName: string + roleName: string, ): CloudServiceRolesGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/roles' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles", subscriptionId: string, resourceGroupName: string, - cloudServiceName: string + cloudServiceName: string, ): CloudServiceRolesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}' has methods for the following verbs: put, patch, delete, get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", subscriptionId: string, resourceGroupName: string, - cloudServiceName: string + cloudServiceName: string, ): CloudServicesCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/instanceView' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView", subscriptionId: string, resourceGroupName: string, - cloudServiceName: string + cloudServiceName: string, ): CloudServicesGetInstanceView; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/cloudServices' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices", - subscriptionId: string + subscriptionId: string, ): CloudServicesListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): CloudServicesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/start' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start", subscriptionId: string, resourceGroupName: string, - cloudServiceName: string + cloudServiceName: string, ): CloudServicesStart; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/poweroff' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff", subscriptionId: string, resourceGroupName: string, - cloudServiceName: string + cloudServiceName: string, ): CloudServicesPowerOff; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/restart' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart", subscriptionId: string, resourceGroupName: string, - cloudServiceName: string + cloudServiceName: string, ): CloudServicesRestart; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/reimage' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage", subscriptionId: string, resourceGroupName: string, - cloudServiceName: string + cloudServiceName: string, ): CloudServicesReimage; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/rebuild' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild", subscriptionId: string, resourceGroupName: string, - cloudServiceName: string + cloudServiceName: string, ): CloudServicesRebuild; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/delete' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete", subscriptionId: string, resourceGroupName: string, - cloudServiceName: string + cloudServiceName: string, ): CloudServicesDeleteInstances; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/updateDomains/\{updateDomain\}' has methods for the following verbs: put, get */ ( @@ -4703,40 +4703,40 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, cloudServiceName: string, - updateDomain: number + updateDomain: number, ): CloudServicesUpdateDomainWalkUpdateDomain; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/updateDomains' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains", subscriptionId: string, resourceGroupName: string, - cloudServiceName: string + cloudServiceName: string, ): CloudServicesUpdateDomainListUpdateDomains; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/cloudServiceOsVersions/\{osVersionName\}' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}", subscriptionId: string, location: string, - osVersionName: string + osVersionName: string, ): CloudServiceOperatingSystemsGetOSVersion; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/cloudServiceOsVersions' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions", subscriptionId: string, - location: string + location: string, ): CloudServiceOperatingSystemsListOSVersions; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/cloudServiceOsFamilies/\{osFamilyName\}' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}", subscriptionId: string, location: string, - osFamilyName: string + osFamilyName: string, ): CloudServiceOperatingSystemsGetOSFamily; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Compute/locations/\{location\}/cloudServiceOsFamilies' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies", subscriptionId: string, - location: string + location: string, ): CloudServiceOperatingSystemsListOSFamilies; } diff --git a/sdk/compute/arm-compute-rest/src/computeManagementClient.ts b/sdk/compute/arm-compute-rest/src/computeManagementClient.ts index d09fee66f6cb..b6acd103aaa1 100644 --- a/sdk/compute/arm-compute-rest/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute-rest/src/computeManagementClient.ts @@ -11,7 +11,7 @@ import { ComputeManagementClient } from "./clientDefinitions"; */ export default function createClient( credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): ComputeManagementClient { const baseUrl = options.baseUrl ?? `https://management.azure.com`; options = { diff --git a/sdk/compute/arm-compute-rest/src/isUnexpected.ts b/sdk/compute/arm-compute-rest/src/isUnexpected.ts index 98170be1949b..144bacda97b9 100644 --- a/sdk/compute/arm-compute-rest/src/isUnexpected.ts +++ b/sdk/compute/arm-compute-rest/src/isUnexpected.ts @@ -1317,1266 +1317,1266 @@ const responseMap: Record = { }; export function isUnexpected( - response: OperationsList200Response | OperationsListDefaultResponse + response: OperationsList200Response | OperationsListDefaultResponse, ): response is OperationsListDefaultResponse; export function isUnexpected( - response: UsageList200Response | UsageListDefaultResponse + response: UsageList200Response | UsageListDefaultResponse, ): response is UsageListDefaultResponse; export function isUnexpected( - response: VirtualMachineSizesList200Response | VirtualMachineSizesListDefaultResponse + response: VirtualMachineSizesList200Response | VirtualMachineSizesListDefaultResponse, ): response is VirtualMachineSizesListDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsListByLocation200Response - | VirtualMachineScaleSetsListByLocationDefaultResponse + | VirtualMachineScaleSetsListByLocationDefaultResponse, ): response is VirtualMachineScaleSetsListByLocationDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsCreateOrUpdate200Response | VirtualMachineScaleSetsCreateOrUpdate201Response - | VirtualMachineScaleSetsCreateOrUpdateDefaultResponse + | VirtualMachineScaleSetsCreateOrUpdateDefaultResponse, ): response is VirtualMachineScaleSetsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: VirtualMachineScaleSetsUpdate200Response | VirtualMachineScaleSetsUpdateDefaultResponse + response: VirtualMachineScaleSetsUpdate200Response | VirtualMachineScaleSetsUpdateDefaultResponse, ): response is VirtualMachineScaleSetsUpdateDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsDelete200Response | VirtualMachineScaleSetsDelete202Response | VirtualMachineScaleSetsDelete204Response - | VirtualMachineScaleSetsDeleteDefaultResponse + | VirtualMachineScaleSetsDeleteDefaultResponse, ): response is VirtualMachineScaleSetsDeleteDefaultResponse; export function isUnexpected( - response: VirtualMachineScaleSetsGet200Response | VirtualMachineScaleSetsGetDefaultResponse + response: VirtualMachineScaleSetsGet200Response | VirtualMachineScaleSetsGetDefaultResponse, ): response is VirtualMachineScaleSetsGetDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsDeallocate200Response | VirtualMachineScaleSetsDeallocate202Response - | VirtualMachineScaleSetsDeallocateDefaultResponse + | VirtualMachineScaleSetsDeallocateDefaultResponse, ): response is VirtualMachineScaleSetsDeallocateDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsDeleteInstances200Response | VirtualMachineScaleSetsDeleteInstances202Response - | VirtualMachineScaleSetsDeleteInstancesDefaultResponse + | VirtualMachineScaleSetsDeleteInstancesDefaultResponse, ): response is VirtualMachineScaleSetsDeleteInstancesDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsGetInstanceView200Response - | VirtualMachineScaleSetsGetInstanceViewDefaultResponse + | VirtualMachineScaleSetsGetInstanceViewDefaultResponse, ): response is VirtualMachineScaleSetsGetInstanceViewDefaultResponse; export function isUnexpected( - response: VirtualMachineScaleSetsList200Response | VirtualMachineScaleSetsListDefaultResponse + response: VirtualMachineScaleSetsList200Response | VirtualMachineScaleSetsListDefaultResponse, ): response is VirtualMachineScaleSetsListDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsListAll200Response - | VirtualMachineScaleSetsListAllDefaultResponse + | VirtualMachineScaleSetsListAllDefaultResponse, ): response is VirtualMachineScaleSetsListAllDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsListSkus200Response - | VirtualMachineScaleSetsListSkusDefaultResponse + | VirtualMachineScaleSetsListSkusDefaultResponse, ): response is VirtualMachineScaleSetsListSkusDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsGetOSUpgradeHistory200Response - | VirtualMachineScaleSetsGetOSUpgradeHistoryDefaultResponse + | VirtualMachineScaleSetsGetOSUpgradeHistoryDefaultResponse, ): response is VirtualMachineScaleSetsGetOSUpgradeHistoryDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsPowerOff200Response | VirtualMachineScaleSetsPowerOff202Response - | VirtualMachineScaleSetsPowerOffDefaultResponse + | VirtualMachineScaleSetsPowerOffDefaultResponse, ): response is VirtualMachineScaleSetsPowerOffDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsRestart200Response | VirtualMachineScaleSetsRestart202Response - | VirtualMachineScaleSetsRestartDefaultResponse + | VirtualMachineScaleSetsRestartDefaultResponse, ): response is VirtualMachineScaleSetsRestartDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsStart200Response | VirtualMachineScaleSetsStart202Response - | VirtualMachineScaleSetsStartDefaultResponse + | VirtualMachineScaleSetsStartDefaultResponse, ): response is VirtualMachineScaleSetsStartDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsRedeploy200Response | VirtualMachineScaleSetsRedeploy202Response - | VirtualMachineScaleSetsRedeployDefaultResponse + | VirtualMachineScaleSetsRedeployDefaultResponse, ): response is VirtualMachineScaleSetsRedeployDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsPerformMaintenance200Response | VirtualMachineScaleSetsPerformMaintenance202Response - | VirtualMachineScaleSetsPerformMaintenanceDefaultResponse + | VirtualMachineScaleSetsPerformMaintenanceDefaultResponse, ): response is VirtualMachineScaleSetsPerformMaintenanceDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsUpdateInstances200Response | VirtualMachineScaleSetsUpdateInstances202Response - | VirtualMachineScaleSetsUpdateInstancesDefaultResponse + | VirtualMachineScaleSetsUpdateInstancesDefaultResponse, ): response is VirtualMachineScaleSetsUpdateInstancesDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsReimage200Response | VirtualMachineScaleSetsReimage202Response - | VirtualMachineScaleSetsReimageDefaultResponse + | VirtualMachineScaleSetsReimageDefaultResponse, ): response is VirtualMachineScaleSetsReimageDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsReimageAll200Response | VirtualMachineScaleSetsReimageAll202Response - | VirtualMachineScaleSetsReimageAllDefaultResponse + | VirtualMachineScaleSetsReimageAllDefaultResponse, ): response is VirtualMachineScaleSetsReimageAllDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalk200Response - | VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkDefaultResponse + | VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkDefaultResponse, ): response is VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsConvertToSinglePlacementGroup200Response - | VirtualMachineScaleSetsConvertToSinglePlacementGroupDefaultResponse + | VirtualMachineScaleSetsConvertToSinglePlacementGroupDefaultResponse, ): response is VirtualMachineScaleSetsConvertToSinglePlacementGroupDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetsSetOrchestrationServiceState200Response | VirtualMachineScaleSetsSetOrchestrationServiceState202Response - | VirtualMachineScaleSetsSetOrchestrationServiceStateDefaultResponse + | VirtualMachineScaleSetsSetOrchestrationServiceStateDefaultResponse, ): response is VirtualMachineScaleSetsSetOrchestrationServiceStateDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetExtensionsCreateOrUpdate200Response | VirtualMachineScaleSetExtensionsCreateOrUpdate201Response - | VirtualMachineScaleSetExtensionsCreateOrUpdateDefaultResponse + | VirtualMachineScaleSetExtensionsCreateOrUpdateDefaultResponse, ): response is VirtualMachineScaleSetExtensionsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetExtensionsUpdate200Response | VirtualMachineScaleSetExtensionsUpdate201Response - | VirtualMachineScaleSetExtensionsUpdateDefaultResponse + | VirtualMachineScaleSetExtensionsUpdateDefaultResponse, ): response is VirtualMachineScaleSetExtensionsUpdateDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetExtensionsDelete200Response | VirtualMachineScaleSetExtensionsDelete202Response | VirtualMachineScaleSetExtensionsDelete204Response - | VirtualMachineScaleSetExtensionsDeleteDefaultResponse + | VirtualMachineScaleSetExtensionsDeleteDefaultResponse, ): response is VirtualMachineScaleSetExtensionsDeleteDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetExtensionsGet200Response - | VirtualMachineScaleSetExtensionsGetDefaultResponse + | VirtualMachineScaleSetExtensionsGetDefaultResponse, ): response is VirtualMachineScaleSetExtensionsGetDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetExtensionsList200Response - | VirtualMachineScaleSetExtensionsListDefaultResponse + | VirtualMachineScaleSetExtensionsListDefaultResponse, ): response is VirtualMachineScaleSetExtensionsListDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetRollingUpgradesCancel200Response | VirtualMachineScaleSetRollingUpgradesCancel202Response - | VirtualMachineScaleSetRollingUpgradesCancelDefaultResponse + | VirtualMachineScaleSetRollingUpgradesCancelDefaultResponse, ): response is VirtualMachineScaleSetRollingUpgradesCancelDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetRollingUpgradesStartOSUpgrade200Response | VirtualMachineScaleSetRollingUpgradesStartOSUpgrade202Response - | VirtualMachineScaleSetRollingUpgradesStartOSUpgradeDefaultResponse + | VirtualMachineScaleSetRollingUpgradesStartOSUpgradeDefaultResponse, ): response is VirtualMachineScaleSetRollingUpgradesStartOSUpgradeDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetRollingUpgradesStartExtensionUpgrade200Response | VirtualMachineScaleSetRollingUpgradesStartExtensionUpgrade202Response - | VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeDefaultResponse + | VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeDefaultResponse, ): response is VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetRollingUpgradesGetLatest200Response - | VirtualMachineScaleSetRollingUpgradesGetLatestDefaultResponse + | VirtualMachineScaleSetRollingUpgradesGetLatestDefaultResponse, ): response is VirtualMachineScaleSetRollingUpgradesGetLatestDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMExtensionsCreateOrUpdate200Response | VirtualMachineScaleSetVMExtensionsCreateOrUpdate201Response - | VirtualMachineScaleSetVMExtensionsCreateOrUpdateDefaultResponse + | VirtualMachineScaleSetVMExtensionsCreateOrUpdateDefaultResponse, ): response is VirtualMachineScaleSetVMExtensionsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMExtensionsUpdate200Response - | VirtualMachineScaleSetVMExtensionsUpdateDefaultResponse + | VirtualMachineScaleSetVMExtensionsUpdateDefaultResponse, ): response is VirtualMachineScaleSetVMExtensionsUpdateDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMExtensionsDelete200Response | VirtualMachineScaleSetVMExtensionsDelete202Response | VirtualMachineScaleSetVMExtensionsDelete204Response - | VirtualMachineScaleSetVMExtensionsDeleteDefaultResponse + | VirtualMachineScaleSetVMExtensionsDeleteDefaultResponse, ): response is VirtualMachineScaleSetVMExtensionsDeleteDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMExtensionsGet200Response - | VirtualMachineScaleSetVMExtensionsGetDefaultResponse + | VirtualMachineScaleSetVMExtensionsGetDefaultResponse, ): response is VirtualMachineScaleSetVMExtensionsGetDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMExtensionsList200Response - | VirtualMachineScaleSetVMExtensionsListDefaultResponse + | VirtualMachineScaleSetVMExtensionsListDefaultResponse, ): response is VirtualMachineScaleSetVMExtensionsListDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMsReimage200Response | VirtualMachineScaleSetVMsReimage202Response - | VirtualMachineScaleSetVMsReimageDefaultResponse + | VirtualMachineScaleSetVMsReimageDefaultResponse, ): response is VirtualMachineScaleSetVMsReimageDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMsReimageAll200Response | VirtualMachineScaleSetVMsReimageAll202Response - | VirtualMachineScaleSetVMsReimageAllDefaultResponse + | VirtualMachineScaleSetVMsReimageAllDefaultResponse, ): response is VirtualMachineScaleSetVMsReimageAllDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMsDeallocate200Response | VirtualMachineScaleSetVMsDeallocate202Response - | VirtualMachineScaleSetVMsDeallocateDefaultResponse + | VirtualMachineScaleSetVMsDeallocateDefaultResponse, ): response is VirtualMachineScaleSetVMsDeallocateDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMsUpdate200Response | VirtualMachineScaleSetVMsUpdate202Response - | VirtualMachineScaleSetVMsUpdateDefaultResponse + | VirtualMachineScaleSetVMsUpdateDefaultResponse, ): response is VirtualMachineScaleSetVMsUpdateDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMsDelete200Response | VirtualMachineScaleSetVMsDelete202Response | VirtualMachineScaleSetVMsDelete204Response - | VirtualMachineScaleSetVMsDeleteDefaultResponse + | VirtualMachineScaleSetVMsDeleteDefaultResponse, ): response is VirtualMachineScaleSetVMsDeleteDefaultResponse; export function isUnexpected( - response: VirtualMachineScaleSetVMsGet200Response | VirtualMachineScaleSetVMsGetDefaultResponse + response: VirtualMachineScaleSetVMsGet200Response | VirtualMachineScaleSetVMsGetDefaultResponse, ): response is VirtualMachineScaleSetVMsGetDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMsGetInstanceView200Response - | VirtualMachineScaleSetVMsGetInstanceViewDefaultResponse + | VirtualMachineScaleSetVMsGetInstanceViewDefaultResponse, ): response is VirtualMachineScaleSetVMsGetInstanceViewDefaultResponse; export function isUnexpected( - response: VirtualMachineScaleSetVMsList200Response | VirtualMachineScaleSetVMsListDefaultResponse + response: VirtualMachineScaleSetVMsList200Response | VirtualMachineScaleSetVMsListDefaultResponse, ): response is VirtualMachineScaleSetVMsListDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMsPowerOff200Response | VirtualMachineScaleSetVMsPowerOff202Response - | VirtualMachineScaleSetVMsPowerOffDefaultResponse + | VirtualMachineScaleSetVMsPowerOffDefaultResponse, ): response is VirtualMachineScaleSetVMsPowerOffDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMsRestart200Response | VirtualMachineScaleSetVMsRestart202Response - | VirtualMachineScaleSetVMsRestartDefaultResponse + | VirtualMachineScaleSetVMsRestartDefaultResponse, ): response is VirtualMachineScaleSetVMsRestartDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMsStart200Response | VirtualMachineScaleSetVMsStart202Response - | VirtualMachineScaleSetVMsStartDefaultResponse + | VirtualMachineScaleSetVMsStartDefaultResponse, ): response is VirtualMachineScaleSetVMsStartDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMsRedeploy200Response | VirtualMachineScaleSetVMsRedeploy202Response - | VirtualMachineScaleSetVMsRedeployDefaultResponse + | VirtualMachineScaleSetVMsRedeployDefaultResponse, ): response is VirtualMachineScaleSetVMsRedeployDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMsRetrieveBootDiagnosticsData200Response - | VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataDefaultResponse + | VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataDefaultResponse, ): response is VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMsPerformMaintenance200Response | VirtualMachineScaleSetVMsPerformMaintenance202Response - | VirtualMachineScaleSetVMsPerformMaintenanceDefaultResponse + | VirtualMachineScaleSetVMsPerformMaintenanceDefaultResponse, ): response is VirtualMachineScaleSetVMsPerformMaintenanceDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMsSimulateEviction204Response - | VirtualMachineScaleSetVMsSimulateEvictionDefaultResponse + | VirtualMachineScaleSetVMsSimulateEvictionDefaultResponse, ): response is VirtualMachineScaleSetVMsSimulateEvictionDefaultResponse; export function isUnexpected( response: | VirtualMachineExtensionsCreateOrUpdate200Response | VirtualMachineExtensionsCreateOrUpdate201Response - | VirtualMachineExtensionsCreateOrUpdateDefaultResponse + | VirtualMachineExtensionsCreateOrUpdateDefaultResponse, ): response is VirtualMachineExtensionsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | VirtualMachineExtensionsUpdate200Response - | VirtualMachineExtensionsUpdateDefaultResponse + | VirtualMachineExtensionsUpdateDefaultResponse, ): response is VirtualMachineExtensionsUpdateDefaultResponse; export function isUnexpected( response: | VirtualMachineExtensionsDelete200Response | VirtualMachineExtensionsDelete202Response | VirtualMachineExtensionsDelete204Response - | VirtualMachineExtensionsDeleteDefaultResponse + | VirtualMachineExtensionsDeleteDefaultResponse, ): response is VirtualMachineExtensionsDeleteDefaultResponse; export function isUnexpected( - response: VirtualMachineExtensionsGet200Response | VirtualMachineExtensionsGetDefaultResponse + response: VirtualMachineExtensionsGet200Response | VirtualMachineExtensionsGetDefaultResponse, ): response is VirtualMachineExtensionsGetDefaultResponse; export function isUnexpected( - response: VirtualMachineExtensionsList200Response | VirtualMachineExtensionsListDefaultResponse + response: VirtualMachineExtensionsList200Response | VirtualMachineExtensionsListDefaultResponse, ): response is VirtualMachineExtensionsListDefaultResponse; export function isUnexpected( - response: VirtualMachinesListByLocation200Response | VirtualMachinesListByLocationDefaultResponse + response: VirtualMachinesListByLocation200Response | VirtualMachinesListByLocationDefaultResponse, ): response is VirtualMachinesListByLocationDefaultResponse; export function isUnexpected( response: | VirtualMachinesCapture200Response | VirtualMachinesCapture202Response - | VirtualMachinesCaptureDefaultResponse + | VirtualMachinesCaptureDefaultResponse, ): response is VirtualMachinesCaptureDefaultResponse; export function isUnexpected( response: | VirtualMachinesCreateOrUpdate200Response | VirtualMachinesCreateOrUpdate201Response - | VirtualMachinesCreateOrUpdateDefaultResponse + | VirtualMachinesCreateOrUpdateDefaultResponse, ): response is VirtualMachinesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: VirtualMachinesUpdate200Response | VirtualMachinesUpdateDefaultResponse + response: VirtualMachinesUpdate200Response | VirtualMachinesUpdateDefaultResponse, ): response is VirtualMachinesUpdateDefaultResponse; export function isUnexpected( response: | VirtualMachinesDelete200Response | VirtualMachinesDelete202Response | VirtualMachinesDelete204Response - | VirtualMachinesDeleteDefaultResponse + | VirtualMachinesDeleteDefaultResponse, ): response is VirtualMachinesDeleteDefaultResponse; export function isUnexpected( - response: VirtualMachinesGet200Response | VirtualMachinesGetDefaultResponse + response: VirtualMachinesGet200Response | VirtualMachinesGetDefaultResponse, ): response is VirtualMachinesGetDefaultResponse; export function isUnexpected( - response: VirtualMachinesInstanceView200Response | VirtualMachinesInstanceViewDefaultResponse + response: VirtualMachinesInstanceView200Response | VirtualMachinesInstanceViewDefaultResponse, ): response is VirtualMachinesInstanceViewDefaultResponse; export function isUnexpected( response: | VirtualMachinesConvertToManagedDisks200Response | VirtualMachinesConvertToManagedDisks202Response - | VirtualMachinesConvertToManagedDisksDefaultResponse + | VirtualMachinesConvertToManagedDisksDefaultResponse, ): response is VirtualMachinesConvertToManagedDisksDefaultResponse; export function isUnexpected( response: | VirtualMachinesDeallocate200Response | VirtualMachinesDeallocate202Response - | VirtualMachinesDeallocateDefaultResponse + | VirtualMachinesDeallocateDefaultResponse, ): response is VirtualMachinesDeallocateDefaultResponse; export function isUnexpected( - response: VirtualMachinesGeneralize200Response | VirtualMachinesGeneralizeDefaultResponse + response: VirtualMachinesGeneralize200Response | VirtualMachinesGeneralizeDefaultResponse, ): response is VirtualMachinesGeneralizeDefaultResponse; export function isUnexpected( - response: VirtualMachinesList200Response | VirtualMachinesListDefaultResponse + response: VirtualMachinesList200Response | VirtualMachinesListDefaultResponse, ): response is VirtualMachinesListDefaultResponse; export function isUnexpected( - response: VirtualMachinesListAll200Response | VirtualMachinesListAllDefaultResponse + response: VirtualMachinesListAll200Response | VirtualMachinesListAllDefaultResponse, ): response is VirtualMachinesListAllDefaultResponse; export function isUnexpected( response: | VirtualMachinesListAvailableSizes200Response - | VirtualMachinesListAvailableSizesDefaultResponse + | VirtualMachinesListAvailableSizesDefaultResponse, ): response is VirtualMachinesListAvailableSizesDefaultResponse; export function isUnexpected( response: | VirtualMachinesPowerOff200Response | VirtualMachinesPowerOff202Response - | VirtualMachinesPowerOffDefaultResponse + | VirtualMachinesPowerOffDefaultResponse, ): response is VirtualMachinesPowerOffDefaultResponse; export function isUnexpected( response: | VirtualMachinesReapply200Response | VirtualMachinesReapply202Response - | VirtualMachinesReapplyDefaultResponse + | VirtualMachinesReapplyDefaultResponse, ): response is VirtualMachinesReapplyDefaultResponse; export function isUnexpected( response: | VirtualMachinesRestart200Response | VirtualMachinesRestart202Response - | VirtualMachinesRestartDefaultResponse + | VirtualMachinesRestartDefaultResponse, ): response is VirtualMachinesRestartDefaultResponse; export function isUnexpected( response: | VirtualMachinesStart200Response | VirtualMachinesStart202Response - | VirtualMachinesStartDefaultResponse + | VirtualMachinesStartDefaultResponse, ): response is VirtualMachinesStartDefaultResponse; export function isUnexpected( response: | VirtualMachinesRedeploy200Response | VirtualMachinesRedeploy202Response - | VirtualMachinesRedeployDefaultResponse + | VirtualMachinesRedeployDefaultResponse, ): response is VirtualMachinesRedeployDefaultResponse; export function isUnexpected( response: | VirtualMachinesReimage200Response | VirtualMachinesReimage202Response - | VirtualMachinesReimageDefaultResponse + | VirtualMachinesReimageDefaultResponse, ): response is VirtualMachinesReimageDefaultResponse; export function isUnexpected( response: | VirtualMachinesRetrieveBootDiagnosticsData200Response - | VirtualMachinesRetrieveBootDiagnosticsDataDefaultResponse + | VirtualMachinesRetrieveBootDiagnosticsDataDefaultResponse, ): response is VirtualMachinesRetrieveBootDiagnosticsDataDefaultResponse; export function isUnexpected( response: | VirtualMachinesPerformMaintenance200Response | VirtualMachinesPerformMaintenance202Response - | VirtualMachinesPerformMaintenanceDefaultResponse + | VirtualMachinesPerformMaintenanceDefaultResponse, ): response is VirtualMachinesPerformMaintenanceDefaultResponse; export function isUnexpected( response: | VirtualMachinesSimulateEviction204Response - | VirtualMachinesSimulateEvictionDefaultResponse + | VirtualMachinesSimulateEvictionDefaultResponse, ): response is VirtualMachinesSimulateEvictionDefaultResponse; export function isUnexpected( response: | VirtualMachinesAssessPatches200Response | VirtualMachinesAssessPatches202Response - | VirtualMachinesAssessPatchesDefaultResponse + | VirtualMachinesAssessPatchesDefaultResponse, ): response is VirtualMachinesAssessPatchesDefaultResponse; export function isUnexpected( response: | VirtualMachinesInstallPatches200Response | VirtualMachinesInstallPatches202Response - | VirtualMachinesInstallPatchesDefaultResponse + | VirtualMachinesInstallPatchesDefaultResponse, ): response is VirtualMachinesInstallPatchesDefaultResponse; export function isUnexpected( - response: VirtualMachineImagesGet200Response | VirtualMachineImagesGetDefaultResponse + response: VirtualMachineImagesGet200Response | VirtualMachineImagesGetDefaultResponse, ): response is VirtualMachineImagesGetDefaultResponse; export function isUnexpected( - response: VirtualMachineImagesList200Response | VirtualMachineImagesListDefaultResponse + response: VirtualMachineImagesList200Response | VirtualMachineImagesListDefaultResponse, ): response is VirtualMachineImagesListDefaultResponse; export function isUnexpected( response: | VirtualMachineImagesListOffers200Response - | VirtualMachineImagesListOffersDefaultResponse + | VirtualMachineImagesListOffersDefaultResponse, ): response is VirtualMachineImagesListOffersDefaultResponse; export function isUnexpected( response: | VirtualMachineImagesListPublishers200Response - | VirtualMachineImagesListPublishersDefaultResponse + | VirtualMachineImagesListPublishersDefaultResponse, ): response is VirtualMachineImagesListPublishersDefaultResponse; export function isUnexpected( - response: VirtualMachineImagesListSkus200Response | VirtualMachineImagesListSkusDefaultResponse + response: VirtualMachineImagesListSkus200Response | VirtualMachineImagesListSkusDefaultResponse, ): response is VirtualMachineImagesListSkusDefaultResponse; export function isUnexpected( response: | VirtualMachineImagesListByEdgeZone200Response - | VirtualMachineImagesListByEdgeZoneDefaultResponse + | VirtualMachineImagesListByEdgeZoneDefaultResponse, ): response is VirtualMachineImagesListByEdgeZoneDefaultResponse; export function isUnexpected( response: | VirtualMachineImagesEdgeZoneGet200Response - | VirtualMachineImagesEdgeZoneGetDefaultResponse + | VirtualMachineImagesEdgeZoneGetDefaultResponse, ): response is VirtualMachineImagesEdgeZoneGetDefaultResponse; export function isUnexpected( response: | VirtualMachineImagesEdgeZoneList200Response - | VirtualMachineImagesEdgeZoneListDefaultResponse + | VirtualMachineImagesEdgeZoneListDefaultResponse, ): response is VirtualMachineImagesEdgeZoneListDefaultResponse; export function isUnexpected( response: | VirtualMachineImagesEdgeZoneListOffers200Response - | VirtualMachineImagesEdgeZoneListOffersDefaultResponse + | VirtualMachineImagesEdgeZoneListOffersDefaultResponse, ): response is VirtualMachineImagesEdgeZoneListOffersDefaultResponse; export function isUnexpected( response: | VirtualMachineImagesEdgeZoneListPublishers200Response - | VirtualMachineImagesEdgeZoneListPublishersDefaultResponse + | VirtualMachineImagesEdgeZoneListPublishersDefaultResponse, ): response is VirtualMachineImagesEdgeZoneListPublishersDefaultResponse; export function isUnexpected( response: | VirtualMachineImagesEdgeZoneListSkus200Response - | VirtualMachineImagesEdgeZoneListSkusDefaultResponse + | VirtualMachineImagesEdgeZoneListSkusDefaultResponse, ): response is VirtualMachineImagesEdgeZoneListSkusDefaultResponse; export function isUnexpected( response: | VirtualMachineExtensionImagesGet200Response - | VirtualMachineExtensionImagesGetDefaultResponse + | VirtualMachineExtensionImagesGetDefaultResponse, ): response is VirtualMachineExtensionImagesGetDefaultResponse; export function isUnexpected( response: | VirtualMachineExtensionImagesListTypes200Response - | VirtualMachineExtensionImagesListTypesDefaultResponse + | VirtualMachineExtensionImagesListTypesDefaultResponse, ): response is VirtualMachineExtensionImagesListTypesDefaultResponse; export function isUnexpected( response: | VirtualMachineExtensionImagesListVersions200Response - | VirtualMachineExtensionImagesListVersionsDefaultResponse + | VirtualMachineExtensionImagesListVersionsDefaultResponse, ): response is VirtualMachineExtensionImagesListVersionsDefaultResponse; export function isUnexpected( response: | AvailabilitySetsCreateOrUpdate200Response - | AvailabilitySetsCreateOrUpdateDefaultResponse + | AvailabilitySetsCreateOrUpdateDefaultResponse, ): response is AvailabilitySetsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: AvailabilitySetsUpdate200Response | AvailabilitySetsUpdateDefaultResponse + response: AvailabilitySetsUpdate200Response | AvailabilitySetsUpdateDefaultResponse, ): response is AvailabilitySetsUpdateDefaultResponse; export function isUnexpected( response: | AvailabilitySetsDelete200Response | AvailabilitySetsDelete204Response - | AvailabilitySetsDeleteDefaultResponse + | AvailabilitySetsDeleteDefaultResponse, ): response is AvailabilitySetsDeleteDefaultResponse; export function isUnexpected( - response: AvailabilitySetsGet200Response | AvailabilitySetsGetDefaultResponse + response: AvailabilitySetsGet200Response | AvailabilitySetsGetDefaultResponse, ): response is AvailabilitySetsGetDefaultResponse; export function isUnexpected( response: | AvailabilitySetsListBySubscription200Response - | AvailabilitySetsListBySubscriptionDefaultResponse + | AvailabilitySetsListBySubscriptionDefaultResponse, ): response is AvailabilitySetsListBySubscriptionDefaultResponse; export function isUnexpected( - response: AvailabilitySetsList200Response | AvailabilitySetsListDefaultResponse + response: AvailabilitySetsList200Response | AvailabilitySetsListDefaultResponse, ): response is AvailabilitySetsListDefaultResponse; export function isUnexpected( response: | AvailabilitySetsListAvailableSizes200Response - | AvailabilitySetsListAvailableSizesDefaultResponse + | AvailabilitySetsListAvailableSizesDefaultResponse, ): response is AvailabilitySetsListAvailableSizesDefaultResponse; export function isUnexpected( response: | ProximityPlacementGroupsCreateOrUpdate200Response | ProximityPlacementGroupsCreateOrUpdate201Response - | ProximityPlacementGroupsCreateOrUpdateDefaultResponse + | ProximityPlacementGroupsCreateOrUpdateDefaultResponse, ): response is ProximityPlacementGroupsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | ProximityPlacementGroupsUpdate200Response - | ProximityPlacementGroupsUpdateDefaultResponse + | ProximityPlacementGroupsUpdateDefaultResponse, ): response is ProximityPlacementGroupsUpdateDefaultResponse; export function isUnexpected( response: | ProximityPlacementGroupsDelete200Response - | ProximityPlacementGroupsDeleteDefaultResponse + | ProximityPlacementGroupsDeleteDefaultResponse, ): response is ProximityPlacementGroupsDeleteDefaultResponse; export function isUnexpected( - response: ProximityPlacementGroupsGet200Response | ProximityPlacementGroupsGetDefaultResponse + response: ProximityPlacementGroupsGet200Response | ProximityPlacementGroupsGetDefaultResponse, ): response is ProximityPlacementGroupsGetDefaultResponse; export function isUnexpected( response: | ProximityPlacementGroupsListBySubscription200Response - | ProximityPlacementGroupsListBySubscriptionDefaultResponse + | ProximityPlacementGroupsListBySubscriptionDefaultResponse, ): response is ProximityPlacementGroupsListBySubscriptionDefaultResponse; export function isUnexpected( response: | ProximityPlacementGroupsListByResourceGroup200Response - | ProximityPlacementGroupsListByResourceGroupDefaultResponse + | ProximityPlacementGroupsListByResourceGroupDefaultResponse, ): response is ProximityPlacementGroupsListByResourceGroupDefaultResponse; export function isUnexpected( response: | DedicatedHostGroupsCreateOrUpdate200Response | DedicatedHostGroupsCreateOrUpdate201Response - | DedicatedHostGroupsCreateOrUpdateDefaultResponse + | DedicatedHostGroupsCreateOrUpdateDefaultResponse, ): response is DedicatedHostGroupsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: DedicatedHostGroupsUpdate200Response | DedicatedHostGroupsUpdateDefaultResponse + response: DedicatedHostGroupsUpdate200Response | DedicatedHostGroupsUpdateDefaultResponse, ): response is DedicatedHostGroupsUpdateDefaultResponse; export function isUnexpected( response: | DedicatedHostGroupsDelete200Response | DedicatedHostGroupsDelete204Response - | DedicatedHostGroupsDeleteDefaultResponse + | DedicatedHostGroupsDeleteDefaultResponse, ): response is DedicatedHostGroupsDeleteDefaultResponse; export function isUnexpected( - response: DedicatedHostGroupsGet200Response | DedicatedHostGroupsGetDefaultResponse + response: DedicatedHostGroupsGet200Response | DedicatedHostGroupsGetDefaultResponse, ): response is DedicatedHostGroupsGetDefaultResponse; export function isUnexpected( response: | DedicatedHostGroupsListByResourceGroup200Response - | DedicatedHostGroupsListByResourceGroupDefaultResponse + | DedicatedHostGroupsListByResourceGroupDefaultResponse, ): response is DedicatedHostGroupsListByResourceGroupDefaultResponse; export function isUnexpected( response: | DedicatedHostGroupsListBySubscription200Response - | DedicatedHostGroupsListBySubscriptionDefaultResponse + | DedicatedHostGroupsListBySubscriptionDefaultResponse, ): response is DedicatedHostGroupsListBySubscriptionDefaultResponse; export function isUnexpected( response: | DedicatedHostsCreateOrUpdate200Response | DedicatedHostsCreateOrUpdate201Response - | DedicatedHostsCreateOrUpdateDefaultResponse + | DedicatedHostsCreateOrUpdateDefaultResponse, ): response is DedicatedHostsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: DedicatedHostsUpdate200Response | DedicatedHostsUpdateDefaultResponse + response: DedicatedHostsUpdate200Response | DedicatedHostsUpdateDefaultResponse, ): response is DedicatedHostsUpdateDefaultResponse; export function isUnexpected( response: | DedicatedHostsDelete200Response | DedicatedHostsDelete202Response | DedicatedHostsDelete204Response - | DedicatedHostsDeleteDefaultResponse + | DedicatedHostsDeleteDefaultResponse, ): response is DedicatedHostsDeleteDefaultResponse; export function isUnexpected( - response: DedicatedHostsGet200Response | DedicatedHostsGetDefaultResponse + response: DedicatedHostsGet200Response | DedicatedHostsGetDefaultResponse, ): response is DedicatedHostsGetDefaultResponse; export function isUnexpected( - response: DedicatedHostsListByHostGroup200Response | DedicatedHostsListByHostGroupDefaultResponse + response: DedicatedHostsListByHostGroup200Response | DedicatedHostsListByHostGroupDefaultResponse, ): response is DedicatedHostsListByHostGroupDefaultResponse; export function isUnexpected( - response: DedicatedHostsRestart200Response | DedicatedHostsRestartDefaultResponse + response: DedicatedHostsRestart200Response | DedicatedHostsRestartDefaultResponse, ): response is DedicatedHostsRestartDefaultResponse; export function isUnexpected( response: | SshPublicKeysListBySubscription200Response - | SshPublicKeysListBySubscriptionDefaultResponse + | SshPublicKeysListBySubscriptionDefaultResponse, ): response is SshPublicKeysListBySubscriptionDefaultResponse; export function isUnexpected( response: | SshPublicKeysListByResourceGroup200Response - | SshPublicKeysListByResourceGroupDefaultResponse + | SshPublicKeysListByResourceGroupDefaultResponse, ): response is SshPublicKeysListByResourceGroupDefaultResponse; export function isUnexpected( response: | SshPublicKeysCreate200Response | SshPublicKeysCreate201Response - | SshPublicKeysCreateDefaultResponse + | SshPublicKeysCreateDefaultResponse, ): response is SshPublicKeysCreateDefaultResponse; export function isUnexpected( - response: SshPublicKeysUpdate200Response | SshPublicKeysUpdateDefaultResponse + response: SshPublicKeysUpdate200Response | SshPublicKeysUpdateDefaultResponse, ): response is SshPublicKeysUpdateDefaultResponse; export function isUnexpected( response: | SshPublicKeysDelete200Response | SshPublicKeysDelete204Response - | SshPublicKeysDeleteDefaultResponse + | SshPublicKeysDeleteDefaultResponse, ): response is SshPublicKeysDeleteDefaultResponse; export function isUnexpected( - response: SshPublicKeysGet200Response | SshPublicKeysGetDefaultResponse + response: SshPublicKeysGet200Response | SshPublicKeysGetDefaultResponse, ): response is SshPublicKeysGetDefaultResponse; export function isUnexpected( - response: SshPublicKeysGenerateKeyPair200Response | SshPublicKeysGenerateKeyPairDefaultResponse + response: SshPublicKeysGenerateKeyPair200Response | SshPublicKeysGenerateKeyPairDefaultResponse, ): response is SshPublicKeysGenerateKeyPairDefaultResponse; export function isUnexpected( response: | ImagesCreateOrUpdate200Response | ImagesCreateOrUpdate201Response - | ImagesCreateOrUpdateDefaultResponse + | ImagesCreateOrUpdateDefaultResponse, ): response is ImagesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: ImagesUpdate200Response | ImagesUpdate201Response | ImagesUpdateDefaultResponse + response: ImagesUpdate200Response | ImagesUpdate201Response | ImagesUpdateDefaultResponse, ): response is ImagesUpdateDefaultResponse; export function isUnexpected( response: | ImagesDelete200Response | ImagesDelete202Response | ImagesDelete204Response - | ImagesDeleteDefaultResponse + | ImagesDeleteDefaultResponse, ): response is ImagesDeleteDefaultResponse; export function isUnexpected( - response: ImagesGet200Response | ImagesGetDefaultResponse + response: ImagesGet200Response | ImagesGetDefaultResponse, ): response is ImagesGetDefaultResponse; export function isUnexpected( - response: ImagesListByResourceGroup200Response | ImagesListByResourceGroupDefaultResponse + response: ImagesListByResourceGroup200Response | ImagesListByResourceGroupDefaultResponse, ): response is ImagesListByResourceGroupDefaultResponse; export function isUnexpected( - response: ImagesList200Response | ImagesListDefaultResponse + response: ImagesList200Response | ImagesListDefaultResponse, ): response is ImagesListDefaultResponse; export function isUnexpected( response: | RestorePointCollectionsCreateOrUpdate200Response | RestorePointCollectionsCreateOrUpdate201Response - | RestorePointCollectionsCreateOrUpdateDefaultResponse + | RestorePointCollectionsCreateOrUpdateDefaultResponse, ): response is RestorePointCollectionsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: RestorePointCollectionsUpdate200Response | RestorePointCollectionsUpdateDefaultResponse + response: RestorePointCollectionsUpdate200Response | RestorePointCollectionsUpdateDefaultResponse, ): response is RestorePointCollectionsUpdateDefaultResponse; export function isUnexpected( response: | RestorePointCollectionsDelete200Response | RestorePointCollectionsDelete202Response | RestorePointCollectionsDelete204Response - | RestorePointCollectionsDeleteDefaultResponse + | RestorePointCollectionsDeleteDefaultResponse, ): response is RestorePointCollectionsDeleteDefaultResponse; export function isUnexpected( - response: RestorePointCollectionsGet200Response | RestorePointCollectionsGetDefaultResponse + response: RestorePointCollectionsGet200Response | RestorePointCollectionsGetDefaultResponse, ): response is RestorePointCollectionsGetDefaultResponse; export function isUnexpected( - response: RestorePointCollectionsList200Response | RestorePointCollectionsListDefaultResponse + response: RestorePointCollectionsList200Response | RestorePointCollectionsListDefaultResponse, ): response is RestorePointCollectionsListDefaultResponse; export function isUnexpected( response: | RestorePointCollectionsListAll200Response - | RestorePointCollectionsListAllDefaultResponse + | RestorePointCollectionsListAllDefaultResponse, ): response is RestorePointCollectionsListAllDefaultResponse; export function isUnexpected( - response: RestorePointsCreate201Response | RestorePointsCreateDefaultResponse + response: RestorePointsCreate201Response | RestorePointsCreateDefaultResponse, ): response is RestorePointsCreateDefaultResponse; export function isUnexpected( response: | RestorePointsDelete200Response | RestorePointsDelete202Response | RestorePointsDelete204Response - | RestorePointsDeleteDefaultResponse + | RestorePointsDeleteDefaultResponse, ): response is RestorePointsDeleteDefaultResponse; export function isUnexpected( - response: RestorePointsGet200Response | RestorePointsGetDefaultResponse + response: RestorePointsGet200Response | RestorePointsGetDefaultResponse, ): response is RestorePointsGetDefaultResponse; export function isUnexpected( response: | CapacityReservationGroupsCreateOrUpdate200Response | CapacityReservationGroupsCreateOrUpdate201Response - | CapacityReservationGroupsCreateOrUpdateDefaultResponse + | CapacityReservationGroupsCreateOrUpdateDefaultResponse, ): response is CapacityReservationGroupsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | CapacityReservationGroupsUpdate200Response - | CapacityReservationGroupsUpdateDefaultResponse + | CapacityReservationGroupsUpdateDefaultResponse, ): response is CapacityReservationGroupsUpdateDefaultResponse; export function isUnexpected( response: | CapacityReservationGroupsDelete200Response | CapacityReservationGroupsDelete204Response - | CapacityReservationGroupsDeleteDefaultResponse + | CapacityReservationGroupsDeleteDefaultResponse, ): response is CapacityReservationGroupsDeleteDefaultResponse; export function isUnexpected( - response: CapacityReservationGroupsGet200Response | CapacityReservationGroupsGetDefaultResponse + response: CapacityReservationGroupsGet200Response | CapacityReservationGroupsGetDefaultResponse, ): response is CapacityReservationGroupsGetDefaultResponse; export function isUnexpected( response: | CapacityReservationGroupsListByResourceGroup200Response - | CapacityReservationGroupsListByResourceGroupDefaultResponse + | CapacityReservationGroupsListByResourceGroupDefaultResponse, ): response is CapacityReservationGroupsListByResourceGroupDefaultResponse; export function isUnexpected( response: | CapacityReservationGroupsListBySubscription200Response - | CapacityReservationGroupsListBySubscriptionDefaultResponse + | CapacityReservationGroupsListBySubscriptionDefaultResponse, ): response is CapacityReservationGroupsListBySubscriptionDefaultResponse; export function isUnexpected( response: | CapacityReservationsCreateOrUpdate200Response | CapacityReservationsCreateOrUpdate201Response - | CapacityReservationsCreateOrUpdateDefaultResponse + | CapacityReservationsCreateOrUpdateDefaultResponse, ): response is CapacityReservationsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | CapacityReservationsUpdate200Response | CapacityReservationsUpdate202Response - | CapacityReservationsUpdateDefaultResponse + | CapacityReservationsUpdateDefaultResponse, ): response is CapacityReservationsUpdateDefaultResponse; export function isUnexpected( response: | CapacityReservationsDelete200Response | CapacityReservationsDelete202Response | CapacityReservationsDelete204Response - | CapacityReservationsDeleteDefaultResponse + | CapacityReservationsDeleteDefaultResponse, ): response is CapacityReservationsDeleteDefaultResponse; export function isUnexpected( - response: CapacityReservationsGet200Response | CapacityReservationsGetDefaultResponse + response: CapacityReservationsGet200Response | CapacityReservationsGetDefaultResponse, ): response is CapacityReservationsGetDefaultResponse; export function isUnexpected( response: | CapacityReservationsListByCapacityReservationGroup200Response - | CapacityReservationsListByCapacityReservationGroupDefaultResponse + | CapacityReservationsListByCapacityReservationGroupDefaultResponse, ): response is CapacityReservationsListByCapacityReservationGroupDefaultResponse; export function isUnexpected( response: | LogAnalyticsExportRequestRateByInterval200Response | LogAnalyticsExportRequestRateByInterval202Response - | LogAnalyticsExportRequestRateByIntervalDefaultResponse + | LogAnalyticsExportRequestRateByIntervalDefaultResponse, ): response is LogAnalyticsExportRequestRateByIntervalDefaultResponse; export function isUnexpected( response: | LogAnalyticsExportThrottledRequests200Response | LogAnalyticsExportThrottledRequests202Response - | LogAnalyticsExportThrottledRequestsDefaultResponse + | LogAnalyticsExportThrottledRequestsDefaultResponse, ): response is LogAnalyticsExportThrottledRequestsDefaultResponse; export function isUnexpected( response: | VirtualMachineRunCommandsCreateOrUpdate200Response | VirtualMachineRunCommandsCreateOrUpdate201Response - | VirtualMachineRunCommandsCreateOrUpdateDefaultResponse + | VirtualMachineRunCommandsCreateOrUpdateDefaultResponse, ): response is VirtualMachineRunCommandsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | VirtualMachineRunCommandsUpdate200Response - | VirtualMachineRunCommandsUpdateDefaultResponse + | VirtualMachineRunCommandsUpdateDefaultResponse, ): response is VirtualMachineRunCommandsUpdateDefaultResponse; export function isUnexpected( response: | VirtualMachineRunCommandsDelete200Response | VirtualMachineRunCommandsDelete202Response | VirtualMachineRunCommandsDelete204Response - | VirtualMachineRunCommandsDeleteDefaultResponse + | VirtualMachineRunCommandsDeleteDefaultResponse, ): response is VirtualMachineRunCommandsDeleteDefaultResponse; export function isUnexpected( response: | VirtualMachineRunCommandsGetByVirtualMachine200Response - | VirtualMachineRunCommandsGetByVirtualMachineDefaultResponse + | VirtualMachineRunCommandsGetByVirtualMachineDefaultResponse, ): response is VirtualMachineRunCommandsGetByVirtualMachineDefaultResponse; export function isUnexpected( response: | VirtualMachineRunCommandsListByVirtualMachine200Response - | VirtualMachineRunCommandsListByVirtualMachineDefaultResponse + | VirtualMachineRunCommandsListByVirtualMachineDefaultResponse, ): response is VirtualMachineRunCommandsListByVirtualMachineDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMRunCommandsCreateOrUpdate200Response | VirtualMachineScaleSetVMRunCommandsCreateOrUpdate201Response - | VirtualMachineScaleSetVMRunCommandsCreateOrUpdateDefaultResponse + | VirtualMachineScaleSetVMRunCommandsCreateOrUpdateDefaultResponse, ): response is VirtualMachineScaleSetVMRunCommandsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMRunCommandsUpdate200Response - | VirtualMachineScaleSetVMRunCommandsUpdateDefaultResponse + | VirtualMachineScaleSetVMRunCommandsUpdateDefaultResponse, ): response is VirtualMachineScaleSetVMRunCommandsUpdateDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMRunCommandsDelete200Response | VirtualMachineScaleSetVMRunCommandsDelete202Response | VirtualMachineScaleSetVMRunCommandsDelete204Response - | VirtualMachineScaleSetVMRunCommandsDeleteDefaultResponse + | VirtualMachineScaleSetVMRunCommandsDeleteDefaultResponse, ): response is VirtualMachineScaleSetVMRunCommandsDeleteDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMRunCommandsGet200Response - | VirtualMachineScaleSetVMRunCommandsGetDefaultResponse + | VirtualMachineScaleSetVMRunCommandsGetDefaultResponse, ): response is VirtualMachineScaleSetVMRunCommandsGetDefaultResponse; export function isUnexpected( response: | VirtualMachineScaleSetVMRunCommandsList200Response - | VirtualMachineScaleSetVMRunCommandsListDefaultResponse + | VirtualMachineScaleSetVMRunCommandsListDefaultResponse, ): response is VirtualMachineScaleSetVMRunCommandsListDefaultResponse; export function isUnexpected( response: | DiskAccessesCreateOrUpdate200Response | DiskAccessesCreateOrUpdate202Response - | DiskAccessesCreateOrUpdateDefaultResponse + | DiskAccessesCreateOrUpdateDefaultResponse, ): response is DiskAccessesCreateOrUpdateDefaultResponse; export function isUnexpected( response: | DiskAccessesUpdate200Response | DiskAccessesUpdate202Response - | DiskAccessesUpdateDefaultResponse + | DiskAccessesUpdateDefaultResponse, ): response is DiskAccessesUpdateDefaultResponse; export function isUnexpected( - response: DiskAccessesGet200Response | DiskAccessesGetDefaultResponse + response: DiskAccessesGet200Response | DiskAccessesGetDefaultResponse, ): response is DiskAccessesGetDefaultResponse; export function isUnexpected( response: | DiskAccessesDelete200Response | DiskAccessesDelete202Response | DiskAccessesDelete204Response - | DiskAccessesDeleteDefaultResponse + | DiskAccessesDeleteDefaultResponse, ): response is DiskAccessesDeleteDefaultResponse; export function isUnexpected( response: | DiskAccessesListByResourceGroup200Response - | DiskAccessesListByResourceGroupDefaultResponse + | DiskAccessesListByResourceGroupDefaultResponse, ): response is DiskAccessesListByResourceGroupDefaultResponse; export function isUnexpected( - response: DiskAccessesList200Response | DiskAccessesListDefaultResponse + response: DiskAccessesList200Response | DiskAccessesListDefaultResponse, ): response is DiskAccessesListDefaultResponse; export function isUnexpected( response: | DiskAccessesUpdateAPrivateEndpointConnection200Response | DiskAccessesUpdateAPrivateEndpointConnection202Response - | DiskAccessesUpdateAPrivateEndpointConnectionDefaultResponse + | DiskAccessesUpdateAPrivateEndpointConnectionDefaultResponse, ): response is DiskAccessesUpdateAPrivateEndpointConnectionDefaultResponse; export function isUnexpected( response: | DiskAccessesGetAPrivateEndpointConnection200Response - | DiskAccessesGetAPrivateEndpointConnectionDefaultResponse + | DiskAccessesGetAPrivateEndpointConnectionDefaultResponse, ): response is DiskAccessesGetAPrivateEndpointConnectionDefaultResponse; export function isUnexpected( response: | DiskAccessesDeleteAPrivateEndpointConnection200Response | DiskAccessesDeleteAPrivateEndpointConnection202Response | DiskAccessesDeleteAPrivateEndpointConnection204Response - | DiskAccessesDeleteAPrivateEndpointConnectionDefaultResponse + | DiskAccessesDeleteAPrivateEndpointConnectionDefaultResponse, ): response is DiskAccessesDeleteAPrivateEndpointConnectionDefaultResponse; export function isUnexpected( response: | DiskAccessesListPrivateEndpointConnections200Response - | DiskAccessesListPrivateEndpointConnectionsDefaultResponse + | DiskAccessesListPrivateEndpointConnectionsDefaultResponse, ): response is DiskAccessesListPrivateEndpointConnectionsDefaultResponse; export function isUnexpected( response: | DiskEncryptionSetsCreateOrUpdate200Response | DiskEncryptionSetsCreateOrUpdate202Response - | DiskEncryptionSetsCreateOrUpdateDefaultResponse + | DiskEncryptionSetsCreateOrUpdateDefaultResponse, ): response is DiskEncryptionSetsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | DiskEncryptionSetsUpdate200Response | DiskEncryptionSetsUpdate202Response - | DiskEncryptionSetsUpdateDefaultResponse + | DiskEncryptionSetsUpdateDefaultResponse, ): response is DiskEncryptionSetsUpdateDefaultResponse; export function isUnexpected( - response: DiskEncryptionSetsGet200Response | DiskEncryptionSetsGetDefaultResponse + response: DiskEncryptionSetsGet200Response | DiskEncryptionSetsGetDefaultResponse, ): response is DiskEncryptionSetsGetDefaultResponse; export function isUnexpected( response: | DiskEncryptionSetsDelete200Response | DiskEncryptionSetsDelete202Response | DiskEncryptionSetsDelete204Response - | DiskEncryptionSetsDeleteDefaultResponse + | DiskEncryptionSetsDeleteDefaultResponse, ): response is DiskEncryptionSetsDeleteDefaultResponse; export function isUnexpected( response: | DiskEncryptionSetsListByResourceGroup200Response - | DiskEncryptionSetsListByResourceGroupDefaultResponse + | DiskEncryptionSetsListByResourceGroupDefaultResponse, ): response is DiskEncryptionSetsListByResourceGroupDefaultResponse; export function isUnexpected( - response: DiskEncryptionSetsList200Response | DiskEncryptionSetsListDefaultResponse + response: DiskEncryptionSetsList200Response | DiskEncryptionSetsListDefaultResponse, ): response is DiskEncryptionSetsListDefaultResponse; export function isUnexpected( response: | DiskEncryptionSetsListAssociatedResources200Response - | DiskEncryptionSetsListAssociatedResourcesDefaultResponse + | DiskEncryptionSetsListAssociatedResourcesDefaultResponse, ): response is DiskEncryptionSetsListAssociatedResourcesDefaultResponse; export function isUnexpected( - response: DiskRestorePointGet200Response | DiskRestorePointGetDefaultResponse + response: DiskRestorePointGet200Response | DiskRestorePointGetDefaultResponse, ): response is DiskRestorePointGetDefaultResponse; export function isUnexpected( response: | DiskRestorePointListByRestorePoint200Response - | DiskRestorePointListByRestorePointDefaultResponse + | DiskRestorePointListByRestorePointDefaultResponse, ): response is DiskRestorePointListByRestorePointDefaultResponse; export function isUnexpected( response: | DiskRestorePointGrantAccess200Response | DiskRestorePointGrantAccess202Response - | DiskRestorePointGrantAccessDefaultResponse + | DiskRestorePointGrantAccessDefaultResponse, ): response is DiskRestorePointGrantAccessDefaultResponse; export function isUnexpected( response: | DiskRestorePointRevokeAccess200Response | DiskRestorePointRevokeAccess202Response - | DiskRestorePointRevokeAccessDefaultResponse + | DiskRestorePointRevokeAccessDefaultResponse, ): response is DiskRestorePointRevokeAccessDefaultResponse; export function isUnexpected( response: | GalleriesCreateOrUpdate200Response | GalleriesCreateOrUpdate201Response | GalleriesCreateOrUpdate202Response - | GalleriesCreateOrUpdateDefaultResponse + | GalleriesCreateOrUpdateDefaultResponse, ): response is GalleriesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: GalleriesUpdate200Response | GalleriesUpdateDefaultResponse + response: GalleriesUpdate200Response | GalleriesUpdateDefaultResponse, ): response is GalleriesUpdateDefaultResponse; export function isUnexpected( - response: GalleriesGet200Response | GalleriesGetDefaultResponse + response: GalleriesGet200Response | GalleriesGetDefaultResponse, ): response is GalleriesGetDefaultResponse; export function isUnexpected( response: | GalleriesDelete200Response | GalleriesDelete202Response | GalleriesDelete204Response - | GalleriesDeleteDefaultResponse + | GalleriesDeleteDefaultResponse, ): response is GalleriesDeleteDefaultResponse; export function isUnexpected( - response: GalleriesListByResourceGroup200Response | GalleriesListByResourceGroupDefaultResponse + response: GalleriesListByResourceGroup200Response | GalleriesListByResourceGroupDefaultResponse, ): response is GalleriesListByResourceGroupDefaultResponse; export function isUnexpected( - response: GalleriesList200Response | GalleriesListDefaultResponse + response: GalleriesList200Response | GalleriesListDefaultResponse, ): response is GalleriesListDefaultResponse; export function isUnexpected( response: | GalleryImagesCreateOrUpdate200Response | GalleryImagesCreateOrUpdate201Response | GalleryImagesCreateOrUpdate202Response - | GalleryImagesCreateOrUpdateDefaultResponse + | GalleryImagesCreateOrUpdateDefaultResponse, ): response is GalleryImagesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: GalleryImagesUpdate200Response | GalleryImagesUpdateDefaultResponse + response: GalleryImagesUpdate200Response | GalleryImagesUpdateDefaultResponse, ): response is GalleryImagesUpdateDefaultResponse; export function isUnexpected( - response: GalleryImagesGet200Response | GalleryImagesGetDefaultResponse + response: GalleryImagesGet200Response | GalleryImagesGetDefaultResponse, ): response is GalleryImagesGetDefaultResponse; export function isUnexpected( response: | GalleryImagesDelete200Response | GalleryImagesDelete202Response | GalleryImagesDelete204Response - | GalleryImagesDeleteDefaultResponse + | GalleryImagesDeleteDefaultResponse, ): response is GalleryImagesDeleteDefaultResponse; export function isUnexpected( - response: GalleryImagesListByGallery200Response | GalleryImagesListByGalleryDefaultResponse + response: GalleryImagesListByGallery200Response | GalleryImagesListByGalleryDefaultResponse, ): response is GalleryImagesListByGalleryDefaultResponse; export function isUnexpected( response: | GalleryImageVersionsCreateOrUpdate200Response | GalleryImageVersionsCreateOrUpdate201Response | GalleryImageVersionsCreateOrUpdate202Response - | GalleryImageVersionsCreateOrUpdateDefaultResponse + | GalleryImageVersionsCreateOrUpdateDefaultResponse, ): response is GalleryImageVersionsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: GalleryImageVersionsUpdate200Response | GalleryImageVersionsUpdateDefaultResponse + response: GalleryImageVersionsUpdate200Response | GalleryImageVersionsUpdateDefaultResponse, ): response is GalleryImageVersionsUpdateDefaultResponse; export function isUnexpected( - response: GalleryImageVersionsGet200Response | GalleryImageVersionsGetDefaultResponse + response: GalleryImageVersionsGet200Response | GalleryImageVersionsGetDefaultResponse, ): response is GalleryImageVersionsGetDefaultResponse; export function isUnexpected( response: | GalleryImageVersionsDelete200Response | GalleryImageVersionsDelete202Response | GalleryImageVersionsDelete204Response - | GalleryImageVersionsDeleteDefaultResponse + | GalleryImageVersionsDeleteDefaultResponse, ): response is GalleryImageVersionsDeleteDefaultResponse; export function isUnexpected( response: | GalleryImageVersionsListByGalleryImage200Response - | GalleryImageVersionsListByGalleryImageDefaultResponse + | GalleryImageVersionsListByGalleryImageDefaultResponse, ): response is GalleryImageVersionsListByGalleryImageDefaultResponse; export function isUnexpected( response: | GalleryApplicationsCreateOrUpdate200Response | GalleryApplicationsCreateOrUpdate201Response | GalleryApplicationsCreateOrUpdate202Response - | GalleryApplicationsCreateOrUpdateDefaultResponse + | GalleryApplicationsCreateOrUpdateDefaultResponse, ): response is GalleryApplicationsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: GalleryApplicationsUpdate200Response | GalleryApplicationsUpdateDefaultResponse + response: GalleryApplicationsUpdate200Response | GalleryApplicationsUpdateDefaultResponse, ): response is GalleryApplicationsUpdateDefaultResponse; export function isUnexpected( - response: GalleryApplicationsGet200Response | GalleryApplicationsGetDefaultResponse + response: GalleryApplicationsGet200Response | GalleryApplicationsGetDefaultResponse, ): response is GalleryApplicationsGetDefaultResponse; export function isUnexpected( response: | GalleryApplicationsDelete200Response | GalleryApplicationsDelete202Response | GalleryApplicationsDelete204Response - | GalleryApplicationsDeleteDefaultResponse + | GalleryApplicationsDeleteDefaultResponse, ): response is GalleryApplicationsDeleteDefaultResponse; export function isUnexpected( response: | GalleryApplicationsListByGallery200Response - | GalleryApplicationsListByGalleryDefaultResponse + | GalleryApplicationsListByGalleryDefaultResponse, ): response is GalleryApplicationsListByGalleryDefaultResponse; export function isUnexpected( response: | GalleryApplicationVersionsCreateOrUpdate200Response | GalleryApplicationVersionsCreateOrUpdate201Response | GalleryApplicationVersionsCreateOrUpdate202Response - | GalleryApplicationVersionsCreateOrUpdateDefaultResponse + | GalleryApplicationVersionsCreateOrUpdateDefaultResponse, ): response is GalleryApplicationVersionsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | GalleryApplicationVersionsUpdate200Response - | GalleryApplicationVersionsUpdateDefaultResponse + | GalleryApplicationVersionsUpdateDefaultResponse, ): response is GalleryApplicationVersionsUpdateDefaultResponse; export function isUnexpected( - response: GalleryApplicationVersionsGet200Response | GalleryApplicationVersionsGetDefaultResponse + response: GalleryApplicationVersionsGet200Response | GalleryApplicationVersionsGetDefaultResponse, ): response is GalleryApplicationVersionsGetDefaultResponse; export function isUnexpected( response: | GalleryApplicationVersionsDelete200Response | GalleryApplicationVersionsDelete202Response | GalleryApplicationVersionsDelete204Response - | GalleryApplicationVersionsDeleteDefaultResponse + | GalleryApplicationVersionsDeleteDefaultResponse, ): response is GalleryApplicationVersionsDeleteDefaultResponse; export function isUnexpected( response: | GalleryApplicationVersionsListByGalleryApplication200Response - | GalleryApplicationVersionsListByGalleryApplicationDefaultResponse + | GalleryApplicationVersionsListByGalleryApplicationDefaultResponse, ): response is GalleryApplicationVersionsListByGalleryApplicationDefaultResponse; export function isUnexpected( response: | GallerySharingProfileUpdate200Response | GallerySharingProfileUpdate202Response - | GallerySharingProfileUpdateDefaultResponse + | GallerySharingProfileUpdateDefaultResponse, ): response is GallerySharingProfileUpdateDefaultResponse; export function isUnexpected( - response: SharedGalleriesList200Response | SharedGalleriesListDefaultResponse + response: SharedGalleriesList200Response | SharedGalleriesListDefaultResponse, ): response is SharedGalleriesListDefaultResponse; export function isUnexpected( - response: SharedGalleriesGet200Response | SharedGalleriesGetDefaultResponse + response: SharedGalleriesGet200Response | SharedGalleriesGetDefaultResponse, ): response is SharedGalleriesGetDefaultResponse; export function isUnexpected( - response: SharedGalleryImagesList200Response | SharedGalleryImagesListDefaultResponse + response: SharedGalleryImagesList200Response | SharedGalleryImagesListDefaultResponse, ): response is SharedGalleryImagesListDefaultResponse; export function isUnexpected( - response: SharedGalleryImagesGet200Response | SharedGalleryImagesGetDefaultResponse + response: SharedGalleryImagesGet200Response | SharedGalleryImagesGetDefaultResponse, ): response is SharedGalleryImagesGetDefaultResponse; export function isUnexpected( response: | SharedGalleryImageVersionsList200Response - | SharedGalleryImageVersionsListDefaultResponse + | SharedGalleryImageVersionsListDefaultResponse, ): response is SharedGalleryImageVersionsListDefaultResponse; export function isUnexpected( - response: SharedGalleryImageVersionsGet200Response | SharedGalleryImageVersionsGetDefaultResponse + response: SharedGalleryImageVersionsGet200Response | SharedGalleryImageVersionsGetDefaultResponse, ): response is SharedGalleryImageVersionsGetDefaultResponse; export function isUnexpected( - response: CommunityGalleriesGet200Response | CommunityGalleriesGetDefaultResponse + response: CommunityGalleriesGet200Response | CommunityGalleriesGetDefaultResponse, ): response is CommunityGalleriesGetDefaultResponse; export function isUnexpected( - response: CommunityGalleryImagesGet200Response | CommunityGalleryImagesGetDefaultResponse + response: CommunityGalleryImagesGet200Response | CommunityGalleryImagesGetDefaultResponse, ): response is CommunityGalleryImagesGetDefaultResponse; export function isUnexpected( - response: CommunityGalleryImagesList200Response | CommunityGalleryImagesListDefaultResponse + response: CommunityGalleryImagesList200Response | CommunityGalleryImagesListDefaultResponse, ): response is CommunityGalleryImagesListDefaultResponse; export function isUnexpected( response: | CommunityGalleryImageVersionsGet200Response - | CommunityGalleryImageVersionsGetDefaultResponse + | CommunityGalleryImageVersionsGetDefaultResponse, ): response is CommunityGalleryImageVersionsGetDefaultResponse; export function isUnexpected( response: | CommunityGalleryImageVersionsList200Response - | CommunityGalleryImageVersionsListDefaultResponse + | CommunityGalleryImageVersionsListDefaultResponse, ): response is CommunityGalleryImageVersionsListDefaultResponse; export function isUnexpected( response: | CloudServiceRoleInstancesDelete200Response | CloudServiceRoleInstancesDelete202Response | CloudServiceRoleInstancesDelete204Response - | CloudServiceRoleInstancesDeleteDefaultResponse + | CloudServiceRoleInstancesDeleteDefaultResponse, ): response is CloudServiceRoleInstancesDeleteDefaultResponse; export function isUnexpected( - response: CloudServiceRoleInstancesGet200Response | CloudServiceRoleInstancesGetDefaultResponse + response: CloudServiceRoleInstancesGet200Response | CloudServiceRoleInstancesGetDefaultResponse, ): response is CloudServiceRoleInstancesGetDefaultResponse; export function isUnexpected( response: | CloudServiceRoleInstancesGetInstanceView200Response - | CloudServiceRoleInstancesGetInstanceViewDefaultResponse + | CloudServiceRoleInstancesGetInstanceViewDefaultResponse, ): response is CloudServiceRoleInstancesGetInstanceViewDefaultResponse; export function isUnexpected( - response: CloudServiceRoleInstancesList200Response | CloudServiceRoleInstancesListDefaultResponse + response: CloudServiceRoleInstancesList200Response | CloudServiceRoleInstancesListDefaultResponse, ): response is CloudServiceRoleInstancesListDefaultResponse; export function isUnexpected( response: | CloudServiceRoleInstancesRestart200Response | CloudServiceRoleInstancesRestart202Response - | CloudServiceRoleInstancesRestartDefaultResponse + | CloudServiceRoleInstancesRestartDefaultResponse, ): response is CloudServiceRoleInstancesRestartDefaultResponse; export function isUnexpected( response: | CloudServiceRoleInstancesReimage200Response | CloudServiceRoleInstancesReimage202Response - | CloudServiceRoleInstancesReimageDefaultResponse + | CloudServiceRoleInstancesReimageDefaultResponse, ): response is CloudServiceRoleInstancesReimageDefaultResponse; export function isUnexpected( response: | CloudServiceRoleInstancesRebuild200Response | CloudServiceRoleInstancesRebuild202Response - | CloudServiceRoleInstancesRebuildDefaultResponse + | CloudServiceRoleInstancesRebuildDefaultResponse, ): response is CloudServiceRoleInstancesRebuildDefaultResponse; export function isUnexpected( response: | CloudServiceRoleInstancesGetRemoteDesktopFile200Response - | CloudServiceRoleInstancesGetRemoteDesktopFileDefaultResponse + | CloudServiceRoleInstancesGetRemoteDesktopFileDefaultResponse, ): response is CloudServiceRoleInstancesGetRemoteDesktopFileDefaultResponse; export function isUnexpected( - response: CloudServiceRolesGet200Response | CloudServiceRolesGetDefaultResponse + response: CloudServiceRolesGet200Response | CloudServiceRolesGetDefaultResponse, ): response is CloudServiceRolesGetDefaultResponse; export function isUnexpected( - response: CloudServiceRolesList200Response | CloudServiceRolesListDefaultResponse + response: CloudServiceRolesList200Response | CloudServiceRolesListDefaultResponse, ): response is CloudServiceRolesListDefaultResponse; export function isUnexpected( response: | CloudServicesCreateOrUpdate200Response | CloudServicesCreateOrUpdate201Response - | CloudServicesCreateOrUpdateDefaultResponse + | CloudServicesCreateOrUpdateDefaultResponse, ): response is CloudServicesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: CloudServicesUpdate200Response | CloudServicesUpdateDefaultResponse + response: CloudServicesUpdate200Response | CloudServicesUpdateDefaultResponse, ): response is CloudServicesUpdateDefaultResponse; export function isUnexpected( response: | CloudServicesDelete200Response | CloudServicesDelete202Response | CloudServicesDelete204Response - | CloudServicesDeleteDefaultResponse + | CloudServicesDeleteDefaultResponse, ): response is CloudServicesDeleteDefaultResponse; export function isUnexpected( - response: CloudServicesGet200Response | CloudServicesGetDefaultResponse + response: CloudServicesGet200Response | CloudServicesGetDefaultResponse, ): response is CloudServicesGetDefaultResponse; export function isUnexpected( - response: CloudServicesGetInstanceView200Response | CloudServicesGetInstanceViewDefaultResponse + response: CloudServicesGetInstanceView200Response | CloudServicesGetInstanceViewDefaultResponse, ): response is CloudServicesGetInstanceViewDefaultResponse; export function isUnexpected( - response: CloudServicesListAll200Response | CloudServicesListAllDefaultResponse + response: CloudServicesListAll200Response | CloudServicesListAllDefaultResponse, ): response is CloudServicesListAllDefaultResponse; export function isUnexpected( - response: CloudServicesList200Response | CloudServicesListDefaultResponse + response: CloudServicesList200Response | CloudServicesListDefaultResponse, ): response is CloudServicesListDefaultResponse; export function isUnexpected( response: | CloudServicesStart200Response | CloudServicesStart202Response - | CloudServicesStartDefaultResponse + | CloudServicesStartDefaultResponse, ): response is CloudServicesStartDefaultResponse; export function isUnexpected( response: | CloudServicesPowerOff200Response | CloudServicesPowerOff202Response - | CloudServicesPowerOffDefaultResponse + | CloudServicesPowerOffDefaultResponse, ): response is CloudServicesPowerOffDefaultResponse; export function isUnexpected( response: | CloudServicesRestart200Response | CloudServicesRestart202Response - | CloudServicesRestartDefaultResponse + | CloudServicesRestartDefaultResponse, ): response is CloudServicesRestartDefaultResponse; export function isUnexpected( response: | CloudServicesReimage200Response | CloudServicesReimage202Response - | CloudServicesReimageDefaultResponse + | CloudServicesReimageDefaultResponse, ): response is CloudServicesReimageDefaultResponse; export function isUnexpected( response: | CloudServicesRebuild200Response | CloudServicesRebuild202Response - | CloudServicesRebuildDefaultResponse + | CloudServicesRebuildDefaultResponse, ): response is CloudServicesRebuildDefaultResponse; export function isUnexpected( response: | CloudServicesDeleteInstances200Response | CloudServicesDeleteInstances202Response - | CloudServicesDeleteInstancesDefaultResponse + | CloudServicesDeleteInstancesDefaultResponse, ): response is CloudServicesDeleteInstancesDefaultResponse; export function isUnexpected( response: | CloudServicesUpdateDomainWalkUpdateDomain200Response | CloudServicesUpdateDomainWalkUpdateDomain202Response - | CloudServicesUpdateDomainWalkUpdateDomainDefaultResponse + | CloudServicesUpdateDomainWalkUpdateDomainDefaultResponse, ): response is CloudServicesUpdateDomainWalkUpdateDomainDefaultResponse; export function isUnexpected( response: | CloudServicesUpdateDomainGetUpdateDomain200Response - | CloudServicesUpdateDomainGetUpdateDomainDefaultResponse + | CloudServicesUpdateDomainGetUpdateDomainDefaultResponse, ): response is CloudServicesUpdateDomainGetUpdateDomainDefaultResponse; export function isUnexpected( response: | CloudServicesUpdateDomainListUpdateDomains200Response - | CloudServicesUpdateDomainListUpdateDomainsDefaultResponse + | CloudServicesUpdateDomainListUpdateDomainsDefaultResponse, ): response is CloudServicesUpdateDomainListUpdateDomainsDefaultResponse; export function isUnexpected( response: | CloudServiceOperatingSystemsGetOSVersion200Response - | CloudServiceOperatingSystemsGetOSVersionDefaultResponse + | CloudServiceOperatingSystemsGetOSVersionDefaultResponse, ): response is CloudServiceOperatingSystemsGetOSVersionDefaultResponse; export function isUnexpected( response: | CloudServiceOperatingSystemsListOSVersions200Response - | CloudServiceOperatingSystemsListOSVersionsDefaultResponse + | CloudServiceOperatingSystemsListOSVersionsDefaultResponse, ): response is CloudServiceOperatingSystemsListOSVersionsDefaultResponse; export function isUnexpected( response: | CloudServiceOperatingSystemsGetOSFamily200Response - | CloudServiceOperatingSystemsGetOSFamilyDefaultResponse + | CloudServiceOperatingSystemsGetOSFamilyDefaultResponse, ): response is CloudServiceOperatingSystemsGetOSFamilyDefaultResponse; export function isUnexpected( response: | CloudServiceOperatingSystemsListOSFamilies200Response - | CloudServiceOperatingSystemsListOSFamiliesDefaultResponse + | CloudServiceOperatingSystemsListOSFamiliesDefaultResponse, ): response is CloudServiceOperatingSystemsListOSFamiliesDefaultResponse; export function isUnexpected( response: @@ -3227,7 +3227,7 @@ export function isUnexpected( | CloudServiceOperatingSystemsGetOSFamily200Response | CloudServiceOperatingSystemsGetOSFamilyDefaultResponse | CloudServiceOperatingSystemsListOSFamilies200Response - | CloudServiceOperatingSystemsListOSFamiliesDefaultResponse + | CloudServiceOperatingSystemsListOSFamiliesDefaultResponse, ): response is | OperationsListDefaultResponse | UsageListDefaultResponse diff --git a/sdk/compute/arm-compute-rest/src/paginateHelper.ts b/sdk/compute/arm-compute-rest/src/paginateHelper.ts index 532e2603f724..ae39a400b94b 100644 --- a/sdk/compute/arm-compute-rest/src/paginateHelper.ts +++ b/sdk/compute/arm-compute-rest/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/compute/arm-compute-rest/src/pollingHelper.ts b/sdk/compute/arm-compute-rest/src/pollingHelper.ts index e05cda105f04..a2b7a9b25387 100644 --- a/sdk/compute/arm-compute-rest/src/pollingHelper.ts +++ b/sdk/compute/arm-compute-rest/src/pollingHelper.ts @@ -21,7 +21,7 @@ import { export function getLongRunningPoller( client: Client, initialResponse: TResult, - options: LroEngineOptions> = {} + options: LroEngineOptions> = {}, ): PollerLike, TResult> { const poller: LongRunningOperation = { requestMethod: initialResponse.request.method, diff --git a/sdk/compute/arm-compute-rest/test/public/compute-rest-sample.spec.ts b/sdk/compute/arm-compute-rest/test/public/compute-rest-sample.spec.ts index d67e0330fdaa..dec3c1e0ac93 100644 --- a/sdk/compute/arm-compute-rest/test/public/compute-rest-sample.spec.ts +++ b/sdk/compute/arm-compute-rest/test/public/compute-rest-sample.spec.ts @@ -78,7 +78,7 @@ describe("Compute test", () => { network_client = new NetworkManagementClient( credential, subscriptionId, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); location = "eastus"; resourceGroupName = "myjstest"; @@ -106,7 +106,7 @@ describe("Compute test", () => { resourceGroupName, network_name, parameter, - testPollingOptionsForNetwork + testPollingOptionsForNetwork, ); console.log(virtualNetworks_create_info); const subnet_parameter: Subnet = { @@ -117,7 +117,7 @@ describe("Compute test", () => { network_name, subnet_name, subnet_parameter, - testPollingOptionsForNetwork + testPollingOptionsForNetwork, ); console.log(subnet__create_info); } @@ -147,7 +147,7 @@ describe("Compute test", () => { group_name, nic_name, parameter, - testPollingOptionsForNetwork + testPollingOptionsForNetwork, ); console.log(nic_info); } @@ -165,7 +165,7 @@ describe("Compute test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", subscriptionId, resourceGroupName, - availabilitySetName + availabilitySetName, ) .put(options); if (isUnexpected(result)) { @@ -186,7 +186,7 @@ describe("Compute test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", subscriptionId, resourceGroupName, - availabilitySetName + availabilitySetName, ) .patch(options); if (isUnexpected(result)) { @@ -204,7 +204,7 @@ describe("Compute test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", subscriptionId, resourceGroupName, - availabilitySetName + availabilitySetName, ) .get(options); if (isUnexpected(result)) { @@ -221,7 +221,7 @@ describe("Compute test", () => { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -241,7 +241,7 @@ describe("Compute test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", subscriptionId, resourceGroupName, - availabilitySetName + availabilitySetName, ) .delete(deleteOptions); if (isUnexpected(deleteResponse)) { @@ -254,7 +254,7 @@ describe("Compute test", () => { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -337,7 +337,7 @@ describe("Compute test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - virtual_machine_name + virtual_machine_name, ) .put(options); if (isUnexpected(initialResponse)) { @@ -357,7 +357,7 @@ describe("Compute test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - virtual_machine_name + virtual_machine_name, ) .get(options); if (isUnexpected(result)) { @@ -376,7 +376,7 @@ describe("Compute test", () => { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -416,7 +416,7 @@ describe("Compute test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - virtual_machine_name + virtual_machine_name, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse, testPollingOptions); @@ -436,7 +436,7 @@ describe("Compute test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", subscriptionId, resourceGroupName, - virtual_machine_name + virtual_machine_name, ) .delete(deleteOptions); const poller = getLongRunningPoller(client, deleteInitialResponse, testPollingOptions); @@ -453,7 +453,7 @@ describe("Compute test", () => { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/compute/arm-compute-rest/test/public/utils/recordedClient.ts b/sdk/compute/arm-compute-rest/test/public/utils/recordedClient.ts index e9df615c4f17..92b17094bfd3 100644 --- a/sdk/compute/arm-compute-rest/test/public/utils/recordedClient.ts +++ b/sdk/compute/arm-compute-rest/test/public/utils/recordedClient.ts @@ -35,11 +35,11 @@ export async function createRecorder(context: Context): Promise { export function createTestComputeManagementClient( recorder: Recorder, credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): ComputeManagementClient { const client = createComputeManagementClient( credentials, - recorder.configureClientOptions(options) + recorder.configureClientOptions(options), ); return client; } diff --git a/sdk/confidentialledger/confidential-ledger-rest/package.json b/sdk/confidentialledger/confidential-ledger-rest/package.json index 8cbfc318f53a..f613afa6f530 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/package.json +++ b/sdk/confidentialledger/confidential-ledger-rest/package.json @@ -58,11 +58,11 @@ "build:test": "tsc -p . && dev-tool run bundle --browser-test=false", "build": "npm run clean && tsc -p . && dev-tool run bundle --browser-test=false && api-extractor run --local", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm dist-test temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && rushx format", "integration-test:browser": "echo \"Browser is not supported.\" && exit 0", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -104,7 +104,6 @@ "eslint": "^8.0.0", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/confidentialledger/confidential-ledger-rest/samples-dev/getEnclaveQuotesAAD.ts b/sdk/confidentialledger/confidential-ledger-rest/samples-dev/getEnclaveQuotesAAD.ts index 4ece00f72690..75d96b2b3774 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/samples-dev/getEnclaveQuotesAAD.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/samples-dev/getEnclaveQuotesAAD.ts @@ -31,7 +31,7 @@ export async function main() { const confidentialLedger = ConfidentialLedger( endpoint, ledgerIdentity.ledgerIdentityCertificate, - new DefaultAzureCredential() + new DefaultAzureCredential(), ); // Get enclave quotes diff --git a/sdk/confidentialledger/confidential-ledger-rest/samples-dev/getEnclaveQuotesCert.ts b/sdk/confidentialledger/confidential-ledger-rest/samples-dev/getEnclaveQuotesCert.ts index c34f615e78ee..9e8e2efcb242 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/samples-dev/getEnclaveQuotesCert.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/samples-dev/getEnclaveQuotesCert.ts @@ -36,7 +36,7 @@ export async function main() { cert, key, }, - } + }, ); // Get enclave quotes diff --git a/sdk/confidentialledger/confidential-ledger-rest/src/confidentialLedger.ts b/sdk/confidentialledger/confidential-ledger-rest/src/confidentialLedger.ts index 1ebae7a5df01..6ab748e5c38c 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/src/confidentialLedger.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/src/confidentialLedger.ts @@ -10,19 +10,19 @@ import GeneratedConfidentialLedger from "./generated/src/confidentialLedger"; export default function ConfidentialLedger( ledgerEndpoint: string, ledgerIdentityCertificate: string, - options?: ClientOptions + options?: ClientOptions, ): ConfidentialLedgerClient; export default function ConfidentialLedger( ledgerEndpoint: string, ledgerIdentityCertificate: string, credentials: TokenCredential, - options?: ClientOptions + options?: ClientOptions, ): ConfidentialLedgerClient; export default function ConfidentialLedger( ledgerEndpoint: string, ledgerIdentityCertificate: string, credentialsOrOptions?: TokenCredential | ClientOptions, - opts?: ClientOptions + opts?: ClientOptions, ): ConfidentialLedgerClient { let credentials: TokenCredential | undefined; let options: ClientOptions; diff --git a/sdk/confidentialledger/confidential-ledger-rest/src/getLedgerIdentity.ts b/sdk/confidentialledger/confidential-ledger-rest/src/getLedgerIdentity.ts index 92e995046a17..135d00dca246 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/src/getLedgerIdentity.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/src/getLedgerIdentity.ts @@ -10,7 +10,7 @@ export interface LedgerIdentity { export async function getLedgerIdentity( ledgerId: string, - identityServiceBaseUrl: string = "https://identity.confidential-ledger.core.azure.com" + identityServiceBaseUrl: string = "https://identity.confidential-ledger.core.azure.com", ): Promise { const client = getClient(identityServiceBaseUrl); @@ -23,7 +23,7 @@ export async function getLedgerIdentity( if (!isLedgerIdentity(updatedCert)) { throw new Error( - "Body received from Confidential Ledger Identity is invalid. It must contain ledgerId and ledgerIdentityCertificate" + "Body received from Confidential Ledger Identity is invalid. It must contain ledgerId and ledgerIdentityCertificate", ); } diff --git a/sdk/confidentialledger/confidential-ledger-rest/test/public/postTransaction.spec.ts b/sdk/confidentialledger/confidential-ledger-rest/test/public/postTransaction.spec.ts index 1f28e84603a3..25917481ee69 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/test/public/postTransaction.spec.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/test/public/postTransaction.spec.ts @@ -63,7 +63,7 @@ describe("Post transaction", function () { .get(); assert( transactionResponse.status === "200" || - (transactionResponse.status === "406" && status.body.state === "Pending") + (transactionResponse.status === "406" && status.body.state === "Pending"), ); }); @@ -108,7 +108,7 @@ describe("Post transaction", function () { .get(); assert( transactionResponse.status === "200" || - (transactionResponse.status === "406" && status.body.state === "Pending") + (transactionResponse.status === "406" && status.body.state === "Pending"), ); }); }); diff --git a/sdk/confidentialledger/confidential-ledger-rest/test/public/utils/recordedClient.ts b/sdk/confidentialledger/confidential-ledger-rest/test/public/utils/recordedClient.ts index b9461203c7fc..e844a6599cef 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/test/public/utils/recordedClient.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/test/public/utils/recordedClient.ts @@ -27,7 +27,7 @@ export async function getledgerIdentityCertificate(): Promise { } const { ledgerIdentityCertificate } = await getLedgerIdentity( assertEnvironmentVariable("LEDGER_NAME"), - env.IDENTITY_SERVICE_URL + env.IDENTITY_SERVICE_URL, ); return ledgerIdentityCertificate; } @@ -41,7 +41,7 @@ export async function createClient(recorder: Recorder): Promise { console.log("Listing artifacts"); const artifacts: ArtifactManifestProperties[] = []; @@ -138,7 +138,7 @@ async function getProperties(repository: ContainerRepository) { ` canDelete: ${properties.canDelete}, canList: ${properties.canList}, canRead: ${properties.canRead}, - canWrite: ${properties.canWrite}` + canWrite: ${properties.canWrite}`, ); console.log(" }"); } diff --git a/sdk/containerregistry/container-registry/samples-dev/uploadCustomManifest.ts b/sdk/containerregistry/container-registry/samples-dev/uploadCustomManifest.ts index 716642a60632..5ec334bdadbe 100644 --- a/sdk/containerregistry/container-registry/samples-dev/uploadCustomManifest.ts +++ b/sdk/containerregistry/container-registry/samples-dev/uploadCustomManifest.ts @@ -19,7 +19,7 @@ async function main() { const client = new ContainerRegistryContentClient( endpoint, repository, - new DefaultAzureCredential() + new DefaultAzureCredential(), ); const mediaType = "application/vnd.docker.distribution.manifest.list.v2+json"; diff --git a/sdk/containerregistry/container-registry/samples-dev/uploadImage.ts b/sdk/containerregistry/container-registry/samples-dev/uploadImage.ts index a9c70afea9c9..bba73071d2b3 100644 --- a/sdk/containerregistry/container-registry/samples-dev/uploadImage.ts +++ b/sdk/containerregistry/container-registry/samples-dev/uploadImage.ts @@ -19,7 +19,7 @@ async function main() { const client = new ContainerRegistryContentClient( endpoint, repository, - new DefaultAzureCredential() + new DefaultAzureCredential(), ); const config = Buffer.from("Sample config"); diff --git a/sdk/containerregistry/container-registry/samples-dev/uploadManifest.ts b/sdk/containerregistry/container-registry/samples-dev/uploadManifest.ts index fc935982a070..5c064f37adbf 100644 --- a/sdk/containerregistry/container-registry/samples-dev/uploadManifest.ts +++ b/sdk/containerregistry/container-registry/samples-dev/uploadManifest.ts @@ -19,7 +19,7 @@ async function main() { const client = new ContainerRegistryContentClient( endpoint, repository, - new DefaultAzureCredential() + new DefaultAzureCredential(), ); const layer = Buffer.from("Hello, world"); @@ -33,7 +33,7 @@ async function main() { type: "layers", diff_ids: [layerDigest], }, - }) + }), ); const { digest: configDigest, sizeInBytes: configSize } = await client.uploadBlob(config); diff --git a/sdk/containerregistry/container-registry/src/containerRegistryChallengeHandler.ts b/sdk/containerregistry/container-registry/src/containerRegistryChallengeHandler.ts index 95cbea3e3f7c..676d0fd61113 100644 --- a/sdk/containerregistry/container-registry/src/containerRegistryChallengeHandler.ts +++ b/sdk/containerregistry/container-registry/src/containerRegistryChallengeHandler.ts @@ -40,7 +40,7 @@ export class ChallengeHandler implements ChallengeCallbacks { constructor( private credential: ContainerRegistryRefreshTokenCredential, - private options: GetTokenOptions = {} + private options: GetTokenOptions = {}, ) { this.cycler = createTokenCycler(credential, { refreshWindowInMs: fiveMinutesInMs, @@ -96,7 +96,7 @@ export class ChallengeHandler implements ChallengeCallbacks { service, scope, grantType, - this.options + this.options, ); // Step 5 - Authorize Request. At this point we're done with AAD and using an ACR access token. diff --git a/sdk/containerregistry/container-registry/src/containerRegistryClient.ts b/sdk/containerregistry/container-registry/src/containerRegistryClient.ts index 1efd36c92cf9..123e5398c7c7 100644 --- a/sdk/containerregistry/container-registry/src/containerRegistryClient.ts +++ b/sdk/containerregistry/container-registry/src/containerRegistryClient.ts @@ -81,7 +81,7 @@ export class ContainerRegistryClient { constructor( endpoint: string, credential: TokenCredential, - options?: ContainerRegistryClientOptions + options?: ContainerRegistryClientOptions, ); /** @@ -106,7 +106,7 @@ export class ContainerRegistryClient { constructor( endpoint: string, credentialOrOptions?: TokenCredential | ContainerRegistryClientOptions, - clientOptions: ContainerRegistryClientOptions = {} + clientOptions: ContainerRegistryClientOptions = {}, ) { if (!endpoint) { throw new Error("invalid endpoint"); @@ -142,9 +142,9 @@ export class ContainerRegistryClient { credential, scopes: [defaultScope], challengeCallbacks: new ChallengeHandler( - new ContainerRegistryRefreshTokenCredential(authClient, defaultScope, credential) + new ContainerRegistryRefreshTokenCredential(authClient, defaultScope, credential), ), - }) + }), ); } @@ -156,7 +156,7 @@ export class ContainerRegistryClient { */ public async deleteRepository( repositoryName: string, - options: DeleteRepositoryOptions = {} + options: DeleteRepositoryOptions = {}, ): Promise { if (!repositoryName) { throw new Error("invalid repositoryName"); @@ -167,7 +167,7 @@ export class ContainerRegistryClient { options, async (updatedOptions) => { await this.client.containerRegistry.deleteRepository(repositoryName, updatedOptions); - } + }, ); } @@ -186,7 +186,7 @@ export class ContainerRegistryClient { } return new ContainerRepositoryImpl(this.endpoint, repositoryName, this.client).getArtifact( - tagOrDigest + tagOrDigest, ); } @@ -244,7 +244,7 @@ export class ContainerRegistryClient { * @param options - */ public listRepositoryNames( - options: ListRepositoriesOptions = {} + options: ListRepositoriesOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listRepositoryItems(options); @@ -260,7 +260,7 @@ export class ContainerRegistryClient { } private async *listRepositoryItems( - options: ListRepositoriesOptions = {} + options: ListRepositoriesOptions = {}, ): AsyncIterableIterator { for await (const page of this.listRepositoriesPage({}, options)) { yield* page; @@ -269,7 +269,7 @@ export class ContainerRegistryClient { private async *listRepositoriesPage( continuationState: PageSettings, - options: ListRepositoriesOptions = {} + options: ListRepositoriesOptions = {}, ): AsyncIterableIterator { if (!continuationState.continuationToken) { const optionsComplete = { @@ -289,7 +289,7 @@ export class ContainerRegistryClient { while (continuationState.continuationToken) { const currentPage = await this.client.containerRegistry.getRepositoriesNext( continuationState.continuationToken, - options + options, ); continuationState.continuationToken = extractNextLink(currentPage.link); if (currentPage.repositories) { diff --git a/sdk/containerregistry/container-registry/src/containerRegistryTokenCredential.ts b/sdk/containerregistry/container-registry/src/containerRegistryTokenCredential.ts index 1c5fbf712167..4477bdc37ac6 100644 --- a/sdk/containerregistry/container-registry/src/containerRegistryTokenCredential.ts +++ b/sdk/containerregistry/container-registry/src/containerRegistryTokenCredential.ts @@ -15,7 +15,7 @@ export class ContainerRegistryRefreshTokenCredential implements TokenCredential constructor( authClient: GeneratedClient, private authenticationScope: string, - private credential?: TokenCredential + private credential?: TokenCredential, ) { this.tokenService = new ContainerRegistryTokenService(authClient); this.isAnonymousAccess = !this.credential; @@ -23,7 +23,7 @@ export class ContainerRegistryRefreshTokenCredential implements TokenCredential async getToken( _scopes: string | string[], - options: ContainerRegistryGetTokenOptions + options: ContainerRegistryGetTokenOptions, ): Promise { if (!this.credential) { return null; @@ -37,7 +37,7 @@ export class ContainerRegistryRefreshTokenCredential implements TokenCredential return this.tokenService.ExchangeAadAccessTokenForAcrRefreshTokenAsync( aadToken.token, options.service, - options + options, ); } } @@ -48,7 +48,7 @@ export class ContainerRegistryTokenService { async ExchangeAadAccessTokenForAcrRefreshTokenAsync( aadAccessToken: string, service: string, - options: GetTokenOptions + options: GetTokenOptions, ): Promise { const acrRefreshToken = await this.authClient.authentication.exchangeAadAccessTokenForAcrRefreshToken( @@ -57,7 +57,7 @@ export class ContainerRegistryTokenService { { ...options, accessToken: aadAccessToken, - } + }, ); if (!acrRefreshToken.refreshToken) { throw new Error("Failed to exchange AAD access token for an ACR refresh token."); @@ -90,7 +90,7 @@ export class ContainerRegistryTokenService { service: string, scope: string, grantType: "refresh_token" | "password", - options: GetTokenOptions + options: GetTokenOptions, ): Promise { const acrAccessToken = await this.authClient.authentication.exchangeAcrRefreshTokenForAcrAccessToken( @@ -98,7 +98,7 @@ export class ContainerRegistryTokenService { scope, acrRefreshToken, grantType, - options + options, ); if (!acrAccessToken.accessToken) { diff --git a/sdk/containerregistry/container-registry/src/containerRepository.ts b/sdk/containerregistry/container-registry/src/containerRepository.ts index a0d98a2e6987..df2a684a979b 100644 --- a/sdk/containerregistry/container-registry/src/containerRepository.ts +++ b/sdk/containerregistry/container-registry/src/containerRepository.ts @@ -98,7 +98,7 @@ export interface ContainerRepository { * @param options - */ updateProperties( - options: UpdateRepositoryPropertiesOptions + options: UpdateRepositoryPropertiesOptions, ): Promise; /** * Returns an async iterable iterator to list manifest properties. @@ -145,7 +145,7 @@ export interface ContainerRepository { * @param options - */ listManifestProperties( - options?: ListManifestPropertiesOptions + options?: ListManifestPropertiesOptions, ): PagedAsyncIterableIterator; } @@ -188,7 +188,7 @@ export class ContainerRepositoryImpl { options, async (updatedOptions) => { await this.client.containerRegistry.deleteRepository(this.name, updatedOptions); - } + }, ); } @@ -208,14 +208,14 @@ export class ContainerRepositoryImpl { * @param options - */ public async getProperties( - options: GetRepositoryPropertiesOptions = {} + options: GetRepositoryPropertiesOptions = {}, ): Promise { return tracingClient.withSpan( "ContainerRepositoryImpl.getProperties", options, (updatedOptions) => { return this.client.containerRegistry.getProperties(this.name, updatedOptions); - } + }, ); } @@ -237,7 +237,7 @@ export class ContainerRepositoryImpl { * @param options - */ public async updateProperties( - options: UpdateRepositoryPropertiesOptions + options: UpdateRepositoryPropertiesOptions, ): Promise { const value: RepositoryWriteableProperties = { canDelete: options.canDelete, @@ -251,7 +251,7 @@ export class ContainerRepositoryImpl { { ...options, value }, (updatedOptions) => { return this.client.containerRegistry.updateProperties(this.name, updatedOptions); - } + }, ); } @@ -300,7 +300,7 @@ export class ContainerRepositoryImpl { * @param options - */ public listManifestProperties( - options: ListManifestPropertiesOptions = {} + options: ListManifestPropertiesOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listManifestsItems(options); @@ -316,7 +316,7 @@ export class ContainerRepositoryImpl { } private async *listManifestsItems( - options: ListManifestPropertiesOptions = {} + options: ListManifestPropertiesOptions = {}, ): AsyncIterableIterator { for await (const page of this.listManifestsPage({}, options)) { yield* page; @@ -325,7 +325,7 @@ export class ContainerRepositoryImpl { private async *listManifestsPage( continuationState: PageSettings, - options: ListManifestPropertiesOptions = {} + options: ListManifestPropertiesOptions = {}, ): AsyncIterableIterator { const orderby = toServiceManifestOrderBy(options.order); if (!continuationState.continuationToken) { @@ -336,12 +336,12 @@ export class ContainerRepositoryImpl { }; const currentPage = await this.client.containerRegistry.getManifests( this.name, - optionsComplete + optionsComplete, ); continuationState.continuationToken = extractNextLink(currentPage.link); if (currentPage.manifests) { const array = currentPage.manifests.map((t) => - toArtifactManifestProperties(t, this.name, currentPage.registryLoginServer!) + toArtifactManifestProperties(t, this.name, currentPage.registryLoginServer!), ); yield Object.defineProperty(array, "continuationToken", { value: continuationState.continuationToken, @@ -353,12 +353,12 @@ export class ContainerRepositoryImpl { const currentPage = await this.client.containerRegistry.getManifestsNext( this.name, continuationState.continuationToken, - options + options, ); continuationState.continuationToken = extractNextLink(currentPage.link); if (currentPage.manifests) { const array = currentPage.manifests.map((t) => - toArtifactManifestProperties(t, this.name, currentPage.registryLoginServer!) + toArtifactManifestProperties(t, this.name, currentPage.registryLoginServer!), ); yield Object.defineProperty(array, "continuationToken", { value: continuationState.continuationToken, diff --git a/sdk/containerregistry/container-registry/src/content/containerRegistryContentClient.ts b/sdk/containerregistry/container-registry/src/content/containerRegistryContentClient.ts index f376bee8e00b..9c2ce700b16a 100644 --- a/sdk/containerregistry/container-registry/src/content/containerRegistryContentClient.ts +++ b/sdk/containerregistry/container-registry/src/content/containerRegistryContentClient.ts @@ -52,7 +52,7 @@ function isReadableStream(body: any): body is NodeJS.ReadableStream { function assertHasProperty( obj: T, - property: U + property: U, ): asserts obj is T & Required> { if (!Object.prototype.hasOwnProperty.call(obj, property)) { throw new RestError(`Expected property ${String(property)} to be defined.`); @@ -125,7 +125,7 @@ export class ContainerRegistryContentClient { endpoint: string, repositoryName: string, credential: TokenCredential, - options: ContainerRegistryContentClientOptions = {} + options: ContainerRegistryContentClientOptions = {}, ) { if (!endpoint) { throw new Error("invalid endpoint"); @@ -160,9 +160,9 @@ export class ContainerRegistryContentClient { credential, scopes: [defaultScope], challengeCallbacks: new ChallengeHandler( - new ContainerRegistryRefreshTokenCredential(authClient, defaultScope, credential) + new ContainerRegistryRefreshTokenCredential(authClient, defaultScope, credential), ), - }) + }), ); } @@ -179,9 +179,9 @@ export class ContainerRegistryContentClient { await this.client.containerRegistryBlob.deleteBlob( this.repositoryName, digest, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -192,7 +192,7 @@ export class ContainerRegistryContentClient { */ public async setManifest( manifest: Buffer | NodeJS.ReadableStream | OciImageManifest | Record, - options: SetManifestOptions = {} + options: SetManifestOptions = {}, ): Promise { return tracingClient.withSpan( "ContainerRegistryContentClient.uploadManifest", @@ -219,13 +219,13 @@ export class ContainerRegistryContentClient { { contentType: options?.mediaType ?? KnownManifestMediaType.OciImageManifest, ...updatedOptions, - } + }, ); assertHasProperty(createManifestResult, "dockerContentDigest"); return { digest: createManifestResult.dockerContentDigest }; - } + }, ); } @@ -237,7 +237,7 @@ export class ContainerRegistryContentClient { */ public async getManifest( tagOrDigest: string, - options: GetManifestOptions = {} + options: GetManifestOptions = {}, ): Promise { return tracingClient.withSpan( "ContainerRegistryContentClient.downloadManifest", @@ -249,7 +249,7 @@ export class ContainerRegistryContentClient { { accept: ACCEPTED_MANIFEST_MEDIA_TYPES.join(", "), ...updatedOptions, - } + }, ); assertHasProperty(response, "mediaType"); @@ -262,13 +262,13 @@ export class ContainerRegistryContentClient { if (isDigest(tagOrDigest) && expectedDigest !== tagOrDigest) { throw new DigestMismatchError( - "Digest of downloaded manifest does not match the input digest" + "Digest of downloaded manifest does not match the input digest", ); } if (response.dockerContentDigest !== expectedDigest) { throw new DigestMismatchError( - "Computed digest of downloaded manifest does not match the value of the Docker-Content-Digest header" + "Computed digest of downloaded manifest does not match the value of the Docker-Content-Digest header", ); } @@ -278,7 +278,7 @@ export class ContainerRegistryContentClient { content, manifest: JSON.parse(content.toString("utf-8")), }; - } + }, ); } @@ -296,9 +296,9 @@ export class ContainerRegistryContentClient { await this.client.containerRegistry.deleteManifest( this.repositoryName, digest, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -309,7 +309,7 @@ export class ContainerRegistryContentClient { */ public async uploadBlob( blob: NodeJS.ReadableStream | Buffer, - options: UploadBlobOptions = {} + options: UploadBlobOptions = {}, ): Promise { return tracingClient.withSpan( "ContainerRegistryContentClient.uploadBlob", @@ -319,7 +319,7 @@ export class ContainerRegistryContentClient { const startUploadResult = await this.client.containerRegistryBlob.startUpload( this.repositoryName, - updatedOptions + updatedOptions, ); assertHasProperty(startUploadResult, "location"); @@ -335,7 +335,7 @@ export class ContainerRegistryContentClient { const result = await this.client.containerRegistryBlob.uploadChunk( location, chunk, - updatedOptions + updatedOptions, ); bytesUploaded += chunk.byteLength; @@ -352,12 +352,12 @@ export class ContainerRegistryContentClient { if (digest !== digestFromResponse) { throw new DigestMismatchError( - "Digest of blob to upload does not match the digest from the server." + "Digest of blob to upload does not match the digest from the server.", ); } return { digest, sizeInBytes: bytesUploaded }; - } + }, ); } @@ -370,7 +370,7 @@ export class ContainerRegistryContentClient { */ public async downloadBlob( digest: string, - options: DownloadBlobOptions = {} + options: DownloadBlobOptions = {}, ): Promise { return tracingClient.withSpan( "ContainerRegistryContentClient.downloadBlob", @@ -379,7 +379,7 @@ export class ContainerRegistryContentClient { const initialResponse = await this.client.containerRegistryBlob.getBlob( this.repositoryName, digest, - updatedOptions + updatedOptions, ); assertHasProperty(initialResponse, "readableStreamBody"); @@ -396,7 +396,7 @@ export class ContainerRegistryContentClient { this.repositoryName, digest, `${pos}-`, - updatedOptions + updatedOptions, ); assertHasProperty(retryResponse, "readableStreamBody"); @@ -412,14 +412,14 @@ export class ContainerRegistryContentClient { if (digest !== calculatedDigest) { throw new DigestMismatchError( - "Digest calculated from downloaded blob content does not match digest requested." + "Digest calculated from downloaded blob content does not match digest requested.", ); } }, - } + }, ), }; - } + }, ); } } diff --git a/sdk/containerregistry/container-registry/src/registryArtifact.ts b/sdk/containerregistry/container-registry/src/registryArtifact.ts index f4fc05237f54..7df71c4fe8fa 100644 --- a/sdk/containerregistry/container-registry/src/registryArtifact.ts +++ b/sdk/containerregistry/container-registry/src/registryArtifact.ts @@ -108,7 +108,7 @@ export interface RegistryArtifact { * @param options - */ getManifestProperties( - options?: GetManifestPropertiesOptions + options?: GetManifestPropertiesOptions, ): Promise; /** * Updates the properties of the artifact's manifest. @@ -128,7 +128,7 @@ export interface RegistryArtifact { * @param options - */ updateManifestProperties( - options: UpdateManifestPropertiesOptions + options: UpdateManifestPropertiesOptions, ): Promise; /** * Retrieves the properties of the specified tag. @@ -156,7 +156,7 @@ export interface RegistryArtifact { */ updateTagProperties( tag: string, - options: UpdateTagPropertiesOptions + options: UpdateTagPropertiesOptions, ): Promise; /** * Returns an async iterable iterator to list the tags that uniquely identify this artifact and the properties of each. @@ -202,7 +202,7 @@ export interface RegistryArtifact { * @param options - */ listTagProperties( - options?: ListTagPropertiesOptions + options?: ListTagPropertiesOptions, ): PagedAsyncIterableIterator; } @@ -239,7 +239,7 @@ export class RegistryArtifactImpl { registryEndpoint: string, repositoryName: string, private tagOrDigest: string, - client: GeneratedClient + client: GeneratedClient, ) { this.registryEndpoint = registryEndpoint; this.repositoryName = repositoryName; @@ -284,9 +284,9 @@ export class RegistryArtifactImpl { await this.client.containerRegistry.deleteManifest( this.repositoryName, await this.getDigest(), - updatedOptions + updatedOptions, ); - } + }, ); } @@ -305,7 +305,7 @@ export class RegistryArtifactImpl { options, async (updatedOptions) => { await this.client.containerRegistry.deleteTag(this.repositoryName, tag, updatedOptions); - } + }, ); } @@ -314,7 +314,7 @@ export class RegistryArtifactImpl { * @param options - */ public async getManifestProperties( - options: GetManifestPropertiesOptions = {} + options: GetManifestPropertiesOptions = {}, ): Promise { return tracingClient.withSpan( "RegistryArtifactImpl.getManifestProperties", @@ -323,14 +323,14 @@ export class RegistryArtifactImpl { const result = await this.client.containerRegistry.getManifestProperties( this.repositoryName, await this.getDigest(), - updatedOptions + updatedOptions, ); return toArtifactManifestProperties( result, this.repositoryName, - result.registryLoginServer! + result.registryLoginServer!, ); - } + }, ); } @@ -352,7 +352,7 @@ export class RegistryArtifactImpl { * @param options - */ public async updateManifestProperties( - options: UpdateManifestPropertiesOptions + options: UpdateManifestPropertiesOptions, ): Promise { return tracingClient.withSpan( "RegistryArtifactImpl.updateManifestProperties", @@ -369,14 +369,14 @@ export class RegistryArtifactImpl { const result = await this.client.containerRegistry.updateManifestProperties( this.repositoryName, await this.getDigest(), - updatedOptions + updatedOptions, ); return toArtifactManifestProperties( result, this.repositoryName, - result.registryLoginServer! + result.registryLoginServer!, ); - } + }, ); } @@ -387,7 +387,7 @@ export class RegistryArtifactImpl { */ public async getTagProperties( tag: string, - options: GetTagPropertiesOptions = {} + options: GetTagPropertiesOptions = {}, ): Promise { if (!tag) { throw new Error("invalid tag"); @@ -400,9 +400,9 @@ export class RegistryArtifactImpl { return this.client.containerRegistry.getTagProperties( this.repositoryName, tag, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -426,7 +426,7 @@ export class RegistryArtifactImpl { */ public async updateTagProperties( tag: string, - options: UpdateTagPropertiesOptions + options: UpdateTagPropertiesOptions, ): Promise { if (!tag) { throw new Error("invalid tag"); @@ -447,9 +447,9 @@ export class RegistryArtifactImpl { return this.client.containerRegistry.updateTagAttributes( this.repositoryName, tag, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -497,7 +497,7 @@ export class RegistryArtifactImpl { * @param options - */ public listTagProperties( - options: ListTagPropertiesOptions = {} + options: ListTagPropertiesOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listTagsItems(options); @@ -513,7 +513,7 @@ export class RegistryArtifactImpl { } private async *listTagsItems( - options: ListTagPropertiesOptions = {} + options: ListTagPropertiesOptions = {}, ): AsyncIterableIterator { for await (const page of this.listTagsPage({}, options)) { yield* page; @@ -522,7 +522,7 @@ export class RegistryArtifactImpl { private async *listTagsPage( continuationState: PageSettings, - options: ListTagPropertiesOptions = {} + options: ListTagPropertiesOptions = {}, ): AsyncIterableIterator { const orderby = toServiceTagOrderBy(options.order); if (!continuationState.continuationToken) { @@ -533,7 +533,7 @@ export class RegistryArtifactImpl { }; const currentPage = await this.client.containerRegistry.getTags( this.repositoryName, - optionsComplete + optionsComplete, ); continuationState.continuationToken = extractNextLink(currentPage.link); if (currentPage.tagAttributeBases) { @@ -554,7 +554,7 @@ export class RegistryArtifactImpl { const currentPage = await this.client.containerRegistry.getTagsNext( this.repositoryName, continuationState.continuationToken, - options + options, ); continuationState.continuationToken = extractNextLink(currentPage.link); if (currentPage.tagAttributeBases) { diff --git a/sdk/containerregistry/container-registry/src/transformations.ts b/sdk/containerregistry/container-registry/src/transformations.ts index ae3dac116fd8..b04dcbe2e97b 100644 --- a/sdk/containerregistry/container-registry/src/transformations.ts +++ b/sdk/containerregistry/container-registry/src/transformations.ts @@ -22,7 +22,7 @@ interface ManifestWriteableProperties { } export function toManifestWritableProperties( - from?: ServiceManifestWritableProperties + from?: ServiceManifestWritableProperties, ): ManifestWriteableProperties | undefined { // don't return unwanted properties, namely `quarantineState` and `quarantineDetails` return from @@ -38,7 +38,7 @@ export function toManifestWritableProperties( export function toArtifactManifestProperties( from: ServiceArtifactManifestProperties, repositoryName: string, - registryLoginServer: string + registryLoginServer: string, ): ArtifactManifestProperties { return { registryLoginServer, @@ -59,16 +59,16 @@ export function toServiceTagOrderBy(orderBy?: ArtifactTagOrder): ServiceTagOrder return orderBy === "LastUpdatedOnAscending" ? "timeasc" : orderBy === "LastUpdatedOnDescending" - ? "timedesc" - : undefined; + ? "timedesc" + : undefined; } export function toServiceManifestOrderBy( - orderBy?: ArtifactManifestOrder + orderBy?: ArtifactManifestOrder, ): ServiceManifestOrderBy | undefined { return orderBy === "LastUpdatedOnAscending" ? "timeasc" : orderBy === "LastUpdatedOnDescending" - ? "timedesc" - : undefined; + ? "timedesc" + : undefined; } diff --git a/sdk/containerregistry/container-registry/src/utils/helpers.ts b/sdk/containerregistry/container-registry/src/utils/helpers.ts index bd5ba0026207..5846838866c3 100644 --- a/sdk/containerregistry/container-registry/src/utils/helpers.ts +++ b/sdk/containerregistry/container-registry/src/utils/helpers.ts @@ -22,7 +22,7 @@ export function isDigest(tagOrDigest: string): boolean { export async function readStreamToEnd( stream: NodeJS.ReadableStream, - maxLength?: number + maxLength?: number, ): Promise { const buffers: Buffer[] = []; let bytesRead = 0; @@ -43,7 +43,7 @@ export async function readStreamToEnd( export async function* readChunksFromStream( stream: NodeJS.ReadableStream, - chunkSize: number + chunkSize: number, ): AsyncGenerator { let chunk = Buffer.alloc(chunkSize); let chunkCursor = 0; diff --git a/sdk/containerregistry/container-registry/src/utils/retriableReadableStream.ts b/sdk/containerregistry/container-registry/src/utils/retriableReadableStream.ts index bfed14e2d406..b97b0e84d608 100644 --- a/sdk/containerregistry/container-registry/src/utils/retriableReadableStream.ts +++ b/sdk/containerregistry/container-registry/src/utils/retriableReadableStream.ts @@ -75,7 +75,7 @@ export class RetriableReadableStream extends Readable { private getter: ReadableStreamGetter, private offset: number, count: number, - options: RetriableReadableStreamOptions = {} + options: RetriableReadableStreamOptions = {}, ) { super({ highWaterMark: options.highWaterMark }); this.getter = getter; @@ -126,8 +126,8 @@ export class RetriableReadableStream extends Readable { new Error( `Data corruption failure: Received more data than original request, data needed offset is ${ this.end - }, received offset: ${this.offset - 1}` - ) + }, received offset: ${this.offset - 1}`, + ), ); } @@ -173,8 +173,8 @@ export class RetriableReadableStream extends Readable { this.offset - 1 }, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${ this.maxRetryRequests - }` - ) + }`, + ), ); } } else { @@ -182,8 +182,8 @@ export class RetriableReadableStream extends Readable { new Error( `Data corruption failure: Received more data than original request, data needed offset is ${ this.end - }, received offset: ${this.offset - 1}` - ) + }, received offset: ${this.offset - 1}`, + ), ); } }; diff --git a/sdk/containerregistry/container-registry/src/utils/tokenCycler.ts b/sdk/containerregistry/container-registry/src/utils/tokenCycler.ts index 7014c40adf03..fb03c7e5d922 100644 --- a/sdk/containerregistry/container-registry/src/utils/tokenCycler.ts +++ b/sdk/containerregistry/container-registry/src/utils/tokenCycler.ts @@ -14,7 +14,7 @@ function delay(t: number, value?: T): Promise { */ export type AccessTokenGetter = ( scopes: string | string[], - options: T + options: T, ) => Promise; /** @@ -66,7 +66,7 @@ export const DEFAULT_CYCLER_OPTIONS: TokenCyclerOptions = { async function beginRefresh( getAccessToken: () => Promise, retryIntervalInMs: number, - refreshTimeout: number + refreshTimeout: number, ): Promise { // This wrapper handles exceptions gracefully as long as we haven't exceeded // the timeout. @@ -116,7 +116,7 @@ async function beginRefresh( */ export function createTokenCycler( credential: TokenCredential, - tokenCyclerOptions?: Partial + tokenCyclerOptions?: Partial, ): AccessTokenRefresher { let refreshWorker: Promise | null = null; let token: AccessToken | null = null; @@ -174,7 +174,7 @@ export function createTokenCycler( tryGetAccessToken, options.retryIntervalInMs, // If we don't have a token, then we should timeout immediately - token?.expiresOnTimestamp ?? Date.now() + token?.expiresOnTimestamp ?? Date.now(), ) .then((_token) => { refreshWorker = null; diff --git a/sdk/containerregistry/container-registry/test/public/anonymousAccess.spec.ts b/sdk/containerregistry/container-registry/test/public/anonymousAccess.spec.ts index 153d5818d417..a1ae1e16df8b 100644 --- a/sdk/containerregistry/container-registry/test/public/anonymousAccess.spec.ts +++ b/sdk/containerregistry/container-registry/test/public/anonymousAccess.spec.ts @@ -37,7 +37,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { recorder, { anonymous: true, - } + }, ); }); @@ -54,7 +54,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { } assert.isTrue( results.indexOf(repositoryName) !== -1, - `Expecting '${repositoryName}' in the list` + `Expecting '${repositoryName}' in the list`, ); }); diff --git a/sdk/containerregistry/container-registry/test/public/containerRegistryClient.spec.ts b/sdk/containerregistry/container-registry/test/public/containerRegistryClient.spec.ts index 3b47c3a5a354..f1cbaa37f762 100644 --- a/sdk/containerregistry/container-registry/test/public/containerRegistryClient.spec.ts +++ b/sdk/containerregistry/container-registry/test/public/containerRegistryClient.spec.ts @@ -34,7 +34,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions): void => { client = createRegistryClient( assertEnvironmentVariable("CONTAINER_REGISTRY_ENDPOINT"), serviceVersion, - recorder + recorder, ); }); diff --git a/sdk/containerregistry/container-registry/test/public/containerRegistryContentClient.spec.ts b/sdk/containerregistry/container-registry/test/public/containerRegistryContentClient.spec.ts index 404f1b55263d..562c430286fc 100644 --- a/sdk/containerregistry/container-registry/test/public/containerRegistryContentClient.spec.ts +++ b/sdk/containerregistry/container-registry/test/public/containerRegistryContentClient.spec.ts @@ -44,14 +44,14 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions): void => { assertEnvironmentVariable("CONTAINER_REGISTRY_ENDPOINT"), "oci-artifact", serviceVersion, - recorder + recorder, ); helloWorldClient = createBlobClient( assertEnvironmentVariable("CONTAINER_REGISTRY_ENDPOINT"), "library/hello-world", serviceVersion, - recorder + recorder, ); }); @@ -81,7 +81,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions): void => { async function uploadOciManifestPrerequisites() { const layer = fs.createReadStream( - "test/data/oci-artifact/654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed" + "test/data/oci-artifact/654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", ); await ociArtifactClient.uploadBlob(layer); const config = fs.createReadStream("test/data/oci-artifact/config.json"); @@ -90,7 +90,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions): void => { async function uploadDockerManifestPrerequisites() { const layer = fs.createReadStream( - "test/data/docker/ec0488e025553d34358768c43e24b1954e0056ec4700883252c74f3eec273016" + "test/data/docker/ec0488e025553d34358768c43e24b1954e0056ec4700883252c74f3eec273016", ); await helloWorldClient.uploadBlob(layer); const config = fs.createReadStream("test/data/docker/config.json"); @@ -137,7 +137,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions): void => { await uploadOciManifestPrerequisites(); const manifestBuffer = await readStreamToEnd( - fs.createReadStream("test/data/oci-artifact/manifest.json") + fs.createReadStream("test/data/oci-artifact/manifest.json"), ); const uploadResult = await ociArtifactClient.setManifest(manifestBuffer); const downloadResult = await ociArtifactClient.getManifest(uploadResult.digest); @@ -177,7 +177,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions): void => { const configStream = fs.createReadStream("test/data/docker/config.json"); await helloWorldClient.uploadBlob(configStream); const blobStream = fs.createReadStream( - "test/data/docker/ec0488e025553d34358768c43e24b1954e0056ec4700883252c74f3eec273016" + "test/data/docker/ec0488e025553d34358768c43e24b1954e0056ec4700883252c74f3eec273016", ); await helloWorldClient.uploadBlob(blobStream); @@ -209,11 +209,11 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions): void => { it("can upload blob", async () => { const blob = fs.createReadStream( - "test/data/oci-artifact/654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed" + "test/data/oci-artifact/654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", ); const { digest, sizeInBytes } = await ociArtifactClient.uploadBlob(blob); const downloadResult = await ociArtifactClient.downloadBlob( - "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed" + "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", ); assert.equal(digest, downloadResult.digest); assert.equal(sizeInBytes, 28); diff --git a/sdk/containerregistry/container-registry/test/public/repositoryAndArtifact.spec.ts b/sdk/containerregistry/container-registry/test/public/repositoryAndArtifact.spec.ts index 792a24138c85..bafe2c08b505 100644 --- a/sdk/containerregistry/container-registry/test/public/repositoryAndArtifact.spec.ts +++ b/sdk/containerregistry/container-registry/test/public/repositoryAndArtifact.spec.ts @@ -31,7 +31,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { registryClient = createRegistryClient( assertEnvironmentVariable("CONTAINER_REGISTRY_ENDPOINT"), serviceVersion, - recorder + recorder, ); repository = registryClient.getRepository(repositoryName); }); @@ -99,7 +99,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { it("sets manifest properties", async () => { const artifact = repository.getArtifact(artifactDigest); assert.isTrue( - artifact.fullyQualifiedReference.endsWith(`${repositoryName}@${artifactDigest}`) + artifact.fullyQualifiedReference.endsWith(`${repositoryName}@${artifactDigest}`), ); const original = await artifact.getManifestProperties(); diff --git a/sdk/containerregistry/container-registry/test/utils/utils.ts b/sdk/containerregistry/container-registry/test/utils/utils.ts index 97e97f989693..f681a8f05f42 100644 --- a/sdk/containerregistry/container-registry/test/utils/utils.ts +++ b/sdk/containerregistry/container-registry/test/utils/utils.ts @@ -93,7 +93,7 @@ export function createRegistryClient( endpoint: string, serviceVersion: string, recorder: Recorder, - options: { anonymous: boolean } = { anonymous: false } + options: { anonymous: boolean } = { anonymous: false }, ): ContainerRegistryClient { const authorityHost = getAuthority(endpoint); const audience = getAudience(authorityHost); @@ -115,13 +115,13 @@ export function createRegistryClient( tenantId: env.CONTAINERREGISTRY_TENANT_ID, clientId: env.CONTAINERREGISTRY_CLIENT_ID, clientSecret: env.CONTAINERREGISTRY_CLIENT_SECRET, - } + }, ); return new ContainerRegistryClient( endpoint, credential, - recorder.configureClientOptions(clientOptions) + recorder.configureClientOptions(clientOptions), ); } @@ -129,7 +129,7 @@ export function createBlobClient( endpoint: string, repositoryName: string, serviceVersion: string, - recorder: Recorder + recorder: Recorder, ): ContainerRegistryContentClient { const authorityHost = getAuthority(endpoint); const audience = getAudience(authorityHost); @@ -145,14 +145,14 @@ export function createBlobClient( tenantId: env.CONTAINERREGISTRY_TENANT_ID, clientId: env.CONTAINERREGISTRY_CLIENT_ID, clientSecret: env.CONTAINERREGISTRY_CLIENT_SECRET, - } + }, ); return new ContainerRegistryContentClient( endpoint, repositoryName, credential, - recorder.configureClientOptions(clientOptions) + recorder.configureClientOptions(clientOptions), ); } diff --git a/sdk/containerregistry/perf-tests/container-registry/package.json b/sdk/containerregistry/perf-tests/container-registry/package.json index 9dfa799903c6..b0623cb19e5a 100644 --- a/sdk/containerregistry/perf-tests/container-registry/package.json +++ b/sdk/containerregistry/perf-tests/container-registry/package.json @@ -14,11 +14,11 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -27,9 +27,9 @@ "build": "tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm test-dist types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/containerservice/arm-containerservice-rest/package.json b/sdk/containerservice/arm-containerservice-rest/package.json index fe20e6195259..0560760b47b7 100644 --- a/sdk/containerservice/arm-containerservice-rest/package.json +++ b/sdk/containerservice/arm-containerservice-rest/package.json @@ -47,11 +47,11 @@ "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -85,7 +85,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^1.0.4", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersCreateOrUpdateSample.ts index c6fa5495a200..a789923e32f0 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersCreateOrUpdateSample.ts @@ -76,7 +76,7 @@ async function associateManagedClusterWithCapacityReservationGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -135,7 +135,7 @@ async function createManagedClusterUsingAManagedClusterSnapshot() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -210,7 +210,7 @@ async function createManagedClusterUsingAnAgentPoolSnapshot() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -279,7 +279,7 @@ async function createManagedClusterWithAksManagedNatGatewayAsOutboundType() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -349,7 +349,7 @@ async function createManagedClusterWithCustomCaTrustEnabled() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -420,7 +420,7 @@ async function createManagedClusterWithDedicatedHostGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -490,7 +490,7 @@ async function createManagedClusterWithEncryptionAtHostEnabled() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -561,7 +561,7 @@ async function createManagedClusterWithFipsEnabledOS() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -637,7 +637,7 @@ async function createManagedClusterWithGpumig() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -713,7 +713,7 @@ async function createManagedClusterWithHttpProxyConfigured() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -785,7 +785,7 @@ async function createManagedClusterWithNodePublicIPPrefix() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -862,7 +862,7 @@ async function createManagedClusterWithOssku() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -933,7 +933,7 @@ async function createManagedClusterWithPpg() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -1004,7 +1004,7 @@ async function createManagedClusterWithPodIdentityEnabled() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -1074,7 +1074,7 @@ async function createManagedClusterWithRunCommandDisabled() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -1139,7 +1139,7 @@ async function createManagedClusterWithSecurityProfileConfigured() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -1210,7 +1210,7 @@ async function createManagedClusterWithUltraSsdEnabled() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -1277,7 +1277,7 @@ async function createManagedClusterWithWebAppRoutingIngressProfileConfigured() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -1346,7 +1346,7 @@ async function createManagedClusterWithUserAssignedNatGatewayAsOutboundType() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -1419,7 +1419,7 @@ async function createManagedPrivateClusterWithPublicFqdnSpecified() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -1493,7 +1493,7 @@ async function createManagedPrivateClusterWithFqdnSubdomainSpecified() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -1564,7 +1564,7 @@ async function createOrUpdateAadManagedClusterWithEnableAzureRbac() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -1650,7 +1650,7 @@ async function createOrUpdateManagedCluster() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -1730,7 +1730,7 @@ async function createOrUpdateManagedClusterWithEnableAhub() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -1802,7 +1802,7 @@ async function createOrUpdateManagedClusterWithEnableNamespaceResources() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -1880,7 +1880,7 @@ async function createOrUpdateManagedClusterWithWindowsGMsaEnabled() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); @@ -1967,7 +1967,7 @@ async function createOrUpdateManagedClusterWithDualStackNetworking() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put(parameters); const poller = getLongRunningPoller(client, initalResponse); diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersDeleteSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersDeleteSample.ts index e852d52f88a0..d606fb6c9cb2 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteManagedCluster() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .delete(); console.log(result); diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetAccessProfileSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetAccessProfileSample.ts index 65220e225fb6..8543904a96a1 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetAccessProfileSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetAccessProfileSample.ts @@ -30,7 +30,7 @@ async function getManagedCluster() { subscriptionId, resourceGroupName, resourceName, - roleName + roleName, ) .post(); console.log(result); diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetCommandResultSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetCommandResultSample.ts index 9a9ecbbb5411..15dda9e078ea 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetCommandResultSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetCommandResultSample.ts @@ -30,7 +30,7 @@ async function commandFailedResult() { subscriptionId, resourceGroupName, resourceName, - commandId + commandId, ) .get(); console.log(result); @@ -57,7 +57,7 @@ async function commandSucceedResult() { subscriptionId, resourceGroupName, resourceName, - commandId + commandId, ) .get(); console.log(result); diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetOSOptionsSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetOSOptionsSample.ts index ef89073eb8d5..db0e498f5325 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetOSOptionsSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetOSOptionsSample.ts @@ -25,7 +25,7 @@ async function getContainerServiceOSOptions() { const result = await client.path( "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/osOptions/default", subscriptionId, - location + location, ); console.log(result); } diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetSample.ts index 2911c2087756..e8310b8e7f1e 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetSample.ts @@ -27,7 +27,7 @@ async function getManagedCluster() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetUpgradeProfileSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetUpgradeProfileSample.ts index 1215dbed2f56..3dd13659dc01 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetUpgradeProfileSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersGetUpgradeProfileSample.ts @@ -27,7 +27,7 @@ async function getUpgradeProfileForManagedCluster() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default", subscriptionId, resourceGroupName, - resourceName + resourceName, ); console.log(result); } diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListByResourceGroupSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListByResourceGroupSample.ts index 27310b553357..eef1fc081141 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListByResourceGroupSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListByResourceGroupSample.ts @@ -26,7 +26,7 @@ async function getManagedClustersByResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(); const result = paginate(client, initialResponse); diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListClusterAdminCredentialsSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListClusterAdminCredentialsSample.ts index f8d3a8c20c9d..3baec6f5310e 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListClusterAdminCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListClusterAdminCredentialsSample.ts @@ -28,7 +28,7 @@ async function getManagedCluster() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .post(); console.log(result); diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListClusterMonitoringUserCredentialsSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListClusterMonitoringUserCredentialsSample.ts index 28607d00909f..c4e0d0abaf62 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListClusterMonitoringUserCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListClusterMonitoringUserCredentialsSample.ts @@ -28,7 +28,7 @@ async function getManagedCluster() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterMonitoringUserCredential", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .post(); console.log(result); diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListClusterUserCredentialsSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListClusterUserCredentialsSample.ts index 5483c2d1422c..17871d5e64b3 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListClusterUserCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListClusterUserCredentialsSample.ts @@ -28,7 +28,7 @@ async function getManagedCluster() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterUserCredential", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .post(); console.log(result); diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts index fcc9ceded55d..145c4d55513b 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts @@ -28,7 +28,7 @@ async function listOutboundNetworkDependenciesEndpointsByManagedCluster() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/outboundNetworkDependenciesEndpoints", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .get(); const result = paginate(client, initialResponse); diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListSample.ts index 49a2a91b33bd..a412d2e158b4 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersListSample.ts @@ -24,7 +24,7 @@ async function listManagedClusters() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters", - subscriptionId + subscriptionId, ) .get(); const result = paginate(client, initialResponse); diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersResetAadProfileSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersResetAadProfileSample.ts index c700b2a1c1ac..d2f185a8e1f0 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersResetAadProfileSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersResetAadProfileSample.ts @@ -40,7 +40,7 @@ async function resetAadProfile() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .post(parameters); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersResetServicePrincipalProfileSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersResetServicePrincipalProfileSample.ts index e691b043b163..47503daa34ca 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersResetServicePrincipalProfileSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersResetServicePrincipalProfileSample.ts @@ -37,7 +37,7 @@ async function resetServicePrincipalProfile() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .post(parameters); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersRotateClusterCertificatesSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersRotateClusterCertificatesSample.ts index 4c919166149c..5462e1152136 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersRotateClusterCertificatesSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersRotateClusterCertificatesSample.ts @@ -30,7 +30,7 @@ async function rotateClusterCertificates() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .post(); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.ts index da72f21f64b3..dd0611c06f06 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.ts @@ -30,7 +30,7 @@ async function rotateClusterServiceAccountSigningKeys() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateServiceAccountSigningKeys", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .post(); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersRunCommandSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersRunCommandSample.ts index b1f5f02ed13d..3d8b0f9527e5 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersRunCommandSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersRunCommandSample.ts @@ -38,7 +38,7 @@ async function submitNewCommand() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/runCommand", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .post(requestPayload); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersStartSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersStartSample.ts index 5aa91e71fe91..583db6b877ce 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersStartSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersStartSample.ts @@ -30,7 +30,7 @@ async function startManagedCluster() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/start", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .post(); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersStopSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersStopSample.ts index 06627cea9649..ff3db540a929 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersStopSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersStopSample.ts @@ -30,7 +30,7 @@ async function stopManagedCluster() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .post(); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersUpdateTagsSample.ts b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersUpdateTagsSample.ts index 9d194b5c5f17..1c9500e5a253 100644 --- a/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersUpdateTagsSample.ts +++ b/sdk/containerservice/arm-containerservice-rest/samples-dev/managedClustersUpdateTagsSample.ts @@ -36,7 +36,7 @@ async function updateManagedClusterTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .patch(parameters); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/containerservice/arm-containerservice-rest/src/clientDefinitions.ts b/sdk/containerservice/arm-containerservice-rest/src/clientDefinitions.ts index 4da38fde4fd0..7a2ae1beb4c5 100644 --- a/sdk/containerservice/arm-containerservice-rest/src/clientDefinitions.ts +++ b/sdk/containerservice/arm-containerservice-rest/src/clientDefinitions.ts @@ -197,14 +197,14 @@ import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface OperationsList { /** Gets a list of operations. */ get( - options?: OperationsListParameters + options?: OperationsListParameters, ): StreamableMethod; } export interface ManagedClustersGetOSOptions { /** Gets supported OS options in the specified subscription. */ get( - options?: ManagedClustersGetOSOptionsParameters + options?: ManagedClustersGetOSOptionsParameters, ): StreamableMethod< ManagedClustersGetOSOptions200Response | ManagedClustersGetOSOptionsdefaultResponse >; @@ -213,14 +213,14 @@ export interface ManagedClustersGetOSOptions { export interface ManagedClustersList { /** Gets a list of managed clusters in the specified subscription. */ get( - options?: ManagedClustersListParameters + options?: ManagedClustersListParameters, ): StreamableMethod; } export interface ManagedClustersListByResourceGroup { /** Lists managed clusters in the specified subscription and resource group. */ get( - options?: ManagedClustersListByResourceGroupParameters + options?: ManagedClustersListByResourceGroupParameters, ): StreamableMethod< | ManagedClustersListByResourceGroup200Response | ManagedClustersListByResourceGroupdefaultResponse @@ -230,7 +230,7 @@ export interface ManagedClustersListByResourceGroup { export interface ManagedClustersGetUpgradeProfile { /** Gets the upgrade profile of a managed cluster. */ get( - options?: ManagedClustersGetUpgradeProfileParameters + options?: ManagedClustersGetUpgradeProfileParameters, ): StreamableMethod< ManagedClustersGetUpgradeProfile200Response | ManagedClustersGetUpgradeProfiledefaultResponse >; @@ -239,7 +239,7 @@ export interface ManagedClustersGetUpgradeProfile { export interface ManagedClustersGetAccessProfile { /** **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) . */ post( - options?: ManagedClustersGetAccessProfileParameters + options?: ManagedClustersGetAccessProfileParameters, ): StreamableMethod< ManagedClustersGetAccessProfile200Response | ManagedClustersGetAccessProfiledefaultResponse >; @@ -248,7 +248,7 @@ export interface ManagedClustersGetAccessProfile { export interface ManagedClustersListClusterAdminCredentials { /** Lists the admin credentials of a managed cluster. */ post( - options?: ManagedClustersListClusterAdminCredentialsParameters + options?: ManagedClustersListClusterAdminCredentialsParameters, ): StreamableMethod< | ManagedClustersListClusterAdminCredentials200Response | ManagedClustersListClusterAdminCredentialsdefaultResponse @@ -258,7 +258,7 @@ export interface ManagedClustersListClusterAdminCredentials { export interface ManagedClustersListClusterUserCredentials { /** Lists the user credentials of a managed cluster. */ post( - options?: ManagedClustersListClusterUserCredentialsParameters + options?: ManagedClustersListClusterUserCredentialsParameters, ): StreamableMethod< | ManagedClustersListClusterUserCredentials200Response | ManagedClustersListClusterUserCredentialsdefaultResponse @@ -268,7 +268,7 @@ export interface ManagedClustersListClusterUserCredentials { export interface ManagedClustersListClusterMonitoringUserCredentials { /** Lists the cluster monitoring user credentials of a managed cluster. */ post( - options?: ManagedClustersListClusterMonitoringUserCredentialsParameters + options?: ManagedClustersListClusterMonitoringUserCredentialsParameters, ): StreamableMethod< | ManagedClustersListClusterMonitoringUserCredentials200Response | ManagedClustersListClusterMonitoringUserCredentialsdefaultResponse @@ -278,11 +278,11 @@ export interface ManagedClustersListClusterMonitoringUserCredentials { export interface ManagedClustersGet { /** Gets a managed cluster. */ get( - options?: ManagedClustersGetParameters + options?: ManagedClustersGetParameters, ): StreamableMethod; /** Creates or updates a managed cluster. */ put( - options: ManagedClustersCreateOrUpdateParameters + options: ManagedClustersCreateOrUpdateParameters, ): StreamableMethod< | ManagedClustersCreateOrUpdate200Response | ManagedClustersCreateOrUpdate201Response @@ -290,13 +290,13 @@ export interface ManagedClustersGet { >; /** Updates tags on a managed cluster. */ patch( - options: ManagedClustersUpdateTagsParameters + options: ManagedClustersUpdateTagsParameters, ): StreamableMethod< ManagedClustersUpdateTags200Response | ManagedClustersUpdateTagsdefaultResponse >; /** Deletes a managed cluster. */ delete( - options?: ManagedClustersDeleteParameters + options?: ManagedClustersDeleteParameters, ): StreamableMethod< | ManagedClustersDelete202Response | ManagedClustersDelete204Response @@ -307,7 +307,7 @@ export interface ManagedClustersGet { export interface ManagedClustersResetServicePrincipalProfile { /** This action cannot be performed on a cluster that is not using a service principal */ post( - options: ManagedClustersResetServicePrincipalProfileParameters + options: ManagedClustersResetServicePrincipalProfileParameters, ): StreamableMethod< | ManagedClustersResetServicePrincipalProfile200Response | ManagedClustersResetServicePrincipalProfile202Response @@ -318,7 +318,7 @@ export interface ManagedClustersResetServicePrincipalProfile { export interface ManagedClustersResetAADProfile { /** Reset the AAD Profile of a managed cluster. */ post( - options: ManagedClustersResetAADProfileParameters + options: ManagedClustersResetAADProfileParameters, ): StreamableMethod< | ManagedClustersResetAADProfile200Response | ManagedClustersResetAADProfile202Response @@ -329,7 +329,7 @@ export interface ManagedClustersResetAADProfile { export interface ManagedClustersRotateClusterCertificates { /** See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates. */ post( - options?: ManagedClustersRotateClusterCertificatesParameters + options?: ManagedClustersRotateClusterCertificatesParameters, ): StreamableMethod< | ManagedClustersRotateClusterCertificates202Response | ManagedClustersRotateClusterCertificates204Response @@ -340,7 +340,7 @@ export interface ManagedClustersRotateClusterCertificates { export interface ManagedClustersRotateServiceAccountSigningKeys { /** Rotates the service account signing keys of a managed cluster. */ post( - options?: ManagedClustersRotateServiceAccountSigningKeysParameters + options?: ManagedClustersRotateServiceAccountSigningKeysParameters, ): StreamableMethod< | ManagedClustersRotateServiceAccountSigningKeys202Response | ManagedClustersRotateServiceAccountSigningKeys204Response @@ -351,7 +351,7 @@ export interface ManagedClustersRotateServiceAccountSigningKeys { export interface ManagedClustersStop { /** This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. */ post( - options?: ManagedClustersStopParameters + options?: ManagedClustersStopParameters, ): StreamableMethod< | ManagedClustersStop202Response | ManagedClustersStop204Response @@ -362,7 +362,7 @@ export interface ManagedClustersStop { export interface ManagedClustersStart { /** See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. */ post( - options?: ManagedClustersStartParameters + options?: ManagedClustersStartParameters, ): StreamableMethod< | ManagedClustersStart202Response | ManagedClustersStart204Response @@ -373,7 +373,7 @@ export interface ManagedClustersStart { export interface ManagedClustersRunCommand { /** AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). */ post( - options: ManagedClustersRunCommandParameters + options: ManagedClustersRunCommandParameters, ): StreamableMethod< | ManagedClustersRunCommand200Response | ManagedClustersRunCommand202Response @@ -384,7 +384,7 @@ export interface ManagedClustersRunCommand { export interface ManagedClustersGetCommandResult { /** Gets the results of a command which has been run on the Managed Cluster. */ get( - options?: ManagedClustersGetCommandResultParameters + options?: ManagedClustersGetCommandResultParameters, ): StreamableMethod< | ManagedClustersGetCommandResult200Response | ManagedClustersGetCommandResult202Response @@ -395,7 +395,7 @@ export interface ManagedClustersGetCommandResult { export interface ManagedClustersListOutboundNetworkDependenciesEndpoints { /** Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint. */ get( - options?: ManagedClustersListOutboundNetworkDependenciesEndpointsParameters + options?: ManagedClustersListOutboundNetworkDependenciesEndpointsParameters, ): StreamableMethod< | ManagedClustersListOutboundNetworkDependenciesEndpoints200Response | ManagedClustersListOutboundNetworkDependenciesEndpointsdefaultResponse @@ -405,7 +405,7 @@ export interface ManagedClustersListOutboundNetworkDependenciesEndpoints { export interface MaintenanceConfigurationsListByManagedCluster { /** Gets a list of maintenance configurations in the specified managed cluster. */ get( - options?: MaintenanceConfigurationsListByManagedClusterParameters + options?: MaintenanceConfigurationsListByManagedClusterParameters, ): StreamableMethod< | MaintenanceConfigurationsListByManagedCluster200Response | MaintenanceConfigurationsListByManagedClusterdefaultResponse @@ -415,20 +415,20 @@ export interface MaintenanceConfigurationsListByManagedCluster { export interface MaintenanceConfigurationsGet { /** Gets the specified maintenance configuration of a managed cluster. */ get( - options?: MaintenanceConfigurationsGetParameters + options?: MaintenanceConfigurationsGetParameters, ): StreamableMethod< MaintenanceConfigurationsGet200Response | MaintenanceConfigurationsGetdefaultResponse >; /** Creates or updates a maintenance configuration in the specified managed cluster. */ put( - options: MaintenanceConfigurationsCreateOrUpdateParameters + options: MaintenanceConfigurationsCreateOrUpdateParameters, ): StreamableMethod< | MaintenanceConfigurationsCreateOrUpdate200Response | MaintenanceConfigurationsCreateOrUpdatedefaultResponse >; /** Deletes a maintenance configuration. */ delete( - options?: MaintenanceConfigurationsDeleteParameters + options?: MaintenanceConfigurationsDeleteParameters, ): StreamableMethod< | MaintenanceConfigurationsDelete200Response | MaintenanceConfigurationsDelete204Response @@ -439,18 +439,18 @@ export interface MaintenanceConfigurationsGet { export interface AgentPoolsList { /** Gets a list of agent pools in the specified managed cluster. */ get( - options?: AgentPoolsListParameters + options?: AgentPoolsListParameters, ): StreamableMethod; } export interface AgentPoolsGet { /** Gets the specified managed cluster agent pool. */ get( - options?: AgentPoolsGetParameters + options?: AgentPoolsGetParameters, ): StreamableMethod; /** Creates or updates an agent pool in the specified managed cluster. */ put( - options: AgentPoolsCreateOrUpdateParameters + options: AgentPoolsCreateOrUpdateParameters, ): StreamableMethod< | AgentPoolsCreateOrUpdate200Response | AgentPoolsCreateOrUpdate201Response @@ -458,7 +458,7 @@ export interface AgentPoolsGet { >; /** Deletes an agent pool in the specified managed cluster. */ delete( - options?: AgentPoolsDeleteParameters + options?: AgentPoolsDeleteParameters, ): StreamableMethod< AgentPoolsDelete202Response | AgentPoolsDelete204Response | AgentPoolsDeletedefaultResponse >; @@ -467,7 +467,7 @@ export interface AgentPoolsGet { export interface AgentPoolsGetUpgradeProfile { /** Gets the upgrade profile for an agent pool. */ get( - options?: AgentPoolsGetUpgradeProfileParameters + options?: AgentPoolsGetUpgradeProfileParameters, ): StreamableMethod< AgentPoolsGetUpgradeProfile200Response | AgentPoolsGetUpgradeProfiledefaultResponse >; @@ -476,14 +476,14 @@ export interface AgentPoolsGetUpgradeProfile { export interface AgentPoolsGetAvailableAgentPoolVersions { /** See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle. */ get( - options?: AgentPoolsGetAvailableAgentPoolVersionsParameters + options?: AgentPoolsGetAvailableAgentPoolVersionsParameters, ): StreamableMethod; } export interface AgentPoolsUpgradeNodeImageVersion { /** Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade */ post( - options?: AgentPoolsUpgradeNodeImageVersionParameters + options?: AgentPoolsUpgradeNodeImageVersionParameters, ): StreamableMethod< | AgentPoolsUpgradeNodeImageVersion200Response | AgentPoolsUpgradeNodeImageVersion202Response @@ -494,7 +494,7 @@ export interface AgentPoolsUpgradeNodeImageVersion { export interface PrivateEndpointConnectionsList { /** To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters */ get( - options?: PrivateEndpointConnectionsListParameters + options?: PrivateEndpointConnectionsListParameters, ): StreamableMethod< PrivateEndpointConnectionsList200Response | PrivateEndpointConnectionsListdefaultResponse >; @@ -503,19 +503,19 @@ export interface PrivateEndpointConnectionsList { export interface PrivateEndpointConnectionsGet { /** To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters */ get( - options?: PrivateEndpointConnectionsGetParameters + options?: PrivateEndpointConnectionsGetParameters, ): StreamableMethod< PrivateEndpointConnectionsGet200Response | PrivateEndpointConnectionsGetdefaultResponse >; /** Updates a private endpoint connection. */ put( - options: PrivateEndpointConnectionsUpdateParameters + options: PrivateEndpointConnectionsUpdateParameters, ): StreamableMethod< PrivateEndpointConnectionsUpdate200Response | PrivateEndpointConnectionsUpdatedefaultResponse >; /** Deletes a private endpoint connection. */ delete( - options?: PrivateEndpointConnectionsDeleteParameters + options?: PrivateEndpointConnectionsDeleteParameters, ): StreamableMethod< | PrivateEndpointConnectionsDelete200Response | PrivateEndpointConnectionsDelete204Response @@ -526,7 +526,7 @@ export interface PrivateEndpointConnectionsGet { export interface PrivateLinkResourcesList { /** To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters */ get( - options?: PrivateLinkResourcesListParameters + options?: PrivateLinkResourcesListParameters, ): StreamableMethod< PrivateLinkResourcesList200Response | PrivateLinkResourcesListdefaultResponse >; @@ -535,7 +535,7 @@ export interface PrivateLinkResourcesList { export interface ResolvePrivateLinkServiceIdPost { /** Gets the private link service ID for the specified managed cluster. */ post( - options: ResolvePrivateLinkServiceIdPostParameters + options: ResolvePrivateLinkServiceIdPostParameters, ): StreamableMethod< ResolvePrivateLinkServiceIdPost200Response | ResolvePrivateLinkServiceIdPostdefaultResponse >; @@ -544,14 +544,14 @@ export interface ResolvePrivateLinkServiceIdPost { export interface SnapshotsList { /** Gets a list of snapshots in the specified subscription. */ get( - options?: SnapshotsListParameters + options?: SnapshotsListParameters, ): StreamableMethod; } export interface SnapshotsListByResourceGroup { /** Lists snapshots in the specified subscription and resource group. */ get( - options?: SnapshotsListByResourceGroupParameters + options?: SnapshotsListByResourceGroupParameters, ): StreamableMethod< SnapshotsListByResourceGroup200Response | SnapshotsListByResourceGroupdefaultResponse >; @@ -560,11 +560,11 @@ export interface SnapshotsListByResourceGroup { export interface SnapshotsGet { /** Gets a snapshot. */ get( - options?: SnapshotsGetParameters + options?: SnapshotsGetParameters, ): StreamableMethod; /** Creates or updates a snapshot. */ put( - options: SnapshotsCreateOrUpdateParameters + options: SnapshotsCreateOrUpdateParameters, ): StreamableMethod< | SnapshotsCreateOrUpdate200Response | SnapshotsCreateOrUpdate201Response @@ -572,11 +572,11 @@ export interface SnapshotsGet { >; /** Updates tags on a snapshot. */ patch( - options: SnapshotsUpdateTagsParameters + options: SnapshotsUpdateTagsParameters, ): StreamableMethod; /** Deletes a snapshot. */ delete( - options?: SnapshotsDeleteParameters + options?: SnapshotsDeleteParameters, ): StreamableMethod< SnapshotsDelete200Response | SnapshotsDelete204Response | SnapshotsDeletedefaultResponse >; @@ -585,7 +585,7 @@ export interface SnapshotsGet { export interface ManagedClusterSnapshotsList { /** Gets a list of managed cluster snapshots in the specified subscription. */ get( - options?: ManagedClusterSnapshotsListParameters + options?: ManagedClusterSnapshotsListParameters, ): StreamableMethod< ManagedClusterSnapshotsList200Response | ManagedClusterSnapshotsListdefaultResponse >; @@ -594,7 +594,7 @@ export interface ManagedClusterSnapshotsList { export interface ManagedClusterSnapshotsListByResourceGroup { /** Lists managed cluster snapshots in the specified subscription and resource group. */ get( - options?: ManagedClusterSnapshotsListByResourceGroupParameters + options?: ManagedClusterSnapshotsListByResourceGroupParameters, ): StreamableMethod< | ManagedClusterSnapshotsListByResourceGroup200Response | ManagedClusterSnapshotsListByResourceGroupdefaultResponse @@ -604,13 +604,13 @@ export interface ManagedClusterSnapshotsListByResourceGroup { export interface ManagedClusterSnapshotsGet { /** Gets a managed cluster snapshot. */ get( - options?: ManagedClusterSnapshotsGetParameters + options?: ManagedClusterSnapshotsGetParameters, ): StreamableMethod< ManagedClusterSnapshotsGet200Response | ManagedClusterSnapshotsGetdefaultResponse >; /** Creates or updates a managed cluster snapshot. */ put( - options: ManagedClusterSnapshotsCreateOrUpdateParameters + options: ManagedClusterSnapshotsCreateOrUpdateParameters, ): StreamableMethod< | ManagedClusterSnapshotsCreateOrUpdate200Response | ManagedClusterSnapshotsCreateOrUpdate201Response @@ -618,13 +618,13 @@ export interface ManagedClusterSnapshotsGet { >; /** Updates tags on a managed cluster snapshot. */ patch( - options: ManagedClusterSnapshotsUpdateTagsParameters + options: ManagedClusterSnapshotsUpdateTagsParameters, ): StreamableMethod< ManagedClusterSnapshotsUpdateTags200Response | ManagedClusterSnapshotsUpdateTagsdefaultResponse >; /** Deletes a managed cluster snapshot. */ delete( - options?: ManagedClusterSnapshotsDeleteParameters + options?: ManagedClusterSnapshotsDeleteParameters, ): StreamableMethod< | ManagedClusterSnapshotsDelete200Response | ManagedClusterSnapshotsDelete204Response @@ -635,14 +635,14 @@ export interface ManagedClusterSnapshotsGet { export interface TrustedAccessRolesList { /** List supported trusted access roles. */ get( - options?: TrustedAccessRolesListParameters + options?: TrustedAccessRolesListParameters, ): StreamableMethod; } export interface TrustedAccessRoleBindingsList { /** List trusted access role bindings. */ get( - options?: TrustedAccessRoleBindingsListParameters + options?: TrustedAccessRoleBindingsListParameters, ): StreamableMethod< TrustedAccessRoleBindingsList200Response | TrustedAccessRoleBindingsListdefaultResponse >; @@ -651,20 +651,20 @@ export interface TrustedAccessRoleBindingsList { export interface TrustedAccessRoleBindingsGet { /** Get a trusted access role binding. */ get( - options?: TrustedAccessRoleBindingsGetParameters + options?: TrustedAccessRoleBindingsGetParameters, ): StreamableMethod< TrustedAccessRoleBindingsGet200Response | TrustedAccessRoleBindingsGetdefaultResponse >; /** Create or update a trusted access role binding */ put( - options: TrustedAccessRoleBindingsCreateOrUpdateParameters + options: TrustedAccessRoleBindingsCreateOrUpdateParameters, ): StreamableMethod< | TrustedAccessRoleBindingsCreateOrUpdate200Response | TrustedAccessRoleBindingsCreateOrUpdatedefaultResponse >; /** Delete a trusted access role binding. */ delete( - options?: TrustedAccessRoleBindingsDeleteParameters + options?: TrustedAccessRoleBindingsDeleteParameters, ): StreamableMethod< | TrustedAccessRoleBindingsDelete200Response | TrustedAccessRoleBindingsDelete204Response @@ -679,25 +679,25 @@ export interface Routes { ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/osOptions/default", subscriptionId: string, - location: string + location: string, ): ManagedClustersGetOSOptions; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.ContainerService/managedClusters' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters", - subscriptionId: string + subscriptionId: string, ): ManagedClustersList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): ManagedClustersListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/upgradeProfiles/default' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): ManagedClustersGetUpgradeProfile; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/accessProfiles/\{roleName\}/listCredential' has methods for the following verbs: post */ ( @@ -705,84 +705,84 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, resourceName: string, - roleName: string + roleName: string, ): ManagedClustersGetAccessProfile; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/listClusterAdminCredential' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): ManagedClustersListClusterAdminCredentials; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/listClusterUserCredential' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterUserCredential", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): ManagedClustersListClusterUserCredentials; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/listClusterMonitoringUserCredential' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterMonitoringUserCredential", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): ManagedClustersListClusterMonitoringUserCredentials; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}' has methods for the following verbs: get, put, patch, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): ManagedClustersGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/resetServicePrincipalProfile' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): ManagedClustersResetServicePrincipalProfile; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/resetAADProfile' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): ManagedClustersResetAADProfile; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/rotateClusterCertificates' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): ManagedClustersRotateClusterCertificates; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/rotateServiceAccountSigningKeys' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateServiceAccountSigningKeys", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): ManagedClustersRotateServiceAccountSigningKeys; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/stop' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): ManagedClustersStop; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/start' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/start", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): ManagedClustersStart; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/runCommand' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/runCommand", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): ManagedClustersRunCommand; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/commandResults/\{commandId\}' has methods for the following verbs: get */ ( @@ -790,21 +790,21 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, resourceName: string, - commandId: string + commandId: string, ): ManagedClustersGetCommandResult; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/outboundNetworkDependenciesEndpoints' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/outboundNetworkDependenciesEndpoints", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): ManagedClustersListOutboundNetworkDependenciesEndpoints; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/maintenanceConfigurations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): MaintenanceConfigurationsListByManagedCluster; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/maintenanceConfigurations/\{configName\}' has methods for the following verbs: get, put, delete */ ( @@ -812,14 +812,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, resourceName: string, - configName: string + configName: string, ): MaintenanceConfigurationsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/agentPools' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): AgentPoolsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/agentPools/\{agentPoolName\}' has methods for the following verbs: get, put, delete */ ( @@ -827,7 +827,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, resourceName: string, - agentPoolName: string + agentPoolName: string, ): AgentPoolsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/agentPools/\{agentPoolName\}/upgradeProfiles/default' has methods for the following verbs: get */ ( @@ -835,14 +835,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, resourceName: string, - agentPoolName: string + agentPoolName: string, ): AgentPoolsGetUpgradeProfile; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/availableAgentPoolVersions' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/availableAgentPoolVersions", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): AgentPoolsGetAvailableAgentPoolVersions; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/agentPools/\{agentPoolName\}/upgradeNodeImageVersion' has methods for the following verbs: post */ ( @@ -850,14 +850,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, resourceName: string, - agentPoolName: string + agentPoolName: string, ): AgentPoolsUpgradeNodeImageVersion; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/privateEndpointConnections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): PrivateEndpointConnectionsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/privateEndpointConnections/\{privateEndpointConnectionName\}' has methods for the following verbs: get, put, delete */ ( @@ -865,70 +865,70 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, resourceName: string, - privateEndpointConnectionName: string + privateEndpointConnectionName: string, ): PrivateEndpointConnectionsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/privateLinkResources' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateLinkResources", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): PrivateLinkResourcesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/resolvePrivateLinkServiceId' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resolvePrivateLinkServiceId", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): ResolvePrivateLinkServiceIdPost; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.ContainerService/snapshots' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/snapshots", - subscriptionId: string + subscriptionId: string, ): SnapshotsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/snapshots' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): SnapshotsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/snapshots/\{resourceName\}' has methods for the following verbs: get, put, patch, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): SnapshotsGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.ContainerService/managedclustersnapshots' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedclustersnapshots", - subscriptionId: string + subscriptionId: string, ): ManagedClusterSnapshotsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedclustersnapshots' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): ManagedClusterSnapshotsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedclustersnapshots/\{resourceName\}' has methods for the following verbs: get, put, patch, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): ManagedClusterSnapshotsGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.ContainerService/locations/\{location\}/trustedAccessRoles' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/trustedAccessRoles", subscriptionId: string, - location: string + location: string, ): TrustedAccessRolesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/trustedAccessRoleBindings' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings", subscriptionId: string, resourceGroupName: string, - resourceName: string + resourceName: string, ): TrustedAccessRoleBindingsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ContainerService/managedClusters/\{resourceName\}/trustedAccessRoleBindings/\{trustedAccessRoleBindingName\}' has methods for the following verbs: get, put, delete */ ( @@ -936,7 +936,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, resourceName: string, - trustedAccessRoleBindingName: string + trustedAccessRoleBindingName: string, ): TrustedAccessRoleBindingsGet; } diff --git a/sdk/containerservice/arm-containerservice-rest/src/containerServiceClient.ts b/sdk/containerservice/arm-containerservice-rest/src/containerServiceClient.ts index 8297da257356..c74c9fc8f12b 100644 --- a/sdk/containerservice/arm-containerservice-rest/src/containerServiceClient.ts +++ b/sdk/containerservice/arm-containerservice-rest/src/containerServiceClient.ts @@ -8,7 +8,7 @@ import { customizedApiVersionPolicy } from "./customizedApiVersionPolicy"; export default function createClient( credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): ContainerServiceClient { const baseUrl = options.baseUrl ?? "https://management.azure.com"; options.apiVersion = options.apiVersion ?? "2022-05-02-preview"; diff --git a/sdk/containerservice/arm-containerservice-rest/src/isUnexpected.ts b/sdk/containerservice/arm-containerservice-rest/src/isUnexpected.ts index 541c5a8f5f2f..32565918c145 100644 --- a/sdk/containerservice/arm-containerservice-rest/src/isUnexpected.ts +++ b/sdk/containerservice/arm-containerservice-rest/src/isUnexpected.ts @@ -265,256 +265,259 @@ const responseMap: Record = { }; export function isUnexpected( - response: OperationsList200Response | OperationsListdefaultResponse + response: OperationsList200Response | OperationsListdefaultResponse, ): response is OperationsListdefaultResponse; export function isUnexpected( - response: ManagedClustersGetOSOptions200Response | ManagedClustersGetOSOptionsdefaultResponse + response: ManagedClustersGetOSOptions200Response | ManagedClustersGetOSOptionsdefaultResponse, ): response is ManagedClustersGetOSOptionsdefaultResponse; export function isUnexpected( - response: ManagedClustersList200Response | ManagedClustersListdefaultResponse + response: ManagedClustersList200Response | ManagedClustersListdefaultResponse, ): response is ManagedClustersListdefaultResponse; export function isUnexpected( response: | ManagedClustersListByResourceGroup200Response - | ManagedClustersListByResourceGroupdefaultResponse + | ManagedClustersListByResourceGroupdefaultResponse, ): response is ManagedClustersListByResourceGroupdefaultResponse; export function isUnexpected( response: | ManagedClustersGetUpgradeProfile200Response - | ManagedClustersGetUpgradeProfiledefaultResponse + | ManagedClustersGetUpgradeProfiledefaultResponse, ): response is ManagedClustersGetUpgradeProfiledefaultResponse; export function isUnexpected( response: | ManagedClustersGetAccessProfile200Response - | ManagedClustersGetAccessProfiledefaultResponse + | ManagedClustersGetAccessProfiledefaultResponse, ): response is ManagedClustersGetAccessProfiledefaultResponse; export function isUnexpected( response: | ManagedClustersListClusterAdminCredentials200Response - | ManagedClustersListClusterAdminCredentialsdefaultResponse + | ManagedClustersListClusterAdminCredentialsdefaultResponse, ): response is ManagedClustersListClusterAdminCredentialsdefaultResponse; export function isUnexpected( response: | ManagedClustersListClusterUserCredentials200Response - | ManagedClustersListClusterUserCredentialsdefaultResponse + | ManagedClustersListClusterUserCredentialsdefaultResponse, ): response is ManagedClustersListClusterUserCredentialsdefaultResponse; export function isUnexpected( response: | ManagedClustersListClusterMonitoringUserCredentials200Response - | ManagedClustersListClusterMonitoringUserCredentialsdefaultResponse + | ManagedClustersListClusterMonitoringUserCredentialsdefaultResponse, ): response is ManagedClustersListClusterMonitoringUserCredentialsdefaultResponse; export function isUnexpected( - response: ManagedClustersGet200Response | ManagedClustersGetdefaultResponse + response: ManagedClustersGet200Response | ManagedClustersGetdefaultResponse, ): response is ManagedClustersGetdefaultResponse; export function isUnexpected( response: | ManagedClustersCreateOrUpdate200Response | ManagedClustersCreateOrUpdate201Response - | ManagedClustersCreateOrUpdatedefaultResponse + | ManagedClustersCreateOrUpdatedefaultResponse, ): response is ManagedClustersCreateOrUpdatedefaultResponse; export function isUnexpected( - response: ManagedClustersUpdateTags200Response | ManagedClustersUpdateTagsdefaultResponse + response: ManagedClustersUpdateTags200Response | ManagedClustersUpdateTagsdefaultResponse, ): response is ManagedClustersUpdateTagsdefaultResponse; export function isUnexpected( response: | ManagedClustersDelete202Response | ManagedClustersDelete204Response - | ManagedClustersDeletedefaultResponse + | ManagedClustersDeletedefaultResponse, ): response is ManagedClustersDeletedefaultResponse; export function isUnexpected( response: | ManagedClustersResetServicePrincipalProfile200Response | ManagedClustersResetServicePrincipalProfile202Response - | ManagedClustersResetServicePrincipalProfiledefaultResponse + | ManagedClustersResetServicePrincipalProfiledefaultResponse, ): response is ManagedClustersResetServicePrincipalProfiledefaultResponse; export function isUnexpected( response: | ManagedClustersResetAADProfile200Response | ManagedClustersResetAADProfile202Response - | ManagedClustersResetAADProfiledefaultResponse + | ManagedClustersResetAADProfiledefaultResponse, ): response is ManagedClustersResetAADProfiledefaultResponse; export function isUnexpected( response: | ManagedClustersRotateClusterCertificates202Response | ManagedClustersRotateClusterCertificates204Response - | ManagedClustersRotateClusterCertificatesdefaultResponse + | ManagedClustersRotateClusterCertificatesdefaultResponse, ): response is ManagedClustersRotateClusterCertificatesdefaultResponse; export function isUnexpected( response: | ManagedClustersRotateServiceAccountSigningKeys202Response | ManagedClustersRotateServiceAccountSigningKeys204Response - | ManagedClustersRotateServiceAccountSigningKeysdefaultResponse + | ManagedClustersRotateServiceAccountSigningKeysdefaultResponse, ): response is ManagedClustersRotateServiceAccountSigningKeysdefaultResponse; export function isUnexpected( response: | ManagedClustersStop202Response | ManagedClustersStop204Response - | ManagedClustersStopdefaultResponse + | ManagedClustersStopdefaultResponse, ): response is ManagedClustersStopdefaultResponse; export function isUnexpected( response: | ManagedClustersStart202Response | ManagedClustersStart204Response - | ManagedClustersStartdefaultResponse + | ManagedClustersStartdefaultResponse, ): response is ManagedClustersStartdefaultResponse; export function isUnexpected( response: | ManagedClustersRunCommand200Response | ManagedClustersRunCommand202Response - | ManagedClustersRunCommanddefaultResponse + | ManagedClustersRunCommanddefaultResponse, ): response is ManagedClustersRunCommanddefaultResponse; export function isUnexpected( response: | ManagedClustersGetCommandResult200Response | ManagedClustersGetCommandResult202Response - | ManagedClustersGetCommandResultdefaultResponse + | ManagedClustersGetCommandResultdefaultResponse, ): response is ManagedClustersGetCommandResultdefaultResponse; export function isUnexpected( response: | ManagedClustersListOutboundNetworkDependenciesEndpoints200Response - | ManagedClustersListOutboundNetworkDependenciesEndpointsdefaultResponse + | ManagedClustersListOutboundNetworkDependenciesEndpointsdefaultResponse, ): response is ManagedClustersListOutboundNetworkDependenciesEndpointsdefaultResponse; export function isUnexpected( response: | MaintenanceConfigurationsListByManagedCluster200Response - | MaintenanceConfigurationsListByManagedClusterdefaultResponse + | MaintenanceConfigurationsListByManagedClusterdefaultResponse, ): response is MaintenanceConfigurationsListByManagedClusterdefaultResponse; export function isUnexpected( - response: MaintenanceConfigurationsGet200Response | MaintenanceConfigurationsGetdefaultResponse + response: MaintenanceConfigurationsGet200Response | MaintenanceConfigurationsGetdefaultResponse, ): response is MaintenanceConfigurationsGetdefaultResponse; export function isUnexpected( response: | MaintenanceConfigurationsCreateOrUpdate200Response - | MaintenanceConfigurationsCreateOrUpdatedefaultResponse + | MaintenanceConfigurationsCreateOrUpdatedefaultResponse, ): response is MaintenanceConfigurationsCreateOrUpdatedefaultResponse; export function isUnexpected( response: | MaintenanceConfigurationsDelete200Response | MaintenanceConfigurationsDelete204Response - | MaintenanceConfigurationsDeletedefaultResponse + | MaintenanceConfigurationsDeletedefaultResponse, ): response is MaintenanceConfigurationsDeletedefaultResponse; export function isUnexpected( - response: AgentPoolsList200Response | AgentPoolsListdefaultResponse + response: AgentPoolsList200Response | AgentPoolsListdefaultResponse, ): response is AgentPoolsListdefaultResponse; export function isUnexpected( - response: AgentPoolsGet200Response | AgentPoolsGetdefaultResponse + response: AgentPoolsGet200Response | AgentPoolsGetdefaultResponse, ): response is AgentPoolsGetdefaultResponse; export function isUnexpected( response: | AgentPoolsCreateOrUpdate200Response | AgentPoolsCreateOrUpdate201Response - | AgentPoolsCreateOrUpdatedefaultResponse + | AgentPoolsCreateOrUpdatedefaultResponse, ): response is AgentPoolsCreateOrUpdatedefaultResponse; export function isUnexpected( response: | AgentPoolsDelete202Response | AgentPoolsDelete204Response - | AgentPoolsDeletedefaultResponse + | AgentPoolsDeletedefaultResponse, ): response is AgentPoolsDeletedefaultResponse; export function isUnexpected( - response: AgentPoolsGetUpgradeProfile200Response | AgentPoolsGetUpgradeProfiledefaultResponse + response: AgentPoolsGetUpgradeProfile200Response | AgentPoolsGetUpgradeProfiledefaultResponse, ): response is AgentPoolsGetUpgradeProfiledefaultResponse; export function isUnexpected( response: | AgentPoolsUpgradeNodeImageVersion200Response | AgentPoolsUpgradeNodeImageVersion202Response - | AgentPoolsUpgradeNodeImageVersiondefaultResponse + | AgentPoolsUpgradeNodeImageVersiondefaultResponse, ): response is AgentPoolsUpgradeNodeImageVersiondefaultResponse; export function isUnexpected( response: | PrivateEndpointConnectionsList200Response - | PrivateEndpointConnectionsListdefaultResponse + | PrivateEndpointConnectionsListdefaultResponse, ): response is PrivateEndpointConnectionsListdefaultResponse; export function isUnexpected( - response: PrivateEndpointConnectionsGet200Response | PrivateEndpointConnectionsGetdefaultResponse + response: PrivateEndpointConnectionsGet200Response | PrivateEndpointConnectionsGetdefaultResponse, ): response is PrivateEndpointConnectionsGetdefaultResponse; export function isUnexpected( response: | PrivateEndpointConnectionsUpdate200Response - | PrivateEndpointConnectionsUpdatedefaultResponse + | PrivateEndpointConnectionsUpdatedefaultResponse, ): response is PrivateEndpointConnectionsUpdatedefaultResponse; export function isUnexpected( response: | PrivateEndpointConnectionsDelete200Response | PrivateEndpointConnectionsDelete204Response - | PrivateEndpointConnectionsDeletedefaultResponse + | PrivateEndpointConnectionsDeletedefaultResponse, ): response is PrivateEndpointConnectionsDeletedefaultResponse; export function isUnexpected( - response: PrivateLinkResourcesList200Response | PrivateLinkResourcesListdefaultResponse + response: PrivateLinkResourcesList200Response | PrivateLinkResourcesListdefaultResponse, ): response is PrivateLinkResourcesListdefaultResponse; export function isUnexpected( response: | ResolvePrivateLinkServiceIdPost200Response - | ResolvePrivateLinkServiceIdPostdefaultResponse + | ResolvePrivateLinkServiceIdPostdefaultResponse, ): response is ResolvePrivateLinkServiceIdPostdefaultResponse; export function isUnexpected( - response: SnapshotsList200Response | SnapshotsListdefaultResponse + response: SnapshotsList200Response | SnapshotsListdefaultResponse, ): response is SnapshotsListdefaultResponse; export function isUnexpected( - response: SnapshotsListByResourceGroup200Response | SnapshotsListByResourceGroupdefaultResponse + response: SnapshotsListByResourceGroup200Response | SnapshotsListByResourceGroupdefaultResponse, ): response is SnapshotsListByResourceGroupdefaultResponse; export function isUnexpected( - response: SnapshotsGet200Response | SnapshotsGetdefaultResponse + response: SnapshotsGet200Response | SnapshotsGetdefaultResponse, ): response is SnapshotsGetdefaultResponse; export function isUnexpected( response: | SnapshotsCreateOrUpdate200Response | SnapshotsCreateOrUpdate201Response - | SnapshotsCreateOrUpdatedefaultResponse + | SnapshotsCreateOrUpdatedefaultResponse, ): response is SnapshotsCreateOrUpdatedefaultResponse; export function isUnexpected( - response: SnapshotsUpdateTags200Response | SnapshotsUpdateTagsdefaultResponse + response: SnapshotsUpdateTags200Response | SnapshotsUpdateTagsdefaultResponse, ): response is SnapshotsUpdateTagsdefaultResponse; export function isUnexpected( - response: SnapshotsDelete200Response | SnapshotsDelete204Response | SnapshotsDeletedefaultResponse + response: + | SnapshotsDelete200Response + | SnapshotsDelete204Response + | SnapshotsDeletedefaultResponse, ): response is SnapshotsDeletedefaultResponse; export function isUnexpected( - response: ManagedClusterSnapshotsList200Response | ManagedClusterSnapshotsListdefaultResponse + response: ManagedClusterSnapshotsList200Response | ManagedClusterSnapshotsListdefaultResponse, ): response is ManagedClusterSnapshotsListdefaultResponse; export function isUnexpected( response: | ManagedClusterSnapshotsListByResourceGroup200Response - | ManagedClusterSnapshotsListByResourceGroupdefaultResponse + | ManagedClusterSnapshotsListByResourceGroupdefaultResponse, ): response is ManagedClusterSnapshotsListByResourceGroupdefaultResponse; export function isUnexpected( - response: ManagedClusterSnapshotsGet200Response | ManagedClusterSnapshotsGetdefaultResponse + response: ManagedClusterSnapshotsGet200Response | ManagedClusterSnapshotsGetdefaultResponse, ): response is ManagedClusterSnapshotsGetdefaultResponse; export function isUnexpected( response: | ManagedClusterSnapshotsCreateOrUpdate200Response | ManagedClusterSnapshotsCreateOrUpdate201Response - | ManagedClusterSnapshotsCreateOrUpdatedefaultResponse + | ManagedClusterSnapshotsCreateOrUpdatedefaultResponse, ): response is ManagedClusterSnapshotsCreateOrUpdatedefaultResponse; export function isUnexpected( response: | ManagedClusterSnapshotsUpdateTags200Response - | ManagedClusterSnapshotsUpdateTagsdefaultResponse + | ManagedClusterSnapshotsUpdateTagsdefaultResponse, ): response is ManagedClusterSnapshotsUpdateTagsdefaultResponse; export function isUnexpected( response: | ManagedClusterSnapshotsDelete200Response | ManagedClusterSnapshotsDelete204Response - | ManagedClusterSnapshotsDeletedefaultResponse + | ManagedClusterSnapshotsDeletedefaultResponse, ): response is ManagedClusterSnapshotsDeletedefaultResponse; export function isUnexpected( - response: TrustedAccessRolesList200Response | TrustedAccessRolesListdefaultResponse + response: TrustedAccessRolesList200Response | TrustedAccessRolesListdefaultResponse, ): response is TrustedAccessRolesListdefaultResponse; export function isUnexpected( - response: TrustedAccessRoleBindingsList200Response | TrustedAccessRoleBindingsListdefaultResponse + response: TrustedAccessRoleBindingsList200Response | TrustedAccessRoleBindingsListdefaultResponse, ): response is TrustedAccessRoleBindingsListdefaultResponse; export function isUnexpected( - response: TrustedAccessRoleBindingsGet200Response | TrustedAccessRoleBindingsGetdefaultResponse + response: TrustedAccessRoleBindingsGet200Response | TrustedAccessRoleBindingsGetdefaultResponse, ): response is TrustedAccessRoleBindingsGetdefaultResponse; export function isUnexpected( response: | TrustedAccessRoleBindingsCreateOrUpdate200Response - | TrustedAccessRoleBindingsCreateOrUpdatedefaultResponse + | TrustedAccessRoleBindingsCreateOrUpdatedefaultResponse, ): response is TrustedAccessRoleBindingsCreateOrUpdatedefaultResponse; export function isUnexpected( response: | TrustedAccessRoleBindingsDelete200Response | TrustedAccessRoleBindingsDelete204Response - | TrustedAccessRoleBindingsDeletedefaultResponse + | TrustedAccessRoleBindingsDeletedefaultResponse, ): response is TrustedAccessRoleBindingsDeletedefaultResponse; export function isUnexpected( response: @@ -647,7 +650,7 @@ export function isUnexpected( | TrustedAccessRoleBindingsCreateOrUpdatedefaultResponse | TrustedAccessRoleBindingsDelete200Response | TrustedAccessRoleBindingsDelete204Response - | TrustedAccessRoleBindingsDeletedefaultResponse + | TrustedAccessRoleBindingsDeletedefaultResponse, ): response is | OperationsListdefaultResponse | ManagedClustersGetOSOptionsdefaultResponse diff --git a/sdk/containerservice/arm-containerservice-rest/src/paginateHelper.ts b/sdk/containerservice/arm-containerservice-rest/src/paginateHelper.ts index 532e2603f724..ae39a400b94b 100644 --- a/sdk/containerservice/arm-containerservice-rest/src/paginateHelper.ts +++ b/sdk/containerservice/arm-containerservice-rest/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/containerservice/arm-containerservice-rest/src/pollingHelper.ts b/sdk/containerservice/arm-containerservice-rest/src/pollingHelper.ts index 27b9ed42834a..c95c1d612155 100644 --- a/sdk/containerservice/arm-containerservice-rest/src/pollingHelper.ts +++ b/sdk/containerservice/arm-containerservice-rest/src/pollingHelper.ts @@ -21,7 +21,7 @@ import { export function getLongRunningPoller( client: Client, initialResponse: TResult, - options: LroEngineOptions> = {} + options: LroEngineOptions> = {}, ): PollerLike, TResult> { const poller: LongRunningOperation = { requestMethod: initialResponse.request.method, diff --git a/sdk/containerservice/arm-containerservice-rest/test/public/containerservice-test.spec.ts b/sdk/containerservice/arm-containerservice-rest/test/public/containerservice-test.spec.ts index 53b7d291e5f4..2994961ab320 100644 --- a/sdk/containerservice/arm-containerservice-rest/test/public/containerservice-test.spec.ts +++ b/sdk/containerservice/arm-containerservice-rest/test/public/containerservice-test.spec.ts @@ -55,7 +55,7 @@ describe("My test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .put({ body: { @@ -96,7 +96,7 @@ describe("My test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .get(); assert.equal(res.status, "200"); @@ -109,7 +109,7 @@ describe("My test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .get(); assert.equal(res.status, "200"); @@ -120,7 +120,7 @@ describe("My test", () => { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters", - subscriptionId + subscriptionId, ) .get(); const result = paginate(client, initialResponse); @@ -137,7 +137,7 @@ describe("My test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .patch({ body: { @@ -149,7 +149,7 @@ describe("My test", () => { assert.equal(res.status, "200"); assert.equal( (res.body as ManagedClusterOutput).type, - "Microsoft.ContainerService/ManagedClusters" + "Microsoft.ContainerService/ManagedClusters", ); }); @@ -159,7 +159,7 @@ describe("My test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", subscriptionId, resourceGroupName, - resourceName + resourceName, ) .delete(); const poller = getLongRunningPoller(client, initialResponse, testPollingOptions); @@ -168,7 +168,7 @@ describe("My test", () => { const listInitialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters", - subscriptionId + subscriptionId, ) .get(); const result = paginate(client, listInitialResponse); diff --git a/sdk/contentsafety/ai-content-safety-rest/package.json b/sdk/contentsafety/ai-content-safety-rest/package.json index 83246ec3bb08..a11e74898fe0 100644 --- a/sdk/contentsafety/ai-content-safety-rest/package.json +++ b/sdk/contentsafety/ai-content-safety-rest/package.json @@ -38,11 +38,11 @@ "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "generate:client": "echo skipped", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -75,7 +75,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^2.1.2", - "prettier": "^2.5.1", "rimraf": "^5.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/contentsafety/ai-content-safety-rest/src/clientDefinitions.ts b/sdk/contentsafety/ai-content-safety-rest/src/clientDefinitions.ts index 54338d1a135b..e1d5978a3897 100644 --- a/sdk/contentsafety/ai-content-safety-rest/src/clientDefinitions.ts +++ b/sdk/contentsafety/ai-content-safety-rest/src/clientDefinitions.ts @@ -41,25 +41,25 @@ import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface AnalyzeText { /** A synchronous API for the analysis of potentially harmful text content. Currently, it supports four categories: Hate, SelfHarm, Sexual, and Violence. */ post( - options: AnalyzeTextParameters + options: AnalyzeTextParameters, ): StreamableMethod; } export interface AnalyzeImage { /** A synchronous API for the analysis of potentially harmful image content. Currently, it supports four categories: Hate, SelfHarm, Sexual, and Violence. */ post( - options: AnalyzeImageParameters + options: AnalyzeImageParameters, ): StreamableMethod; } export interface GetTextBlocklist { /** Returns text blocklist details. */ get( - options?: GetTextBlocklistParameters + options?: GetTextBlocklistParameters, ): StreamableMethod; /** Updates a text blocklist. If the blocklistName does not exist, a new blocklist will be created. */ patch( - options: CreateOrUpdateTextBlocklistParameters + options: CreateOrUpdateTextBlocklistParameters, ): StreamableMethod< | CreateOrUpdateTextBlocklist200Response | CreateOrUpdateTextBlocklist201Response @@ -67,21 +67,21 @@ export interface GetTextBlocklist { >; /** Deletes a text blocklist. */ delete( - options?: DeleteTextBlocklistParameters + options?: DeleteTextBlocklistParameters, ): StreamableMethod; } export interface ListTextBlocklists { /** Get all text blocklists details. */ get( - options?: ListTextBlocklistsParameters + options?: ListTextBlocklistsParameters, ): StreamableMethod; } export interface AddOrUpdateBlocklistItems { /** Add or update blocklistItems to a text blocklist. You can add or update at most 100 blocklistItems in one request. */ post( - options: AddOrUpdateBlocklistItemsParameters + options: AddOrUpdateBlocklistItemsParameters, ): StreamableMethod< AddOrUpdateBlocklistItems200Response | AddOrUpdateBlocklistItemsDefaultResponse >; @@ -90,21 +90,21 @@ export interface AddOrUpdateBlocklistItems { export interface RemoveBlocklistItems { /** Remove blocklistItems from a text blocklist. You can remove at most 100 BlocklistItems in one request. */ post( - options: RemoveBlocklistItemsParameters + options: RemoveBlocklistItemsParameters, ): StreamableMethod; } export interface GetTextBlocklistItem { /** Get blocklistItem by blocklistName and blocklistItemId from a text blocklist. */ get( - options?: GetTextBlocklistItemParameters + options?: GetTextBlocklistItemParameters, ): StreamableMethod; } export interface ListTextBlocklistItems { /** Get all blocklistItems in a text blocklist. */ get( - options?: ListTextBlocklistItemsParameters + options?: ListTextBlocklistItemsParameters, ): StreamableMethod; } @@ -120,23 +120,23 @@ export interface Routes { /** Resource for '/text/blocklists/\{blocklistName\}:addOrUpdateBlocklistItems' has methods for the following verbs: post */ ( path: "/text/blocklists/{blocklistName}:addOrUpdateBlocklistItems", - blocklistName: string + blocklistName: string, ): AddOrUpdateBlocklistItems; /** Resource for '/text/blocklists/\{blocklistName\}:removeBlocklistItems' has methods for the following verbs: post */ ( path: "/text/blocklists/{blocklistName}:removeBlocklistItems", - blocklistName: string + blocklistName: string, ): RemoveBlocklistItems; /** Resource for '/text/blocklists/\{blocklistName\}/blocklistItems/\{blocklistItemId\}' has methods for the following verbs: get */ ( path: "/text/blocklists/{blocklistName}/blocklistItems/{blocklistItemId}", blocklistName: string, - blocklistItemId: string + blocklistItemId: string, ): GetTextBlocklistItem; /** Resource for '/text/blocklists/\{blocklistName\}/blocklistItems' has methods for the following verbs: get */ ( path: "/text/blocklists/{blocklistName}/blocklistItems", - blocklistName: string + blocklistName: string, ): ListTextBlocklistItems; } diff --git a/sdk/contentsafety/ai-content-safety-rest/src/contentSafetyClient.ts b/sdk/contentsafety/ai-content-safety-rest/src/contentSafetyClient.ts index 784dbbaa8c1a..fd46e945ce08 100644 --- a/sdk/contentsafety/ai-content-safety-rest/src/contentSafetyClient.ts +++ b/sdk/contentsafety/ai-content-safety-rest/src/contentSafetyClient.ts @@ -16,7 +16,7 @@ import { ContentSafetyClient } from "./clientDefinitions"; export default function createClient( endpoint: string, credentials: TokenCredential | KeyCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): ContentSafetyClient { const baseUrl = options.baseUrl ?? `${endpoint}/contentsafety`; options.apiVersion = options.apiVersion ?? "2023-10-01"; diff --git a/sdk/contentsafety/ai-content-safety-rest/src/isUnexpected.ts b/sdk/contentsafety/ai-content-safety-rest/src/isUnexpected.ts index 15459984e6de..87938cf526c2 100644 --- a/sdk/contentsafety/ai-content-safety-rest/src/isUnexpected.ts +++ b/sdk/contentsafety/ai-content-safety-rest/src/isUnexpected.ts @@ -39,37 +39,37 @@ const responseMap: Record = { }; export function isUnexpected( - response: AnalyzeText200Response | AnalyzeTextDefaultResponse + response: AnalyzeText200Response | AnalyzeTextDefaultResponse, ): response is AnalyzeTextDefaultResponse; export function isUnexpected( - response: AnalyzeImage200Response | AnalyzeImageDefaultResponse + response: AnalyzeImage200Response | AnalyzeImageDefaultResponse, ): response is AnalyzeImageDefaultResponse; export function isUnexpected( - response: GetTextBlocklist200Response | GetTextBlocklistDefaultResponse + response: GetTextBlocklist200Response | GetTextBlocklistDefaultResponse, ): response is GetTextBlocklistDefaultResponse; export function isUnexpected( response: | CreateOrUpdateTextBlocklist200Response | CreateOrUpdateTextBlocklist201Response - | CreateOrUpdateTextBlocklistDefaultResponse + | CreateOrUpdateTextBlocklistDefaultResponse, ): response is CreateOrUpdateTextBlocklistDefaultResponse; export function isUnexpected( - response: DeleteTextBlocklist204Response | DeleteTextBlocklistDefaultResponse + response: DeleteTextBlocklist204Response | DeleteTextBlocklistDefaultResponse, ): response is DeleteTextBlocklistDefaultResponse; export function isUnexpected( - response: ListTextBlocklists200Response | ListTextBlocklistsDefaultResponse + response: ListTextBlocklists200Response | ListTextBlocklistsDefaultResponse, ): response is ListTextBlocklistsDefaultResponse; export function isUnexpected( - response: AddOrUpdateBlocklistItems200Response | AddOrUpdateBlocklistItemsDefaultResponse + response: AddOrUpdateBlocklistItems200Response | AddOrUpdateBlocklistItemsDefaultResponse, ): response is AddOrUpdateBlocklistItemsDefaultResponse; export function isUnexpected( - response: RemoveBlocklistItems204Response | RemoveBlocklistItemsDefaultResponse + response: RemoveBlocklistItems204Response | RemoveBlocklistItemsDefaultResponse, ): response is RemoveBlocklistItemsDefaultResponse; export function isUnexpected( - response: GetTextBlocklistItem200Response | GetTextBlocklistItemDefaultResponse + response: GetTextBlocklistItem200Response | GetTextBlocklistItemDefaultResponse, ): response is GetTextBlocklistItemDefaultResponse; export function isUnexpected( - response: ListTextBlocklistItems200Response | ListTextBlocklistItemsDefaultResponse + response: ListTextBlocklistItems200Response | ListTextBlocklistItemsDefaultResponse, ): response is ListTextBlocklistItemsDefaultResponse; export function isUnexpected( response: @@ -93,7 +93,7 @@ export function isUnexpected( | GetTextBlocklistItem200Response | GetTextBlocklistItemDefaultResponse | ListTextBlocklistItems200Response - | ListTextBlocklistItemsDefaultResponse + | ListTextBlocklistItemsDefaultResponse, ): response is | AnalyzeTextDefaultResponse | AnalyzeImageDefaultResponse @@ -146,7 +146,7 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // {guid} ==> $ // {guid}:export ==> :export$ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "" + pathParts[j] || "", ); if (!isMatched) { diff --git a/sdk/contentsafety/ai-content-safety-rest/src/paginateHelper.ts b/sdk/contentsafety/ai-content-safety-rest/src/paginateHelper.ts index 477bace4a37f..f0d91c952cda 100644 --- a/sdk/contentsafety/ai-content-safety-rest/src/paginateHelper.ts +++ b/sdk/contentsafety/ai-content-safety-rest/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/contentsafety/ai-content-safety-rest/test/public/contentSafety.spec.ts b/sdk/contentsafety/ai-content-safety-rest/test/public/contentSafety.spec.ts index d139f20c56bf..1de654c30086 100644 --- a/sdk/contentsafety/ai-content-safety-rest/test/public/contentSafety.spec.ts +++ b/sdk/contentsafety/ai-content-safety-rest/test/public/contentSafety.spec.ts @@ -262,7 +262,7 @@ describe("Content Safety Client Test", () => { .path( "/text/blocklists/{blocklistName}/blocklistItems/{blocklistItemId}", blocklistName, - blockItemId + blockItemId, ) .get(); if (isUnexpected(getBlockItemResponse)) { diff --git a/sdk/cosmosdb/cosmos/bundle-types.js b/sdk/cosmosdb/cosmos/bundle-types.js index ac82447fd501..21981d0886b6 100644 --- a/sdk/cosmosdb/cosmos/bundle-types.js +++ b/sdk/cosmosdb/cosmos/bundle-types.js @@ -6,7 +6,7 @@ const ApiExtractor = require("@microsoft/api-extractor"); const NodeCoreLib = require("@microsoft/node-core-library"); const config = NodeCoreLib.JsonFile.loadAndValidate( "api-extractor.json", - ApiExtractor.Extractor.jsonSchema + ApiExtractor.Extractor.jsonSchema, ); // This interface provides additional runtime state that is NOT part of the config file diff --git a/sdk/cosmosdb/cosmos/consumer-test.js b/sdk/cosmosdb/cosmos/consumer-test.js index eb99c8af393a..cb0ab3041e3c 100644 --- a/sdk/cosmosdb/cosmos/consumer-test.js +++ b/sdk/cosmosdb/cosmos/consumer-test.js @@ -18,11 +18,11 @@ async function exec(cmd) { for (const version of tsVersionsToCheckCompatibility) { console.log(`Compiling with typescript@${version} - Basic`); await exec( - `npx -p typescript@${version} tsc ./test.ts --allowSyntheticDefaultImports true --target ES5` + `npx -p typescript@${version} tsc ./test.ts --allowSyntheticDefaultImports true --target ES5`, ); console.log(`Compiling with typescript@${version} - Custom lib`); await exec( - `npx -p typescript@${version} tsc ./test.ts --allowSyntheticDefaultImports true --lib es2018` + `npx -p typescript@${version} tsc ./test.ts --allowSyntheticDefaultImports true --lib es2018`, ); } process.exit(0); diff --git a/sdk/cosmosdb/cosmos/package.json b/sdk/cosmosdb/cosmos/package.json index 1967cd0e09ec..3f1e4dd785ed 100644 --- a/sdk/cosmosdb/cosmos/package.json +++ b/sdk/cosmosdb/cosmos/package.json @@ -54,11 +54,11 @@ "build": "npm run clean && npm run extract-api && npm run bundle", "bundle": "dev-tool run bundle", "bundle-types": "node bundle-types.js", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"samples-dev/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"samples-dev/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm temp types *.tgz *.html *.log *.tsbuildinfo test/**/*.{js,js.map,d.ts}", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "npm run check:src:strict && npm run build:src && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"samples-dev/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"samples-dev/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "cross-env NODE_OPTIONS='--dns-result-order=ipv4first' mocha -r test/mocha.env.ts -r ts-node/register -r esm -r dotenv/config -r ./test/public/common/setup.ts --reporter ../../../common/tools/mocha-multi-reporter.js \"./test/internal/**/*.spec.ts\" \"./test/public/**/*.spec.ts\" --timeout 100000", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -117,7 +117,6 @@ "esm": "^3.2.18", "execa": "^5.0.0", "mocha": "^10.0.0", - "prettier": "^2.5.1", "requirejs": "^2.3.5", "rimraf": "^3.0.0", "sinon": "^17.0.0", diff --git a/sdk/cosmosdb/cosmos/samples-dev/AADAuth.ts b/sdk/cosmosdb/cosmos/samples-dev/AADAuth.ts index 4730e28d1487..c13cc014eeaa 100644 --- a/sdk/cosmosdb/cosmos/samples-dev/AADAuth.ts +++ b/sdk/cosmosdb/cosmos/samples-dev/AADAuth.ts @@ -24,7 +24,7 @@ async function run() { "fake-tenant-id", "fake-client-id", "fakeUsername", - "fakePassword" + "fakePassword", ); logStep("Pass credentials to client object with key aadCredentials"); const aadClient = new CosmosClient({ @@ -38,7 +38,7 @@ async function run() { }); logStep( - "Only certain operations are authorized. Reading databases/containers will throw errors, but reading items will work" + "Only certain operations are authorized. Reading databases/containers will throw errors, but reading items will work", ); // fails diff --git a/sdk/cosmosdb/cosmos/samples-dev/AlterQueryThroughput.ts b/sdk/cosmosdb/cosmos/samples-dev/AlterQueryThroughput.ts index a3888758c3e3..5c1849c23d1c 100644 --- a/sdk/cosmosdb/cosmos/samples-dev/AlterQueryThroughput.ts +++ b/sdk/cosmosdb/cosmos/samples-dev/AlterQueryThroughput.ts @@ -67,7 +67,7 @@ async function updateOfferForCollection( newRups: number, dbName: string, collectionName: string, - oldOfferDefinition: OfferDefinition + oldOfferDefinition: OfferDefinition, ): Promise { if (!oldOfferDefinition || !oldOfferDefinition.content) throw "found invalid offer"; const newOfferDefinition: OfferDefinition = { @@ -89,18 +89,18 @@ async function updateOfferForCollection( .filter((database: DatabaseDefinition & Resource) => database.id === dbName) .map((database: DatabaseDefinition & Resource) => { return client.database(database.id).containers.readAll().fetchAll(); - }) + }), ); const containers: (ContainerDefinition & Resource)[] = containerResponses.flatMap( - (response: FeedResponse) => response.resources + (response: FeedResponse) => response.resources, ); logStep("Finding container to offerDefinition"); const container = containers.find( (containerParam: ContainerDefinition & Resource) => containerParam._rid === oldOfferDefinition.offerResourceId && - containerParam.id === collectionName + containerParam.id === collectionName, ); if (container) { @@ -116,7 +116,7 @@ async function updateOfferForCollection( async function asyncForEach( array: Array, - callback: (element: T, index?: number, array?: T[]) => Promise + callback: (element: T, index?: number, array?: T[]) => Promise, ): Promise { for (let index = 0; index < array.length; index++) { await callback(array[index]); diff --git a/sdk/cosmosdb/cosmos/samples-dev/Bulk.ts b/sdk/cosmosdb/cosmos/samples-dev/Bulk.ts index a57b20818dd0..e9e29e2b05d2 100644 --- a/sdk/cosmosdb/cosmos/samples-dev/Bulk.ts +++ b/sdk/cosmosdb/cosmos/samples-dev/Bulk.ts @@ -50,7 +50,7 @@ async function run() { const replaceItemId = addEntropy("item3"); const patchItemId = addEntropy("item4"); logStep( - `Create items ${readItemId}, ${deleteItemId}, ${replaceItemId},${patchItemId} for reading, deleting, replacing and patching` + `Create items ${readItemId}, ${deleteItemId}, ${replaceItemId},${patchItemId} for reading, deleting, replacing and patching`, ); await v2Container.items.create({ id: readItemId, @@ -113,7 +113,7 @@ async function run() { }, ]; logStep( - `Execute a simple bulk request with 5 operations: Create, Upsert, Read, Delete, Replace , Patch` + `Execute a simple bulk request with 5 operations: Create, Upsert, Read, Delete, Replace , Patch`, ); logStep("Bulk Operations Input to 'container.items.bulk(operations):'"); console.log(operations); diff --git a/sdk/cosmosdb/cosmos/samples-dev/BulkUpdateWithSproc.ts b/sdk/cosmosdb/cosmos/samples-dev/BulkUpdateWithSproc.ts index f3e059ab870a..52893178b7b4 100644 --- a/sdk/cosmosdb/cosmos/samples-dev/BulkUpdateWithSproc.ts +++ b/sdk/cosmosdb/cosmos/samples-dev/BulkUpdateWithSproc.ts @@ -40,7 +40,7 @@ function body(continuation: string): void { responseBody.continuation = options.continuation; // Update this batch of documents updateDocs(feed, responseBody); - } + }, ); function updateDocs(documents: any, responseBodyParam: any): void { diff --git a/sdk/cosmosdb/cosmos/samples-dev/ChangeFeed.ts b/sdk/cosmosdb/cosmos/samples-dev/ChangeFeed.ts index 03a025ab148b..aad2c63ee4b6 100644 --- a/sdk/cosmosdb/cosmos/samples-dev/ChangeFeed.ts +++ b/sdk/cosmosdb/cosmos/samples-dev/ChangeFeed.ts @@ -34,7 +34,7 @@ function doesMatch(actual: any[], expected: any[]): string { function logResult(scenario: string, actual: any[], expected: any[]): void { const status = doesMatch(actual, expected); console.log( - ` ${status} ${scenario} - expected: [${expected.join(", ")}] - actual: [${actual.join(", ")}]` + ` ${status} ${scenario} - expected: [${expected.join(", ")}] - actual: [${actual.join(", ")}]`, ); } @@ -93,7 +93,7 @@ async function run(): Promise { logResult( "initial specific Continuation scenario", [3], - specificContinuationResult.map((v) => parseInt(v.id)) + specificContinuationResult.map((v) => parseInt(v.id)), ); // First page is empty. It is catching up to a valid continuation. @@ -101,28 +101,28 @@ async function run(): Promise { logResult( "initial specific point in time scenario should be empty while it finds the right continuation", [], - shouldBeEmpty.map((v) => parseInt(v.id)) + shouldBeEmpty.map((v) => parseInt(v.id)), ); // Second page should have results const { result: specificPointInTimeResults } = await specificPointInTimeIterator.fetchNext(); logResult( "second specific point in time scenario should have caught up now", [2, 3], - specificPointInTimeResults.map((v) => parseInt(v.id)) + specificPointInTimeResults.map((v) => parseInt(v.id)), ); const { result: fromBeginningResults } = await fromBeginningIterator.fetchNext(); logResult( "initial from beginning scenario", [1, 2, 3], - fromBeginningResults.map((v) => parseInt(v.id)) + fromBeginningResults.map((v) => parseInt(v.id)), ); const { result: fromNowResultsShouldBeEmpty } = await fromNowIterator.fetchNext(); logResult( "initial from now scenario should be empty", [], - fromNowResultsShouldBeEmpty.map((v) => parseInt(v.id)) + fromNowResultsShouldBeEmpty.map((v) => parseInt(v.id)), ); // Now they should all be caught up to the point after id=3, so if we insert a id=4, they should all get it. @@ -135,28 +135,28 @@ async function run(): Promise { logResult( "after insert, Specific Continuation scenario", [4], - specificContinuationResult2.map((v) => parseInt(v.id)) + specificContinuationResult2.map((v) => parseInt(v.id)), ); const { result: specificPointInTimeResults2 } = await specificPointInTimeIterator.fetchNext(); logResult( "after insert, specific point in time scenario", [4], - specificPointInTimeResults2.map((v) => parseInt(v.id)) + specificPointInTimeResults2.map((v) => parseInt(v.id)), ); const { result: fromBeginningResults2 } = await fromBeginningIterator.fetchNext(); logResult( "after insert, from beginning scenario", [4], - fromBeginningResults2.map((v) => parseInt(v.id)) + fromBeginningResults2.map((v) => parseInt(v.id)), ); const { result: fromNowResults2 } = await fromNowIterator.fetchNext(); logResult( "after insert, from now scenario", [4], - fromNowResults2.map((v) => parseInt(v.id)) + fromNowResults2.map((v) => parseInt(v.id)), ); } catch (err: any) { if (err) { diff --git a/sdk/cosmosdb/cosmos/samples-dev/ChangeFeedIterator/ChangeFeedIteratorEpkRange.ts b/sdk/cosmosdb/cosmos/samples-dev/ChangeFeedIterator/ChangeFeedIteratorEpkRange.ts index 751107b453d1..0d4ef57dce6f 100644 --- a/sdk/cosmosdb/cosmos/samples-dev/ChangeFeedIterator/ChangeFeedIteratorEpkRange.ts +++ b/sdk/cosmosdb/cosmos/samples-dev/ChangeFeedIterator/ChangeFeedIteratorEpkRange.ts @@ -46,7 +46,7 @@ const client = new CosmosClient({ endpoint, key }); async function iterateChangeFeedTillNow( container: Container, - feedRange: FeedRange + feedRange: FeedRange, ): Promise { console.log("fetching changefeed until now"); diff --git a/sdk/cosmosdb/cosmos/samples-dev/ContainerManagement.ts b/sdk/cosmosdb/cosmos/samples-dev/ContainerManagement.ts index 84a1b481b9fe..ec45dd4f09ad 100644 --- a/sdk/cosmosdb/cosmos/samples-dev/ContainerManagement.ts +++ b/sdk/cosmosdb/cosmos/samples-dev/ContainerManagement.ts @@ -36,7 +36,7 @@ async function run(): Promise { const container = database.container(containerId); const { resource: containerDef } = await container.read(); console.log( - `Container with url "${container.url}" was found its id is "${containerDef && containerDef.id}` + `Container with url "${container.url}" was found its id is "${containerDef && containerDef.id}`, ); logStep(`Delete container ${containerDef && containerDef.id}`); diff --git a/sdk/cosmosdb/cosmos/samples-dev/Diagnostics.ts b/sdk/cosmosdb/cosmos/samples-dev/Diagnostics.ts index 599c2e3b8843..5343dd209f11 100644 --- a/sdk/cosmosdb/cosmos/samples-dev/Diagnostics.ts +++ b/sdk/cosmosdb/cosmos/samples-dev/Diagnostics.ts @@ -46,7 +46,7 @@ async function accessingDiagnosticForDatabaseOperations(databaseId: string) { }; } async function accessingDiagnosticForContainerOperations( - database: any + database: any, ): Promise<{ container: any }> { const { container, diagnostics: containerCreateDiagnostic } = await database.containers.createIfNotExists({ @@ -106,19 +106,19 @@ async function accessingDiagnosticForBatchOperations(container: Container) { function displayCosmosDiagnosticsObject(diagnostics: any, target: string) { console.log( - `######################## Printing diagnostic for ${target} ##############################` + `######################## Printing diagnostic for ${target} ##############################`, ); console.log( - ` ## Operation start time stamp: ${diagnostics.clientSideRequestStatistics.requestStartTimeUTCInMs}` + ` ## Operation start time stamp: ${diagnostics.clientSideRequestStatistics.requestStartTimeUTCInMs}`, ); console.log( - ` ## Total time taken in operation: ${diagnostics.clientSideRequestStatistics.requestDurationInMs}` + ` ## Total time taken in operation: ${diagnostics.clientSideRequestStatistics.requestDurationInMs}`, ); console.log( - ` ## Total request payload length operation: ${diagnostics.clientSideRequestStatistics.totalRequestPayloadLengthInBytes}` + ` ## Total request payload length operation: ${diagnostics.clientSideRequestStatistics.totalRequestPayloadLengthInBytes}`, ); console.log( - ` ## Total response payload length operation: ${diagnostics.clientSideRequestStatistics.totalResponsePayloadLengthInBytes}` + ` ## Total response payload length operation: ${diagnostics.clientSideRequestStatistics.totalResponsePayloadLengthInBytes}`, ); console.log(` ## Location endpoints contacted during operation - `); diff --git a/sdk/cosmosdb/cosmos/samples-dev/HierarchicalPartitioning.ts b/sdk/cosmosdb/cosmos/samples-dev/HierarchicalPartitioning.ts index 3e84d60b99f6..2d0ff70dc004 100644 --- a/sdk/cosmosdb/cosmos/samples-dev/HierarchicalPartitioning.ts +++ b/sdk/cosmosdb/cosmos/samples-dev/HierarchicalPartitioning.ts @@ -43,7 +43,7 @@ async function run(): Promise { console.log( " ## Container with id " + container.id + " created with hierarchical partition:", - ["/name", "/address/zip"] + ["/name", "/address/zip"], ); const itemWithBothPartitionPresent = "item1"; @@ -63,7 +63,7 @@ async function run(): Promise { .build(); console.log( " ## Item with id " + itemWithBothPartitionPresent + " created. with partition key: ", - itemWithBothPartitionPresentKey + itemWithBothPartitionPresentKey, ); const itemWithOneMissingPartition = "item2"; @@ -80,7 +80,7 @@ async function run(): Promise { .build(); console.log( " ## Item with id " + itemWithOneMissingPartition + " created. with partition key: ", - itemWithOneMissingPartitionKey + itemWithOneMissingPartitionKey, ); const itemWithNullPartition = "item3"; @@ -99,7 +99,7 @@ async function run(): Promise { .build(); console.log( " ## Item with id " + itemWithNullPartition + " created. with partition key: ", - itemWithNullPartitionKey + itemWithNullPartitionKey, ); // Reading item created, while specifying it's hierarchical partition key. @@ -108,7 +108,7 @@ async function run(): Promise { .read(); console.log( " ## Item with id " + item1.id + " read. with partition key: ", - itemWithBothPartitionPresentKey + itemWithBothPartitionPresentKey, ); // Patch item created, while specifying it's hierarchical partition key. @@ -130,7 +130,7 @@ async function run(): Promise { .patch(operations); console.log( " ## Item with id " + patchedItem.id + " patched. with partition key: ", - itemWithBothPartitionPresentKey + itemWithBothPartitionPresentKey, ); const bulkOperations = [ @@ -175,7 +175,7 @@ async function run(): Promise { const response = await container.items.bulk(bulkOperations); console.log( " ## bulk operation executed. responses -", - response.map((e) => e.statusCode) + response.map((e) => e.statusCode), ); await finish(); } diff --git a/sdk/cosmosdb/cosmos/samples-dev/IndexManagement.ts b/sdk/cosmosdb/cosmos/samples-dev/IndexManagement.ts index d28e56ef127c..9d6748ae32a9 100644 --- a/sdk/cosmosdb/cosmos/samples-dev/IndexManagement.ts +++ b/sdk/cosmosdb/cosmos/samples-dev/IndexManagement.ts @@ -40,7 +40,7 @@ async function run(): Promise { console.log("Create item, but exclude from index"); const { resource: itemDef, item } = await container.items.create( { id: "item1", foo: "bar" }, - { indexingDirective: "exclude" } + { indexingDirective: "exclude" }, ); if (itemDef) { @@ -90,7 +90,7 @@ async function run(): Promise { console.log("Create item, and explicitly include in index"); const { resource: itemDef2 } = await container.items.create( { id: "item2", foo: "bar" }, - { indexingDirective: "include" } + { indexingDirective: "include" }, ); if (itemDef) { console.log(`Item with id ${itemDef.id} 'created`); @@ -156,7 +156,7 @@ async function run(): Promise { }, ], }, - { enableScanInQuery: true } + { enableScanInQuery: true }, ); const { resources: items, requestCharge } = await queryIterator.fetchNext(); const itemDef3 = items[0]; diff --git a/sdk/cosmosdb/cosmos/samples-dev/ItemManagement.ts b/sdk/cosmosdb/cosmos/samples-dev/ItemManagement.ts index 845d5333137e..dedc9e679e52 100644 --- a/sdk/cosmosdb/cosmos/samples-dev/ItemManagement.ts +++ b/sdk/cosmosdb/cosmos/samples-dev/ItemManagement.ts @@ -54,7 +54,7 @@ async function run(): Promise { }); if (!item2 && headers["content-length"] === 0) { console.log( - "As expected, no item returned. This is because the etag sent matched the etag on the server. i.e. you have the latest version of the item already" + "As expected, no item returned. This is because the etag sent matched the etag on the server. i.e. you have the latest version of the item already", ); } @@ -69,7 +69,7 @@ async function run(): Promise { throw "Expected item this time. Something is wrong!"; } else { console.log( - "This time the read request returned the item because the etag values did not match" + "This time the read request returned the item because the etag values did not match", ); } @@ -113,7 +113,7 @@ async function run(): Promise { if (person && updatedPerson) { console.log("The '" + person.id + "' family has lastName '" + updatedPerson.lastName + "'"); console.log( - "The '" + person.id + "' family has " + updatedPerson.children.length + " children '" + "The '" + person.id + "' family has " + updatedPerson.children.length + " children '", ); } @@ -144,7 +144,7 @@ async function run(): Promise { logStep( `Upserting person ${upsertSource && upsertSource.id} with id ${ upsertSource && upsertSource.id - }...` + }...`, ); // a non-identity change will cause an update on upsert diff --git a/sdk/cosmosdb/cosmos/samples-dev/QueryThroughput.ts b/sdk/cosmosdb/cosmos/samples-dev/QueryThroughput.ts index 95728c4d2618..acba6f7c618c 100644 --- a/sdk/cosmosdb/cosmos/samples-dev/QueryThroughput.ts +++ b/sdk/cosmosdb/cosmos/samples-dev/QueryThroughput.ts @@ -42,7 +42,7 @@ async function run() { const start = Date.now(); await runScenario(scenario.container, scenario.query, scenario.options); console.log( - 'Scenario complete: "' + scenario.query + '" - took ' + (Date.now() - start) / 1000 + "s" + 'Scenario complete: "' + scenario.query + '" - took ' + (Date.now() - start) / 1000 + "s", ); } catch (e: any) { console.log("Scenario failed: " + scenario.query + " - " + JSON.stringify(scenario.options)); @@ -53,7 +53,7 @@ async function run() { async function runScenario( container: Container, query: string | SqlQuerySpec, - options: FeedOptions + options: FeedOptions, ) { const queryIterator = container.items.query(query, options); let count = 0; diff --git a/sdk/cosmosdb/cosmos/samples-dev/ServerSideScripts.ts b/sdk/cosmosdb/cosmos/samples-dev/ServerSideScripts.ts index e6fb58dcc5e9..019683c12556 100644 --- a/sdk/cosmosdb/cosmos/samples-dev/ServerSideScripts.ts +++ b/sdk/cosmosdb/cosmos/samples-dev/ServerSideScripts.ts @@ -88,7 +88,7 @@ const sprocDefinition = { } else { throw new Error("Error in retrieving document: " + doc.id); } - } + }, ); if (!isAccepted) throw new Error("Unable to query documents"); } diff --git a/sdk/cosmosdb/cosmos/samples-dev/Shared/handleError.ts b/sdk/cosmosdb/cosmos/samples-dev/Shared/handleError.ts index 96ccc4d61213..3365c12156b8 100644 --- a/sdk/cosmosdb/cosmos/samples-dev/Shared/handleError.ts +++ b/sdk/cosmosdb/cosmos/samples-dev/Shared/handleError.ts @@ -21,7 +21,7 @@ export async function finish(): Promise { console.log("\nEnd of demo."); } catch (err: any) { console.log( - `Database: "${dbId}" might not have deleted properly. You might need to delete it manually.` + `Database: "${dbId}" might not have deleted properly. You might need to delete it manually.`, ); process.exitCode = 1; } diff --git a/sdk/cosmosdb/cosmos/src/ChangeFeedIterator.ts b/sdk/cosmosdb/cosmos/src/ChangeFeedIterator.ts index 0d4993f1f081..6d255c96f463 100644 --- a/sdk/cosmosdb/cosmos/src/ChangeFeedIterator.ts +++ b/sdk/cosmosdb/cosmos/src/ChangeFeedIterator.ts @@ -32,7 +32,7 @@ export class ChangeFeedIterator { private resourceId: string, private resourceLink: string, private partitionKey: PartitionKey, - private changeFeedOptions: ChangeFeedOptions + private changeFeedOptions: ChangeFeedOptions, ) { // partition key XOR partition key range id const partitionKeyValid = partitionKey !== undefined; @@ -93,11 +93,11 @@ export class ChangeFeedIterator { } private async getFeedResponse( - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise>> { if (!this.isPartitionSpecified) { throw new Error( - "Container is partitioned, but no partition key or partition key range id was specified." + "Container is partitioned, but no partition key or partition key range id was specified.", ); } const feedOptions: FeedOptions = { initialHeaders: {}, useIncrementalFeed: true }; @@ -137,7 +137,7 @@ export class ChangeFeedIterator { response.result ? response.result.length : 0, response.code, response.headers, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); } } diff --git a/sdk/cosmosdb/cosmos/src/ChangeFeedResponse.ts b/sdk/cosmosdb/cosmos/src/ChangeFeedResponse.ts index 175d90c14d3e..dfa2652874b3 100644 --- a/sdk/cosmosdb/cosmos/src/ChangeFeedResponse.ts +++ b/sdk/cosmosdb/cosmos/src/ChangeFeedResponse.ts @@ -25,7 +25,7 @@ export class ChangeFeedResponse { */ public readonly statusCode: number, headers: CosmosHeaders, - public readonly diagnostics: CosmosDiagnostics + public readonly diagnostics: CosmosDiagnostics, ) { this.headers = Object.freeze(headers); } diff --git a/sdk/cosmosdb/cosmos/src/ClientContext.ts b/sdk/cosmosdb/cosmos/src/ClientContext.ts index 6e4863f1f1de..ac6674f22a41 100644 --- a/sdk/cosmosdb/cosmos/src/ClientContext.ts +++ b/sdk/cosmosdb/cosmos/src/ClientContext.ts @@ -65,7 +65,7 @@ export class ClientContext { private cosmosClientOptions: CosmosClientOptions, private globalEndpointManager: GlobalEndpointManager, private clientConfig: ClientConfigDiagnostic, - public diagnosticLevel: CosmosDbDiagnosticLevel + public diagnosticLevel: CosmosDbDiagnosticLevel, ) { this.connectionPolicy = cosmosClientOptions.connectionPolicy; this.sessionContainer = new SessionContainer(); @@ -87,7 +87,7 @@ export class ClientContext { request.headers.set("Authorization", authorizationToken); }, }, - }) + }), ); } this.initializeDiagnosticSettings(diagnosticLevel); @@ -131,13 +131,13 @@ export class ClientContext { request.endpoint = await this.globalEndpointManager.resolveServiceEndpoint( diagnosticNode, request.resourceType, - request.operationType + request.operationType, ); const response = await executePlugins( diagnosticNode, request, RequestHandler.request, - PluginOn.operation + PluginOn.operation, ); this.captureSessionToken(undefined, path, OperationType.Read, response.headers); return response; @@ -198,7 +198,7 @@ export class ClientContext { request.endpoint = await this.globalEndpointManager.resolveServiceEndpoint( diagnosticNode, request.resourceType, - request.operationType + request.operationType, ); request.headers = await this.buildHeaders(request); @@ -220,7 +220,7 @@ export class ClientContext { "query " + requestId + " started" + - (request.partitionKeyRangeId ? " pkrid: " + request.partitionKeyRangeId : "") + (request.partitionKeyRangeId ? " pkrid: " + request.partitionKeyRangeId : ""), ); logger.verbose(request); const start = Date.now(); @@ -236,7 +236,7 @@ export class ClientContext { resourceId: string, query: SqlQuerySpec | string, options: FeedOptions = {}, - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise> { const request: RequestContext = { ...this.getContextDerivedPropsForRequestCreation(), @@ -255,7 +255,7 @@ export class ClientContext { request.endpoint = await this.globalEndpointManager.resolveServiceEndpoint( diagnosticNode, request.resourceType, - request.operationType + request.operationType, ); request.headers = await this.buildHeaders(request); request.headers[HttpHeaders.IsQueryPlan] = "True"; @@ -276,7 +276,7 @@ export class ClientContext { public queryPartitionKeyRanges( collectionLink: string, query?: string | SqlQuerySpec, - options?: FeedOptions + options?: FeedOptions, ): QueryIterator { const path = getPathFromLink(collectionLink, ResourceType.pkranges); const id = getIdFromLink(collectionLink); @@ -333,13 +333,13 @@ export class ClientContext { request.endpoint = await this.globalEndpointManager.resolveServiceEndpoint( diagnosticNode, request.resourceType, - request.operationType + request.operationType, ); const response = await executePlugins( diagnosticNode, request, RequestHandler.request, - PluginOn.operation + PluginOn.operation, ); if (parseLink(path).type !== "colls") { this.captureSessionToken(undefined, path, OperationType.Delete, response.headers); @@ -393,13 +393,13 @@ export class ClientContext { request.endpoint = await this.globalEndpointManager.resolveServiceEndpoint( diagnosticNode, request.resourceType, - request.operationType + request.operationType, ); const response = await executePlugins( diagnosticNode, request, RequestHandler.request, - PluginOn.operation + PluginOn.operation, ); this.captureSessionToken(undefined, path, OperationType.Patch, response.headers); return response; @@ -449,13 +449,13 @@ export class ClientContext { request.endpoint = await this.globalEndpointManager.resolveServiceEndpoint( diagnosticNode, request.resourceType, - request.operationType + request.operationType, ); const response = await executePlugins( diagnosticNode, request, RequestHandler.request, - PluginOn.operation + PluginOn.operation, ); this.captureSessionToken(undefined, path, OperationType.Create, response.headers); return response; @@ -468,7 +468,7 @@ export class ClientContext { private processQueryFeedResponse( res: Response, isQuery: boolean, - resultFn: (result: { [key: string]: any }) => any[] + resultFn: (result: { [key: string]: any }) => any[], ): Response { if (isQuery) { return { @@ -552,13 +552,13 @@ export class ClientContext { request.endpoint = await this.globalEndpointManager.resolveServiceEndpoint( diagnosticNode, request.resourceType, - request.operationType + request.operationType, ); const response = await executePlugins( diagnosticNode, request, RequestHandler.request, - PluginOn.operation + PluginOn.operation, ); this.captureSessionToken(undefined, path, OperationType.Replace, response.headers); return response; @@ -609,13 +609,13 @@ export class ClientContext { request.endpoint = await this.globalEndpointManager.resolveServiceEndpoint( diagnosticNode, request.resourceType, - request.operationType + request.operationType, ); const response = await executePlugins( diagnosticNode, request, RequestHandler.request, - PluginOn.operation + PluginOn.operation, ); this.captureSessionToken(undefined, path, OperationType.Upsert, response.headers); return response; @@ -666,13 +666,13 @@ export class ClientContext { request.endpoint = await this.globalEndpointManager.resolveServiceEndpoint( diagnosticNode, request.resourceType, - request.operationType + request.operationType, ); const response = await executePlugins( diagnosticNode, request, RequestHandler.request, - PluginOn.operation + PluginOn.operation, ); return response; } @@ -684,7 +684,7 @@ export class ClientContext { */ public async getDatabaseAccount( diagnosticNode: DiagnosticNodeInternal, - options: RequestOptions = {} + options: RequestOptions = {}, ): Promise> { const endpoint = options.urlConnection || this.cosmosClientOptions.endpoint; const request: RequestContext = { @@ -706,7 +706,7 @@ export class ClientContext { diagnosticNode, request, RequestHandler.request, - PluginOn.operation + PluginOn.operation, ); const databaseAccount = new DatabaseAccount(result, headers); @@ -775,13 +775,13 @@ export class ClientContext { request.endpoint = await this.globalEndpointManager.resolveServiceEndpoint( diagnosticNode, request.resourceType, - request.operationType + request.operationType, ); const response = await executePlugins( diagnosticNode, request, RequestHandler.request, - PluginOn.operation + PluginOn.operation, ); this.captureSessionToken(undefined, path, OperationType.Batch, response.headers); response.diagnostics = diagnosticNode.toDiagnostic(this.getClientConfig()); @@ -835,13 +835,13 @@ export class ClientContext { request.endpoint = await this.globalEndpointManager.resolveServiceEndpoint( diagnosticNode, request.resourceType, - request.operationType + request.operationType, ); const response = await executePlugins( diagnosticNode, request, RequestHandler.request, - PluginOn.operation + PluginOn.operation, ); this.captureSessionToken(undefined, path, OperationType.Batch, response.headers); return response; @@ -855,7 +855,7 @@ export class ClientContext { err: ErrorResponse, path: string, operationType: OperationType, - resHeaders: CosmosHeaders + resHeaders: CosmosHeaders, ): void { const request = this.getSessionParams(path); request.operationType = operationType; diff --git a/sdk/cosmosdb/cosmos/src/CosmosClient.ts b/sdk/cosmosdb/cosmos/src/CosmosClient.ts index 51c981a548b9..f4252b4f429f 100644 --- a/sdk/cosmosdb/cosmos/src/CosmosClient.ts +++ b/sdk/cosmosdb/cosmos/src/CosmosClient.ts @@ -80,7 +80,7 @@ export class CosmosClient { optionsOrConnectionString.connectionPolicy = Object.assign( {}, defaultConnectionPolicy, - optionsOrConnectionString.connectionPolicy + optionsOrConnectionString.connectionPolicy, ); optionsOrConnectionString.defaultHeaders = optionsOrConnectionString.defaultHeaders || {}; @@ -93,13 +93,13 @@ export class CosmosClient { } optionsOrConnectionString.defaultHeaders[Constants.HttpHeaders.UserAgent] = getUserAgent( - optionsOrConnectionString.userAgentSuffix + optionsOrConnectionString.userAgentSuffix, ); const globalEndpointManager = new GlobalEndpointManager( optionsOrConnectionString, async (diagnosticNode: DiagnosticNodeInternal, opts: RequestOptions) => - this.getDatabaseAccountInternal(diagnosticNode, opts) + this.getDatabaseAccountInternal(diagnosticNode, opts), ); this.clientContext = new ClientContext( @@ -108,8 +108,8 @@ export class CosmosClient { clientConfig, determineDiagnosticLevel( optionsOrConnectionString.diagnosticLevel, - getDiagnosticLevelFromEnvironment() - ) + getDiagnosticLevelFromEnvironment(), + ), ); if ( optionsOrConnectionString.connectionPolicy?.enableEndpointDiscovery && @@ -118,7 +118,7 @@ export class CosmosClient { this.backgroundRefreshEndpointList( globalEndpointManager, optionsOrConnectionString.connectionPolicy.endpointRefreshRateInMs || - defaultConnectionPolicy.endpointRefreshRateInMs + defaultConnectionPolicy.endpointRefreshRateInMs, ); } @@ -127,7 +127,7 @@ export class CosmosClient { } private initializeClientConfigDiagnostic( - optionsOrConnectionString: CosmosClientOptions + optionsOrConnectionString: CosmosClientOptions, ): ClientConfigDiagnostic { return { endpoint: optionsOrConnectionString.endpoint, @@ -149,7 +149,7 @@ export class CosmosClient { * Get information about the current {@link DatabaseAccount} (including which regions are supported, etc.) */ public async getDatabaseAccount( - options?: RequestOptions + options?: RequestOptions, ): Promise> { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { return this.getDatabaseAccountInternal(diagnosticNode, options); @@ -161,7 +161,7 @@ export class CosmosClient { */ public async getDatabaseAccountInternal( diagnosticNode: DiagnosticNodeInternal, - options?: RequestOptions + options?: RequestOptions, ): Promise> { const response = await this.clientContext.getDatabaseAccount(diagnosticNode, options); return new ResourceResponse( @@ -169,7 +169,7 @@ export class CosmosClient { response.headers, response.code, getEmptyCosmosDiagnostics(), - response.substatus + response.substatus, ); } @@ -250,7 +250,7 @@ export class CosmosClient { private async backgroundRefreshEndpointList( globalEndpointManager: GlobalEndpointManager, - refreshRate: number + refreshRate: number, ) { this.endpointRefresher = setInterval(() => { try { @@ -259,7 +259,7 @@ export class CosmosClient { return globalEndpointManager.refreshEndpointList(diagnosticNode); }, this.clientContext, - DiagnosticNodeType.BACKGROUND_REFRESH_THREAD + DiagnosticNodeType.BACKGROUND_REFRESH_THREAD, ); } catch (e: any) { console.warn("Failed to refresh endpoints", e); diff --git a/sdk/cosmosdb/cosmos/src/CosmosDiagnostics.ts b/sdk/cosmosdb/cosmos/src/CosmosDiagnostics.ts index c34a9be6bacf..db0c96efe808 100644 --- a/sdk/cosmosdb/cosmos/src/CosmosDiagnostics.ts +++ b/sdk/cosmosdb/cosmos/src/CosmosDiagnostics.ts @@ -37,7 +37,7 @@ export class CosmosDiagnostics { constructor( clientSideRequestStatistics: ClientSideRequestStatistics, diagnosticNode?: DiagnosticNode, - clientConfig?: ClientConfigDiagnostic + clientConfig?: ClientConfigDiagnostic, ) { this.clientSideRequestStatistics = clientSideRequestStatistics; this.diagnosticNode = diagnosticNode; diff --git a/sdk/cosmosdb/cosmos/src/auth.ts b/sdk/cosmosdb/cosmos/src/auth.ts index 464bc370ac40..217970d061db 100644 --- a/sdk/cosmosdb/cosmos/src/auth.ts +++ b/sdk/cosmosdb/cosmos/src/auth.ts @@ -31,7 +31,7 @@ export async function setAuthorizationHeader( path: string, resourceId: string, resourceType: ResourceType, - headers: CosmosHeaders + headers: CosmosHeaders, ): Promise { if (clientOptions.permissionFeed) { clientOptions.resourceTokens = {}; @@ -52,15 +52,15 @@ export async function setAuthorizationHeader( resourceId, resourceType, headers, - clientOptions.key + clientOptions.key, ); } else if (clientOptions.resourceTokens) { headers[Constants.HttpHeaders.Authorization] = encodeURIComponent( - getAuthorizationTokenUsingResourceTokens(clientOptions.resourceTokens, path, resourceId) + getAuthorizationTokenUsingResourceTokens(clientOptions.resourceTokens, path, resourceId), ); } else if (clientOptions.tokenProvider) { headers[Constants.HttpHeaders.Authorization] = encodeURIComponent( - await clientOptions.tokenProvider({ verb, path, resourceId, resourceType, headers }) + await clientOptions.tokenProvider({ verb, path, resourceId, resourceType, headers }), ); } } @@ -74,7 +74,7 @@ export async function setAuthorizationTokenHeaderUsingMasterKey( resourceId: string, resourceType: ResourceType, headers: CosmosHeaders, - masterKey: string + masterKey: string, ): Promise { // TODO This should live in cosmos-sign if (resourceType === ResourceType.offer) { @@ -82,7 +82,7 @@ export async function setAuthorizationTokenHeaderUsingMasterKey( } headers = Object.assign( headers, - await generateHeaders(masterKey, verb, resourceType, resourceId) + await generateHeaders(masterKey, verb, resourceType, resourceId), ); } @@ -93,7 +93,7 @@ export async function setAuthorizationTokenHeaderUsingMasterKey( export function getAuthorizationTokenUsingResourceTokens( resourceTokens: { [resourceId: string]: string }, path: string, - resourceId: string + resourceId: string, ): string { if (resourceTokens && Object.keys(resourceTokens).length > 0) { // For database account access(through getDatabaseAccount API), path and resourceId are "", diff --git a/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedForEpkRange.ts b/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedForEpkRange.ts index ea2cc519fa9d..23915d352f85 100644 --- a/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedForEpkRange.ts +++ b/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedForEpkRange.ts @@ -37,7 +37,7 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator private resourceLink: string, private url: string, private changeFeedOptions: InternalChangeFeedIteratorOptions, - private epkRange: QueryRange + private epkRange: QueryRange, ) { this.queue = new FeedRangeQueue(); this.continuationToken = changeFeedOptions.continuationToken @@ -80,19 +80,19 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator const overLappingRanges = await this.partitionKeyRangeCache.getOverlappingRanges( this.url, this.epkRange, - diagnosticNode + diagnosticNode, ); for (const overLappingRange of overLappingRanges) { const [epkMinHeader, epkMaxHeader] = await extractOverlappingRanges( this.epkRange, - overLappingRange + overLappingRange, ); const feedRange: ChangeFeedRange = new ChangeFeedRange( overLappingRange.minInclusive, overLappingRange.maxExclusive, "", epkMinHeader, - epkMaxHeader + epkMaxHeader, ); this.queue.enqueue(feedRange); } @@ -104,7 +104,7 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator * Fill the queue with feed ranges from continuation token */ private async fetchContinuationTokenFeedRanges( - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise { const contToken = this.continuationToken; if (!this.continuationTokenRidMatchContainerRid()) { @@ -116,7 +116,7 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator const overLappingRanges = await this.partitionKeyRangeCache.getOverlappingRanges( this.url, queryRange, - diagnosticNode + diagnosticNode, ); for (const overLappingRange of overLappingRanges) { // check if the epk range present in continuation token entirely covers the overlapping range. @@ -125,14 +125,14 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator // This will be used when we make a call to fetch change feed. const [epkMinHeader, epkMaxHeader] = await extractOverlappingRanges( queryRange, - overLappingRange + overLappingRange, ); const feedRange: ChangeFeedRange = new ChangeFeedRange( overLappingRange.minInclusive, overLappingRange.maxExclusive, cToken.continuationToken, epkMinHeader, - epkMaxHeader + epkMaxHeader, ); this.queue.enqueue(feedRange); } @@ -212,7 +212,7 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator * Read feed and retrieves the next page of results in Azure Cosmos DB. */ private async fetchNext( - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise<[[string, string], ChangeFeedIteratorResponse>]> { const feedRange = this.queue.peek(); if (feedRange) { @@ -224,7 +224,7 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator const shouldRetry: boolean = await this.shouldRetryOnFailure( feedRange, result, - diagnosticNode + diagnosticNode, ); if (shouldRetry) { @@ -262,7 +262,7 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator private async shouldRetryOnFailure( feedRange: ChangeFeedRange, response: ChangeFeedIteratorResponse>, - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise { if (response.statusCode === StatusCodes.Ok || response.statusCode === StatusCodes.NotModified) { return false; @@ -278,13 +278,13 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator feedRange.minInclusive, feedRange.maxExclusive, true, - false + false, ); const resolvedRanges = await this.partitionKeyRangeCache.getOverlappingRanges( this.url, queryRange, diagnosticNode, - true + true, ); if (resolvedRanges.length < 1) { throw new ErrorResponse("Partition split/merge detected but no overlapping ranges found."); @@ -306,7 +306,7 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator shiftLeft: boolean, resolvedRanges: any, oldFeedRange: QueryRange, - continuationToken: string + continuationToken: string, ): Promise { let flag = 0; if (shiftLeft) { @@ -315,14 +315,14 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator // Modifies the first element with the first overlapping range. const [epkMinHeader, epkMaxHeader] = await extractOverlappingRanges( oldFeedRange, - resolvedRanges[0] + resolvedRanges[0], ); const newFeedRange = new ChangeFeedRange( resolvedRanges[0].minInclusive, resolvedRanges[0].maxExclusive, continuationToken, epkMinHeader, - epkMaxHeader + epkMaxHeader, ); this.queue.modifyFirstElement(newFeedRange); @@ -332,7 +332,7 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator for (let i = flag; i < resolvedRanges.length; i++) { const [epkMinHeader, epkMaxHeader] = await extractOverlappingRanges( oldFeedRange, - resolvedRanges[i] + resolvedRanges[i], ); const newFeedRange = new ChangeFeedRange( @@ -340,7 +340,7 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator resolvedRanges[i].maxExclusive, continuationToken, epkMinHeader, - epkMaxHeader + epkMaxHeader, ); this.queue.enqueue(newFeedRange); } @@ -353,7 +353,7 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator */ private async getPartitionRangeId( feedRange: ChangeFeedRange, - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise { const min = feedRange.epkMinHeader ? feedRange.epkMinHeader : feedRange.minInclusive; const max = feedRange.epkMaxHeader ? feedRange.epkMaxHeader : feedRange.maxExclusive; @@ -362,7 +362,7 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator this.url, queryRange, diagnosticNode, - false + false, ); if (resolvedRanges.length < 1) { throw new ErrorResponse("No overlapping ranges found."); @@ -376,7 +376,7 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator private async getFeedResponse( feedRange: ChangeFeedRange, - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise>> { const feedOptions: FeedOptions = { initialHeaders: {}, useIncrementalFeed: true }; @@ -420,7 +420,7 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator response.result ? response.result.length : 0, response.code, response.headers, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); } catch (err) { // If any errors are encountered, eg. partition split or gone, handle it based on error code and not break the flow. @@ -430,7 +430,7 @@ export class ChangeFeedForEpkRange implements ChangeFeedPullModelIterator err.code, err.headers, getEmptyCosmosDiagnostics(), - err.substatus + err.substatus, ); } } diff --git a/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedForPartitionKey.ts b/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedForPartitionKey.ts index 7895b3250837..e924b7ada11d 100644 --- a/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedForPartitionKey.ts +++ b/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedForPartitionKey.ts @@ -31,7 +31,7 @@ export class ChangeFeedForPartitionKey implements ChangeFeedPullModelIterator private resourceId: string, private resourceLink: string, private partitionKey: PartitionKey, - private changeFeedOptions: InternalChangeFeedIteratorOptions + private changeFeedOptions: InternalChangeFeedIteratorOptions, ) { this.continuationToken = changeFeedOptions.continuationToken ? JSON.parse(changeFeedOptions.continuationToken) @@ -53,7 +53,7 @@ export class ChangeFeedForPartitionKey implements ChangeFeedPullModelIterator this.continuationToken = new ContinuationTokenForPartitionKey( this.rId, this.partitionKey, - "" + "", ); } @@ -106,18 +106,18 @@ export class ChangeFeedForPartitionKey implements ChangeFeedPullModelIterator * Read feed and retrieves the next set of results in Azure Cosmos DB. */ private async fetchNext( - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise>> { const response = await this.getFeedResponse(diagnosticNode); this.continuationToken.Continuation = response.headers[Constants.HttpHeaders.ETag]; response.headers[Constants.HttpHeaders.ContinuationToken] = JSON.stringify( - this.continuationToken + this.continuationToken, ); return response; } private async getFeedResponse( - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise>> { const feedOptions: FeedOptions = { initialHeaders: {}, useIncrementalFeed: true }; @@ -157,7 +157,7 @@ export class ChangeFeedForPartitionKey implements ChangeFeedPullModelIterator response.result ? response.result.length : 0, response.code, response.headers, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); } } diff --git a/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedIteratorResponse.ts b/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedIteratorResponse.ts index 99c8cdd6f46b..f2f8ad3748a5 100644 --- a/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedIteratorResponse.ts +++ b/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedIteratorResponse.ts @@ -35,7 +35,7 @@ export class ChangeFeedIteratorResponse { /** * Gets the subStatusCodes of the response from Azure Cosmos DB. Useful in partition split or partition gone. */ - public readonly subStatusCode?: number + public readonly subStatusCode?: number, ) { this.headers = headers; } diff --git a/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedRange.ts b/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedRange.ts index 1b2e2e9216a2..bb66d2aeee84 100644 --- a/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedRange.ts +++ b/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedRange.ts @@ -31,7 +31,7 @@ export class ChangeFeedRange { maxExclusive: string, continuationToken?: string, epkMinHeader?: string, - epkMaxHeader?: string + epkMaxHeader?: string, ) { this.minInclusive = minInclusive; this.maxExclusive = maxExclusive; diff --git a/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedStartFrom.ts b/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedStartFrom.ts index 9b21f8029a5e..6fb73ef2cbba 100644 --- a/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedStartFrom.ts +++ b/sdk/cosmosdb/cosmos/src/client/ChangeFeed/ChangeFeedStartFrom.ts @@ -35,7 +35,7 @@ export abstract class ChangeFeedStartFrom { */ public static Time( startTime: Date, - cfResource?: PartitionKey | FeedRange + cfResource?: PartitionKey | FeedRange, ): ChangeFeedStartFromTime { if (!startTime) { throw new ErrorResponse("startTime must be present"); diff --git a/sdk/cosmosdb/cosmos/src/client/ChangeFeed/FeedRangeQueue.ts b/sdk/cosmosdb/cosmos/src/client/ChangeFeed/FeedRangeQueue.ts index 56b1bf5231f6..a2a913b7533f 100644 --- a/sdk/cosmosdb/cosmos/src/client/ChangeFeed/FeedRangeQueue.ts +++ b/sdk/cosmosdb/cosmos/src/client/ChangeFeed/FeedRangeQueue.ts @@ -50,7 +50,7 @@ export class FeedRangeQueue { const feedRangeElement = new ChangeFeedRange( minInclusive, maxExclusive, - element.continuationToken + element.continuationToken, ); allFeedRanges.push(feedRangeElement); }); diff --git a/sdk/cosmosdb/cosmos/src/client/ChangeFeed/changeFeedIteratorBuilder.ts b/sdk/cosmosdb/cosmos/src/client/ChangeFeed/changeFeedIteratorBuilder.ts index 5edcf029d752..e0d1451cf8d4 100644 --- a/sdk/cosmosdb/cosmos/src/client/ChangeFeed/changeFeedIteratorBuilder.ts +++ b/sdk/cosmosdb/cosmos/src/client/ChangeFeed/changeFeedIteratorBuilder.ts @@ -23,7 +23,7 @@ export function changeFeedIteratorBuilder( cfOptions: ChangeFeedIteratorOptions, clientContext: ClientContext, container: Container, - partitionKeyRangeCache: PartitionKeyRangeCache + partitionKeyRangeCache: PartitionKeyRangeCache, ): any { const url = container.url; const path = getPathFromLink(url, ResourceType.item); @@ -40,7 +40,7 @@ export function changeFeedIteratorBuilder( const resourceType = changeFeedStartFrom.getResourceType(); const internalCfOptions = buildInternalChangeFeedOptions( cfOptions, - changeFeedStartFrom.getCfResource() + changeFeedStartFrom.getCfResource(), ); if ( @@ -53,7 +53,7 @@ export function changeFeedIteratorBuilder( id, path, continuationToken.partitionKey, - internalCfOptions + internalCfOptions, ); } else if (resourceType === ChangeFeedResourceType.FeedRange) { return new ChangeFeedForEpkRange( @@ -64,7 +64,7 @@ export function changeFeedIteratorBuilder( path, url, internalCfOptions, - undefined + undefined, ); } else { throw new ErrorResponse("Invalid continuation token."); @@ -84,7 +84,7 @@ export function changeFeedIteratorBuilder( id, path, cfResource as PartitionKey, - internalCfOptions + internalCfOptions, ); } else { let internalCfResource: QueryRange; @@ -93,14 +93,14 @@ export function changeFeedIteratorBuilder( Constants.EffectivePartitionKeyConstants.MinimumInclusiveEffectivePartitionKey, Constants.EffectivePartitionKeyConstants.MaximumExclusiveEffectivePartitionKey, true, - false + false, ); } else if (isEpkRange(cfResource)) { internalCfResource = new QueryRange( (cfResource as FeedRangeInternal).minInclusive, (cfResource as FeedRangeInternal).maxExclusive, true, - false + false, ); } else { throw new ErrorResponse("Invalid feed range."); @@ -113,7 +113,7 @@ export function changeFeedIteratorBuilder( path, url, internalCfOptions, - internalCfResource + internalCfResource, ); } } else { diff --git a/sdk/cosmosdb/cosmos/src/client/ChangeFeed/changeFeedUtils.ts b/sdk/cosmosdb/cosmos/src/client/ChangeFeed/changeFeedUtils.ts index 52fa9ccd3aba..de627e4be52a 100644 --- a/sdk/cosmosdb/cosmos/src/client/ChangeFeed/changeFeedUtils.ts +++ b/sdk/cosmosdb/cosmos/src/client/ChangeFeed/changeFeedUtils.ts @@ -47,7 +47,7 @@ function isChangeFeedIteratorOptions(options: unknown): options is ChangeFeedIte */ export async function extractOverlappingRanges( epkRange: QueryRange, - overLappingRange: PartitionKeyRange + overLappingRange: PartitionKeyRange, ): Promise<[string, string]> { if ( overLappingRange.minInclusive >= epkRange.min && @@ -97,7 +97,7 @@ export function isEpkRange(obj: unknown): boolean { export function buildInternalChangeFeedOptions( options: ChangeFeedIteratorOptions, continuationToken?: string, - startTime?: Date + startTime?: Date, ): InternalChangeFeedIteratorOptions { const internalCfOptions = {} as InternalChangeFeedIteratorOptions; internalCfOptions.maxItemCount = options?.maxItemCount; diff --git a/sdk/cosmosdb/cosmos/src/client/ClientUtils.ts b/sdk/cosmosdb/cosmos/src/client/ClientUtils.ts index 5ef26f763e35..de5385e48906 100644 --- a/sdk/cosmosdb/cosmos/src/client/ClientUtils.ts +++ b/sdk/cosmosdb/cosmos/src/client/ClientUtils.ts @@ -7,7 +7,7 @@ import { Container } from "./Container"; export async function readPartitionKeyDefinition( diagnosticNode: DiagnosticNodeInternal, - container: Container + container: Container, ): Promise { const partitionKeyDefinition = await container.readPartitionKeyDefinition(diagnosticNode); return partitionKeyDefinition.resource; diff --git a/sdk/cosmosdb/cosmos/src/client/Conflict/Conflict.ts b/sdk/cosmosdb/cosmos/src/client/Conflict/Conflict.ts index 1b217eaea86d..116f59165756 100644 --- a/sdk/cosmosdb/cosmos/src/client/Conflict/Conflict.ts +++ b/sdk/cosmosdb/cosmos/src/client/Conflict/Conflict.ts @@ -33,7 +33,7 @@ export class Conflict { public readonly container: Container, public readonly id: string, private readonly clientContext: ClientContext, - private partitionKey?: PartitionKey + private partitionKey?: PartitionKey, ) { this.partitionKey = partitionKey; } @@ -59,7 +59,7 @@ export class Conflict { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -72,7 +72,7 @@ export class Conflict { if (this.partitionKey === undefined) { const partitionKeyDefinition = await readPartitionKeyDefinition( diagnosticNode, - this.container + this.container, ); this.partitionKey = undefinedPartitionKey(partitionKeyDefinition); } @@ -92,7 +92,7 @@ export class Conflict { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } diff --git a/sdk/cosmosdb/cosmos/src/client/Conflict/ConflictResponse.ts b/sdk/cosmosdb/cosmos/src/client/Conflict/ConflictResponse.ts index e81e32b3de4c..a7c7bc5a7c09 100644 --- a/sdk/cosmosdb/cosmos/src/client/Conflict/ConflictResponse.ts +++ b/sdk/cosmosdb/cosmos/src/client/Conflict/ConflictResponse.ts @@ -13,7 +13,7 @@ export class ConflictResponse extends ResourceResponse { const path = getPathFromLink(this.url); const id = getIdFromLink(this.url); @@ -158,14 +158,14 @@ export class Container { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); } /** Replace the container's definition */ public async replace( body: ContainerDefinition, - options?: RequestOptions + options?: RequestOptions, ): Promise { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { const err = {}; @@ -188,7 +188,7 @@ export class Container { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -211,7 +211,7 @@ export class Container { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -231,7 +231,7 @@ export class Container { * @hidden */ public async readPartitionKeyDefinition( - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise> { // $ISSUE-felixfan-2016-03-17: Make name based path and link based path use the same key // $ISSUE-felixfan-2016-03-17: Refresh partitionKeyDefinitionCache when necessary @@ -241,7 +241,7 @@ export class Container { this.clientContext.partitionKeyDefinitionCache[this.url], {}, 0, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); } @@ -250,14 +250,14 @@ export class Container { return this.readInternal(node); }, diagnosticNode, - MetadataLookUpType.ContainerLookUp + MetadataLookUpType.ContainerLookUp, ); return new ResourceResponse( this.clientContext.partitionKeyDefinitionCache[this.url], headers, statusCode, - diagnostics + diagnostics, ); } @@ -287,13 +287,13 @@ export class Container { response.headers, response.code, getEmptyCosmosDiagnostics(), - offer + offer, ); }, this.clientContext); } public async getQueryPlan( - query: string | SqlQuerySpec + query: string | SqlQuerySpec, ): Promise> { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { const path = getPathFromLink(this.url); @@ -304,7 +304,7 @@ export class Container { getIdFromLink(this.url), query, {}, - diagnosticNode + diagnosticNode, ); }, this.clientContext); } @@ -337,7 +337,7 @@ export class Container { */ public async deleteAllItemsForPartitionKey( partitionKey: PartitionKey, - options?: RequestOptions + options?: RequestOptions, ): Promise { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { let path = getPathFromLink(this.url); @@ -357,7 +357,7 @@ export class Container { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } diff --git a/sdk/cosmosdb/cosmos/src/client/Container/ContainerResponse.ts b/sdk/cosmosdb/cosmos/src/client/Container/ContainerResponse.ts index baf627c1bcc9..1e7e9e814606 100644 --- a/sdk/cosmosdb/cosmos/src/client/Container/ContainerResponse.ts +++ b/sdk/cosmosdb/cosmos/src/client/Container/ContainerResponse.ts @@ -14,7 +14,7 @@ export class ContainerResponse extends ResourceResponse { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { return this.createInternal(diagnosticNode, body, options); @@ -124,7 +127,7 @@ export class Containers { public async createInternal( diagnosticNode: DiagnosticNodeInternal, body: ContainerRequest, - options: RequestOptions = {} + options: RequestOptions = {}, ): Promise { const err = {}; if (!isResourceValid(body, err)) { @@ -194,7 +197,7 @@ export class Containers { response.headers, response.code, ref, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); } @@ -219,7 +222,7 @@ export class Containers { */ public async createIfNotExists( body: ContainerRequest, - options?: RequestOptions + options?: RequestOptions, ): Promise { if (!body || body.id === null || body.id === undefined) { throw new Error("body parameter must be an object with an id property"); diff --git a/sdk/cosmosdb/cosmos/src/client/Database/Database.ts b/sdk/cosmosdb/cosmos/src/client/Database/Database.ts index 6e56ed6428fc..7fb58108cf3e 100644 --- a/sdk/cosmosdb/cosmos/src/client/Database/Database.ts +++ b/sdk/cosmosdb/cosmos/src/client/Database/Database.ts @@ -61,7 +61,7 @@ export class Database { constructor( public readonly client: CosmosClient, public readonly id: string, - private clientContext: ClientContext + private clientContext: ClientContext, ) { this.containers = new Containers(this, this.clientContext); this.users = new Users(this, this.clientContext); @@ -102,7 +102,7 @@ export class Database { */ public async readInternal( diagnosticNode: DiagnosticNodeInternal, - options?: RequestOptions + options?: RequestOptions, ): Promise { const path = getPathFromLink(this.url); const id = getIdFromLink(this.url); @@ -118,7 +118,7 @@ export class Database { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); } @@ -140,7 +140,7 @@ export class Database { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -155,7 +155,7 @@ export class Database { return this.readInternal(node); }, diagnosticNode, - MetadataLookUpType.DatabaseLookUp + MetadataLookUpType.DatabaseLookUp, ); const path = "/offers"; @@ -178,7 +178,7 @@ export class Database { response.headers, response.code, getEmptyCosmosDiagnostics(), - offer + offer, ); }, this.clientContext); } diff --git a/sdk/cosmosdb/cosmos/src/client/Database/DatabaseResponse.ts b/sdk/cosmosdb/cosmos/src/client/Database/DatabaseResponse.ts index 0034b76b4b81..214bba4d3602 100644 --- a/sdk/cosmosdb/cosmos/src/client/Database/DatabaseResponse.ts +++ b/sdk/cosmosdb/cosmos/src/client/Database/DatabaseResponse.ts @@ -14,7 +14,7 @@ export class DatabaseResponse extends ResourceResponse { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { return this.createInternal(diagnosticNode, body, options); @@ -113,7 +113,7 @@ export class Databases { public async createInternal( diagnosticNode: DiagnosticNodeInternal, body: DatabaseRequest, - options: RequestOptions = {} + options: RequestOptions = {}, ): Promise { const err = {}; if (!isResourceValid(body, err)) { @@ -166,7 +166,7 @@ export class Databases { response.headers, response.code, ref, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); } @@ -187,7 +187,7 @@ export class Databases { */ public async createIfNotExists( body: DatabaseRequest, - options?: RequestOptions + options?: RequestOptions, ): Promise { if (!body || body.id === null || body.id === undefined) { throw new Error("body parameter must be an object with an id property"); diff --git a/sdk/cosmosdb/cosmos/src/client/Item/Item.ts b/sdk/cosmosdb/cosmos/src/client/Item/Item.ts index d64cb67a4b87..4968b7e43432 100644 --- a/sdk/cosmosdb/cosmos/src/client/Item/Item.ts +++ b/sdk/cosmosdb/cosmos/src/client/Item/Item.ts @@ -45,7 +45,7 @@ export class Item { public readonly container: Container, public readonly id: string, private readonly clientContext: ClientContext, - partitionKey?: PartitionKey + partitionKey?: PartitionKey, ) { this.partitionKey = partitionKey === undefined ? undefined : convertToInternalPartitionKey(partitionKey); @@ -76,13 +76,13 @@ export class Item { * ``` */ public async read( - options: RequestOptions = {} + options: RequestOptions = {}, ): Promise> { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { if (this.partitionKey === undefined) { const partitionKeyDefinition = await readPartitionKeyDefinition( diagnosticNode, - this.container + this.container, ); this.partitionKey = undefinedPartitionKey(partitionKeyDefinition); } @@ -112,7 +112,7 @@ export class Item { response.code, response.substatus, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -127,7 +127,7 @@ export class Item { */ public replace( body: ItemDefinition, - options?: RequestOptions + options?: RequestOptions, ): Promise>; /** * Replace the item's definition. @@ -142,17 +142,17 @@ export class Item { */ public replace( body: T, - options?: RequestOptions + options?: RequestOptions, ): Promise>; public async replace( body: T, - options: RequestOptions = {} + options: RequestOptions = {}, ): Promise> { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { if (this.partitionKey === undefined) { const partitionKeyResponse = await readPartitionKeyDefinition( diagnosticNode, - this.container + this.container, ); this.partitionKey = extractPartitionKeys(body, partitionKeyResponse); } @@ -180,7 +180,7 @@ export class Item { response.code, response.substatus, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -194,13 +194,13 @@ export class Item { * @param options - Additional options for the request */ public async delete( - options: RequestOptions = {} + options: RequestOptions = {}, ): Promise> { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { if (this.partitionKey === undefined) { const partitionKeyResponse = await readPartitionKeyDefinition( diagnosticNode, - this.container + this.container, ); this.partitionKey = undefinedPartitionKey(partitionKeyResponse); } @@ -223,7 +223,7 @@ export class Item { response.code, response.substatus, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -238,13 +238,13 @@ export class Item { */ public async patch( body: PatchRequestBody, - options: RequestOptions = {} + options: RequestOptions = {}, ): Promise> { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { if (this.partitionKey === undefined) { const partitionKeyResponse = await readPartitionKeyDefinition( diagnosticNode, - this.container + this.container, ); this.partitionKey = extractPartitionKeys(body, partitionKeyResponse); } @@ -268,7 +268,7 @@ export class Item { response.code, response.substatus, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } diff --git a/sdk/cosmosdb/cosmos/src/client/Item/ItemResponse.ts b/sdk/cosmosdb/cosmos/src/client/Item/ItemResponse.ts index e7450d82eb80..57c1858d53b4 100644 --- a/sdk/cosmosdb/cosmos/src/client/Item/ItemResponse.ts +++ b/sdk/cosmosdb/cosmos/src/client/Item/ItemResponse.ts @@ -14,7 +14,7 @@ export class ItemResponse extends ResourceResponse { const response = await this.clientContext.queryFeed({ path, @@ -128,7 +131,7 @@ export class Items { options, fetchFunction, this.container.url, - ResourceType.item + ResourceType.item, ); } @@ -147,7 +150,7 @@ export class Items { */ public readChangeFeed( partitionKey: PartitionKey, - changeFeedOptions?: ChangeFeedOptions + changeFeedOptions?: ChangeFeedOptions, ): ChangeFeedIterator; /** * Create a `ChangeFeedIterator` to iterate over pages of changes @@ -161,7 +164,7 @@ export class Items { */ public readChangeFeed( partitionKey: PartitionKey, - changeFeedOptions?: ChangeFeedOptions + changeFeedOptions?: ChangeFeedOptions, ): ChangeFeedIterator; /** * Create a `ChangeFeedIterator` to iterate over pages of changes @@ -170,7 +173,7 @@ export class Items { public readChangeFeed(changeFeedOptions?: ChangeFeedOptions): ChangeFeedIterator; public readChangeFeed( partitionKeyOrChangeFeedOptions?: PartitionKey | ChangeFeedOptions, - changeFeedOptions?: ChangeFeedOptions + changeFeedOptions?: ChangeFeedOptions, ): ChangeFeedIterator { if (isChangeFeedOptions(partitionKeyOrChangeFeedOptions)) { return this.changeFeed(partitionKeyOrChangeFeedOptions); @@ -192,7 +195,7 @@ export class Items { */ public changeFeed( partitionKey: PartitionKey, - changeFeedOptions?: ChangeFeedOptions + changeFeedOptions?: ChangeFeedOptions, ): ChangeFeedIterator; /** * Create a `ChangeFeedIterator` to iterate over pages of changes @@ -203,7 +206,7 @@ export class Items { */ public changeFeed( partitionKey: PartitionKey, - changeFeedOptions?: ChangeFeedOptions + changeFeedOptions?: ChangeFeedOptions, ): ChangeFeedIterator; /** * Create a `ChangeFeedIterator` to iterate over pages of changes @@ -211,7 +214,7 @@ export class Items { public changeFeed(changeFeedOptions?: ChangeFeedOptions): ChangeFeedIterator; public changeFeed( partitionKeyOrChangeFeedOptions?: PartitionKey | ChangeFeedOptions, - changeFeedOptions?: ChangeFeedOptions + changeFeedOptions?: ChangeFeedOptions, ): ChangeFeedIterator { let partitionKey: PartitionKey; if (!changeFeedOptions && isChangeFeedOptions(partitionKeyOrChangeFeedOptions)) { @@ -237,7 +240,7 @@ export class Items { * Returns an iterator to iterate over pages of changes. The iterator returned can be used to fetch changes for a single partition key, feed range or an entire container. */ public getChangeFeedIterator( - changeFeedIteratorOptions?: ChangeFeedIteratorOptions + changeFeedIteratorOptions?: ChangeFeedIteratorOptions, ): ChangeFeedPullModelIterator { const cfOptions = changeFeedIteratorOptions !== undefined ? changeFeedIteratorOptions : {}; validateChangeFeedIteratorOptions(cfOptions); @@ -245,7 +248,7 @@ export class Items { cfOptions, this.clientContext, this.container, - this.partitionKeyRangeCache + this.partitionKeyRangeCache, ); return iterator; } @@ -294,7 +297,7 @@ export class Items { */ public async create( body: T, - options: RequestOptions = {} + options: RequestOptions = {}, ): Promise> { // Generate random document id if the id is missing in the payload and // options.disableAutomaticIdGeneration != true @@ -305,7 +308,7 @@ export class Items { } const partitionKeyDefinition = await readPartitionKeyDefinition( diagnosticNode, - this.container + this.container, ); const partitionKey = extractPartitionKeys(body, partitionKeyDefinition); @@ -331,7 +334,7 @@ export class Items { this.container, (response.result as any).id, this.clientContext, - partitionKey + partitionKey, ); return new ItemResponse( response.result, @@ -339,7 +342,7 @@ export class Items { response.code, response.substatus, ref, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -354,7 +357,7 @@ export class Items { */ public async upsert( body: unknown, - options?: RequestOptions + options?: RequestOptions, ): Promise>; /** * Upsert an item. @@ -369,11 +372,11 @@ export class Items { */ public async upsert( body: T, - options?: RequestOptions + options?: RequestOptions, ): Promise>; public async upsert( body: T, - options: RequestOptions = {} + options: RequestOptions = {}, ): Promise> { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { // Generate random document id if the id is missing in the payload and @@ -384,7 +387,7 @@ export class Items { const partitionKeyDefinition = await readPartitionKeyDefinition( diagnosticNode, - this.container + this.container, ); const partitionKey = extractPartitionKeys(body, partitionKeyDefinition); @@ -410,7 +413,7 @@ export class Items { this.container, (response.result as any).id, this.clientContext, - partitionKey + partitionKey, ); return new ItemResponse( response.result, @@ -418,7 +421,7 @@ export class Items { response.code, response.substatus, ref, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -454,7 +457,7 @@ export class Items { public async bulk( operations: OperationInput[], bulkOptions?: BulkOptions, - options?: RequestOptions + options?: RequestOptions, ): Promise { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { const { resources: partitionKeyRanges } = await this.container @@ -462,7 +465,7 @@ export class Items { .fetchAll(); const partitionKeyDefinition = await readPartitionKeyDefinition( diagnosticNode, - this.container + this.container, ); const batches: Batch[] = partitionKeyRanges.map((keyRange: PartitionKeyRange) => { return { @@ -486,7 +489,7 @@ export class Items { .map(async (batch: Batch) => { if (batch.operations.length > 100) { throw new Error( - "Cannot run bulk request with more than 100 operations per partition" + "Cannot run bulk request with more than 100 operations per partition", ); } try { @@ -502,7 +505,7 @@ export class Items { diagnosticNode: childNode, }), diagnosticNode, - DiagnosticNodeType.BATCH_REQUEST + DiagnosticNodeType.BATCH_REQUEST, ); response.result.forEach((operationResponse: OperationResponse, index: number) => { orderedResponses[batch.indexes[index]] = operationResponse; @@ -514,12 +517,12 @@ export class Items { if (err.code === 410) { throw new Error( "Partition key error. Either the partitions have split or an operation has an unsupported partitionKey type" + - err.message + err.message, ); } throw new Error(`Bulk request errored with: ${err.message}`); } - }) + }), ); const response: any = orderedResponses; response.diagnostics = diagnosticNode.toDiagnostic(this.clientContext.getClientConfig()); @@ -538,26 +541,26 @@ export class Items { operations: OperationInput[], partitionDefinition: PartitionKeyDefinition, options: RequestOptions | undefined, - batches: Batch[] + batches: Batch[], ) { operations.forEach((operationInput, index: number) => { const { operation, partitionKey } = prepareOperations( operationInput, partitionDefinition, - options + options, ); const hashed = hashPartitionKey( assertNotUndefined( partitionKey, - "undefined value for PartitionKey is not expected during grouping of bulk operations." + "undefined value for PartitionKey is not expected during grouping of bulk operations.", ), - partitionDefinition + partitionDefinition, ); const batchForKey = assertNotUndefined( batches.find((batch: Batch) => { return isKeyInRange(batch.min, batch.max, hashed); }), - "No suitable Batch found." + "No suitable Batch found.", ); batchForKey.operations.push(operation); batchForKey.indexes.push(index); @@ -594,7 +597,7 @@ export class Items { public async batch( operations: OperationInput[], partitionKey?: PartitionKey, - options?: RequestOptions + options?: RequestOptions, ): Promise> { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { operations.map((operation) => decorateBatchOperation(operation, options)); diff --git a/sdk/cosmosdb/cosmos/src/client/Offer/Offer.ts b/sdk/cosmosdb/cosmos/src/client/Offer/Offer.ts index f3ffff9614ff..b5a3daf115d7 100644 --- a/sdk/cosmosdb/cosmos/src/client/Offer/Offer.ts +++ b/sdk/cosmosdb/cosmos/src/client/Offer/Offer.ts @@ -29,7 +29,7 @@ export class Offer { constructor( public readonly client: CosmosClient, public readonly id: string, - private readonly clientContext: ClientContext + private readonly clientContext: ClientContext, ) {} /** @@ -49,7 +49,7 @@ export class Offer { response.headers, response.code, getEmptyCosmosDiagnostics(), - this + this, ); }, this.clientContext); } @@ -77,7 +77,7 @@ export class Offer { response.headers, response.code, getEmptyCosmosDiagnostics(), - this + this, ); }, this.clientContext); } diff --git a/sdk/cosmosdb/cosmos/src/client/Offer/OfferResponse.ts b/sdk/cosmosdb/cosmos/src/client/Offer/OfferResponse.ts index eef7616312c1..6e43cbc0f144 100644 --- a/sdk/cosmosdb/cosmos/src/client/Offer/OfferResponse.ts +++ b/sdk/cosmosdb/cosmos/src/client/Offer/OfferResponse.ts @@ -13,7 +13,7 @@ export class OfferResponse extends ResourceResponse headers: CosmosHeaders, statusCode: number, diagnostics: CosmosDiagnostics, - offer?: Offer + offer?: Offer, ) { super(resource, headers, statusCode, diagnostics); this.offer = offer; diff --git a/sdk/cosmosdb/cosmos/src/client/Offer/Offers.ts b/sdk/cosmosdb/cosmos/src/client/Offer/Offers.ts index 300f13efac84..03c95c79e184 100644 --- a/sdk/cosmosdb/cosmos/src/client/Offer/Offers.ts +++ b/sdk/cosmosdb/cosmos/src/client/Offer/Offers.ts @@ -21,7 +21,7 @@ export class Offers { */ constructor( public readonly client: CosmosClient, - private readonly clientContext: ClientContext + private readonly clientContext: ClientContext, ) {} /** diff --git a/sdk/cosmosdb/cosmos/src/client/Permission/Permission.ts b/sdk/cosmosdb/cosmos/src/client/Permission/Permission.ts index 8c34853b7c22..270144f51685 100644 --- a/sdk/cosmosdb/cosmos/src/client/Permission/Permission.ts +++ b/sdk/cosmosdb/cosmos/src/client/Permission/Permission.ts @@ -36,7 +36,7 @@ export class Permission { constructor( public readonly user: User, public readonly id: string, - private readonly clientContext: ClientContext + private readonly clientContext: ClientContext, ) {} /** @@ -59,7 +59,7 @@ export class Permission { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -70,7 +70,7 @@ export class Permission { */ public async replace( body: PermissionDefinition, - options?: RequestOptions + options?: RequestOptions, ): Promise { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { const err = {}; @@ -93,7 +93,7 @@ export class Permission { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -117,7 +117,7 @@ export class Permission { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } diff --git a/sdk/cosmosdb/cosmos/src/client/Permission/PermissionResponse.ts b/sdk/cosmosdb/cosmos/src/client/Permission/PermissionResponse.ts index f2b3561995a1..ac6f4c84831e 100644 --- a/sdk/cosmosdb/cosmos/src/client/Permission/PermissionResponse.ts +++ b/sdk/cosmosdb/cosmos/src/client/Permission/PermissionResponse.ts @@ -16,7 +16,7 @@ export class PermissionResponse extends ResourceResponse< headers: CosmosHeaders, statusCode: number, permission: Permission, - diagnostics: CosmosDiagnostics + diagnostics: CosmosDiagnostics, ) { super(resource, headers, statusCode, diagnostics); this.permission = permission; diff --git a/sdk/cosmosdb/cosmos/src/client/Permission/Permissions.ts b/sdk/cosmosdb/cosmos/src/client/Permission/Permissions.ts index 2ae5c40563c4..4007005fc74d 100644 --- a/sdk/cosmosdb/cosmos/src/client/Permission/Permissions.ts +++ b/sdk/cosmosdb/cosmos/src/client/Permission/Permissions.ts @@ -24,7 +24,10 @@ export class Permissions { * @hidden * @param user - The parent {@link User}. */ - constructor(public readonly user: User, private readonly clientContext: ClientContext) {} + constructor( + public readonly user: User, + private readonly clientContext: ClientContext, + ) {} /** * Query all permissions. @@ -73,7 +76,7 @@ export class Permissions { */ public async create( body: PermissionDefinition, - options?: RequestOptions + options?: RequestOptions, ): Promise { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { const err = {}; @@ -98,7 +101,7 @@ export class Permissions { response.headers, response.code, ref, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -111,7 +114,7 @@ export class Permissions { */ public async upsert( body: PermissionDefinition, - options?: RequestOptions + options?: RequestOptions, ): Promise { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { const err = {}; @@ -136,7 +139,7 @@ export class Permissions { response.headers, response.code, ref, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } diff --git a/sdk/cosmosdb/cosmos/src/client/Script/Scripts.ts b/sdk/cosmosdb/cosmos/src/client/Script/Scripts.ts index 7db9340fc13c..dbed19953177 100644 --- a/sdk/cosmosdb/cosmos/src/client/Script/Scripts.ts +++ b/sdk/cosmosdb/cosmos/src/client/Script/Scripts.ts @@ -13,7 +13,7 @@ export class Scripts { */ constructor( public readonly container: Container, - private readonly clientContext: ClientContext + private readonly clientContext: ClientContext, ) {} /** diff --git a/sdk/cosmosdb/cosmos/src/client/StoredProcedure/StoredProcedure.ts b/sdk/cosmosdb/cosmos/src/client/StoredProcedure/StoredProcedure.ts index 042aa5c92ae6..cbfe50cab6f1 100644 --- a/sdk/cosmosdb/cosmos/src/client/StoredProcedure/StoredProcedure.ts +++ b/sdk/cosmosdb/cosmos/src/client/StoredProcedure/StoredProcedure.ts @@ -39,7 +39,7 @@ export class StoredProcedure { constructor( public readonly container: Container, public readonly id: string, - private readonly clientContext: ClientContext + private readonly clientContext: ClientContext, ) {} /** @@ -62,7 +62,7 @@ export class StoredProcedure { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -73,7 +73,7 @@ export class StoredProcedure { */ public async replace( body: StoredProcedureDefinition, - options?: RequestOptions + options?: RequestOptions, ): Promise { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { if (body.body) { @@ -101,7 +101,7 @@ export class StoredProcedure { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -126,7 +126,7 @@ export class StoredProcedure { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -144,13 +144,13 @@ export class StoredProcedure { public async execute( partitionKey: PartitionKey, params?: any[], - options?: RequestOptions + options?: RequestOptions, ): Promise> { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { if (partitionKey === undefined) { const partitionKeyResponse = await readPartitionKeyDefinition( diagnosticNode, - this.container + this.container, ); partitionKey = undefinedPartitionKey(partitionKeyResponse); } @@ -165,7 +165,7 @@ export class StoredProcedure { response.result, response.headers, response.code, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } diff --git a/sdk/cosmosdb/cosmos/src/client/StoredProcedure/StoredProcedureResponse.ts b/sdk/cosmosdb/cosmos/src/client/StoredProcedure/StoredProcedureResponse.ts index 1c37abefd2eb..7ded57f6fbe6 100644 --- a/sdk/cosmosdb/cosmos/src/client/StoredProcedure/StoredProcedureResponse.ts +++ b/sdk/cosmosdb/cosmos/src/client/StoredProcedure/StoredProcedureResponse.ts @@ -15,7 +15,7 @@ export class StoredProcedureResponse extends ResourceResponse< headers: CosmosHeaders, statusCode: number, storedProcedure: StoredProcedure, - diagnostics: CosmosDiagnostics + diagnostics: CosmosDiagnostics, ) { super(resource, headers, statusCode, diagnostics); this.storedProcedure = storedProcedure; diff --git a/sdk/cosmosdb/cosmos/src/client/StoredProcedure/StoredProcedures.ts b/sdk/cosmosdb/cosmos/src/client/StoredProcedure/StoredProcedures.ts index 3f390d4da8e7..666dc0577d6b 100644 --- a/sdk/cosmosdb/cosmos/src/client/StoredProcedure/StoredProcedures.ts +++ b/sdk/cosmosdb/cosmos/src/client/StoredProcedure/StoredProcedures.ts @@ -25,7 +25,7 @@ export class StoredProcedures { */ constructor( public readonly container: Container, - private readonly clientContext: ClientContext + private readonly clientContext: ClientContext, ) {} /** @@ -97,7 +97,7 @@ export class StoredProcedures { */ public async create( body: StoredProcedureDefinition, - options?: RequestOptions + options?: RequestOptions, ): Promise { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { if (body.body) { @@ -126,7 +126,7 @@ export class StoredProcedures { response.headers, response.code, ref, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } diff --git a/sdk/cosmosdb/cosmos/src/client/Trigger/Trigger.ts b/sdk/cosmosdb/cosmos/src/client/Trigger/Trigger.ts index 364f5d9c57fb..2e244238ff43 100644 --- a/sdk/cosmosdb/cosmos/src/client/Trigger/Trigger.ts +++ b/sdk/cosmosdb/cosmos/src/client/Trigger/Trigger.ts @@ -36,7 +36,7 @@ export class Trigger { constructor( public readonly container: Container, public readonly id: string, - private readonly clientContext: ClientContext + private readonly clientContext: ClientContext, ) {} /** @@ -59,7 +59,7 @@ export class Trigger { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -70,7 +70,7 @@ export class Trigger { */ public async replace( body: TriggerDefinition, - options?: RequestOptions + options?: RequestOptions, ): Promise { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { if (body.body) { @@ -98,7 +98,7 @@ export class Trigger { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -123,7 +123,7 @@ export class Trigger { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } diff --git a/sdk/cosmosdb/cosmos/src/client/Trigger/TriggerResponse.ts b/sdk/cosmosdb/cosmos/src/client/Trigger/TriggerResponse.ts index 07105f1d658e..940e7fc6759e 100644 --- a/sdk/cosmosdb/cosmos/src/client/Trigger/TriggerResponse.ts +++ b/sdk/cosmosdb/cosmos/src/client/Trigger/TriggerResponse.ts @@ -13,7 +13,7 @@ export class TriggerResponse extends ResourceResponse { headers: CosmosHeaders, statusCode: number, user: User, - diagnostics: CosmosDiagnostics + diagnostics: CosmosDiagnostics, ) { super(resource, headers, statusCode, diagnostics); this.user = user; diff --git a/sdk/cosmosdb/cosmos/src/client/User/Users.ts b/sdk/cosmosdb/cosmos/src/client/User/Users.ts index 2de963986141..fdeab751582f 100644 --- a/sdk/cosmosdb/cosmos/src/client/User/Users.ts +++ b/sdk/cosmosdb/cosmos/src/client/User/Users.ts @@ -23,7 +23,10 @@ export class Users { * @hidden * @param database - The parent {@link Database}. */ - constructor(public readonly database: Database, private readonly clientContext: ClientContext) {} + constructor( + public readonly database: Database, + private readonly clientContext: ClientContext, + ) {} /** * Query all users. @@ -89,7 +92,7 @@ export class Users { response.headers, response.code, ref, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -122,7 +125,7 @@ export class Users { response.headers, response.code, ref, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } diff --git a/sdk/cosmosdb/cosmos/src/client/UserDefinedFunction/UserDefinedFunction.ts b/sdk/cosmosdb/cosmos/src/client/UserDefinedFunction/UserDefinedFunction.ts index 3369a078b0a2..d98b6dd82120 100644 --- a/sdk/cosmosdb/cosmos/src/client/UserDefinedFunction/UserDefinedFunction.ts +++ b/sdk/cosmosdb/cosmos/src/client/UserDefinedFunction/UserDefinedFunction.ts @@ -35,7 +35,7 @@ export class UserDefinedFunction { constructor( public readonly container: Container, public readonly id: string, - private readonly clientContext: ClientContext + private readonly clientContext: ClientContext, ) {} /** @@ -58,7 +58,7 @@ export class UserDefinedFunction { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -69,7 +69,7 @@ export class UserDefinedFunction { */ public async replace( body: UserDefinedFunctionDefinition, - options?: RequestOptions + options?: RequestOptions, ): Promise { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { if (body.body) { @@ -97,7 +97,7 @@ export class UserDefinedFunction { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -122,7 +122,7 @@ export class UserDefinedFunction { response.headers, response.code, this, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } diff --git a/sdk/cosmosdb/cosmos/src/client/UserDefinedFunction/UserDefinedFunctionResponse.ts b/sdk/cosmosdb/cosmos/src/client/UserDefinedFunction/UserDefinedFunctionResponse.ts index 351bd18987b6..a20a247bbbf5 100644 --- a/sdk/cosmosdb/cosmos/src/client/UserDefinedFunction/UserDefinedFunctionResponse.ts +++ b/sdk/cosmosdb/cosmos/src/client/UserDefinedFunction/UserDefinedFunctionResponse.ts @@ -15,7 +15,7 @@ export class UserDefinedFunctionResponse extends ResourceResponse< headers: CosmosHeaders, statusCode: number, udf: UserDefinedFunction, - diagnostics: CosmosDiagnostics + diagnostics: CosmosDiagnostics, ) { super(resource, headers, statusCode, diagnostics); this.userDefinedFunction = udf; diff --git a/sdk/cosmosdb/cosmos/src/client/UserDefinedFunction/UserDefinedFunctions.ts b/sdk/cosmosdb/cosmos/src/client/UserDefinedFunction/UserDefinedFunctions.ts index a1ac36fc35d8..1078cedd0827 100644 --- a/sdk/cosmosdb/cosmos/src/client/UserDefinedFunction/UserDefinedFunctions.ts +++ b/sdk/cosmosdb/cosmos/src/client/UserDefinedFunction/UserDefinedFunctions.ts @@ -25,7 +25,7 @@ export class UserDefinedFunctions { */ constructor( public readonly container: Container, - private readonly clientContext: ClientContext + private readonly clientContext: ClientContext, ) {} /** @@ -76,7 +76,7 @@ export class UserDefinedFunctions { */ public async create( body: UserDefinedFunctionDefinition, - options?: RequestOptions + options?: RequestOptions, ): Promise { return withDiagnostics(async (diagnosticNode: DiagnosticNodeInternal) => { if (body.body) { @@ -105,7 +105,7 @@ export class UserDefinedFunctions { response.headers, response.code, ref, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } diff --git a/sdk/cosmosdb/cosmos/src/common/helper.ts b/sdk/cosmosdb/cosmos/src/common/helper.ts index dd934914085c..8224e4f6d105 100644 --- a/sdk/cosmosdb/cosmos/src/common/helper.ts +++ b/sdk/cosmosdb/cosmos/src/common/helper.ts @@ -350,7 +350,7 @@ export function parseConnectionString(connectionString: string): CosmosClientOpt (connectionObject as any)[key] = value.join("="); return connectionObject; }, - {} as ConnectionObject + {} as ConnectionObject, ); if (!AccountEndpoint || !AccountKey) { throw new Error("Could not parse the provided connection string"); diff --git a/sdk/cosmosdb/cosmos/src/common/uriFactory.ts b/sdk/cosmosdb/cosmos/src/common/uriFactory.ts index b988730983e9..9edc71553641 100644 --- a/sdk/cosmosdb/cosmos/src/common/uriFactory.ts +++ b/sdk/cosmosdb/cosmos/src/common/uriFactory.ts @@ -71,7 +71,7 @@ export function createUserUri(databaseId: string, userId: string): string { export function createDocumentUri( databaseId: string, collectionId: string, - documentId: string + documentId: string, ): string { documentId = trimSlashFromLeftAndRight(documentId); validateItemResourceId(documentId); @@ -98,7 +98,7 @@ export function createDocumentUri( export function createPermissionUri( databaseId: string, userId: string, - permissionId: string + permissionId: string, ): string { permissionId = trimSlashFromLeftAndRight(permissionId); validateResourceId(permissionId); @@ -127,7 +127,7 @@ export function createPermissionUri( export function createStoredProcedureUri( databaseId: string, collectionId: string, - storedProcedureId: string + storedProcedureId: string, ): string { storedProcedureId = trimSlashFromLeftAndRight(storedProcedureId); validateResourceId(storedProcedureId); @@ -155,7 +155,7 @@ export function createStoredProcedureUri( export function createTriggerUri( databaseId: string, collectionId: string, - triggerId: string + triggerId: string, ): string { triggerId = trimSlashFromLeftAndRight(triggerId); validateResourceId(triggerId); @@ -183,7 +183,7 @@ export function createTriggerUri( export function createUserDefinedFunctionUri( databaseId: string, collectionId: string, - udfId: string + udfId: string, ): string { udfId = trimSlashFromLeftAndRight(udfId); validateResourceId(udfId); @@ -210,7 +210,7 @@ export function createUserDefinedFunctionUri( export function createConflictUri( databaseId: string, collectionId: string, - conflictId: string + conflictId: string, ): string { conflictId = trimSlashFromLeftAndRight(conflictId); validateResourceId(conflictId); @@ -239,7 +239,7 @@ export function createAttachmentUri( databaseId: string, collectionId: string, documentId: string, - attachmentId: string + attachmentId: string, ): string { attachmentId = trimSlashFromLeftAndRight(attachmentId); validateResourceId(attachmentId); diff --git a/sdk/cosmosdb/cosmos/src/diagnostics/CosmosDiagnosticsContext.ts b/sdk/cosmosdb/cosmos/src/diagnostics/CosmosDiagnosticsContext.ts index 68f728e2eb70..9bf7be7bfe6c 100644 --- a/sdk/cosmosdb/cosmos/src/diagnostics/CosmosDiagnosticsContext.ts +++ b/sdk/cosmosdb/cosmos/src/diagnostics/CosmosDiagnosticsContext.ts @@ -32,7 +32,7 @@ export class CosmosDiagnosticContext { public recordFailedAttempt( gaterwayStatistics: GatewayStatistics, - retryAttemptNumber: number + retryAttemptNumber: number, ): void { const attempt: FailedRequestAttemptDiagnostic = { attemptNumber: retryAttemptNumber, @@ -59,11 +59,11 @@ export class CosmosDiagnosticContext { */ public mergeDiagnostics( childDiagnostics: CosmosDiagnosticContext, - metadataType: MetadataLookUpType + metadataType: MetadataLookUpType, ): void { // Copy Location endpoints contacted. childDiagnostics.locationEndpointsContacted.forEach((endpoint) => - this.locationEndpointsContacted.add(endpoint) + this.locationEndpointsContacted.add(endpoint), ); // Copy child nodes's GatewayStatistics to parent's metadata lookups. @@ -77,7 +77,7 @@ export class CosmosDiagnosticContext { resourceType: gateway.resourceType, durationInMs: gateway.durationInMs, metaDataType: metadataType, - }) + }), ); // Copy child nodes's metadata lookups to parent's metadata lookups. @@ -88,7 +88,7 @@ export class CosmosDiagnosticContext { } public getClientSideStats( - endTimeUTCInMs: number = getCurrentTimestampInMs() + endTimeUTCInMs: number = getCurrentTimestampInMs(), ): ClientSideRequestStatistics { return { requestStartTimeUTCInMs: this.requestStartTimeUTCinMs, @@ -109,13 +109,13 @@ export class CosmosDiagnosticContext { public getTotalRequestPayloadLength(): number { let totalRequestPayloadLength = 0; this.gaterwayStatistics.forEach( - (req) => (totalRequestPayloadLength += req.requestPayloadLengthInBytes) + (req) => (totalRequestPayloadLength += req.requestPayloadLengthInBytes), ); this.metadataLookups.forEach( - (req) => (totalRequestPayloadLength += req.requestPayloadLengthInBytes) + (req) => (totalRequestPayloadLength += req.requestPayloadLengthInBytes), ); this.failedAttempts.forEach( - (req) => (totalRequestPayloadLength += req.requestPayloadLengthInBytes) + (req) => (totalRequestPayloadLength += req.requestPayloadLengthInBytes), ); return totalRequestPayloadLength; } @@ -123,13 +123,13 @@ export class CosmosDiagnosticContext { public getTotalResponsePayloadLength(): number { let totalResponsePayloadLength = 0; this.gaterwayStatistics.forEach( - (req) => (totalResponsePayloadLength += req.responsePayloadLengthInBytes) + (req) => (totalResponsePayloadLength += req.responsePayloadLengthInBytes), ); this.metadataLookups.forEach( - (req) => (totalResponsePayloadLength += req.responsePayloadLengthInBytes) + (req) => (totalResponsePayloadLength += req.responsePayloadLengthInBytes), ); this.failedAttempts.forEach( - (req) => (totalResponsePayloadLength += req.responsePayloadLengthInBytes) + (req) => (totalResponsePayloadLength += req.responsePayloadLengthInBytes), ); return totalResponsePayloadLength; } diff --git a/sdk/cosmosdb/cosmos/src/diagnostics/DiagnosticNodeInternal.ts b/sdk/cosmosdb/cosmos/src/diagnostics/DiagnosticNodeInternal.ts index e28f11d4d337..77a9a101d5ff 100644 --- a/sdk/cosmosdb/cosmos/src/diagnostics/DiagnosticNodeInternal.ts +++ b/sdk/cosmosdb/cosmos/src/diagnostics/DiagnosticNodeInternal.ts @@ -44,7 +44,7 @@ export class DiagnosticNodeInternal implements DiagnosticNode { parent: DiagnosticNodeInternal, data: Partial = {}, startTimeUTCInMs: number = getCurrentTimestampInMs(), - ctx: CosmosDiagnosticContext = new CosmosDiagnosticContext() + ctx: CosmosDiagnosticContext = new CosmosDiagnosticContext(), ) { this.id = v4(); this.nodeType = type; @@ -90,7 +90,7 @@ export class DiagnosticNodeInternal implements DiagnosticNode { requestContext: RequestContext, pipelineResponse: PipelineResponse, substatus: number, - url: string + url: string, ): void { const responseHeaders = pipelineResponse.headers.toJSON(); const gatewayRequest = { @@ -139,7 +139,7 @@ export class DiagnosticNodeInternal implements DiagnosticNode { retryAttemptNumber: number, statusCode: number, substatusCode: number, - responseHeaders: CosmosHeaders + responseHeaders: CosmosHeaders, ): void { this.addData({ failedAttempty: true }); const requestPayloadLengthInBytes = calculateRequestPayloadLength(requestContext); @@ -155,7 +155,7 @@ export class DiagnosticNodeInternal implements DiagnosticNode { operationType: requestContext.operationType, resourceType: requestContext.resourceType, }, - retryAttemptNumber + retryAttemptNumber, ); let requestData: any = { OperationType: requestContext.operationType, @@ -190,7 +190,7 @@ export class DiagnosticNodeInternal implements DiagnosticNode { public addData( data: Partial, msg?: string, - level: CosmosDbDiagnosticLevel = this.diagnosticLevel + level: CosmosDbDiagnosticLevel = this.diagnosticLevel, ): void { if (level !== CosmosDbDiagnosticLevel.info) { this.data = { ...this.data, ...data }; @@ -208,7 +208,7 @@ export class DiagnosticNodeInternal implements DiagnosticNode { public addChildNode( child: DiagnosticNodeInternal, level: CosmosDbDiagnosticLevel, - metadataType?: MetadataLookUpType + metadataType?: MetadataLookUpType, ): DiagnosticNodeInternal { this.diagnosticCtx.mergeDiagnostics(child.diagnosticCtx, metadataType); if (allowTracing(level, this.diagnosticLevel)) { @@ -224,7 +224,7 @@ export class DiagnosticNodeInternal implements DiagnosticNode { public initializeChildNode( type: DiagnosticNodeType, level: CosmosDbDiagnosticLevel, - data: Partial = {} + data: Partial = {}, ): DiagnosticNodeInternal { if (allowTracing(level, this.diagnosticLevel)) { const child = new DiagnosticNodeInternal( @@ -233,7 +233,7 @@ export class DiagnosticNodeInternal implements DiagnosticNode { this, data, getCurrentTimestampInMs(), - this.diagnosticCtx + this.diagnosticCtx, ); this.children.push(child); return child; @@ -284,7 +284,7 @@ export class DiagnosticNodeInternal implements DiagnosticNode { const cosmosDiagnostic = new CosmosDiagnostics( this.diagnosticCtx.getClientSideStats(), diagnostiNode, - clientConfig + clientConfig, ); return cosmosDiagnostic; } diff --git a/sdk/cosmosdb/cosmos/src/diagnostics/diagnosticLevelComparator.ts b/sdk/cosmosdb/cosmos/src/diagnostics/diagnosticLevelComparator.ts index 43c6b1ff26de..5e9b926f9cda 100644 --- a/sdk/cosmosdb/cosmos/src/diagnostics/diagnosticLevelComparator.ts +++ b/sdk/cosmosdb/cosmos/src/diagnostics/diagnosticLevelComparator.ts @@ -17,7 +17,7 @@ export const CosmosDbDiagnosticLevelOrder = [ */ export function allowTracing( levelToCheck: CosmosDbDiagnosticLevel, - clientDiagnosticLevel: CosmosDbDiagnosticLevel + clientDiagnosticLevel: CosmosDbDiagnosticLevel, ): boolean { const indexOfDiagnosticLevelToCheck = CosmosDbDiagnosticLevelOrder.indexOf(levelToCheck); const indexOfClientDiagnosticLevel = CosmosDbDiagnosticLevelOrder.indexOf(clientDiagnosticLevel); diff --git a/sdk/cosmosdb/cosmos/src/diagnostics/index.ts b/sdk/cosmosdb/cosmos/src/diagnostics/index.ts index 1af634ca5483..7dd2a98f5e9b 100644 --- a/sdk/cosmosdb/cosmos/src/diagnostics/index.ts +++ b/sdk/cosmosdb/cosmos/src/diagnostics/index.ts @@ -17,7 +17,7 @@ const diagnosticLevelFromEnv = undefined; const acceptableDiagnosticLevelValues = Object.values(CosmosDbDiagnosticLevel).map((x) => - x.toString() + x.toString(), ); let cosmosDiagnosticLevel: CosmosDbDiagnosticLevel | undefined; @@ -31,8 +31,8 @@ if (isNonEmptyString(diagnosticLevelFromEnv)) { `${ Constants.CosmosDbDiagnosticLevelEnvVarName } set to unknown diagnostic level '${diagnosticLevelFromEnv}'; Setting Cosmos Db diagnostic level to info. Acceptable values: ${acceptableDiagnosticLevelValues.join( - ", " - )}.` + ", ", + )}.`, ); } } @@ -41,8 +41,8 @@ export function setDiagnosticLevel(level?: CosmosDbDiagnosticLevel): void { if (level && !isCosmosDiagnosticLevel(level)) { throw new Error( `Unknown diagnostic level '${level}'. Acceptable values: ${acceptableDiagnosticLevelValues.join( - "," - )}` + ",", + )}`, ); } cosmosDiagnosticLevel = level; @@ -53,14 +53,14 @@ export function getDiagnosticLevelFromEnvironment(): CosmosDbDiagnosticLevel | u } function isCosmosDiagnosticLevel( - diagnosticLevel: string + diagnosticLevel: string, ): diagnosticLevel is CosmosDbDiagnosticLevel { return acceptableDiagnosticLevelValues.includes(diagnosticLevel); } export function determineDiagnosticLevel( diagnosticLevelFromClientConfig: CosmosDbDiagnosticLevel, - diagnosticLevelFromEnvironment: CosmosDbDiagnosticLevel + diagnosticLevelFromEnvironment: CosmosDbDiagnosticLevel, ): CosmosDbDiagnosticLevel { const diagnosticLevelFromEnvOrClient = diagnosticLevelFromEnvironment ?? diagnosticLevelFromClientConfig; // Diagnostic Setting from environment gets first priority. diff --git a/sdk/cosmosdb/cosmos/src/extractPartitionKey.ts b/sdk/cosmosdb/cosmos/src/extractPartitionKey.ts index cb1097f9dcdd..a510aed521f9 100644 --- a/sdk/cosmosdb/cosmos/src/extractPartitionKey.ts +++ b/sdk/cosmosdb/cosmos/src/extractPartitionKey.ts @@ -24,7 +24,7 @@ const logger: AzureLogger = createClientLogger("extractPartitionKey"); */ export function extractPartitionKeys( document: unknown, - partitionKeyDefinition?: PartitionKeyDefinition + partitionKeyDefinition?: PartitionKeyDefinition, ): PartitionKeyInternal | undefined { if ( partitionKeyDefinition && @@ -81,7 +81,7 @@ function extractPartitionKey(path: string, obj: unknown): any { * @hidden */ export function undefinedPartitionKey( - partitionKeyDefinition: PartitionKeyDefinition + partitionKeyDefinition: PartitionKeyDefinition, ): PartitionKeyInternal { if (partitionKeyDefinition.systemKey === true) { return []; diff --git a/sdk/cosmosdb/cosmos/src/globalEndpointManager.ts b/sdk/cosmosdb/cosmos/src/globalEndpointManager.ts index 2b2bc051fdf1..42cb1748b599 100644 --- a/sdk/cosmosdb/cosmos/src/globalEndpointManager.ts +++ b/sdk/cosmosdb/cosmos/src/globalEndpointManager.ts @@ -43,8 +43,8 @@ export class GlobalEndpointManager { options: CosmosClientOptions, private readDatabaseAccount: ( diagnosticNode: DiagnosticNodeInternal, - opts: RequestOptions - ) => Promise> + opts: RequestOptions, + ) => Promise>, ) { this.options = options; this.defaultEndpoint = options.endpoint; @@ -78,7 +78,7 @@ export class GlobalEndpointManager { public async markCurrentLocationUnavailableForRead( diagnosticNode: DiagnosticNodeInternal, - endpoint: string + endpoint: string, ): Promise { await this.refreshEndpointList(diagnosticNode); const location = this.readableLocations.find((loc) => loc.databaseAccountEndpoint === endpoint); @@ -91,11 +91,11 @@ export class GlobalEndpointManager { public async markCurrentLocationUnavailableForWrite( diagnosticNode: DiagnosticNodeInternal, - endpoint: string + endpoint: string, ): Promise { await this.refreshEndpointList(diagnosticNode); const location = this.writeableLocations.find( - (loc) => loc.databaseAccountEndpoint === endpoint + (loc) => loc.databaseAccountEndpoint === endpoint, ); if (location) { location.unavailable = true; @@ -106,7 +106,7 @@ export class GlobalEndpointManager { public canUseMultipleWriteLocations( resourceType?: ResourceType, - operationType?: OperationType + operationType?: OperationType, ): boolean { let canUse = this.options.connectionPolicy.useMultipleWriteLocations; @@ -124,7 +124,7 @@ export class GlobalEndpointManager { diagnosticNode: DiagnosticNodeInternal, resourceType: ResourceType, operationType: OperationType, - startServiceEndpointIndex: number = 0 // Represents the starting index for selecting servers. + startServiceEndpointIndex: number = 0, // Represents the starting index for selecting servers. ): Promise { // If endpoint discovery is disabled, always use the user provided endpoint @@ -149,7 +149,7 @@ export class GlobalEndpointManager { }); }, diagnosticNode, - MetadataLookUpType.DatabaseAccountLookUp + MetadataLookUpType.DatabaseAccountLookUp, ); this.writeableLocations = resourceResponse.resource.writableLocations; @@ -172,7 +172,7 @@ export class GlobalEndpointManager { location = locations.find( (loc) => loc.unavailable !== true && - normalizeEndpoint(loc.name) === normalizeEndpoint(preferredLocation) + normalizeEndpoint(loc.name) === normalizeEndpoint(preferredLocation), ); if (location) { break; @@ -235,13 +235,13 @@ export class GlobalEndpointManager { this.updateLocation(now, this.unavailableReadableLocations, this.readableLocations); this.unavailableReadableLocations = this.cleanUnavailableLocationList( now, - this.unavailableReadableLocations + this.unavailableReadableLocations, ); this.updateLocation(now, this.unavailableWriteableLocations, this.writeableLocations); this.unavailableWriteableLocations = this.cleanUnavailableLocationList( now, - this.unavailableWriteableLocations + this.unavailableWriteableLocations, ); } @@ -254,7 +254,7 @@ export class GlobalEndpointManager { private updateLocation( now: number, unavailableLocations: Location[], - allLocations: Location[] + allLocations: Location[], ): void { for (const location of unavailableLocations) { const unavaialableLocation = allLocations.find((loc) => loc.name === location.name); @@ -286,7 +286,7 @@ export class GlobalEndpointManager { * the database account. */ private async getDatabaseAccountFromAnyEndpoint( - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise { try { const options = { urlConnection: this.defaultEndpoint }; @@ -307,12 +307,12 @@ export class GlobalEndpointManager { try { const locationalEndpoint = GlobalEndpointManager.getLocationalEndpoint( this.defaultEndpoint, - location + location, ); const options = { urlConnection: locationalEndpoint }; const { resource: databaseAccount } = await this.readDatabaseAccount( diagnosticNode, - options + options, ); if (databaseAccount) { return databaseAccount; diff --git a/sdk/cosmosdb/cosmos/src/indexMetrics/IndexMetricWriter.ts b/sdk/cosmosdb/cosmos/src/indexMetrics/IndexMetricWriter.ts index ed27d7aab9c9..0d1f0dd3ddd9 100644 --- a/sdk/cosmosdb/cosmos/src/indexMetrics/IndexMetricWriter.ts +++ b/sdk/cosmosdb/cosmos/src/indexMetrics/IndexMetricWriter.ts @@ -23,7 +23,7 @@ export class IndexMetricWriter { protected writeIndexUtilizationInfo( result: string, - indexUtilizationInfo: IndexUtilizationInfo + indexUtilizationInfo: IndexUtilizationInfo, ): string { result = this.appendHeaderToResult(result, Constants.UtilizedSingleIndexes, 1); @@ -56,17 +56,17 @@ export class IndexMetricWriter { private writeSingleIndexUtilizationEntity( result: string, - indexUtilizationEntity: SingleIndexUtilizationEntity + indexUtilizationEntity: SingleIndexUtilizationEntity, ): string { result = this.appendHeaderToResult( result, `${Constants.IndexExpression}: ${indexUtilizationEntity.IndexSpec}`, - 2 + 2, ); result = this.appendHeaderToResult( result, `${Constants.IndexImpactScore}: ${indexUtilizationEntity.IndexImpactScore}`, - 2 + 2, ); result = this.appendHeaderToResult(result, Constants.IndexUtilizationSeparator, 2); return result; @@ -74,17 +74,17 @@ export class IndexMetricWriter { private writeCompositeIndexUtilizationEntity( result: string, - indexUtilizationEntity: CompositeIndexUtilizationEntity + indexUtilizationEntity: CompositeIndexUtilizationEntity, ): string { result = this.appendHeaderToResult( result, `${Constants.IndexExpression}: ${indexUtilizationEntity.IndexSpecs.join(", ")}`, - 2 + 2, ); result = this.appendHeaderToResult( result, `${Constants.IndexImpactScore}: ${indexUtilizationEntity.IndexImpactScore}`, - 2 + 2, ); result = this.appendHeaderToResult(result, Constants.IndexUtilizationSeparator, 2); return result; diff --git a/sdk/cosmosdb/cosmos/src/indexMetrics/IndexUtilizationInfo.ts b/sdk/cosmosdb/cosmos/src/indexMetrics/IndexUtilizationInfo.ts index 558e6bd20a51..c75fda4dc533 100644 --- a/sdk/cosmosdb/cosmos/src/indexMetrics/IndexUtilizationInfo.ts +++ b/sdk/cosmosdb/cosmos/src/indexMetrics/IndexUtilizationInfo.ts @@ -10,12 +10,12 @@ export class IndexUtilizationInfo { public readonly UtilizedSingleIndexes: SingleIndexUtilizationEntity[], public readonly PotentialSingleIndexes: SingleIndexUtilizationEntity[], public readonly UtilizedCompositeIndexes: CompositeIndexUtilizationEntity[], - public readonly PotentialCompositeIndexes: CompositeIndexUtilizationEntity[] + public readonly PotentialCompositeIndexes: CompositeIndexUtilizationEntity[], ) {} public static tryCreateFromDelimitedBase64String( delimitedString: string, - out: { result?: IndexUtilizationInfo } + out: { result?: IndexUtilizationInfo }, ): boolean { if (delimitedString == null) { out.result = IndexUtilizationInfo.Empty; @@ -24,13 +24,13 @@ export class IndexUtilizationInfo { return IndexUtilizationInfo.tryCreateFromDelimitedString( Buffer.from(delimitedString, "base64").toString(), - out + out, ); } public static tryCreateFromDelimitedString( delimitedString: string, - out: { result?: IndexUtilizationInfo } + out: { result?: IndexUtilizationInfo }, ): boolean { if (delimitedString == null) { out.result = IndexUtilizationInfo.Empty; @@ -48,7 +48,7 @@ export class IndexUtilizationInfo { public static createFromString( delimitedString: string, - isBase64Encoded: boolean + isBase64Encoded: boolean, ): IndexUtilizationInfo { const result: { result?: IndexUtilizationInfo } = { result: undefined }; diff --git a/sdk/cosmosdb/cosmos/src/plugins/Plugin.ts b/sdk/cosmosdb/cosmos/src/plugins/Plugin.ts index c0cbee119ff1..d1fd7b6bed23 100644 --- a/sdk/cosmosdb/cosmos/src/plugins/Plugin.ts +++ b/sdk/cosmosdb/cosmos/src/plugins/Plugin.ts @@ -52,7 +52,7 @@ export interface PluginConfig { export type Plugin = ( context: RequestContext, diagnosticNode: DiagnosticNodeInternal, - next: Next + next: Next, ) => Promise>; /** @@ -69,7 +69,7 @@ export async function executePlugins( diagnosticNode: DiagnosticNodeInternal, requestContext: RequestContext, next: Plugin, - on: PluginOn + on: PluginOn, ): Promise> { if (!requestContext.plugins) { return next(requestContext, diagnosticNode, undefined); diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/Aggregators/index.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/Aggregators/index.ts index 177c04e935cd..0473b59540bd 100644 --- a/sdk/cosmosdb/cosmos/src/queryExecutionContext/Aggregators/index.ts +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/Aggregators/index.ts @@ -9,7 +9,7 @@ import { StaticValueAggregator } from "./StaticValueAggregator"; import { AggregateType } from "../../request/ErrorResponse"; export function createAggregator( - aggregateType: AggregateType + aggregateType: AggregateType, ): | AverageAggregator | CountAggregator diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.ts index 2360fc2569b5..e895aade0f9c 100644 --- a/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.ts +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.ts @@ -22,7 +22,10 @@ interface GroupByResult { /** @hidden */ export class GroupByEndpointComponent implements ExecutionContext { - constructor(private executionContext: ExecutionContext, private queryInfo: QueryInfo) {} + constructor( + private executionContext: ExecutionContext, + private queryInfo: QueryInfo, + ) {} private readonly groupings: Map> = new Map(); private readonly aggregateResultArray: any[] = []; @@ -49,7 +52,7 @@ export class GroupByEndpointComponent implements ExecutionContext { while (this.executionContext.hasMoreResults()) { // Grab the next result const { result, headers } = (await this.executionContext.nextItem( - diagnosticNode + diagnosticNode, )) as GroupByResponse; mergeHeaders(aggregateHeaders, headers); diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.ts index 0313652944e1..76fccbbed24b 100644 --- a/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.ts +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.ts @@ -27,7 +27,10 @@ export class GroupByValueEndpointComponent implements ExecutionContext { private aggregateType: AggregateType; private completed: boolean = false; - constructor(private executionContext: ExecutionContext, private queryInfo: QueryInfo) { + constructor( + private executionContext: ExecutionContext, + private queryInfo: QueryInfo, + ) { // VALUE queries will only every have a single grouping this.aggregateType = this.queryInfo.aggregates[0]; } @@ -53,7 +56,7 @@ export class GroupByValueEndpointComponent implements ExecutionContext { while (this.executionContext.hasMoreResults()) { // Grab the next result const { result, headers } = (await this.executionContext.nextItem( - diagnosticNode + diagnosticNode, )) as GroupByResponse; mergeHeaders(aggregateHeaders, headers); diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.ts index 3982b0d557a5..1f704c3cd05c 100644 --- a/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.ts +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.ts @@ -10,7 +10,7 @@ export class OffsetLimitEndpointComponent implements ExecutionContext { constructor( private executionContext: ExecutionContext, private offset: number, - private limit: number + private limit: number, ) {} public async nextItem(diagnosticNode: DiagnosticNodeInternal): Promise> { diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/defaultQueryExecutionContext.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/defaultQueryExecutionContext.ts index 9d358052d3b1..789c075d24f8 100644 --- a/sdk/cosmosdb/cosmos/src/queryExecutionContext/defaultQueryExecutionContext.ts +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/defaultQueryExecutionContext.ts @@ -14,7 +14,7 @@ const logger: AzureLogger = createClientLogger("ClientContext"); /** @hidden */ export type FetchFunctionCallback = ( diagnosticNode: DiagnosticNodeInternal, - options: FeedOptions + options: FeedOptions, ) => Promise>; /** @hidden */ @@ -51,7 +51,7 @@ export class DefaultQueryExecutionContext implements ExecutionContext { */ constructor( options: FeedOptions, - fetchFunctions: FetchFunctionCallback | FetchFunctionCallback[] + fetchFunctions: FetchFunctionCallback | FetchFunctionCallback[], ) { this.resources = []; this.currentIndex = 0; @@ -206,7 +206,7 @@ export class DefaultQueryExecutionContext implements ExecutionContext { queryMetrics.vmExecutionTime, queryMetrics.runtimeExecutionTimes, queryMetrics.documentWriteTime, - new ClientSideMetrics(requestCharge) + new ClientSideMetrics(requestCharge), ); } @@ -222,7 +222,7 @@ export class DefaultQueryExecutionContext implements ExecutionContext { DiagnosticNodeType.DEFAULT_QUERY_NODE, { queryMethodIdentifier: "fetchMore", - } + }, ); } diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/documentProducer.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/documentProducer.ts index fc66e757a6c1..ee19c6e2235a 100644 --- a/sdk/cosmosdb/cosmos/src/queryExecutionContext/documentProducer.ts +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/documentProducer.ts @@ -45,7 +45,7 @@ export class DocumentProducer { collectionLink: string, query: SqlQuerySpec, targetPartitionKeyRange: PartitionKeyRange, - options: FeedOptions + options: FeedOptions, ) { // TODO: any options this.collectionLink = collectionLink; @@ -88,7 +88,7 @@ export class DocumentProducer { public fetchFunction = async ( diagnosticNode: DiagnosticNodeInternal, - options: FeedOptions + options: FeedOptions, ): Promise> => { const path = getPathFromLink(this.collectionLink, ResourceType.item); diagnosticNode.addData({ partitionKeyRangeId: this.targetPartitionKeyRange.id }); diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/orderByDocumentProducerComparator.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/orderByDocumentProducerComparator.ts index 497cde506b70..4dd21e7d5adf 100644 --- a/sdk/cosmosdb/cosmos/src/queryExecutionContext/orderByDocumentProducerComparator.ts +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/orderByDocumentProducerComparator.ts @@ -39,7 +39,7 @@ export class OrderByDocumentProducerComparator { private targetPartitionKeyRangeDocProdComparator( docProd1: DocumentProducer, - docProd2: DocumentProducer + docProd2: DocumentProducer, ): 0 | 1 | -1 { const a = docProd1.getTargetParitionKeyRange()["minInclusive"]; const b = docProd2.getTargetParitionKeyRange()["minInclusive"]; @@ -128,14 +128,14 @@ export class OrderByDocumentProducerComparator { const type2 = this.getType(res2[i]); if (type1 !== type2) { throw new Error( - `Expected ${type1}, but got ${type2}. Cannot execute cross partition order-by queries on mixed types. Consider filtering your query using IS_STRING or IS_NUMBER to get around this exception.` + `Expected ${type1}, but got ${type2}. Cannot execute cross partition order-by queries on mixed types. Consider filtering your query using IS_STRING or IS_NUMBER to get around this exception.`, ); } } } private getType( - orderByItem: any + orderByItem: any, ): | "string" | "number" diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/orderByQueryExecutionContext.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/orderByQueryExecutionContext.ts index 958e08b52a07..5b6b7396a3b3 100644 --- a/sdk/cosmosdb/cosmos/src/queryExecutionContext/orderByQueryExecutionContext.ts +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/orderByQueryExecutionContext.ts @@ -33,7 +33,7 @@ export class OrderByQueryExecutionContext collectionLink: string, query: string | SqlQuerySpec, options: FeedOptions, - partitionedQueryExecutionInfo: PartitionedQueryExecutionInfo + partitionedQueryExecutionInfo: PartitionedQueryExecutionInfo, ) { // Calling on base class constructor super(clientContext, collectionLink, query, options, partitionedQueryExecutionInfo); diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/parallelQueryExecutionContext.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/parallelQueryExecutionContext.ts index f52a28744798..e9e46408e911 100644 --- a/sdk/cosmosdb/cosmos/src/queryExecutionContext/parallelQueryExecutionContext.ts +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/parallelQueryExecutionContext.ts @@ -24,7 +24,7 @@ export class ParallelQueryExecutionContext */ public documentProducerComparator( docProd1: DocumentProducer, - docProd2: DocumentProducer + docProd2: DocumentProducer, ): number { return docProd1.generation - docProd2.generation; } diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/parallelQueryExecutionContextBase.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/parallelQueryExecutionContextBase.ts index b89851955238..4accac94b3db 100644 --- a/sdk/cosmosdb/cosmos/src/queryExecutionContext/parallelQueryExecutionContextBase.ts +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/parallelQueryExecutionContextBase.ts @@ -63,7 +63,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont private collectionLink: string, private query: string | SqlQuerySpec, private options: FeedOptions, - private partitionedQueryExecutionInfo: PartitionedQueryExecutionInfo + private partitionedQueryExecutionInfo: PartitionedQueryExecutionInfo, ) { this.clientContext = clientContext; this.collectionLink = collectionLink; @@ -75,7 +75,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont diagnosticNode: new DiagnosticNodeInternal( clientContext.diagnosticLevel, DiagnosticNodeType.PARALLEL_QUERY_NODE, - null + null, ), }; this.diagnosticNodeWrapper.diagnosticNode.addData({ stateful: true }); @@ -91,7 +91,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont // Make priority queue for documentProducers // The comparator is supplied by the derived class this.orderByPQ = new PriorityQueue( - (a: DocumentProducer, b: DocumentProducer) => this.documentProducerComparator(b, a) + (a: DocumentProducer, b: DocumentProducer) => this.documentProducerComparator(b, a), ); // Creating the documentProducers this.sem = semaphore(1); @@ -112,7 +112,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont "Query starting against " + targetPartitionRanges.length + " ranges with parallelism of " + - maxDegreeOfParallelism + maxDegreeOfParallelism, ); const parallelismSem = semaphore(maxDegreeOfParallelism); @@ -131,7 +131,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont // TODO: any partitionTargetRange // no async callback targetPartitionQueryExecutionContextList.push( - this._createTargetPartitionQueryExecutionContext(partitionTargetRange) + this._createTargetPartitionQueryExecutionContext(partitionTargetRange), ); }); @@ -141,7 +141,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont const throttledFunc = async (): Promise => { try { const { result: document, headers } = await documentProducer.current( - this.getDiagnosticNode() + this.getDiagnosticNode(), ); this._mergeWithActiveResponseHeaders(headers); if (document === undefined) { @@ -176,7 +176,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont protected abstract documentProducerComparator( dp1: DocumentProducer, - dp2: DocumentProducer + dp2: DocumentProducer, ): number; private _decrementInitiationLock(): void { @@ -212,7 +212,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont return this.routingProvider.getOverlappingRanges( this.collectionLink, queryRanges, - this.getDiagnosticNode() + this.getDiagnosticNode(), ); } @@ -220,7 +220,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont * Gets the replacement ranges for a partitionkeyrange that has been split */ private async _getReplacementPartitionKeyRanges( - documentProducer: DocumentProducer + documentProducer: DocumentProducer, ): Promise { const partitionKeyRange = documentProducer.targetPartitionKeyRange; // Download the new routing map @@ -230,7 +230,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont return this.routingProvider.getOverlappingRanges( this.collectionLink, [queryRange], - this.getDiagnosticNode() + this.getDiagnosticNode(), ); } @@ -242,30 +242,29 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont */ private async _repairExecutionContext( diagnosticNode: DiagnosticNodeInternal, - originFunction: any + originFunction: any, ): Promise { // TODO: any // Get the replacement ranges // Removing the invalid documentProducer from the orderByPQ const parentDocumentProducer = this.orderByPQ.deq(); try { - const replacementPartitionKeyRanges: any[] = await this._getReplacementPartitionKeyRanges( - parentDocumentProducer - ); + const replacementPartitionKeyRanges: any[] = + await this._getReplacementPartitionKeyRanges(parentDocumentProducer); const replacementDocumentProducers: DocumentProducer[] = []; // Create the replacement documentProducers replacementPartitionKeyRanges.forEach((partitionKeyRange) => { // Create replacment document producers with the parent's continuationToken const replacementDocumentProducer = this._createTargetPartitionQueryExecutionContext( partitionKeyRange, - parentDocumentProducer.continuationToken + parentDocumentProducer.continuationToken, ); replacementDocumentProducers.push(replacementDocumentProducer); }); // We need to check if the documentProducers even has anything left to fetch from before enqueing them const checkAndEnqueueDocumentProducer = async ( documentProducerToCheck: DocumentProducer, - checkNextDocumentProducerCallback: any + checkNextDocumentProducerCallback: any, ): Promise => { try { const { result: afterItem } = await documentProducerToCheck.current(diagnosticNode); @@ -319,7 +318,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont private async _repairExecutionContextIfNeeded( diagnosticNode: DiagnosticNodeInternal, ifCallback: any, - elseCallback: any + elseCallback: any, ): Promise { const documentProducer = this.orderByPQ.peek(); // Check if split happened @@ -332,7 +331,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont return addDignosticChild( (childNode) => this._repairExecutionContext(childNode, ifCallback), diagnosticNode, - DiagnosticNodeType.QUERY_REPAIR_NODE + DiagnosticNodeType.QUERY_REPAIR_NODE, ); } else { // Something actually bad happened ... @@ -356,7 +355,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont diagnosticNode.addChildNode( this.diagnosticNodeWrapper.diagnosticNode, CosmosDbDiagnosticLevel.debug, - MetadataLookUpType.QueryPlanLookUp + MetadataLookUpType.QueryPlanLookUp, ); this.diagnosticNodeWrapper.diagnosticNode = undefined; this.diagnosticNodeWrapper.consumed = true; @@ -419,7 +418,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont // assert item !== undefined this.err = new Error( `Extracted DocumentProducer from the priority queue \ - doesn't have any buffered item!` + doesn't have any buffered item!`, ); // release the lock before invoking callback this.sem.leave(); @@ -431,7 +430,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont } catch (err: any) { this.err = new Error( `Extracted DocumentProducer from the priority queue fails to get the \ - buffered item. Due to ${JSON.stringify(err)}` + buffered item. Due to ${JSON.stringify(err)}`, ); this.err.headers = this._getAndResetActiveResponseHeaders(); // release the lock before invoking callback @@ -443,9 +442,8 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont // we need to put back the document producer to the queue if it has more elements. // the lock will be released after we know document producer must be put back in the queue or not try { - const { result: afterItem, headers: otherHeaders } = await documentProducer.current( - diagnosticNode - ); + const { result: afterItem, headers: otherHeaders } = + await documentProducer.current(diagnosticNode); this._mergeWithActiveResponseHeaders(otherHeaders); if (afterItem === undefined) { // no more results is left in this document producer @@ -454,7 +452,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont const headItem = documentProducer.fetchResults[0]; if (typeof headItem === "undefined") { throw new Error( - "Extracted DocumentProducer from PQ is invalid state with no result!" + "Extracted DocumentProducer from PQ is invalid state with no result!", ); } this.orderByPQ.enq(documentProducer); @@ -485,7 +483,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont }); }; this._repairExecutionContextIfNeeded(diagnosticNode, ifCallback, elseCallback).catch( - reject + reject, ); }); }); @@ -507,7 +505,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont */ private _createTargetPartitionQueryExecutionContext( partitionKeyTargetRange: any, - continuationToken?: any + continuationToken?: any, ): DocumentProducer { // TODO: any // creates target partition range Query Execution Context @@ -536,7 +534,7 @@ export abstract class ParallelQueryExecutionContextBase implements ExecutionCont this.collectionLink, sqlQuerySpec, partitionKeyTargetRange, - options + options, ); } } diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/pipelinedQueryExecutionContext.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/pipelinedQueryExecutionContext.ts index d507f64a9bc1..3d6b19962802 100644 --- a/sdk/cosmosdb/cosmos/src/queryExecutionContext/pipelinedQueryExecutionContext.ts +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/pipelinedQueryExecutionContext.ts @@ -29,7 +29,7 @@ export class PipelinedQueryExecutionContext implements ExecutionContext { private collectionLink: string, private query: string | SqlQuerySpec, private options: FeedOptions, - private partitionedQueryExecutionInfo: PartitionedQueryExecutionInfo + private partitionedQueryExecutionInfo: PartitionedQueryExecutionInfo, ) { this.endpoint = null; this.pageSize = options["maxItemCount"]; @@ -48,8 +48,8 @@ export class PipelinedQueryExecutionContext implements ExecutionContext { this.collectionLink, this.query, this.options, - this.partitionedQueryExecutionInfo - ) + this.partitionedQueryExecutionInfo, + ), ); } else { this.endpoint = new ParallelQueryExecutionContext( @@ -57,7 +57,7 @@ export class PipelinedQueryExecutionContext implements ExecutionContext { this.collectionLink, this.query, this.options, - this.partitionedQueryExecutionInfo + this.partitionedQueryExecutionInfo, ); } if ( @@ -68,12 +68,12 @@ export class PipelinedQueryExecutionContext implements ExecutionContext { if (partitionedQueryExecutionInfo.queryInfo.hasSelectValue) { this.endpoint = new GroupByValueEndpointComponent( this.endpoint, - partitionedQueryExecutionInfo.queryInfo + partitionedQueryExecutionInfo.queryInfo, ); } else { this.endpoint = new GroupByEndpointComponent( this.endpoint, - partitionedQueryExecutionInfo.queryInfo + partitionedQueryExecutionInfo.queryInfo, ); } } @@ -122,7 +122,7 @@ export class PipelinedQueryExecutionContext implements ExecutionContext { } private async _fetchMoreImplementation( - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise> { try { const { result: item, headers } = await this.endpoint.nextItem(diagnosticNode); diff --git a/sdk/cosmosdb/cosmos/src/queryIterator.ts b/sdk/cosmosdb/cosmos/src/queryIterator.ts index 4c50f840b45c..1f7643edbc60 100644 --- a/sdk/cosmosdb/cosmos/src/queryIterator.ts +++ b/sdk/cosmosdb/cosmos/src/queryIterator.ts @@ -47,7 +47,7 @@ export class QueryIterator { private options: FeedOptions, private fetchFunctions: FetchFunctionCallback | FetchFunctionCallback[], private resourceLink?: string, - private resourceType?: ResourceType + private resourceType?: ResourceType, ) { this.query = query; this.fetchFunctions = fetchFunctions; @@ -85,7 +85,7 @@ export class QueryIterator { let diagnosticNode = new DiagnosticNodeInternal( this.clientContext.diagnosticLevel, DiagnosticNodeType.CLIENT_REQUEST_NODE, - null + null, ); this.queryPlanPromise = this.fetchQueryPlan(diagnosticNode); while (this.queryExecutionContext.hasMoreResults()) { @@ -109,12 +109,12 @@ export class QueryIterator { response.result, response.headers, this.queryExecutionContext.hasMoreResults(), - diagnosticNode.toDiagnostic(this.clientContext.getClientConfig()) + diagnosticNode.toDiagnostic(this.clientContext.getClientConfig()), ); diagnosticNode = new DiagnosticNodeInternal( this.clientContext.diagnosticLevel, DiagnosticNodeType.CLIENT_REQUEST_NODE, - null + null, ); if (response.result !== undefined) { yield feedResponse; @@ -169,7 +169,7 @@ export class QueryIterator { return this.fetchQueryPlan(metadataNode); }, diagnosticNode, - MetadataLookUpType.QueryPlanLookUp + MetadataLookUpType.QueryPlanLookUp, ); if (!this.isInitialized) { await this.init(); @@ -194,7 +194,7 @@ export class QueryIterator { response.result, response.headers, this.queryExecutionContext.hasMoreResults(), - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); }, this.clientContext); } @@ -208,19 +208,19 @@ export class QueryIterator { this.fetchAllTempResources = []; this.queryExecutionContext = new DefaultQueryExecutionContext( this.options, - this.fetchFunctions + this.fetchFunctions, ); } private async toArrayImplementation( - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise> { this.queryPlanPromise = withMetadataDiagnostics( async (metadataNode: DiagnosticNodeInternal) => { return this.fetchQueryPlan(metadataNode); }, diagnosticNode, - MetadataLookUpType.QueryPlanLookUp + MetadataLookUpType.QueryPlanLookUp, ); // this.queryPlanPromise = this.fetchQueryPlan(diagnosticNode); @@ -251,7 +251,7 @@ export class QueryIterator { this.fetchAllTempResources, this.fetchAllLastResHeaders, this.queryExecutionContext.hasMoreResults(), - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); } @@ -273,7 +273,7 @@ export class QueryIterator { this.resourceLink, this.query, this.options, - queryPlan + queryPlan, ); } @@ -286,7 +286,7 @@ export class QueryIterator { this.resourceLink, this.query, this.options, - diagnosticNode + diagnosticNode, ) .catch((error: any) => error); // Without this catch, node reports an unhandled rejection. So we stash the promise as resolved even if it errored. } @@ -324,7 +324,7 @@ export class QueryIterator { private handleSplitError(err: any): void { if (err.code === 410) { const error = new Error( - "Encountered partition split and could not recover. This request is retryable" + "Encountered partition split and could not recover. This request is retryable", ) as any; error.code = 503; error.originalError = err; diff --git a/sdk/cosmosdb/cosmos/src/queryMetrics/queryMetrics.ts b/sdk/cosmosdb/cosmos/src/queryMetrics/queryMetrics.ts index 892fabc6f844..135ccb1ba56d 100644 --- a/sdk/cosmosdb/cosmos/src/queryMetrics/queryMetrics.ts +++ b/sdk/cosmosdb/cosmos/src/queryMetrics/queryMetrics.ts @@ -21,7 +21,7 @@ export class QueryMetrics { public readonly vmExecutionTime: TimeSpan, public readonly runtimeExecutionTimes: RuntimeExecutionTimes, public readonly documentWriteTime: TimeSpan, - public readonly clientSideMetrics: ClientSideMetrics + public readonly clientSideMetrics: ClientSideMetrics, ) {} /** @@ -85,7 +85,7 @@ export class QueryMetrics { vmExecutionTime, RuntimeExecutionTimes.createFromArray(runtimeExecutionTimesArray), documentWriteTime, - ClientSideMetrics.createFromArray(...clientSideQueryMetricsArray) + ClientSideMetrics.createFromArray(...clientSideQueryMetricsArray), ); } @@ -154,7 +154,7 @@ export class QueryMetrics { TimeSpan.zero, RuntimeExecutionTimes.zero, TimeSpan.zero, - ClientSideMetrics.zero + ClientSideMetrics.zero, ); /** @@ -173,7 +173,7 @@ export class QueryMetrics { */ public static createFromDelimitedString( delimitedString: string, - clientSideMetrics?: ClientSideMetrics + clientSideMetrics?: ClientSideMetrics, ): QueryMetrics { const metrics = parseDelimitedString(delimitedString); @@ -185,7 +185,7 @@ export class QueryMetrics { const retrievedDocumentSize = metrics[QueryMetricsConstants.RetrievedDocumentSize] || 0; const totalQueryExecutionTime = timeSpanFromMetrics( metrics, - QueryMetricsConstants.TotalQueryExecutionTimeInMs + QueryMetricsConstants.TotalQueryExecutionTimeInMs, ); return new QueryMetrics( retrievedDocumentCount, @@ -200,7 +200,7 @@ export class QueryMetrics { timeSpanFromMetrics(metrics, QueryMetricsConstants.VMExecutionTimeInMs), RuntimeExecutionTimes.createFromDelimitedString(delimitedString), timeSpanFromMetrics(metrics, QueryMetricsConstants.DocumentWriteTimeInMs), - clientSideMetrics || ClientSideMetrics.zero + clientSideMetrics || ClientSideMetrics.zero, ); } } diff --git a/sdk/cosmosdb/cosmos/src/queryMetrics/queryMetricsUtils.ts b/sdk/cosmosdb/cosmos/src/queryMetrics/queryMetricsUtils.ts index ef8680063ee3..50b367525dd4 100644 --- a/sdk/cosmosdb/cosmos/src/queryMetrics/queryMetricsUtils.ts +++ b/sdk/cosmosdb/cosmos/src/queryMetrics/queryMetricsUtils.ts @@ -36,7 +36,7 @@ export function parseDelimitedString(delimitedString: string): { */ export function timeSpanFromMetrics( metrics: { [key: string]: any } /* TODO: any */, - key: string + key: string, ): TimeSpan { if (key in metrics) { return TimeSpan.fromMilliseconds(metrics[key]); diff --git a/sdk/cosmosdb/cosmos/src/queryMetrics/queryPreparationTime.ts b/sdk/cosmosdb/cosmos/src/queryMetrics/queryPreparationTime.ts index e529c615bfc1..1e6bd6eed3e1 100644 --- a/sdk/cosmosdb/cosmos/src/queryMetrics/queryPreparationTime.ts +++ b/sdk/cosmosdb/cosmos/src/queryMetrics/queryPreparationTime.ts @@ -9,7 +9,7 @@ export class QueryPreparationTimes { public readonly queryCompilationTime: TimeSpan, public readonly logicalPlanBuildTime: TimeSpan, public readonly physicalPlanBuildTime: TimeSpan, - public readonly queryOptimizationTime: TimeSpan + public readonly queryOptimizationTime: TimeSpan, ) {} /** @@ -29,10 +29,10 @@ export class QueryPreparationTimes { queryCompilationTime = queryCompilationTime.add(queryPreparationTimes.queryCompilationTime); logicalPlanBuildTime = logicalPlanBuildTime.add(queryPreparationTimes.logicalPlanBuildTime); physicalPlanBuildTime = physicalPlanBuildTime.add( - queryPreparationTimes.physicalPlanBuildTime + queryPreparationTimes.physicalPlanBuildTime, ); queryOptimizationTime = queryOptimizationTime.add( - queryPreparationTimes.queryOptimizationTime + queryPreparationTimes.queryOptimizationTime, ); } @@ -40,7 +40,7 @@ export class QueryPreparationTimes { queryCompilationTime, logicalPlanBuildTime, physicalPlanBuildTime, - queryOptimizationTime + queryOptimizationTime, ); } @@ -68,7 +68,7 @@ export class QueryPreparationTimes { TimeSpan.zero, TimeSpan.zero, TimeSpan.zero, - TimeSpan.zero + TimeSpan.zero, ); /** @@ -76,7 +76,7 @@ export class QueryPreparationTimes { * aggregation of an array of QueryPreparationTimes. */ public static createFromArray( - queryPreparationTimesArray: QueryPreparationTimes[] + queryPreparationTimesArray: QueryPreparationTimes[], ): QueryPreparationTimes { if (queryPreparationTimesArray == null) { throw new Error("queryPreparationTimesArray is null or undefined item(s)"); @@ -95,7 +95,7 @@ export class QueryPreparationTimes { timeSpanFromMetrics(metrics, QueryMetricsConstants.QueryCompileTimeInMs), timeSpanFromMetrics(metrics, QueryMetricsConstants.LogicalPlanBuildTimeInMs), timeSpanFromMetrics(metrics, QueryMetricsConstants.PhysicalPlanBuildTimeInMs), - timeSpanFromMetrics(metrics, QueryMetricsConstants.QueryOptimizationTimeInMs) + timeSpanFromMetrics(metrics, QueryMetricsConstants.QueryOptimizationTimeInMs), ); } } diff --git a/sdk/cosmosdb/cosmos/src/queryMetrics/runtimeExecutionTimes.ts b/sdk/cosmosdb/cosmos/src/queryMetrics/runtimeExecutionTimes.ts index e7b4156d868d..78ff0a29eab4 100644 --- a/sdk/cosmosdb/cosmos/src/queryMetrics/runtimeExecutionTimes.ts +++ b/sdk/cosmosdb/cosmos/src/queryMetrics/runtimeExecutionTimes.ts @@ -8,7 +8,7 @@ export class RuntimeExecutionTimes { constructor( public readonly queryEngineExecutionTime: TimeSpan, public readonly systemFunctionExecutionTime: TimeSpan, - public readonly userDefinedFunctionExecutionTime: TimeSpan + public readonly userDefinedFunctionExecutionTime: TimeSpan, ) {} /** @@ -25,20 +25,20 @@ export class RuntimeExecutionTimes { } queryEngineExecutionTime = queryEngineExecutionTime.add( - runtimeExecutionTimes.queryEngineExecutionTime + runtimeExecutionTimes.queryEngineExecutionTime, ); systemFunctionExecutionTime = systemFunctionExecutionTime.add( - runtimeExecutionTimes.systemFunctionExecutionTime + runtimeExecutionTimes.systemFunctionExecutionTime, ); userDefinedFunctionExecutionTime = userDefinedFunctionExecutionTime.add( - runtimeExecutionTimes.userDefinedFunctionExecutionTime + runtimeExecutionTimes.userDefinedFunctionExecutionTime, ); } return new RuntimeExecutionTimes( queryEngineExecutionTime, systemFunctionExecutionTime, - userDefinedFunctionExecutionTime + userDefinedFunctionExecutionTime, ); } @@ -59,7 +59,7 @@ export class RuntimeExecutionTimes { public static readonly zero = new RuntimeExecutionTimes( TimeSpan.zero, TimeSpan.zero, - TimeSpan.zero + TimeSpan.zero, ); /** @@ -67,7 +67,7 @@ export class RuntimeExecutionTimes { * the aggregation of an array of RuntimeExecutionTimes. */ public static createFromArray( - runtimeExecutionTimesArray: RuntimeExecutionTimes[] + runtimeExecutionTimesArray: RuntimeExecutionTimes[], ): RuntimeExecutionTimes { if (runtimeExecutionTimesArray == null) { throw new Error("runtimeExecutionTimesArray is null or undefined item(s)"); @@ -86,11 +86,11 @@ export class RuntimeExecutionTimes { const indexLookupTime = timeSpanFromMetrics(metrics, QueryMetricsConstants.IndexLookupTimeInMs); const documentLoadTime = timeSpanFromMetrics( metrics, - QueryMetricsConstants.DocumentLoadTimeInMs + QueryMetricsConstants.DocumentLoadTimeInMs, ); const documentWriteTime = timeSpanFromMetrics( metrics, - QueryMetricsConstants.DocumentWriteTimeInMs + QueryMetricsConstants.DocumentWriteTimeInMs, ); let queryEngineExecutionTime = TimeSpan.zero; @@ -101,7 +101,7 @@ export class RuntimeExecutionTimes { return new RuntimeExecutionTimes( queryEngineExecutionTime, timeSpanFromMetrics(metrics, QueryMetricsConstants.SystemFunctionExecuteTimeInMs), - timeSpanFromMetrics(metrics, QueryMetricsConstants.UserDefinedFunctionExecutionTimeInMs) + timeSpanFromMetrics(metrics, QueryMetricsConstants.UserDefinedFunctionExecutionTimeInMs), ); } } diff --git a/sdk/cosmosdb/cosmos/src/request/FeedResponse.ts b/sdk/cosmosdb/cosmos/src/request/FeedResponse.ts index fa65a07ccff1..5e3845b4e738 100644 --- a/sdk/cosmosdb/cosmos/src/request/FeedResponse.ts +++ b/sdk/cosmosdb/cosmos/src/request/FeedResponse.ts @@ -10,7 +10,7 @@ export class FeedResponse { public readonly resources: TResource[], private readonly headers: CosmosHeaders, public readonly hasMoreResults: boolean, - public readonly diagnostics: CosmosDiagnostics + public readonly diagnostics: CosmosDiagnostics, ) {} public get continuation(): string { @@ -32,7 +32,7 @@ export class FeedResponse { const writer = new IndexMetricWriter(); const indexUtilizationInfo = IndexUtilizationInfo.createFromString( this.headers[Constants.HttpHeaders.IndexUtilization], - true + true, ); return writer.writeIndexMetrics(indexUtilizationInfo); } diff --git a/sdk/cosmosdb/cosmos/src/request/RequestHandler.ts b/sdk/cosmosdb/cosmos/src/request/RequestHandler.ts index fe937c7d97f0..5ffd9b0fe3cd 100644 --- a/sdk/cosmosdb/cosmos/src/request/RequestHandler.ts +++ b/sdk/cosmosdb/cosmos/src/request/RequestHandler.ts @@ -26,7 +26,7 @@ const logger: AzureLogger = createClientLogger("RequestHandler"); async function executeRequest( diagnosticNode: DiagnosticNodeInternal, - requestContext: RequestContext + requestContext: RequestContext, ): Promise> { return executePlugins(diagnosticNode, requestContext, httpRequest, PluginOn.request); } @@ -36,7 +36,7 @@ async function executeRequest( */ async function httpRequest( requestContext: RequestContext, - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise<{ headers: any; result: any; @@ -101,7 +101,7 @@ async function httpRequest( } // If the user didn't cancel, it must be an abort we called due to timeout throw new TimeoutError( - `Timeout Error! Request took more than ${requestContext.connectionPolicy.requestTimeout} ms` + `Timeout Error! Request took more than ${requestContext.connectionPolicy.requestTimeout} ms`, ); } throw error; @@ -123,7 +123,7 @@ async function httpRequest( requestContext, response, substatus, - url + url, ); if (response.status >= 400) { @@ -135,7 +135,7 @@ async function httpRequest( " " + requestContext.path + " " + - result.message + result.message, ); errorResponse.code = response.status; @@ -153,7 +153,7 @@ async function httpRequest( if (Constants.HttpHeaders.RetryAfterInMs in responseHeaders) { errorResponse.retryAfterInMs = parseInt( responseHeaders[Constants.HttpHeaders.RetryAfterInMs], - 10 + 10, ); Object.defineProperty(errorResponse, "retryAfterInMilliseconds", { get: () => { @@ -177,7 +177,7 @@ async function httpRequest( */ async function request( requestContext: RequestContext, - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise> { if (requestContext.body) { requestContext.body = bodyFromData(requestContext.body); @@ -195,7 +195,7 @@ async function request( }); }, diagnosticNode, - DiagnosticNodeType.REQUEST_ATTEMPTS + DiagnosticNodeType.REQUEST_ATTEMPTS, ); } diff --git a/sdk/cosmosdb/cosmos/src/request/ResourceResponse.ts b/sdk/cosmosdb/cosmos/src/request/ResourceResponse.ts index 87e40552e680..259b7ddc8e65 100644 --- a/sdk/cosmosdb/cosmos/src/request/ResourceResponse.ts +++ b/sdk/cosmosdb/cosmos/src/request/ResourceResponse.ts @@ -11,7 +11,7 @@ export class ResourceResponse { public readonly headers: CosmosHeaders, public readonly statusCode: StatusCode, public readonly diagnostics: CosmosDiagnostics, - public readonly substatus?: SubStatusCode + public readonly substatus?: SubStatusCode, ) {} public get requestCharge(): number { return Number(this.headers[Constants.HttpHeaders.RequestCharge]) || 0; diff --git a/sdk/cosmosdb/cosmos/src/request/request.ts b/sdk/cosmosdb/cosmos/src/request/request.ts index 770b0e7e0428..acd93ba376db 100644 --- a/sdk/cosmosdb/cosmos/src/request/request.ts +++ b/sdk/cosmosdb/cosmos/src/request/request.ts @@ -137,7 +137,7 @@ export async function getHeaders({ options.maxIntegratedCacheStalenessInMs.toString(); } else { defaultLogger.error( - `RangeError: maxIntegratedCacheStalenessInMs "${options.maxIntegratedCacheStalenessInMs}" is not a valid parameter.` + `RangeError: maxIntegratedCacheStalenessInMs "${options.maxIntegratedCacheStalenessInMs}" is not a valid parameter.`, ); headers[Constants.HttpHeaders.DedicatedGatewayPerRequestCacheStaleness] = "null"; } diff --git a/sdk/cosmosdb/cosmos/src/retry/RetryPolicy.ts b/sdk/cosmosdb/cosmos/src/retry/RetryPolicy.ts index 5f14ee6372e8..7fb52c03fe4d 100644 --- a/sdk/cosmosdb/cosmos/src/retry/RetryPolicy.ts +++ b/sdk/cosmosdb/cosmos/src/retry/RetryPolicy.ts @@ -13,6 +13,6 @@ export interface RetryPolicy { errorResponse: ErrorResponse, diagnosticNode: DiagnosticNodeInternal, retryContext?: RetryContext, - locationEndpoint?: string + locationEndpoint?: string, ) => Promise; } diff --git a/sdk/cosmosdb/cosmos/src/retry/defaultRetryPolicy.ts b/sdk/cosmosdb/cosmos/src/retry/defaultRetryPolicy.ts index 0c6d8859f6b5..ac6be042d672 100644 --- a/sdk/cosmosdb/cosmos/src/retry/defaultRetryPolicy.ts +++ b/sdk/cosmosdb/cosmos/src/retry/defaultRetryPolicy.ts @@ -137,7 +137,7 @@ export class DefaultRetryPolicy implements RetryPolicy { */ public async shouldRetry( err: ErrorResponse, - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise { if (err) { if ( diff --git a/sdk/cosmosdb/cosmos/src/retry/endpointDiscoveryRetryPolicy.ts b/sdk/cosmosdb/cosmos/src/retry/endpointDiscoveryRetryPolicy.ts index 1a06702772da..fd541cfeb2d8 100644 --- a/sdk/cosmosdb/cosmos/src/retry/endpointDiscoveryRetryPolicy.ts +++ b/sdk/cosmosdb/cosmos/src/retry/endpointDiscoveryRetryPolicy.ts @@ -28,7 +28,7 @@ export class EndpointDiscoveryRetryPolicy implements RetryPolicy { */ constructor( private globalEndpointManager: GlobalEndpointManager, - private operationType: OperationType + private operationType: OperationType, ) { this.maxTries = EndpointDiscoveryRetryPolicy.maxTries; this.currentRetryAttemptCount = 0; @@ -43,7 +43,7 @@ export class EndpointDiscoveryRetryPolicy implements RetryPolicy { err: ErrorResponse, diagnosticNode: DiagnosticNodeInternal, retryContext?: RetryContext, - locationEndpoint?: string + locationEndpoint?: string, ): Promise { if (!err) { return false; @@ -66,12 +66,12 @@ export class EndpointDiscoveryRetryPolicy implements RetryPolicy { if (isReadRequest(this.operationType)) { await this.globalEndpointManager.markCurrentLocationUnavailableForRead( diagnosticNode, - locationEndpoint + locationEndpoint, ); } else { await this.globalEndpointManager.markCurrentLocationUnavailableForWrite( diagnosticNode, - locationEndpoint + locationEndpoint, ); } diff --git a/sdk/cosmosdb/cosmos/src/retry/resourceThrottleRetryPolicy.ts b/sdk/cosmosdb/cosmos/src/retry/resourceThrottleRetryPolicy.ts index a1d6b39ecb87..1de1c91a408e 100644 --- a/sdk/cosmosdb/cosmos/src/retry/resourceThrottleRetryPolicy.ts +++ b/sdk/cosmosdb/cosmos/src/retry/resourceThrottleRetryPolicy.ts @@ -27,7 +27,7 @@ export class ResourceThrottleRetryPolicy { constructor( private maxTries: number = 9, private fixedRetryIntervalInMs: number = 0, - timeoutInSeconds: number = 30 + timeoutInSeconds: number = 30, ) { this.timeoutInMs = timeoutInSeconds * 1000; this.currentRetryAttemptCount = 0; @@ -39,7 +39,7 @@ export class ResourceThrottleRetryPolicy { */ public async shouldRetry( err: ErrorResponse, - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise { // TODO: any custom error object if (err) { diff --git a/sdk/cosmosdb/cosmos/src/retry/retryUtility.ts b/sdk/cosmosdb/cosmos/src/retry/retryUtility.ts index 1480226d7894..bc06da826d21 100644 --- a/sdk/cosmosdb/cosmos/src/retry/retryUtility.ts +++ b/sdk/cosmosdb/cosmos/src/retry/retryUtility.ts @@ -27,7 +27,7 @@ interface ExecuteArgs { requestContext: RequestContext; executeRequest: ( diagnosticNode: DiagnosticNodeInternal, - requestContext: RequestContext + requestContext: RequestContext, ) => Promise>; } @@ -60,18 +60,18 @@ export async function execute({ retryPolicies = { endpointDiscoveryRetryPolicy: new EndpointDiscoveryRetryPolicy( requestContext.globalEndpointManager, - requestContext.operationType + requestContext.operationType, ), resourceThrottleRetryPolicy: new ResourceThrottleRetryPolicy( requestContext.connectionPolicy.retryOptions.maxRetryAttemptCount, requestContext.connectionPolicy.retryOptions.fixedRetryIntervalInMilliseconds, - requestContext.connectionPolicy.retryOptions.maxWaitTimeInSeconds + requestContext.connectionPolicy.retryOptions.maxWaitTimeInSeconds, ), sessionReadRetryPolicy: new SessionRetryPolicy( requestContext.globalEndpointManager, requestContext.resourceType, requestContext.operationType, - requestContext.connectionPolicy + requestContext.connectionPolicy, ), defaultRetryPolicy: new DefaultRetryPolicy(requestContext.operationType), timeoutFailoverRetryPolicy: new TimeoutFailoverRetryPolicy( @@ -80,7 +80,7 @@ export async function execute({ requestContext.method, requestContext.resourceType, requestContext.operationType, - requestContext.connectionPolicy.enableEndpointDiscovery + requestContext.connectionPolicy.enableEndpointDiscovery, ), }; } @@ -93,13 +93,13 @@ export async function execute({ localDiagnosticNode, requestContext.resourceType, requestContext.operationType, - retryContext.retryLocationServerIndex + retryContext.retryLocationServerIndex, ); } else { requestContext.endpoint = await requestContext.globalEndpointManager.resolveServiceEndpoint( localDiagnosticNode, requestContext.resourceType, - requestContext.operationType + requestContext.operationType, ); } const startTimeUTCInMs = getCurrentTimestampInMs(); @@ -138,7 +138,7 @@ export async function execute({ err, localDiagnosticNode, retryContext, - requestContext.endpoint + requestContext.endpoint, ); if (!results) { headers[Constants.ThrottleRetryCount] = @@ -159,7 +159,7 @@ export async function execute({ retryContext.retryCount, err.code, err.subsstatusCode, - headers + headers, ); await sleep(retryPolicy.retryAfterInMs); return execute({ @@ -173,6 +173,6 @@ export async function execute({ } }, diagnosticNode, - DiagnosticNodeType.HTTP_REQUEST + DiagnosticNodeType.HTTP_REQUEST, ); } diff --git a/sdk/cosmosdb/cosmos/src/retry/sessionRetryPolicy.ts b/sdk/cosmosdb/cosmos/src/retry/sessionRetryPolicy.ts index 78ea41671cf1..5e16dc27707c 100644 --- a/sdk/cosmosdb/cosmos/src/retry/sessionRetryPolicy.ts +++ b/sdk/cosmosdb/cosmos/src/retry/sessionRetryPolicy.ts @@ -25,7 +25,7 @@ export class SessionRetryPolicy implements RetryPolicy { private globalEndpointManager: GlobalEndpointManager, private resourceType: ResourceType, private operationType: OperationType, - private connectionPolicy: ConnectionPolicy + private connectionPolicy: ConnectionPolicy, ) {} /** @@ -37,7 +37,7 @@ export class SessionRetryPolicy implements RetryPolicy { public async shouldRetry( err: ErrorResponse, diagnosticNode: DiagnosticNodeInternal, - retryContext?: RetryContext + retryContext?: RetryContext, ): Promise { if (!err) { return false; diff --git a/sdk/cosmosdb/cosmos/src/retry/timeoutFailoverRetryPolicy.ts b/sdk/cosmosdb/cosmos/src/retry/timeoutFailoverRetryPolicy.ts index 7854331a912b..9ee6364e4f1d 100644 --- a/sdk/cosmosdb/cosmos/src/retry/timeoutFailoverRetryPolicy.ts +++ b/sdk/cosmosdb/cosmos/src/retry/timeoutFailoverRetryPolicy.ts @@ -32,7 +32,7 @@ export class TimeoutFailoverRetryPolicy implements RetryPolicy { private methodType: HTTPMethod, private resourceType: ResourceType, private operationType: OperationType, - private enableEndPointDiscovery: boolean + private enableEndPointDiscovery: boolean, ) {} /** @@ -53,7 +53,7 @@ export class TimeoutFailoverRetryPolicy implements RetryPolicy { err: ErrorResponse, diagnosticNode: DiagnosticNodeInternal, retryContext?: RetryContext, - locationEndpoint?: string + locationEndpoint?: string, ): Promise { if (!err) { return false; @@ -79,7 +79,7 @@ export class TimeoutFailoverRetryPolicy implements RetryPolicy { } const canUseMultipleWriteLocations = this.globalEndpointManager.canUseMultipleWriteLocations( this.resourceType, - this.operationType + this.operationType, ); const readRequest = isReadRequest(this.operationType); diff --git a/sdk/cosmosdb/cosmos/src/routing/CollectionRoutingMapFactory.ts b/sdk/cosmosdb/cosmos/src/routing/CollectionRoutingMapFactory.ts index 36da53bbceea..0226fb4bc102 100644 --- a/sdk/cosmosdb/cosmos/src/routing/CollectionRoutingMapFactory.ts +++ b/sdk/cosmosdb/cosmos/src/routing/CollectionRoutingMapFactory.ts @@ -20,7 +20,7 @@ function compareRanges(a: any, b: any): 0 | 1 | -1 { /** @hidden */ export function createCompleteRoutingMap( - partitionKeyRangeInfoTuppleList: any[] + partitionKeyRangeInfoTuppleList: any[], ): InMemoryCollectionRoutingMap { const rangeById: any = {}; // TODO: any const rangeByInfo: any = {}; // TODO: any diff --git a/sdk/cosmosdb/cosmos/src/routing/QueryRange.ts b/sdk/cosmosdb/cosmos/src/routing/QueryRange.ts index be07a14f4e92..68e2d924be73 100644 --- a/sdk/cosmosdb/cosmos/src/routing/QueryRange.ts +++ b/sdk/cosmosdb/cosmos/src/routing/QueryRange.ts @@ -24,7 +24,7 @@ export class QueryRange { rangeMin: string, rangeMax: string, isMinInclusive: boolean, - isMaxInclusive: boolean + isMaxInclusive: boolean, ) { this.min = rangeMin; this.max = rangeMax; @@ -75,7 +75,7 @@ export class QueryRange { partitionKeyRange[Constants.PartitionKeyRange.MinInclusive], partitionKeyRange[Constants.PartitionKeyRange.MaxExclusive], true, - false + false, ); } /** @@ -88,7 +88,7 @@ export class QueryRange { queryRangeDict.min, queryRangeDict.max, queryRangeDict.isMinInclusive, - queryRangeDict.isMaxInclusive + queryRangeDict.isMaxInclusive, ); } } diff --git a/sdk/cosmosdb/cosmos/src/routing/inMemoryCollectionRoutingMap.ts b/sdk/cosmosdb/cosmos/src/routing/inMemoryCollectionRoutingMap.ts index 8d3f5270575c..b12f24e79c4d 100644 --- a/sdk/cosmosdb/cosmos/src/routing/inMemoryCollectionRoutingMap.ts +++ b/sdk/cosmosdb/cosmos/src/routing/inMemoryCollectionRoutingMap.ts @@ -23,7 +23,7 @@ export class InMemoryCollectionRoutingMap { pkr[Constants.PartitionKeyRange.MinInclusive], pkr[Constants.PartitionKeyRange.MaxExclusive], true, - false + false, ); }); this.orderedPartitionInfo = orderedPartitionInfo; @@ -64,7 +64,7 @@ export class InMemoryCollectionRoutingMap { if (minIndex < 0) { throw new Error( - "error in collection routing map, queried value is less than the start range." + "error in collection routing map, queried value is less than the start range.", ); } @@ -88,7 +88,7 @@ export class InMemoryCollectionRoutingMap { if (maxIndex > this.orderedRanges.length) { throw new Error( - "error in collection routing map, queried value is greater than the end range." + "error in collection routing map, queried value is greater than the end range.", ); } @@ -102,12 +102,12 @@ export class InMemoryCollectionRoutingMap { } const overlappingPartitionKeyRanges = Object.keys(minToPartitionRange).map( - (k) => minToPartitionRange[k] + (k) => minToPartitionRange[k], ); return overlappingPartitionKeyRanges.sort((a, b) => { return a[Constants.PartitionKeyRange.MinInclusive].localeCompare( - b[Constants.PartitionKeyRange.MinInclusive] + b[Constants.PartitionKeyRange.MinInclusive], ); }); } diff --git a/sdk/cosmosdb/cosmos/src/routing/partitionKeyRangeCache.ts b/sdk/cosmosdb/cosmos/src/routing/partitionKeyRangeCache.ts index 200b5cdfc8d8..0b186a4b8d87 100644 --- a/sdk/cosmosdb/cosmos/src/routing/partitionKeyRangeCache.ts +++ b/sdk/cosmosdb/cosmos/src/routing/partitionKeyRangeCache.ts @@ -27,13 +27,13 @@ export class PartitionKeyRangeCache { public async onCollectionRoutingMap( collectionLink: string, diagnosticNode: DiagnosticNodeInternal, - forceRefresh: boolean = false + forceRefresh: boolean = false, ): Promise { const collectionId = getIdFromLink(collectionLink); if (this.collectionRoutingMapByCollectionId[collectionId] === undefined || forceRefresh) { this.collectionRoutingMapByCollectionId[collectionId] = this.requestCollectionRoutingMap( collectionLink, - diagnosticNode + diagnosticNode, ); } return this.collectionRoutingMapByCollectionId[collectionId]; @@ -47,7 +47,7 @@ export class PartitionKeyRangeCache { collectionLink: string, queryRange: QueryRange, diagnosticNode: DiagnosticNodeInternal, - forceRefresh: boolean = false + forceRefresh: boolean = false, ): Promise { const crm = await this.onCollectionRoutingMap(collectionLink, diagnosticNode, forceRefresh); return crm.getOverlappingRanges(queryRange); @@ -55,7 +55,7 @@ export class PartitionKeyRangeCache { private async requestCollectionRoutingMap( collectionLink: string, - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise { const { resources } = await withMetadataDiagnostics( async (metadataDiagnostics: DiagnosticNodeInternal) => { @@ -64,7 +64,7 @@ export class PartitionKeyRangeCache { .fetchAllInternal(metadataDiagnostics); }, diagnosticNode, - MetadataLookUpType.PartitionKeyRangeLookUp + MetadataLookUpType.PartitionKeyRangeLookUp, ); return createCompleteRoutingMap(resources.map((r) => [r, true])); } diff --git a/sdk/cosmosdb/cosmos/src/routing/smartRoutingMapProvider.ts b/sdk/cosmosdb/cosmos/src/routing/smartRoutingMapProvider.ts index 9379a55a0e74..57eaa55d95ca 100644 --- a/sdk/cosmosdb/cosmos/src/routing/smartRoutingMapProvider.ts +++ b/sdk/cosmosdb/cosmos/src/routing/smartRoutingMapProvider.ts @@ -72,7 +72,7 @@ export class SmartRoutingMapProvider { public async getOverlappingRanges( collectionLink: string, sortedRanges: QueryRange[], - diagnosticNode: DiagnosticNodeInternal + diagnosticNode: DiagnosticNodeInternal, ): Promise { // validate if the list is non- overlapping and sorted TODO: any PartitionKeyRanges if (!SmartRoutingMapProvider._isSortedAndNonOverlapping(sortedRanges)) { @@ -87,7 +87,7 @@ export class SmartRoutingMapProvider { const collectionRoutingMap = await this.partitionKeyRangeCache.onCollectionRoutingMap( collectionLink, - diagnosticNode + diagnosticNode, ); let index = 0; @@ -106,7 +106,7 @@ export class SmartRoutingMapProvider { if (partitionKeyRanges.length > 0) { queryRange = SmartRoutingMapProvider._subtractRange( currentProvidedRange, - partitionKeyRanges[partitionKeyRanges.length - 1] + partitionKeyRanges[partitionKeyRanges.length - 1], ); } else { queryRange = currentProvidedRange; @@ -119,7 +119,7 @@ export class SmartRoutingMapProvider { partitionKeyRanges = partitionKeyRanges.concat(overlappingRanges); const lastKnownTargetRange = QueryRange.parsePartitionKeyRange( - partitionKeyRanges[partitionKeyRanges.length - 1] + partitionKeyRanges[partitionKeyRanges.length - 1], ); if (!lastKnownTargetRange) { throw new Error("expected lastKnowTargetRange to be truthy"); @@ -143,7 +143,7 @@ export class SmartRoutingMapProvider { while ( SmartRoutingMapProvider._stringCompare( currentProvidedRange.max, - lastKnownTargetRange.max + lastKnownTargetRange.max, ) <= 0 ) { // the current range is covered too.just move forward diff --git a/sdk/cosmosdb/cosmos/src/session/VectorSessionToken.ts b/sdk/cosmosdb/cosmos/src/session/VectorSessionToken.ts index d93a1a25377e..848c73fbcd3d 100644 --- a/sdk/cosmosdb/cosmos/src/session/VectorSessionToken.ts +++ b/sdk/cosmosdb/cosmos/src/session/VectorSessionToken.ts @@ -19,7 +19,7 @@ export class VectorSessionToken { private readonly version: number, private readonly globalLsn: number, private readonly localLsnByregion: Map, - private readonly sessionToken?: string + private readonly sessionToken?: string, ) { if (!this.sessionToken) { const regionAndLocalLsn = []; @@ -37,7 +37,7 @@ export class VectorSessionToken { public static create(sessionToken: string): VectorSessionToken | null { const [versionStr, globalLsnStr, ...regionSegments] = sessionToken.split( - VectorSessionToken.SEGMENT_SEPARATOR + VectorSessionToken.SEGMENT_SEPARATOR, ); const version = parseInt(versionStr, 10); @@ -50,7 +50,7 @@ export class VectorSessionToken { const lsnByRegion = new Map(); for (const regionSegment of regionSegments) { const [regionIdStr, localLsnStr] = regionSegment.split( - VectorSessionToken.REGION_PROGRESS_SEPARATOR + VectorSessionToken.REGION_PROGRESS_SEPARATOR, ); if (!regionIdStr || !localLsnStr) { @@ -93,13 +93,13 @@ export class VectorSessionToken { this.localLsnByregion.size !== other.localLsnByregion.size ) { throw new Error( - `Compared session tokens ${this.sessionToken} and ${other.sessionToken} have unexpected regions` + `Compared session tokens ${this.sessionToken} and ${other.sessionToken} have unexpected regions`, ); } const [higherVersionSessionToken, lowerVersionSessionToken]: [ VectorSessionToken, - VectorSessionToken + VectorSessionToken, ] = this.version < other.version ? [other, this] : [this, other]; const highestLocalLsnByRegion = new Map(); @@ -110,7 +110,7 @@ export class VectorSessionToken { highestLocalLsnByRegion.set(regionId, max(highLocalLsn, lowLocalLsn)); } else if (this.version === other.version) { throw new Error( - `Compared session tokens have unexpected regions. Session 1: ${this.sessionToken} - Session 2: ${this.sessionToken}` + `Compared session tokens have unexpected regions. Session 1: ${this.sessionToken} - Session 2: ${this.sessionToken}`, ); } else { highestLocalLsnByRegion.set(regionId, highLocalLsn); @@ -120,7 +120,7 @@ export class VectorSessionToken { return new VectorSessionToken( Math.max(this.version, other.version), Math.max(this.globalLsn, other.globalLsn), - highestLocalLsnByRegion + highestLocalLsnByRegion, ); } diff --git a/sdk/cosmosdb/cosmos/src/session/sessionContainer.ts b/sdk/cosmosdb/cosmos/src/session/sessionContainer.ts index d34d233e44fa..06313a6aefc2 100644 --- a/sdk/cosmosdb/cosmos/src/session/sessionContainer.ts +++ b/sdk/cosmosdb/cosmos/src/session/sessionContainer.ts @@ -13,7 +13,10 @@ export class SessionContainer { private static readonly SESSION_TOKEN_PARTITION_SPLITTER = ":"; constructor( private collectionNameToCollectionResourceId = new Map(), - private collectionResourceIdToSessionTokens = new Map>() + private collectionResourceIdToSessionTokens = new Map< + string, + Map + >(), ) {} public get(request: SessionContext): string { @@ -85,12 +88,12 @@ export class SessionContainer { } private getPartitionKeyRangeIdToTokenMap( - collectionName: string + collectionName: string, ): Map { let rangeIdToTokenMap: Map = null; if (collectionName && this.collectionNameToCollectionResourceId.has(collectionName)) { rangeIdToTokenMap = this.collectionResourceIdToSessionTokens.get( - this.collectionNameToCollectionResourceId.get(collectionName) + this.collectionNameToCollectionResourceId.get(collectionName), ); } @@ -115,7 +118,7 @@ export class SessionContainer { private static compareAndSetToken( newTokenString: string, - containerSessionTokens: Map + containerSessionTokens: Map, ): void { if (!newTokenString) { return; @@ -140,7 +143,7 @@ export class SessionContainer { // TODO: have a assert if the type doesn't mastch known types private static isReadingFromMaster( resourceType: ResourceType, - operationType: OperationType + operationType: OperationType, ): boolean { if ( resourceType === Constants.Path.OffersPathSegment || diff --git a/sdk/cosmosdb/cosmos/src/utils/SasToken.ts b/sdk/cosmosdb/cosmos/src/utils/SasToken.ts index fd0a7af84d14..ca2866ebe3b6 100644 --- a/sdk/cosmosdb/cosmos/src/utils/SasToken.ts +++ b/sdk/cosmosdb/cosmos/src/utils/SasToken.ts @@ -13,7 +13,7 @@ import { hmac } from "./hmac"; export async function createAuthorizationSasToken( masterKey: string, - sasTokenProperties: SasTokenProperties + sasTokenProperties: SasTokenProperties, ): Promise { let resourcePrefixPath = ""; if ( diff --git a/sdk/cosmosdb/cosmos/src/utils/atob.browser.ts b/sdk/cosmosdb/cosmos/src/utils/atob.browser.ts index 93c5917396f5..3f79cf7d903a 100644 --- a/sdk/cosmosdb/cosmos/src/utils/atob.browser.ts +++ b/sdk/cosmosdb/cosmos/src/utils/atob.browser.ts @@ -16,7 +16,7 @@ if ("function" !== typeof atob) { str = String(str).replace(/[\t\n\f\r ]+/g, ""); if (!b64re.test(str)) { throw new TypeError( - "Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded." + "Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.", ); } @@ -38,8 +38,8 @@ if ("function" !== typeof atob) { r1 === 64 ? String.fromCharCode((bitmap >> 16) & 255) : r2 === 64 - ? String.fromCharCode((bitmap >> 16) & 255, (bitmap >> 8) & 255) - : String.fromCharCode((bitmap >> 16) & 255, (bitmap >> 8) & 255, bitmap & 255); + ? String.fromCharCode((bitmap >> 16) & 255, (bitmap >> 8) & 255) + : String.fromCharCode((bitmap >> 16) & 255, (bitmap >> 8) & 255, bitmap & 255); } return result; }; diff --git a/sdk/cosmosdb/cosmos/src/utils/batch.ts b/sdk/cosmosdb/cosmos/src/utils/batch.ts index d5181375b476..dd8f14bf04aa 100644 --- a/sdk/cosmosdb/cosmos/src/utils/batch.ts +++ b/sdk/cosmosdb/cosmos/src/utils/batch.ts @@ -159,7 +159,7 @@ export type BulkPatchOperation = OperationBase & { }; export function hasResource( - operation: Operation + operation: Operation, ): operation is CreateOperation | UpsertOperation | ReplaceOperation { return ( operation.operationType !== "Patch" && @@ -184,7 +184,7 @@ export function hasResource( export function prepareOperations( operationInput: OperationInput, definition: PartitionKeyDefinition, - options: RequestOptions = {} + options: RequestOptions = {}, ): { operation: Operation; partitionKey: PrimitivePartitionKeyValue[]; @@ -205,7 +205,7 @@ export function prepareOperations( case BulkOperationType.Upsert: partitionKey = assertNotUndefined( extractPartitionKeys(operationInput.resourceBody, definition), - "Unexpected undefined Partition Key Found." + "Unexpected undefined Partition Key Found.", ); break; case BulkOperationType.Read: @@ -288,7 +288,7 @@ export function calculateObjectSizeInBytes(obj: unknown): number { export function decorateBatchOperation( operation: OperationInput, - options: RequestOptions = {} + options: RequestOptions = {}, ): Operation { if ( operation.operationType === BulkOperationType.Create || diff --git a/sdk/cosmosdb/cosmos/src/utils/diagnostics.ts b/sdk/cosmosdb/cosmos/src/utils/diagnostics.ts index cb4026e3b924..e92271076b13 100644 --- a/sdk/cosmosdb/cosmos/src/utils/diagnostics.ts +++ b/sdk/cosmosdb/cosmos/src/utils/diagnostics.ts @@ -39,7 +39,7 @@ export function getEmptyCosmosDiagnostics(): CosmosDiagnostics { data: {}, startTimeUTCInMs: getCurrentTimestampInMs(), durationInMs: 0, - } + }, ); } @@ -55,12 +55,12 @@ export type ExtractPromise = T extends Promise ? U : never; * @hidden */ export async function addDignosticChild< - Callback extends (node: DiagnosticNodeInternal) => Promise + Callback extends (node: DiagnosticNodeInternal) => Promise, >( callback: Callback, node: DiagnosticNodeInternal, type: DiagnosticNodeType, - data: Partial = {} + data: Partial = {}, ): Promise>> { const childNode = node.initializeChildNode(type, CosmosDbDiagnosticLevel.debug, data); try { @@ -86,16 +86,16 @@ export async function addDignosticChild< * @hidden */ export async function withMetadataDiagnostics< - Callback extends (node: DiagnosticNodeInternal) => Promise + Callback extends (node: DiagnosticNodeInternal) => Promise, >( callback: Callback, node: DiagnosticNodeInternal, - type: MetadataLookUpType + type: MetadataLookUpType, ): Promise>> { const diagnosticNodeForMetadataCall = new DiagnosticNodeInternal( node.diagnosticLevel, DiagnosticNodeType.METADATA_REQUEST_NODE, - null + null, ); try { const response: any = await callback(diagnosticNodeForMetadataCall); @@ -128,11 +128,11 @@ export async function withMetadataDiagnostics< * @hidden */ export async function withDiagnostics< - Callback extends (node: DiagnosticNodeInternal) => Promise + Callback extends (node: DiagnosticNodeInternal) => Promise, >( callback: Callback, clientContext: ClientContext, - type: DiagnosticNodeType = DiagnosticNodeType.CLIENT_REQUEST_NODE + type: DiagnosticNodeType = DiagnosticNodeType.CLIENT_REQUEST_NODE, ): Promise>> { const diagnosticNode = new DiagnosticNodeInternal(clientContext.diagnosticLevel, type, null); try { diff --git a/sdk/cosmosdb/cosmos/src/utils/hashing/encoding/number.ts b/sdk/cosmosdb/cosmos/src/utils/hashing/encoding/number.ts index dd1baf160286..0e818a2c4719 100644 --- a/sdk/cosmosdb/cosmos/src/utils/hashing/encoding/number.ts +++ b/sdk/cosmosdb/cosmos/src/utils/hashing/encoding/number.ts @@ -64,8 +64,8 @@ export function doubleToByteArrayJSBI(double: number): Buffer { output[i] = JSBI.toNumber( JSBI.bitwiseAnd( JSBI.signedRightShift(lng, JSBI.multiply(JSBI.BigInt(i), JSBI.BigInt(8))), - JSBI.BigInt(0xff) - ) + JSBI.BigInt(0xff), + ), ); } return output; diff --git a/sdk/cosmosdb/cosmos/src/utils/hashing/hash.ts b/sdk/cosmosdb/cosmos/src/utils/hashing/hash.ts index d6375ae14f50..06fbce5f61c1 100644 --- a/sdk/cosmosdb/cosmos/src/utils/hashing/hash.ts +++ b/sdk/cosmosdb/cosmos/src/utils/hashing/hash.ts @@ -19,7 +19,7 @@ import { hashV2PartitionKey } from "./v2"; */ export function hashPartitionKey( partitionKey: PrimitivePartitionKeyValue[], - partitionDefinition: PartitionKeyDefinition + partitionDefinition: PartitionKeyDefinition, ): string { const kind: PartitionKeyKind = partitionDefinition?.kind || PartitionKeyKind.Hash; // Default value. const isV2 = diff --git a/sdk/cosmosdb/cosmos/src/utils/hashing/murmurHash.ts b/sdk/cosmosdb/cosmos/src/utils/hashing/murmurHash.ts index 06a19f4e29fc..54a24e3b7835 100644 --- a/sdk/cosmosdb/cosmos/src/utils/hashing/murmurHash.ts +++ b/sdk/cosmosdb/cosmos/src/utils/hashing/murmurHash.ts @@ -524,13 +524,13 @@ function x64Hash128(bytes: Buffer, seed?: number) { const h1Buff = Buffer.from( ("00000000" + (h1[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (h1[1] >>> 0).toString(16)).slice(-8), - "hex" + "hex", ); const h1Reversed = reverse(h1Buff).toString("hex"); const h2Buff = Buffer.from( ("00000000" + (h2[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (h2[1] >>> 0).toString(16)).slice(-8), - "hex" + "hex", ); const h2Reversed = reverse(h2Buff).toString("hex"); return h1Reversed + h2Reversed; diff --git a/sdk/cosmosdb/cosmos/src/utils/headers.ts b/sdk/cosmosdb/cosmos/src/utils/headers.ts index b8407d28bc3c..2df3e95bf4e5 100644 --- a/sdk/cosmosdb/cosmos/src/utils/headers.ts +++ b/sdk/cosmosdb/cosmos/src/utils/headers.ts @@ -9,7 +9,7 @@ export async function generateHeaders( method: HTTPMethod, resourceType: ResourceType = ResourceType.none, resourceId: string = "", - date = new Date() + date = new Date(), ): Promise<{ [x: string]: string; }> { @@ -32,7 +32,7 @@ async function signature( method: HTTPMethod, resourceType: ResourceType, resourceId: string = "", - date = new Date() + date = new Date(), ): Promise { const type = "master"; const version = "1.0"; diff --git a/sdk/cosmosdb/cosmos/src/utils/hmac.browser.ts b/sdk/cosmosdb/cosmos/src/utils/hmac.browser.ts index b9d0312d2add..545e8a66bacb 100644 --- a/sdk/cosmosdb/cosmos/src/utils/hmac.browser.ts +++ b/sdk/cosmosdb/cosmos/src/utils/hmac.browser.ts @@ -8,7 +8,7 @@ import { globalCrypto } from "./globalCrypto"; export async function hmac(key: string, message: string): Promise { const importParams: HmacImportParams = { name: "HMAC", hash: { name: "SHA-256" } }; const encodedMessage = new Uint8Array( - [...unescape(encodeURIComponent(message))].map((c) => c.charCodeAt(0)) + [...unescape(encodeURIComponent(message))].map((c) => c.charCodeAt(0)), ); const encodedKey = encodeUTF8(atob(key)); const cryptoKey = await globalCrypto.subtle.importKey("raw", encodedKey, importParams, false, [ diff --git a/sdk/cosmosdb/cosmos/src/utils/offers.ts b/sdk/cosmosdb/cosmos/src/utils/offers.ts index 443212bd9e48..9731acfc1559 100644 --- a/sdk/cosmosdb/cosmos/src/utils/offers.ts +++ b/sdk/cosmosdb/cosmos/src/utils/offers.ts @@ -11,7 +11,7 @@ export function validateOffer(body: ContainerRequest): void { } if (body.autoUpgradePolicy) { throw new Error( - "Cannot specify autoUpgradePolicy with throughput. Use `maxThroughput` instead" + "Cannot specify autoUpgradePolicy with throughput. Use `maxThroughput` instead", ); } } diff --git a/sdk/cosmosdb/cosmos/test/internal/session.spec.ts b/sdk/cosmosdb/cosmos/test/internal/session.spec.ts index 7a6b589e6b60..1d77767c61e7 100644 --- a/sdk/cosmosdb/cosmos/test/internal/session.spec.ts +++ b/sdk/cosmosdb/cosmos/test/internal/session.spec.ts @@ -51,7 +51,7 @@ describe("New session token", function () { const { resource: createdContainerDef } = await database.containers.create( containerDefinition, - containerOptions + containerOptions, ); const container = database.container(createdContainerDef.id); @@ -98,29 +98,29 @@ describe("Integrated Cache Staleness", async function (this: Suite) { assert.ok( context.headers["x-ms-consistency-level"] === "Eventual" || context.headers["x-ms-consistency-level"] === "Session", - `${context.headers["x-ms-consistency-level"]} = EVENTUAL or SESSION` + `${context.headers["x-ms-consistency-level"]} = EVENTUAL or SESSION`, ); if (context.headers["x-ms-dedicatedgateway-max-age"] === "null") { assert.ok( context.headers["x-ms-dedicatedgateway-max-age"] === "null", - "x-ms-dedicatedgateway-max-age will be ignored." + "x-ms-dedicatedgateway-max-age will be ignored.", ); } assert.ok( typeof context.headers["x-ms-dedicatedgateway-max-age"] === "string", - `${context.headers["x-ms-dedicatedgateway-max-age"]} = string` + `${context.headers["x-ms-dedicatedgateway-max-age"]} = string`, ); if (context.headers["x-ms-dedicatedgateway-max-age"] === "0") { assert.ok( context.headers["x-ms-dedicatedgateway-max-age"] === "0", - "x-ms-dedicatedgateway-max-age will be ignored." + "x-ms-dedicatedgateway-max-age will be ignored.", ); } assert.ok( context.headers["x-ms-dedicatedgateway-max-age"] === `"${dedicatedGatewayMaxAge}"`, - `${context.headers["x-ms-dedicatedgateway-max-age"]} = "${dedicatedGatewayMaxAge}"` + `${context.headers["x-ms-dedicatedgateway-max-age"]} = "${dedicatedGatewayMaxAge}"`, ); } const response = await next(context); diff --git a/sdk/cosmosdb/cosmos/test/internal/unit/auth.spec.ts b/sdk/cosmosdb/cosmos/test/internal/unit/auth.spec.ts index 676164cce1f6..ae91d3f41ac8 100644 --- a/sdk/cosmosdb/cosmos/test/internal/unit/auth.spec.ts +++ b/sdk/cosmosdb/cosmos/test/internal/unit/auth.spec.ts @@ -14,7 +14,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { foo: "bar", }, "foo", - "foo" + "foo", ); assert.strictEqual(token, "bar"); }); @@ -25,7 +25,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { "dbs/ValidateAuthorization containe8734/colls/ValidateAuthorization containe5344": "token", }, "/dbs/ValidateAuthorization%20containe8734/colls/ValidateAuthorization%20containe5344/docs/coll1doc1", - "dbs/ValidateAuthorization containe8734/colls/ValidateAuthorization containe5344/docs/coll1doc1" + "dbs/ValidateAuthorization containe8734/colls/ValidateAuthorization containe5344/docs/coll1doc1", ); assert.strictEqual(token, "token"); }); diff --git a/sdk/cosmosdb/cosmos/test/internal/unit/changeFeed/feedRangeQueue.spec.ts b/sdk/cosmosdb/cosmos/test/internal/unit/changeFeed/feedRangeQueue.spec.ts index d3ccc57b148d..2c4cf50d8a04 100644 --- a/sdk/cosmosdb/cosmos/test/internal/unit/changeFeed/feedRangeQueue.spec.ts +++ b/sdk/cosmosdb/cosmos/test/internal/unit/changeFeed/feedRangeQueue.spec.ts @@ -29,7 +29,7 @@ describe("test feedRangeQueue", function () { const newChangeFeedRange = new ChangeFeedRange( feedRanges[0].minInclusive, feedRanges[0].maxExclusive, - feedRanges[0].continuation + feedRanges[0].continuation, ); feedRangeQueue.enqueue(newChangeFeedRange); assert.equal(feedRangeQueue.isEmpty(), false); @@ -46,17 +46,17 @@ describe("test feedRangeQueue", function () { const firstElement = new ChangeFeedRange( feedRanges[0].minInclusive, feedRanges[0].maxExclusive, - feedRanges[0].continuation + feedRanges[0].continuation, ); const secondElement = new ChangeFeedRange( feedRanges[0].minInclusive, feedRanges[0].maxExclusive, - feedRanges[0].continuation + feedRanges[0].continuation, ); const thirdElement = new ChangeFeedRange( feedRanges[0].minInclusive, feedRanges[0].maxExclusive, - feedRanges[0].continuation + feedRanges[0].continuation, ); feedRangeQueue.enqueue(firstElement); @@ -76,7 +76,7 @@ describe("test feedRangeQueue", function () { const newFirstElement = new ChangeFeedRange( feedRanges[0].minInclusive, feedRanges[0].maxExclusive, - "'100'" + "'100'", ); feedRangeQueue.modifyFirstElement(newFirstElement); assert.equal(feedRangeQueue.peek(), newFirstElement); diff --git a/sdk/cosmosdb/cosmos/test/internal/unit/client.spec.ts b/sdk/cosmosdb/cosmos/test/internal/unit/client.spec.ts index 835f16f4920d..865f07ef09cc 100644 --- a/sdk/cosmosdb/cosmos/test/internal/unit/client.spec.ts +++ b/sdk/cosmosdb/cosmos/test/internal/unit/client.spec.ts @@ -94,7 +94,7 @@ describe("Testing Credentials integration for Client", function (this: Suite) { client = new CosmosClient({ endpoint: mockedEndpoint, aadCredentials: new MockCredential( - Promise.resolve({ token: aadToken, expiresOnTimestamp: 0 }) + Promise.resolve({ token: aadToken, expiresOnTimestamp: 0 }), ), }); }); @@ -112,8 +112,8 @@ describe("Testing Credentials integration for Client", function (this: Suite) { spy.calledWithMatch( Sinon.match(function (arg: RequestContext) { return !!arg?.pipeline; - }) - ) + }), + ), ); }); it("Test pipeline setup for items.read for aadCredentials", async function () { @@ -126,8 +126,8 @@ describe("Testing Credentials integration for Client", function (this: Suite) { spy.calledWithMatch( Sinon.match(function (arg: RequestContext) { return !!arg?.pipeline; - }) - ) + }), + ), ); }); it("Test pipeline setup for items.patch", async function () { @@ -140,8 +140,8 @@ describe("Testing Credentials integration for Client", function (this: Suite) { spy.calledWithMatch( Sinon.match(function (arg: RequestContext) { return !!arg?.pipeline; - }) - ) + }), + ), ); }); it("Test pipeline setup for items.replace", async function () { @@ -155,8 +155,8 @@ describe("Testing Credentials integration for Client", function (this: Suite) { spy.calledWithMatch( Sinon.match(function (arg: RequestContext) { return !!arg?.pipeline; - }) - ) + }), + ), ); }); it("Test pipeline setup for items.upsert", async function () { @@ -168,8 +168,8 @@ describe("Testing Credentials integration for Client", function (this: Suite) { spy.calledWithMatch( Sinon.match(function (arg: RequestContext) { return !!arg?.pipeline; - }) - ) + }), + ), ); }); it("Test pipeline setup for items.delete", async function () { @@ -182,8 +182,8 @@ describe("Testing Credentials integration for Client", function (this: Suite) { spy.calledWithMatch( Sinon.match(function (arg: RequestContext) { return !!arg?.pipeline; - }) - ) + }), + ), ); }); it("Test pipeline setup for items.batch", async function () { @@ -195,8 +195,8 @@ describe("Testing Credentials integration for Client", function (this: Suite) { spy.calledWithMatch( Sinon.match(function (arg: RequestContext) { return !!arg?.pipeline; - }) - ) + }), + ), ); }); @@ -251,8 +251,8 @@ describe("Testing Credentials integration for Client", function (this: Suite) { const AUTH_PREFIX = `type%3Dmaster%26ver%3D1`; const authHeader: string = arg?.headers["authorization"]?.toString() || ""; return authHeader.includes(AUTH_PREFIX); - }) - ) + }), + ), ); }); }); diff --git a/sdk/cosmosdb/cosmos/test/internal/unit/diagnostics.spec.ts b/sdk/cosmosdb/cosmos/test/internal/unit/diagnostics.spec.ts index dee50142d005..50df18713812 100644 --- a/sdk/cosmosdb/cosmos/test/internal/unit/diagnostics.spec.ts +++ b/sdk/cosmosdb/cosmos/test/internal/unit/diagnostics.spec.ts @@ -70,7 +70,7 @@ describe("Diagnostic Unit Tests", function (this: Suite) { const diagnosticNode = new DiagnosticNodeInternal( CosmosDbDiagnosticLevel.debug, DiagnosticNodeType.CLIENT_REQUEST_NODE, - null + null, ); const childNodeType = DiagnosticNodeType.METADATA_REQUEST_NODE; // Ensure that addDignosticChild throws an exception by wrapping it in a function @@ -81,7 +81,7 @@ describe("Diagnostic Unit Tests", function (this: Suite) { throw new ErrorResponse("Testing error handling in diagnostic child."); }, diagnosticNode, - childNodeType + childNodeType, ); }; @@ -102,7 +102,7 @@ describe("Diagnostic Unit Tests", function (this: Suite) { const diagnosticNode = new DiagnosticNodeInternal( diagnosticLevel, DiagnosticNodeType.CLIENT_REQUEST_NODE, - null + null, ); const childNodeType = DiagnosticNodeType.METADATA_REQUEST_NODE; const testResponse = await addDignosticChild( @@ -111,7 +111,7 @@ describe("Diagnostic Unit Tests", function (this: Suite) { return testValue; }, diagnosticNode, - childNodeType + childNodeType, ); // Test the returned value matches. @@ -120,15 +120,15 @@ describe("Diagnostic Unit Tests", function (this: Suite) { expect(diagnosticNode.children.length).to.equal(1); // Test a child diagnostic Node is for the correct type. expect(diagnosticNode.children[0].nodeType).to.equal(childNodeType); - } - ) + }, + ), ); }); it("Test in info diagnostic level child diagnostic nodes are not added.", async function () { const diagnosticNode = new DiagnosticNodeInternal( CosmosDbDiagnosticLevel.info, DiagnosticNodeType.CLIENT_REQUEST_NODE, - null + null, ); const childNodeType = DiagnosticNodeType.METADATA_REQUEST_NODE; // Ensure that addDignosticChild throws an exception by wrapping it in a function @@ -137,7 +137,7 @@ describe("Diagnostic Unit Tests", function (this: Suite) { expect(childNode).to.exist; // eslint-disable-line no-unused-expressions }, diagnosticNode, - childNodeType + childNodeType, ); // Test a child diagnostic Node is added. @@ -199,13 +199,13 @@ describe("Diagnostic Unit Tests", function (this: Suite) { }); expect((clientInfo as any).clientContext.diagnosticLevel).to.be.eql( - CosmosDbDiagnosticLevel.info + CosmosDbDiagnosticLevel.info, ); expect((clientDebug as any).clientContext.diagnosticLevel).to.be.eql( - CosmosDbDiagnosticLevel.debug + CosmosDbDiagnosticLevel.debug, ); expect((clientDebugUnsafe as any).clientContext.diagnosticLevel).to.be.eql( - CosmosDbDiagnosticLevel.debugUnsafe + CosmosDbDiagnosticLevel.debugUnsafe, ); }); }); @@ -230,7 +230,7 @@ describe("Diagnostic Unit Tests", function (this: Suite) { }); function createTestClientContext( options: Partial, - diagnosticLevel: CosmosDbDiagnosticLevel + diagnosticLevel: CosmosDbDiagnosticLevel, ) { const clientOps: CosmosClientOptions = { endpoint: "", @@ -246,7 +246,7 @@ function createTestClientContext( expect(opts).to.exist; // eslint-disable-line no-unused-expressions const dummyAccount: any = diagnosticNode; return dummyAccount; - } + }, ); const clientConfig: ClientConfigDiagnostic = { endpoint: "", @@ -266,7 +266,7 @@ function createTestClientContext( clientOps, globalEndpointManager, clientConfig, - diagnosticLevel + diagnosticLevel, ); return clientContext; } diff --git a/sdk/cosmosdb/cosmos/test/internal/unit/platform.spec.ts b/sdk/cosmosdb/cosmos/test/internal/unit/platform.spec.ts index b57929a17357..69f8cec609de 100644 --- a/sdk/cosmosdb/cosmos/test/internal/unit/platform.spec.ts +++ b/sdk/cosmosdb/cosmos/test/internal/unit/platform.spec.ts @@ -28,7 +28,7 @@ describe("Version", function () { assert.equal( constantVersion, packageVersion, - "Package.json and Constants.SDKVersion don't match" + "Package.json and Constants.SDKVersion don't match", ); }); }); diff --git a/sdk/cosmosdb/cosmos/test/internal/unit/sessionContainer.spec.ts b/sdk/cosmosdb/cosmos/test/internal/unit/sessionContainer.spec.ts index d5baf836d36d..45aae032780c 100644 --- a/sdk/cosmosdb/cosmos/test/internal/unit/sessionContainer.spec.ts +++ b/sdk/cosmosdb/cosmos/test/internal/unit/sessionContainer.spec.ts @@ -34,7 +34,7 @@ describe("SessionContainer", function () { assert.equal( tokenString, originalTokenString, - "Session token string must be equal to original header on initial set" + "Session token string must be equal to original header on initial set", ); // Add an older token, should still equal original token @@ -45,7 +45,7 @@ describe("SessionContainer", function () { assert.equal( tokenString, sameTokenString, - "Session token string must be equal to the original higher version header" + "Session token string must be equal to the original higher version header", ); // Add a newer version token, should equal new token @@ -56,7 +56,7 @@ describe("SessionContainer", function () { assert.equal( tokenStringWithNewerVersion, updatedTokenString, - "Session token string must be equal to the new higher version header" + "Session token string must be equal to the new higher version header", ); // Add a new partition's token, should container new and old token @@ -66,11 +66,11 @@ describe("SessionContainer", function () { const multiplePartitions = sc.get(nameBasedRequest); assert( multiplePartitions.includes(tokenStringWithNewerVersion), - "Token string must contain token from updated request" + "Token string must contain token from updated request", ); assert( multiplePartitions.includes(tokenFromAnotherPartition), - "Token string must contain from new partition" + "Token string must contain from new partition", ); // Add a token with has multiple partitions in it, 1 old, and 1 new. Should only keep the new one, but still contain tokens for both @@ -81,11 +81,11 @@ describe("SessionContainer", function () { const multiplePartitions2 = sc.get(nameBasedRequest); assert( multiplePartitions2.includes(tokenStringWithNewerVersion), - "Token string must contain token from previous request for first partition" + "Token string must contain token from previous request for first partition", ); assert( multiplePartitions2.includes(p2TokenWithNewerVersion), - "Token string must contain from updated token for second partition" + "Token string must contain from updated token for second partition", ); // Remove tokens and get new token, should be empty diff --git a/sdk/cosmosdb/cosmos/test/internal/unit/smartRoutingMapProvider.spec.ts b/sdk/cosmosdb/cosmos/test/internal/unit/smartRoutingMapProvider.spec.ts index f94ea226951e..e59b63a7be79 100644 --- a/sdk/cosmosdb/cosmos/test/internal/unit/smartRoutingMapProvider.spec.ts +++ b/sdk/cosmosdb/cosmos/test/internal/unit/smartRoutingMapProvider.spec.ts @@ -47,7 +47,7 @@ describe("Smart Routing Map Provider OverlappingRanges", function () { results1 = await smartRoutingMapProvider.getOverlappingRanges( containerLink, queryRanges, - createDummyDiagnosticNode() + createDummyDiagnosticNode(), ); } catch (err: any) { err1 = err; @@ -56,7 +56,7 @@ describe("Smart Routing Map Provider OverlappingRanges", function () { results2 = await partitionKeyRangeCache.getOverlappingRanges( containerLink, queryRanges, - createDummyDiagnosticNode() + createDummyDiagnosticNode(), ); } catch (err: any) { err2 = err; @@ -71,14 +71,14 @@ describe("Smart Routing Map Provider OverlappingRanges", function () { provider: SmartRoutingMapProvider, queryRanges: any, expectedResults: any, - errorExpected?: any + errorExpected?: any, ): Promise { errorExpected = errorExpected || false; try { const results = await provider.getOverlappingRanges( containerLink, queryRanges, - createDummyDiagnosticNode() + createDummyDiagnosticNode(), ); assert.deepEqual(results, expectedResults); } catch (err: any) { @@ -96,13 +96,13 @@ describe("Smart Routing Map Provider OverlappingRanges", function () { const validateSmartOverlappingRanges = async function ( queryRanges: any, expectedResults: any, - errorExpected: any + errorExpected: any, ): Promise { await validateProviderOverlappingRanges( smartRoutingMapProvider, queryRanges, expectedResults, - errorExpected + errorExpected, ); }; @@ -111,13 +111,13 @@ describe("Smart Routing Map Provider OverlappingRanges", function () { const validatePartitionKeyRangeCacheOverlappingRanges = async function ( queryRanges: any, expectedResults: any, - errorExpected: any + errorExpected: any, ): Promise { await validateProviderOverlappingRanges( partitionKeyRangeCache as any, queryRanges, expectedResults, - errorExpected + errorExpected, ); }; @@ -127,14 +127,14 @@ describe("Smart Routing Map Provider OverlappingRanges", function () { const validateOverlappingRanges = async function ( queryRanges: any, expectedResults: any, - errorExpected?: any + errorExpected?: any, ): Promise { errorExpected = errorExpected || false; await validateSmartOverlappingRanges(queryRanges, expectedResults, errorExpected); await validatePartitionKeyRangeCacheOverlappingRanges( queryRanges, expectedResults, - errorExpected + errorExpected, ); }; @@ -143,7 +143,7 @@ describe("Smart Routing Map Provider OverlappingRanges", function () { const assertProviderOverlappingRangesAreEqual = async function ( provider: SmartRoutingMapProvider, queryRanges1: any, - queryRanges2: any + queryRanges2: any, ): Promise { let results1: any; let results2: any; @@ -153,7 +153,7 @@ describe("Smart Routing Map Provider OverlappingRanges", function () { results1 = await provider.getOverlappingRanges( containerLink, queryRanges1, - createDummyDiagnosticNode() + createDummyDiagnosticNode(), ); } catch (err: any) { err1 = err; @@ -162,7 +162,7 @@ describe("Smart Routing Map Provider OverlappingRanges", function () { results2 = await provider.getOverlappingRanges( containerLink, queryRanges2, - createDummyDiagnosticNode() + createDummyDiagnosticNode(), ); } catch (err: any) { err2 = err; @@ -176,17 +176,17 @@ describe("Smart Routing Map Provider OverlappingRanges", function () { // partitionKeyRangeCache.getOverlappingRanges() is the same for both queryRanges1, queryRanges2 const assertOverlappingRangesAreEqual = async function ( queryRanges1: any, - queryRanges2: any + queryRanges2: any, ): Promise { await assertProviderOverlappingRangesAreEqual( smartRoutingMapProvider, queryRanges1, - queryRanges2 + queryRanges2, ); await assertProviderOverlappingRangesAreEqual( partitionKeyRangeCache as any, queryRanges1, - queryRanges2 + queryRanges2, ); await assertBothProvidersResultsEqual(queryRanges1); }; diff --git a/sdk/cosmosdb/cosmos/test/internal/unit/timeoutFailoverRetryPolicy.spec.ts b/sdk/cosmosdb/cosmos/test/internal/unit/timeoutFailoverRetryPolicy.spec.ts index 2e3b29b25567..dac97a5831bd 100644 --- a/sdk/cosmosdb/cosmos/test/internal/unit/timeoutFailoverRetryPolicy.spec.ts +++ b/sdk/cosmosdb/cosmos/test/internal/unit/timeoutFailoverRetryPolicy.spec.ts @@ -53,10 +53,10 @@ describe("TimeoutFailoverRetryPolicy", function () { headers, 200, getEmptyCosmosDiagnostics(), - undefined + undefined, ); return response; - } + }, ); let retryPolicy: TimeoutFailoverRetryPolicy; @@ -71,7 +71,7 @@ describe("TimeoutFailoverRetryPolicy", function () { HTTPMethod.get, ResourceType.item, OperationType.Read, - true + true, ); retryCtx = { retryCount: 2 }; timeoutErr = new TimeoutError(); @@ -89,9 +89,9 @@ describe("TimeoutFailoverRetryPolicy", function () { err, createDummyDiagnosticNode(), retryContext, - locationEndpoint + locationEndpoint, ), - false + false, ); // retryContext is undefined assert.equal( @@ -99,9 +99,9 @@ describe("TimeoutFailoverRetryPolicy", function () { err, createDummyDiagnosticNode(), retryContext, - "locationEndpoint" + "locationEndpoint", ), - false + false, ); }); it("should not retry when timeout error but the request is not valid for timeout error", async function () { @@ -111,16 +111,16 @@ describe("TimeoutFailoverRetryPolicy", function () { HTTPMethod.post, ResourceType.item, OperationType.Read, - true + true, ); assert.equal( await retryPolicy_post.shouldRetry( timeoutErr, createDummyDiagnosticNode(), retryCtx, - "locationEndpoint" + "locationEndpoint", ), - false + false, ); }); it("should not retry when Endpoint discovery is disabled", async function () { @@ -130,16 +130,16 @@ describe("TimeoutFailoverRetryPolicy", function () { HTTPMethod.get, ResourceType.item, OperationType.Read, - false + false, ); assert.equal( await retryPolicy_endpointDiscoveryDisabled.shouldRetry( timeoutErr, createDummyDiagnosticNode(), retryCtx, - "locationEndpoint" + "locationEndpoint", ), - false + false, ); }); it("should not retry when maxServiceUnavailableRetryCount exceeded", async function () { @@ -156,9 +156,9 @@ describe("TimeoutFailoverRetryPolicy", function () { serviceUnavailableErr, createDummyDiagnosticNode(), retryCtx, - locEndpoint + locEndpoint, ), - true + true, ); // test maxServiceUnavailableRetryCount exceeded @@ -166,16 +166,16 @@ describe("TimeoutFailoverRetryPolicy", function () { serviceUnavailableErr, createDummyDiagnosticNode(), retryCtx, - locEndpoint + locEndpoint, ); assert.equal( await retryPolicy.shouldRetry( serviceUnavailableErr, createDummyDiagnosticNode(), retryCtx, - locEndpoint + locEndpoint, ), - false + false, ); }); it("should not retry when Maximum retry attempt count exceeded", async function () { @@ -185,7 +185,7 @@ describe("TimeoutFailoverRetryPolicy", function () { HTTPMethod.get, ResourceType.item, OperationType.Read, - true + true, ); for (let i = 0; i < 120; i++) { @@ -194,9 +194,9 @@ describe("TimeoutFailoverRetryPolicy", function () { timeoutErr, createDummyDiagnosticNode(), retryCtx, - locEndpoint + locEndpoint, ), - true + true, ); } assert.equal( @@ -204,9 +204,9 @@ describe("TimeoutFailoverRetryPolicy", function () { timeoutErr, createDummyDiagnosticNode(), retryCtx, - locEndpoint + locEndpoint, ), - false + false, ); }); it("should not retry when multiple write locations are not allowed", async function () { @@ -226,10 +226,10 @@ describe("TimeoutFailoverRetryPolicy", function () { headers, 200, getEmptyCosmosDiagnostics(), - undefined + undefined, ); return response; - } + }, ); const retryPolicy_multipleWriteLocationsDisabled = new TimeoutFailoverRetryPolicy( gem_test, @@ -237,16 +237,16 @@ describe("TimeoutFailoverRetryPolicy", function () { HTTPMethod.get, ResourceType.item, OperationType.Create, - true + true, ); assert.equal( await retryPolicy_multipleWriteLocationsDisabled.shouldRetry( timeoutErr, createDummyDiagnosticNode(), retryCtx, - locEndpoint + locEndpoint, ), - false + false, ); }); it("should retry when prefered locations are not defined and failover count exceeds the number of read", async function () { @@ -265,10 +265,10 @@ describe("TimeoutFailoverRetryPolicy", function () { headers, 200, getEmptyCosmosDiagnostics(), - undefined + undefined, ); return response; - } + }, ); const retryPolicy_preferedLocationsNotDefined = new TimeoutFailoverRetryPolicy( gem_test2, @@ -276,13 +276,13 @@ describe("TimeoutFailoverRetryPolicy", function () { HTTPMethod.get, ResourceType.item, OperationType.Read, - true + true, ); // initialising redable locations await gem_test2.resolveServiceEndpoint( createDummyDiagnosticNode(), ResourceType.item, - OperationType.Read + OperationType.Read, ); for (let i = 0; i < 120; i++) { assert.equal( @@ -290,9 +290,9 @@ describe("TimeoutFailoverRetryPolicy", function () { timeoutErr, createDummyDiagnosticNode(), retryCtx, - locEndpoint + locEndpoint, ), - true + true, ); } // retry count breached as only 2 endpoints were available @@ -301,9 +301,9 @@ describe("TimeoutFailoverRetryPolicy", function () { timeoutErr, createDummyDiagnosticNode(), retryCtx, - locEndpoint + locEndpoint, ), - false + false, ); }); }); diff --git a/sdk/cosmosdb/cosmos/test/internal/unit/utils/batch.spec.ts b/sdk/cosmosdb/cosmos/test/internal/unit/utils/batch.spec.ts index f3f1053573f9..9f469e03d8fd 100644 --- a/sdk/cosmosdb/cosmos/test/internal/unit/utils/batch.spec.ts +++ b/sdk/cosmosdb/cosmos/test/internal/unit/utils/batch.spec.ts @@ -23,7 +23,7 @@ const constantSize = calculateObjectSizeInBytes(operationSkeleton); export function generateOperationOfSize( sizeInBytes: number, attributes?: unknown, - partitionKey?: { [P in string]: unknown } + partitionKey?: { [P in string]: unknown }, ): Operation { if (sizeInBytes < constantSize) { throw new Error(`Not possible to generate operation of size less than ${constantSize}`); @@ -57,7 +57,7 @@ describe("Test batch split based on size", function () { function runBatchSplitTestCase(t: BatchSplitTestCase): void { const inputBatch: Batch = { operations: t.inputOperationDescription.map((op) => - generateOperationOfSize(Math.floor(op.operationSize)) + generateOperationOfSize(Math.floor(op.operationSize)), ), min: "", max: "", @@ -68,14 +68,14 @@ describe("Test batch split based on size", function () { assert.strictEqual( processedBatches.length, t.resultingBatchDescription.resultingBatchLength, - `Should have split into ${t.resultingBatchDescription.resultingBatchLength} batch.` + `Should have split into ${t.resultingBatchDescription.resultingBatchLength} batch.`, ); t.resultingBatchDescription.resultingOperationsLengths.forEach((op, index) => assert.strictEqual( processedBatches[index].operations.length, op, - `${index}th batch should have ${processedBatches[index].operations.length} operations.` - ) + `${index}th batch should have ${processedBatches[index].operations.length} operations.`, + ), ); } diff --git a/sdk/cosmosdb/cosmos/test/public/common/TestData.ts b/sdk/cosmosdb/cosmos/test/public/common/TestData.ts index d119069ab3ac..14e7c6e4df1a 100644 --- a/sdk/cosmosdb/cosmos/test/public/common/TestData.ts +++ b/sdk/cosmosdb/cosmos/test/public/common/TestData.ts @@ -7,7 +7,10 @@ export class TestData { public numberOfDocumentsWithNumbericId: number; public sum: number; public docs: any[]; - constructor(public partitionKey: string, public uniquePartitionKey: string) { + constructor( + public partitionKey: string, + public uniquePartitionKey: string, + ) { this.numberOfDocuments = 50; this.field = "field"; const docs = []; diff --git a/sdk/cosmosdb/cosmos/test/public/common/TestHelpers.ts b/sdk/cosmosdb/cosmos/test/public/common/TestHelpers.ts index e6f19e82eb17..28a99c912a76 100644 --- a/sdk/cosmosdb/cosmos/test/public/common/TestHelpers.ts +++ b/sdk/cosmosdb/cosmos/test/public/common/TestHelpers.ts @@ -69,8 +69,8 @@ export async function removeAllDatabases(client: CosmosClient = defaultClient): await Promise.all( databases.map>>(async (database: DatabaseDefinition) => - client.database(database.id).delete() - ) + client.database(database.id).delete(), + ), ); } catch (err: any) { console.log("An error occured", err); @@ -80,7 +80,7 @@ export async function removeAllDatabases(client: CosmosClient = defaultClient): } export function createDummyDiagnosticNode( - diagnosticLevel: CosmosDbDiagnosticLevel = CosmosDbDiagnosticLevel.info + diagnosticLevel: CosmosDbDiagnosticLevel = CosmosDbDiagnosticLevel.info, ): DiagnosticNodeInternal { return new DiagnosticNodeInternal(diagnosticLevel, DiagnosticNodeType.CLIENT_REQUEST_NODE, null); } @@ -110,7 +110,7 @@ export type CosmosDiagnosticsTestSpec = { export async function testForDiagnostics Promise>( callback: Callback, spec: CosmosDiagnosticsTestSpec, - parallelExecutions: boolean = false + parallelExecutions: boolean = false, ): Promise>> { try { if (!spec.requestStartTimeUTCInMsLowerLimit) { @@ -123,7 +123,7 @@ export async function testForDiagnostics Promise>( } expect( response.diagnostics, - "Diagnostics object should not be undefined or null, in Response object" + "Diagnostics object should not be undefined or null, in Response object", ).to.exist; validateDiagnostics(response.diagnostics, spec, parallelExecutions); return response; @@ -137,7 +137,7 @@ export async function testForDiagnostics Promise>( } expect( ex.diagnostics, - "Diagnostics object should not be undefined or null, in Exception objection" + "Diagnostics object should not be undefined or null, in Exception objection", ).to.exist; validateDiagnostics(ex.diagnostics, spec, parallelExecutions); throw ex; @@ -153,7 +153,7 @@ export async function testForDiagnostics Promise>( export function validateDiagnostics( diagnostics: CosmosDiagnostics, spec: CosmosDiagnosticsTestSpec, - parallelExecutions: boolean + parallelExecutions: boolean, ): void { expect(diagnostics, "Diagnostics object should not be undefined or null").to.exist; @@ -175,22 +175,22 @@ export function validateDiagnostics( const totalTimeSpentInMetadataRequest = diagnostics.clientSideRequestStatistics.metadataDiagnostics.metadataLookups.reduce( (total, current) => total + current.durationInMs, - 0 + 0, ); const totalTimeSpentInRetries = diagnostics.clientSideRequestStatistics.retryDiagnostics.failedAttempts.reduce( (total, current) => total + current.durationInMs, - 0 + 0, ); const timeInMainRequest = diagnostics.clientSideRequestStatistics.gatewayStatistics.reduce( (total, current) => total + current.durationInMs, - 0 + 0, ); const totalOperationTime = diagnostics.clientSideRequestStatistics.requestDurationInMs; expect( totalTimeSpentInMetadataRequest + totalTimeSpentInRetries + timeInMainRequest, "In CosmosDiagnostics, Sum of time spent in metadata request, retries and main requests should be less than\ - total operation time, for Sequential operations." + total operation time, for Sequential operations.", ).to.be.lte(totalOperationTime); } } @@ -198,7 +198,7 @@ export function validateDiagnostics( function validateGatewayStatisticsForDiagnostics( spec: CosmosDiagnosticsTestSpec, diagnostics: CosmosDiagnostics, - parallelExecutions: boolean + parallelExecutions: boolean, ): void { const gatewayStatistics = diagnostics.clientSideRequestStatistics.gatewayStatistics; if (spec.gatewayStatisticsTestSpec !== undefined) { @@ -206,7 +206,7 @@ function validateGatewayStatisticsForDiagnostics( .exist; expect( gatewayStatistics.length, - "In CosmosDiagnostics, Number of gatewayStatistics should match the spec." + "In CosmosDiagnostics, Number of gatewayStatistics should match the spec.", ).to.be.equal(spec.gatewayStatisticsTestSpec.length); for (let i = 0; i < spec.gatewayStatisticsTestSpec.length; i++) { @@ -215,7 +215,7 @@ function validateGatewayStatisticsForDiagnostics( compareObjects( currentGatewayStatistics, gatewayStatisticsSpec, - "In CosmosDiagnostics, gatewayStatisticsSpec properties should match the spec." + "In CosmosDiagnostics, gatewayStatisticsSpec properties should match the spec.", ); } } @@ -225,11 +225,11 @@ function validateGatewayStatisticsForDiagnostics( if (gatewayStat.resourceType !== "") { expect( gatewayStat.activityId, - "In CosmosDiagnostics, ActivityId for gatewayStatistics should not be empty." + "In CosmosDiagnostics, ActivityId for gatewayStatistics should not be empty.", ).to.not.be.empty; expect( activityIds.has(gatewayStat.activityId), - "In CosmosDiagnostics, gatewayStatistics should not contain duplicate activityId." + "In CosmosDiagnostics, gatewayStatistics should not contain duplicate activityId.", ).to.be.false; } }); @@ -237,7 +237,7 @@ function validateGatewayStatisticsForDiagnostics( if (!parallelExecutions) { verifyForOverlappingRanges( gatewayStatistics, - "In CosmosDiagnostics, Verifying gatewayStatistics" + "In CosmosDiagnostics, Verifying gatewayStatistics", ); } } @@ -257,7 +257,7 @@ function compareObjects(test: any, target: any, message: string): void { if (mismatchedProperties.length > 0) { const errorMessage = `${message} Properties [${mismatchedProperties.join( - ", " + ", ", )}] did not match.`; throw new AssertionError(errorMessage); } @@ -265,12 +265,12 @@ function compareObjects(test: any, target: any, message: string): void { function verifyForOverlappingRanges( ranges: MetadataLookUpDiagnostic[] | FailedRequestAttemptDiagnostic[] | GatewayStatistics[], - msg: string + msg: string, ): void { ranges.sort((a, b) => a.startTimeUTCInMs === b.startTimeUTCInMs ? a.durationInMs - b.durationInMs - : a.startTimeUTCInMs - b.startTimeUTCInMs + : a.startTimeUTCInMs - b.startTimeUTCInMs, ); // Sort ranges by start time for (let i = 1; i < ranges.length; i++) { expect( @@ -278,23 +278,23 @@ function verifyForOverlappingRanges( msg + `. Overlapping Ranges: [${ranges[i - 1].startTimeUTCInMs}, ${ ranges[i - 1].durationInMs - }] & [${ranges[i].startTimeUTCInMs}, ${ranges[i].durationInMs}]` + }] & [${ranges[i].startTimeUTCInMs}, ${ranges[i].durationInMs}]`, ).to.be.gte(ranges[i - 1].startTimeUTCInMs + ranges[i - 1].durationInMs); } } function validateLocationEndpointsContactedForDiagnostics( spec: CosmosDiagnosticsTestSpec, - diagnostics: CosmosDiagnostics + diagnostics: CosmosDiagnostics, ): void { if (spec.locationEndpointsContacted !== undefined) { expect( diagnostics.clientSideRequestStatistics.locationEndpointsContacted, - "In CosmosDiagnostics, locationEndpointsContacted should have existed." + "In CosmosDiagnostics, locationEndpointsContacted should have existed.", ).to.exist; expect( diagnostics.clientSideRequestStatistics.locationEndpointsContacted.length, - "In CosmosDiagnostics, Number of locationEndpointsContacted should match the spec." + "In CosmosDiagnostics, Number of locationEndpointsContacted should match the spec.", ).to.be.equal(spec.locationEndpointsContacted); } } @@ -302,18 +302,18 @@ function validateLocationEndpointsContactedForDiagnostics( function validateMetadataCallsForDiagnostics( spec: CosmosDiagnosticsTestSpec, diagnostics: CosmosDiagnostics, - parallelExecutions: boolean + parallelExecutions: boolean, ): void { const metadataLookups = diagnostics.clientSideRequestStatistics.metadataDiagnostics.metadataLookups; if (spec.metadataCallCount !== undefined) { expect( metadataLookups, - "In CosmosDiagnostics, metadataDiagnostics.metadataLookups should have existed." + "In CosmosDiagnostics, metadataDiagnostics.metadataLookups should have existed.", ).to.exist; expect( metadataLookups.length, - "In CosmosDiagnostics, Number of metadataLookups should match the spec." + "In CosmosDiagnostics, Number of metadataLookups should match the spec.", ).to.be.equal(spec.metadataCallCount); } @@ -325,11 +325,11 @@ function validateMetadataCallsForDiagnostics( ) { expect( metadataLookup.activityId, - "In CosmosDiagnostics, metadataLookups should contain activityId." + "In CosmosDiagnostics, metadataLookups should contain activityId.", ).to.not.be.empty; expect( activityIds.has(metadataLookup.activityId), - "In CosmosDiagnostics, metadataLookups should not contain duplicate activityId." + "In CosmosDiagnostics, metadataLookups should not contain duplicate activityId.", ).to.be.false; } }); @@ -341,22 +341,22 @@ function validateMetadataCallsForDiagnostics( function validateRetriesForDiagnostics( spec: CosmosDiagnosticsTestSpec, diagnostics: CosmosDiagnostics, - parallelExecutions: boolean + parallelExecutions: boolean, ): void { if (spec.retryCount !== undefined) { expect( diagnostics.clientSideRequestStatistics.retryDiagnostics.failedAttempts, - "In CosmosDiagnostics, retryDiagnostics.failedAttempts should have existed." + "In CosmosDiagnostics, retryDiagnostics.failedAttempts should have existed.", ).to.exist; expect( diagnostics.clientSideRequestStatistics.retryDiagnostics.failedAttempts.length, - "In CosmosDiagnostics, Number of failedAttempts should match the spec." + "In CosmosDiagnostics, Number of failedAttempts should match the spec.", ).to.be.equal(spec.retryCount); } if (!parallelExecutions) { verifyForOverlappingRanges( diagnostics.clientSideRequestStatistics.retryDiagnostics.failedAttempts, - "In CosmosDiagnostics, Verifying retryDiagnostics" + "In CosmosDiagnostics, Verifying retryDiagnostics", ); } } @@ -365,52 +365,52 @@ function validateRequestPayloadSizeForDiagnostics(diagnostics: CosmosDiagnostics const totalRequestPayloadForGatewayRequests = diagnostics.clientSideRequestStatistics.gatewayStatistics.reduce( (total, current) => total + current.requestPayloadLengthInBytes, - 0 + 0, ); expect( diagnostics.clientSideRequestStatistics.totalRequestPayloadLengthInBytes, - "In CosmosDiagnostics, totalRequestPayloadLengthInBytes should be greater than or equal to cumulative payload lengths of all gatewayStatistics" + "In CosmosDiagnostics, totalRequestPayloadLengthInBytes should be greater than or equal to cumulative payload lengths of all gatewayStatistics", ).to.be.greaterThanOrEqual(totalRequestPayloadForGatewayRequests); } function validateRequestDurationForDiagnostics( spec: CosmosDiagnosticsTestSpec, - diagnostics: CosmosDiagnostics + diagnostics: CosmosDiagnostics, ): void { if (spec.requestDurationInMsUpperLimit !== undefined) { expect( diagnostics.clientSideRequestStatistics.requestDurationInMs, - "In CosmosDiagnostics, clientSideRequestStatistics.requestDurationInMs should exist" + "In CosmosDiagnostics, clientSideRequestStatistics.requestDurationInMs should exist", ).to.exist; expect( spec.requestDurationInMsUpperLimit, - "In CosmosDiagnostics, requestDurationInMs should be less than given limit." + "In CosmosDiagnostics, requestDurationInMs should be less than given limit.", ).to.be.greaterThanOrEqual(diagnostics.clientSideRequestStatistics.requestDurationInMs); } else { expect( diagnostics.clientSideRequestStatistics.requestDurationInMs, - "In CosmosDiagnostics, clientSideRequestStatistics.requestDurationInMs should not be 0." + "In CosmosDiagnostics, clientSideRequestStatistics.requestDurationInMs should not be 0.", ).is.not.eqls(0); } } function validateRequestStartTimeForDiagnostics( spec: CosmosDiagnosticsTestSpec, - diagnostics: CosmosDiagnostics + diagnostics: CosmosDiagnostics, ): void { if (spec.requestStartTimeUTCInMsLowerLimit !== undefined) { expect( diagnostics.clientSideRequestStatistics.requestStartTimeUTCInMs, - "In CosmosDiagnostics, requestStartTimeUTCInMs should exist" + "In CosmosDiagnostics, requestStartTimeUTCInMs should exist", ).to.exist; expect( spec.requestStartTimeUTCInMsLowerLimit, - "In CosmosDiagnostics, requestStartTimeUTCInMs should be later than given timestamp." + "In CosmosDiagnostics, requestStartTimeUTCInMs should be later than given timestamp.", ).to.be.lessThanOrEqual(diagnostics.clientSideRequestStatistics.requestStartTimeUTCInMs); } else { expect( diagnostics.clientSideRequestStatistics.requestStartTimeUTCInMs, - "In CosmosDiagnostics, clientSideRequestStatistics.requestStartTimeUTCInMs should not be 0." + "In CosmosDiagnostics, clientSideRequestStatistics.requestStartTimeUTCInMs should not be 0.", ).is.not.eqls(0); } } @@ -418,7 +418,7 @@ function validateRequestStartTimeForDiagnostics( export async function getTestDatabase( testName: string, client: CosmosClient = defaultClient, - attrs?: Partial + attrs?: Partial, ): Promise { const entropy = Math.floor(Math.random() * 10000); const id = `${testName.replace(" ", "").substring(0, 30)}${entropy}`; @@ -430,7 +430,7 @@ export async function getTestContainer( testName: string, client: CosmosClient = defaultClient, containerDef?: ContainerRequest, - options?: RequestOptions + options?: RequestOptions, ): Promise { const db = await getTestDatabase(testName, client); const entropy = Math.floor(Math.random() * 10000); @@ -441,20 +441,20 @@ export async function getTestContainer( export async function bulkInsertItems( container: Container, - documents: any[] + documents: any[], ): Promise> { return Promise.all( documents.map(async (doc) => { const { resource: document } = await container.items.create(doc); return document; - }) + }), ); } export async function bulkReadItems( container: Container, documents: any[], - partitionKeyDef: PartitionKeyDefinition + partitionKeyDef: PartitionKeyDefinition, ): Promise { return Promise.all( documents.map(async (document) => { @@ -463,14 +463,14 @@ export async function bulkReadItems( // TODO: should we block or do all requests in parallel? const { resource: doc } = await container.item(document.id, partitionKey).read(); assert.deepStrictEqual(doc, document); - }) + }), ); } export async function bulkReplaceItems( container: Container, documents: any[], - partitionKeyDef: PartitionKeyDefinition + partitionKeyDef: PartitionKeyDefinition, ): Promise { return Promise.all( documents.map(async (document) => { @@ -480,21 +480,21 @@ export async function bulkReplaceItems( const { _etag: _4, _ts: _3, ...actualModifiedDocument } = doc; // eslint-disable-line @typescript-eslint/no-unused-vars assert.deepStrictEqual(expectedModifiedDocument, actualModifiedDocument); return doc; - }) + }), ); } export async function bulkDeleteItems( container: Container, documents: any[], - partitionKeyDef: PartitionKeyDefinition + partitionKeyDef: PartitionKeyDefinition, ): Promise { await Promise.all( documents.map(async (document) => { const partitionKey = extractPartitionKeys(document, partitionKeyDef); await container.item(document.id, partitionKey).delete(); - }) + }), ); } @@ -502,13 +502,13 @@ export async function bulkQueryItemsWithPartitionKey( container: Container, documents: any[], query: string, - parameterGenerator: (doc: any) => { name: string; value: any }[] + parameterGenerator: (doc: any) => { name: string; value: any }[], ): Promise { for (const document of documents) { const parameters = parameterGenerator(document); const shouldSkip = parameters.reduce( (previous, current) => previous || current["value"] === undefined, - false + false, ); if (shouldSkip) { continue; @@ -523,8 +523,8 @@ export async function bulkQueryItemsWithPartitionKey( resources.length, 1, `Expected exactly 1 document, doc: ${JSON.stringify( - document - )}, query: '${query}', parameters: ${JSON.stringify(parameters)}` + document, + )}, query: '${query}', parameters: ${JSON.stringify(parameters)}`, ); assert.equal(JSON.stringify(resources[0]), JSON.stringify(document)); } @@ -535,7 +535,7 @@ export async function createOrUpsertItem( container: Container, body: unknown, options: RequestOptions, - isUpsertTest: boolean + isUpsertTest: boolean, ): Promise> { if (isUpsertTest) { return container.items.upsert(body, options); @@ -549,7 +549,7 @@ export async function replaceOrUpsertItem( body: unknown, options: RequestOptions, isUpsertTest: boolean, - partitionKey?: PartitionKey + partitionKey?: PartitionKey, ): Promise> { if (isUpsertTest) { return container.items.upsert(body, options); @@ -564,7 +564,7 @@ export function createOrUpsertUser( database: Database, body: UserDefinition, options: RequestOptions, - isUpsertTest: boolean + isUpsertTest: boolean, ): Promise { if (isUpsertTest) { return database.users.upsert(body, options); @@ -577,7 +577,7 @@ export function createOrUpsertPermission( user: User, body: PermissionDefinition, options: RequestOptions, - isUpsertTest: boolean + isUpsertTest: boolean, ): Promise { if (isUpsertTest) { return user.permissions.upsert(body, options); @@ -590,7 +590,7 @@ export function replaceOrUpsertPermission( user: User, body: PermissionDefinition, options: RequestOptions, - isUpsertTest: boolean + isUpsertTest: boolean, ): Promise { if (isUpsertTest) { return user.permissions.upsert(body, options); diff --git a/sdk/cosmosdb/cosmos/test/public/functional/authorization.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/authorization.spec.ts index 7b03f849d012..beecd2bd6495 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/authorization.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/authorization.spec.ts @@ -28,7 +28,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { }); assert( undefined !== (await clientOptionsKey.databases.readAll().fetchAll()), - "Should be able to fetch list of databases" + "Should be able to fetch list of databases", ); const clientOptionsAuthKey = new CosmosClient({ @@ -38,7 +38,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { }); assert( undefined !== (await clientOptionsAuthKey.databases.readAll().fetchAll()), - "Should be able to fetch list of databases" + "Should be able to fetch list of databases", ); const clientOptionsAuthMasterKey = new CosmosClient({ @@ -48,7 +48,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { }); assert( undefined !== (await clientOptionsAuthMasterKey.databases.readAll().fetchAll()), - "Should be able to fetch list of databases" + "Should be able to fetch list of databases", ); }); @@ -87,7 +87,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { database.user(user1.id), permission, undefined, - isUpsertTest + isUpsertTest, ); assert((permissionOnColl1 as any)._token !== undefined, "permission token is invalid"); permission = { @@ -100,7 +100,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { database.user(user1.id), permission, undefined, - isUpsertTest + isUpsertTest, ); assert((permissionOnDoc2 as any)._token !== undefined, "permission token is invalid"); // TODO: any rid @@ -116,7 +116,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { database.user(user2.id), permission, undefined, - isUpsertTest + isUpsertTest, ); const entities = { database, @@ -193,7 +193,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { assert.equal( successDoc.id, entities.doc1.id, - "Expected to read children using parent permissions" + "Expected to read children using parent permissions", ); // TODO: Permission Feed uses RID right now /* @@ -223,7 +223,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { const container = await getTestContainer( "authorization CRUD multiple partitons", undefined, - containerDefinition + containerDefinition, ); // create user const { resource: userDef } = await container.database.users.create({ id: "user1" }); @@ -297,7 +297,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { resource: (await container.read()).resource._self, }, undefined, - false + false, ); const resourceTokens = { diff --git a/sdk/cosmosdb/cosmos/test/public/functional/client.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/client.spec.ts index 7150d036316f..e464e3131204 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/client.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/client.spec.ts @@ -37,7 +37,7 @@ describe("Client Tests", function (this: Suite) { assert.equal( err.message, "Timeout Error! Request took more than 1 ms", - "client should throw exception" + "client should throw exception", ); } }); @@ -69,7 +69,7 @@ describe("Client Tests", function (this: Suite) { "fake-tenant-id", "fake-client-id", "fakeUsername", - "fakePassword" + "fakePassword", ); const client = new CosmosClient({ endpoint, diff --git a/sdk/cosmosdb/cosmos/test/public/functional/conflict.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/conflict.spec.ts index e093ef500a73..85991a8b3b2e 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/conflict.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/conflict.spec.ts @@ -41,7 +41,7 @@ describe("Conflicts", function (this: Suite) { // metadataCallCount: 2, // One call for database account + data query call. locationEndpointsContacted: 1, }, - true + true, ); }); }); diff --git a/sdk/cosmosdb/cosmos/test/public/functional/container.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/container.spec.ts index ff948f1ce59d..bdcb6c8a36c8 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/container.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/container.spec.ts @@ -34,7 +34,7 @@ describe("Containers", function (this: Suite) { describe("Container CRUD", function () { const containerCRUDTest = async function ( partitionKey?: PartitionKeyDefinition, - opts?: Partial + opts?: Partial, ): Promise { // create database const database = await getTestDatabase("Validate Container CRUD"); @@ -65,7 +65,7 @@ describe("Containers", function (this: Suite) { operationType: OperationType.Create, }, ], - } + }, ); const container = database.container(containerDef.id); assert.equal(containerDefinition.id, containerDef.id); @@ -93,7 +93,7 @@ describe("Containers", function (this: Suite) { }, ], }, - false + false, ); assert.equal(containers.length, 1, "create should increase the number of containers"); @@ -143,7 +143,7 @@ describe("Containers", function (this: Suite) { operationType: OperationType.Replace, }, ], - } + }, ); // Replacing partition key is not allowed. @@ -156,7 +156,7 @@ describe("Containers", function (this: Suite) { assert.equal( err.code, badRequestErrorCode, - "response should return error code " + badRequestErrorCode + "response should return error code " + badRequestErrorCode, ); } finally { containerDef.partitionKey = partitionKey; // Resume partition key @@ -191,7 +191,7 @@ describe("Containers", function (this: Suite) { operationType: OperationType.Delete, }, ], - } + }, ); // read container after deletion try { @@ -209,7 +209,7 @@ describe("Containers", function (this: Suite) { operationType: OperationType.Read, }, ], - } + }, ); assert.fail("Must fail to read container after delete"); } catch (err: any) { @@ -259,10 +259,10 @@ describe("Containers", function (this: Suite) { locationEndpointsContacted: 1, // metadataCallCount: 2, retryCount: 0, - } + }, ); assert.fail( - `Container Creation should have failed, for partitionkey: ${badPartitionKeyDefinition}` + `Container Creation should have failed, for partitionkey: ${badPartitionKeyDefinition}`, ); } catch (err: any) { assert.equal(err.code, 400); @@ -284,14 +284,14 @@ describe("Containers", function (this: Suite) { try { await database.containers.create(containerDefinition); assert.fail( - `Container Creation should have failed, for partitionkey: ${badPartitionKeyDefinition}` + `Container Creation should have failed, for partitionkey: ${badPartitionKeyDefinition}`, ); } catch (err: any) { assert.strictEqual( true, err.message.includes( - "Partition key paths must contain only valid characters and not contain a trailing slash or wildcard character" - ) + "Partition key paths must contain only valid characters and not contain a trailing slash or wildcard character", + ), ); } }); @@ -311,7 +311,7 @@ describe("Containers", function (this: Suite) { try { await database.containers.create(containerDefinition); assert.fail( - `Container Creation should have failed, for partitionkey: ${badPartitionKeyDefinition}` + `Container Creation should have failed, for partitionkey: ${badPartitionKeyDefinition}`, ); } catch (err: any) { assert.equal(err.message, "Partition key must start with '/'"); @@ -337,14 +337,14 @@ describe("Containers", function (this: Suite) { try { await database.containers.create(containerDefinition); assert.fail( - `Container Creation should have failed, for partitionkey: ${badPartitionKeyDefinition}` + `Container Creation should have failed, for partitionkey: ${badPartitionKeyDefinition}`, ); } catch (err: any) { assert.strictEqual( true, err.message.includes( - "The partition key component definition path 'id' could not be accepted" - ) + "The partition key component definition path 'id' could not be accepted", + ), ); } }); @@ -365,7 +365,7 @@ describe("Containers", function (this: Suite) { assert.equal( containerDef.indexingPolicy.indexingMode, IndexingMode.consistent, - "default indexing mode should be consistent" + "default indexing mode should be consistent", ); await container.delete(); @@ -375,7 +375,7 @@ describe("Containers", function (this: Suite) { }; const { resource: uniqueKeysContainerDef } = await database.containers.create( - uniqueKeysContainerDefinition + uniqueKeysContainerDefinition, ); const uniqueKeysContainer = database.container(uniqueKeysContainerDef.id); @@ -388,13 +388,13 @@ describe("Containers", function (this: Suite) { indexingPolicy: { indexingMode: "consistent" }, // tests the type flexibility }; const { resource: consistentContainerDef } = await database.containers.create( - consistentcontainerDefinition + consistentcontainerDefinition, ); const consistentContainer = database.container(consistentContainerDef.id); assert.equal( containerDef.indexingPolicy.indexingMode, IndexingMode.consistent, - "indexing mode should be consistent" + "indexing mode should be consistent", ); await consistentContainer.delete(); @@ -416,15 +416,14 @@ describe("Containers", function (this: Suite) { }, }; - const { resource: containerWithIndexingPolicyDef } = await database.containers.create( - containerDefinition - ); + const { resource: containerWithIndexingPolicyDef } = + await database.containers.create(containerDefinition); // Two included paths. assert.equal( 1, containerWithIndexingPolicyDef.indexingPolicy.includedPaths.length, - "Unexpected includedPaths length" + "Unexpected includedPaths length", ); // The first included path is what we created. assert.equal("/*", containerWithIndexingPolicyDef.indexingPolicy.includedPaths[0].path); @@ -432,11 +431,11 @@ describe("Containers", function (this: Suite) { assert.equal( 2, containerWithIndexingPolicyDef.indexingPolicy.excludedPaths.length, - "Unexpected excludedPaths length" + "Unexpected excludedPaths length", ); assert.equal( '/"systemMetadata"/*', - containerWithIndexingPolicyDef.indexingPolicy.excludedPaths[0].path + containerWithIndexingPolicyDef.indexingPolicy.excludedPaths[0].path, ); }); @@ -457,9 +456,8 @@ describe("Containers", function (this: Suite) { // create container with no indexing policy specified. const containerDefinition01: ContainerDefinition = { id: "TestCreateDefaultPolicy01" }; - const { resource: containerNoIndexPolicyDef } = await database.containers.create( - containerDefinition01 - ); + const { resource: containerNoIndexPolicyDef } = + await database.containers.create(containerDefinition01); checkDefaultIndexingPolicyPaths(containerNoIndexPolicyDef["indexingPolicy"]); // create container with default policy. @@ -467,9 +465,8 @@ describe("Containers", function (this: Suite) { id: "TestCreateDefaultPolicy03", indexingPolicy: {}, }; - const { resource: containerDefaultPolicy } = await database.containers.create( - containerDefinition03 - ); + const { resource: containerDefaultPolicy } = + await database.containers.create(containerDefinition03); checkDefaultIndexingPolicyPaths((containerDefaultPolicy as any)["indexingPolicy"]); // create container with indexing policy missing indexes. @@ -483,9 +480,8 @@ describe("Containers", function (this: Suite) { ], }, }; - const { resource: containerMissingIndexes } = await database.containers.create( - containerDefinition04 - ); + const { resource: containerMissingIndexes } = + await database.containers.create(containerDefinition04); checkDefaultIndexingPolicyPaths((containerMissingIndexes as any)["indexingPolicy"]); // create container with indexing policy missing precision. @@ -509,9 +505,8 @@ describe("Containers", function (this: Suite) { ], }, }; - const { resource: containerMissingPrecision } = await database.containers.create( - containerDefinition05 - ); + const { resource: containerMissingPrecision } = + await database.containers.create(containerDefinition05); checkDefaultIndexingPolicyPaths((containerMissingPrecision as any)["indexingPolicy"]); }); }); @@ -519,7 +514,7 @@ describe("Containers", function (this: Suite) { describe("Validate response headers", function () { const createThenReadcontainer = async function ( database: Database, - definition: ContainerDefinition + definition: ContainerDefinition, ): Promise { const { container: createdcontainer } = await database.containers.create(definition); const response = await database @@ -542,7 +537,7 @@ describe("Containers", function (this: Suite) { }; const { headers: headers3 } = await createThenReadcontainer( database, - noneContainerDefinition + noneContainerDefinition, ); assert.notEqual(headers3[Constants.HttpHeaders.IndexTransformationProgress], undefined); assert.equal(headers3[Constants.HttpHeaders.LazyIndexingProgress], undefined); @@ -626,7 +621,7 @@ describe("container.readOffer", function () { containerWithOffer = await getTestContainer( "offerContainer", undefined, - containerRequestWithOffer + containerRequestWithOffer, ); containerWithoutOffer = await getTestContainer("container", undefined, containerRequest); const response1 = await offerDatabase.containers.create(containerRequestWithOffer); diff --git a/sdk/cosmosdb/cosmos/test/public/functional/database.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/database.spec.ts index cbfe627c6a95..1ed2318880a2 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/database.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/database.spec.ts @@ -38,7 +38,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { locationEndpointsContacted: 1, // metadataCallCount: 2, retryCount: 0, - } + }, ); assert.equal(databases.constructor, Array, "Value should be an array"); @@ -55,7 +55,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { locationEndpointsContacted: 1, // metadataCallCount: 2, retryCount: 0, - } + }, ); assert.equal(db.id, databaseDefinition.id); @@ -64,7 +64,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { assert.equal( databases2.length, beforeCreateDatabasesCount + 1, - "create should increase the number of databases" + "create should increase the number of databases", ); // query databases const querySpec = { @@ -85,7 +85,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { locationEndpointsContacted: 1, // metadataCallCount: 2, retryCount: 0, - } + }, ); assert(results.length > 0, "number of results for the query should be > 0"); @@ -99,7 +99,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { locationEndpointsContacted: 1, // metadataCallCount: 2, retryCount: 0, - } + }, ); try { // read database after deletion @@ -112,7 +112,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { locationEndpointsContacted: 1, // metadataCallCount: 2, retryCount: 0, - } + }, ); assert.fail("Read database on non-existent database should fail"); } catch (err: any) { diff --git a/sdk/cosmosdb/cosmos/test/public/functional/databaseaccount.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/databaseaccount.spec.ts index e1e135b5bd3b..8d1ceb1445d0 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/databaseaccount.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/databaseaccount.spec.ts @@ -39,17 +39,17 @@ describe("NodeJS CRUD Tests", function (this: Suite) { operationType: OperationType.Read, }, ], - } + }, ); assert.equal(databaseAccount.DatabasesLink, "/dbs/"); assert.equal(databaseAccount.MediaLink, "/media/"); assert.equal( databaseAccount.MaxMediaStorageUsageInMB, - headers["x-ms-max-media-storage-usage-mb"] + headers["x-ms-max-media-storage-usage-mb"], ); // TODO: should use constants here assert.equal( databaseAccount.CurrentMediaStorageUsageInMB, - headers["x-ms-media-storage-usage-mb"] + headers["x-ms-media-storage-usage-mb"], ); assert(databaseAccount.ConsistencyPolicy !== undefined); assert(statusCode !== undefined); diff --git a/sdk/cosmosdb/cosmos/test/public/functional/globalEndpointManager.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/globalEndpointManager.spec.ts index 159bb492dd07..b3995ff16091 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/globalEndpointManager.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/globalEndpointManager.spec.ts @@ -59,10 +59,10 @@ describe("GlobalEndpointManager", function () { new DatabaseAccount(databaseAccountBody, headers), headers, 200, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); return response; - } + }, ); it("should resolve the correct endpoint", async function () { @@ -71,18 +71,18 @@ describe("GlobalEndpointManager", function () { await gem.resolveServiceEndpoint( createDummyDiagnosticNode(), ResourceType.none, - OperationType.Read + OperationType.Read, ), - "https://test.documents.azure.com:443/" + "https://test.documents.azure.com:443/", ); assert.equal( await gem.resolveServiceEndpoint( createDummyDiagnosticNode(), ResourceType.item, - OperationType.Read + OperationType.Read, ), - "https://test-eastus2.documents.azure.com:443/" + "https://test-eastus2.documents.azure.com:443/", ); assert.equal(gem.preferredLocationsCount, 2); @@ -92,9 +92,9 @@ describe("GlobalEndpointManager", function () { createDummyDiagnosticNode(), ResourceType.item, OperationType.Read, - 1 + 1, ), - "https://test-westus2.documents.azure.com:443/" + "https://test-westus2.documents.azure.com:443/", ); // location index out of range, 1st available location is used assert.equal( @@ -102,9 +102,9 @@ describe("GlobalEndpointManager", function () { createDummyDiagnosticNode(), ResourceType.item, OperationType.Read, - 2 + 2, ), - "https://test-westus2.documents.azure.com:443/" + "https://test-westus2.documents.azure.com:443/", ); }); @@ -123,19 +123,19 @@ describe("GlobalEndpointManager", function () { new DatabaseAccount(databaseAccountBody, headers), headers, 200, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); return response; - } + }, ); assert.equal( await gem.resolveServiceEndpoint( createDummyDiagnosticNode(), ResourceType.item, - OperationType.Read + OperationType.Read, ), - "https://test-eastus2.documents.azure.com:443/" + "https://test-eastus2.documents.azure.com:443/", ); }); @@ -161,26 +161,26 @@ describe("GlobalEndpointManager", function () { new DatabaseAccount(databaseAccountBody, headers), headers, 200, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); return response; - } + }, ); const diagnosticNode = createDummyDiagnosticNode(); await gem.refreshEndpointList(diagnosticNode); await gem.markCurrentLocationUnavailableForRead( diagnosticNode, - "https://test-westus2.documents.azure.com:443/" + "https://test-westus2.documents.azure.com:443/", ); assert.equal( await gem.getReadEndpoint(diagnosticNode), - "https://test-eastus2.documents.azure.com:443/" + "https://test-eastus2.documents.azure.com:443/", ); clock.tick(locationUnavailabilityExpiratationTime); await gem.refreshEndpointList(diagnosticNode); assert.equal( await gem.getReadEndpoint(diagnosticNode), - "https://test-westus2.documents.azure.com:443/" + "https://test-westus2.documents.azure.com:443/", ); clock.uninstall(); }); @@ -202,10 +202,10 @@ describe("GlobalEndpointManager", function () { new DatabaseAccount(databaseAccountBody, headers), headers, 200, - getEmptyCosmosDiagnostics() + getEmptyCosmosDiagnostics(), ); return response; - } + }, ); beforeEach(async () => { @@ -216,21 +216,21 @@ describe("GlobalEndpointManager", function () { // We don't block on init for database account calls await gem.markCurrentLocationUnavailableForRead( createDummyDiagnosticNode(), - "https://test-eastus2.documents.azure.com:443/" + "https://test-eastus2.documents.azure.com:443/", ); /* As we have marked current location unavailable for read, next read should go to the next location or default endpoint */ assert.equal( await gem.getReadEndpoint(createDummyDiagnosticNode()), - "https://test-westus2.documents.azure.com:443/" + "https://test-westus2.documents.azure.com:443/", ); }); it("should mark the current location unavailable for write", async function () { // We don't block on init for database account calls await gem.markCurrentLocationUnavailableForWrite( createDummyDiagnosticNode(), - "https://test-westus2.documents.azure.com:443/" + "https://test-westus2.documents.azure.com:443/", ); /* As we have marked current location unavailable for write, @@ -238,7 +238,7 @@ describe("GlobalEndpointManager", function () { */ assert.equal( await gem.getWriteEndpoint(createDummyDiagnosticNode()), - "https://test.documents.azure.com:443/" + "https://test.documents.azure.com:443/", ); }); }); diff --git a/sdk/cosmosdb/cosmos/test/public/functional/item/batch.item.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/item/batch.item.spec.ts index 8fe0687e2171..9457076775bb 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/item/batch.item.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/item/batch.item.spec.ts @@ -163,7 +163,7 @@ describe("test batch operations", function () { }, ], }, - true + true, ); }); function isOperationResponse(object: unknown): object is OperationResponse { diff --git a/sdk/cosmosdb/cosmos/test/public/functional/item/bulk.item.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/item/bulk.item.spec.ts index 0d4972a4ffb7..89ff2cf2f2e4 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/item/bulk.item.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/item/bulk.item.spec.ts @@ -44,12 +44,12 @@ describe("test bulk operations", async function () { () => ({ ...generateOperationOfSize(100, { partitionKey: "key_value" }, { key: "key_value" }), - } as any) + }) as any, ); const response = await container.items.bulk(operations); // Create response.forEach((res, index) => - assert.strictEqual(res.statusCode, 201, `Status should be 201 for operation ${index}`) + assert.strictEqual(res.statusCode, 201, `Status should be 201 for operation ${index}`), ); }); it("Check case when cumulative size of all operations is greater than threshold - payload size is 5x threshold", async function () { @@ -57,15 +57,15 @@ describe("test bulk operations", async function () { () => ({ ...generateOperationOfSize( - Math.floor(Constants.DefaultMaxBulkRequestBodySizeInBytes / 2) + Math.floor(Constants.DefaultMaxBulkRequestBodySizeInBytes / 2), ), partitionKey: {}, - } as any) + }) as any, ); const response = await container.items.bulk(operations); // Create response.forEach((res, index) => - assert.strictEqual(res.statusCode, 201, `Status should be 201 for operation ${index}`) + assert.strictEqual(res.statusCode, 201, `Status should be 201 for operation ${index}`), ); }); it("Check case when cumulative size of all operations is greater than threshold - payload size is 25x threshold", async function () { @@ -75,14 +75,14 @@ describe("test bulk operations", async function () { ...generateOperationOfSize( Math.floor(Constants.DefaultMaxBulkRequestBodySizeInBytes / 2), {}, - { key: "key_value" } + { key: "key_value" }, ), - } as any) + }) as any, ); const response = await container.items.bulk(operations); // Create response.forEach((res, index) => - assert.strictEqual(res.statusCode, 201, `Status should be 201 for operation ${index}`) + assert.strictEqual(res.statusCode, 201, `Status should be 201 for operation ${index}`), ); }); }); @@ -171,12 +171,12 @@ describe("test bulk operations", async function () { () => ({ ...generateOperationOfSize(100, { partitionKey: "key_value" }, { key: "key_value" }), - } as any) + }) as any, ); const response = await container.items.bulk(operations); // Create response.forEach((res, index) => - assert.strictEqual(res.statusCode, 201, `Status should be 201 for operation ${index}`) + assert.strictEqual(res.statusCode, 201, `Status should be 201 for operation ${index}`), ); }); it("Check case when cumulative size of all operations is greater than threshold", async function () { @@ -184,15 +184,15 @@ describe("test bulk operations", async function () { () => ({ ...generateOperationOfSize( - Math.floor(Constants.DefaultMaxBulkRequestBodySizeInBytes / 2) + Math.floor(Constants.DefaultMaxBulkRequestBodySizeInBytes / 2), ), partitionKey: {}, - } as any) + }) as any, ); const response = await container.items.bulk(operations); // Create response.forEach((res, index) => - assert.strictEqual(res.statusCode, 201, `Status should be 201 for operation ${index}`) + assert.strictEqual(res.statusCode, 201, `Status should be 201 for operation ${index}`), ); }); it("Check case when cumulative size of all operations is greater than threshold", async function () { @@ -202,14 +202,14 @@ describe("test bulk operations", async function () { ...generateOperationOfSize( Math.floor(Constants.DefaultMaxBulkRequestBodySizeInBytes / 2), {}, - { key: "key_value" } + { key: "key_value" }, ), - } as any) + }) as any, ); const response = await container.items.bulk(operations); // Create response.forEach((res, index) => - assert.strictEqual(res.statusCode, 201, `Status should be 201 for operation ${index}`) + assert.strictEqual(res.statusCode, 201, `Status should be 201 for operation ${index}`), ); }); }); @@ -252,7 +252,7 @@ describe("test bulk operations", async function () { assert.strictEqual( readResponse[0].resourceBody.id, readItemId, - "Read Items id should match" + "Read Items id should match", ); }); it("create operation with default partition", async function () { @@ -340,20 +340,20 @@ describe("test bulk operations", async function () { } const response = await container.items.bulk( dataset.operations.map((value) => value.operation), - dataset.bulkOperationOptions + dataset.bulkOperationOptions, ); dataset.operations.forEach(({ description, expectedOutput }, index) => { if (expectedOutput) { assert.strictEqual( response[index].statusCode, expectedOutput.statusCode, - `Failed during - ${description}` + `Failed during - ${description}`, ); expectedOutput.propertysToMatch.forEach(({ name, value }) => { assert.strictEqual( response[index].resourceBody[name], value, - `Failed during - ${description}` + `Failed during - ${description}`, ); }); } @@ -366,7 +366,7 @@ describe("test bulk operations", async function () { operationType: any, partitionKeySpecifier?: { partitionKey?: PartitionKey }, resourceBody?: any, - id?: string + id?: string, ): OperationInput { let op: OperationInput = { operationType, @@ -379,7 +379,7 @@ describe("test bulk operations", async function () { } function creatreBulkOperationExpectedOutput( statusCode: number, - propertysToMatch: { name: string; value: any }[] + propertysToMatch: { name: string; value: any }[], ): { statusCode: number; propertysToMatch: { @@ -396,16 +396,16 @@ describe("test bulk operations", async function () { it("Hierarchical Partitions with two keys", async function () { readItemId = addEntropy("item1"); const createItemWithBooleanPartitionKeyId = addEntropy( - "createItemWithBooleanPartitionKeyId" + "createItemWithBooleanPartitionKeyId", ); const createItemWithStringPartitionKeyId = addEntropy( - "createItemWithStringPartitionKeyId" + "createItemWithStringPartitionKeyId", ); const createItemWithUnknownPartitionKeyId = addEntropy( - "createItemWithUnknownPartitionKeyId" + "createItemWithUnknownPartitionKeyId", ); const createItemWithNumberPartitionKeyId = addEntropy( - "createItemWithNumberPartitionKeyId" + "createItemWithNumberPartitionKeyId", ); replaceItemId = addEntropy("item3"); patchItemId = addEntropy("item4"); @@ -446,7 +446,7 @@ describe("test bulk operations", async function () { BulkOperationType.Read, { partitionKey: [true, false] }, undefined, - createItemWithBooleanPartitionKeyId + createItemWithBooleanPartitionKeyId, ), expectedOutput: creatreBulkOperationExpectedOutput(200, [ { name: "class", value: "2010" }, @@ -458,7 +458,7 @@ describe("test bulk operations", async function () { BulkOperationType.Read, { partitionKey: [undefined, undefined] }, undefined, - createItemWithUnknownPartitionKeyId + createItemWithUnknownPartitionKeyId, ), expectedOutput: creatreBulkOperationExpectedOutput(200, [ { name: "class", value: "2010" }, @@ -470,7 +470,7 @@ describe("test bulk operations", async function () { operation: createBulkOperation( BulkOperationType.Create, { partitionKey: undefined }, - { id: addEntropy("doc10"), name: "sample", key: "A", key2: "B" } + { id: addEntropy("doc10"), name: "sample", key: "A", key2: "B" }, ), expectedOutput: creatreBulkOperationExpectedOutput(400, []), }, @@ -480,7 +480,7 @@ describe("test bulk operations", async function () { BulkOperationType.Read, { partitionKey: [0, 3] }, undefined, - createItemWithNumberPartitionKeyId + createItemWithNumberPartitionKeyId, ), expectedOutput: creatreBulkOperationExpectedOutput(200, [ { name: "class", value: "2010" }, @@ -491,7 +491,7 @@ describe("test bulk operations", async function () { operation: createBulkOperation( BulkOperationType.Create, { partitionKey: ["A", "B"] }, - { id: addEntropy("doc1"), name: "sample", key: "A", key2: "B" } + { id: addEntropy("doc1"), name: "sample", key: "A", key2: "B" }, ), expectedOutput: creatreBulkOperationExpectedOutput(201, [ { name: "name", value: "sample" }, @@ -502,7 +502,7 @@ describe("test bulk operations", async function () { operation: createBulkOperation( BulkOperationType.Create, { partitionKey: ["A", "V"] }, - { id: addEntropy("doc1"), name: "sample", key: "A", key2: "B" } + { id: addEntropy("doc1"), name: "sample", key: "A", key2: "B" }, ), expectedOutput: creatreBulkOperationExpectedOutput(400, []), }, @@ -511,7 +511,7 @@ describe("test bulk operations", async function () { operation: createBulkOperation( BulkOperationType.Upsert, { partitionKey: ["U", "V"] }, - { name: "other", key: "U", key2: "V" } + { name: "other", key: "U", key2: "V" }, ), expectedOutput: creatreBulkOperationExpectedOutput(201, [ { name: "name", value: "other" }, @@ -523,7 +523,7 @@ describe("test bulk operations", async function () { BulkOperationType.Read, { partitionKey: [true, true] }, undefined, - readItemId + readItemId, ), expectedOutput: creatreBulkOperationExpectedOutput(200, [ { name: "class", value: "2010" }, @@ -536,7 +536,7 @@ describe("test bulk operations", async function () { BulkOperationType.Delete, { partitionKey: [{}, {}] }, undefined, - deleteItemId + deleteItemId, ), expectedOutput: creatreBulkOperationExpectedOutput(204, []), }, @@ -546,7 +546,7 @@ describe("test bulk operations", async function () { BulkOperationType.Replace, {}, { id: replaceItemId, name: "nice", key: 5, key2: 5 }, - replaceItemId + replaceItemId, ), expectedOutput: creatreBulkOperationExpectedOutput(200, [ { name: "name", value: "nice" }, @@ -562,7 +562,7 @@ describe("test bulk operations", async function () { { op: PatchOperationType.add, path: "/great", value: "goodValue" }, ], }, - patchItemId + patchItemId, ), expectedOutput: creatreBulkOperationExpectedOutput(200, [ { name: "great", value: "goodValue" }, @@ -579,7 +579,7 @@ describe("test bulk operations", async function () { ], condition: "from c where NOT IS_DEFINED(c.newImproved)", }, - patchItemId + patchItemId, ), expectedOutput: creatreBulkOperationExpectedOutput(200, []), }, @@ -590,16 +590,16 @@ describe("test bulk operations", async function () { it("Hierarchical Partitions with three keys", async function () { readItemId = addEntropy("item1"); const createItemWithBooleanPartitionKeyId = addEntropy( - "createItemWithBooleanPartitionKeyId" + "createItemWithBooleanPartitionKeyId", ); const createItemWithStringPartitionKeyId = addEntropy( - "createItemWithStringPartitionKeyId" + "createItemWithStringPartitionKeyId", ); const createItemWithUnknownPartitionKeyId = addEntropy( - "createItemWithUnknownPartitionKeyId" + "createItemWithUnknownPartitionKeyId", ); const createItemWithNumberPartitionKeyId = addEntropy( - "createItemWithNumberPartitionKeyId" + "createItemWithNumberPartitionKeyId", ); replaceItemId = addEntropy("item3"); patchItemId = addEntropy("item4"); @@ -653,7 +653,7 @@ describe("test bulk operations", async function () { BulkOperationType.Read, { partitionKey: [true, false, true] }, undefined, - createItemWithBooleanPartitionKeyId + createItemWithBooleanPartitionKeyId, ), expectedOutput: creatreBulkOperationExpectedOutput(200, [ { name: "class", value: "2010" }, @@ -665,7 +665,7 @@ describe("test bulk operations", async function () { BulkOperationType.Read, { partitionKey: [{}, {}, {}] }, undefined, - createItemWithUnknownPartitionKeyId + createItemWithUnknownPartitionKeyId, ), expectedOutput: creatreBulkOperationExpectedOutput(200, [ { name: "class", value: "2010" }, @@ -677,7 +677,7 @@ describe("test bulk operations", async function () { BulkOperationType.Read, { partitionKey: [0, 3, 5] }, undefined, - createItemWithNumberPartitionKeyId + createItemWithNumberPartitionKeyId, ), expectedOutput: creatreBulkOperationExpectedOutput(200, [ { name: "class", value: "2010" }, @@ -688,7 +688,7 @@ describe("test bulk operations", async function () { operation: createBulkOperation( BulkOperationType.Create, { partitionKey: ["A", "B", "C"] }, - { id: addEntropy("doc1"), name: "sample", key: "A", key2: "B", key3: "C" } + { id: addEntropy("doc1"), name: "sample", key: "A", key2: "B", key3: "C" }, ), expectedOutput: creatreBulkOperationExpectedOutput(201, [ { name: "name", value: "sample" }, @@ -699,7 +699,7 @@ describe("test bulk operations", async function () { operation: createBulkOperation( BulkOperationType.Create, { partitionKey: ["A", "V", true] }, - { id: addEntropy("doc1"), name: "sample", key: "A", key2: "B", key3: true } + { id: addEntropy("doc1"), name: "sample", key: "A", key2: "B", key3: true }, ), expectedOutput: creatreBulkOperationExpectedOutput(400, []), }, @@ -708,7 +708,7 @@ describe("test bulk operations", async function () { operation: createBulkOperation( BulkOperationType.Upsert, { partitionKey: ["U", "V", 5] }, - { name: "other", key: "U", key2: "V", key3: 5 } + { name: "other", key: "U", key2: "V", key3: 5 }, ), expectedOutput: creatreBulkOperationExpectedOutput(201, [ { name: "name", value: "other" }, @@ -720,7 +720,7 @@ describe("test bulk operations", async function () { BulkOperationType.Read, { partitionKey: [true, true, true] }, undefined, - readItemId + readItemId, ), expectedOutput: creatreBulkOperationExpectedOutput(200, [ { name: "class", value: "2010" }, @@ -733,7 +733,7 @@ describe("test bulk operations", async function () { BulkOperationType.Delete, { partitionKey: [{}, {}, {}] }, undefined, - deleteItemId + deleteItemId, ), expectedOutput: creatreBulkOperationExpectedOutput(204, []), }, @@ -743,7 +743,7 @@ describe("test bulk operations", async function () { BulkOperationType.Replace, {}, { id: replaceItemId, name: "nice", key: 5, key2: 5, key3: "T" }, - replaceItemId + replaceItemId, ), expectedOutput: creatreBulkOperationExpectedOutput(200, [ { name: "name", value: "nice" }, @@ -759,7 +759,7 @@ describe("test bulk operations", async function () { { op: PatchOperationType.add, path: "/great", value: "goodValue" }, ], }, - patchItemId + patchItemId, ), expectedOutput: creatreBulkOperationExpectedOutput(200, [ { name: "great", value: "goodValue" }, @@ -776,7 +776,7 @@ describe("test bulk operations", async function () { ], condition: "from c where NOT IS_DEFINED(c.newImproved)", }, - patchItemId + patchItemId, ), expectedOutput: creatreBulkOperationExpectedOutput(200, []), }, @@ -798,7 +798,7 @@ describe("test bulk operations", async function () { BulkOperationType.Delete, { partitionKey: "A" }, undefined, - readItemId + readItemId, ), expectedOutput: creatreBulkOperationExpectedOutput(204, []), }, @@ -808,7 +808,7 @@ describe("test bulk operations", async function () { BulkOperationType.Read, { partitionKey: "A" }, undefined, - readItemId + readItemId, ), expectedOutput: creatreBulkOperationExpectedOutput(404, []), }, @@ -832,7 +832,7 @@ describe("test bulk operations", async function () { operation: createBulkOperation( BulkOperationType.Create, { partitionKey: "A" }, - { key: "A", licenseType: "B", id: "o239uroihndsf" } + { key: "A", licenseType: "B", id: "o239uroihndsf" }, ), expectedOutput: creatreBulkOperationExpectedOutput(424, []), }, @@ -860,7 +860,7 @@ describe("test bulk operations", async function () { operation: createBulkOperation( BulkOperationType.Create, {}, - { key: "A", licenseType: "B", id: addEntropy("sifjsiof") } + { key: "A", licenseType: "B", id: addEntropy("sifjsiof") }, ), expectedOutput: creatreBulkOperationExpectedOutput(201, []), }, @@ -878,7 +878,7 @@ describe("test bulk operations", async function () { operation: createBulkOperation( BulkOperationType.Create, {}, - { key: "A", licenseType: "C" } + { key: "A", licenseType: "C" }, ), expectedOutput: creatreBulkOperationExpectedOutput(201, []), }, @@ -905,7 +905,7 @@ describe("test bulk operations", async function () { BulkOperationType.Read, { partitionKey: null }, {}, - item1Id + item1Id, ), expectedOutput: creatreBulkOperationExpectedOutput(200, []), }, @@ -915,7 +915,7 @@ describe("test bulk operations", async function () { BulkOperationType.Read, { partitionKey: 0 }, {}, - item2Id + item2Id, ), expectedOutput: creatreBulkOperationExpectedOutput(200, []), }, @@ -925,7 +925,7 @@ describe("test bulk operations", async function () { BulkOperationType.Read, { partitionKey: undefined }, {}, - item3Id + item3Id, ), expectedOutput: creatreBulkOperationExpectedOutput(200, []), }, @@ -1052,7 +1052,7 @@ describe("test bulk operations", async function () { locationEndpointsContacted: 1, gatewayStatisticsTestSpec: [{}, {}], // Corresponding to two physical partitions }, - true // bulk operations happen in parallel. + true, // bulk operations happen in parallel. ); }); }); diff --git a/sdk/cosmosdb/cosmos/test/public/functional/item/item.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/item/item.spec.ts index ead80c67e65b..56e7ddcebd75 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/item/item.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/item/item.spec.ts @@ -122,7 +122,7 @@ async function CRUDTestRunner(dataset: CRUDTestDataSet, isUpsertTest: boolean): container, itemDefinition, { disableAutomaticIdGeneration: true }, - isUpsertTest + isUpsertTest, ); assert.fail("id generation disabled must throw with invalid id"); } catch (err: any) { @@ -134,11 +134,11 @@ async function CRUDTestRunner(dataset: CRUDTestDataSet, isUpsertTest: boolean): container, itemDefinition, undefined, - isUpsertTest + isUpsertTest, ); assert.equal( extractNestedPropertyFromObject(document, dataset.propertyToCheck), - extractNestedPropertyFromObject(itemDefinition, dataset.propertyToCheck) + extractNestedPropertyFromObject(itemDefinition, dataset.propertyToCheck), ); assert(document.id !== undefined); // read documents after creation @@ -146,7 +146,7 @@ async function CRUDTestRunner(dataset: CRUDTestDataSet, isUpsertTest: boolean): assert.equal( documents2.length, beforeCreateDocumentsCount + 1, - "create should increase the number of documents" + "create should increase the number of documents", ); // query documents const querySpec = { @@ -170,7 +170,7 @@ async function CRUDTestRunner(dataset: CRUDTestDataSet, isUpsertTest: boolean): replaceDocument, undefined, isUpsertTest, - dataset.originalItemPartitionKey + dataset.originalItemPartitionKey, ); assert.equal(replacedDocument.name, replaceDocument.name, "document name property should change"); assert.equal(replacedDocument.foo, replaceDocument.foo, "property should have changed"); @@ -228,7 +228,7 @@ describe("Item CRUD hierarchical partition", function (this: Suite) { container, itemDefinition, undefined, - false + false, ); assert.equal(document.name, itemDefinition.name); assert(document.id !== undefined); @@ -237,7 +237,7 @@ describe("Item CRUD hierarchical partition", function (this: Suite) { assert.equal( documents2.length, beforeCreateDocumentsCount + 1, - "create should increase the number of documents" + "create should increase the number of documents", ); }); }); @@ -252,7 +252,7 @@ describe("Create, Upsert, Read, Update, Replace, Delete Operations on Item", fun const database = await getTestDatabase(dataset.dbName); const { resource: containerdef } = await database.containers.create( { ...dataset.containerDef, partitionKey: dataset.partitinKeyDef }, - dataset.containerRequestOps + dataset.containerRequestOps, ); const container = database.container(containerdef.id); let returnedDocuments = await bulkInsertItems(container, dataset.documents); @@ -267,7 +267,7 @@ describe("Create, Upsert, Read, Update, Replace, Delete Operations on Item", fun assert.equal( successDocuments.length, returnedDocuments.length, - "Expected " + returnedDocuments.length + " documents to be succesfully read" + "Expected " + returnedDocuments.length + " documents to be succesfully read", ); successDocuments.sort(function (doc1, doc2) { return doc1.id.localeCompare(doc2.id); @@ -275,7 +275,7 @@ describe("Create, Upsert, Read, Update, Replace, Delete Operations on Item", fun assert.equal( JSON.stringify(successDocuments), JSON.stringify(returnedDocuments), - "Unexpected documents are returned" + "Unexpected documents are returned", ); returnedDocuments.forEach(function (document) { document.prop ? ++document.prop : null; // eslint-disable-line no-unused-expressions @@ -283,14 +283,14 @@ describe("Create, Upsert, Read, Update, Replace, Delete Operations on Item", fun const newReturnedDocuments = await bulkReplaceItems( container, returnedDocuments, - dataset.partitinKeyDef + dataset.partitinKeyDef, ); returnedDocuments = newReturnedDocuments; await bulkQueryItemsWithPartitionKey( container, returnedDocuments, dataset.singleDocFetchQuery, - dataset.parameterGenerator + dataset.parameterGenerator, ); const querySpec = { query: "SELECT * FROM Root", @@ -305,12 +305,12 @@ describe("Create, Upsert, Read, Update, Replace, Delete Operations on Item", fun assert.equal( results.length, returnedDocuments.length, - "Expected " + returnedDocuments.length + " documents to be succesfully queried" + "Expected " + returnedDocuments.length + " documents to be succesfully queried", ); assert.equal( JSON.stringify(results), JSON.stringify(returnedDocuments), - "Unexpected query results" + "Unexpected query results", ); await bulkDeleteItems(container, returnedDocuments, dataset.partitinKeyDef); @@ -574,7 +574,7 @@ describe("Create, Upsert, Read, Update, Replace, Delete Operations on Item", fun retryCount: 0, // metadataCallCount: 5, locationEndpointsContacted: 1, - } + }, ); }); @@ -591,7 +591,7 @@ describe("Create, Upsert, Read, Update, Replace, Delete Operations on Item", fun retryCount: 0, // metadataCallCount: 2, // 2 calls for database account locationEndpointsContacted: 1, - } + }, ); }); @@ -611,7 +611,7 @@ describe("Create, Upsert, Read, Update, Replace, Delete Operations on Item", fun retryCount: 0, // metadataCallCount: 2, // 2 call for database account. locationEndpointsContacted: 1, - } + }, ); }); @@ -631,7 +631,7 @@ describe("Create, Upsert, Read, Update, Replace, Delete Operations on Item", fun retryCount: 0, // metadataCallCount: 2, // 2 call for database account. locationEndpointsContacted: 1, - } + }, ); }); @@ -649,7 +649,7 @@ describe("Create, Upsert, Read, Update, Replace, Delete Operations on Item", fun // metadataCallCount: 11, locationEndpointsContacted: 1, }, - true + true, ); }); @@ -667,7 +667,7 @@ describe("Create, Upsert, Read, Update, Replace, Delete Operations on Item", fun // metadataCallCount: 5, locationEndpointsContacted: 1, }, - true + true, ); }); }); @@ -940,7 +940,7 @@ describe("Item CRUD with priority", function (this: Suite) { // create container const { resource: containerdef } = await database.containers.create( { id: "sample container" }, - { priorityLevel: PriorityLevel.Low } + { priorityLevel: PriorityLevel.Low }, ); const container: Container = database.container(containerdef.id); @@ -963,7 +963,7 @@ describe("Item CRUD with priority", function (this: Suite) { container, itemDefinition, { priorityLevel: PriorityLevel.Low }, - isUpsertTest + isUpsertTest, ); assert.equal(document.name, itemDefinition.name); assert(document.id !== undefined); @@ -974,7 +974,7 @@ describe("Item CRUD with priority", function (this: Suite) { assert.equal( documents2.length, beforeCreateDocumentsCount + 1, - "create should increase the number of documents" + "create should increase the number of documents", ); // query documents const querySpec = { @@ -998,12 +998,12 @@ describe("Item CRUD with priority", function (this: Suite) { container, document, { priorityLevel: PriorityLevel.Low }, - isUpsertTest + isUpsertTest, ); assert.equal( replacedDocument.name, "replaced document", - "document name property should change" + "document name property should change", ); assert.equal(replacedDocument.foo, "not bar", "property should have changed"); assert.equal(document.id, replacedDocument.id, "document id should stay the same"); diff --git a/sdk/cosmosdb/cosmos/test/public/functional/item/itemIdEncoding.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/item/itemIdEncoding.spec.ts index 758a7bcaa3ab..fb7a718417cb 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/item/itemIdEncoding.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/item/itemIdEncoding.spec.ts @@ -34,7 +34,7 @@ const createPayload = function (id: string): ItemPayload { const executeTestCase = async function ( scenario: TestScenario, - useComputeGateway: boolean = false + useComputeGateway: boolean = false, ) { const client: CosmosClient = useComputeGateway ? defaultComputeGatewayClient : defaultClient; const container: Container = await getTestContainer(scenario.name, client, { diff --git a/sdk/cosmosdb/cosmos/test/public/functional/offer.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/offer.spec.ts index 2a3a53bf1456..4d07838ee2d0 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/offer.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/offer.spec.ts @@ -48,7 +48,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { const items = obj.split("="); map[items[0]] = items[1]; return map; - }, {}).collectionSize + }, {}).collectionSize, ); assert.equal(collectionSize, 10 * mbInBytes, "Collection size is unexpected"); @@ -58,7 +58,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { assert.equal( expectedOffer.content.offerThroughput, offerThroughput, - "Expected offerThroughput to be " + offerThroughput + "Expected offerThroughput to be " + offerThroughput, ); validateOfferResponseBody(expectedOffer); diff --git a/sdk/cosmosdb/cosmos/test/public/functional/permission.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/permission.spec.ts index 07b4336e3a5d..84c62e2a41ce 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/permission.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/permission.spec.ts @@ -39,7 +39,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { user, permissionDef, undefined, - isUpsertTest + isUpsertTest, ); let permission = user.permission(createdPermission.id); assert.equal(createdPermission.id, "new permission", "permission name error"); @@ -66,12 +66,12 @@ describe("NodeJS CRUD Tests", function (this: Suite) { user, permissionDef, undefined, - isUpsertTest + isUpsertTest, ); assert.equal( replacedPermission.permissionMode, PermissionMode.All, - "permission mode should change" + "permission mode should change", ); assert.equal(permissionDef.id, replacedPermission.id, "permission id should stay the same"); @@ -100,7 +100,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { }; const permissionCRUDOverMultiplePartitionsTest = async function ( - isUpsertTest: boolean + isUpsertTest: boolean, ): Promise { // create database // create container @@ -112,7 +112,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { const container = await getTestContainer( "permission CRUD over multiple partitions", undefined, - containerDefinition + containerDefinition, ); // create user @@ -135,7 +135,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { user, permissionDefinition, undefined, - isUpsertTest + isUpsertTest, ); const permissionDef = response.resource; let permission = user.permission(permissionDef.id); @@ -143,7 +143,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { assert.equal( JSON.stringify(permissionDef.resourcePartitionKey), JSON.stringify(permissionDefinition.resourcePartitionKey), - "permission resource partition key error" + "permission resource partition key error", ); // list permissions after creation @@ -169,18 +169,18 @@ describe("NodeJS CRUD Tests", function (this: Suite) { user, permissionDef, undefined, - isUpsertTest + isUpsertTest, ); assert.equal( replacedPermission.permissionMode, PermissionMode.All, - "permission mode should change" + "permission mode should change", ); assert.equal(replacedPermission.id, permissionDef.id, "permission id should stay the same"); assert.equal( JSON.stringify(replacedPermission.resourcePartitionKey), JSON.stringify(permissionDef.resourcePartitionKey), - "permission resource partition key error" + "permission resource partition key error", ); // to change the id of an existing resourcewe have to use replace diff --git a/sdk/cosmosdb/cosmos/test/public/functional/plugin.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/plugin.spec.ts index a17c02513be1..c05ee3c76803 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/plugin.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/plugin.spec.ts @@ -24,7 +24,7 @@ describe("Plugin", function () { const FAILCOUNT = 2; const sometimesThrow: Plugin = async ( context: RequestContext, - diagNode: DiagnosticNodeInternal + diagNode: DiagnosticNodeInternal, ) => { expect(diagNode, "DiagnosticsNode should not be undefined or null").to.exist; requestCount++; diff --git a/sdk/cosmosdb/cosmos/test/public/functional/query.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/query.spec.ts index b213d0a4d1e7..05b8e29a5be9 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/query.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/query.spec.ts @@ -84,7 +84,7 @@ describe("Queries", function (this: Suite) { retryCount: 0, gatewayStatisticsTestSpec: [{}, {}], // Two backend data calls. }, - true + true, ); // const { resources: docs } = await queryIterator.fetchAll(); @@ -124,7 +124,7 @@ describe("Queries", function (this: Suite) { retryCount: 0, gatewayStatisticsTestSpec: [{}], // One backend data calls. }, - true + true, ); // const firstResponse = await queryIterator.fetchNext(); assert(firstResponse.continuationToken); @@ -133,12 +133,12 @@ describe("Queries", function (this: Suite) { assert.equal( firstResponse.resources[0].id, resources.doc1.id, - "first batch first document should be doc1" + "first batch first document should be doc1", ); assert.equal( firstResponse.resources[1].id, resources.doc2.id, - "batch first second document should be doc2" + "batch first second document should be doc2", ); const { resources: docs2 } = await queryIterator.fetchNext(); assert.equal(docs2.length, 1, "second batch size is unexpected"); @@ -154,12 +154,12 @@ describe("Queries", function (this: Suite) { assert.equal( secondResponse.resources.length, 1, - "second batch size with continuation token is unexpected" + "second batch size with continuation token is unexpected", ); assert.equal( secondResponse.resources[0].id, resources.doc3.id, - "second batch element should be doc3" + "second batch element should be doc3", ); }); it("fails with invalid continuation token", async function () { @@ -191,7 +191,7 @@ describe("Queries", function (this: Suite) { { throughput: 10100, partitionKey: "/id", - } + }, ); await container.items.create({ id: "5eded6f8asdfasdfasdfaa21be0109ae34e29", age: 22 }); await container.items.create({ id: "5eded6f8a21be0109ae34e29", age: 22 }); @@ -211,7 +211,7 @@ describe("Queries", function (this: Suite) { { throughput: 10100, partitionKey: "/id", - } + }, ); await container.items.create({ id: "5eded6f8asdfasdfasdfaa21be0109ae34e29", age: 22 }); await container.items.create({ id: "5eded6f8a21be0109ae34e29", age: 22 }); @@ -231,7 +231,7 @@ describe("Queries", function (this: Suite) { { throughput: 10100, partitionKey: "/id", - } + }, ); await container.items.create({ id: "5eded6f8asdfasdfasdfaa21be0109ae34e29", age: 22 }); await container.items.create({ id: "5eded6f8a21be0109ae34e29", age: 22 }); @@ -251,7 +251,7 @@ describe("Queries", function (this: Suite) { { throughput: 10100, partitionKey: "/id", - } + }, ); await container.items.create({ id: "5eded6f8asdfasdfasdfaa21be0109ae34e29", age: 22 }); await container.items.create({ id: "5eded6f8a21be0109ae34e29", age: 22 }); @@ -283,7 +283,7 @@ describe("Queries", function (this: Suite) { const container = await getTestContainer( "Validate QueryIterator Functionality", client, - containerDef + containerDef, ); const { resource: doc1 } = await container.items.create({ id: "doc1", prop1: "a", prop2: 1 }); const { resource: doc2 } = await container.items.create({ id: "doc2", prop1: "a", prop2: 1 }); @@ -349,12 +349,12 @@ describe("Queries", function (this: Suite) { assert.equal( firstResponse.resources[0].id, resources.doc1.id, - "first batch first document should be doc1" + "first batch first document should be doc1", ); assert.equal( firstResponse.resources[1].id, resources.doc2.id, - "batch first second document should be doc2" + "batch first second document should be doc2", ); const { resources: docs2 } = await queryIterator.fetchNext(); assert.equal(docs2.length, 1, "second batch size is unexpected"); @@ -371,12 +371,12 @@ describe("Queries", function (this: Suite) { assert.equal( secondResponse.resources.length, 1, - "second batch size with continuation token is unexpected" + "second batch size with continuation token is unexpected", ); assert.equal( secondResponse.resources[0].id, resources.doc3.id, - "second batch element should be doc3" + "second batch element should be doc3", ); }); it("fails with invalid continuation token", async function () { @@ -413,7 +413,7 @@ describe("Queries", function (this: Suite) { version: PartitionKeyDefinitionVersion.V2, kind: PartitionKeyKind.MultiHash, }, - } + }, ); await container.items.create({ id: "5eded6f8asdfasdfasdfaa21be0109ae34e29", diff --git a/sdk/cosmosdb/cosmos/test/public/functional/sproc.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/sproc.spec.ts index 5dbe7e07b947..57752db2aaf5 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/sproc.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/sproc.spec.ts @@ -51,7 +51,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { assert.equal( sprocsAfterCreation.length, beforeCreateSprocsCount + 1, - "create should increase the number of sprocs" + "create should increase the number of sprocs", ); // query sprocs @@ -180,7 +180,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { function (err: any, documents: any) { if (err) throw new Error("Error" + err.message); response.setBody(documents); - } + }, ); if (!accept) throw "Unable to read player details, abort "; @@ -249,7 +249,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { function (err: any, documents: any) { if (err) throw new Error("Error" + err.message); response.setBody(documents); - } + }, ); if (!accept) throw "Unable to read player details, abort "; @@ -321,7 +321,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { assert.equal(result2, "Success!"); assert.equal( headers2[Constants.HttpHeaders.ScriptLogResults], - encodeURIComponent("The value of x is 1.") + encodeURIComponent("The value of x is 1."), ); requestOptions = { enableScriptLogging: false }; diff --git a/sdk/cosmosdb/cosmos/test/public/functional/trigger.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/trigger.spec.ts index 63018c4dea97..00d9e991d649 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/trigger.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/trigger.spec.ts @@ -47,7 +47,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { assert.equal( triggersAfterCreation.length, beforeCreateTriggersCount + 1, - "create should increase the number of triggers" + "create should increase the number of triggers", ); // query triggers @@ -146,27 +146,27 @@ describe("NodeJS CRUD Tests", function (this: Suite) { // create document const { resource: document } = await container.items.create( { id: "doc1", key: "value" }, - { preTriggerInclude: "t1" } + { preTriggerInclude: "t1" }, ); assert.equal(document.id, "DOC1t1", "name should be capitalized"); const { resource: document2 } = await container.items.create( { id: "doc2", key2: "value2" }, - { preTriggerInclude: "t2" } + { preTriggerInclude: "t2" }, ); assert.equal(document2.id, "doc2", "name shouldn't change"); const { resource: document3 } = await container.items.create( { id: "Doc3", prop: "empty" }, - { preTriggerInclude: "t3" } + { preTriggerInclude: "t3" }, ); assert.equal(document3.id, "doc3t3"); const { resource: document4 } = await container.items.create( { id: "testing post trigger" }, - { postTriggerInclude: "response1", preTriggerInclude: "t1" } + { postTriggerInclude: "response1", preTriggerInclude: "t1" }, ); assert.equal(document4.id, "TESTING POST TRIGGERt1"); const { resource: document5 } = await container.items.create( { id: "responseheaders" }, - { preTriggerInclude: "t1" } + { preTriggerInclude: "t1" }, ); assert.equal(document5.id, "RESPONSEHEADERSt1"); try { diff --git a/sdk/cosmosdb/cosmos/test/public/functional/ttl.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/ttl.spec.ts index 243993908ba6..e3ef09d5c093 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/ttl.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/ttl.spec.ts @@ -21,7 +21,7 @@ describe("Container TTL", function (this: Suite) { db: Database, containerDefinition: ContainerDefinition, collId: any, - defaultTtl: number + defaultTtl: number, ): Promise { containerDefinition.id = collId; containerDefinition.defaultTtl = defaultTtl; @@ -32,7 +32,7 @@ describe("Container TTL", function (this: Suite) { assert.equal( err.code, badRequestErrorCode, - "response should return error code " + badRequestErrorCode + "response should return error code " + badRequestErrorCode, ); } } @@ -41,7 +41,7 @@ describe("Container TTL", function (this: Suite) { container: Container, itemDefinition: any, itemId: any, - ttl: number + ttl: number, ): Promise { itemDefinition.id = itemId; itemDefinition.ttl = ttl; @@ -54,7 +54,7 @@ describe("Container TTL", function (this: Suite) { assert.equal( err.code, badRequestErrorCode, - "response should return error code " + badRequestErrorCode + "response should return error code " + badRequestErrorCode, ); } } @@ -76,19 +76,19 @@ describe("Container TTL", function (this: Suite) { database, containerDefinition, "sample container2", - null + null, ); await createcontainerWithInvalidDefaultTtl( database, containerDefinition, "sample container3", - 0 + 0, ); await createcontainerWithInvalidDefaultTtl( database, containerDefinition, "sample container4", - -10 + -10, ); const itemDefinition = { @@ -124,7 +124,7 @@ describe("Container TTL", function (this: Suite) { async function positiveDefaultTtlStep3( container: Container, createdItem: any, - itemDefinition: any + itemDefinition: any, ): Promise { // the created Item should be gone now as it 's ttl value is set to 2 which overrides the containers' s defaultTtl value(5) await checkItemGone(container, createdItem); @@ -139,7 +139,7 @@ describe("Container TTL", function (this: Suite) { async function positiveDefaultTtlStep2( container: Container, createdItem: any, - itemDefinition: any + itemDefinition: any, ): Promise { // the created Item should NOT be gone as it 's ttl value is set to -1(never expire) which overrides the containers' s defaultTtl value await checkItemExists(container, createdItem); @@ -154,7 +154,7 @@ describe("Container TTL", function (this: Suite) { async function positiveDefaultTtlStep1( container: Container, createdItem: any, - itemDefinition: any + itemDefinition: any, ): Promise { // the created Item should be gone now as it 's ttl value would be same as defaultTtl value of the container await checkItemGone(container, createdItem); @@ -193,7 +193,7 @@ describe("Container TTL", function (this: Suite) { container: Container, createdItem1: any, createdItem2: any, - createdItem3: any + createdItem3: any, ): Promise { // the created Item should be gone now as it 's ttl value is set to 2 which overrides the containers' s defaultTtl value(-1) await checkItemGone(container, createdItem3); diff --git a/sdk/cosmosdb/cosmos/test/public/functional/udf.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/udf.spec.ts index 62b225f3c514..4d5df2224b3c 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/udf.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/udf.spec.ts @@ -37,7 +37,7 @@ describe("User Defined Function", function (this: Suite) { assert.equal( udfsAfterCreate.length, beforeCreateUdfsCount + 1, - "create should increase the number of udfs" + "create should increase the number of udfs", ); // query udfs diff --git a/sdk/cosmosdb/cosmos/test/public/functional/user.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/user.spec.ts index 09e999b0d741..b037227e1210 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/user.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/user.spec.ts @@ -25,7 +25,7 @@ describe("NodeJS CRUD Tests", function (this: Suite) { database, { id: "new user" }, undefined, - isUpsertTest + isUpsertTest, ); assert.equal(userDef.id, "new user", "user name error"); let user = database.user(userDef.id); diff --git a/sdk/cosmosdb/cosmos/test/public/indexMetrics.spec.ts b/sdk/cosmosdb/cosmos/test/public/indexMetrics.spec.ts index a7938d72f1fa..260ac2487251 100644 --- a/sdk/cosmosdb/cosmos/test/public/indexMetrics.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/indexMetrics.spec.ts @@ -11,7 +11,7 @@ describe("Test Index Metrics Writer", function (this: Suite) { const result: { result: IndexUtilizationInfo } = { result: IndexUtilizationInfo.Empty }; IndexUtilizationInfo.tryCreateFromDelimitedBase64String( "eyJVdGlsaXplZFNpbmdsZUluZGV4ZXMiOlt7IkZpbHRlckV4cHJlc3Npb24iOiIiLCJJbmRleFNwZWMiOiJcL25hbWVcLz8iLCJGaWx0ZXJQcmVjaXNlU2V0Ijp0cnVlLCJJbmRleFByZWNpc2VTZXQiOnRydWUsIkluZGV4SW1wYWN0U2NvcmUiOiJIaWdoIn1dLCJQb3RlbnRpYWxTaW5nbGVJbmRleGVzIjpbXSwiVXRpbGl6ZWRDb21wb3NpdGVJbmRleGVzIjpbXSwiUG90ZW50aWFsQ29tcG9zaXRlSW5kZXhlcyI6W119", - result + result, ); const indexMetricWriter = new IndexMetricWriter(); const output = @@ -38,7 +38,7 @@ describe("Test Index Utilization Info", function (this: Suite) { const isParsed = IndexUtilizationInfo.tryCreateFromDelimitedBase64String( delimitedString, - result + result, ); assert.equal(isParsed, true); @@ -53,7 +53,7 @@ describe("Test Index Utilization Info", function (this: Suite) { const isParsed = IndexUtilizationInfo.tryCreateFromDelimitedBase64String( delimitedString, - result + result, ); assert.equal(isParsed, false); @@ -66,7 +66,7 @@ describe("Test Index Utilization Info", function (this: Suite) { const isParsed = IndexUtilizationInfo.tryCreateFromDelimitedBase64String( delimitedString, - result + result, ); assert.equal(isParsed, false); diff --git a/sdk/cosmosdb/cosmos/test/public/integration/aggregateQuery.spec.ts b/sdk/cosmosdb/cosmos/test/public/integration/aggregateQuery.spec.ts index fb02c0d0767a..bac241b72838 100644 --- a/sdk/cosmosdb/cosmos/test/public/integration/aggregateQuery.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/integration/aggregateQuery.spec.ts @@ -54,14 +54,14 @@ describe("Aggregate Query", function (this: Suite) { "Validate Aggregate Document Query", undefined, containerDefinition, - containerOptions + containerOptions, ); await bulkInsertItems(container, documentDefinitions); }); const validateFetchAll = async function ( queryIterator: QueryIterator, - expectedResults: any + expectedResults: any, ): Promise { const { resources: results, requestCharge } = await queryIterator.fetchAll(); assert(requestCharge > 0, "request charge was not greater than zero"); @@ -74,7 +74,7 @@ describe("Aggregate Query", function (this: Suite) { queryIterator: QueryIterator, options: any, expectedResults: any[], - fetchAllRequestCharge: number + fetchAllRequestCharge: number, ): Promise { const pageSize = options["maxItemCount"]; @@ -107,11 +107,11 @@ describe("Aggregate Query", function (this: Suite) { assert.equal( expectedResults.length, totalFetchedResults.length, - "executeNext: didn't fetch all the results" + "executeNext: didn't fetch all the results", ); assert( results.length <= pageSize, - "executeNext: actual fetch size is more than the requested page size" + "executeNext: actual fetch size is more than the requested page size", ); } } @@ -126,13 +126,13 @@ describe("Aggregate Query", function (this: Suite) { totalExecuteNextRequestCharge; assert( percentDifference <= 0.01, - "difference between fetchAll request charge and executeNext request charge should be less than 1%" + "difference between fetchAll request charge and executeNext request charge should be less than 1%", ); }; const ValidateAsyncIterator = async function ( queryIterator: QueryIterator, - expectedResults: any[] + expectedResults: any[], ): Promise { const results: any[] = []; let completed = false; @@ -151,7 +151,7 @@ describe("Aggregate Query", function (this: Suite) { const executeQueryAndValidateResults = async function ( query: string | SqlQuerySpec, - expectedResults: any[] + expectedResults: any[], ): Promise { const options: FeedOptions = { maxDegreeOfParallelism: 2, maxItemCount: 1 }; @@ -162,7 +162,7 @@ describe("Aggregate Query", function (this: Suite) { queryIterator, options, expectedResults, - fetchAllRequestCharge + fetchAllRequestCharge, ); queryIterator.reset(); await ValidateAsyncIterator(queryIterator, expectedResults); @@ -177,7 +177,7 @@ describe("Aggregate Query", function (this: Suite) { it("SELECT VALUE AVG with ORDER BY", async function () { await executeQueryAndValidateResults( "SELECT VALUE AVG(r.key) FROM r WHERE IS_NUMBER(r.key) ORDER BY r.key", - [average] + [average], ); }); @@ -218,42 +218,42 @@ describe("Aggregate Query", function (this: Suite) { it("SELECT VALUE SUM with ORDER BY", async function () { await executeQueryAndValidateResults( "SELECT VALUE SUM(r.key) FROM r WHERE IS_NUMBER(r.key) ORDER BY r.key", - [testdata.sum] + [testdata.sum], ); }); it("SELECT VALUE AVG for single partiton", async function () { await executeQueryAndValidateResults( "SELECT VALUE AVG(r.field) FROM r WHERE r.key = 'uniquePartitionKey'", - [samePartitionSum / testdata.numberOfDocsWithSamePartitionKey] + [samePartitionSum / testdata.numberOfDocsWithSamePartitionKey], ); }); it("SELECT VALUE COUNT for single partiton", async function () { await executeQueryAndValidateResults( "SELECT VALUE COUNT(r.field) FROM r WHERE r.key = 'uniquePartitionKey'", - [testdata.numberOfDocsWithSamePartitionKey] + [testdata.numberOfDocsWithSamePartitionKey], ); }); it("SELECT VALUE MAX for single partiton", async function () { await executeQueryAndValidateResults( "SELECT VALUE MAX(r.field) FROM r WHERE r.key = 'uniquePartitionKey'", - [testdata.numberOfDocsWithSamePartitionKey] + [testdata.numberOfDocsWithSamePartitionKey], ); }); it("SELECT VALUE MIN for single partiton", async function () { await executeQueryAndValidateResults( "SELECT VALUE MIN(r.field) FROM r WHERE r.key = 'uniquePartitionKey'", - [1] + [1], ); }); it("SELECT VALUE SUM for single partiton", async function () { await executeQueryAndValidateResults( "SELECT VALUE SUM(r.field) FROM r WHERE r.key = 'uniquePartitionKey'", - [samePartitionSum] + [samePartitionSum], ); }); diff --git a/sdk/cosmosdb/cosmos/test/public/integration/aggregates/groupBy.spec.ts b/sdk/cosmosdb/cosmos/test/public/integration/aggregates/groupBy.spec.ts index 993d64adf4e4..484185f09596 100644 --- a/sdk/cosmosdb/cosmos/test/public/integration/aggregates/groupBy.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/integration/aggregates/groupBy.spec.ts @@ -555,7 +555,7 @@ describe("Cross partition GROUP BY", () => { "GROUP BY Query", undefined, containerDefinition, - containerOptions + containerOptions, ); await bulkInsertItems(container, items); }); @@ -584,7 +584,7 @@ describe("Cross partition GROUP BY", () => { it("with multiple fields", async () => { const queryIterator = container.items.query( "SELECT c.age, c.name FROM c GROUP BY c.age, c.name", - options + options, ); const result = await queryIterator.fetchAll(); @@ -594,7 +594,7 @@ describe("Cross partition GROUP BY", () => { it("with COUNT", async () => { const queryIterator = container.items.query( "SELECT c.age, COUNT(1) as count FROM c GROUP BY c.age", - options + options, ); const result = await queryIterator.fetchAll(); snapshot(result.resources.sort((a, b) => a.age - b.age)); @@ -603,7 +603,7 @@ describe("Cross partition GROUP BY", () => { it("with MIN", async () => { const queryIterator = container.items.query( "SELECT c.name, MIN(c.age) AS min_age FROM c GROUP BY c.name", - options + options, ); const result = await queryIterator.fetchAll(); snapshot(result.resources.sort((a, b) => a.name.localeCompare(b.name))); @@ -612,7 +612,7 @@ describe("Cross partition GROUP BY", () => { it("with MAX", async () => { const queryIterator = container.items.query( "SELECT c.name, MAX(c.age) AS min_age FROM c GROUP BY c.name", - options + options, ); const result = await queryIterator.fetchAll(); snapshot(result.resources.sort((a, b) => a.name.localeCompare(b.name))); @@ -621,7 +621,7 @@ describe("Cross partition GROUP BY", () => { it("with SUM", async () => { const queryIterator = container.items.query( "SELECT c.name, SUM(c.age) AS min_age FROM c GROUP BY c.name", - options + options, ); const result = await queryIterator.fetchAll(); snapshot(result.resources.sort((a, b) => a.name.localeCompare(b.name))); @@ -630,33 +630,33 @@ describe("Cross partition GROUP BY", () => { it("with AVG", async () => { const queryIterator = container.items.query( "SELECT c.name, AVG(c.age) AS min_age FROM c GROUP BY c.name", - options + options, ); const result = await queryIterator.fetchAll(); snapshot( result.resources.sort((a, b) => { return a.name.localeCompare(b.name); - }) + }), ); }); it("with multiple aggregates", async () => { const queryIterator = container.items.query( "SELECT c.name, Count(1) AS count, Min(c.age) AS min_age, Max(c.age) AS max_age FROM c GROUP BY c.name", - options + options, ); const result = await queryIterator.fetchAll(); snapshot( result.resources.sort((a, b) => { return a.name.localeCompare(b.name); - }) + }), ); }); it("with VALUE with string", async () => { const queryIterator = container.items.query( "SELECT VALUE c.team FROM c GROUP BY c.team", - options + options, ); const result = await queryIterator.fetchAll(); snapshot(result.resources.sort()); @@ -665,7 +665,7 @@ describe("Cross partition GROUP BY", () => { it("with VALUE with number", async () => { const queryIterator = container.items.query( "SELECT VALUE c.age FROM c GROUP BY c.age", - options + options, ); const result = await queryIterator.fetchAll(); snapshot(result.resources.sort()); @@ -674,7 +674,7 @@ describe("Cross partition GROUP BY", () => { it("with VALUE and aggregate", async () => { const queryIterator = container.items.query( "SELECT VALUE AVG(c.age) FROM c GROUP BY c.team", - options + options, ); const result = await queryIterator.fetchAll(); snapshot(result.resources.sort()); @@ -691,7 +691,7 @@ describe("Cross partition GROUP BY", () => { SUM(c.doesNotExist) as undefined_sum FROM c GROUP BY c.age`, - options + options, ); const result = await queryIterator.fetchAll(); snapshot(result.resources.sort((a, b) => a.age - b.age)); @@ -700,7 +700,7 @@ describe("Cross partition GROUP BY", () => { it("with missing aggregate field", async () => { const queryIterator = container.items.query( 'SELECT AVG("asdf") as avg_asdf FROM c GROUP BY c.age', - options + options, ); const result = await queryIterator.fetchAll(); snapshot(result.resources.sort((a, b) => a.age - b.age)); @@ -709,7 +709,7 @@ describe("Cross partition GROUP BY", () => { it("with missing GROUP BY projection", async () => { const queryIterator = container.items.query( "SELECT c.age, c.doesNotExist FROM c GROUP BY c.age, c.doesNotExist", - options + options, ); const result = await queryIterator.fetchAll(); snapshot(result.resources.sort((a, b) => a.age - b.age)); @@ -732,7 +732,7 @@ describe("Cross partition GROUP BY", () => { it("works with TOP", async () => { const queryIterator = container.items.query( "SELECT TOP 1 c.age FROM c GROUP BY c.age", - options + options, ); const result = await queryIterator.fetchNext(); assert(result.resources.length === 1); diff --git a/sdk/cosmosdb/cosmos/test/public/integration/authorization.spec.ts b/sdk/cosmosdb/cosmos/test/public/integration/authorization.spec.ts index 4b13f2edb30e..41bcee6e59b4 100644 --- a/sdk/cosmosdb/cosmos/test/public/integration/authorization.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/integration/authorization.spec.ts @@ -45,7 +45,7 @@ describe("Authorization", function (this: Suite) { assert.equal( readPermission.id, collReadPermission.id, - "permission to read coll1 is not created properly" + "permission to read coll1 is not created properly", ); collReadPermission = readPermission; @@ -61,7 +61,7 @@ describe("Authorization", function (this: Suite) { assert.equal( collAllPermission.id, allPermission.id, - "permission to read coll2 is not created properly" + "permission to read coll2 is not created properly", ); collAllPermission = allPermission; }); diff --git a/sdk/cosmosdb/cosmos/test/public/integration/changeFeed.spec.ts b/sdk/cosmosdb/cosmos/test/public/integration/changeFeed.spec.ts index e567ed73d0ac..6df8757c7d33 100644 --- a/sdk/cosmosdb/cosmos/test/public/integration/changeFeed.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/integration/changeFeed.spec.ts @@ -32,7 +32,7 @@ describe("Change Feed Iterator", function (this: Suite) { "Newly updated items should be fetched incrementally", undefined, containerDef, - throughput + throughput, ); await container.items.create({ id: "item1", key1: "0", key2: 0 }); await container.items.create({ id: "item2", key1: "0", key2: 0 }); @@ -48,7 +48,7 @@ describe("Change Feed Iterator", function (this: Suite) { } catch (err: any) { assert.equal( err.message, - "Container is partitioned, but no partition key or partition key range id was specified." + "Container is partitioned, but no partition key or partition key range id was specified.", ); return; } @@ -80,7 +80,7 @@ describe("Change Feed Iterator", function (this: Suite) { assert.equal( hasMoreResults, false, - "hasMoreResults should be false when we read the whole page" + "hasMoreResults should be false when we read the whole page", ); }); }); @@ -102,7 +102,7 @@ describe("Change Feed Iterator", function (this: Suite) { "Newly updated items should be fetched incrementally", undefined, containerDef, - throughput + throughput, ); await container.items.create({ id: "item1", key1: "0", key2: 0 }); await container.items.create({ id: "item1", key1: "1", key2: 1 }); @@ -133,14 +133,14 @@ describe("Change Feed Iterator", function (this: Suite) { assert.notDeepEqual( itemThatWasFound, itemThatWasCreated, - "actual should not match with expected value." + "actual should not match with expected value.", ); delete itemThatWasFound._lsn; delete itemThatWasFound._metadata; assert.deepEqual( itemThatWasFound, itemThatWasCreated, - "actual value doesn't match with expected value." + "actual value doesn't match with expected value.", ); const { result: itemsShouldBeEmptyWithNoNewCreates } = await iterator.fetchNext(); @@ -158,7 +158,7 @@ describe("Change Feed Iterator", function (this: Suite) { assert.equal( hasMoreResults, false, - "hasMoreResults should be false when we read the whole page" + "hasMoreResults should be false when we read the whole page", ); }); }); diff --git a/sdk/cosmosdb/cosmos/test/public/integration/changeFeedIterator.spec.ts b/sdk/cosmosdb/cosmos/test/public/integration/changeFeedIterator.spec.ts index cf692f4fc612..0520798c6502 100644 --- a/sdk/cosmosdb/cosmos/test/public/integration/changeFeedIterator.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/integration/changeFeedIterator.spec.ts @@ -33,7 +33,7 @@ describe("Change Feed Iterator", function (this: Suite) { "change feed iterator options", undefined, containerDef, - throughput + throughput, ); for (let i = 1; i < 11; i++) { @@ -79,7 +79,7 @@ describe("Change Feed Iterator", function (this: Suite) { "changefeed for one partition key", undefined, containerDef, - throughput + throughput, ); for (let i = 1; i < 11; i++) { @@ -194,7 +194,7 @@ describe("Change Feed Iterator", function (this: Suite) { locationEndpointsContacted: 1, requestStartTimeUTCInMsLowerLimit: startTimestamp, requestDurationInMsUpperLimit: getCurrentTimestampInMs() - startTimestamp, - } + }, ); }); }); @@ -214,7 +214,7 @@ describe("Change Feed Iterator", function (this: Suite) { "changefeedEntireContainer", undefined, containerDef, - throughput + throughput, ); for (let i = 1; i < 6; i++) { diff --git a/sdk/cosmosdb/cosmos/test/public/integration/client.retry.spec.ts b/sdk/cosmosdb/cosmos/test/public/integration/client.retry.spec.ts index 980b8153549c..b9dac240c247 100644 --- a/sdk/cosmosdb/cosmos/test/public/integration/client.retry.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/integration/client.retry.spec.ts @@ -132,7 +132,7 @@ describe("RetryPolicy", function () { assert.equal(lastEndpointCalled[2], "https://failovertest-eastus.documents.azure.com:443/"); assert.equal( lastEndpointCalled[3], - "https://failovertest-australiaeast.documents.azure.com:443/" + "https://failovertest-australiaeast.documents.azure.com:443/", ); client.dispose(); }); @@ -213,15 +213,15 @@ describe("RetryPolicy", function () { assert.equal(lastEndpointCalled.length, 9); assert.equal( lastEndpointCalled[lastEndpointCalled.length - 1], - "https://failovertest-eastus.documents.azure.com:443/" + "https://failovertest-eastus.documents.azure.com:443/", ); assert.equal( lastEndpointCalled[lastEndpointCalled.length - 2], - "https://failovertest-australiaeast.documents.azure.com:443/" + "https://failovertest-australiaeast.documents.azure.com:443/", ); assert.equal( lastEndpointCalled[lastEndpointCalled.length - 3], - "https://failovertest-eastus.documents.azure.com:443/" + "https://failovertest-eastus.documents.azure.com:443/", ); client.dispose(); diff --git a/sdk/cosmosdb/cosmos/test/public/integration/crossPartition.spec.ts b/sdk/cosmosdb/cosmos/test/public/integration/crossPartition.spec.ts index e1d6c90bc741..cdf8365c2e3c 100644 --- a/sdk/cosmosdb/cosmos/test/public/integration/crossPartition.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/integration/crossPartition.spec.ts @@ -70,7 +70,7 @@ describe("Cross Partition", function (this: Suite) { "Validate 中文 Query", undefined, containerDefinition, - containerOptions + containerOptions, ); await bulkInsertItems(container, documentDefinitions); }); @@ -78,19 +78,19 @@ describe("Cross Partition", function (this: Suite) { const validateResults = function ( actualResults: any[], expectedOrderIds: string[], - expectedCount: number + expectedCount: number, ): void { assert.equal( actualResults.length, expectedCount || (expectedOrderIds && expectedOrderIds.length) || documentDefinitions.length, - "actual results length doesn't match with expected results length." + "actual results length doesn't match with expected results length.", ); if (expectedOrderIds) { assert.deepStrictEqual( actualResults.map((doc) => doc.id || doc), - expectedOrderIds + expectedOrderIds, ); } }; @@ -99,7 +99,7 @@ describe("Cross Partition", function (this: Suite) { queryIterator: QueryIterator, options: any, expectedOrderIds: string[], - expectedCount: number + expectedCount: number, ): Promise> { options.continuation = undefined; const response = await queryIterator.fetchAll(); @@ -109,12 +109,12 @@ describe("Cross Partition", function (this: Suite) { expectedCount || (expectedOrderIds && expectedOrderIds.length) || documentDefinitions.length, - "invalid number of results" + "invalid number of results", ); assert.equal( queryIterator.hasMoreResults(), false, - "hasMoreResults: no more results is left" + "hasMoreResults: no more results is left", ); validateResults(results, expectedOrderIds, expectedCount); @@ -127,7 +127,7 @@ describe("Cross Partition", function (this: Suite) { expectedOrderIds: string[], fetchAllResponse: FeedResponse, expectedCount: number, - expectedIteratorCalls: number + expectedIteratorCalls: number, ): Promise { const pageSize = options["maxItemCount"]; let totalExecuteNextRequestCharge = 0; @@ -162,7 +162,7 @@ describe("Cross Partition", function (this: Suite) { assert.equal( expectedLength, totalFetchedResults.length, - "executeNext: didn't fetch all the results" + "executeNext: didn't fetch all the results", ); } } @@ -176,7 +176,7 @@ describe("Cross Partition", function (this: Suite) { assert.equal( queryIterator.hasMoreResults(), false, - "hasMoreResults: no more results is left" + "hasMoreResults: no more results is left", ); assert(totalExecuteNextRequestCharge > 0); const percentDifference = @@ -188,14 +188,14 @@ describe("Cross Partition", function (this: Suite) { percentDifference * 100 }. \n fetchAllResponse.requestCharge: ${ fetchAllResponse.requestCharge - }, totalExecuteNextRequestCharge: ${totalExecuteNextRequestCharge}` + }, totalExecuteNextRequestCharge: ${totalExecuteNextRequestCharge}`, ); }; const validateAsyncIterator = async function ( queryIterator: QueryIterator, expectedOrderIds: any[], - expecetedCount: number + expecetedCount: number, ): Promise { const expectedLength = expecetedCount || @@ -235,7 +235,7 @@ describe("Cross Partition", function (this: Suite) { queryIterator, options, expectedOrderIds, - expectedCount + expectedCount, ); if (expectedRus) { const percentDifference = @@ -244,7 +244,7 @@ describe("Cross Partition", function (this: Suite) { percentDifference <= 0.05, `difference between fetchAll request charge and expected request charge should be less than 5%. Got ${ percentDifference * 100 - }` + }`, ); } queryIterator.reset(); @@ -254,7 +254,7 @@ describe("Cross Partition", function (this: Suite) { expectedOrderIds, fetchAllResponse, expectedCount, - expectedIteratorCalls + expectedIteratorCalls, ); queryIterator.reset(); await validateAsyncIterator(queryIterator, expectedOrderIds, expectedCount); diff --git a/sdk/cosmosdb/cosmos/test/public/integration/encoding.spec.ts b/sdk/cosmosdb/cosmos/test/public/integration/encoding.spec.ts index 845b72f6ec8c..eab6c6e312fa 100644 --- a/sdk/cosmosdb/cosmos/test/public/integration/encoding.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/integration/encoding.spec.ts @@ -49,7 +49,7 @@ describe("Create And Read Validation", function (this: Suite) { assert.equal( testDoc.content, resultDoc.content, - "read document result is different from initial document" + "read document result is different from initial document", ); }); }); diff --git a/sdk/cosmosdb/cosmos/test/public/integration/failover.spec.ts b/sdk/cosmosdb/cosmos/test/public/integration/failover.spec.ts index 52141bd02563..9e7fc25ac675 100644 --- a/sdk/cosmosdb/cosmos/test/public/integration/failover.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/integration/failover.spec.ts @@ -179,7 +179,7 @@ describe("Region Failover", () => { await containerRef.item("any", undefined).read(); assert.strictEqual( lastEndpointCalled, - "https://failovertest-australiaeast.documents.azure.com:443/" + "https://failovertest-australiaeast.documents.azure.com:443/", ); client.dispose(); }); @@ -221,7 +221,7 @@ describe("Region Failover", () => { await containerRef.item("any", undefined).read(); assert.strictEqual( lastEndpointCalled, - "https://failovertest-australiaeast.documents.azure.com:443/" + "https://failovertest-australiaeast.documents.azure.com:443/", ); client.dispose(); }); diff --git a/sdk/cosmosdb/cosmos/test/public/integration/multiregion.spec.ts b/sdk/cosmosdb/cosmos/test/public/integration/multiregion.spec.ts index 82f789e3a7c1..24e96bab8f18 100644 --- a/sdk/cosmosdb/cosmos/test/public/integration/multiregion.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/integration/multiregion.spec.ts @@ -153,7 +153,7 @@ describe("Multi-region tests", function (this: Suite) { const currentReadEndpoint = await client.getReadEndpoint(); assert.equal( currentReadEndpoint, - "https://failovertest-australiaeast.documents.azure.com:443/" + "https://failovertest-australiaeast.documents.azure.com:443/", ); await client.database("foo").container("foo").item("foo", undefined).read(); assert.equal(lastEndpointCalled, "https://failovertest-australiaeast.documents.azure.com:443/"); diff --git a/sdk/cosmosdb/cosmos/test/public/integration/query.spec.ts b/sdk/cosmosdb/cosmos/test/public/integration/query.spec.ts index 15fd413e6816..3b8cf539c235 100644 --- a/sdk/cosmosdb/cosmos/test/public/integration/query.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/integration/query.spec.ts @@ -28,7 +28,7 @@ describe("ResourceLink Trimming of leading and trailing slashes", function (this "validate correct execution of query", undefined, containerDefinition, - containerOptions + containerOptions, ); await container.items.create(doc); @@ -61,7 +61,7 @@ describe("Test Query Metrics", function (this: Suite) { const { resource: createdCollectionDef } = await database.containers.create( collectionDefinition, - collectionOptions + collectionOptions, ); const createdContainer = database.container(createdCollectionDef.id); @@ -107,7 +107,7 @@ describe("Partition key in FeedOptions", function (this: Suite) { const container = await getTestContainer( "validate correct execution of query", undefined, - containerDefinition + containerDefinition, ); await container.items.create({ id: "foo" }); @@ -127,7 +127,7 @@ describe("aggregate query over null value", function (this: Suite) { const aggregateQueryOverNullValue = async function ( testName: string, containerName: string, - containerThroughput: number + containerThroughput: number, ): Promise { const containerDefinition = { id: containerName, @@ -141,7 +141,7 @@ describe("aggregate query over null value", function (this: Suite) { testName, undefined, containerDefinition, - containerOptions + containerOptions, ); await container.items.create({ @@ -195,12 +195,12 @@ describe("Test Index metrics", function (this: Suite) { const createdContainerSinglePartition = await setupContainer( "index metrics test db", collectionId, - 4000 + 4000, ); const createdContainerMultiPartition = await setupContainer( "index metrics test db multipartioned", collectionId, - 12000 + 12000, ); await validateIndexMetrics(createdContainerSinglePartition, collectionId); @@ -245,7 +245,7 @@ describe("Test Index metrics", function (this: Suite) { const { resource: createdCollectionDef } = await database.containers.create( collectionDefinition, - collectionOptions + collectionOptions, ); const createdContainer = database.container(createdCollectionDef.id); return createdContainer; diff --git a/sdk/cosmosdb/cosmos/test/public/integration/queryMetrics.spec.ts b/sdk/cosmosdb/cosmos/test/public/integration/queryMetrics.spec.ts index 5042c757fe53..2777ef1d22fd 100644 --- a/sdk/cosmosdb/cosmos/test/public/integration/queryMetrics.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/integration/queryMetrics.spec.ts @@ -50,7 +50,7 @@ describe("QueryMetrics", function () { queryCompilationTime, logicalPlanBuildTime, physicalPlanBuildTime, - queryOptimizationTime + queryOptimizationTime, ), indexLookupTime, documentLoadTime, @@ -58,15 +58,15 @@ describe("QueryMetrics", function () { new RuntimeExecutionTimes( queryEngineExecutionTime, systemFunctionExecutionTime, - userDefinedFunctionExecutionTime + userDefinedFunctionExecutionTime, ), documentWriteTime, - new ClientSideMetrics(requestCharge) + new ClientSideMetrics(requestCharge), ); const assertQueryMetricsEquality = function ( queryMetrics1: QueryMetrics, - queryMetrics2: QueryMetrics + queryMetrics2: QueryMetrics, ): void { assert.deepEqual(queryMetrics1.indexHitRatio, queryMetrics2.indexHitRatio); assert.deepEqual(queryMetrics1.outputDocumentCount, queryMetrics2.outputDocumentCount); @@ -82,37 +82,37 @@ describe("QueryMetrics", function () { assert.deepEqual( queryMetrics1.queryPreparationTimes.logicalPlanBuildTime, - queryMetrics2.queryPreparationTimes.logicalPlanBuildTime + queryMetrics2.queryPreparationTimes.logicalPlanBuildTime, ); assert.deepEqual( queryMetrics1.queryPreparationTimes.physicalPlanBuildTime, - queryMetrics2.queryPreparationTimes.physicalPlanBuildTime + queryMetrics2.queryPreparationTimes.physicalPlanBuildTime, ); assert.deepEqual( queryMetrics1.queryPreparationTimes.queryCompilationTime, - queryMetrics2.queryPreparationTimes.queryCompilationTime + queryMetrics2.queryPreparationTimes.queryCompilationTime, ); assert.deepEqual( queryMetrics1.queryPreparationTimes.queryOptimizationTime, - queryMetrics2.queryPreparationTimes.queryOptimizationTime + queryMetrics2.queryPreparationTimes.queryOptimizationTime, ); assert.deepEqual( queryMetrics1.runtimeExecutionTimes.queryEngineExecutionTime, - queryMetrics2.runtimeExecutionTimes.queryEngineExecutionTime + queryMetrics2.runtimeExecutionTimes.queryEngineExecutionTime, ); assert.deepEqual( queryMetrics1.runtimeExecutionTimes.systemFunctionExecutionTime, - queryMetrics2.runtimeExecutionTimes.systemFunctionExecutionTime + queryMetrics2.runtimeExecutionTimes.systemFunctionExecutionTime, ); assert.deepEqual( queryMetrics1.runtimeExecutionTimes.userDefinedFunctionExecutionTime, - queryMetrics2.runtimeExecutionTimes.userDefinedFunctionExecutionTime + queryMetrics2.runtimeExecutionTimes.userDefinedFunctionExecutionTime, ); assert.deepEqual( queryMetrics1.clientSideMetrics.requestCharge, - queryMetrics2.clientSideMetrics.requestCharge + queryMetrics2.clientSideMetrics.requestCharge, ); }; @@ -130,7 +130,7 @@ describe("QueryMetrics", function () { queryMetrics.vmExecutionTime, queryMetrics.runtimeExecutionTimes, queryMetrics.documentWriteTime, - queryMetrics.clientSideMetrics + queryMetrics.clientSideMetrics, ); assertQueryMetricsEquality(queryMetrics, queryMetrics2); @@ -145,40 +145,40 @@ describe("QueryMetrics", function () { const doubleOutputDocumentSize = outputDocumentSize * 2; const doubleIndexHitCount = indexUtilizationRatio * retrievedDocumentCount * 2; const doubleTotalQueryExecutionTime = TimeSpan.fromMilliseconds( - totalQueryExecutionTime.totalMilliseconds() * 2 + totalQueryExecutionTime.totalMilliseconds() * 2, ); const doubleQueryCompilationTime = TimeSpan.fromMilliseconds( - queryCompilationTime.totalMilliseconds() * 2 + queryCompilationTime.totalMilliseconds() * 2, ); const doubleLogicalPlanBuildTime = TimeSpan.fromMilliseconds( - logicalPlanBuildTime.totalMilliseconds() * 2 + logicalPlanBuildTime.totalMilliseconds() * 2, ); const doublePhysicalPlanBuildTime = TimeSpan.fromMilliseconds( - physicalPlanBuildTime.totalMilliseconds() * 2 + physicalPlanBuildTime.totalMilliseconds() * 2, ); const doubleIndexLookupTime = TimeSpan.fromMilliseconds( - indexLookupTime.totalMilliseconds() * 2 + indexLookupTime.totalMilliseconds() * 2, ); const doubleDocumentLoadTime = TimeSpan.fromMilliseconds( - documentLoadTime.totalMilliseconds() * 2 + documentLoadTime.totalMilliseconds() * 2, ); const doubleVMExecutionTime = TimeSpan.fromMilliseconds( - vmExecutionTime.totalMilliseconds() * 2 + vmExecutionTime.totalMilliseconds() * 2, ); const doubleQueryOptimizationTime = TimeSpan.fromMilliseconds( - queryOptimizationTime.totalMilliseconds() * 2 + queryOptimizationTime.totalMilliseconds() * 2, ); const doubleQueryEngineExecutionTime = TimeSpan.fromMilliseconds( - queryEngineExecutionTime.totalMilliseconds() * 2 + queryEngineExecutionTime.totalMilliseconds() * 2, ); const doubleSystemFunctionExecutionTime = TimeSpan.fromMilliseconds( - systemFunctionExecutionTime.totalMilliseconds() * 2 + systemFunctionExecutionTime.totalMilliseconds() * 2, ); const doubleUserDefinedFunctionExecutionTime = TimeSpan.fromMilliseconds( - userDefinedFunctionExecutionTime.totalMilliseconds() * 2 + userDefinedFunctionExecutionTime.totalMilliseconds() * 2, ); const doubleDocumentWriteTime = TimeSpan.fromMilliseconds( - documentWriteTime.totalMilliseconds() * 2 + documentWriteTime.totalMilliseconds() * 2, ); const doubleRequestCharge = requestCharge * 2; @@ -193,7 +193,7 @@ describe("QueryMetrics", function () { doubleQueryCompilationTime, doubleLogicalPlanBuildTime, doublePhysicalPlanBuildTime, - doubleQueryOptimizationTime + doubleQueryOptimizationTime, ), doubleIndexLookupTime, doubleDocumentLoadTime, @@ -201,10 +201,10 @@ describe("QueryMetrics", function () { new RuntimeExecutionTimes( doubleQueryEngineExecutionTime, doubleSystemFunctionExecutionTime, - doubleUserDefinedFunctionExecutionTime + doubleUserDefinedFunctionExecutionTime, ), doubleDocumentWriteTime, - new ClientSideMetrics(doubleRequestCharge) + new ClientSideMetrics(doubleRequestCharge), ); assertQueryMetricsEquality(doubleQueryMetrics, expectedQueryMetrics); @@ -217,7 +217,7 @@ describe("QueryMetrics", function () { it("Can Be Create From Delimited String", function () { const queryMetricsFromDelimitedString = QueryMetrics.createFromDelimitedString( delimitedString, - new ClientSideMetrics(requestCharge) + new ClientSideMetrics(requestCharge), ); assertQueryMetricsEquality(queryMetricsFromDelimitedString, queryMetrics); @@ -227,7 +227,7 @@ describe("QueryMetrics", function () { const delimitedStringFromMetrics = queryMetrics.toDelimitedString(); const queryMetricsFromDelimitedString = QueryMetrics.createFromDelimitedString( delimitedStringFromMetrics, - new ClientSideMetrics(requestCharge) + new ClientSideMetrics(requestCharge), ); assertQueryMetricsEquality(queryMetrics, queryMetricsFromDelimitedString); diff --git a/sdk/cosmosdb/cosmos/test/public/integration/split.spec.ts b/sdk/cosmosdb/cosmos/test/public/integration/split.spec.ts index 80175be90427..146caabf40f0 100644 --- a/sdk/cosmosdb/cosmos/test/public/integration/split.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/integration/split.spec.ts @@ -40,7 +40,7 @@ describe("Partition Splits", () => { paths: ["/id"], }, }, - { offerThroughput: 25100 } + { offerThroughput: 25100 }, ); await bulkInsertItems(container, documentDefinitions); }); diff --git a/sdk/devcenter/developer-devcenter-rest/package.json b/sdk/devcenter/developer-devcenter-rest/package.json index b29a0ba78792..9361c60c61b8 100644 --- a/sdk/devcenter/developer-devcenter-rest/package.json +++ b/sdk/devcenter/developer-devcenter-rest/package.json @@ -47,11 +47,11 @@ "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "generate:client": "echo skipped", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -86,7 +86,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^2.1.2", - "prettier": "^2.5.1", "rimraf": "^5.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/devcenter/developer-devcenter-rest/src/azureDeveloperDevCenter.ts b/sdk/devcenter/developer-devcenter-rest/src/azureDeveloperDevCenter.ts index 3fa168607fa7..129534b9e6c2 100644 --- a/sdk/devcenter/developer-devcenter-rest/src/azureDeveloperDevCenter.ts +++ b/sdk/devcenter/developer-devcenter-rest/src/azureDeveloperDevCenter.ts @@ -15,7 +15,7 @@ import { AzureDeveloperDevCenterClient } from "./clientDefinitions"; export default function createClient( endpoint: string, credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): AzureDeveloperDevCenterClient { const baseUrl = options.baseUrl ?? `${endpoint}`; options.apiVersion = options.apiVersion ?? "2023-04-01"; diff --git a/sdk/devcenter/developer-devcenter-rest/src/clientDefinitions.ts b/sdk/devcenter/developer-devcenter-rest/src/clientDefinitions.ts index 9ff6a0418f0f..027c0f7d8827 100644 --- a/sdk/devcenter/developer-devcenter-rest/src/clientDefinitions.ts +++ b/sdk/devcenter/developer-devcenter-rest/src/clientDefinitions.ts @@ -112,21 +112,21 @@ import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface ListProjects { /** Lists all projects. */ get( - options?: ListProjectsParameters + options?: ListProjectsParameters, ): StreamableMethod; } export interface GetProject { /** Gets a project. */ get( - options?: GetProjectParameters + options?: GetProjectParameters, ): StreamableMethod; } export interface GetProjectOperationStatus { /** Get the status of an operation. */ get( - options?: GetProjectOperationStatusParameters + options?: GetProjectOperationStatusParameters, ): StreamableMethod< GetProjectOperationStatus200Response | GetProjectOperationStatusDefaultResponse >; @@ -135,7 +135,7 @@ export interface GetProjectOperationStatus { export interface ListPools { /** Lists available pools */ get( - options?: ListPoolsParameters + options?: ListPoolsParameters, ): StreamableMethod; } @@ -147,38 +147,38 @@ export interface GetPool { export interface ListSchedules { /** Lists available schedules for a pool. */ get( - options?: ListSchedulesParameters + options?: ListSchedulesParameters, ): StreamableMethod; } export interface GetSchedule { /** Gets a schedule. */ get( - options?: GetScheduleParameters + options?: GetScheduleParameters, ): StreamableMethod; } export interface ListDevBoxes { /** Lists Dev Boxes in the project for a particular user. */ get( - options?: ListDevBoxesParameters + options?: ListDevBoxesParameters, ): StreamableMethod; } export interface GetDevBox { /** Gets a Dev Box */ get( - options?: GetDevBoxParameters + options?: GetDevBoxParameters, ): StreamableMethod; /** Creates or replaces a Dev Box. */ put( - options: CreateDevBoxParameters + options: CreateDevBoxParameters, ): StreamableMethod< CreateDevBox200Response | CreateDevBox201Response | CreateDevBoxDefaultResponse >; /** Deletes a Dev Box. */ delete( - options?: DeleteDevBoxParameters + options?: DeleteDevBoxParameters, ): StreamableMethod< DeleteDevBox202Response | DeleteDevBox204Response | DeleteDevBoxDefaultResponse >; @@ -187,108 +187,108 @@ export interface GetDevBox { export interface StartDevBox { /** Starts a Dev Box */ post( - options?: StartDevBoxParameters + options?: StartDevBoxParameters, ): StreamableMethod; } export interface StopDevBox { /** Stops a Dev Box */ post( - options?: StopDevBoxParameters + options?: StopDevBoxParameters, ): StreamableMethod; } export interface RestartDevBox { /** Restarts a Dev Box */ post( - options?: RestartDevBoxParameters + options?: RestartDevBoxParameters, ): StreamableMethod; } export interface GetRemoteConnection { /** Gets RDP Connection info */ get( - options?: GetRemoteConnectionParameters + options?: GetRemoteConnectionParameters, ): StreamableMethod; } export interface ListDevBoxActions { /** Lists actions on a Dev Box. */ get( - options?: ListDevBoxActionsParameters + options?: ListDevBoxActionsParameters, ): StreamableMethod; } export interface GetDevBoxAction { /** Gets an action. */ get( - options?: GetDevBoxActionParameters + options?: GetDevBoxActionParameters, ): StreamableMethod; } export interface SkipAction { /** Skips an occurrence of an action. */ post( - options?: SkipActionParameters + options?: SkipActionParameters, ): StreamableMethod; } export interface DelayAction { /** Delays the occurrence of an action. */ post( - options: DelayActionParameters + options: DelayActionParameters, ): StreamableMethod; } export interface DelayAllActions { /** Delays all actions. */ post( - options: DelayAllActionsParameters + options: DelayAllActionsParameters, ): StreamableMethod; } export interface ListAllDevBoxes { /** Lists Dev Boxes that the caller has access to in the DevCenter. */ get( - options?: ListAllDevBoxesParameters + options?: ListAllDevBoxesParameters, ): StreamableMethod; } export interface ListAllDevBoxesByUser { /** Lists Dev Boxes in the Dev Center for a particular user. */ get( - options?: ListAllDevBoxesByUserParameters + options?: ListAllDevBoxesByUserParameters, ): StreamableMethod; } export interface ListAllEnvironments { /** Lists the environments for a project. */ get( - options?: ListAllEnvironmentsParameters + options?: ListAllEnvironmentsParameters, ): StreamableMethod; } export interface ListEnvironments { /** Lists the environments for a project and user. */ get( - options?: ListEnvironmentsParameters + options?: ListEnvironmentsParameters, ): StreamableMethod; } export interface GetEnvironment { /** Gets an environment */ get( - options?: GetEnvironmentParameters + options?: GetEnvironmentParameters, ): StreamableMethod; /** Creates or updates an environment. */ put( - options: CreateOrUpdateEnvironmentParameters + options: CreateOrUpdateEnvironmentParameters, ): StreamableMethod< CreateOrUpdateEnvironment201Response | CreateOrUpdateEnvironmentDefaultResponse >; /** Deletes an environment and all its associated resources */ delete( - options?: DeleteEnvironmentParameters + options?: DeleteEnvironmentParameters, ): StreamableMethod< DeleteEnvironment202Response | DeleteEnvironment204Response | DeleteEnvironmentDefaultResponse >; @@ -297,21 +297,21 @@ export interface GetEnvironment { export interface ListCatalogs { /** Lists all of the catalogs available for a project. */ get( - options?: ListCatalogsParameters + options?: ListCatalogsParameters, ): StreamableMethod; } export interface GetCatalog { /** Gets the specified catalog within the project */ get( - options?: GetCatalogParameters + options?: GetCatalogParameters, ): StreamableMethod; } export interface ListEnvironmentDefinitions { /** Lists all environment definitions available for a project. */ get( - options?: ListEnvironmentDefinitionsParameters + options?: ListEnvironmentDefinitionsParameters, ): StreamableMethod< ListEnvironmentDefinitions200Response | ListEnvironmentDefinitionsDefaultResponse >; @@ -320,7 +320,7 @@ export interface ListEnvironmentDefinitions { export interface ListEnvironmentDefinitionsByCatalog { /** Lists all environment definitions available within a catalog. */ get( - options?: ListEnvironmentDefinitionsByCatalogParameters + options?: ListEnvironmentDefinitionsByCatalogParameters, ): StreamableMethod< | ListEnvironmentDefinitionsByCatalog200Response | ListEnvironmentDefinitionsByCatalogDefaultResponse @@ -330,7 +330,7 @@ export interface ListEnvironmentDefinitionsByCatalog { export interface GetEnvironmentDefinition { /** Get an environment definition from a catalog. */ get( - options?: GetEnvironmentDefinitionParameters + options?: GetEnvironmentDefinitionParameters, ): StreamableMethod< GetEnvironmentDefinition200Response | GetEnvironmentDefinitionDefaultResponse >; @@ -339,7 +339,7 @@ export interface GetEnvironmentDefinition { export interface ListEnvironmentTypes { /** Lists all environment types configured for a project. */ get( - options?: ListEnvironmentTypesParameters + options?: ListEnvironmentTypesParameters, ): StreamableMethod; } @@ -352,7 +352,7 @@ export interface Routes { ( path: "/projects/{projectName}/operationstatuses/{operationId}", projectName: string, - operationId: string + operationId: string, ): GetProjectOperationStatus; /** Resource for '/projects/\{projectName\}/pools' has methods for the following verbs: get */ (path: "/projects/{projectName}/pools", projectName: string): ListPools; @@ -360,68 +360,68 @@ export interface Routes { ( path: "/projects/{projectName}/pools/{poolName}", projectName: string, - poolName: string + poolName: string, ): GetPool; /** Resource for '/projects/\{projectName\}/pools/\{poolName\}/schedules' has methods for the following verbs: get */ ( path: "/projects/{projectName}/pools/{poolName}/schedules", projectName: string, - poolName: string + poolName: string, ): ListSchedules; /** Resource for '/projects/\{projectName\}/pools/\{poolName\}/schedules/\{scheduleName\}' has methods for the following verbs: get */ ( path: "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}", projectName: string, poolName: string, - scheduleName: string + scheduleName: string, ): GetSchedule; /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes' has methods for the following verbs: get */ ( path: "/projects/{projectName}/users/{userId}/devboxes", projectName: string, - userId: string + userId: string, ): ListDevBoxes; /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}' has methods for the following verbs: get, put, delete */ ( path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}", projectName: string, userId: string, - devBoxName: string + devBoxName: string, ): GetDevBox; /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}:start' has methods for the following verbs: post */ ( path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start", projectName: string, userId: string, - devBoxName: string + devBoxName: string, ): StartDevBox; /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}:stop' has methods for the following verbs: post */ ( path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop", projectName: string, userId: string, - devBoxName: string + devBoxName: string, ): StopDevBox; /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}:restart' has methods for the following verbs: post */ ( path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart", projectName: string, userId: string, - devBoxName: string + devBoxName: string, ): RestartDevBox; /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}/remoteConnection' has methods for the following verbs: get */ ( path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection", projectName: string, userId: string, - devBoxName: string + devBoxName: string, ): GetRemoteConnection; /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}/actions' has methods for the following verbs: get */ ( path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions", projectName: string, userId: string, - devBoxName: string + devBoxName: string, ): ListDevBoxActions; /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}/actions/\{actionName\}' has methods for the following verbs: get */ ( @@ -429,7 +429,7 @@ export interface Routes { projectName: string, userId: string, devBoxName: string, - actionName: string + actionName: string, ): GetDevBoxAction; /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}/actions/\{actionName\}:skip' has methods for the following verbs: post */ ( @@ -437,7 +437,7 @@ export interface Routes { projectName: string, userId: string, devBoxName: string, - actionName: string + actionName: string, ): SkipAction; /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}/actions/\{actionName\}:delay' has methods for the following verbs: post */ ( @@ -445,14 +445,14 @@ export interface Routes { projectName: string, userId: string, devBoxName: string, - actionName: string + actionName: string, ): DelayAction; /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}/actions:delay' has methods for the following verbs: post */ ( path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay", projectName: string, userId: string, - devBoxName: string + devBoxName: string, ): DelayAllActions; /** Resource for '/devboxes' has methods for the following verbs: get */ (path: "/devboxes"): ListAllDevBoxes; @@ -464,14 +464,14 @@ export interface Routes { ( path: "/projects/{projectName}/users/{userId}/environments", projectName: string, - userId: string + userId: string, ): ListEnvironments; /** Resource for '/projects/\{projectName\}/users/\{userId\}/environments/\{environmentName\}' has methods for the following verbs: get, put, delete */ ( path: "/projects/{projectName}/users/{userId}/environments/{environmentName}", projectName: string, userId: string, - environmentName: string + environmentName: string, ): GetEnvironment; /** Resource for '/projects/\{projectName\}/catalogs' has methods for the following verbs: get */ (path: "/projects/{projectName}/catalogs", projectName: string): ListCatalogs; @@ -479,25 +479,25 @@ export interface Routes { ( path: "/projects/{projectName}/catalogs/{catalogName}", projectName: string, - catalogName: string + catalogName: string, ): GetCatalog; /** Resource for '/projects/\{projectName\}/environmentDefinitions' has methods for the following verbs: get */ ( path: "/projects/{projectName}/environmentDefinitions", - projectName: string + projectName: string, ): ListEnvironmentDefinitions; /** Resource for '/projects/\{projectName\}/catalogs/\{catalogName\}/environmentDefinitions' has methods for the following verbs: get */ ( path: "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions", projectName: string, - catalogName: string + catalogName: string, ): ListEnvironmentDefinitionsByCatalog; /** Resource for '/projects/\{projectName\}/catalogs/\{catalogName\}/environmentDefinitions/\{definitionName\}' has methods for the following verbs: get */ ( path: "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}", projectName: string, catalogName: string, - definitionName: string + definitionName: string, ): GetEnvironmentDefinition; /** Resource for '/projects/\{projectName\}/environmentTypes' has methods for the following verbs: get */ (path: "/projects/{projectName}/environmentTypes", projectName: string): ListEnvironmentTypes; diff --git a/sdk/devcenter/developer-devcenter-rest/src/isUnexpected.ts b/sdk/devcenter/developer-devcenter-rest/src/isUnexpected.ts index f3a375669fcc..cf6744a63cbe 100644 --- a/sdk/devcenter/developer-devcenter-rest/src/isUnexpected.ts +++ b/sdk/devcenter/developer-devcenter-rest/src/isUnexpected.ts @@ -126,120 +126,120 @@ const responseMap: Record = { }; export function isUnexpected( - response: ListProjects200Response | ListProjectsDefaultResponse + response: ListProjects200Response | ListProjectsDefaultResponse, ): response is ListProjectsDefaultResponse; export function isUnexpected( - response: GetProject200Response | GetProjectDefaultResponse + response: GetProject200Response | GetProjectDefaultResponse, ): response is GetProjectDefaultResponse; export function isUnexpected( - response: GetProjectOperationStatus200Response | GetProjectOperationStatusDefaultResponse + response: GetProjectOperationStatus200Response | GetProjectOperationStatusDefaultResponse, ): response is GetProjectOperationStatusDefaultResponse; export function isUnexpected( - response: ListPools200Response | ListPoolsDefaultResponse + response: ListPools200Response | ListPoolsDefaultResponse, ): response is ListPoolsDefaultResponse; export function isUnexpected( - response: GetPool200Response | GetPoolDefaultResponse + response: GetPool200Response | GetPoolDefaultResponse, ): response is GetPoolDefaultResponse; export function isUnexpected( - response: ListSchedules200Response | ListSchedulesDefaultResponse + response: ListSchedules200Response | ListSchedulesDefaultResponse, ): response is ListSchedulesDefaultResponse; export function isUnexpected( - response: GetSchedule200Response | GetScheduleDefaultResponse + response: GetSchedule200Response | GetScheduleDefaultResponse, ): response is GetScheduleDefaultResponse; export function isUnexpected( - response: ListDevBoxes200Response | ListDevBoxesDefaultResponse + response: ListDevBoxes200Response | ListDevBoxesDefaultResponse, ): response is ListDevBoxesDefaultResponse; export function isUnexpected( - response: GetDevBox200Response | GetDevBoxDefaultResponse + response: GetDevBox200Response | GetDevBoxDefaultResponse, ): response is GetDevBoxDefaultResponse; export function isUnexpected( response: | CreateDevBox200Response | CreateDevBox201Response | CreateDevBoxLogicalResponse - | CreateDevBoxDefaultResponse + | CreateDevBoxDefaultResponse, ): response is CreateDevBoxDefaultResponse; export function isUnexpected( response: | DeleteDevBox202Response | DeleteDevBox204Response | DeleteDevBoxLogicalResponse - | DeleteDevBoxDefaultResponse + | DeleteDevBoxDefaultResponse, ): response is DeleteDevBoxDefaultResponse; export function isUnexpected( - response: StartDevBox202Response | StartDevBoxLogicalResponse | StartDevBoxDefaultResponse + response: StartDevBox202Response | StartDevBoxLogicalResponse | StartDevBoxDefaultResponse, ): response is StartDevBoxDefaultResponse; export function isUnexpected( - response: StopDevBox202Response | StopDevBoxLogicalResponse | StopDevBoxDefaultResponse + response: StopDevBox202Response | StopDevBoxLogicalResponse | StopDevBoxDefaultResponse, ): response is StopDevBoxDefaultResponse; export function isUnexpected( - response: RestartDevBox202Response | RestartDevBoxLogicalResponse | RestartDevBoxDefaultResponse + response: RestartDevBox202Response | RestartDevBoxLogicalResponse | RestartDevBoxDefaultResponse, ): response is RestartDevBoxDefaultResponse; export function isUnexpected( - response: GetRemoteConnection200Response | GetRemoteConnectionDefaultResponse + response: GetRemoteConnection200Response | GetRemoteConnectionDefaultResponse, ): response is GetRemoteConnectionDefaultResponse; export function isUnexpected( - response: ListDevBoxActions200Response | ListDevBoxActionsDefaultResponse + response: ListDevBoxActions200Response | ListDevBoxActionsDefaultResponse, ): response is ListDevBoxActionsDefaultResponse; export function isUnexpected( - response: GetDevBoxAction200Response | GetDevBoxActionDefaultResponse + response: GetDevBoxAction200Response | GetDevBoxActionDefaultResponse, ): response is GetDevBoxActionDefaultResponse; export function isUnexpected( - response: SkipAction204Response | SkipActionDefaultResponse + response: SkipAction204Response | SkipActionDefaultResponse, ): response is SkipActionDefaultResponse; export function isUnexpected( - response: DelayAction200Response | DelayActionDefaultResponse + response: DelayAction200Response | DelayActionDefaultResponse, ): response is DelayActionDefaultResponse; export function isUnexpected( - response: DelayAllActions200Response | DelayAllActionsDefaultResponse + response: DelayAllActions200Response | DelayAllActionsDefaultResponse, ): response is DelayAllActionsDefaultResponse; export function isUnexpected( - response: ListAllDevBoxes200Response | ListAllDevBoxesDefaultResponse + response: ListAllDevBoxes200Response | ListAllDevBoxesDefaultResponse, ): response is ListAllDevBoxesDefaultResponse; export function isUnexpected( - response: ListAllDevBoxesByUser200Response | ListAllDevBoxesByUserDefaultResponse + response: ListAllDevBoxesByUser200Response | ListAllDevBoxesByUserDefaultResponse, ): response is ListAllDevBoxesByUserDefaultResponse; export function isUnexpected( - response: ListAllEnvironments200Response | ListAllEnvironmentsDefaultResponse + response: ListAllEnvironments200Response | ListAllEnvironmentsDefaultResponse, ): response is ListAllEnvironmentsDefaultResponse; export function isUnexpected( - response: ListEnvironments200Response | ListEnvironmentsDefaultResponse + response: ListEnvironments200Response | ListEnvironmentsDefaultResponse, ): response is ListEnvironmentsDefaultResponse; export function isUnexpected( - response: GetEnvironment200Response | GetEnvironmentDefaultResponse + response: GetEnvironment200Response | GetEnvironmentDefaultResponse, ): response is GetEnvironmentDefaultResponse; export function isUnexpected( response: | CreateOrUpdateEnvironment201Response | CreateOrUpdateEnvironmentLogicalResponse - | CreateOrUpdateEnvironmentDefaultResponse + | CreateOrUpdateEnvironmentDefaultResponse, ): response is CreateOrUpdateEnvironmentDefaultResponse; export function isUnexpected( response: | DeleteEnvironment202Response | DeleteEnvironment204Response | DeleteEnvironmentLogicalResponse - | DeleteEnvironmentDefaultResponse + | DeleteEnvironmentDefaultResponse, ): response is DeleteEnvironmentDefaultResponse; export function isUnexpected( - response: ListCatalogs200Response | ListCatalogsDefaultResponse + response: ListCatalogs200Response | ListCatalogsDefaultResponse, ): response is ListCatalogsDefaultResponse; export function isUnexpected( - response: GetCatalog200Response | GetCatalogDefaultResponse + response: GetCatalog200Response | GetCatalogDefaultResponse, ): response is GetCatalogDefaultResponse; export function isUnexpected( - response: ListEnvironmentDefinitions200Response | ListEnvironmentDefinitionsDefaultResponse + response: ListEnvironmentDefinitions200Response | ListEnvironmentDefinitionsDefaultResponse, ): response is ListEnvironmentDefinitionsDefaultResponse; export function isUnexpected( response: | ListEnvironmentDefinitionsByCatalog200Response - | ListEnvironmentDefinitionsByCatalogDefaultResponse + | ListEnvironmentDefinitionsByCatalogDefaultResponse, ): response is ListEnvironmentDefinitionsByCatalogDefaultResponse; export function isUnexpected( - response: GetEnvironmentDefinition200Response | GetEnvironmentDefinitionDefaultResponse + response: GetEnvironmentDefinition200Response | GetEnvironmentDefinitionDefaultResponse, ): response is GetEnvironmentDefinitionDefaultResponse; export function isUnexpected( - response: ListEnvironmentTypes200Response | ListEnvironmentTypesDefaultResponse + response: ListEnvironmentTypes200Response | ListEnvironmentTypesDefaultResponse, ): response is ListEnvironmentTypesDefaultResponse; export function isUnexpected( response: @@ -318,7 +318,7 @@ export function isUnexpected( | GetEnvironmentDefinition200Response | GetEnvironmentDefinitionDefaultResponse | ListEnvironmentTypes200Response - | ListEnvironmentTypesDefaultResponse + | ListEnvironmentTypesDefaultResponse, ): response is | ListProjectsDefaultResponse | GetProjectDefaultResponse @@ -394,7 +394,7 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // {guid} ==> $ // {guid}:export ==> :export$ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "" + pathParts[j] || "", ); if (!isMatched) { diff --git a/sdk/devcenter/developer-devcenter-rest/src/paginateHelper.ts b/sdk/devcenter/developer-devcenter-rest/src/paginateHelper.ts index 477bace4a37f..f0d91c952cda 100644 --- a/sdk/devcenter/developer-devcenter-rest/src/paginateHelper.ts +++ b/sdk/devcenter/developer-devcenter-rest/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/devcenter/developer-devcenter-rest/src/pollingHelper.ts b/sdk/devcenter/developer-devcenter-rest/src/pollingHelper.ts index 5110ea0b8e9a..f14278316197 100644 --- a/sdk/devcenter/developer-devcenter-rest/src/pollingHelper.ts +++ b/sdk/devcenter/developer-devcenter-rest/src/pollingHelper.ts @@ -44,63 +44,63 @@ import { * @returns - A poller object to poll for operation state updates and eventually get the final response. */ export async function getLongRunningPoller< - TResult extends CreateDevBoxLogicalResponse | CreateDevBoxDefaultResponse + TResult extends CreateDevBoxLogicalResponse | CreateDevBoxDefaultResponse, >( client: Client, initialResponse: CreateDevBox200Response | CreateDevBox201Response | CreateDevBoxDefaultResponse, - options?: CreateHttpPollerOptions> + options?: CreateHttpPollerOptions>, ): Promise, TResult>>; export async function getLongRunningPoller< - TResult extends DeleteDevBoxLogicalResponse | DeleteDevBoxDefaultResponse + TResult extends DeleteDevBoxLogicalResponse | DeleteDevBoxDefaultResponse, >( client: Client, initialResponse: DeleteDevBox202Response | DeleteDevBox204Response | DeleteDevBoxDefaultResponse, - options?: CreateHttpPollerOptions> + options?: CreateHttpPollerOptions>, ): Promise, TResult>>; export async function getLongRunningPoller< - TResult extends StartDevBoxLogicalResponse | StartDevBoxDefaultResponse + TResult extends StartDevBoxLogicalResponse | StartDevBoxDefaultResponse, >( client: Client, initialResponse: StartDevBox202Response | StartDevBoxDefaultResponse, - options?: CreateHttpPollerOptions> + options?: CreateHttpPollerOptions>, ): Promise, TResult>>; export async function getLongRunningPoller< - TResult extends StopDevBoxLogicalResponse | StopDevBoxDefaultResponse + TResult extends StopDevBoxLogicalResponse | StopDevBoxDefaultResponse, >( client: Client, initialResponse: StopDevBox202Response | StopDevBoxDefaultResponse, - options?: CreateHttpPollerOptions> + options?: CreateHttpPollerOptions>, ): Promise, TResult>>; export async function getLongRunningPoller< - TResult extends RestartDevBoxLogicalResponse | RestartDevBoxDefaultResponse + TResult extends RestartDevBoxLogicalResponse | RestartDevBoxDefaultResponse, >( client: Client, initialResponse: RestartDevBox202Response | RestartDevBoxDefaultResponse, - options?: CreateHttpPollerOptions> + options?: CreateHttpPollerOptions>, ): Promise, TResult>>; export async function getLongRunningPoller< TResult extends | CreateOrUpdateEnvironmentLogicalResponse - | CreateOrUpdateEnvironmentDefaultResponse + | CreateOrUpdateEnvironmentDefaultResponse, >( client: Client, initialResponse: CreateOrUpdateEnvironment201Response | CreateOrUpdateEnvironmentDefaultResponse, - options?: CreateHttpPollerOptions> + options?: CreateHttpPollerOptions>, ): Promise, TResult>>; export async function getLongRunningPoller< - TResult extends DeleteEnvironmentLogicalResponse | DeleteEnvironmentDefaultResponse + TResult extends DeleteEnvironmentLogicalResponse | DeleteEnvironmentDefaultResponse, >( client: Client, initialResponse: | DeleteEnvironment202Response | DeleteEnvironment204Response | DeleteEnvironmentDefaultResponse, - options?: CreateHttpPollerOptions> + options?: CreateHttpPollerOptions>, ): Promise, TResult>>; export async function getLongRunningPoller( client: Client, initialResponse: TResult, - options: CreateHttpPollerOptions> = {} + options: CreateHttpPollerOptions> = {}, ): Promise, TResult>> { const poller: LongRunningOperation = { requestMethod: initialResponse.request.method, diff --git a/sdk/devcenter/developer-devcenter-rest/test/public/devBoxesTest.spec.ts b/sdk/devcenter/developer-devcenter-rest/test/public/devBoxesTest.spec.ts index 57cdcb4747cf..d43ab45a1b04 100644 --- a/sdk/devcenter/developer-devcenter-rest/test/public/devBoxesTest.spec.ts +++ b/sdk/devcenter/developer-devcenter-rest/test/public/devBoxesTest.spec.ts @@ -92,7 +92,7 @@ describe("DevCenter Dev Boxes Operations Test", () => { "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}", projectName, poolName, - "default" + "default", ) .get(); @@ -131,7 +131,7 @@ describe("DevCenter Dev Boxes Operations Test", () => { "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}", projectName, userId, - devboxName + devboxName, ) .get(); @@ -148,7 +148,7 @@ describe("DevCenter Dev Boxes Operations Test", () => { "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection", projectName, userId, - devboxName + devboxName, ) .get(); @@ -225,7 +225,7 @@ describe("DevCenter Dev Boxes Operations Test", () => { "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions", projectName, userId, - devboxName + devboxName, ) .get(); @@ -253,7 +253,7 @@ describe("DevCenter Dev Boxes Operations Test", () => { projectName, userId, devboxName, - "schedule-default" + "schedule-default", ) .get(); @@ -271,7 +271,7 @@ describe("DevCenter Dev Boxes Operations Test", () => { projectName, userId, devboxName, - "schedule-default" + "schedule-default", ) .post(); @@ -291,7 +291,7 @@ describe("DevCenter Dev Boxes Operations Test", () => { projectName, userId, devboxName, - "schedule-default" + "schedule-default", ) .post(delayActionParameters); @@ -310,7 +310,7 @@ describe("DevCenter Dev Boxes Operations Test", () => { "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay", projectName, userId, - devboxName + devboxName, ) .post(delayActionsParameters); @@ -335,14 +335,14 @@ describe("DevCenter Dev Boxes Operations Test", () => { "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop", projectName, userId, - devboxName + devboxName, ) .post(); const devBoxStopPoller = await getLongRunningPoller( client, stopDevBoxResponse, - testPollingOptions + testPollingOptions, ); const devBoxStopResult = await devBoxStopPoller.pollUntilDone(); @@ -353,7 +353,7 @@ describe("DevCenter Dev Boxes Operations Test", () => { assert.equal( devBoxStopResult.status, "200", - "Dev box stop long-running operation should return 200 OK." + "Dev box stop long-running operation should return 200 OK.", ); // Start Dev Box @@ -362,14 +362,14 @@ describe("DevCenter Dev Boxes Operations Test", () => { "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start", projectName, userId, - devboxName + devboxName, ) .post(); const devBoxStartPoller = await getLongRunningPoller( client, startDevBoxResponse, - testPollingOptions + testPollingOptions, ); const devBoxStartResult = await devBoxStartPoller.pollUntilDone(); @@ -380,7 +380,7 @@ describe("DevCenter Dev Boxes Operations Test", () => { assert.equal( devBoxStartResult.status, "200", - "Dev box start long-running operation should return 200 OK." + "Dev box start long-running operation should return 200 OK.", ); }); @@ -396,7 +396,7 @@ describe("DevCenter Dev Boxes Operations Test", () => { "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}", projectName, userId, - devboxName + devboxName, ) .put(devBoxCreateParameters); @@ -410,7 +410,7 @@ describe("DevCenter Dev Boxes Operations Test", () => { const devBoxCreatePoller = await getLongRunningPoller( client, devBoxCreateResponse, - testPollingOptions + testPollingOptions, ); const devBoxCreateResult = await devBoxCreatePoller.pollUntilDone(); @@ -421,7 +421,7 @@ describe("DevCenter Dev Boxes Operations Test", () => { assert.equal( devBoxCreateResult.status, "200", - "Dev box creation long-running operation should return 200 OK." + "Dev box creation long-running operation should return 200 OK.", ); assert.equal(devBoxCreateResult.body.name, devboxName); @@ -434,7 +434,7 @@ describe("DevCenter Dev Boxes Operations Test", () => { "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}", projectName, "me", - devboxName + devboxName, ) .delete(); @@ -447,7 +447,7 @@ describe("DevCenter Dev Boxes Operations Test", () => { const devBoxDeletePoller = await getLongRunningPoller( client, devBoxDeleteResponse, - testPollingOptions + testPollingOptions, ); const devBoxDeleteResult = await devBoxDeletePoller.pollUntilDone(); @@ -458,7 +458,7 @@ describe("DevCenter Dev Boxes Operations Test", () => { assert.equal( devBoxDeleteResult.status, "200", - "Dev box delete long-running operation should return 200 OK." + "Dev box delete long-running operation should return 200 OK.", ); console.log(`Cleaned up dev box successfully.`); diff --git a/sdk/devcenter/developer-devcenter-rest/test/public/environmentsTest.spec.ts b/sdk/devcenter/developer-devcenter-rest/test/public/environmentsTest.spec.ts index fe0a818fefd8..b10d60279668 100644 --- a/sdk/devcenter/developer-devcenter-rest/test/public/environmentsTest.spec.ts +++ b/sdk/devcenter/developer-devcenter-rest/test/public/environmentsTest.spec.ts @@ -90,7 +90,7 @@ describe("DevCenter Environments Operations Test", () => { "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}", projectName, catalogName, - envDefinitionName + envDefinitionName, ) .get(); @@ -106,7 +106,7 @@ describe("DevCenter Environments Operations Test", () => { .path( "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions", projectName, - catalogName + catalogName, ) .get(); @@ -183,7 +183,7 @@ describe("DevCenter Environments Operations Test", () => { "/projects/{projectName}/users/{userId}/environments/{environmentName}", projectName, userId, - environmentName + environmentName, ) .get(); @@ -237,40 +237,40 @@ describe("DevCenter Environments Operations Test", () => { "/projects/{projectName}/users/{userId}/environments/{environmentName}", projectName, userId, - environmentName + environmentName, ) .put(environmentsCreateParameters); console.log("Sent create"); if (isUnexpected(environmentCreateResponse)) { throw new Error( - `Creation failed with message ${environmentCreateResponse.body?.error.message}` + `Creation failed with message ${environmentCreateResponse.body?.error.message}`, ); } assert.equal( environmentCreateResponse.status, "201", - "Environment creation should return 201 created." + "Environment creation should return 201 created.", ); const environmentCreatePoller = await getLongRunningPoller( client, environmentCreateResponse, - testPollingOptions + testPollingOptions, ); const environmentCreateResult = await environmentCreatePoller.pollUntilDone(); if (isUnexpected(environmentCreateResult)) { throw new Error( - `Creation failed with message ${environmentCreateResult.body?.error.message}` + `Creation failed with message ${environmentCreateResult.body?.error.message}`, ); } assert.equal( environmentCreateResult.status, "200", - "Create environment polling should return 200 OK." + "Create environment polling should return 200 OK.", ); assert.equal(environmentCreateResult.body.name, environmentName); assert.equal(environmentCreateResult.body.provisioningState, "Succeeded"); @@ -283,7 +283,7 @@ describe("DevCenter Environments Operations Test", () => { "/projects/{projectName}/users/{userId}/environments/{environmentName}", projectName, userId, - environmentName + environmentName, ) .delete(); @@ -294,13 +294,13 @@ describe("DevCenter Environments Operations Test", () => { assert.equal( environmentDeleteResponse.status, "202", - "Environment delete should return 202 accepted." + "Environment delete should return 202 accepted.", ); const environmentDeletePoller = await getLongRunningPoller( client, environmentDeleteResponse, - testPollingOptions + testPollingOptions, ); const environmentDeleteResult = await environmentDeletePoller.pollUntilDone(); @@ -311,7 +311,7 @@ describe("DevCenter Environments Operations Test", () => { assert.equal( environmentDeleteResult.status, "200", - "Environment delete long-running operation should return 200 OK." + "Environment delete long-running operation should return 200 OK.", ); console.log("Cleaned up environment successfully."); diff --git a/sdk/devcenter/developer-devcenter-rest/test/public/utils/recordedClient.ts b/sdk/devcenter/developer-devcenter-rest/test/public/utils/recordedClient.ts index 7f7c5a63ff45..1d896a31f00e 100644 --- a/sdk/devcenter/developer-devcenter-rest/test/public/utils/recordedClient.ts +++ b/sdk/devcenter/developer-devcenter-rest/test/public/utils/recordedClient.ts @@ -45,7 +45,7 @@ export async function createRecorder(context: Context): Promise { export function createRecordedClient( recorder: Recorder, endpoint: string, - options: ClientOptions = {} + options: ClientOptions = {}, ): AzureDeveloperDevCenterClient { // We need to use a user-persona, so the clientSecretCredential that createTestCredential uses in live/record modes is not sufficient const credential = isPlaybackMode() ? createTestCredential() : new DefaultAzureCredential(); diff --git a/sdk/deviceupdate/iot-device-update-rest/package.json b/sdk/deviceupdate/iot-device-update-rest/package.json index 77ce43ddf08c..f4fd356e2c47 100644 --- a/sdk/deviceupdate/iot-device-update-rest/package.json +++ b/sdk/deviceupdate/iot-device-update-rest/package.json @@ -62,11 +62,11 @@ "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && mkdirp ./review && api-extractor run --local", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -120,7 +120,6 @@ "karma": "^6.2.0", "mkdirp": "^1.0.4", "mocha": "^10.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/deviceupdate/iot-device-update-rest/samples-dev/deleteUpdate.ts b/sdk/deviceupdate/iot-device-update-rest/samples-dev/deleteUpdate.ts index 271e5c7bb673..23fdca992526 100644 --- a/sdk/deviceupdate/iot-device-update-rest/samples-dev/deleteUpdate.ts +++ b/sdk/deviceupdate/iot-device-update-rest/samples-dev/deleteUpdate.ts @@ -34,7 +34,7 @@ async function main() { instanceId, updateProvider, updateName, - updateVersion + updateVersion, ) .delete(); diff --git a/sdk/deviceupdate/iot-device-update-rest/samples-dev/deployUpdate.ts b/sdk/deviceupdate/iot-device-update-rest/samples-dev/deployUpdate.ts index 7a4f1e370ddb..9cfdfeba02fb 100644 --- a/sdk/deviceupdate/iot-device-update-rest/samples-dev/deployUpdate.ts +++ b/sdk/deviceupdate/iot-device-update-rest/samples-dev/deployUpdate.ts @@ -37,7 +37,7 @@ async function main() { "/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}", instanceId, groupId, - deploymentId + deploymentId, ) .put({ body: { @@ -68,7 +68,7 @@ async function main() { "/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}/status", instanceId, groupId, - deploymentId + deploymentId, ) .get(); diff --git a/sdk/deviceupdate/iot-device-update-rest/samples-dev/getUpdate.ts b/sdk/deviceupdate/iot-device-update-rest/samples-dev/getUpdate.ts index ee862ca42718..a1f8d026fd4a 100644 --- a/sdk/deviceupdate/iot-device-update-rest/samples-dev/getUpdate.ts +++ b/sdk/deviceupdate/iot-device-update-rest/samples-dev/getUpdate.ts @@ -34,7 +34,7 @@ async function main() { name + "' and version '" + version + - "'..." + "'...", ); const updateResult = await client .path( @@ -42,7 +42,7 @@ async function main() { instanceId, provider, name, - version + version, ) .get(); @@ -69,7 +69,7 @@ async function main() { instanceId, provider, name, - version + version, ) .get(); @@ -89,7 +89,7 @@ async function main() { provider, name, version, - fileId + fileId, ) .get(); diff --git a/sdk/deviceupdate/iot-device-update-rest/samples-dev/listUpdates.ts b/sdk/deviceupdate/iot-device-update-rest/samples-dev/listUpdates.ts index 93050c860e3e..47843491f793 100644 --- a/sdk/deviceupdate/iot-device-update-rest/samples-dev/listUpdates.ts +++ b/sdk/deviceupdate/iot-device-update-rest/samples-dev/listUpdates.ts @@ -62,7 +62,7 @@ async function main() { "/deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions", instanceId, provider, - name + name, ) .get(); diff --git a/sdk/deviceupdate/iot-device-update-rest/src/clientDefinitions.ts b/sdk/deviceupdate/iot-device-update-rest/src/clientDefinitions.ts index c129bbec40e4..570b878157d8 100644 --- a/sdk/deviceupdate/iot-device-update-rest/src/clientDefinitions.ts +++ b/sdk/deviceupdate/iot-device-update-rest/src/clientDefinitions.ts @@ -165,14 +165,14 @@ import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface DeviceUpdateListUpdates { /** Get a list of all updates that have been imported to Device Update for IoT Hub. */ get( - options?: DeviceUpdateListUpdatesParameters + options?: DeviceUpdateListUpdatesParameters, ): StreamableMethod; } export interface DeviceUpdateImportUpdate { /** Import new update version. This is a long-running-operation; use Operation-Location response header value to check for operation status. */ post( - options: DeviceUpdateImportUpdateParameters + options: DeviceUpdateImportUpdateParameters, ): StreamableMethod< | DeviceUpdateImportUpdate200Response | DeviceUpdateImportUpdate202Response @@ -183,7 +183,7 @@ export interface DeviceUpdateImportUpdate { export interface DeviceUpdateGetUpdate { /** Get a specific update version. */ get( - options?: DeviceUpdateGetUpdateParameters + options?: DeviceUpdateGetUpdateParameters, ): StreamableMethod< | DeviceUpdateGetUpdate200Response | DeviceUpdateGetUpdate304Response @@ -191,7 +191,7 @@ export interface DeviceUpdateGetUpdate { >; /** Delete a specific update version. This is a long-running-operation; use Operation-Location response header value to check for operation status. */ delete( - options?: DeviceUpdateDeleteUpdateParameters + options?: DeviceUpdateDeleteUpdateParameters, ): StreamableMethod< DeviceUpdateDeleteUpdate202Response | DeviceUpdateDeleteUpdatedefaultResponse >; @@ -200,7 +200,7 @@ export interface DeviceUpdateGetUpdate { export interface DeviceUpdateListProviders { /** Get a list of all update providers that have been imported to Device Update for IoT Hub. */ get( - options?: DeviceUpdateListProvidersParameters + options?: DeviceUpdateListProvidersParameters, ): StreamableMethod< DeviceUpdateListProviders200Response | DeviceUpdateListProvidersdefaultResponse >; @@ -209,14 +209,14 @@ export interface DeviceUpdateListProviders { export interface DeviceUpdateListNames { /** Get a list of all update names that match the specified provider. */ get( - options?: DeviceUpdateListNamesParameters + options?: DeviceUpdateListNamesParameters, ): StreamableMethod; } export interface DeviceUpdateListVersions { /** Get a list of all update versions that match the specified provider and name. */ get( - options?: DeviceUpdateListVersionsParameters + options?: DeviceUpdateListVersionsParameters, ): StreamableMethod< DeviceUpdateListVersions200Response | DeviceUpdateListVersionsdefaultResponse >; @@ -225,14 +225,14 @@ export interface DeviceUpdateListVersions { export interface DeviceUpdateListFiles { /** Get a list of all update file identifiers for the specified version. */ get( - options?: DeviceUpdateListFilesParameters + options?: DeviceUpdateListFilesParameters, ): StreamableMethod; } export interface DeviceUpdateGetFile { /** Get a specific update file from the version. */ get( - options?: DeviceUpdateGetFileParameters + options?: DeviceUpdateGetFileParameters, ): StreamableMethod< | DeviceUpdateGetFile200Response | DeviceUpdateGetFile304Response @@ -243,7 +243,7 @@ export interface DeviceUpdateGetFile { export interface DeviceUpdateListOperationStatuses { /** Get a list of all import update operations. Completed operations are kept for 7 days before auto-deleted. Delete operations are not returned by this API version. */ get( - options?: DeviceUpdateListOperationStatusesParameters + options?: DeviceUpdateListOperationStatusesParameters, ): StreamableMethod< DeviceUpdateListOperationStatuses200Response | DeviceUpdateListOperationStatusesdefaultResponse >; @@ -252,7 +252,7 @@ export interface DeviceUpdateListOperationStatuses { export interface DeviceUpdateGetOperationStatus { /** Retrieve operation status. */ get( - options?: DeviceUpdateGetOperationStatusParameters + options?: DeviceUpdateGetOperationStatusParameters, ): StreamableMethod< | DeviceUpdateGetOperationStatus200Response | DeviceUpdateGetOperationStatus304Response @@ -263,7 +263,7 @@ export interface DeviceUpdateGetOperationStatus { export interface DeviceManagementListDeviceClasses { /** Gets a list of all device classes (sets of devices compatible with the same updates based on the model Id and compat properties reported in the Device Update PnP interface in IoT Hub) for all devices connected to Device Update for IoT Hub. */ get( - options?: DeviceManagementListDeviceClassesParameters + options?: DeviceManagementListDeviceClassesParameters, ): StreamableMethod< DeviceManagementListDeviceClasses200Response | DeviceManagementListDeviceClassesdefaultResponse >; @@ -272,19 +272,19 @@ export interface DeviceManagementListDeviceClasses { export interface DeviceManagementGetDeviceClass { /** Gets the properties of a device class. */ get( - options?: DeviceManagementGetDeviceClassParameters + options?: DeviceManagementGetDeviceClassParameters, ): StreamableMethod< DeviceManagementGetDeviceClass200Response | DeviceManagementGetDeviceClassdefaultResponse >; /** Update device class details. */ patch( - options: DeviceManagementUpdateDeviceClassParameters + options: DeviceManagementUpdateDeviceClassParameters, ): StreamableMethod< DeviceManagementUpdateDeviceClass200Response | DeviceManagementUpdateDeviceClassdefaultResponse >; /** Deletes a device class. Device classes are created automatically when Device Update-enabled devices are connected to the hub but are not automatically cleaned up since they are referenced by DeviceClassSubgroups. If the user has deleted all DeviceClassSubgroups for a device class they can also delete the device class to remove the records from the system and to stop checking the compatibility of this device class with new updates. If a device is ever reconnected for this device class it will be re-created. */ delete( - options?: DeviceManagementDeleteDeviceClassParameters + options?: DeviceManagementDeleteDeviceClassParameters, ): StreamableMethod< DeviceManagementDeleteDeviceClass204Response | DeviceManagementDeleteDeviceClassdefaultResponse >; @@ -293,7 +293,7 @@ export interface DeviceManagementGetDeviceClass { export interface DeviceManagementListInstallableUpdatesForDeviceClass { /** Gets a list of installable updates for a device class. */ get( - options?: DeviceManagementListInstallableUpdatesForDeviceClassParameters + options?: DeviceManagementListInstallableUpdatesForDeviceClassParameters, ): StreamableMethod< | DeviceManagementListInstallableUpdatesForDeviceClass200Response | DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse @@ -303,7 +303,7 @@ export interface DeviceManagementListInstallableUpdatesForDeviceClass { export interface DeviceManagementListDevices { /** Gets a list of devices connected to Device Update for IoT Hub. */ get( - options?: DeviceManagementListDevicesParameters + options?: DeviceManagementListDevicesParameters, ): StreamableMethod< DeviceManagementListDevices200Response | DeviceManagementListDevicesdefaultResponse >; @@ -312,7 +312,7 @@ export interface DeviceManagementListDevices { export interface DeviceManagementImportDevices { /** Import existing devices from IoT Hub. This is a long-running-operation; use Operation-Location response header value to check for operation status. */ post( - options: DeviceManagementImportDevicesParameters + options: DeviceManagementImportDevicesParameters, ): StreamableMethod< DeviceManagementImportDevices202Response | DeviceManagementImportDevicesdefaultResponse >; @@ -321,7 +321,7 @@ export interface DeviceManagementImportDevices { export interface DeviceManagementGetDevice { /** Gets the device properties and latest deployment status for a device connected to Device Update for IoT Hub. */ get( - options?: DeviceManagementGetDeviceParameters + options?: DeviceManagementGetDeviceParameters, ): StreamableMethod< DeviceManagementGetDevice200Response | DeviceManagementGetDevicedefaultResponse >; @@ -330,7 +330,7 @@ export interface DeviceManagementGetDevice { export interface DeviceManagementGetDeviceModule { /** Gets the device module properties and latest deployment status for a device module connected to Device Update for IoT Hub. */ get( - options?: DeviceManagementGetDeviceModuleParameters + options?: DeviceManagementGetDeviceModuleParameters, ): StreamableMethod< DeviceManagementGetDeviceModule200Response | DeviceManagementGetDeviceModuledefaultResponse >; @@ -339,7 +339,7 @@ export interface DeviceManagementGetDeviceModule { export interface DeviceManagementGetUpdateCompliance { /** Gets the breakdown of how many devices are on their latest update, have new updates available, or are in progress receiving new updates. */ get( - options?: DeviceManagementGetUpdateComplianceParameters + options?: DeviceManagementGetUpdateComplianceParameters, ): StreamableMethod< | DeviceManagementGetUpdateCompliance200Response | DeviceManagementGetUpdateCompliancedefaultResponse @@ -349,7 +349,7 @@ export interface DeviceManagementGetUpdateCompliance { export interface DeviceManagementListGroups { /** Gets a list of all device groups. The $default group will always be returned first. */ get( - options?: DeviceManagementListGroupsParameters + options?: DeviceManagementListGroupsParameters, ): StreamableMethod< DeviceManagementListGroups200Response | DeviceManagementListGroupsdefaultResponse >; @@ -358,13 +358,13 @@ export interface DeviceManagementListGroups { export interface DeviceManagementGetGroup { /** Gets the device group properties. */ get( - options?: DeviceManagementGetGroupParameters + options?: DeviceManagementGetGroupParameters, ): StreamableMethod< DeviceManagementGetGroup200Response | DeviceManagementGetGroupdefaultResponse >; /** Deletes a device group. This group is automatically created when a Device Update-enabled device is connected to the hub and reports its properties. Groups, subgroups, and deployments are not automatically cleaned up but are retained for history purposes. Users can call this method to delete a group if they do not need to retain any of the history of the group and no longer need it. If a device is ever connected again for this group after the group was deleted it will be automatically re-created but there will be no history. */ delete( - options?: DeviceManagementDeleteGroupParameters + options?: DeviceManagementDeleteGroupParameters, ): StreamableMethod< DeviceManagementDeleteGroup204Response | DeviceManagementDeleteGroupdefaultResponse >; @@ -373,7 +373,7 @@ export interface DeviceManagementGetGroup { export interface DeviceManagementGetUpdateComplianceForGroup { /** Get device group update compliance information such as how many devices are on their latest update, how many need new updates, and how many are in progress on receiving a new update. */ get( - options?: DeviceManagementGetUpdateComplianceForGroupParameters + options?: DeviceManagementGetUpdateComplianceForGroupParameters, ): StreamableMethod< | DeviceManagementGetUpdateComplianceForGroup200Response | DeviceManagementGetUpdateComplianceForGroupdefaultResponse @@ -383,7 +383,7 @@ export interface DeviceManagementGetUpdateComplianceForGroup { export interface DeviceManagementListBestUpdatesForGroup { /** Get the best available updates for a device group and a count of how many devices need each update. */ get( - options?: DeviceManagementListBestUpdatesForGroupParameters + options?: DeviceManagementListBestUpdatesForGroupParameters, ): StreamableMethod< | DeviceManagementListBestUpdatesForGroup200Response | DeviceManagementListBestUpdatesForGroupdefaultResponse @@ -393,7 +393,7 @@ export interface DeviceManagementListBestUpdatesForGroup { export interface DeviceManagementListDeploymentsForGroup { /** Gets a list of deployments for a device group. */ get( - options?: DeviceManagementListDeploymentsForGroupParameters + options?: DeviceManagementListDeploymentsForGroupParameters, ): StreamableMethod< | DeviceManagementListDeploymentsForGroup200Response | DeviceManagementListDeploymentsForGroupdefaultResponse @@ -403,20 +403,20 @@ export interface DeviceManagementListDeploymentsForGroup { export interface DeviceManagementGetDeployment { /** Gets the deployment properties. */ get( - options?: DeviceManagementGetDeploymentParameters + options?: DeviceManagementGetDeploymentParameters, ): StreamableMethod< DeviceManagementGetDeployment200Response | DeviceManagementGetDeploymentdefaultResponse >; /** Creates or updates a deployment. */ put( - options: DeviceManagementCreateOrUpdateDeploymentParameters + options: DeviceManagementCreateOrUpdateDeploymentParameters, ): StreamableMethod< | DeviceManagementCreateOrUpdateDeployment200Response | DeviceManagementCreateOrUpdateDeploymentdefaultResponse >; /** Deletes a deployment. */ delete( - options?: DeviceManagementDeleteDeploymentParameters + options?: DeviceManagementDeleteDeploymentParameters, ): StreamableMethod< DeviceManagementDeleteDeployment204Response | DeviceManagementDeleteDeploymentdefaultResponse >; @@ -425,7 +425,7 @@ export interface DeviceManagementGetDeployment { export interface DeviceManagementGetDeploymentStatus { /** Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed. */ get( - options?: DeviceManagementGetDeploymentStatusParameters + options?: DeviceManagementGetDeploymentStatusParameters, ): StreamableMethod< | DeviceManagementGetDeploymentStatus200Response | DeviceManagementGetDeploymentStatusdefaultResponse @@ -435,7 +435,7 @@ export interface DeviceManagementGetDeploymentStatus { export interface DeviceManagementListDeviceClassSubgroupsForGroup { /** Get the device class subgroups for the group. A device class subgroup is the set of devices within the group that share the same device class. All devices within the same device class are compatible with the same updates. */ get( - options?: DeviceManagementListDeviceClassSubgroupsForGroupParameters + options?: DeviceManagementListDeviceClassSubgroupsForGroupParameters, ): StreamableMethod< | DeviceManagementListDeviceClassSubgroupsForGroup200Response | DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse @@ -445,14 +445,14 @@ export interface DeviceManagementListDeviceClassSubgroupsForGroup { export interface DeviceManagementGetDeviceClassSubgroup { /** Gets device class subgroup details. A device class subgroup is the set of devices within the group that share the same device class. All devices within the same device class are compatible with the same updates. */ get( - options?: DeviceManagementGetDeviceClassSubgroupParameters + options?: DeviceManagementGetDeviceClassSubgroupParameters, ): StreamableMethod< | DeviceManagementGetDeviceClassSubgroup200Response | DeviceManagementGetDeviceClassSubgroupdefaultResponse >; /** Deletes a device class subgroup. This subgroup is automatically created when a Device Update-enabled device is connected to the hub and reports its properties. Groups, subgroups, and deployments are not automatically cleaned up but are retained for history purposes. Users can call this method to delete a subgroup if they do not need to retain any of the history of the subgroup and no longer need it. If a device is ever connected again for this subgroup after the subgroup was deleted it will be automatically re-created but there will be no history. */ delete( - options?: DeviceManagementDeleteDeviceClassSubgroupParameters + options?: DeviceManagementDeleteDeviceClassSubgroupParameters, ): StreamableMethod< | DeviceManagementDeleteDeviceClassSubgroup204Response | DeviceManagementDeleteDeviceClassSubgroupdefaultResponse @@ -462,7 +462,7 @@ export interface DeviceManagementGetDeviceClassSubgroup { export interface DeviceManagementGetDeviceClassSubgroupUpdateCompliance { /** Get device class subgroup update compliance information such as how many devices are on their latest update, how many need new updates, and how many are in progress on receiving a new update. */ get( - options?: DeviceManagementGetDeviceClassSubgroupUpdateComplianceParameters + options?: DeviceManagementGetDeviceClassSubgroupUpdateComplianceParameters, ): StreamableMethod< | DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response | DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse @@ -472,7 +472,7 @@ export interface DeviceManagementGetDeviceClassSubgroupUpdateCompliance { export interface DeviceManagementGetBestUpdatesForDeviceClassSubgroup { /** Get the best available update for a device class subgroup and a count of how many devices need this update. */ get( - options?: DeviceManagementGetBestUpdatesForDeviceClassSubgroupParameters + options?: DeviceManagementGetBestUpdatesForDeviceClassSubgroupParameters, ): StreamableMethod< | DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response | DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse @@ -482,7 +482,7 @@ export interface DeviceManagementGetBestUpdatesForDeviceClassSubgroup { export interface DeviceManagementListDeploymentsForDeviceClassSubgroup { /** Gets a list of deployments for a device class subgroup. */ get( - options?: DeviceManagementListDeploymentsForDeviceClassSubgroupParameters + options?: DeviceManagementListDeploymentsForDeviceClassSubgroupParameters, ): StreamableMethod< | DeviceManagementListDeploymentsForDeviceClassSubgroup200Response | DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse @@ -492,14 +492,14 @@ export interface DeviceManagementListDeploymentsForDeviceClassSubgroup { export interface DeviceManagementGetDeploymentForDeviceClassSubgroup { /** Gets the deployment properties. */ get( - options?: DeviceManagementGetDeploymentForDeviceClassSubgroupParameters + options?: DeviceManagementGetDeploymentForDeviceClassSubgroupParameters, ): StreamableMethod< | DeviceManagementGetDeploymentForDeviceClassSubgroup200Response | DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse >; /** Deletes a device class subgroup deployment. */ delete( - options?: DeviceManagementDeleteDeploymentForDeviceClassSubgroupParameters + options?: DeviceManagementDeleteDeploymentForDeviceClassSubgroupParameters, ): StreamableMethod< | DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response | DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse @@ -509,7 +509,7 @@ export interface DeviceManagementGetDeploymentForDeviceClassSubgroup { export interface DeviceManagementStopDeployment { /** Stops a deployment. */ post( - options?: DeviceManagementStopDeploymentParameters + options?: DeviceManagementStopDeploymentParameters, ): StreamableMethod< DeviceManagementStopDeployment200Response | DeviceManagementStopDeploymentdefaultResponse >; @@ -518,7 +518,7 @@ export interface DeviceManagementStopDeployment { export interface DeviceManagementRetryDeployment { /** Retries a deployment with failed devices. */ post( - options?: DeviceManagementRetryDeploymentParameters + options?: DeviceManagementRetryDeploymentParameters, ): StreamableMethod< DeviceManagementRetryDeployment200Response | DeviceManagementRetryDeploymentdefaultResponse >; @@ -527,7 +527,7 @@ export interface DeviceManagementRetryDeployment { export interface DeviceManagementGetDeviceClassSubgroupDeploymentStatus { /** Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed. */ get( - options?: DeviceManagementGetDeviceClassSubgroupDeploymentStatusParameters + options?: DeviceManagementGetDeviceClassSubgroupDeploymentStatusParameters, ): StreamableMethod< | DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response | DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse @@ -537,7 +537,7 @@ export interface DeviceManagementGetDeviceClassSubgroupDeploymentStatus { export interface DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment { /** Gets a list of devices in a deployment along with their state. Useful for getting a list of failed devices. */ get( - options?: DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentParameters + options?: DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentParameters, ): StreamableMethod< | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse @@ -547,7 +547,7 @@ export interface DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymen export interface DeviceManagementGetOperationStatus { /** Retrieve operation status. */ get( - options?: DeviceManagementGetOperationStatusParameters + options?: DeviceManagementGetOperationStatusParameters, ): StreamableMethod< | DeviceManagementGetOperationStatus200Response | DeviceManagementGetOperationStatus304Response @@ -558,7 +558,7 @@ export interface DeviceManagementGetOperationStatus { export interface DeviceManagementListOperationStatuses { /** Get a list of all device import operations. Completed operations are kept for 7 days before auto-deleted. */ get( - options?: DeviceManagementListOperationStatusesParameters + options?: DeviceManagementListOperationStatusesParameters, ): StreamableMethod< | DeviceManagementListOperationStatuses200Response | DeviceManagementListOperationStatusesdefaultResponse @@ -568,14 +568,14 @@ export interface DeviceManagementListOperationStatuses { export interface DeviceManagementStartLogCollection { /** Start the device diagnostics log collection on specified devices. */ put( - options: DeviceManagementStartLogCollectionParameters + options: DeviceManagementStartLogCollectionParameters, ): StreamableMethod< | DeviceManagementStartLogCollection201Response | DeviceManagementStartLogCollectiondefaultResponse >; /** Get the device diagnostics log collection */ get( - options?: DeviceManagementGetLogCollectionParameters + options?: DeviceManagementGetLogCollectionParameters, ): StreamableMethod< DeviceManagementGetLogCollection200Response | DeviceManagementGetLogCollectiondefaultResponse >; @@ -584,7 +584,7 @@ export interface DeviceManagementStartLogCollection { export interface DeviceManagementListLogCollections { /** Get all device diagnostics log collections */ get( - options?: DeviceManagementListLogCollectionsParameters + options?: DeviceManagementListLogCollectionsParameters, ): StreamableMethod< | DeviceManagementListLogCollections200Response | DeviceManagementListLogCollectionsdefaultResponse @@ -594,7 +594,7 @@ export interface DeviceManagementListLogCollections { export interface DeviceManagementGetLogCollectionDetailedStatus { /** Get log collection with detailed status */ get( - options?: DeviceManagementGetLogCollectionDetailedStatusParameters + options?: DeviceManagementGetLogCollectionDetailedStatusParameters, ): StreamableMethod< | DeviceManagementGetLogCollectionDetailedStatus200Response | DeviceManagementGetLogCollectionDetailedStatusdefaultResponse @@ -604,7 +604,7 @@ export interface DeviceManagementGetLogCollectionDetailedStatus { export interface DeviceManagementListHealthOfDevices { /** Get list of device health */ get( - options: DeviceManagementListHealthOfDevicesParameters + options: DeviceManagementListHealthOfDevicesParameters, ): StreamableMethod< | DeviceManagementListHealthOfDevices200Response | DeviceManagementListHealthOfDevicesdefaultResponse @@ -622,25 +622,25 @@ export interface Routes { instanceId: string, provider: string, name: string, - version: string + version: string, ): DeviceUpdateGetUpdate; /** Resource for '/deviceUpdate/\{instanceId\}/updates/providers' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/updates/providers", - instanceId: string + instanceId: string, ): DeviceUpdateListProviders; /** Resource for '/deviceUpdate/\{instanceId\}/updates/providers/\{provider\}/names' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/updates/providers/{provider}/names", instanceId: string, - provider: string + provider: string, ): DeviceUpdateListNames; /** Resource for '/deviceUpdate/\{instanceId\}/updates/providers/\{provider\}/names/\{name\}/versions' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions", instanceId: string, provider: string, - name: string + name: string, ): DeviceUpdateListVersions; /** Resource for '/deviceUpdate/\{instanceId\}/updates/providers/\{provider\}/names/\{name\}/versions/\{version\}/files' has methods for the following verbs: get */ ( @@ -648,7 +648,7 @@ export interface Routes { instanceId: string, provider: string, name: string, - version: string + version: string, ): DeviceUpdateListFiles; /** Resource for '/deviceUpdate/\{instanceId\}/updates/providers/\{provider\}/names/\{name\}/versions/\{version\}/files/\{fileId\}' has methods for the following verbs: get */ ( @@ -657,140 +657,140 @@ export interface Routes { provider: string, name: string, version: string, - fileId: string + fileId: string, ): DeviceUpdateGetFile; /** Resource for '/deviceUpdate/\{instanceId\}/updates/operations' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/updates/operations", - instanceId: string + instanceId: string, ): DeviceUpdateListOperationStatuses; /** Resource for '/deviceUpdate/\{instanceId\}/updates/operations/\{operationId\}' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/updates/operations/{operationId}", instanceId: string, - operationId: string + operationId: string, ): DeviceUpdateGetOperationStatus; /** Resource for '/deviceUpdate/\{instanceId\}/management/deviceClasses' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/deviceClasses", - instanceId: string + instanceId: string, ): DeviceManagementListDeviceClasses; /** Resource for '/deviceUpdate/\{instanceId\}/management/deviceClasses/\{deviceClassId\}' has methods for the following verbs: get, patch, delete */ ( path: "/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}", instanceId: string, - deviceClassId: string + deviceClassId: string, ): DeviceManagementGetDeviceClass; /** Resource for '/deviceUpdate/\{instanceId\}/management/deviceClasses/\{deviceClassId\}/installableUpdates' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}/installableUpdates", instanceId: string, - deviceClassId: string + deviceClassId: string, ): DeviceManagementListInstallableUpdatesForDeviceClass; /** Resource for '/deviceUpdate/\{instanceId\}/management/devices' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/devices", - instanceId: string + instanceId: string, ): DeviceManagementListDevices; /** Resource for '/deviceUpdate/\{instanceId\}/management/devices:import' has methods for the following verbs: post */ ( path: "/deviceUpdate/{instanceId}/management/devices:import", - instanceId: string + instanceId: string, ): DeviceManagementImportDevices; /** Resource for '/deviceUpdate/\{instanceId\}/management/devices/\{deviceId\}' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/devices/{deviceId}", instanceId: string, - deviceId: string + deviceId: string, ): DeviceManagementGetDevice; /** Resource for '/deviceUpdate/\{instanceId\}/management/devices/\{deviceId\}/modules/\{moduleId\}' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/devices/{deviceId}/modules/{moduleId}", instanceId: string, deviceId: string, - moduleId: string + moduleId: string, ): DeviceManagementGetDeviceModule; /** Resource for '/deviceUpdate/\{instanceId\}/management/updateCompliance' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/updateCompliance", - instanceId: string + instanceId: string, ): DeviceManagementGetUpdateCompliance; /** Resource for '/deviceUpdate/\{instanceId\}/management/groups' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/groups", - instanceId: string + instanceId: string, ): DeviceManagementListGroups; /** Resource for '/deviceUpdate/\{instanceId\}/management/groups/\{groupId\}' has methods for the following verbs: get, delete */ ( path: "/deviceUpdate/{instanceId}/management/groups/{groupId}", instanceId: string, - groupId: string + groupId: string, ): DeviceManagementGetGroup; /** Resource for '/deviceUpdate/\{instanceId\}/management/groups/\{groupId\}/updateCompliance' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/groups/{groupId}/updateCompliance", instanceId: string, - groupId: string + groupId: string, ): DeviceManagementGetUpdateComplianceForGroup; /** Resource for '/deviceUpdate/\{instanceId\}/management/groups/\{groupId\}/bestUpdates' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/groups/{groupId}/bestUpdates", instanceId: string, - groupId: string + groupId: string, ): DeviceManagementListBestUpdatesForGroup; /** Resource for '/deviceUpdate/\{instanceId\}/management/groups/\{groupId\}/deployments' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments", instanceId: string, - groupId: string + groupId: string, ): DeviceManagementListDeploymentsForGroup; /** Resource for '/deviceUpdate/\{instanceId\}/management/groups/\{groupId\}/deployments/\{deploymentId\}' has methods for the following verbs: get, put, delete */ ( path: "/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}", instanceId: string, groupId: string, - deploymentId: string + deploymentId: string, ): DeviceManagementGetDeployment; /** Resource for '/deviceUpdate/\{instanceId\}/management/groups/\{groupId\}/deployments/\{deploymentId\}/status' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}/status", instanceId: string, groupId: string, - deploymentId: string + deploymentId: string, ): DeviceManagementGetDeploymentStatus; /** Resource for '/deviceUpdate/\{instanceId\}/management/groups/\{groupId\}/deviceClassSubgroups' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups", instanceId: string, - groupId: string + groupId: string, ): DeviceManagementListDeviceClassSubgroupsForGroup; /** Resource for '/deviceUpdate/\{instanceId\}/management/groups/\{groupId\}/deviceClassSubgroups/\{deviceClassId\}' has methods for the following verbs: get, delete */ ( path: "/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}", instanceId: string, groupId: string, - deviceClassId: string + deviceClassId: string, ): DeviceManagementGetDeviceClassSubgroup; /** Resource for '/deviceUpdate/\{instanceId\}/management/groups/\{groupId\}/deviceClassSubgroups/\{deviceClassId\}/updateCompliance' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/updateCompliance", instanceId: string, groupId: string, - deviceClassId: string + deviceClassId: string, ): DeviceManagementGetDeviceClassSubgroupUpdateCompliance; /** Resource for '/deviceUpdate/\{instanceId\}/management/groups/\{groupId\}/deviceClassSubgroups/\{deviceClassId\}/bestUpdates' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/bestUpdates", instanceId: string, groupId: string, - deviceClassId: string + deviceClassId: string, ): DeviceManagementGetBestUpdatesForDeviceClassSubgroup; /** Resource for '/deviceUpdate/\{instanceId\}/management/groups/\{groupId\}/deviceClassSubgroups/\{deviceClassId\}/deployments' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments", instanceId: string, groupId: string, - deviceClassId: string + deviceClassId: string, ): DeviceManagementListDeploymentsForDeviceClassSubgroup; /** Resource for '/deviceUpdate/\{instanceId\}/management/groups/\{groupId\}/deviceClassSubgroups/\{deviceClassId\}/deployments/\{deploymentId\}' has methods for the following verbs: get, delete */ ( @@ -798,7 +798,7 @@ export interface Routes { instanceId: string, groupId: string, deviceClassId: string, - deploymentId: string + deploymentId: string, ): DeviceManagementGetDeploymentForDeviceClassSubgroup; /** Resource for '/deviceUpdate/\{instanceId\}/management/groups/\{groupId\}/deviceClassSubgroups/\{deviceClassId\}/deployments/\{deploymentId\}:cancel' has methods for the following verbs: post */ ( @@ -806,7 +806,7 @@ export interface Routes { instanceId: string, groupId: string, deviceClassId: string, - deploymentId: string + deploymentId: string, ): DeviceManagementStopDeployment; /** Resource for '/deviceUpdate/\{instanceId\}/management/groups/\{groupId\}/deviceClassSubgroups/\{deviceClassId\}/deployments/\{deploymentId\}:retry' has methods for the following verbs: post */ ( @@ -814,7 +814,7 @@ export interface Routes { instanceId: string, groupId: string, deviceClassId: string, - deploymentId: string + deploymentId: string, ): DeviceManagementRetryDeployment; /** Resource for '/deviceUpdate/\{instanceId\}/management/groups/\{groupId\}/deviceClassSubgroups/\{deviceClassId\}/deployments/\{deploymentId\}/status' has methods for the following verbs: get */ ( @@ -822,7 +822,7 @@ export interface Routes { instanceId: string, groupId: string, deviceClassId: string, - deploymentId: string + deploymentId: string, ): DeviceManagementGetDeviceClassSubgroupDeploymentStatus; /** Resource for '/deviceUpdate/\{instanceId\}/management/groups/\{groupId\}/deviceClassSubgroups/\{deviceClassId\}/deployments/\{deploymentId\}/devicestates' has methods for the following verbs: get */ ( @@ -830,40 +830,40 @@ export interface Routes { instanceId: string, groupId: string, deviceClassId: string, - deploymentId: string + deploymentId: string, ): DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment; /** Resource for '/deviceUpdate/\{instanceId\}/management/operations/\{operationId\}' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/operations/{operationId}", instanceId: string, - operationId: string + operationId: string, ): DeviceManagementGetOperationStatus; /** Resource for '/deviceUpdate/\{instanceId\}/management/operations' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/operations", - instanceId: string + instanceId: string, ): DeviceManagementListOperationStatuses; /** Resource for '/deviceUpdate/\{instanceId\}/management/deviceDiagnostics/logCollections/\{operationId\}' has methods for the following verbs: put, get */ ( path: "/deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}", instanceId: string, - operationId: string + operationId: string, ): DeviceManagementStartLogCollection; /** Resource for '/deviceUpdate/\{instanceId\}/management/deviceDiagnostics/logCollections' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections", - instanceId: string + instanceId: string, ): DeviceManagementListLogCollections; /** Resource for '/deviceUpdate/\{instanceId\}/management/deviceDiagnostics/logCollections/\{operationId\}/detailedStatus' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}/detailedStatus", instanceId: string, - operationId: string + operationId: string, ): DeviceManagementGetLogCollectionDetailedStatus; /** Resource for '/deviceUpdate/\{instanceId\}/management/deviceDiagnostics/deviceHealth' has methods for the following verbs: get */ ( path: "/deviceUpdate/{instanceId}/management/deviceDiagnostics/deviceHealth", - instanceId: string + instanceId: string, ): DeviceManagementListHealthOfDevices; } diff --git a/sdk/deviceupdate/iot-device-update-rest/src/deviceUpdate.ts b/sdk/deviceupdate/iot-device-update-rest/src/deviceUpdate.ts index 17ae80635f2a..823fb1b93ab6 100644 --- a/sdk/deviceupdate/iot-device-update-rest/src/deviceUpdate.ts +++ b/sdk/deviceupdate/iot-device-update-rest/src/deviceUpdate.ts @@ -8,7 +8,7 @@ import { DeviceUpdateClient } from "./clientDefinitions"; export default function createClient( endpoint: string, credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): DeviceUpdateClient { const baseUrl = options.baseUrl ?? `https://${endpoint}`; options.apiVersion = options.apiVersion ?? "2022-10-01"; diff --git a/sdk/deviceupdate/iot-device-update-rest/src/isUnexpected.ts b/sdk/deviceupdate/iot-device-update-rest/src/isUnexpected.ts index 6d88681fd3c3..97dbdc8aac2e 100644 --- a/sdk/deviceupdate/iot-device-update-rest/src/isUnexpected.ts +++ b/sdk/deviceupdate/iot-device-update-rest/src/isUnexpected.ts @@ -193,233 +193,233 @@ const responseMap: Record = { }; export function isUnexpected( - response: DeviceUpdateListUpdates200Response | DeviceUpdateListUpdatesdefaultResponse + response: DeviceUpdateListUpdates200Response | DeviceUpdateListUpdatesdefaultResponse, ): response is DeviceUpdateListUpdatesdefaultResponse; export function isUnexpected( response: | DeviceUpdateImportUpdate200Response | DeviceUpdateImportUpdate202Response - | DeviceUpdateImportUpdatedefaultResponse + | DeviceUpdateImportUpdatedefaultResponse, ): response is DeviceUpdateImportUpdatedefaultResponse; export function isUnexpected( response: | DeviceUpdateGetUpdate200Response | DeviceUpdateGetUpdate304Response - | DeviceUpdateGetUpdatedefaultResponse + | DeviceUpdateGetUpdatedefaultResponse, ): response is DeviceUpdateGetUpdatedefaultResponse; export function isUnexpected( - response: DeviceUpdateDeleteUpdate202Response | DeviceUpdateDeleteUpdatedefaultResponse + response: DeviceUpdateDeleteUpdate202Response | DeviceUpdateDeleteUpdatedefaultResponse, ): response is DeviceUpdateDeleteUpdatedefaultResponse; export function isUnexpected( - response: DeviceUpdateListProviders200Response | DeviceUpdateListProvidersdefaultResponse + response: DeviceUpdateListProviders200Response | DeviceUpdateListProvidersdefaultResponse, ): response is DeviceUpdateListProvidersdefaultResponse; export function isUnexpected( - response: DeviceUpdateListNames200Response | DeviceUpdateListNamesdefaultResponse + response: DeviceUpdateListNames200Response | DeviceUpdateListNamesdefaultResponse, ): response is DeviceUpdateListNamesdefaultResponse; export function isUnexpected( - response: DeviceUpdateListVersions200Response | DeviceUpdateListVersionsdefaultResponse + response: DeviceUpdateListVersions200Response | DeviceUpdateListVersionsdefaultResponse, ): response is DeviceUpdateListVersionsdefaultResponse; export function isUnexpected( - response: DeviceUpdateListFiles200Response | DeviceUpdateListFilesdefaultResponse + response: DeviceUpdateListFiles200Response | DeviceUpdateListFilesdefaultResponse, ): response is DeviceUpdateListFilesdefaultResponse; export function isUnexpected( response: | DeviceUpdateGetFile200Response | DeviceUpdateGetFile304Response - | DeviceUpdateGetFiledefaultResponse + | DeviceUpdateGetFiledefaultResponse, ): response is DeviceUpdateGetFiledefaultResponse; export function isUnexpected( response: | DeviceUpdateListOperationStatuses200Response - | DeviceUpdateListOperationStatusesdefaultResponse + | DeviceUpdateListOperationStatusesdefaultResponse, ): response is DeviceUpdateListOperationStatusesdefaultResponse; export function isUnexpected( response: | DeviceUpdateGetOperationStatus200Response | DeviceUpdateGetOperationStatus304Response - | DeviceUpdateGetOperationStatusdefaultResponse + | DeviceUpdateGetOperationStatusdefaultResponse, ): response is DeviceUpdateGetOperationStatusdefaultResponse; export function isUnexpected( response: | DeviceManagementListDeviceClasses200Response - | DeviceManagementListDeviceClassesdefaultResponse + | DeviceManagementListDeviceClassesdefaultResponse, ): response is DeviceManagementListDeviceClassesdefaultResponse; export function isUnexpected( response: | DeviceManagementGetDeviceClass200Response - | DeviceManagementGetDeviceClassdefaultResponse + | DeviceManagementGetDeviceClassdefaultResponse, ): response is DeviceManagementGetDeviceClassdefaultResponse; export function isUnexpected( response: | DeviceManagementUpdateDeviceClass200Response - | DeviceManagementUpdateDeviceClassdefaultResponse + | DeviceManagementUpdateDeviceClassdefaultResponse, ): response is DeviceManagementUpdateDeviceClassdefaultResponse; export function isUnexpected( response: | DeviceManagementDeleteDeviceClass204Response - | DeviceManagementDeleteDeviceClassdefaultResponse + | DeviceManagementDeleteDeviceClassdefaultResponse, ): response is DeviceManagementDeleteDeviceClassdefaultResponse; export function isUnexpected( response: | DeviceManagementListInstallableUpdatesForDeviceClass200Response - | DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse + | DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse, ): response is DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse; export function isUnexpected( - response: DeviceManagementListDevices200Response | DeviceManagementListDevicesdefaultResponse + response: DeviceManagementListDevices200Response | DeviceManagementListDevicesdefaultResponse, ): response is DeviceManagementListDevicesdefaultResponse; export function isUnexpected( - response: DeviceManagementImportDevices202Response | DeviceManagementImportDevicesdefaultResponse + response: DeviceManagementImportDevices202Response | DeviceManagementImportDevicesdefaultResponse, ): response is DeviceManagementImportDevicesdefaultResponse; export function isUnexpected( - response: DeviceManagementGetDevice200Response | DeviceManagementGetDevicedefaultResponse + response: DeviceManagementGetDevice200Response | DeviceManagementGetDevicedefaultResponse, ): response is DeviceManagementGetDevicedefaultResponse; export function isUnexpected( response: | DeviceManagementGetDeviceModule200Response - | DeviceManagementGetDeviceModuledefaultResponse + | DeviceManagementGetDeviceModuledefaultResponse, ): response is DeviceManagementGetDeviceModuledefaultResponse; export function isUnexpected( response: | DeviceManagementGetUpdateCompliance200Response - | DeviceManagementGetUpdateCompliancedefaultResponse + | DeviceManagementGetUpdateCompliancedefaultResponse, ): response is DeviceManagementGetUpdateCompliancedefaultResponse; export function isUnexpected( - response: DeviceManagementListGroups200Response | DeviceManagementListGroupsdefaultResponse + response: DeviceManagementListGroups200Response | DeviceManagementListGroupsdefaultResponse, ): response is DeviceManagementListGroupsdefaultResponse; export function isUnexpected( - response: DeviceManagementGetGroup200Response | DeviceManagementGetGroupdefaultResponse + response: DeviceManagementGetGroup200Response | DeviceManagementGetGroupdefaultResponse, ): response is DeviceManagementGetGroupdefaultResponse; export function isUnexpected( - response: DeviceManagementDeleteGroup204Response | DeviceManagementDeleteGroupdefaultResponse + response: DeviceManagementDeleteGroup204Response | DeviceManagementDeleteGroupdefaultResponse, ): response is DeviceManagementDeleteGroupdefaultResponse; export function isUnexpected( response: | DeviceManagementGetUpdateComplianceForGroup200Response - | DeviceManagementGetUpdateComplianceForGroupdefaultResponse + | DeviceManagementGetUpdateComplianceForGroupdefaultResponse, ): response is DeviceManagementGetUpdateComplianceForGroupdefaultResponse; export function isUnexpected( response: | DeviceManagementListBestUpdatesForGroup200Response - | DeviceManagementListBestUpdatesForGroupdefaultResponse + | DeviceManagementListBestUpdatesForGroupdefaultResponse, ): response is DeviceManagementListBestUpdatesForGroupdefaultResponse; export function isUnexpected( response: | DeviceManagementListDeploymentsForGroup200Response - | DeviceManagementListDeploymentsForGroupdefaultResponse + | DeviceManagementListDeploymentsForGroupdefaultResponse, ): response is DeviceManagementListDeploymentsForGroupdefaultResponse; export function isUnexpected( - response: DeviceManagementGetDeployment200Response | DeviceManagementGetDeploymentdefaultResponse + response: DeviceManagementGetDeployment200Response | DeviceManagementGetDeploymentdefaultResponse, ): response is DeviceManagementGetDeploymentdefaultResponse; export function isUnexpected( response: | DeviceManagementCreateOrUpdateDeployment200Response - | DeviceManagementCreateOrUpdateDeploymentdefaultResponse + | DeviceManagementCreateOrUpdateDeploymentdefaultResponse, ): response is DeviceManagementCreateOrUpdateDeploymentdefaultResponse; export function isUnexpected( response: | DeviceManagementDeleteDeployment204Response - | DeviceManagementDeleteDeploymentdefaultResponse + | DeviceManagementDeleteDeploymentdefaultResponse, ): response is DeviceManagementDeleteDeploymentdefaultResponse; export function isUnexpected( response: | DeviceManagementGetDeploymentStatus200Response - | DeviceManagementGetDeploymentStatusdefaultResponse + | DeviceManagementGetDeploymentStatusdefaultResponse, ): response is DeviceManagementGetDeploymentStatusdefaultResponse; export function isUnexpected( response: | DeviceManagementListDeviceClassSubgroupsForGroup200Response - | DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse + | DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse, ): response is DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse; export function isUnexpected( response: | DeviceManagementGetDeviceClassSubgroup200Response - | DeviceManagementGetDeviceClassSubgroupdefaultResponse + | DeviceManagementGetDeviceClassSubgroupdefaultResponse, ): response is DeviceManagementGetDeviceClassSubgroupdefaultResponse; export function isUnexpected( response: | DeviceManagementDeleteDeviceClassSubgroup204Response - | DeviceManagementDeleteDeviceClassSubgroupdefaultResponse + | DeviceManagementDeleteDeviceClassSubgroupdefaultResponse, ): response is DeviceManagementDeleteDeviceClassSubgroupdefaultResponse; export function isUnexpected( response: | DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response - | DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse + | DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse, ): response is DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse; export function isUnexpected( response: | DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response - | DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse + | DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse, ): response is DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse; export function isUnexpected( response: | DeviceManagementListDeploymentsForDeviceClassSubgroup200Response - | DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse + | DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse, ): response is DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse; export function isUnexpected( response: | DeviceManagementGetDeploymentForDeviceClassSubgroup200Response - | DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse + | DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse, ): response is DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse; export function isUnexpected( response: | DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response - | DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse + | DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse, ): response is DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse; export function isUnexpected( response: | DeviceManagementStopDeployment200Response - | DeviceManagementStopDeploymentdefaultResponse + | DeviceManagementStopDeploymentdefaultResponse, ): response is DeviceManagementStopDeploymentdefaultResponse; export function isUnexpected( response: | DeviceManagementRetryDeployment200Response - | DeviceManagementRetryDeploymentdefaultResponse + | DeviceManagementRetryDeploymentdefaultResponse, ): response is DeviceManagementRetryDeploymentdefaultResponse; export function isUnexpected( response: | DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response - | DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse + | DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse, ): response is DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse; export function isUnexpected( response: | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response - | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse + | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse, ): response is DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse; export function isUnexpected( response: | DeviceManagementGetOperationStatus200Response | DeviceManagementGetOperationStatus304Response - | DeviceManagementGetOperationStatusdefaultResponse + | DeviceManagementGetOperationStatusdefaultResponse, ): response is DeviceManagementGetOperationStatusdefaultResponse; export function isUnexpected( response: | DeviceManagementListOperationStatuses200Response - | DeviceManagementListOperationStatusesdefaultResponse + | DeviceManagementListOperationStatusesdefaultResponse, ): response is DeviceManagementListOperationStatusesdefaultResponse; export function isUnexpected( response: | DeviceManagementStartLogCollection201Response - | DeviceManagementStartLogCollectiondefaultResponse + | DeviceManagementStartLogCollectiondefaultResponse, ): response is DeviceManagementStartLogCollectiondefaultResponse; export function isUnexpected( response: | DeviceManagementGetLogCollection200Response - | DeviceManagementGetLogCollectiondefaultResponse + | DeviceManagementGetLogCollectiondefaultResponse, ): response is DeviceManagementGetLogCollectiondefaultResponse; export function isUnexpected( response: | DeviceManagementListLogCollections200Response - | DeviceManagementListLogCollectionsdefaultResponse + | DeviceManagementListLogCollectionsdefaultResponse, ): response is DeviceManagementListLogCollectionsdefaultResponse; export function isUnexpected( response: | DeviceManagementGetLogCollectionDetailedStatus200Response - | DeviceManagementGetLogCollectionDetailedStatusdefaultResponse + | DeviceManagementGetLogCollectionDetailedStatusdefaultResponse, ): response is DeviceManagementGetLogCollectionDetailedStatusdefaultResponse; export function isUnexpected( response: | DeviceManagementListHealthOfDevices200Response - | DeviceManagementListHealthOfDevicesdefaultResponse + | DeviceManagementListHealthOfDevicesdefaultResponse, ): response is DeviceManagementListHealthOfDevicesdefaultResponse; export function isUnexpected( response: @@ -527,7 +527,7 @@ export function isUnexpected( | DeviceManagementGetLogCollectionDetailedStatus200Response | DeviceManagementGetLogCollectionDetailedStatusdefaultResponse | DeviceManagementListHealthOfDevices200Response - | DeviceManagementListHealthOfDevicesdefaultResponse + | DeviceManagementListHealthOfDevicesdefaultResponse, ): response is | DeviceUpdateListUpdatesdefaultResponse | DeviceUpdateImportUpdatedefaultResponse diff --git a/sdk/deviceupdate/iot-device-update-rest/src/paginateHelper.ts b/sdk/deviceupdate/iot-device-update-rest/src/paginateHelper.ts index 477bace4a37f..f0d91c952cda 100644 --- a/sdk/deviceupdate/iot-device-update-rest/src/paginateHelper.ts +++ b/sdk/deviceupdate/iot-device-update-rest/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/deviceupdate/iot-device-update-rest/src/pollingHelper.ts b/sdk/deviceupdate/iot-device-update-rest/src/pollingHelper.ts index fe2776d3cc16..5164627d9696 100644 --- a/sdk/deviceupdate/iot-device-update-rest/src/pollingHelper.ts +++ b/sdk/deviceupdate/iot-device-update-rest/src/pollingHelper.ts @@ -21,7 +21,7 @@ import { export function getLongRunningPoller( client: Client, initialResponse: TResult, - options: LroEngineOptions> = {} + options: LroEngineOptions> = {}, ): PollerLike, TResult> { const poller: LongRunningOperation = { requestMethod: initialResponse.request.method, diff --git a/sdk/deviceupdate/iot-device-update-rest/test/public/management.spec.ts b/sdk/deviceupdate/iot-device-update-rest/test/public/management.spec.ts index 01bac14519ab..e1760fd2606d 100644 --- a/sdk/deviceupdate/iot-device-update-rest/test/public/management.spec.ts +++ b/sdk/deviceupdate/iot-device-update-rest/test/public/management.spec.ts @@ -29,7 +29,7 @@ describe("device and deployment test", () => { if (isUnexpected(response)) { assert.fail( - `GET "/deviceUpdate/sdkInstance/management/devices" failed with ${response.status}` + `GET "/deviceUpdate/sdkInstance/management/devices" failed with ${response.status}`, ); } @@ -51,7 +51,7 @@ describe("device and deployment test", () => { if (isUnexpected(response)) { assert.fail( - `GET "/deviceUpdate/sdkInstance/management/groups" failed with ${response.status}` + `GET "/deviceUpdate/sdkInstance/management/groups" failed with ${response.status}`, ); } @@ -65,7 +65,7 @@ describe("device and deployment test", () => { if (isUnexpected(response)) { assert.fail( - `GET "/deviceUpdate/sdkInstance/updates/providers/fabrikam/names/vacuum" failed with ${response.status}` + `GET "/deviceUpdate/sdkInstance/updates/providers/fabrikam/names/vacuum" failed with ${response.status}`, ); } @@ -87,7 +87,7 @@ describe("device and deployment test", () => { if (isUnexpected(response)) { assert.fail( - `GET "/deviceUpdate/sdkInstance/management/deviceClasses" failed with ${response.status}` + `GET "/deviceUpdate/sdkInstance/management/deviceClasses" failed with ${response.status}`, ); } @@ -99,7 +99,7 @@ describe("device and deployment test", () => { .path( "/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}", "sdkinstance", - "foo" + "foo", ) .get(); @@ -111,13 +111,13 @@ describe("device and deployment test", () => { .path( "/deviceUpdate/{instanceId}/management/groups/{groupId}/bestUpdates", "sdkinstance", - group + group, ) .get(); if (isUnexpected(response)) { assert.fail( - `GET "/deviceUpdate/sdkInstance/management/groups/group/bestUpdates" failed with ${response.status}` + `GET "/deviceUpdate/sdkInstance/management/groups/group/bestUpdates" failed with ${response.status}`, ); } @@ -129,7 +129,7 @@ describe("device and deployment test", () => { .path( "/deviceUpdate/{instanceId}/management/groups/{groupId}/bestUpdates", "sdkinstance", - "foo" + "foo", ) .get(); @@ -141,13 +141,13 @@ describe("device and deployment test", () => { .path( "/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments", "sdkinstance", - group + group, ) .get(); if (isUnexpected(response)) { assert.fail( - `GET "/deviceUpdate/sdkInstance/management/groups/group/deployments" failed with ${response.status}` + `GET "/deviceUpdate/sdkInstance/management/groups/group/deployments" failed with ${response.status}`, ); } @@ -159,7 +159,7 @@ describe("device and deployment test", () => { .path( "/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments", "sdkinstance", - "foo" + "foo", ) .get(); diff --git a/sdk/deviceupdate/iot-device-update-rest/test/public/update.spec.ts b/sdk/deviceupdate/iot-device-update-rest/test/public/update.spec.ts index 3e4704fbda76..2865b2f90f64 100644 --- a/sdk/deviceupdate/iot-device-update-rest/test/public/update.spec.ts +++ b/sdk/deviceupdate/iot-device-update-rest/test/public/update.spec.ts @@ -31,7 +31,7 @@ describe("update test", () => { if (isUnexpected(response)) { assert.fail( - `GET "/deviceUpdate/sdkInstance/updates/providers" failed with ${response.status}` + `GET "/deviceUpdate/sdkInstance/updates/providers" failed with ${response.status}`, ); } @@ -43,13 +43,13 @@ describe("update test", () => { .path( "/deviceUpdate/{instanceId}/updates/providers/{provider}/names", "sdkinstance", - provider + provider, ) .get(); if (isUnexpected(response)) { assert.fail( - `GET "/deviceUpdate/sdkInstance/updates/providers/fabrikam/names" failed with ${response.status}` + `GET "/deviceUpdate/sdkInstance/updates/providers/fabrikam/names" failed with ${response.status}`, ); } @@ -70,13 +70,13 @@ describe("update test", () => { "/deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions", "sdkinstance", provider, - name + name, ) .get(); if (isUnexpected(response)) { assert.fail( - `GET "/deviceUpdate/sdkInstance/updates/providers/fabrikam/names/vacuum/versions" failed with ${response.status}` + `GET "/deviceUpdate/sdkInstance/updates/providers/fabrikam/names/vacuum/versions" failed with ${response.status}`, ); } @@ -89,7 +89,7 @@ describe("update test", () => { "/deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions", "sdkinstance", "foo", - "bar" + "bar", ) .get(); @@ -103,13 +103,13 @@ describe("update test", () => { "sdkinstance", provider, name, - version + version, ) .get(); if (isUnexpected(response)) { assert.fail( - `GET "/deviceUpdate/sdkInstance/updates/providers/fabrikam/names/vacuum" failed with ${response.status}` + `GET "/deviceUpdate/sdkInstance/updates/providers/fabrikam/names/vacuum" failed with ${response.status}`, ); } @@ -123,7 +123,7 @@ describe("update test", () => { "sdkinstance", "foo", "bar", - "1.2" + "1.2", ) .get(); @@ -137,13 +137,13 @@ describe("update test", () => { "sdkinstance", provider, name, - version + version, ) .get(); if (isUnexpected(response)) { assert.fail( - `GET "/deviceUpdate/sdkInstance/updates/providers/fabrikam/names/vacuum/versions/1.2" failed with ${response.status}` + `GET "/deviceUpdate/sdkInstance/updates/providers/fabrikam/names/vacuum/versions/1.2" failed with ${response.status}`, ); } @@ -157,7 +157,7 @@ describe("update test", () => { "sdkinstance", "foo", "bar", - "1.2" + "1.2", ) .get(); diff --git a/sdk/deviceupdate/iot-device-update-rest/test/public/utils/recordedClient.ts b/sdk/deviceupdate/iot-device-update-rest/test/public/utils/recordedClient.ts index ca819395efff..804e7f52989a 100644 --- a/sdk/deviceupdate/iot-device-update-rest/test/public/utils/recordedClient.ts +++ b/sdk/deviceupdate/iot-device-update-rest/test/public/utils/recordedClient.ts @@ -10,7 +10,7 @@ export function createRecordedClient(recorder: Recorder): DeviceUpdateClient { const client = DeviceUpdate( assertEnvironmentVariable("ENDPOINT"), credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); return client; } diff --git a/sdk/digitaltwins/digital-twins-core/package.json b/sdk/digitaltwins/digital-twins-core/package.json index 63a6a569a9bb..3898cf2f9fd3 100644 --- a/sdk/digitaltwins/digital-twins-core/package.json +++ b/sdk/digitaltwins/digital-twins-core/package.json @@ -20,12 +20,12 @@ "build:test:node": "tsc -p . && dev-tool run bundle", "build:test": "tsc -p . && dev-tool run bundle", "build:samples": "echo Obsolete.", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm dist-browser test-dist test-browser types *.tgz *.log", "execute:js-samples": "node ../../../common/scripts/run-samples.js samples/javascript/", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -100,7 +100,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "typescript": "~5.2.0", diff --git a/sdk/digitaltwins/digital-twins-core/samples-dev/dt_component_lifecycle.ts b/sdk/digitaltwins/digital-twins-core/samples-dev/dt_component_lifecycle.ts index 5b0259b81f81..ace9c0ec78f0 100644 --- a/sdk/digitaltwins/digital-twins-core/samples-dev/dt_component_lifecycle.ts +++ b/sdk/digitaltwins/digital-twins-core/samples-dev/dt_component_lifecycle.ts @@ -96,7 +96,7 @@ async function main() { // Create digital twin const createdTwin = await serviceClient.upsertDigitalTwin( digitalTwinId, - JSON.stringify(temporaryTwin) + JSON.stringify(temporaryTwin), ); console.log(`Created Digital Twin:`); console.log(inspect(createdTwin)); @@ -111,7 +111,7 @@ async function main() { const updateComponentResponse = await serviceClient.updateComponent( digitalTwinId, componentPath, - [patch] + [patch], ); console.log(`Update Component response:`); console.log(inspect(updateComponentResponse)); diff --git a/sdk/digitaltwins/digital-twins-core/samples-dev/dt_publish_component_telemetry.ts b/sdk/digitaltwins/digital-twins-core/samples-dev/dt_publish_component_telemetry.ts index dacca5dd8f53..21bc653f3d41 100644 --- a/sdk/digitaltwins/digital-twins-core/samples-dev/dt_publish_component_telemetry.ts +++ b/sdk/digitaltwins/digital-twins-core/samples-dev/dt_publish_component_telemetry.ts @@ -34,7 +34,7 @@ async function main() { digitalTwinId, componentPath, telemetryPayload, - v4() + v4(), ); console.log(`Publish Component Telemetry response:`); console.log(inspect(response)); diff --git a/sdk/digitaltwins/digital-twins-core/samples-dev/dt_scenario.ts b/sdk/digitaltwins/digital-twins-core/samples-dev/dt_scenario.ts index 0a766d5ae641..7f759939bb97 100644 --- a/sdk/digitaltwins/digital-twins-core/samples-dev/dt_scenario.ts +++ b/sdk/digitaltwins/digital-twins-core/samples-dev/dt_scenario.ts @@ -98,28 +98,28 @@ async function main() { const createdBuildingTwin = await serviceClient.upsertDigitalTwin( buildingTwinId, - JSON.stringify(buildingTwin) + JSON.stringify(buildingTwin), ); console.log(`BuildingTwin:`); console.log(inspect(createdBuildingTwin)); const createdFloorTwin = await serviceClient.upsertDigitalTwin( floorTwinId, - JSON.stringify(floorTwin) + JSON.stringify(floorTwin), ); console.log(`FloorTwin:`); console.log(inspect(createdFloorTwin)); const createdHVACTwin = await serviceClient.upsertDigitalTwin( hvacTwinId, - JSON.stringify(hvacTwin) + JSON.stringify(hvacTwin), ); console.log(`HVACTwin:`); console.log(inspect(createdHVACTwin)); const createdRoomTwin = await serviceClient.upsertDigitalTwin( roomTwinId, - JSON.stringify(roomTwin) + JSON.stringify(roomTwin), ); console.log(`RoomTwin:`); console.log(inspect(createdRoomTwin)); @@ -129,7 +129,7 @@ async function main() { await serviceClient.upsertRelationship( relationship["$sourceId"], relationship["$relationshipId"], - relationship + relationship, ); } @@ -140,7 +140,7 @@ async function main() { const response = await serviceClient.upsertEventRoute( eventRouteId, eventHubEndpointName, - eventFilter + eventFilter, ); console.log(`Upsert Event Route response:`); console.log(inspect(response)); @@ -156,7 +156,7 @@ async function main() { for (const relationship of hospitalRelationships) { await serviceClient.deleteRelationship( relationship["$sourceId"], - relationship["$relationshipId"] + relationship["$relationshipId"], ); } diff --git a/sdk/digitaltwins/digital-twins-core/src/digitalTwinsClient.ts b/sdk/digitaltwins/digital-twins-core/src/digitalTwinsClient.ts index da9be809ca8d..46c1a6232467 100644 --- a/sdk/digitaltwins/digital-twins-core/src/digitalTwinsClient.ts +++ b/sdk/digitaltwins/digital-twins-core/src/digitalTwinsClient.ts @@ -86,7 +86,7 @@ export class DigitalTwinsClient { constructor( endpointUrl: string, credential: TokenCredential, - options: DigitalTwinsClientOptions = {} + options: DigitalTwinsClientOptions = {}, ) { const internalPipelineOptions: InternalClientPipelineOptions = { ...options, @@ -113,14 +113,14 @@ export class DigitalTwinsClient { */ public getDigitalTwin( digitalTwinId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "DigitalTwinsClient.getDigitalTwin", options, async (updatedOptions) => { return this.client.digitalTwins.getById(digitalTwinId, updatedOptions); - } + }, ); } @@ -136,7 +136,7 @@ export class DigitalTwinsClient { public upsertDigitalTwin( digitalTwinId: string, digitalTwinJson: string, - options: DigitalTwinsAddOptionalParams = {} + options: DigitalTwinsAddOptionalParams = {}, ): Promise { return tracingClient.withSpan( "DigitalTwinsClient.upsertDigitalTwin", @@ -144,7 +144,7 @@ export class DigitalTwinsClient { async (updatedOptions) => { const payload = JSON.parse(digitalTwinJson); return this.client.digitalTwins.add(digitalTwinId, payload, updatedOptions); - } + }, ); } @@ -162,14 +162,14 @@ export class DigitalTwinsClient { public updateDigitalTwin( digitalTwinId: string, jsonPatch: Array>, - options: DigitalTwinsUpdateOptionalParams = {} + options: DigitalTwinsUpdateOptionalParams = {}, ): Promise { return tracingClient.withSpan( "DigitalTwinsClient.updateDigitalTwin", options, async (updatedOptions) => { return this.client.digitalTwins.update(digitalTwinId, jsonPatch, updatedOptions); - } + }, ); } @@ -183,14 +183,14 @@ export class DigitalTwinsClient { */ public deleteDigitalTwin( digitalTwinId: string, - options: DigitalTwinsDeleteOptionalParams = {} + options: DigitalTwinsDeleteOptionalParams = {}, ): Promise { return tracingClient.withSpan( "DigitalTwinsClient.deleteDigitalTwin", options, async (updatedOptions) => { return this.client.digitalTwins.delete(digitalTwinId, updatedOptions); - } + }, ); } @@ -205,14 +205,14 @@ export class DigitalTwinsClient { public getComponent( digitalTwinId: string, componentName: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "DigitalTwinsClient.getComponent", options, async (updatedOptions) => { return this.client.digitalTwins.getComponent(digitalTwinId, componentName, updatedOptions); - } + }, ); } @@ -231,7 +231,7 @@ export class DigitalTwinsClient { digitalTwinId: string, componentName: string, jsonPatch: Array>, - options: DigitalTwinsUpdateComponentOptionalParams = {} + options: DigitalTwinsUpdateComponentOptionalParams = {}, ): Promise { return tracingClient.withSpan( "DigitalTwinsClient.updateComponent", @@ -241,9 +241,9 @@ export class DigitalTwinsClient { digitalTwinId, componentName, jsonPatch, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -258,7 +258,7 @@ export class DigitalTwinsClient { public getRelationship( digitalTwinId: string, relationshipId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "DigitalTwinsClient.getRelationship", @@ -267,9 +267,9 @@ export class DigitalTwinsClient { return this.client.digitalTwins.getRelationshipById( digitalTwinId, relationshipId, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -286,7 +286,7 @@ export class DigitalTwinsClient { digitalTwinId: string, relationshipId: string, relationship: Record, - options: DigitalTwinsAddRelationshipOptionalParams = {} + options: DigitalTwinsAddRelationshipOptionalParams = {}, ): Promise { return tracingClient.withSpan( "DigitalTwinsClient.upsertRelationship", @@ -296,9 +296,9 @@ export class DigitalTwinsClient { digitalTwinId, relationshipId, relationship, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -315,7 +315,7 @@ export class DigitalTwinsClient { digitalTwinId: string, relationshipId: string, jsonPatch: Array>, - options: DigitalTwinsUpdateRelationshipOptionalParams = {} + options: DigitalTwinsUpdateRelationshipOptionalParams = {}, ): Promise { return tracingClient.withSpan( "DigitalTwinsClient.updateRelationship", @@ -325,9 +325,9 @@ export class DigitalTwinsClient { digitalTwinId, relationshipId, jsonPatch, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -343,7 +343,7 @@ export class DigitalTwinsClient { public deleteRelationship( digitalTwinId: string, relationshipId: string, - options: DigitalTwinsDeleteRelationshipOptionalParams = {} + options: DigitalTwinsDeleteRelationshipOptionalParams = {}, ): Promise { return tracingClient.withSpan( "DigitalTwinsClient.deleteRelationship", @@ -352,9 +352,9 @@ export class DigitalTwinsClient { return this.client.digitalTwins.deleteRelationship( digitalTwinId, relationshipId, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -365,7 +365,7 @@ export class DigitalTwinsClient { */ public listRelationships( digitalTwinId: string, - options?: ListRelationshipsOptions + options?: ListRelationshipsOptions, ): PagedAsyncIterableIterator> { return this.client.digitalTwins.listRelationships(digitalTwinId, options); } @@ -377,7 +377,7 @@ export class DigitalTwinsClient { */ public listIncomingRelationships( digitalTwinId: string, - options?: ListIncomingRelationshipsOptions + options?: ListIncomingRelationshipsOptions, ): PagedAsyncIterableIterator { return this.client.digitalTwins.listIncomingRelationships(digitalTwinId, options); } @@ -395,7 +395,7 @@ export class DigitalTwinsClient { digitalTwinId: string, payload: Record, messageId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "DigitalTwinsClient.publishTelemetry", @@ -408,9 +408,9 @@ export class DigitalTwinsClient { { ...updatedOptions, telemetrySourceTime: new Date().toISOString(), - } + }, ); - } + }, ); } @@ -429,7 +429,7 @@ export class DigitalTwinsClient { componentName: string, payload: Record, messageId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "DigitalTwinsClient.publishComponentTelemetry", @@ -440,9 +440,9 @@ export class DigitalTwinsClient { componentName, messageId || generateUuid(), payload, - { ...updatedOptions, telemetrySourceTime: new Date().toISOString() } + { ...updatedOptions, telemetrySourceTime: new Date().toISOString() }, ); - } + }, ); } @@ -455,7 +455,7 @@ export class DigitalTwinsClient { */ public getModel( modelId: string, - options: GetModelOptions = {} + options: GetModelOptions = {}, ): Promise { return tracingClient.withSpan( "DigitalTwinsClient.getModel", @@ -465,7 +465,7 @@ export class DigitalTwinsClient { }, async (updatedOptions) => { return this.client.digitalTwinModels.getById(modelId, updatedOptions); - } + }, ); } @@ -476,7 +476,7 @@ export class DigitalTwinsClient { * @returns A pageable set of application/json models. */ public listModels( - options: ListModelsOptions = {} + options: ListModelsOptions = {}, ): PagedAsyncIterableIterator { return this.client.digitalTwinModels.list({ ...options, @@ -493,7 +493,7 @@ export class DigitalTwinsClient { */ public createModels( dtdlModels: Array>, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "DigitalTwinsClient.createModels", @@ -503,7 +503,7 @@ export class DigitalTwinsClient { }, async (updatedOptions) => { return this.client.digitalTwinModels.add(updatedOptions); - } + }, ); } @@ -527,7 +527,7 @@ export class DigitalTwinsClient { options, async (updatedOptions) => { return this.client.digitalTwinModels.update(modelId, jsonPatch, updatedOptions); - } + }, ); } @@ -544,7 +544,7 @@ export class DigitalTwinsClient { options, async (updatedOptions) => { return this.client.digitalTwinModels.delete(modelId, updatedOptions); - } + }, ); } @@ -557,14 +557,14 @@ export class DigitalTwinsClient { */ public getEventRoute( eventRouteId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "DigitalTwinsClient.getEventRoute", options, async (updatedOptions) => { return this.client.eventRoutes.getById(eventRouteId, updatedOptions); - } + }, ); } @@ -591,7 +591,7 @@ export class DigitalTwinsClient { eventRouteId: string, endpointId: string, filter: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "DigitalTwinsClient.upsertEventRoute", @@ -604,7 +604,7 @@ export class DigitalTwinsClient { }, async (updatedOptions) => { return this.client.eventRoutes.add(eventRouteId, updatedOptions); - } + }, ); } @@ -621,7 +621,7 @@ export class DigitalTwinsClient { options, async (updatedOptions) => { return this.client.eventRoutes.delete(eventRouteId, updatedOptions); - } + }, ); } @@ -636,7 +636,7 @@ export class DigitalTwinsClient { private async *queryTwinsPage( query: string, options: QueryTwinsOptions, - continuationState?: PageSettings + continuationState?: PageSettings, ): AsyncIterableIterator { let { continuationToken } = continuationState ?? {}; if (!continuationToken) { @@ -658,7 +658,7 @@ export class DigitalTwinsClient { */ private async *queryTwinsAll( query: string, - options: QueryTwinsOptions + options: QueryTwinsOptions, ): AsyncIterableIterator> { for await (const page of this.queryTwinsPage(query, options)) { if (page.value) { @@ -676,7 +676,7 @@ export class DigitalTwinsClient { */ public queryTwins( query: string, - options: QueryTwinsOptions = {} + options: QueryTwinsOptions = {}, ): PagedAsyncIterableIterator, QueryQueryTwinsResponse> { const iter = this.queryTwinsAll(query, options); diff --git a/sdk/digitaltwins/digital-twins-core/test/public/testComponents.spec.ts b/sdk/digitaltwins/digital-twins-core/test/public/testComponents.spec.ts index 26cff1e2382c..94a774dcb495 100644 --- a/sdk/digitaltwins/digital-twins-core/test/public/testComponents.spec.ts +++ b/sdk/digitaltwins/digital-twins-core/test/public/testComponents.spec.ts @@ -373,7 +373,7 @@ describe("DigitalTwins Components - read, update and delete operations", () => { DIGITAL_TWIN_ID, "Component1", telemetry, - test_messageId + test_messageId, ); } finally { await deleteDigitalTwin(DIGITAL_TWIN_ID); @@ -395,7 +395,7 @@ describe("DigitalTwins Components - read, update and delete operations", () => { DIGITAL_TWIN_ID, "Component1", telemetry, - test_messageId + test_messageId, ); } finally { await deleteDigitalTwin(DIGITAL_TWIN_ID); @@ -418,7 +418,7 @@ describe("DigitalTwins Components - read, update and delete operations", () => { DIGITAL_TWIN_ID, "Component2", telemetry, - test_messageId + test_messageId, ); } catch (error: any) { errorWasThrown = true; diff --git a/sdk/digitaltwins/digital-twins-core/test/public/testDigitalTwins.spec.ts b/sdk/digitaltwins/digital-twins-core/test/public/testDigitalTwins.spec.ts index 1bcb8d6f693f..cc1020507088 100644 --- a/sdk/digitaltwins/digital-twins-core/test/public/testDigitalTwins.spec.ts +++ b/sdk/digitaltwins/digital-twins-core/test/public/testDigitalTwins.spec.ts @@ -99,7 +99,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("create a simple digital twin", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `digitalTwin${Math.floor(Math.random() * 1000)}` + `digitalTwin${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -115,28 +115,28 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", try { const createdTwin: any = await client.upsertDigitalTwin( digitalTwinId, - JSON.stringify(buildingTwin) + JSON.stringify(buildingTwin), ); assert.equal( createdTwin.$dtId, digitalTwinId, - "Unexpected dtId result from upsertDigitalTwin()." + "Unexpected dtId result from upsertDigitalTwin().", ); assert.equal( createdTwin.$metadata.$model, BUILDING_MODEL_ID, - "Unexpected model result from upsertDigitalTwin()." + "Unexpected model result from upsertDigitalTwin().", ); assert.equal( createdTwin.AverageTemperature, buildingTwin["AverageTemperature"], - "Unexpected AverageTemperature result from upsertDigitalTwin()." + "Unexpected AverageTemperature result from upsertDigitalTwin().", ); assert.equal( createdTwin.TemperatureUnit, buildingTwin["TemperatureUnit"], - "Unexpected TemperatureUnit result from upsertDigitalTwin()." + "Unexpected TemperatureUnit result from upsertDigitalTwin().", ); assert.notEqual(createdTwin.$etag, "", "No etag in result from upsertDigitalTwin()."); } finally { @@ -148,7 +148,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("create digitaltwin without model", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `digitalTwin${Math.floor(Math.random() * 1000)}` + `digitalTwin${Math.floor(Math.random() * 1000)}`, ); await deleteDigitalTwin(digitalTwinId); @@ -176,7 +176,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("create invalid digitaltwin", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await deleteDigitalTwin(digitalTwinId); @@ -203,7 +203,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("create digitaltwin conditionally if missing", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -230,7 +230,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", error.message, `If-None-Match: * header was specified but a twin with the id ` + digitalTwinId + - ` was found. Please specify a different twin id.` + ` was found. Please specify a different twin id.`, ); } finally { await deleteDigitalTwin(digitalTwinId); @@ -242,7 +242,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("update a simple digital twin", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -258,27 +258,27 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", try { const createdTwin: any = await client.upsertDigitalTwin( digitalTwinId, - JSON.stringify(buildingTwin) + JSON.stringify(buildingTwin), ); assert.equal( createdTwin.$dtId, digitalTwinId, - "Unexpected dtId result from upsertDigitalTwin()." + "Unexpected dtId result from upsertDigitalTwin().", ); assert.equal( createdTwin.$metadata.$model, BUILDING_MODEL_ID, - "Unexpected model result from upsertDigitalTwin()." + "Unexpected model result from upsertDigitalTwin().", ); assert.equal( createdTwin.AverageTemperature, buildingTwin["AverageTemperature"], - "Unexpected AverageTemperature result from upsertDigitalTwin()." + "Unexpected AverageTemperature result from upsertDigitalTwin().", ); assert.equal( createdTwin.TemperatureUnit, buildingTwin["TemperatureUnit"], - "Unexpected TemperatureUnit result from upsertDigitalTwin()." + "Unexpected TemperatureUnit result from upsertDigitalTwin().", ); assert.notEqual(createdTwin.$etag, "", "No etag in result from upsertDigitalTwin()."); @@ -286,27 +286,27 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", buildingTwin.AverageTemperature = newTemperature; const updatedTwin: any = await client.upsertDigitalTwin( digitalTwinId, - JSON.stringify(buildingTwin) + JSON.stringify(buildingTwin), ); assert.equal( updatedTwin.$dtId, digitalTwinId, - "Unexpected dtId result from upsertDigitalTwin()." + "Unexpected dtId result from upsertDigitalTwin().", ); assert.equal( updatedTwin.$metadata.$model, BUILDING_MODEL_ID, - "Unexpected model result from upsertDigitalTwin()." + "Unexpected model result from upsertDigitalTwin().", ); assert.equal( updatedTwin.AverageTemperature, newTemperature, - "Unexpected AverageTemperature result from upsertDigitalTwin()." + "Unexpected AverageTemperature result from upsertDigitalTwin().", ); assert.equal( updatedTwin.TemperatureUnit, buildingTwin["TemperatureUnit"], - "Unexpected TemperatureUnit result from upsertDigitalTwin()." + "Unexpected TemperatureUnit result from upsertDigitalTwin().", ); assert.notEqual(updatedTwin.$etag, "", "No etag in result from upsertDigitalTwin()."); } finally { @@ -318,7 +318,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("upsert digital twin invalid conditions", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -341,7 +341,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", errorWasThrown = true; should.equal( error.message, - `Invalid If-None-Match header value. Allowed value(s): If-None-Match: *` + `Invalid If-None-Match header value. Allowed value(s): If-None-Match: *`, ); } finally { await deleteDigitalTwin(digitalTwinId); @@ -353,7 +353,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("get digitaltwin", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -369,7 +369,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", try { const createdTwin = await client.upsertDigitalTwin( digitalTwinId, - JSON.stringify(buildingTwin) + JSON.stringify(buildingTwin), ); const getTwin = await client.getDigitalTwin(digitalTwinId); @@ -383,7 +383,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("get digitaltwin not existing", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -405,7 +405,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("delete digitaltwin", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -447,7 +447,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("delete digitaltwin not existing", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -469,7 +469,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("delete digitaltwin if present", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -514,7 +514,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("delete digital twin invalid conditions", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -539,7 +539,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", errorWasThrown = true; should.equal( error.message, - `Invalid If-Match header value. Allowed value(s): If-Match: {etag} or If-Match: *` + `Invalid If-Match header value. Allowed value(s): If-Match: {etag} or If-Match: *`, ); } finally { await deleteDigitalTwin(digitalTwinId); @@ -551,7 +551,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("update digital twin replace", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -580,12 +580,12 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", assert.equal( updatedTwin.TemperatureUnit, "Celsius", - "Unexpected TemperatureUnit result from updateDigitalTwin()." + "Unexpected TemperatureUnit result from updateDigitalTwin().", ); assert.equal( updatedTwin.AverageTemperature, 42, - "Unexpected TemperatureUnit result from updateDigitalTwin()." + "Unexpected TemperatureUnit result from updateDigitalTwin().", ); } catch (error: any) { errorWasThrown = true; @@ -600,7 +600,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("update digital twin remove", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -628,12 +628,12 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", assert.equal( updatedTwin.TemperatureUnit, "Celsius", - "Unexpected TemperatureUnit result from updateDigitalTwin()." + "Unexpected TemperatureUnit result from updateDigitalTwin().", ); assert.doesNotHaveAnyKeys( updatedTwin, ["AverageTemperature"], - "Unexpected AverageTemperature result from updateDigitalTwin()." + "Unexpected AverageTemperature result from updateDigitalTwin().", ); } catch (error: any) { errorWasThrown = true; @@ -648,7 +648,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("update digital twin add", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -676,12 +676,12 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", assert.equal( updatedTwin.AverageTemperature, 68, - "Unexpected AverageTemperature result from updateDigitalTwin()." + "Unexpected AverageTemperature result from updateDigitalTwin().", ); assert.equal( updatedTwin.TemperatureUnit, "Celsius", - "Unexpected TemperatureUnit result from updateDigitalTwin()." + "Unexpected TemperatureUnit result from updateDigitalTwin().", ); } catch (error: any) { errorWasThrown = true; @@ -696,7 +696,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("update digital twin multiple", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -729,12 +729,12 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", assert.equal( updatedTwin.AverageTemperature, 42, - "Unexpected AverageTemperature result from updateDigitalTwin()." + "Unexpected AverageTemperature result from updateDigitalTwin().", ); assert.equal( updatedTwin.TemperatureUnit, "Celsius", - "Unexpected TemperatureUnit result from updateDigitalTwin()." + "Unexpected TemperatureUnit result from updateDigitalTwin().", ); } catch (error: any) { errorWasThrown = true; @@ -749,7 +749,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("update digital twin invalid patch", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -786,7 +786,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("update digital twin confditionally if present", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -817,7 +817,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", assert.equal( updatedTwin.AverageTemperature, 42, - "Unexpected TemperatureUnit result from updateDigitalTwin()." + "Unexpected TemperatureUnit result from updateDigitalTwin().", ); } catch (error: any) { errorWasThrown = true; @@ -832,7 +832,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("update digital twin invalid conditions", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -864,7 +864,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", errorWasThrown = true; should.equal( error.message, - `Invalid If-Match header value. Allowed value(s): If-Match: {etag} or If-Match: *` + `Invalid If-Match header value. Allowed value(s): If-Match: {etag} or If-Match: *`, ); } finally { await deleteDigitalTwin(digitalTwinId); @@ -876,7 +876,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("update digital twin not existing", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -906,7 +906,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("query digital twin", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); @@ -946,7 +946,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", it("query digital twin invalid expression", async function () { const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); await deleteDigitalTwins(); @@ -961,7 +961,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", assert.include( error.message, "SQL query parse failed", - "Unexpected error from queryTwins()." + "Unexpected error from queryTwins().", ); } finally { await deleteDigitalTwin(digitalTwinId); @@ -976,7 +976,7 @@ describe("DigitalTwins - create, read, update, delete and telemetry operations", } const digitalTwinId = recorder.variable( "digitalTwin", - `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}` + `create-simple-digitaltwin-${Math.floor(Math.random() * 1000)}`, ); await setUpModels(); diff --git a/sdk/digitaltwins/digital-twins-core/test/public/testEventRoutes.spec.ts b/sdk/digitaltwins/digital-twins-core/test/public/testEventRoutes.spec.ts index 42db889f70b5..7dab53fbc9e3 100644 --- a/sdk/digitaltwins/digital-twins-core/test/public/testEventRoutes.spec.ts +++ b/sdk/digitaltwins/digital-twins-core/test/public/testEventRoutes.spec.ts @@ -26,7 +26,7 @@ describe("DigitalTwins EventRoutes - create, read, list and delete operations", it("create event route no endpoint", async function () { const eventRouteId = recorder.variable( "eventRoute", - `eventRoute${Math.floor(Math.random() * 1000)}` + `eventRoute${Math.floor(Math.random() * 1000)}`, ); const eventFilter = "$eventType = 'DigitalTwinTelemetryMessages' or $eventType = 'DigitalTwinLifecycleNotification'"; @@ -45,7 +45,7 @@ describe("DigitalTwins EventRoutes - create, read, list and delete operations", it("get event route not existing", async function () { const eventRouteId = recorder.variable( "eventRoute", - `eventRoute${Math.floor(Math.random() * 1000)}` + `eventRoute${Math.floor(Math.random() * 1000)}`, ); let errorWasThrown = false; @@ -68,7 +68,7 @@ describe("DigitalTwins EventRoutes - create, read, list and delete operations", it("delete event route not existing", async function () { const eventRouteId = recorder.variable( "eventRoute", - `eventRoute${Math.floor(Math.random() * 1000)}` + `eventRoute${Math.floor(Math.random() * 1000)}`, ); let errorWasThrown = false; diff --git a/sdk/digitaltwins/digital-twins-core/test/public/testModels.spec.ts b/sdk/digitaltwins/digital-twins-core/test/public/testModels.spec.ts index 9e3387d3a6e5..fcb3c1fa718b 100644 --- a/sdk/digitaltwins/digital-twins-core/test/public/testModels.spec.ts +++ b/sdk/digitaltwins/digital-twins-core/test/public/testModels.spec.ts @@ -111,8 +111,8 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { errorWasThrown = true; assert.isTrue( error.message.includes( - "Operation failed as models provided was empty or of a type that is not supported." - ) || error.message.includes(`should satisfy the constraint "MinItems`) + "Operation failed as models provided was empty or of a type that is not supported.", + ) || error.message.includes(`should satisfy the constraint "MinItems`), ); } should.equal(errorWasThrown, true, "Error was not thrown"); @@ -127,12 +127,12 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { assert.equal( models[0].id, testComponent["@id"], - "Unexpected component in result from createModels()." + "Unexpected component in result from createModels().", ); assert.equal( models[1].id, testModel["@id"], - "Unexpected model in result from createModels()." + "Unexpected model in result from createModels().", ); } finally { await deleteModels(); @@ -181,7 +181,7 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { errorWasThrown = true; assert.include( error.message, - `None of the models in this request could be created due to a problem with one or more models` + `None of the models in this request could be created due to a problem with one or more models`, ); } finally { await deleteModels(); @@ -223,7 +223,7 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { errorWasThrown = true; assert.include( error.message, - `None of the models in this request could be created due to a problem with one or more models` + `None of the models in this request could be created due to a problem with one or more models`, ); } finally { await deleteModels(); @@ -239,7 +239,7 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { assert.equal( model.id, testComponent["@id"], - "Unexpected component in result from getModel()." + "Unexpected component in result from getModel().", ); } finally { await deleteModels(); @@ -254,7 +254,7 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { assert.equal( model.id, testComponent["@id"], - "Unexpected component in result from getModel()." + "Unexpected component in result from getModel().", ); } finally { await deleteModels(); @@ -271,7 +271,7 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { errorWasThrown = true; assert.include( error.message, - `There is no Model(s) available that matches the provided id(s)` + `There is no Model(s) available that matches the provided id(s)`, ); } should.equal(errorWasThrown, true, "Error was not thrown"); @@ -339,7 +339,7 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { assert.equal( model1.id, testComponent["@id"], - "Unexpected component in result from getModel()." + "Unexpected component in result from getModel().", ); assert.equal(model1.decommissioned, false, "Unexpected result from getModel()."); @@ -348,7 +348,7 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { assert.equal( model2.id, testComponent["@id"], - "Unexpected component in result from getModel()." + "Unexpected component in result from getModel().", ); assert.equal(model2.decommissioned, true, "Unexpected result from getModel()."); } finally { @@ -369,7 +369,7 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { errorWasThrown = true; assert.include( error.message, - `There is no Model(s) available that matches the provided id(s)` + `There is no Model(s) available that matches the provided id(s)`, ); } finally { await deleteModels(); @@ -387,7 +387,7 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { assert.equal( model1.id, testComponent["@id"], - "Unexpected component in result from getModel()." + "Unexpected component in result from getModel().", ); assert.equal(model1.decommissioned, false, "Unexpected result from getModel()."); @@ -396,7 +396,7 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { assert.equal( model2.id, testComponent["@id"], - "Unexpected component in result from getModel()." + "Unexpected component in result from getModel().", ); assert.equal(model2.decommissioned, true, "Unexpected result from getModel()."); @@ -405,7 +405,7 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { assert.equal( model3.id, testComponent["@id"], - "Unexpected component in result from getModel()." + "Unexpected component in result from getModel().", ); assert.equal(model3.decommissioned, true, "Unexpected result from getModel()."); } finally { @@ -425,7 +425,7 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { errorWasThrown = true; assert.include( error.message, - `There is no Model(s) available that matches the provided id(s)` + `There is no Model(s) available that matches the provided id(s)`, ); } should.equal(errorWasThrown, true, "Error was not thrown 1"); @@ -438,7 +438,7 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { errorWasThrown = true; assert.include( error.message, - `There is no Model(s) available that matches the provided id(s)` + `There is no Model(s) available that matches the provided id(s)`, ); } should.equal(errorWasThrown, true, "Error was not thrown 2"); @@ -457,7 +457,7 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { errorWasThrown = true; assert.include( error.message, - `There is no Model(s) available that matches the provided id(s)` + `There is no Model(s) available that matches the provided id(s)`, ); } finally { await deleteModels(); @@ -477,7 +477,7 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { errorWasThrown = true; assert.include( error.message, - `There is no Model(s) available that matches the provided id(s)` + `There is no Model(s) available that matches the provided id(s)`, ); } finally { await deleteModels(); @@ -508,7 +508,7 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { errorWasThrown = true; assert.include( error.message, - `There is no Model(s) available that matches the provided id(s)` + `There is no Model(s) available that matches the provided id(s)`, ); } should.equal(errorWasThrown, true, "Error was not thrown 2"); @@ -520,7 +520,7 @@ describe("DigitalTwins Models - create, read, list, delete operations", () => { errorWasThrown = true; assert.include( error.message, - `There is no Model(s) available that matches the provided id(s)` + `There is no Model(s) available that matches the provided id(s)`, ); } should.equal(errorWasThrown, true, "Error was not thrown"); diff --git a/sdk/digitaltwins/digital-twins-core/test/public/testRelationships.spec.ts b/sdk/digitaltwins/digital-twins-core/test/public/testRelationships.spec.ts index 965aa6cbec02..eb0dc6e7f5e5 100644 --- a/sdk/digitaltwins/digital-twins-core/test/public/testRelationships.spec.ts +++ b/sdk/digitaltwins/digital-twins-core/test/public/testRelationships.spec.ts @@ -222,26 +222,26 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( const createdRelationship: any = await client.upsertRelationship( FLOOR_DIGITAL_TWIN_ID, relationshipId, - relationship + relationship, ); assert.equal( createdRelationship.$relationshipId, relationship.$relationshipId, - "Unexpected relationshipId result from upsertRelationship()." + "Unexpected relationshipId result from upsertRelationship().", ); assert.equal( createdRelationship.$sourceId, relationship.$sourceId, - "Unexpected sourceId result from upsertRelationship()." + "Unexpected sourceId result from upsertRelationship().", ); assert.equal( createdRelationship.$targetId, relationship.$targetId, - "Unexpected targetId result from upsertRelationship()." + "Unexpected targetId result from upsertRelationship().", ); assert.isNotNull( createdRelationship.$etag, - "Unexpected eTag result from upsertRelationship()." + "Unexpected eTag result from upsertRelationship().", ); } finally { await cleanup(FLOOR_DIGITAL_TWIN_ID, relationshipId); @@ -315,26 +315,26 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( FLOOR_DIGITAL_TWIN_ID, relationshipId, relationship, - options + options, ); assert.equal( createdRelationship.$relationshipId, relationship.$relationshipId, - "Unexpected relationshipId result from upsertRelationship()." + "Unexpected relationshipId result from upsertRelationship().", ); assert.equal( createdRelationship.$sourceId, relationship.$sourceId, - "Unexpected sourceId result from upsertRelationship()." + "Unexpected sourceId result from upsertRelationship().", ); assert.equal( createdRelationship.$targetId, relationship.$targetId, - "Unexpected targetId result from upsertRelationship()." + "Unexpected targetId result from upsertRelationship().", ); assert.isNotNull( createdRelationship.$etag, - "Unexpected eTag result from upsertRelationship()." + "Unexpected eTag result from upsertRelationship().", ); let errorWasThrown = false; @@ -343,7 +343,7 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( FLOOR_DIGITAL_TWIN_ID, relationshipId, relationship, - options + options, ); } catch (error: any) { errorWasThrown = true; @@ -372,62 +372,62 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( const createdRelationship: any = await client.upsertRelationship( BUILDING_DIGITAL_TWIN_ID, relationshipId, - relationship + relationship, ); assert.equal( createdRelationship.$relationshipId, relationship.$relationshipId, - "Unexpected relationshipId result from upsertRelationship()." + "Unexpected relationshipId result from upsertRelationship().", ); assert.equal( createdRelationship.$sourceId, relationship.$sourceId, - "Unexpected sourceId result from upsertRelationship()." + "Unexpected sourceId result from upsertRelationship().", ); assert.equal( createdRelationship.$targetId, relationship.$targetId, - "Unexpected targetId result from upsertRelationship()." + "Unexpected targetId result from upsertRelationship().", ); assert.isNotNull( createdRelationship.$etag, - "Unexpected eTag result from upsertRelationship()." + "Unexpected eTag result from upsertRelationship().", ); assert.equal( createdRelationship.isAccessRestricted, false, - "Unexpected isAccessRestricted result from upsertRelationship()." + "Unexpected isAccessRestricted result from upsertRelationship().", ); relationship.isAccessRestricted = true; const updatedRelationship: any = await client.upsertRelationship( BUILDING_DIGITAL_TWIN_ID, relationshipId, - relationship + relationship, ); assert.equal( updatedRelationship.$relationshipId, relationship.$relationshipId, - "Unexpected relationshipId result from upsertRelationship()." + "Unexpected relationshipId result from upsertRelationship().", ); assert.equal( updatedRelationship.$sourceId, relationship.$sourceId, - "Unexpected sourceId result from upsertRelationship()." + "Unexpected sourceId result from upsertRelationship().", ); assert.equal( updatedRelationship.$targetId, relationship.$targetId, - "Unexpected targetId result from upsertRelationship()." + "Unexpected targetId result from upsertRelationship().", ); assert.isNotNull( updatedRelationship.$etag, - "Unexpected eTag result from upsertRelationship()." + "Unexpected eTag result from upsertRelationship().", ); assert.equal( updatedRelationship.isAccessRestricted, true, - "Unexpected isAccessRestricted result from upsertRelationship()." + "Unexpected isAccessRestricted result from upsertRelationship().", ); } finally { await cleanup(BUILDING_DIGITAL_TWIN_ID, relationshipId); @@ -451,61 +451,61 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( const createdRelationship: any = await client.upsertRelationship( BUILDING_DIGITAL_TWIN_ID, relationshipId, - relationship + relationship, ); assert.equal( createdRelationship.$relationshipId, relationship.$relationshipId, - "Unexpected relationshipId result from upsertRelationship()." + "Unexpected relationshipId result from upsertRelationship().", ); assert.equal( createdRelationship.$sourceId, relationship.$sourceId, - "Unexpected sourceId result from upsertRelationship()." + "Unexpected sourceId result from upsertRelationship().", ); assert.equal( createdRelationship.$targetId, relationship.$targetId, - "Unexpected targetId result from upsertRelationship()." + "Unexpected targetId result from upsertRelationship().", ); assert.isNotNull( createdRelationship.$etag, - "Unexpected eTag result from upsertRelationship()." + "Unexpected eTag result from upsertRelationship().", ); assert.equal( createdRelationship.isAccessRestricted, false, - "Unexpected isAccessRestricted result from upsertRelationship()." + "Unexpected isAccessRestricted result from upsertRelationship().", ); const getRelationship: any = await client.getRelationship( BUILDING_DIGITAL_TWIN_ID, - relationshipId + relationshipId, ); assert.equal( getRelationship.$relationshipId, createdRelationship.$relationshipId, - "Unexpected relationshipId result from upsertRelationship()." + "Unexpected relationshipId result from upsertRelationship().", ); assert.equal( getRelationship.$sourceId, createdRelationship.$sourceId, - "Unexpected sourceId result from upsertRelationship()." + "Unexpected sourceId result from upsertRelationship().", ); assert.equal( getRelationship.$targetId, createdRelationship.$targetId, - "Unexpected targetId result from upsertRelationship()." + "Unexpected targetId result from upsertRelationship().", ); assert.equal( getRelationship.$etag, createdRelationship.$etag, - "Unexpected eTag result from upsertRelationship()." + "Unexpected eTag result from upsertRelationship().", ); assert.equal( getRelationship.isAccessRestricted, createdRelationship.isAccessRestricted, - "Unexpected isAccessRestricted result from upsertRelationship()." + "Unexpected isAccessRestricted result from upsertRelationship().", ); } finally { await cleanup(BUILDING_DIGITAL_TWIN_ID, relationshipId); @@ -525,7 +525,7 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( errorWasThrown = true; assert.include( error.message, - `Relationship ` + relationshipId + ` not found on twin ` + BUILDING_DIGITAL_TWIN_ID + `Relationship ` + relationshipId + ` not found on twin ` + BUILDING_DIGITAL_TWIN_ID, ); should.equal(errorWasThrown, true, "Error was not thrown"); } finally { @@ -549,31 +549,31 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( const createdRelationship: any = await client.upsertRelationship( BUILDING_DIGITAL_TWIN_ID, relationshipId, - relationship + relationship, ); assert.equal( createdRelationship.$relationshipId, relationship.$relationshipId, - "Unexpected relationshipId result from upsertRelationship()." + "Unexpected relationshipId result from upsertRelationship().", ); assert.equal( createdRelationship.$sourceId, relationship.$sourceId, - "Unexpected sourceId result from upsertRelationship()." + "Unexpected sourceId result from upsertRelationship().", ); assert.equal( createdRelationship.$targetId, relationship.$targetId, - "Unexpected targetId result from upsertRelationship()." + "Unexpected targetId result from upsertRelationship().", ); assert.isNotNull( createdRelationship.$etag, - "Unexpected eTag result from upsertRelationship()." + "Unexpected eTag result from upsertRelationship().", ); assert.equal( createdRelationship.isAccessRestricted, false, - "Unexpected isAccessRestricted result from upsertRelationship()." + "Unexpected isAccessRestricted result from upsertRelationship().", ); await client.deleteRelationship(BUILDING_DIGITAL_TWIN_ID, relationshipId); @@ -585,7 +585,7 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( errorWasThrown = true; assert.include( error.message, - `Relationship ` + relationshipId + ` not found on twin ` + BUILDING_DIGITAL_TWIN_ID + `Relationship ` + relationshipId + ` not found on twin ` + BUILDING_DIGITAL_TWIN_ID, ); should.equal(errorWasThrown, true, "Error was not thrown"); } @@ -607,7 +607,7 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( errorWasThrown = true; assert.include( error.message, - `Relationship ` + relationshipId + ` not found on twin ` + BUILDING_DIGITAL_TWIN_ID + `Relationship ` + relationshipId + ` not found on twin ` + BUILDING_DIGITAL_TWIN_ID, ); should.equal(errorWasThrown, true, "Error was not thrown"); } finally { @@ -632,31 +632,31 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( const createdRelationship: any = await client.upsertRelationship( BUILDING_DIGITAL_TWIN_ID, relationshipId, - relationship + relationship, ); assert.equal( createdRelationship.$relationshipId, relationship.$relationshipId, - "Unexpected relationshipId result from upsertRelationship()." + "Unexpected relationshipId result from upsertRelationship().", ); assert.equal( createdRelationship.$sourceId, relationship.$sourceId, - "Unexpected sourceId result from upsertRelationship()." + "Unexpected sourceId result from upsertRelationship().", ); assert.equal( createdRelationship.$targetId, relationship.$targetId, - "Unexpected targetId result from upsertRelationship()." + "Unexpected targetId result from upsertRelationship().", ); assert.isNotNull( createdRelationship.$etag, - "Unexpected eTag result from upsertRelationship()." + "Unexpected eTag result from upsertRelationship().", ); assert.equal( createdRelationship.isAccessRestricted, false, - "Unexpected isAccessRestricted result from upsertRelationship()." + "Unexpected isAccessRestricted result from upsertRelationship().", ); const patch = [ @@ -669,26 +669,26 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( const updatedRelationship = await client.updateRelationship( BUILDING_DIGITAL_TWIN_ID, relationshipId, - patch + patch, ); assert.isNotNull( updatedRelationship.etag, - "Unexpected eTag result from updateRelationship()." + "Unexpected eTag result from updateRelationship().", ); const getRelationship: any = await client.getRelationship( BUILDING_DIGITAL_TWIN_ID, - relationshipId + relationshipId, ); assert.equal( getRelationship.etag, updatedRelationship.etag, - "Unexpected eTag result from getRelationship()." + "Unexpected eTag result from getRelationship().", ); assert.equal( getRelationship.isAccessRestricted, true, - "Unexpected isAccessRestricted result from getRelationship()." + "Unexpected isAccessRestricted result from getRelationship().", ); } finally { await cleanup(BUILDING_DIGITAL_TWIN_ID, relationshipId); @@ -712,31 +712,31 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( const createdRelationship: any = await client.upsertRelationship( BUILDING_DIGITAL_TWIN_ID, relationshipId, - relationship + relationship, ); assert.equal( createdRelationship.$relationshipId, relationship.$relationshipId, - "Unexpected relationshipId result from upsertRelationship()." + "Unexpected relationshipId result from upsertRelationship().", ); assert.equal( createdRelationship.$sourceId, relationship.$sourceId, - "Unexpected sourceId result from upsertRelationship()." + "Unexpected sourceId result from upsertRelationship().", ); assert.equal( createdRelationship.$targetId, relationship.$targetId, - "Unexpected targetId result from upsertRelationship()." + "Unexpected targetId result from upsertRelationship().", ); assert.isNotNull( createdRelationship.$etag, - "Unexpected eTag result from upsertRelationship()." + "Unexpected eTag result from upsertRelationship().", ); assert.equal( createdRelationship.isAccessRestricted, false, - "Unexpected isAccessRestricted result from upsertRelationship()." + "Unexpected isAccessRestricted result from upsertRelationship().", ); const patch = [ @@ -748,25 +748,25 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( const updatedRelationship = await client.updateRelationship( BUILDING_DIGITAL_TWIN_ID, relationshipId, - patch + patch, ); assert.isNotNull( updatedRelationship.etag, - "Unexpected eTag result from updateRelationship()." + "Unexpected eTag result from updateRelationship().", ); const getRelationship: any = await client.getRelationship( BUILDING_DIGITAL_TWIN_ID, - relationshipId + relationshipId, ); assert.equal( getRelationship.etag, updatedRelationship.etag, - "Unexpected eTag result from getRelationship()." + "Unexpected eTag result from getRelationship().", ); assert.isUndefined( getRelationship.isAccessRestricted, - "Unexpected isAccessRestricted result from getRelationship()." + "Unexpected isAccessRestricted result from getRelationship().", ); } finally { await cleanup(BUILDING_DIGITAL_TWIN_ID, relationshipId); @@ -790,31 +790,31 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( const createdRelationship: any = await client.upsertRelationship( BUILDING_DIGITAL_TWIN_ID, relationshipId, - relationship + relationship, ); assert.equal( createdRelationship.$relationshipId, relationship.$relationshipId, - "Unexpected relationshipId result from upsertRelationship()." + "Unexpected relationshipId result from upsertRelationship().", ); assert.equal( createdRelationship.$sourceId, relationship.$sourceId, - "Unexpected sourceId result from upsertRelationship()." + "Unexpected sourceId result from upsertRelationship().", ); assert.equal( createdRelationship.$targetId, relationship.$targetId, - "Unexpected targetId result from upsertRelationship()." + "Unexpected targetId result from upsertRelationship().", ); assert.isNotNull( createdRelationship.$etag, - "Unexpected eTag result from upsertRelationship()." + "Unexpected eTag result from upsertRelationship().", ); assert.equal( createdRelationship.isAccessRestricted, false, - "Unexpected isAccessRestricted result from upsertRelationship()." + "Unexpected isAccessRestricted result from upsertRelationship().", ); const remove_patch = [ @@ -835,26 +835,26 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( const updatedRelationship = await client.updateRelationship( BUILDING_DIGITAL_TWIN_ID, relationshipId, - patch + patch, ); assert.isNotNull( updatedRelationship.etag, - "Unexpected eTag result from updateRelationship()." + "Unexpected eTag result from updateRelationship().", ); const getRelationship: any = await client.getRelationship( BUILDING_DIGITAL_TWIN_ID, - relationshipId + relationshipId, ); assert.equal( getRelationship.etag, updatedRelationship.etag, - "Unexpected eTag result from getRelationship()." + "Unexpected eTag result from getRelationship().", ); assert.equal( getRelationship.isAccessRestricted, true, - "Unexpected isAccessRestricted result from getRelationship()." + "Unexpected isAccessRestricted result from getRelationship().", ); } finally { await cleanup(BUILDING_DIGITAL_TWIN_ID, relationshipId); @@ -878,31 +878,31 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( const createdRelationship: any = await client.upsertRelationship( BUILDING_DIGITAL_TWIN_ID, relationshipId, - relationship + relationship, ); assert.equal( createdRelationship.$relationshipId, relationship.$relationshipId, - "Unexpected relationshipId result from upsertRelationship()." + "Unexpected relationshipId result from upsertRelationship().", ); assert.equal( createdRelationship.$sourceId, relationship.$sourceId, - "Unexpected sourceId result from upsertRelationship()." + "Unexpected sourceId result from upsertRelationship().", ); assert.equal( createdRelationship.$targetId, relationship.$targetId, - "Unexpected targetId result from upsertRelationship()." + "Unexpected targetId result from upsertRelationship().", ); assert.isNotNull( createdRelationship.$etag, - "Unexpected eTag result from upsertRelationship()." + "Unexpected eTag result from upsertRelationship().", ); assert.equal( createdRelationship.isAccessRestricted, false, - "Unexpected isAccessRestricted result from upsertRelationship()." + "Unexpected isAccessRestricted result from upsertRelationship().", ); const patch = [ @@ -919,25 +919,25 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( const updatedRelationship = await client.updateRelationship( BUILDING_DIGITAL_TWIN_ID, relationshipId, - patch + patch, ); assert.isNotNull( updatedRelationship.etag, - "Unexpected eTag result from updateRelationship()." + "Unexpected eTag result from updateRelationship().", ); const getRelationship: any = await client.getRelationship( BUILDING_DIGITAL_TWIN_ID, - relationshipId + relationshipId, ); assert.equal( getRelationship.etag, updatedRelationship.etag, - "Unexpected eTag result from getRelationship()." + "Unexpected eTag result from getRelationship().", ); assert.isUndefined( getRelationship.isAccessRestricted, - "Unexpected isAccessRestricted result from getRelationship()." + "Unexpected isAccessRestricted result from getRelationship().", ); } finally { await cleanup(BUILDING_DIGITAL_TWIN_ID, relationshipId); @@ -961,31 +961,31 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( const createdRelationship: any = await client.upsertRelationship( BUILDING_DIGITAL_TWIN_ID, relationshipId, - relationship + relationship, ); assert.equal( createdRelationship.$relationshipId, relationship.$relationshipId, - "Unexpected relationshipId result from upsertRelationship()." + "Unexpected relationshipId result from upsertRelationship().", ); assert.equal( createdRelationship.$sourceId, relationship.$sourceId, - "Unexpected sourceId result from upsertRelationship()." + "Unexpected sourceId result from upsertRelationship().", ); assert.equal( createdRelationship.$targetId, relationship.$targetId, - "Unexpected targetId result from upsertRelationship()." + "Unexpected targetId result from upsertRelationship().", ); assert.isNotNull( createdRelationship.$etag, - "Unexpected eTag result from upsertRelationship()." + "Unexpected eTag result from upsertRelationship().", ); assert.equal( createdRelationship.isAccessRestricted, false, - "Unexpected isAccessRestricted result from upsertRelationship()." + "Unexpected isAccessRestricted result from upsertRelationship().", ); const patch1 = [ @@ -1016,7 +1016,7 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( errorWasThrown = true; assert.include( error.message, - `The target location specified by path segment 'isAccessDoorRestricted' was not found` + `The target location specified by path segment 'isAccessDoorRestricted' was not found`, ); should.equal(errorWasThrown, true, "Error was not thrown"); } @@ -1066,31 +1066,31 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( const createdRelationship: any = await client.upsertRelationship( BUILDING_DIGITAL_TWIN_ID, relationshipId, - relationship + relationship, ); assert.equal( createdRelationship.$relationshipId, relationship.$relationshipId, - "Unexpected relationshipId result from upsertRelationship()." + "Unexpected relationshipId result from upsertRelationship().", ); assert.equal( createdRelationship.$sourceId, relationship.$sourceId, - "Unexpected sourceId result from upsertRelationship()." + "Unexpected sourceId result from upsertRelationship().", ); assert.equal( createdRelationship.$targetId, relationship.$targetId, - "Unexpected targetId result from upsertRelationship()." + "Unexpected targetId result from upsertRelationship().", ); assert.isNotNull( createdRelationship.$etag, - "Unexpected eTag result from upsertRelationship()." + "Unexpected eTag result from upsertRelationship().", ); assert.equal( createdRelationship.isAccessRestricted, false, - "Unexpected isAccessRestricted result from upsertRelationship()." + "Unexpected isAccessRestricted result from upsertRelationship().", ); const patch = [ @@ -1106,26 +1106,26 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( BUILDING_DIGITAL_TWIN_ID, relationshipId, patch, - options + options, ); assert.isNotNull( updatedRelationship.etag, - "Unexpected eTag result from updateRelationship()." + "Unexpected eTag result from updateRelationship().", ); const getRelationship: any = await client.getRelationship( BUILDING_DIGITAL_TWIN_ID, - relationshipId + relationshipId, ); assert.equal( getRelationship.etag, updatedRelationship.etag, - "Unexpected eTag result from getRelationship()." + "Unexpected eTag result from getRelationship().", ); assert.equal( getRelationship.isAccessRestricted, true, - "Unexpected isAccessRestricted result from getRelationship()." + "Unexpected isAccessRestricted result from getRelationship().", ); } finally { await cleanup(BUILDING_DIGITAL_TWIN_ID, relationshipId); @@ -1174,26 +1174,26 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( const createdRelationship: any = await client.upsertRelationship( BUILDING_DIGITAL_TWIN_ID, relationshipId, - relationship + relationship, ); assert.equal( createdRelationship.$relationshipId, relationship.$relationshipId, - "Unexpected relationshipId result from upsertRelationship()." + "Unexpected relationshipId result from upsertRelationship().", ); assert.equal( createdRelationship.$sourceId, relationship.$sourceId, - "Unexpected sourceId result from upsertRelationship()." + "Unexpected sourceId result from upsertRelationship().", ); assert.equal( createdRelationship.$targetId, relationship.$targetId, - "Unexpected targetId result from upsertRelationship()." + "Unexpected targetId result from upsertRelationship().", ); assert.isNotNull( createdRelationship.$etag, - "Unexpected eTag result from upsertRelationship()." + "Unexpected eTag result from upsertRelationship().", ); let relationshipFound = false; @@ -1229,26 +1229,26 @@ describe("DigitalTwins Relationships - create, read, list, delete operations", ( const createdRelationship: any = await client.upsertRelationship( BUILDING_DIGITAL_TWIN_ID, relationshipId, - relationship + relationship, ); assert.equal( createdRelationship.$relationshipId, relationship.$relationshipId, - "Unexpected relationshipId result from upsertRelationship()." + "Unexpected relationshipId result from upsertRelationship().", ); assert.equal( createdRelationship.$sourceId, relationship.$sourceId, - "Unexpected sourceId result from upsertRelationship()." + "Unexpected sourceId result from upsertRelationship().", ); assert.equal( createdRelationship.$targetId, relationship.$targetId, - "Unexpected targetId result from upsertRelationship()." + "Unexpected targetId result from upsertRelationship().", ); assert.isNotNull( createdRelationship.$etag, - "Unexpected eTag result from upsertRelationship()." + "Unexpected eTag result from upsertRelationship().", ); let relationshipFound = false; diff --git a/sdk/digitaltwins/digital-twins-core/test/utils/testAuthentication.ts b/sdk/digitaltwins/digital-twins-core/test/utils/testAuthentication.ts index 38f8aae35fb7..b7058955168d 100644 --- a/sdk/digitaltwins/digital-twins-core/test/utils/testAuthentication.ts +++ b/sdk/digitaltwins/digital-twins-core/test/utils/testAuthentication.ts @@ -20,7 +20,7 @@ export async function authenticate(that: Mocha.Context): Promise { const client = new DigitalTwinsClient( AZURE_DIGITALTWINS_URL, credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); return { recorder, client }; diff --git a/sdk/documentintelligence/ai-document-intelligence-rest/package.json b/sdk/documentintelligence/ai-document-intelligence-rest/package.json index 9a3f769055e7..e5dea82a07ae 100644 --- a/sdk/documentintelligence/ai-document-intelligence-rest/package.json +++ b/sdk/documentintelligence/ai-document-intelligence-rest/package.json @@ -38,11 +38,11 @@ "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "generate:client": "echo skipped", "integration-test:browser": "echo skipped", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -77,7 +77,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^2.1.2", - "prettier": "^2.5.1", "rimraf": "^5.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/documentintelligence/ai-document-intelligence-rest/src/clientDefinitions.ts b/sdk/documentintelligence/ai-document-intelligence-rest/src/clientDefinitions.ts index e2bdfebf6ff6..c0b7a2991033 100644 --- a/sdk/documentintelligence/ai-document-intelligence-rest/src/clientDefinitions.ts +++ b/sdk/documentintelligence/ai-document-intelligence-rest/src/clientDefinitions.ts @@ -82,91 +82,91 @@ import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface ListOperations { /** Lists all operations. */ get( - options?: ListOperationsParameters + options?: ListOperationsParameters, ): StreamableMethod; } export interface GetDocumentModelBuildOperation { /** Gets operation info. */ get( - options?: GetDocumentModelBuildOperationParameters + options?: GetDocumentModelBuildOperationParameters, ): StreamableMethod< GetDocumentModelBuildOperation200Response | GetDocumentModelBuildOperationDefaultResponse >; /** Gets operation info. */ get( - options?: GetDocumentModelComposeOperationParameters + options?: GetDocumentModelComposeOperationParameters, ): StreamableMethod< GetDocumentModelComposeOperation200Response | GetDocumentModelComposeOperationDefaultResponse >; /** Gets operation info. */ get( - options?: GetDocumentModelCopyToOperationParameters + options?: GetDocumentModelCopyToOperationParameters, ): StreamableMethod< GetDocumentModelCopyToOperation200Response | GetDocumentModelCopyToOperationDefaultResponse >; /** Gets operation info. */ get( - options?: GetDocumentClassifierBuildOperationParameters + options?: GetDocumentClassifierBuildOperationParameters, ): StreamableMethod< | GetDocumentClassifierBuildOperation200Response | GetDocumentClassifierBuildOperationDefaultResponse >; /** Gets operation info. */ get( - options?: GetOperationParameters + options?: GetOperationParameters, ): StreamableMethod; } export interface GetResourceInfo { /** Return information about the current resource. */ get( - options?: GetResourceInfoParameters + options?: GetResourceInfoParameters, ): StreamableMethod; } export interface GetAnalyzeResult { /** Gets the result of document analysis. */ get( - options?: GetAnalyzeResultParameters + options?: GetAnalyzeResultParameters, ): StreamableMethod; } export interface AnalyzeDocumentFromStream { /** Analyzes document with document model. */ post( - options: AnalyzeDocumentFromStreamParameters + options: AnalyzeDocumentFromStreamParameters, ): StreamableMethod< AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamDefaultResponse >; /** Analyzes document with document model. */ post( - options: AnalyzeDocumentParameters + options: AnalyzeDocumentParameters, ): StreamableMethod; } export interface GetModel { /** Gets detailed document model information. */ get( - options?: GetModelParameters + options?: GetModelParameters, ): StreamableMethod; /** Deletes document model. */ delete( - options?: DeleteModelParameters + options?: DeleteModelParameters, ): StreamableMethod; } export interface BuildModel { /** Builds a custom document analysis model. */ post( - options: BuildModelParameters + options: BuildModelParameters, ): StreamableMethod; } export interface ComposeModel { /** Creates a new document model from document types of existing document models. */ post( - options: ComposeModelParameters + options: ComposeModelParameters, ): StreamableMethod; } @@ -176,66 +176,66 @@ export interface AuthorizeModelCopy { * specified modelId and optional description. */ post( - options: AuthorizeModelCopyParameters + options: AuthorizeModelCopyParameters, ): StreamableMethod; } export interface CopyModelTo { /** Copies document model to the target resource, region, and modelId. */ post( - options: CopyModelToParameters + options: CopyModelToParameters, ): StreamableMethod; } export interface ListModels { /** List all document models */ get( - options?: ListModelsParameters + options?: ListModelsParameters, ): StreamableMethod; } export interface BuildClassifier { /** Builds a custom document classifier. */ post( - options: BuildClassifierParameters + options: BuildClassifierParameters, ): StreamableMethod; } export interface ListClassifiers { /** List all document classifiers. */ get( - options?: ListClassifiersParameters + options?: ListClassifiersParameters, ): StreamableMethod; } export interface GetClassifier { /** Gets detailed document classifier information. */ get( - options?: GetClassifierParameters + options?: GetClassifierParameters, ): StreamableMethod; /** Deletes document classifier. */ delete( - options?: DeleteClassifierParameters + options?: DeleteClassifierParameters, ): StreamableMethod; } export interface ClassifyDocumentFromStream { /** Classifies document with document classifier. */ post( - options: ClassifyDocumentFromStreamParameters + options: ClassifyDocumentFromStreamParameters, ): StreamableMethod< ClassifyDocumentFromStream202Response | ClassifyDocumentFromStreamDefaultResponse >; /** Classifies document with document classifier. */ post( - options: ClassifyDocumentParameters + options: ClassifyDocumentParameters, ): StreamableMethod; } export interface GetClassifyResult { /** Gets the result of document classifier. */ get( - options?: GetClassifyResultParameters + options?: GetClassifyResultParameters, ): StreamableMethod; } @@ -250,7 +250,7 @@ export interface Routes { ( path: "/documentModels/{modelId}/analyzeResults/{resultId}", modelId: string, - resultId: string + resultId: string, ): GetAnalyzeResult; /** Resource for '/documentModels/\{modelId\}:analyze' has methods for the following verbs: post */ (path: "/documentModels/{modelId}:analyze", modelId: string): AnalyzeDocumentFromStream; @@ -275,13 +275,13 @@ export interface Routes { /** Resource for '/documentClassifiers/\{classifierId\}:analyze' has methods for the following verbs: post */ ( path: "/documentClassifiers/{classifierId}:analyze", - classifierId: string + classifierId: string, ): ClassifyDocumentFromStream; /** Resource for '/documentClassifiers/\{classifierId\}/analyzeResults/\{resultId\}' has methods for the following verbs: get */ ( path: "/documentClassifiers/{classifierId}/analyzeResults/{resultId}", classifierId: string, - resultId: string + resultId: string, ): GetClassifyResult; } diff --git a/sdk/documentintelligence/ai-document-intelligence-rest/src/documentIntelligence.ts b/sdk/documentintelligence/ai-document-intelligence-rest/src/documentIntelligence.ts index a5e34da476bc..b817c98ef1f5 100644 --- a/sdk/documentintelligence/ai-document-intelligence-rest/src/documentIntelligence.ts +++ b/sdk/documentintelligence/ai-document-intelligence-rest/src/documentIntelligence.ts @@ -15,7 +15,7 @@ import { DocumentIntelligenceClient } from "./clientDefinitions"; export default function createClient( endpoint: string, credentials: TokenCredential | KeyCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): DocumentIntelligenceClient { const baseUrl = options.baseUrl ?? `${endpoint}/documentintelligence`; options.apiVersion = options.apiVersion ?? "2023-10-31-preview"; diff --git a/sdk/documentintelligence/ai-document-intelligence-rest/src/isUnexpected.ts b/sdk/documentintelligence/ai-document-intelligence-rest/src/isUnexpected.ts index 13867bac0d8d..d3a08d9f027e 100644 --- a/sdk/documentintelligence/ai-document-intelligence-rest/src/isUnexpected.ts +++ b/sdk/documentintelligence/ai-document-intelligence-rest/src/isUnexpected.ts @@ -74,69 +74,69 @@ const responseMap: Record = { }; export function isUnexpected( - response: ListOperations200Response | ListOperationsDefaultResponse + response: ListOperations200Response | ListOperationsDefaultResponse, ): response is ListOperationsDefaultResponse; export function isUnexpected( response: | GetDocumentModelBuildOperation200Response - | GetDocumentModelBuildOperationDefaultResponse + | GetDocumentModelBuildOperationDefaultResponse, ): response is GetDocumentModelBuildOperationDefaultResponse; export function isUnexpected( - response: GetResourceInfo200Response | GetResourceInfoDefaultResponse + response: GetResourceInfo200Response | GetResourceInfoDefaultResponse, ): response is GetResourceInfoDefaultResponse; export function isUnexpected( - response: GetAnalyzeResult200Response | GetAnalyzeResultDefaultResponse + response: GetAnalyzeResult200Response | GetAnalyzeResultDefaultResponse, ): response is GetAnalyzeResultDefaultResponse; export function isUnexpected( response: | AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamLogicalResponse - | AnalyzeDocumentFromStreamDefaultResponse + | AnalyzeDocumentFromStreamDefaultResponse, ): response is AnalyzeDocumentFromStreamDefaultResponse; export function isUnexpected( - response: GetModel200Response | GetModelDefaultResponse + response: GetModel200Response | GetModelDefaultResponse, ): response is GetModelDefaultResponse; export function isUnexpected( - response: DeleteModel204Response | DeleteModelDefaultResponse + response: DeleteModel204Response | DeleteModelDefaultResponse, ): response is DeleteModelDefaultResponse; export function isUnexpected( - response: BuildModel202Response | BuildModelLogicalResponse | BuildModelDefaultResponse + response: BuildModel202Response | BuildModelLogicalResponse | BuildModelDefaultResponse, ): response is BuildModelDefaultResponse; export function isUnexpected( - response: ComposeModel202Response | ComposeModelLogicalResponse | ComposeModelDefaultResponse + response: ComposeModel202Response | ComposeModelLogicalResponse | ComposeModelDefaultResponse, ): response is ComposeModelDefaultResponse; export function isUnexpected( - response: AuthorizeModelCopy200Response | AuthorizeModelCopyDefaultResponse + response: AuthorizeModelCopy200Response | AuthorizeModelCopyDefaultResponse, ): response is AuthorizeModelCopyDefaultResponse; export function isUnexpected( - response: CopyModelTo202Response | CopyModelToLogicalResponse | CopyModelToDefaultResponse + response: CopyModelTo202Response | CopyModelToLogicalResponse | CopyModelToDefaultResponse, ): response is CopyModelToDefaultResponse; export function isUnexpected( - response: ListModels200Response | ListModelsDefaultResponse + response: ListModels200Response | ListModelsDefaultResponse, ): response is ListModelsDefaultResponse; export function isUnexpected( response: | BuildClassifier202Response | BuildClassifierLogicalResponse - | BuildClassifierDefaultResponse + | BuildClassifierDefaultResponse, ): response is BuildClassifierDefaultResponse; export function isUnexpected( - response: ListClassifiers200Response | ListClassifiersDefaultResponse + response: ListClassifiers200Response | ListClassifiersDefaultResponse, ): response is ListClassifiersDefaultResponse; export function isUnexpected( - response: GetClassifier200Response | GetClassifierDefaultResponse + response: GetClassifier200Response | GetClassifierDefaultResponse, ): response is GetClassifierDefaultResponse; export function isUnexpected( - response: DeleteClassifier204Response | DeleteClassifierDefaultResponse + response: DeleteClassifier204Response | DeleteClassifierDefaultResponse, ): response is DeleteClassifierDefaultResponse; export function isUnexpected( response: | ClassifyDocumentFromStream202Response | ClassifyDocumentFromStreamLogicalResponse - | ClassifyDocumentFromStreamDefaultResponse + | ClassifyDocumentFromStreamDefaultResponse, ): response is ClassifyDocumentFromStreamDefaultResponse; export function isUnexpected( - response: GetClassifyResult200Response | GetClassifyResultDefaultResponse + response: GetClassifyResult200Response | GetClassifyResultDefaultResponse, ): response is GetClassifyResultDefaultResponse; export function isUnexpected( response: @@ -181,7 +181,7 @@ export function isUnexpected( | ClassifyDocumentFromStreamLogicalResponse | ClassifyDocumentFromStreamDefaultResponse | GetClassifyResult200Response - | GetClassifyResultDefaultResponse + | GetClassifyResultDefaultResponse, ): response is | ListOperationsDefaultResponse | GetDocumentModelBuildOperationDefaultResponse @@ -242,7 +242,7 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // {guid} ==> $ // {guid}:export ==> :export$ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "" + pathParts[j] || "", ); if (!isMatched) { diff --git a/sdk/documentintelligence/ai-document-intelligence-rest/src/paginateHelper.ts b/sdk/documentintelligence/ai-document-intelligence-rest/src/paginateHelper.ts index 477bace4a37f..f0d91c952cda 100644 --- a/sdk/documentintelligence/ai-document-intelligence-rest/src/paginateHelper.ts +++ b/sdk/documentintelligence/ai-document-intelligence-rest/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/documentintelligence/ai-document-intelligence-rest/src/pollingHelper.ts b/sdk/documentintelligence/ai-document-intelligence-rest/src/pollingHelper.ts index 20c5c3ff916f..fa25b3d1ab38 100644 --- a/sdk/documentintelligence/ai-document-intelligence-rest/src/pollingHelper.ts +++ b/sdk/documentintelligence/ai-document-intelligence-rest/src/pollingHelper.ts @@ -38,57 +38,57 @@ import { * @returns - A poller object to poll for operation state updates and eventually get the final response. */ export async function getLongRunningPoller< - TResult extends BuildModelLogicalResponse | BuildModelDefaultResponse + TResult extends BuildModelLogicalResponse | BuildModelDefaultResponse, >( client: Client, initialResponse: BuildModel202Response | BuildModelDefaultResponse, - options?: CreateHttpPollerOptions> + options?: CreateHttpPollerOptions>, ): Promise, TResult>>; export async function getLongRunningPoller< - TResult extends ComposeModelLogicalResponse | ComposeModelDefaultResponse + TResult extends ComposeModelLogicalResponse | ComposeModelDefaultResponse, >( client: Client, initialResponse: ComposeModel202Response | ComposeModelDefaultResponse, - options?: CreateHttpPollerOptions> + options?: CreateHttpPollerOptions>, ): Promise, TResult>>; export async function getLongRunningPoller< - TResult extends CopyModelToLogicalResponse | CopyModelToDefaultResponse + TResult extends CopyModelToLogicalResponse | CopyModelToDefaultResponse, >( client: Client, initialResponse: CopyModelTo202Response | CopyModelToDefaultResponse, - options?: CreateHttpPollerOptions> + options?: CreateHttpPollerOptions>, ): Promise, TResult>>; export async function getLongRunningPoller< - TResult extends BuildClassifierLogicalResponse | BuildClassifierDefaultResponse + TResult extends BuildClassifierLogicalResponse | BuildClassifierDefaultResponse, >( client: Client, initialResponse: BuildClassifier202Response | BuildClassifierDefaultResponse, - options?: CreateHttpPollerOptions> + options?: CreateHttpPollerOptions>, ): Promise, TResult>>; export async function getLongRunningPoller< TResult extends | AnalyzeDocumentFromStreamLogicalResponse - | AnalyzeDocumentFromStreamDefaultResponse + | AnalyzeDocumentFromStreamDefaultResponse, >( client: Client, initialResponse: AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamDefaultResponse, - options?: CreateHttpPollerOptions> + options?: CreateHttpPollerOptions>, ): Promise, TResult>>; export async function getLongRunningPoller< TResult extends | ClassifyDocumentFromStreamLogicalResponse - | ClassifyDocumentFromStreamDefaultResponse + | ClassifyDocumentFromStreamDefaultResponse, >( client: Client, initialResponse: | ClassifyDocumentFromStream202Response | ClassifyDocumentFromStreamDefaultResponse, - options?: CreateHttpPollerOptions> + options?: CreateHttpPollerOptions>, ): Promise, TResult>>; export async function getLongRunningPoller( client: Client, initialResponse: TResult, - options: CreateHttpPollerOptions> = {} + options: CreateHttpPollerOptions> = {}, ): Promise, TResult>> { const poller: LongRunningOperation = { requestMethod: initialResponse.request.method, diff --git a/sdk/documentintelligence/ai-document-intelligence-rest/test/public/analysis.spec.ts b/sdk/documentintelligence/ai-document-intelligence-rest/test/public/analysis.spec.ts index 587e9625a038..4ef3689f3a58 100644 --- a/sdk/documentintelligence/ai-document-intelligence-rest/test/public/analysis.spec.ts +++ b/sdk/documentintelligence/ai-document-intelligence-rest/test/public/analysis.spec.ts @@ -28,7 +28,7 @@ describe("DocumentIntelligenceClient", () => { client = DocumentIntelligence( assertEnvironmentVariable("DOCUMENT_INTELLIGENCE_ENDPOINT"), { key: assertEnvironmentVariable("DOCUMENT_INTELLIGENCE_API_KEY") }, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); }); @@ -101,7 +101,7 @@ describe("DocumentIntelligenceClient", () => { assert.ok( paragraphs && paragraphs.length > 0, - `Expected non-empty paragraphs but got ${paragraphs}.` + `Expected non-empty paragraphs but got ${paragraphs}.`, ); assert.ok(pages && pages.length > 0, `Expect no-empty pages but got ${pages}`); @@ -432,7 +432,7 @@ describe("DocumentIntelligenceClient", () => { if (!_model) { modelName = recorder.variable( "customFormModelName", - `customFormModelName${getRandomNumber()}` + `customFormModelName${getRandomNumber()}`, ); const initialResponse = await client.path("/documentModels:build").post({ @@ -441,7 +441,7 @@ describe("DocumentIntelligenceClient", () => { modelId: modelName, azureBlobSource: { containerUrl: assertEnvironmentVariable( - "DOCUMENT_INTELLIGENCE_SELECTION_MARK_STORAGE_CONTAINER_SAS_URL" + "DOCUMENT_INTELLIGENCE_SELECTION_MARK_STORAGE_CONTAINER_SAS_URL", ), }, }, diff --git a/sdk/documentintelligence/ai-document-intelligence-rest/test/public/classifiers.spec.ts b/sdk/documentintelligence/ai-document-intelligence-rest/test/public/classifiers.spec.ts index 7e85da64047f..bf25db9cb640 100644 --- a/sdk/documentintelligence/ai-document-intelligence-rest/test/public/classifiers.spec.ts +++ b/sdk/documentintelligence/ai-document-intelligence-rest/test/public/classifiers.spec.ts @@ -29,7 +29,7 @@ describe.skip("classifiers", () => { client = DocumentIntelligence( assertEnvironmentVariable("DOCUMENT_INTELLIGENCE_ENDPOINT"), { key: assertEnvironmentVariable("DOCUMENT_INTELLIGENCE_API_KEY") }, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); }); @@ -50,7 +50,7 @@ describe.skip("classifiers", () => { if (!_classifier) { _classifierId = recorder.variable( "customClassifierId", - `customClassifier${getRandomNumber()}` + `customClassifier${getRandomNumber()}`, ); const initialResponse = await client.path("/documentClassifiers:build").post({ diff --git a/sdk/documentintelligence/ai-document-intelligence-rest/test/public/documentIntelligence.spec.ts b/sdk/documentintelligence/ai-document-intelligence-rest/test/public/documentIntelligence.spec.ts index f39586066a5c..569bfe19ac41 100644 --- a/sdk/documentintelligence/ai-document-intelligence-rest/test/public/documentIntelligence.spec.ts +++ b/sdk/documentintelligence/ai-document-intelligence-rest/test/public/documentIntelligence.spec.ts @@ -24,7 +24,7 @@ describe("DocumentIntelligenceClient", () => { client = DocumentIntelligence( assertEnvironmentVariable("DOCUMENT_INTELLIGENCE_ENDPOINT"), { key: assertEnvironmentVariable("DOCUMENT_INTELLIGENCE_API_KEY") }, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); }); @@ -40,7 +40,7 @@ describe("DocumentIntelligenceClient", () => { assert.strictEqual( response.body.customDocumentModels.limit, 20000, - "expected customDocumentModels limit should be 20000" + "expected customDocumentModels limit should be 20000", ); }); @@ -48,7 +48,7 @@ describe("DocumentIntelligenceClient", () => { client = DocumentIntelligence( assertEnvironmentVariable("DOCUMENT_INTELLIGENCE_ENDPOINT"), createTestCredential(), - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); const response = await client.path("/info").get(); if (isUnexpected(response)) { @@ -57,7 +57,7 @@ describe("DocumentIntelligenceClient", () => { assert.strictEqual( response.body.customDocumentModels.limit, 20000, - "expected customDocumentModels limit should be 20000" + "expected customDocumentModels limit should be 20000", ); }); @@ -66,7 +66,7 @@ describe("DocumentIntelligenceClient", () => { body: { classifierId: recorder.variable( "customClassifierId", - `customClassifier${getRandomNumber()}` + `customClassifier${getRandomNumber()}`, ), description: "Custom classifier description", docTypes: { @@ -95,7 +95,7 @@ describe("DocumentIntelligenceClient", () => { assert.strictEqual( response.result?.classifierId, recorder.variable("customClassifierId"), - "expected classifierId to match" + "expected classifierId to match", ); }); }); diff --git a/sdk/documentintelligence/ai-document-intelligence-rest/test/public/training.spec.ts b/sdk/documentintelligence/ai-document-intelligence-rest/test/public/training.spec.ts index 4d1637a904b6..983ac5682757 100644 --- a/sdk/documentintelligence/ai-document-intelligence-rest/test/public/training.spec.ts +++ b/sdk/documentintelligence/ai-document-intelligence-rest/test/public/training.spec.ts @@ -28,7 +28,7 @@ describe("model management", () => { client = DocumentIntelligence( assertEnvironmentVariable("DOCUMENT_INTELLIGENCE_ENDPOINT"), { key: assertEnvironmentVariable("DOCUMENT_INTELLIGENCE_API_KEY") }, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); }); @@ -110,7 +110,7 @@ describe("model management", () => { // When training with labels, we will have expectations for the names assert.ok( submodel.fieldSchema["Signature"], - "Expecting field with name 'Signature' to be valid" + "Expecting field with name 'Signature' to be valid", ); }); @@ -203,7 +203,7 @@ describe("model management", () => { it("delete models from the account", async () => { // Delete all of the models await Promise.all( - allModels.map((modelId) => client.path("/documentModels/{modelId}", modelId).delete()) + allModels.map((modelId) => client.path("/documentModels/{modelId}", modelId).delete()), ); await Promise.all( @@ -215,12 +215,12 @@ describe("model management", () => { } console.log(`Model ${res.body.modelId} was not deleted!`); throw new Error( - `The service returned model info for ${modelId}, but we thought we had deleted it!` + `The service returned model info for ${modelId}, but we thought we had deleted it!`, ); } catch (e: unknown) { assert.isTrue((e as Error).message.endsWith(" not found.")); } - }) + }), ); }); }); @@ -293,7 +293,7 @@ describe("model management", () => { }, ], }, - ["playback", "record"] + ["playback", "record"], ); const modelId = recorder.variable("copySource", `copySource${getRandomNumber()}`); diff --git a/sdk/documentintelligence/ai-document-intelligence-rest/test/public/utils/utils.ts b/sdk/documentintelligence/ai-document-intelligence-rest/test/public/utils/utils.ts index e57910da0dcd..09737d54f72a 100644 --- a/sdk/documentintelligence/ai-document-intelligence-rest/test/public/utils/utils.ts +++ b/sdk/documentintelligence/ai-document-intelligence-rest/test/public/utils/utils.ts @@ -10,7 +10,7 @@ export const ASSET_PATH = path.resolve(path.join(process.cwd(), "assets")); export function makeTestUrl(urlPath: string): string { const testingContainerUrl = assertEnvironmentVariable( - "DOCUMENT_INTELLIGENCE_TESTING_CONTAINER_SAS_URL" + "DOCUMENT_INTELLIGENCE_TESTING_CONTAINER_SAS_URL", ); const parts = testingContainerUrl.split("?"); return `${parts[0]}${urlPath}?${parts[1]}`; diff --git a/sdk/documenttranslator/ai-document-translator-rest/package.json b/sdk/documenttranslator/ai-document-translator-rest/package.json index 996f0e8f57d8..f5b60557f9ff 100644 --- a/sdk/documenttranslator/ai-document-translator-rest/package.json +++ b/sdk/documenttranslator/ai-document-translator-rest/package.json @@ -62,11 +62,11 @@ "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -118,7 +118,6 @@ "karma": "^6.2.0", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/documenttranslator/ai-document-translator-rest/src/documentTranslator.ts b/sdk/documenttranslator/ai-document-translator-rest/src/documentTranslator.ts index 89e4d8aeb7aa..00475526a06f 100644 --- a/sdk/documenttranslator/ai-document-translator-rest/src/documentTranslator.ts +++ b/sdk/documenttranslator/ai-document-translator-rest/src/documentTranslator.ts @@ -79,7 +79,7 @@ export interface GetTranslationsStatus { * If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique. */ post( - options: StartTranslationParameters + options: StartTranslationParameters, ): Promise< | StartTranslation202Response | StartTranslation400Response @@ -114,7 +114,7 @@ export interface GetTranslationsStatus { * This reduces the risk of the client making assumptions about the data returned. */ get( - options?: GetTranslationsStatusParameters + options?: GetTranslationsStatusParameters, ): Promise< | GetTranslationsStatus200Response | GetTranslationsStatus400Response @@ -128,7 +128,7 @@ export interface GetTranslationsStatus { export interface GetDocumentStatus { /** Returns the translation status for a specific document based on the request Id and document Id. */ get( - options?: GetDocumentStatusParameters + options?: GetDocumentStatusParameters, ): Promise< | GetDocumentStatus200Response | GetDocumentStatus401Response @@ -145,7 +145,7 @@ export interface CancelTranslation { * The status includes the overall request status, as well as the status for documents that are being translated as part of that request. */ get( - options?: GetTranslationStatusParameters + options?: GetTranslationStatusParameters, ): Promise< | GetTranslationStatus200Response | GetTranslationStatus401Response @@ -162,7 +162,7 @@ export interface CancelTranslation { * All pending documents will be cancelled if possible. */ delete( - options?: CancelTranslationParameters + options?: CancelTranslationParameters, ): Promise< | CancelTranslation200Response | CancelTranslation401Response @@ -197,7 +197,7 @@ export interface GetDocumentsStatus { * This reduces the risk of the client making assumptions about the data returned. */ get( - options?: GetDocumentsStatusParameters + options?: GetDocumentsStatusParameters, ): Promise< | GetDocumentsStatus200Response | GetDocumentsStatus400Response @@ -215,7 +215,7 @@ export interface GetSupportedDocumentFormats { * The list includes the common file extension, as well as the content-type if using the upload API. */ get( - options?: GetSupportedDocumentFormatsParameters + options?: GetSupportedDocumentFormatsParameters, ): Promise< | GetSupportedDocumentFormats200Response | GetSupportedDocumentFormats429Response @@ -230,7 +230,7 @@ export interface GetSupportedGlossaryFormats { * The list includes the common file extension used. */ get( - options?: GetSupportedGlossaryFormatsParameters + options?: GetSupportedGlossaryFormatsParameters, ): Promise< | GetSupportedGlossaryFormats200Response | GetSupportedGlossaryFormats429Response @@ -242,7 +242,7 @@ export interface GetSupportedGlossaryFormats { export interface GetSupportedStorageSources { /** Returns a list of storage sources/options supported by the Document Translation service. */ get( - options?: GetSupportedStorageSourcesParameters + options?: GetSupportedStorageSourcesParameters, ): Promise< | GetSupportedStorageSources200Response | GetSupportedStorageSources429Response @@ -279,7 +279,7 @@ export interface DocumentTranslatorFactory { export default function DocumentTranslator( endpoint: string, credentials: TokenCredential | KeyCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): DocumentTranslatorClient { const baseUrl = options.baseUrl ?? `${endpoint}/translator/text/batch/v1.0`; options = { diff --git a/sdk/documenttranslator/ai-document-translator-rest/test/public/utils/recordedClient.ts b/sdk/documenttranslator/ai-document-translator-rest/test/public/utils/recordedClient.ts index 112e9439f8d0..57da08d6858f 100644 --- a/sdk/documenttranslator/ai-document-translator-rest/test/public/utils/recordedClient.ts +++ b/sdk/documenttranslator/ai-document-translator-rest/test/public/utils/recordedClient.ts @@ -15,14 +15,14 @@ const envSetupForPlayback: { [k: string]: string } = { export async function createClient( recorder: Recorder, - options?: ClientOptions + options?: ClientOptions, ): Promise { await recorder.start({ envSetupForPlayback }); const credential = { key: env.DOCUMENT_TRANSLATOR_API_KEY ?? "" }; const client = DocumentTranslator( env.ENDPOINT ?? "", credential, - recorder.configureClientOptions(options || {}) + recorder.configureClientOptions(options || {}), ); return client; } diff --git a/sdk/easm/defender-easm-rest/package.json b/sdk/easm/defender-easm-rest/package.json index 58c685d4fa20..af37d19edcde 100644 --- a/sdk/easm/defender-easm-rest/package.json +++ b/sdk/easm/defender-easm-rest/package.json @@ -38,11 +38,11 @@ "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "generate:client": "echo skipped", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -100,7 +100,6 @@ "mkdirp": "^1.0.4", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/easm/defender-easm-rest/src/clientDefinitions.ts b/sdk/easm/defender-easm-rest/src/clientDefinitions.ts index f02341a32d0b..fc8cd5e29ac8 100644 --- a/sdk/easm/defender-easm-rest/src/clientDefinitions.ts +++ b/sdk/easm/defender-easm-rest/src/clientDefinitions.ts @@ -88,74 +88,74 @@ import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface ListAssetResource { /** Retrieve a list of assets for the provided search parameters. */ get( - options?: ListAssetResourceParameters + options?: ListAssetResourceParameters, ): StreamableMethod; /** Update labels on assets matching the provided filter. */ post( - options: UpdateAssetsParameters + options: UpdateAssetsParameters, ): StreamableMethod; } export interface GetAssetResource { /** Retrieve an asset by assetId. */ get( - options?: GetAssetResourceParameters + options?: GetAssetResourceParameters, ): StreamableMethod; } export interface ListDataConnection { /** Retrieve a list of data connections. */ get( - options?: ListDataConnectionParameters + options?: ListDataConnectionParameters, ): StreamableMethod; } export interface ValidateDataConnection { /** Validate a data connection with a given dataConnectionName. */ post( - options?: ValidateDataConnectionParameters + options?: ValidateDataConnectionParameters, ): StreamableMethod; } export interface GetDataConnection { /** Retrieve a data connection with a given dataConnectionName. */ get( - options?: GetDataConnectionParameters + options?: GetDataConnectionParameters, ): StreamableMethod; /** Create or replace a data connection with a given dataConnectionName. */ put( - options?: CreateOrReplaceDataConnectionParameters + options?: CreateOrReplaceDataConnectionParameters, ): StreamableMethod< CreateOrReplaceDataConnection200Response | CreateOrReplaceDataConnectionDefaultResponse >; /** Delete a data connection with a given dataConnectionName. */ delete( - options?: DeleteDataConnectionParameters + options?: DeleteDataConnectionParameters, ): StreamableMethod; } export interface ListDiscoGroup { /** Retrieve a list of discovery group for the provided search parameters. */ get( - options?: ListDiscoGroupParameters + options?: ListDiscoGroupParameters, ): StreamableMethod; } export interface ValidateDiscoGroup { /** Validate a discovery group with a given groupName. */ post( - options?: ValidateDiscoGroupParameters + options?: ValidateDiscoGroupParameters, ): StreamableMethod; } export interface GetDiscoGroup { /** Retrieve a discovery group with a given groupName. */ get( - options?: GetDiscoGroupParameters + options?: GetDiscoGroupParameters, ): StreamableMethod; /** Create a discovery group with a given groupName. */ put( - options?: CreateOrReplaceDiscoGroupParameters + options?: CreateOrReplaceDiscoGroupParameters, ): StreamableMethod< CreateOrReplaceDiscoGroup200Response | CreateOrReplaceDiscoGroupDefaultResponse >; @@ -164,80 +164,80 @@ export interface GetDiscoGroup { export interface RunDiscoGroup { /** Run a discovery group with a given groupName. */ post( - options?: RunDiscoGroupParameters + options?: RunDiscoGroupParameters, ): StreamableMethod; } export interface ListRuns { /** Retrieve a collection of discovery run results for a discovery group with a given groupName. */ get( - options?: ListRunsParameters + options?: ListRunsParameters, ): StreamableMethod; } export interface ListDiscoTemplate { /** Retrieve a list of disco templates for the provided search parameters. */ get( - options?: ListDiscoTemplateParameters + options?: ListDiscoTemplateParameters, ): StreamableMethod; } export interface GetDiscoTemplate { /** Retrieve a disco template with a given templateId. */ get( - options?: GetDiscoTemplateParameters + options?: GetDiscoTemplateParameters, ): StreamableMethod; } export interface GetBillable { /** Get billable assets summary for the workspace. */ post( - options?: GetBillableParameters + options?: GetBillableParameters, ): StreamableMethod; } export interface GetSnapshot { /** Get the most recent snapshot of asset summary values for the snapshot request. */ post( - options?: GetSnapshotParameters + options?: GetSnapshotParameters, ): StreamableMethod; } export interface GetSummary { /** Get asset summary details for the summary request. */ post( - options?: GetSummaryParameters + options?: GetSummaryParameters, ): StreamableMethod; } export interface ListSavedFilter { /** Retrieve a list of saved filters for the provided search parameters. */ get( - options?: ListSavedFilterParameters + options?: ListSavedFilterParameters, ): StreamableMethod; } export interface GetSavedFilter { /** Retrieve a saved filter by filterName. */ get( - options?: GetSavedFilterParameters + options?: GetSavedFilterParameters, ): StreamableMethod; /** Create or replace a saved filter with a given filterName. */ put( - options?: CreateOrReplaceSavedFilterParameters + options?: CreateOrReplaceSavedFilterParameters, ): StreamableMethod< CreateOrReplaceSavedFilter200Response | CreateOrReplaceSavedFilterDefaultResponse >; /** Delete a saved filter with a given filterName. */ delete( - options?: DeleteSavedFilterParameters + options?: DeleteSavedFilterParameters, ): StreamableMethod; } export interface ListTask { /** Retrieve a list of tasks for the provided search parameters. */ get( - options?: ListTaskParameters + options?: ListTaskParameters, ): StreamableMethod; } @@ -249,7 +249,7 @@ export interface GetTask { export interface CancelTask { /** Cancel a task by taskId. */ post( - options?: CancelTaskParameters + options?: CancelTaskParameters, ): StreamableMethod; } diff --git a/sdk/easm/defender-easm-rest/src/easm.ts b/sdk/easm/defender-easm-rest/src/easm.ts index cb582b0a13a6..7c3937db35ed 100644 --- a/sdk/easm/defender-easm-rest/src/easm.ts +++ b/sdk/easm/defender-easm-rest/src/easm.ts @@ -21,7 +21,7 @@ export default function createClient( resourceGroupName: string, workspaceName: string, credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): EasmClient { const baseUrl = options.baseUrl ?? diff --git a/sdk/easm/defender-easm-rest/src/isUnexpected.ts b/sdk/easm/defender-easm-rest/src/isUnexpected.ts index d24f9646bcbd..7ce12579d370 100644 --- a/sdk/easm/defender-easm-rest/src/isUnexpected.ts +++ b/sdk/easm/defender-easm-rest/src/isUnexpected.ts @@ -86,82 +86,82 @@ const responseMap: Record = { }; export function isUnexpected( - response: ListAssetResource200Response | ListAssetResourceDefaultResponse + response: ListAssetResource200Response | ListAssetResourceDefaultResponse, ): response is ListAssetResourceDefaultResponse; export function isUnexpected( - response: UpdateAssets200Response | UpdateAssetsDefaultResponse + response: UpdateAssets200Response | UpdateAssetsDefaultResponse, ): response is UpdateAssetsDefaultResponse; export function isUnexpected( - response: GetAssetResource200Response | GetAssetResourceDefaultResponse + response: GetAssetResource200Response | GetAssetResourceDefaultResponse, ): response is GetAssetResourceDefaultResponse; export function isUnexpected( - response: ListDataConnection200Response | ListDataConnectionDefaultResponse + response: ListDataConnection200Response | ListDataConnectionDefaultResponse, ): response is ListDataConnectionDefaultResponse; export function isUnexpected( - response: ValidateDataConnection200Response | ValidateDataConnectionDefaultResponse + response: ValidateDataConnection200Response | ValidateDataConnectionDefaultResponse, ): response is ValidateDataConnectionDefaultResponse; export function isUnexpected( - response: GetDataConnection200Response | GetDataConnectionDefaultResponse + response: GetDataConnection200Response | GetDataConnectionDefaultResponse, ): response is GetDataConnectionDefaultResponse; export function isUnexpected( - response: CreateOrReplaceDataConnection200Response | CreateOrReplaceDataConnectionDefaultResponse + response: CreateOrReplaceDataConnection200Response | CreateOrReplaceDataConnectionDefaultResponse, ): response is CreateOrReplaceDataConnectionDefaultResponse; export function isUnexpected( - response: DeleteDataConnection204Response | DeleteDataConnectionDefaultResponse + response: DeleteDataConnection204Response | DeleteDataConnectionDefaultResponse, ): response is DeleteDataConnectionDefaultResponse; export function isUnexpected( - response: ListDiscoGroup200Response | ListDiscoGroupDefaultResponse + response: ListDiscoGroup200Response | ListDiscoGroupDefaultResponse, ): response is ListDiscoGroupDefaultResponse; export function isUnexpected( - response: ValidateDiscoGroup200Response | ValidateDiscoGroupDefaultResponse + response: ValidateDiscoGroup200Response | ValidateDiscoGroupDefaultResponse, ): response is ValidateDiscoGroupDefaultResponse; export function isUnexpected( - response: GetDiscoGroup200Response | GetDiscoGroupDefaultResponse + response: GetDiscoGroup200Response | GetDiscoGroupDefaultResponse, ): response is GetDiscoGroupDefaultResponse; export function isUnexpected( - response: CreateOrReplaceDiscoGroup200Response | CreateOrReplaceDiscoGroupDefaultResponse + response: CreateOrReplaceDiscoGroup200Response | CreateOrReplaceDiscoGroupDefaultResponse, ): response is CreateOrReplaceDiscoGroupDefaultResponse; export function isUnexpected( - response: RunDiscoGroup204Response | RunDiscoGroupDefaultResponse + response: RunDiscoGroup204Response | RunDiscoGroupDefaultResponse, ): response is RunDiscoGroupDefaultResponse; export function isUnexpected( - response: ListRuns200Response | ListRunsDefaultResponse + response: ListRuns200Response | ListRunsDefaultResponse, ): response is ListRunsDefaultResponse; export function isUnexpected( - response: ListDiscoTemplate200Response | ListDiscoTemplateDefaultResponse + response: ListDiscoTemplate200Response | ListDiscoTemplateDefaultResponse, ): response is ListDiscoTemplateDefaultResponse; export function isUnexpected( - response: GetDiscoTemplate200Response | GetDiscoTemplateDefaultResponse + response: GetDiscoTemplate200Response | GetDiscoTemplateDefaultResponse, ): response is GetDiscoTemplateDefaultResponse; export function isUnexpected( - response: GetBillable200Response | GetBillableDefaultResponse + response: GetBillable200Response | GetBillableDefaultResponse, ): response is GetBillableDefaultResponse; export function isUnexpected( - response: GetSnapshot200Response | GetSnapshotDefaultResponse + response: GetSnapshot200Response | GetSnapshotDefaultResponse, ): response is GetSnapshotDefaultResponse; export function isUnexpected( - response: GetSummary200Response | GetSummaryDefaultResponse + response: GetSummary200Response | GetSummaryDefaultResponse, ): response is GetSummaryDefaultResponse; export function isUnexpected( - response: ListSavedFilter200Response | ListSavedFilterDefaultResponse + response: ListSavedFilter200Response | ListSavedFilterDefaultResponse, ): response is ListSavedFilterDefaultResponse; export function isUnexpected( - response: GetSavedFilter200Response | GetSavedFilterDefaultResponse + response: GetSavedFilter200Response | GetSavedFilterDefaultResponse, ): response is GetSavedFilterDefaultResponse; export function isUnexpected( - response: CreateOrReplaceSavedFilter200Response | CreateOrReplaceSavedFilterDefaultResponse + response: CreateOrReplaceSavedFilter200Response | CreateOrReplaceSavedFilterDefaultResponse, ): response is CreateOrReplaceSavedFilterDefaultResponse; export function isUnexpected( - response: DeleteSavedFilter204Response | DeleteSavedFilterDefaultResponse + response: DeleteSavedFilter204Response | DeleteSavedFilterDefaultResponse, ): response is DeleteSavedFilterDefaultResponse; export function isUnexpected( - response: ListTask200Response | ListTaskDefaultResponse + response: ListTask200Response | ListTaskDefaultResponse, ): response is ListTaskDefaultResponse; export function isUnexpected( - response: GetTask200Response | GetTaskDefaultResponse + response: GetTask200Response | GetTaskDefaultResponse, ): response is GetTaskDefaultResponse; export function isUnexpected( - response: CancelTask200Response | CancelTaskDefaultResponse + response: CancelTask200Response | CancelTaskDefaultResponse, ): response is CancelTaskDefaultResponse; export function isUnexpected( response: @@ -216,7 +216,7 @@ export function isUnexpected( | GetTask200Response | GetTaskDefaultResponse | CancelTask200Response - | CancelTaskDefaultResponse + | CancelTaskDefaultResponse, ): response is | ListAssetResourceDefaultResponse | UpdateAssetsDefaultResponse @@ -285,7 +285,7 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // {guid} ==> $ // {guid}:export ==> :export$ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "" + pathParts[j] || "", ); if (!isMatched) { diff --git a/sdk/easm/defender-easm-rest/src/paginateHelper.ts b/sdk/easm/defender-easm-rest/src/paginateHelper.ts index 477bace4a37f..f0d91c952cda 100644 --- a/sdk/easm/defender-easm-rest/src/paginateHelper.ts +++ b/sdk/easm/defender-easm-rest/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/easm/defender-easm-rest/test/public/assetsTest.spec.ts b/sdk/easm/defender-easm-rest/test/public/assetsTest.spec.ts index 3a7dd362f343..1eb9163db0c9 100644 --- a/sdk/easm/defender-easm-rest/test/public/assetsTest.spec.ts +++ b/sdk/easm/defender-easm-rest/test/public/assetsTest.spec.ts @@ -30,7 +30,7 @@ describe("Assets Test", () => { resource_group, workspace_name, credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); asset_name = "ku.edu"; asset_kind = "domain"; diff --git a/sdk/easm/defender-easm-rest/test/public/dataConnectionsTest.spec.ts b/sdk/easm/defender-easm-rest/test/public/dataConnectionsTest.spec.ts index 1af29fe0c7b6..a08afe065691 100644 --- a/sdk/easm/defender-easm-rest/test/public/dataConnectionsTest.spec.ts +++ b/sdk/easm/defender-easm-rest/test/public/dataConnectionsTest.spec.ts @@ -30,7 +30,7 @@ describe("Data Connections Test", () => { resource_group, workspace_name, credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); data_connection_name = "sdktest-connection"; new_data_connection_name = "sample-dc"; diff --git a/sdk/easm/defender-easm-rest/test/public/discoGroupsTest.spec.ts b/sdk/easm/defender-easm-rest/test/public/discoGroupsTest.spec.ts index 52d155b88242..c53118824d0e 100644 --- a/sdk/easm/defender-easm-rest/test/public/discoGroupsTest.spec.ts +++ b/sdk/easm/defender-easm-rest/test/public/discoGroupsTest.spec.ts @@ -31,7 +31,7 @@ describe("Discovery Groups Test", () => { resource_group, workspace_name, credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); known_group_name = "University of Kansas"; new_group_name = "New disco group name from ts"; diff --git a/sdk/easm/defender-easm-rest/test/public/discoTemplatesTest.spec.ts b/sdk/easm/defender-easm-rest/test/public/discoTemplatesTest.spec.ts index 9741f673838a..9e63035d3270 100644 --- a/sdk/easm/defender-easm-rest/test/public/discoTemplatesTest.spec.ts +++ b/sdk/easm/defender-easm-rest/test/public/discoTemplatesTest.spec.ts @@ -27,7 +27,7 @@ describe("Discovery Templates Test", () => { resource_group, workspace_name, credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); template_id = "43488"; partial_name = "ku"; diff --git a/sdk/easm/defender-easm-rest/test/public/reportsTest.spec.ts b/sdk/easm/defender-easm-rest/test/public/reportsTest.spec.ts index ac9e7ab1a718..b78a5bcecca2 100644 --- a/sdk/easm/defender-easm-rest/test/public/reportsTest.spec.ts +++ b/sdk/easm/defender-easm-rest/test/public/reportsTest.spec.ts @@ -26,7 +26,7 @@ describe("Reports Test", () => { resource_group, workspace_name, credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); metric = "savedfilter_metric_51126"; }); diff --git a/sdk/easm/defender-easm-rest/test/public/savedFiltersTest.spec.ts b/sdk/easm/defender-easm-rest/test/public/savedFiltersTest.spec.ts index 07cf073ddb94..d3ca44fef030 100644 --- a/sdk/easm/defender-easm-rest/test/public/savedFiltersTest.spec.ts +++ b/sdk/easm/defender-easm-rest/test/public/savedFiltersTest.spec.ts @@ -29,7 +29,7 @@ describe("Saved Filters Test", () => { resource_group, workspace_name, credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); delete_saved_filter_name = "put_filter"; put_saved_filter_name = "put_filter"; diff --git a/sdk/easm/defender-easm-rest/test/public/tasksTest.spec.ts b/sdk/easm/defender-easm-rest/test/public/tasksTest.spec.ts index 8a1e58792ac5..f81bc1a1eb30 100644 --- a/sdk/easm/defender-easm-rest/test/public/tasksTest.spec.ts +++ b/sdk/easm/defender-easm-rest/test/public/tasksTest.spec.ts @@ -28,7 +28,7 @@ describe("Tasks Test", () => { resource_group, workspace_name, credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); existing_task_id = "efad1fac-52d5-4ea9-b601-d5bf54a83780"; cancel_task_id = "efad1fac-52d5-4ea9-b601-d5bf54a83780"; diff --git a/sdk/entra/functions-authentication-events/package.json b/sdk/entra/functions-authentication-events/package.json index 59392350ee67..7e0c7a4ae9ff 100644 --- a/sdk/entra/functions-authentication-events/package.json +++ b/sdk/entra/functions-authentication-events/package.json @@ -11,11 +11,11 @@ "build:samples": "echo Obsolete", "build:test": "npm run clean && tsc -p . && dev-tool run bundle", "build": "npm run build:test && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/**/*.spec.ts'", @@ -91,7 +91,6 @@ "karma-mocha-reporter": "^2.2.5", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/entra/functions-authentication-events/samples-dev/TokenIssuanceStart.ts b/sdk/entra/functions-authentication-events/samples-dev/TokenIssuanceStart.ts index 842e8a7adf7d..99fd8f37af0c 100644 --- a/sdk/entra/functions-authentication-events/samples-dev/TokenIssuanceStart.ts +++ b/sdk/entra/functions-authentication-events/samples-dev/TokenIssuanceStart.ts @@ -8,7 +8,7 @@ import { const eventTrigger: AzureFunction = async ( context: Context, - onTokenIssuanceStartRequest: TokenIssuanceStartRequest + onTokenIssuanceStartRequest: TokenIssuanceStartRequest, ): Promise => { try { //Is the request successful and did the token validation pass./ @@ -20,7 +20,7 @@ const eventTrigger: AzureFunction = async ( createProvideClaimsForToken({ DateOfBirth: "2000-01-01", CustomRoles: ["Writer", "Reader"], - }) + }), ); } else { //If the request failed for any reason, i.e. Token validation, output the failed request status diff --git a/sdk/entra/functions-authentication-events/src/events.ts b/sdk/entra/functions-authentication-events/src/events.ts index 2ca4f3eef4b3..b06e024715f5 100644 --- a/sdk/entra/functions-authentication-events/src/events.ts +++ b/sdk/entra/functions-authentication-events/src/events.ts @@ -20,7 +20,7 @@ export interface AuthenticationEventRequestCommon { */ export interface AuthenticationEventRequest< TResponse extends AuthenticationEventResponse, - TData extends AuthenticationEventData + TData extends AuthenticationEventData, > extends AuthenticationEventRequestCommon { /** Related IEventResponse */ response: TResponse; @@ -33,7 +33,7 @@ export interface AuthenticationEventRequest< */ export interface CloudEventRequest< TResponse extends AuthenticationEventResponse, - TData extends AuthenticationEventData + TData extends AuthenticationEventData, > extends AuthenticationEventRequest { /** Related Source */ source: string; diff --git a/sdk/entra/functions-authentication-events/test/internal/payloadTests.spec.ts b/sdk/entra/functions-authentication-events/test/internal/payloadTests.spec.ts index be86da79a243..65135ffda8f8 100644 --- a/sdk/entra/functions-authentication-events/test/internal/payloadTests.spec.ts +++ b/sdk/entra/functions-authentication-events/test/internal/payloadTests.spec.ts @@ -22,10 +22,10 @@ describe("TokenIssuanceStart payload tests.", () => { expect(tokenIssuanceRequest.requestStatus).to.be.equal("Successful"); expect(tokenIssuanceRequest.statusMessage).to.be.equal(RequestConstants.statusMessage); expect(tokenIssuanceRequest.queryParameters[RequestConstants.qsKey1]).to.be.equal( - RequestConstants.qsValue1 + RequestConstants.qsValue1, ); expect(tokenIssuanceRequest.queryParameters[RequestConstants.qsKey2]).to.be.equal( - RequestConstants.qsValue2 + RequestConstants.qsValue2, ); expect(tokenIssuanceRequest.tokenClaims).to.be.equal(undefined); expect(tokenIssuanceRequest.source).to.be.equal(RequestConstants.source); @@ -42,104 +42,104 @@ describe("TokenIssuanceStart payload tests.", () => { describe("Confirm payload translation", () => { it("Confirm payload", () => { expect(tokenIssuanceRequest.payload.customAuthenticationExtensionId).to.be.equal( - PayloadConstants.Base.customAuthenticationExtensionId + PayloadConstants.Base.customAuthenticationExtensionId, ); expect(tokenIssuanceRequest.payload.authenticationEventListenerId).to.be.equal( - PayloadConstants.Base.authenticationEventListenerId + PayloadConstants.Base.authenticationEventListenerId, ); expect(tokenIssuanceRequest.payload.tenantId).to.be.equal(PayloadConstants.Base.tenantId); }); it("Confirm payload -> context", () => { expect(tokenIssuanceRequest.payload.authenticationContext.correlationId).to.be.equal( - PayloadConstants.Context.correlationId + PayloadConstants.Context.correlationId, ); }); it("Confirm payload -> context -> client", () => { expect(tokenIssuanceRequest.payload.authenticationContext.client.ip).to.be.equal( - PayloadConstants.Context.Client.ip + PayloadConstants.Context.Client.ip, ); expect(tokenIssuanceRequest.payload.authenticationContext.client.locale).to.be.equal( - PayloadConstants.Context.Client.locale + PayloadConstants.Context.Client.locale, ); expect(tokenIssuanceRequest.payload.authenticationContext.client.market).to.be.equal( - PayloadConstants.Context.Client.market + PayloadConstants.Context.Client.market, ); }); it("Confirm payload -> context -> authProtocol", () => { expect(tokenIssuanceRequest.payload.authenticationContext.authenticationProtocol).to.be.equal( - PayloadConstants.Context.AuthProtocol + PayloadConstants.Context.AuthProtocol, ); }); it("Confirm payload -> context -> clientServicePrincipal", () => { expect( - tokenIssuanceRequest.payload.authenticationContext.clientServicePrincipal.appDisplayName + tokenIssuanceRequest.payload.authenticationContext.clientServicePrincipal.appDisplayName, ).to.be.equal(PayloadConstants.Context.ClientServicePrincipal.appDisplayName); expect( - tokenIssuanceRequest.payload.authenticationContext.clientServicePrincipal.appId + tokenIssuanceRequest.payload.authenticationContext.clientServicePrincipal.appId, ).to.be.equal(PayloadConstants.Context.ClientServicePrincipal.appId); expect( - tokenIssuanceRequest.payload.authenticationContext.clientServicePrincipal.displayName + tokenIssuanceRequest.payload.authenticationContext.clientServicePrincipal.displayName, ).to.be.equal(PayloadConstants.Context.ClientServicePrincipal.displayName); expect( - tokenIssuanceRequest.payload.authenticationContext.clientServicePrincipal.id + tokenIssuanceRequest.payload.authenticationContext.clientServicePrincipal.id, ).to.be.equal(PayloadConstants.Context.ClientServicePrincipal.id); }); it("Confirm payload -> context -> resourceServicePrincipal", () => { expect( - tokenIssuanceRequest.payload.authenticationContext.resourceServicePrincipal.appDisplayName + tokenIssuanceRequest.payload.authenticationContext.resourceServicePrincipal.appDisplayName, ).to.be.equal(PayloadConstants.Context.ResourceServicePrincipal.appDisplayName); expect( - tokenIssuanceRequest.payload.authenticationContext.resourceServicePrincipal.appId + tokenIssuanceRequest.payload.authenticationContext.resourceServicePrincipal.appId, ).to.be.equal(PayloadConstants.Context.ResourceServicePrincipal.appId); expect( - tokenIssuanceRequest.payload.authenticationContext.resourceServicePrincipal.displayName + tokenIssuanceRequest.payload.authenticationContext.resourceServicePrincipal.displayName, ).to.be.equal(PayloadConstants.Context.ResourceServicePrincipal.displayName); expect( - tokenIssuanceRequest.payload.authenticationContext.resourceServicePrincipal.id + tokenIssuanceRequest.payload.authenticationContext.resourceServicePrincipal.id, ).to.be.equal(PayloadConstants.Context.ResourceServicePrincipal.id); }); it("Confirm payload -> context -> user", () => { expect(tokenIssuanceRequest.payload.authenticationContext.user.companyName).to.be.equal( - PayloadConstants.Context.User.companyName + PayloadConstants.Context.User.companyName, ); expect(tokenIssuanceRequest.payload.authenticationContext.user.country).to.be.equal( - PayloadConstants.Context.User.country + PayloadConstants.Context.User.country, ); expect(tokenIssuanceRequest.payload.authenticationContext.user.displayName).to.be.equal( - PayloadConstants.Context.User.displayName + PayloadConstants.Context.User.displayName, ); expect(tokenIssuanceRequest.payload.authenticationContext.user.givenName).to.be.equal( - PayloadConstants.Context.User.givenName + PayloadConstants.Context.User.givenName, ); expect(tokenIssuanceRequest.payload.authenticationContext.user.id).to.be.equal( - PayloadConstants.Context.User.id + PayloadConstants.Context.User.id, ); expect(tokenIssuanceRequest.payload.authenticationContext.user.mail).to.be.equal( - PayloadConstants.Context.User.mail + PayloadConstants.Context.User.mail, ); expect( - tokenIssuanceRequest.payload.authenticationContext.user.onPremiseUserPrincipalName + tokenIssuanceRequest.payload.authenticationContext.user.onPremiseUserPrincipalName, ).to.be.equal(""); expect( - tokenIssuanceRequest.payload.authenticationContext.user.onPremisesSamAccountName + tokenIssuanceRequest.payload.authenticationContext.user.onPremisesSamAccountName, ).to.be.equal(PayloadConstants.Context.User.onPremisesSamAccountName); expect( - tokenIssuanceRequest.payload.authenticationContext.user.onPremisesSecurityIdentifier + tokenIssuanceRequest.payload.authenticationContext.user.onPremisesSecurityIdentifier, ).to.be.equal(PayloadConstants.Context.User.onPremisesSecurityIdentifier); expect( - tokenIssuanceRequest.payload.authenticationContext.user.preferredDataLocation + tokenIssuanceRequest.payload.authenticationContext.user.preferredDataLocation, ).to.be.equal(PayloadConstants.Context.User.preferredDataLocation); expect(tokenIssuanceRequest.payload.authenticationContext.user.preferredLanguage).to.be.equal( - PayloadConstants.Context.User.preferredLanguage + PayloadConstants.Context.User.preferredLanguage, ); expect(tokenIssuanceRequest.payload.authenticationContext.user.userType).to.be.equal( - PayloadConstants.Context.User.userType + PayloadConstants.Context.User.userType, ); }); }); @@ -149,13 +149,13 @@ describe("TokenIssuanceStart action tests", () => { it("ProvideClaimsForToken action", () => { const tokenIssuanceRequest: TokenIssuanceStartRequest = request; const provideClaimsAction: ProvideClaimsForToken = createProvideClaimsForToken( - ActionConstants.Claims + ActionConstants.Claims, ); tokenIssuanceRequest.response.actions.push(provideClaimsAction); expect(tokenIssuanceRequest.response.actions.length).to.be.equal(1); expect(JSON.stringify(tokenIssuanceRequest.response.actions)).to.be.equal( - ActionConstants.Claims_as_string + ActionConstants.Claims_as_string, ); }); }); diff --git a/sdk/eventgrid/eventgrid/package.json b/sdk/eventgrid/eventgrid/package.json index 6bc4fcd6d78b..34a07b789d48 100644 --- a/sdk/eventgrid/eventgrid/package.json +++ b/sdk/eventgrid/eventgrid/package.json @@ -69,11 +69,11 @@ "build:samples": "echo Obsolete", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm dist-test temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md && node ./scripts/setPathToEmpty.js", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"", @@ -128,7 +128,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "source-map-support": "^0.5.9", diff --git a/sdk/eventgrid/eventgrid/samples-dev/consumeEventsFromServiceBusQueue.ts b/sdk/eventgrid/eventgrid/samples-dev/consumeEventsFromServiceBusQueue.ts index 0c825ed0f79f..4d9583df76b5 100644 --- a/sdk/eventgrid/eventgrid/samples-dev/consumeEventsFromServiceBusQueue.ts +++ b/sdk/eventgrid/eventgrid/samples-dev/consumeEventsFromServiceBusQueue.ts @@ -28,7 +28,7 @@ const serviceBusQueueName = process.env["SERVICE_BUS_QUEUE_NAME"] || ""; // Create a receiver to read messages from the Service Bus Queue. const receiver = new ServiceBusClient(serviceBusClientConnectionString).createReceiver( - serviceBusQueueName + serviceBusQueueName, ); // The handler function which will be run on each message we remove from the Service Bus Queue. diff --git a/sdk/eventgrid/eventgrid/samples-dev/sendCloudEvent.ts b/sdk/eventgrid/eventgrid/samples-dev/sendCloudEvent.ts index 208890fbabff..678d1c1cddbc 100644 --- a/sdk/eventgrid/eventgrid/samples-dev/sendCloudEvent.ts +++ b/sdk/eventgrid/eventgrid/samples-dev/sendCloudEvent.ts @@ -24,7 +24,7 @@ export async function main(): Promise { const client = new EventGridPublisherClient( endpoint, "CloudEvent", - new AzureKeyCredential(accessKey) + new AzureKeyCredential(accessKey), ); // Send an event to the Event Grid Service, using the Cloud Event schema. diff --git a/sdk/eventgrid/eventgrid/samples-dev/sendEventGridEvent.ts b/sdk/eventgrid/eventgrid/samples-dev/sendEventGridEvent.ts index 68702c608c3a..43a7fc3e3c22 100644 --- a/sdk/eventgrid/eventgrid/samples-dev/sendEventGridEvent.ts +++ b/sdk/eventgrid/eventgrid/samples-dev/sendEventGridEvent.ts @@ -24,7 +24,7 @@ export async function main(): Promise { const client = new EventGridPublisherClient( endpoint, "EventGrid", - new AzureKeyCredential(accessKey) + new AzureKeyCredential(accessKey), ); // Send an event to the Event Grid Service, using the Event Grid schema. diff --git a/sdk/eventgrid/eventgrid/src/consumer.ts b/sdk/eventgrid/eventgrid/src/consumer.ts index fc6c69acf7cd..feee4749b6a9 100644 --- a/sdk/eventgrid/eventgrid/src/consumer.ts +++ b/sdk/eventgrid/eventgrid/src/consumer.ts @@ -31,7 +31,7 @@ export class EventGridDeserializer { * events, encoded in the Event Grid Schema. */ public async deserializeEventGridEvents( - encodedEvents: string + encodedEvents: string, ): Promise[]>; /** @@ -40,10 +40,10 @@ export class EventGridDeserializer { * @param encodedEvents - an object representing a single event, encoded in the Event Grid schema. */ public async deserializeEventGridEvents( - encodedEvents: Record + encodedEvents: Record, ): Promise[]>; public async deserializeEventGridEvents( - encodedEvents: string | Record + encodedEvents: string | Record, ): Promise[]> { const decodedArray = parseAndWrap(encodedEvents); @@ -74,10 +74,10 @@ export class EventGridDeserializer { * @param encodedEvents - an object representing a single event, encoded in the Cloud Events 1.0 schema. */ public async deserializeCloudEvents( - encodedEvents: Record + encodedEvents: Record, ): Promise[]>; public async deserializeCloudEvents( - encodedEvents: string | Record + encodedEvents: string | Record, ): Promise[]> { const decodedArray = parseAndWrap(encodedEvents); diff --git a/sdk/eventgrid/eventgrid/src/cryptoHelpers.browser.ts b/sdk/eventgrid/eventgrid/src/cryptoHelpers.browser.ts index 39d089028dc0..6739cb5ab70a 100644 --- a/sdk/eventgrid/eventgrid/src/cryptoHelpers.browser.ts +++ b/sdk/eventgrid/eventgrid/src/cryptoHelpers.browser.ts @@ -15,13 +15,13 @@ export async function sha256Hmac(secret: string, stringToSign: string): Promise< hash: "SHA-256", }, false, - ["sign"] + ["sign"], ); const sigArray = await self.crypto.subtle.sign( "HMAC", key, - new TextEncoder().encode(stringToSign) + new TextEncoder().encode(stringToSign), ); // The conversions here are a bit odd but necessary (see "Unicode strings" in the link below) diff --git a/sdk/eventgrid/eventgrid/src/eventGridAuthenticationPolicy.ts b/sdk/eventgrid/eventgrid/src/eventGridAuthenticationPolicy.ts index 749479e1baa4..6d84acc244b1 100644 --- a/sdk/eventgrid/eventgrid/src/eventGridAuthenticationPolicy.ts +++ b/sdk/eventgrid/eventgrid/src/eventGridAuthenticationPolicy.ts @@ -31,7 +31,7 @@ export const eventGridCredentialPolicyName = "eventGridCredentialPolicy"; * using the appropriate header for Event Grid */ export function eventGridCredentialPolicy( - credential: KeyCredential | SASCredential + credential: KeyCredential | SASCredential, ): PipelinePolicy { return { name: eventGridCredentialPolicyName, diff --git a/sdk/eventgrid/eventgrid/src/eventGridClient.ts b/sdk/eventgrid/eventgrid/src/eventGridClient.ts index 2afeb3c9184a..75da84f4a646 100644 --- a/sdk/eventgrid/eventgrid/src/eventGridClient.ts +++ b/sdk/eventgrid/eventgrid/src/eventGridClient.ts @@ -131,7 +131,7 @@ export class EventGridPublisherClient { endpointUrl: string, inputSchema: T, credential: KeyCredential | SASCredential | TokenCredential, - options: EventGridPublisherClientOptions = {} + options: EventGridPublisherClientOptions = {}, ) { this.endpointUrl = endpointUrl; this.inputSchema = inputSchema; @@ -157,7 +157,7 @@ export class EventGridPublisherClient { */ send( events: InputSchemaToInputTypeMap[T][], - options: InputSchemaToOptionsTypeMap[T] = {} + options: InputSchemaToOptionsTypeMap[T] = {}, ): Promise { return tracingClient.withSpan("EventGridPublisherClient.send", options, (updatedOptions) => { switch (this.inputSchema) { @@ -165,9 +165,9 @@ export class EventGridPublisherClient { return this.client.publishEventGridEvents( this.endpointUrl, (events as InputSchemaToInputTypeMap["EventGrid"][]).map( - convertEventGridEventToModelType + convertEventGridEventToModelType, ), - updatedOptions + updatedOptions, ); } case "CloudEvent": { @@ -187,14 +187,14 @@ export class EventGridPublisherClient { return this.client.publishCloudEventEvents( this.endpointUrl, (events as InputSchemaToInputTypeMap["CloudEvent"][]).map(convertCloudEventToModelType), - sendOptions + sendOptions, ); } case "Custom": { return this.client.publishCustomEventEvents( this.endpointUrl, events as InputSchemaToInputTypeMap["Custom"][], - updatedOptions + updatedOptions, ); } default: { @@ -209,7 +209,7 @@ export class EventGridPublisherClient { * @internal */ export function convertEventGridEventToModelType( - event: SendEventGridEventInput + event: SendEventGridEventInput, ): EventGridEventWireModel { return { eventType: event.eventType, @@ -254,7 +254,7 @@ export function convertCloudEventToModelType(event: SendCloudEventInput): C if (event.data instanceof Uint8Array) { if (!event.datacontenttype) { throw new Error( - "a data content type must be provided when sending an event with binary data" + "a data content type must be provided when sending an event with binary data", ); } diff --git a/sdk/eventgrid/eventgrid/src/generateSharedAccessSignature.ts b/sdk/eventgrid/eventgrid/src/generateSharedAccessSignature.ts index f9ab53bd21fd..0aa840a9f656 100644 --- a/sdk/eventgrid/eventgrid/src/generateSharedAccessSignature.ts +++ b/sdk/eventgrid/eventgrid/src/generateSharedAccessSignature.ts @@ -27,13 +27,13 @@ export async function generateSharedAccessSignature( endpointUrl: string, credential: KeyCredential, expiresOnUtc: Date, - options?: GenerateSharedAccessSignatureOptions + options?: GenerateSharedAccessSignatureOptions, ): Promise { const expiresOnString = dateToServiceTimeString(expiresOnUtc); const unsignedSas = `r=${encodeURIComponent( - `${endpointUrl}?apiVersion=${options?.apiVersion || DEFAULT_API_VERSION}` + `${endpointUrl}?apiVersion=${options?.apiVersion || DEFAULT_API_VERSION}`, )}&e=${encodeURIComponent(expiresOnString)}`; return sha256Hmac(credential.key, unsignedSas).then( - (digest) => `${unsignedSas}&s=${encodeURIComponent(digest)}` + (digest) => `${unsignedSas}&s=${encodeURIComponent(digest)}`, ); } diff --git a/sdk/eventgrid/eventgrid/src/predicates.ts b/sdk/eventgrid/eventgrid/src/predicates.ts index 4a4c398c4020..165d272cb714 100644 --- a/sdk/eventgrid/eventgrid/src/predicates.ts +++ b/sdk/eventgrid/eventgrid/src/predicates.ts @@ -594,7 +594,7 @@ export interface SystemEventNameToEventData { * @param o - Either an EventGrid our CloudEvent event. */ function isCloudEventLike( - o: EventGridEvent | CloudEvent + o: EventGridEvent | CloudEvent, ): o is CloudEvent { return (o as any).source !== undefined; } @@ -609,7 +609,7 @@ function isCloudEventLike( */ export function isSystemEvent( eventType: T, - event: EventGridEvent + event: EventGridEvent, ): event is EventGridEvent; /** @@ -622,12 +622,12 @@ export function isSystemEvent( */ export function isSystemEvent( eventType: T, - event: CloudEvent + event: CloudEvent, ): event is CloudEvent; export function isSystemEvent( eventType: T, - event: EventGridEvent | CloudEvent + event: EventGridEvent | CloudEvent, ): event is | EventGridEvent | CloudEvent { diff --git a/sdk/eventgrid/eventgrid/src/util.ts b/sdk/eventgrid/eventgrid/src/util.ts index 5563c6ea8d2d..5cca80cc77fd 100644 --- a/sdk/eventgrid/eventgrid/src/util.ts +++ b/sdk/eventgrid/eventgrid/src/util.ts @@ -113,7 +113,7 @@ function validateRequiredStringProperties(o: any, propertyNames: string[]): void if (typeof o[propertyName] !== "string") { throw new TypeError( - `event property '${propertyName} should be a 'string', but is '${typeof o[propertyName]}'` + `event property '${propertyName} should be a 'string', but is '${typeof o[propertyName]}'`, ); } } @@ -133,7 +133,7 @@ function validateOptionalStringProperties(o: any, propertyNames: string[]): void throw new TypeError( `event property '${propertyName}' should be a 'string' but it is a '${typeof o[ propertyName - ]}'` + ]}'`, ); } } diff --git a/sdk/eventgrid/eventgrid/test/public/consumer.spec.ts b/sdk/eventgrid/eventgrid/test/public/consumer.spec.ts index 1ac34276dbd5..051480d57b84 100644 --- a/sdk/eventgrid/eventgrid/test/public/consumer.spec.ts +++ b/sdk/eventgrid/eventgrid/test/public/consumer.spec.ts @@ -15,7 +15,7 @@ describe("EventGridDeserializer", function () { describe("#deserializeEventGridEvents", function () { it("deserializes a single event", async () => { const events = await consumer.deserializeEventGridEvents( - testData.customTestEvent1.eventGridSchema.encodedEvent + testData.customTestEvent1.eventGridSchema.encodedEvent, ); assert.lengthOf(events, 1); @@ -24,7 +24,7 @@ describe("EventGridDeserializer", function () { it("deserialized a batch with a single event ", async () => { const events = await consumer.deserializeEventGridEvents( - wrapEncodedEventsInArray([testData.customTestEvent1.eventGridSchema]) + wrapEncodedEventsInArray([testData.customTestEvent1.eventGridSchema]), ); assert.lengthOf(events, 1); @@ -36,7 +36,7 @@ describe("EventGridDeserializer", function () { wrapEncodedEventsInArray([ testData.customTestEvent1.eventGridSchema, testData.customTestEvent2.eventGridSchema, - ]) + ]), ); assert.lengthOf(events, 2); @@ -58,7 +58,7 @@ describe("EventGridDeserializer", function () { assert.isRejected( consumer.deserializeEventGridEvents(JSON.stringify(o)), - /missing required property/ + /missing required property/, ); } }); @@ -69,7 +69,7 @@ describe("EventGridDeserializer", function () { assert.isRejected( consumer.deserializeEventGridEvents(JSON.stringify(o)), - /event is not in the Event Grid schema/ + /event is not in the Event Grid schema/, ); }); }); @@ -77,7 +77,7 @@ describe("EventGridDeserializer", function () { describe("#deserializeCloudEvents", function () { it("deserializes a single event", async () => { const events = await consumer.deserializeCloudEvents( - testData.customTestEvent1.cloudEventSchema.encodedEvent + testData.customTestEvent1.cloudEventSchema.encodedEvent, ); assert.lengthOf(events, 1); @@ -86,7 +86,7 @@ describe("EventGridDeserializer", function () { it("deserialized a batch with a single event ", async () => { const events = await consumer.deserializeCloudEvents( - wrapEncodedEventsInArray([testData.customTestEvent1.cloudEventSchema]) + wrapEncodedEventsInArray([testData.customTestEvent1.cloudEventSchema]), ); assert.lengthOf(events, 1); @@ -98,7 +98,7 @@ describe("EventGridDeserializer", function () { wrapEncodedEventsInArray([ testData.customTestEvent1.cloudEventSchema, testData.customTestEvent2.cloudEventSchema, - ]) + ]), ); assert.lengthOf(events, 2); @@ -113,7 +113,7 @@ describe("EventGridDeserializer", function () { assert.isRejected( consumer.deserializeCloudEvents(JSON.stringify(o)), - /missing required property/ + /missing required property/, ); } }); @@ -124,7 +124,7 @@ describe("EventGridDeserializer", function () { assert.isRejected( consumer.deserializeCloudEvents(JSON.stringify(o)), - /event is not in the Cloud Event 1.0 schema/ + /event is not in the Cloud Event 1.0 schema/, ); }); diff --git a/sdk/eventgrid/eventgrid/test/public/eventGridClient.spec.ts b/sdk/eventgrid/eventgrid/test/public/eventGridClient.spec.ts index 70e1146544fc..55ca38126496 100644 --- a/sdk/eventgrid/eventgrid/test/public/eventGridClient.spec.ts +++ b/sdk/eventgrid/eventgrid/test/public/eventGridClient.spec.ts @@ -31,7 +31,7 @@ describe("EventGridPublisherClient", function (this: Suite) { this.currentTest, "EVENT_GRID_EVENT_GRID_SCHEMA_ENDPOINT", "EventGrid", - "EVENT_GRID_EVENT_GRID_SCHEMA_API_KEY" + "EVENT_GRID_EVENT_GRID_SCHEMA_API_KEY", )); }); @@ -55,7 +55,7 @@ describe("EventGridPublisherClient", function (this: Suite) { }, }, ], - { onResponse: (response) => (status = response.status) } + { onResponse: (response) => (status = response.status) }, ); assert.strictEqual(status, 200); @@ -87,7 +87,7 @@ describe("EventGridPublisherClient", function (this: Suite) { }, }, ], - { onResponse: (response) => (status = response.status) } + { onResponse: (response) => (status = response.status) }, ); assert.strictEqual(status, 200); @@ -105,7 +105,7 @@ describe("EventGridPublisherClient", function (this: Suite) { "EVENT_GRID_CUSTOM_SCHEMA_API_KEY", { removeApiEventsSuffixBool: true, - } + }, )); }); @@ -147,7 +147,7 @@ describe("EventGridPublisherClient", function (this: Suite) { this.currentTest, "EVENT_GRID_CLOUD_EVENT_SCHEMA_ENDPOINT", "CloudEvent", - "EVENT_GRID_CLOUD_EVENT_SCHEMA_API_KEY" + "EVENT_GRID_CLOUD_EVENT_SCHEMA_API_KEY", )); await recorder.setMatcher("HeaderlessMatcher"); }); @@ -171,7 +171,7 @@ describe("EventGridPublisherClient", function (this: Suite) { }, }, ], - { onResponse: (response) => (status = response.status) } + { onResponse: (response) => (status = response.status) }, ); assert.strictEqual(status, 200); @@ -203,7 +203,7 @@ describe("EventGridPublisherClient", function (this: Suite) { }, }, ], - { onResponse: (response) => (status = response.status) } + { onResponse: (response) => (status = response.status) }, ); assert.strictEqual(status, 200); @@ -233,7 +233,7 @@ describe("EventGridPublisherClient", function (this: Suite) { "EVENT_GRID_CLOUD_EVENT_SCHEMA_API_KEY", { additionalPolicies: [setHeadersPolicy], - } + }, )); await recorder.setMatcher("HeaderlessMatcher"); }); @@ -249,7 +249,7 @@ describe("EventGridPublisherClient", function (this: Suite) { type: "Azure.Sdk.TestEvent1", id: recorder.variable( "cloudTracingEventId", - `cloudTracingEventId${getRandomNumber()}` + `cloudTracingEventId${getRandomNumber()}`, ), time: new Date(recorder.variable("cloudTracingEventDate", new Date().toString())), source: "/earth/unitedstates/washington/kirkland/finnhill", @@ -262,10 +262,10 @@ describe("EventGridPublisherClient", function (this: Suite) { { ...options, onResponse: (response) => (requestBody = response.request.body as string), - } + }, ); }, - ["EventGridPublisherClient.send"] + ["EventGridPublisherClient.send"], ); const parsedBody = JSON.parse(requestBody || ""); @@ -287,7 +287,7 @@ describe("EventGridPublisherClient", function (this: Suite) { "EVENT_GRID_CLOUD_EVENT_SCHEMA_API_KEY", { removeApiEventsSuffixBool: true, - } + }, )); }); @@ -327,7 +327,7 @@ describe("EventGridPublisherClient", function (this: Suite) { this.currentTest, "EVENT_GRID_CUSTOM_SCHEMA_ENDPOINT", "Custom", - "EVENT_GRID_CUSTOM_SCHEMA_API_KEY" + "EVENT_GRID_CUSTOM_SCHEMA_API_KEY", )); }); @@ -349,7 +349,7 @@ describe("EventGridPublisherClient", function (this: Suite) { }, }, ], - { onResponse: (response) => (status = response.status) } + { onResponse: (response) => (status = response.status) }, ); assert.strictEqual(status, 200); @@ -377,7 +377,7 @@ describe("EventGridPublisherClient", function (this: Suite) { }, }, ], - { onResponse: (response) => (status = response.status) } + { onResponse: (response) => (status = response.status) }, ); assert.strictEqual(status, 200); @@ -395,7 +395,7 @@ describe("EventGridPublisherClient", function (this: Suite) { "EVENT_GRID_CUSTOM_SCHEMA_API_KEY", { removeApiEventsSuffixBool: true, - } + }, )); }); diff --git a/sdk/eventgrid/eventgrid/test/public/generateSharedAccessSignature.spec.ts b/sdk/eventgrid/eventgrid/test/public/generateSharedAccessSignature.spec.ts index 10a64a78f3ce..be66d0d520f3 100644 --- a/sdk/eventgrid/eventgrid/test/public/generateSharedAccessSignature.spec.ts +++ b/sdk/eventgrid/eventgrid/test/public/generateSharedAccessSignature.spec.ts @@ -18,12 +18,12 @@ describe("generateSharedAccessSignature", function () { const sig = await generateSharedAccessSignature( topicUrl, new AzureKeyCredential(key), - new Date(Date.UTC(2020, 0, 1, 0, 0, 0)) + new Date(Date.UTC(2020, 0, 1, 0, 0, 0)), ); assert.equal( sig, - "r=https%3A%2F%2Feg-topic.westus-2.eventgrid.azure.net%2Fapi%2Fevents%3FapiVersion%3D2018-01-01&e=1%2F1%2F2020%2012%3A00%3A00%20AM&s=ZzvNAYRyvJwDrOJKYxbNAPNCoSqgOJVLFi4IMXOrW2Q%3D" + "r=https%3A%2F%2Feg-topic.westus-2.eventgrid.azure.net%2Fapi%2Fevents%3FapiVersion%3D2018-01-01&e=1%2F1%2F2020%2012%3A00%3A00%20AM&s=ZzvNAYRyvJwDrOJKYxbNAPNCoSqgOJVLFi4IMXOrW2Q%3D", ); }); }); diff --git a/sdk/eventgrid/eventgrid/test/public/utils/recordedClient.ts b/sdk/eventgrid/eventgrid/test/public/utils/recordedClient.ts index 607312bd1d8a..0fa7dd2bef0b 100644 --- a/sdk/eventgrid/eventgrid/test/public/utils/recordedClient.ts +++ b/sdk/eventgrid/eventgrid/test/public/utils/recordedClient.ts @@ -50,7 +50,7 @@ export async function createRecordedClient( options: { removeApiEventsSuffixBool?: boolean; additionalPolicies?: AdditionalPolicyConfig[]; - } = {} + } = {}, ): Promise> { const recorder = new Recorder(currentTest); await recorder.start(recorderOptions); @@ -71,7 +71,7 @@ export async function createRecordedClient( new AzureKeyCredential(assertEnvironmentVariable(apiKeyEnv)), recorder.configureClientOptions({ additionalPolicies: options.additionalPolicies, - }) + }), ), recorder, }; diff --git a/sdk/eventgrid/perf-tests/eventgrid/package.json b/sdk/eventgrid/perf-tests/eventgrid/package.json index 13a22af55c7a..c2cee3aaac0f 100644 --- a/sdk/eventgrid/perf-tests/eventgrid/package.json +++ b/sdk/eventgrid/perf-tests/eventgrid/package.json @@ -15,11 +15,11 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -28,9 +28,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/eventhub/event-hubs/package.json b/sdk/eventhub/event-hubs/package.json index 4b882ed23281..32e0b4851cc8 100644 --- a/sdk/eventhub/event-hubs/package.json +++ b/sdk/eventhub/event-hubs/package.json @@ -45,11 +45,11 @@ "build:test:node": "tsc -p .", "build:test": "npm run bundle && npm run generate-certs && copyfiles -f ./test/internal/node/partitionKeyHashMap.json ./dist-esm/test/internal/node", "build": "npm run clean && npm run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate-certs": "node ./scripts/generateCerts.js", "integration-test:browser": "cross-env TEST_TARGET=live DISABLE_MULTI_VERSION_TESTING=true karma start --single-run", "integration-test:node": "cross-env TEST_TARGET=live DISABLE_MULTI_VERSION_TESTING=true dev-tool run test:node-js-input --no-test-proxy=true -- --timeout 600000 \"dist-esm/test/internal/*.spec.js\" \"dist-esm/test/public/*.spec.js\" \"dist-esm/test/public/**/*.spec.js\" \"dist-esm/test/internal/**/*.spec.js\"", @@ -151,7 +151,6 @@ "mocha": "^10.0.0", "moment": "^2.24.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.0", "sinon": "^17.0.0", diff --git a/sdk/eventhub/event-hubs/samples-dev/iothubConnectionString.ts b/sdk/eventhub/event-hubs/samples-dev/iothubConnectionString.ts index 46037008f29c..9585c554170d 100644 --- a/sdk/eventhub/event-hubs/samples-dev/iothubConnectionString.ts +++ b/sdk/eventhub/event-hubs/samples-dev/iothubConnectionString.ts @@ -38,7 +38,7 @@ function generateSasToken( resourceUri: string, signingKey: string, policyName: string, - expiresInMins: number + expiresInMins: number, ): string { resourceUri = encodeURIComponent(resourceUri); @@ -86,7 +86,7 @@ async function convertIotHubToEventHubsConnectionString(connectionString: string `${HostName}/messages/events`, SharedAccessKey, SharedAccessKeyName, - 5 // token expires in 5 minutes + 5, // token expires in 5 minutes ); const connection = new Connection({ @@ -119,7 +119,7 @@ async function convertIotHubToEventHubsConnectionString(connectionString: string } else { const eventHubName = regexResults[1]; resolve( - `Endpoint=sb://${hostname}/;EntityPath=${eventHubName};SharedAccessKeyName=${SharedAccessKeyName};SharedAccessKey=${SharedAccessKey}` + `Endpoint=sb://${hostname}/;EntityPath=${eventHubName};SharedAccessKeyName=${SharedAccessKeyName};SharedAccessKey=${SharedAccessKey}`, ); } } else { @@ -136,7 +136,7 @@ export async function main() { console.log(`Running iothubConnectionString sample`); const eventHubsConnectionString = await convertIotHubToEventHubsConnectionString( - "HostName=.azure-devices.net;SharedAccessKeyName=;SharedAccessKey=" + "HostName=.azure-devices.net;SharedAccessKeyName=;SharedAccessKey=", ); const consumerClient = new EventHubConsumerClient(consumerGroup, eventHubsConnectionString); @@ -147,7 +147,7 @@ export async function main() { processEvents: async (events, context) => { for (const event of events) { console.log( - `Received event: '${event.body}' from partition: '${context.partitionId}' and consumer group: '${context.consumerGroup}'` + `Received event: '${event.body}' from partition: '${context.partitionId}' and consumer group: '${context.consumerGroup}'`, ); } }, @@ -155,7 +155,7 @@ export async function main() { console.log(`Error on partition "${context.partitionId}" : ${err}`); }, }, - { startPosition: earliestEventPosition } + { startPosition: earliestEventPosition }, ); // Wait for a bit before cleaning up the sample diff --git a/sdk/eventhub/event-hubs/samples-dev/iothubConnectionStringWebsockets.ts b/sdk/eventhub/event-hubs/samples-dev/iothubConnectionStringWebsockets.ts index e4b21be70d88..fb2cd1d893ba 100644 --- a/sdk/eventhub/event-hubs/samples-dev/iothubConnectionStringWebsockets.ts +++ b/sdk/eventhub/event-hubs/samples-dev/iothubConnectionStringWebsockets.ts @@ -38,7 +38,7 @@ function generateSasToken( resourceUri: string, signingKey: string, policyName: string, - expiresInMins: number + expiresInMins: number, ): string { resourceUri = encodeURIComponent(resourceUri); @@ -86,7 +86,7 @@ async function convertIotHubToEventHubsConnectionString(connectionString: string `${HostName}/messages/events`, SharedAccessKey, SharedAccessKeyName, - 5 // token expires in 5 minutes + 5, // token expires in 5 minutes ); const connection = new Connection({ @@ -119,7 +119,7 @@ async function convertIotHubToEventHubsConnectionString(connectionString: string reject(error); } else { resolve( - `Endpoint=sb://${hostname}/;EntityPath=${iotHubName};SharedAccessKeyName=${SharedAccessKeyName};SharedAccessKey=${SharedAccessKey}` + `Endpoint=sb://${hostname}/;EntityPath=${iotHubName};SharedAccessKeyName=${SharedAccessKeyName};SharedAccessKey=${SharedAccessKey}`, ); } } else { @@ -136,7 +136,7 @@ export async function main() { console.log(`Running iothubConnectionString sample`); const eventHubsConnectionString = await convertIotHubToEventHubsConnectionString( - "HostName=.azure-devices.net;SharedAccessKeyName=;SharedAccessKey=" + "HostName=.azure-devices.net;SharedAccessKeyName=;SharedAccessKey=", ); const consumerClient = new EventHubConsumerClient(consumerGroup, eventHubsConnectionString); @@ -147,7 +147,7 @@ export async function main() { processEvents: async (events, context) => { for (const event of events) { console.log( - `Received event: '${event.body}' from partition: '${context.partitionId}' and consumer group: '${context.consumerGroup}'` + `Received event: '${event.body}' from partition: '${context.partitionId}' and consumer group: '${context.consumerGroup}'`, ); } }, @@ -155,7 +155,7 @@ export async function main() { console.log(`Error on partition "${context.partitionId}" : ${err}`); }, }, - { startPosition: earliestEventPosition } + { startPosition: earliestEventPosition }, ); // Wait for a bit before cleaning up the sample diff --git a/sdk/eventhub/event-hubs/samples-dev/receiveEvents.ts b/sdk/eventhub/event-hubs/samples-dev/receiveEvents.ts index ff1c6b6bc986..624e965f26cc 100644 --- a/sdk/eventhub/event-hubs/samples-dev/receiveEvents.ts +++ b/sdk/eventhub/event-hubs/samples-dev/receiveEvents.ts @@ -34,7 +34,7 @@ export async function main() { // it in the `options` passed to `subscribe()`. for (const event of events) { console.log( - `Received event: '${event.body}' from partition: '${context.partitionId}' and consumer group: '${context.consumerGroup}'` + `Received event: '${event.body}' from partition: '${context.partitionId}' and consumer group: '${context.consumerGroup}'`, ); } }, @@ -42,7 +42,7 @@ export async function main() { console.log(`Error on partition "${context.partitionId}": ${err}`); }, }, - { startPosition: earliestEventPosition } + { startPosition: earliestEventPosition }, ); // Wait for a bit before cleaning up the sample diff --git a/sdk/eventhub/event-hubs/samples-dev/sendBufferedEvents.ts b/sdk/eventhub/event-hubs/samples-dev/sendBufferedEvents.ts index 8c4d2268a3c8..9074f1c66c82 100644 --- a/sdk/eventhub/event-hubs/samples-dev/sendBufferedEvents.ts +++ b/sdk/eventhub/event-hubs/samples-dev/sendBufferedEvents.ts @@ -22,7 +22,7 @@ async function handleError(ctx: OnSendEventsErrorContext): Promise { console.log(`The following error occurred:`); console.log(JSON.stringify(ctx.error, undefined, 2)); console.log( - `The following events were not sent as a result to the partition with ID ${ctx.partitionId}:` + `The following events were not sent as a result to the partition with ID ${ctx.partitionId}:`, ); for (const event of ctx.events) { console.log(JSON.stringify(event, undefined, 2)); diff --git a/sdk/eventhub/event-hubs/samples-dev/usingAadAuth.ts b/sdk/eventhub/event-hubs/samples-dev/usingAadAuth.ts index f2ab90e896ff..ecd9065a5531 100644 --- a/sdk/eventhub/event-hubs/samples-dev/usingAadAuth.ts +++ b/sdk/eventhub/event-hubs/samples-dev/usingAadAuth.ts @@ -42,7 +42,7 @@ export async function main(): Promise { consumerGroup, eventHubsFullyQualifiedName, eventHubName, - credential + credential, ); /* Refer to other samples, and place your code here diff --git a/sdk/eventhub/event-hubs/src/batchingPartitionChannel.ts b/sdk/eventhub/event-hubs/src/batchingPartitionChannel.ts index 88a3eb1cf9b6..6a8fc1e29fc8 100644 --- a/sdk/eventhub/event-hubs/src/batchingPartitionChannel.ts +++ b/sdk/eventhub/event-hubs/src/batchingPartitionChannel.ts @@ -95,8 +95,8 @@ export class BatchingPartitionChannel { `The following error occured during batch creation or sending: ${JSON.stringify( e, undefined, - " " - )}` + " ", + )}`, ); }); } @@ -178,10 +178,10 @@ export class BatchingPartitionChannel { delay( maximumTimeToWaitForEvent, abortOptions.abortSignal, - abortOptions.abortErrorMsg + abortOptions.abortErrorMsg, ), ], - { abortSignal: this._loopAbortSignal } + { abortSignal: this._loopAbortSignal }, )); if (!event) { @@ -293,8 +293,8 @@ export class BatchingPartitionChannel { `The following error occurred in the onSendEventsSuccessHandler: ${JSON.stringify( e, undefined, - " " - )}` + " ", + )}`, ); } } @@ -317,8 +317,8 @@ export class BatchingPartitionChannel { `The following error occurred in the onSendEventsErrorHandler: ${JSON.stringify( e, undefined, - " " - )}` + " ", + )}`, ); } } diff --git a/sdk/eventhub/event-hubs/src/connectionContext.ts b/sdk/eventhub/event-hubs/src/connectionContext.ts index d5af018890b4..f6b407556be6 100644 --- a/sdk/eventhub/event-hubs/src/connectionContext.ts +++ b/sdk/eventhub/event-hubs/src/connectionContext.ts @@ -155,7 +155,7 @@ export namespace ConnectionContext { if (finalUserAgent.length > Constants.maxUserAgentLength) { throw new Error( `The user-agent string cannot be more than ${Constants.maxUserAgentLength} characters in length.` + - `The given user-agent string is: ${finalUserAgent} with length: ${finalUserAgent.length}` + `The given user-agent string is: ${finalUserAgent} with length: ${finalUserAgent.length}`, ); } return finalUserAgent; @@ -164,7 +164,7 @@ export namespace ConnectionContext { export function create( config: EventHubConnectionConfig, tokenCredential: SasTokenProvider | TokenCredential, - options?: ConnectionContextOptions + options?: ConnectionContextOptions, ): ConnectionContext { if (!options) options = {}; @@ -222,7 +222,7 @@ export namespace ConnectionContext { logger.verbose( `[${this.connectionId}] Attempting to reinitialize connection` + ` but the connection is in the process of closing.` + - ` Waiting for the disconnect event before continuing.` + ` Waiting for the disconnect event before continuing.`, ); this.connection.once(ConnectionEvents.disconnected, resolve); }, optionsArg); @@ -239,19 +239,21 @@ export namespace ConnectionContext { if (this.connection.isOpen()) { // Close all the senders. await Promise.all( - Object.keys(connectionContext.senders).map((name) => - connectionContext.senders[name]?.close().catch(() => { - /* error already logged, swallow it here */ - }) - ) + Object.keys(connectionContext.senders).map( + (name) => + connectionContext.senders[name]?.close().catch(() => { + /* error already logged, swallow it here */ + }), + ), ); // Close all the receivers. await Promise.all( - Object.keys(connectionContext.receivers).map((name) => - connectionContext.receivers[name]?.close().catch(() => { - /* error already logged, swallow it here */ - }) - ) + Object.keys(connectionContext.receivers).map( + (name) => + connectionContext.receivers[name]?.close().catch(() => { + /* error already logged, swallow it here */ + }), + ), ); // Close the cbs session; await this.cbsSession.close(); @@ -265,7 +267,7 @@ export namespace ConnectionContext { const errorDescription = err instanceof Error ? `${err.name}: ${err.message}` : JSON.stringify(err); logger.warning( - `An error occurred while closing the connection "${this.connectionId}":\n${errorDescription}` + `An error occurred while closing the connection "${this.connectionId}":\n${errorDescription}`, ); logErrorStackTrace(err); throw err; @@ -280,7 +282,7 @@ export namespace ConnectionContext { logger.verbose( "[%s] setting 'wasConnectionCloseCalled' property of connection context to %s.", connectionContext.connection.id, - connectionContext.wasConnectionCloseCalled + connectionContext.wasConnectionCloseCalled, ); }; @@ -294,21 +296,21 @@ export namespace ConnectionContext { try { logger.verbose( "[%s] 'disconnected' event occurred on the amqp connection.", - connectionContext.connection.id + connectionContext.connection.id, ); if (context.connection && context.connection.error) { logger.verbose( "[%s] Accompanying error on the context.connection: %O", connectionContext.connection.id, - context.connection && context.connection.error + context.connection && context.connection.error, ); } if (context.error) { logger.verbose( "[%s] Accompanying error on the context: %O", connectionContext.connection.id, - context.error + context.error, ); } const state: Readonly<{ @@ -323,7 +325,7 @@ export namespace ConnectionContext { logger.verbose( "[%s] Closing all open senders and receivers in the state: %O", connectionContext.connection.id, - state + state, ); // Clear internal map maintained by rhea to avoid reconnecting of old links once the @@ -342,25 +344,27 @@ export namespace ConnectionContext { // Close all senders and receivers to ensure clean up of timers & other resources. if (state.numSenders || state.numReceivers) { await Promise.all( - Object.keys(connectionContext.senders).map((name) => - connectionContext.senders[name]?.close().catch(() => { - /* error already logged, swallow it here */ - }) - ) + Object.keys(connectionContext.senders).map( + (name) => + connectionContext.senders[name]?.close().catch(() => { + /* error already logged, swallow it here */ + }), + ), ); await Promise.all( - Object.keys(connectionContext.receivers).map((name) => - connectionContext.receivers[name]?.close().catch(() => { - /* error already logged, swallow it here */ - }) - ) + Object.keys(connectionContext.receivers).map( + (name) => + connectionContext.receivers[name]?.close().catch(() => { + /* error already logged, swallow it here */ + }), + ), ); } } catch (err: any) { logger.verbose( `[${connectionContext.connectionId}] An error occurred while closing the connection in 'disconnected'. %O`, - err + err, ); } @@ -369,7 +373,7 @@ export namespace ConnectionContext { } catch (err: any) { logger.verbose( `[${connectionContext.connectionId}] An error occurred while refreshing the connection in 'disconnected'. %O`, - err + err, ); } finally { waitForConnectionRefreshResolve(); @@ -380,21 +384,21 @@ export namespace ConnectionContext { const protocolError: OnAmqpEvent = async (context: EventContext) => { logger.verbose( "[%s] 'protocol_error' event occurred on the amqp connection.", - connectionContext.connection.id + connectionContext.connection.id, ); if (context.connection && context.connection.error) { logger.verbose( "[%s] Accompanying error on the context.connection: %O", connectionContext.connection.id, - context.connection && context.connection.error + context.connection && context.connection.error, ); } if (context.error) { logger.verbose( "[%s] Accompanying error on the context: %O", connectionContext.connection.id, - context.error + context.error, ); } }; @@ -402,21 +406,21 @@ export namespace ConnectionContext { const error: OnAmqpEvent = async (context: EventContext) => { logger.verbose( "[%s] 'error' event occurred on the amqp connection.", - connectionContext.connection.id + connectionContext.connection.id, ); if (context.connection && context.connection.error) { logger.verbose( "[%s] Accompanying error on the context.connection: %O", connectionContext.connection.id, - context.connection && context.connection.error + context.connection && context.connection.error, ); } if (context.error) { logger.verbose( "[%s] Accompanying error on the context: %O", connectionContext.connection.id, - context.error + context.error, ); } }; @@ -446,7 +450,7 @@ export namespace ConnectionContext { } catch (err: any) { logger.verbose( `[${context.connectionId}] There was an error closing the connection before reconnecting: %O`, - err + err, ); } @@ -454,7 +458,7 @@ export namespace ConnectionContext { context.refreshConnection(); addConnectionListeners(context.connection); logger.verbose( - `The connection "${originalConnectionId}" has been updated to "${context.connectionId}".` + `The connection "${originalConnectionId}" has been updated to "${context.connectionId}".`, ); } @@ -479,7 +483,7 @@ export function createConnectionContext( | NamedKeyCredential | SASCredential | EventHubClientOptions, - options?: EventHubClientOptions + options?: EventHubClientOptions, ): ConnectionContext { let connectionString; let config; @@ -496,7 +500,7 @@ export function createConnectionContext( ) { throw new TypeError( `Either provide "eventHubName" or the "connectionString": "${hostOrConnectionString}", ` + - `must contain "EntityPath=".` + `must contain "EntityPath=".`, ); } if ( @@ -507,7 +511,7 @@ export function createConnectionContext( ) { throw new TypeError( `The entity path "${parsedCS.eventHubName}" in connectionString: "${hostOrConnectionString}" ` + - `doesn't match with eventHubName: "${eventHubNameOrOptions}".` + `doesn't match with eventHubName: "${eventHubNameOrOptions}".`, ); } connectionString = hostOrConnectionString; diff --git a/sdk/eventhub/event-hubs/src/dataTransformer.ts b/sdk/eventhub/event-hubs/src/dataTransformer.ts index 6d56b0c0d9de..41d76c41d145 100644 --- a/sdk/eventhub/event-hubs/src/dataTransformer.ts +++ b/sdk/eventhub/event-hubs/src/dataTransformer.ts @@ -80,7 +80,7 @@ export const defaultDataTransformer = { */ decode( body: unknown | RheaAmqpSection, - skipParsingBodyAsJson: boolean + skipParsingBodyAsJson: boolean, ): { body: unknown; bodyType: BodyTypes } { try { if (isRheaAmqpSection(body)) { @@ -105,7 +105,7 @@ export const defaultDataTransformer = { } catch (err: any) { logger.verbose( "[decode] An error occurred while decoding the received message body. The error is: %O", - err + err, ); throw err; } @@ -131,7 +131,7 @@ function tryToJsonDecode(body: unknown): unknown { } catch (err: any) { logger.verbose( "[decode] An error occurred while trying JSON.parse() on the received body. The error is %O", - err + err, ); } return processedBody; @@ -152,7 +152,7 @@ export interface RheaAmqpSection { /** @internal */ export function isRheaAmqpSection( - possibleSection: any | RheaAmqpSection + possibleSection: any | RheaAmqpSection, ): possibleSection is RheaAmqpSection { return ( possibleSection != null && diff --git a/sdk/eventhub/event-hubs/src/diagnostics/instrumentEventData.ts b/sdk/eventhub/event-hubs/src/diagnostics/instrumentEventData.ts index 88e528bc2a91..ec116ea83329 100644 --- a/sdk/eventhub/event-hubs/src/diagnostics/instrumentEventData.ts +++ b/sdk/eventhub/event-hubs/src/diagnostics/instrumentEventData.ts @@ -25,7 +25,7 @@ export function instrumentEventData( options: OperationOptions, entityPath: string, host: string, - operation?: MessagingOperationNames + operation?: MessagingOperationNames, ): { event: EventData; spanContext: TracingContext | undefined } { const props = isAmqpAnnotatedMessage(eventData) ? eventData.applicationProperties @@ -41,7 +41,7 @@ export function instrumentEventData( const { span: messageSpan, updatedOptions } = tracingClient.startSpan( "message", options, - toSpanOptions({ entityPath, host }, operation, "producer") + toSpanOptions({ entityPath, host }, operation, "producer"), ); try { if (!messageSpan.isRecording()) { @@ -52,7 +52,7 @@ export function instrumentEventData( } const traceParent = tracingClient.createRequestHeaders( - updatedOptions.tracingOptions?.tracingContext + updatedOptions.tracingOptions?.tracingContext, )["traceparent"]; if (traceParent) { const copiedProps = { ...props }; diff --git a/sdk/eventhub/event-hubs/src/diagnostics/tracing.ts b/sdk/eventhub/event-hubs/src/diagnostics/tracing.ts index 244946f1ed03..8d8b020713fe 100644 --- a/sdk/eventhub/event-hubs/src/diagnostics/tracing.ts +++ b/sdk/eventhub/event-hubs/src/diagnostics/tracing.ts @@ -29,7 +29,7 @@ export const tracingClient = createTracingClient({ export function toSpanOptions( eventHubConfig: Pick, operation?: MessagingOperationNames, - spanKind?: TracingSpanKind + spanKind?: TracingSpanKind, ): TracingSpanOptions { const propertyName = operation === "process" || operation === "receive" diff --git a/sdk/eventhub/event-hubs/src/eventData.ts b/sdk/eventhub/event-hubs/src/eventData.ts index dd0a9d34bab4..d502a6f4056a 100644 --- a/sdk/eventhub/event-hubs/src/eventData.ts +++ b/sdk/eventhub/event-hubs/src/eventData.ts @@ -180,7 +180,7 @@ const messagePropertiesMap = { */ export function fromRheaMessage( msg: RheaMessage, - skipParsingBodyAsJson: boolean + skipParsingBodyAsJson: boolean, ): EventDataInternal { const rawMessage = AmqpAnnotatedMessage.fromRheaMessage(msg); const { body, bodyType } = defaultDataTransformer.decode(msg.body, skipParsingBodyAsJson); @@ -213,7 +213,7 @@ export function fromRheaMessage( data.systemProperties = {}; } data.systemProperties[annotationKey] = convertDatesToNumbers( - msg.message_annotations[annotationKey] + msg.message_annotations[annotationKey], ); break; } @@ -227,7 +227,7 @@ export function fromRheaMessage( data.lastSequenceNumber = msg.delivery_annotations.last_enqueued_sequence_number; data.lastEnqueuedTime = new Date(msg.delivery_annotations.last_enqueued_time_utc as number); data.retrievalTime = new Date( - msg.delivery_annotations.runtime_info_retrieval_time_utc as number + msg.delivery_annotations.runtime_info_retrieval_time_utc as number, ); } @@ -240,7 +240,7 @@ export function fromRheaMessage( } if (msg[messageProperty] != null) { data.systemProperties[messagePropertiesMap[messageProperty]] = convertDatesToNumbers( - msg[messageProperty] + msg[messageProperty], ); } } @@ -266,7 +266,7 @@ export function fromRheaMessage( */ export function toRheaMessage( data: EventData | AmqpAnnotatedMessage, - partitionKey?: string + partitionKey?: string, ): RheaMessage { let rheaMessage: RheaMessage; if (isAmqpAnnotatedMessage(data)) { @@ -315,7 +315,7 @@ export function toRheaMessage( data.messageId.length > Constants.maxMessageIdLength ) { throw new Error( - `Length of 'messageId' property on the event cannot be greater than ${Constants.maxMessageIdLength} characters.` + `Length of 'messageId' property on the event cannot be greater than ${Constants.maxMessageIdLength} characters.`, ); } rheaMessage.message_id = data.messageId; @@ -515,7 +515,7 @@ export function populateIdempotentMessageAnnotations( ownerLevel, producerGroupId, publishSequenceNumber, - }: PopulateIdempotentMessageAnnotationsParameters + }: PopulateIdempotentMessageAnnotationsParameters, ): void { if (!isIdempotentPublishingEnabled) { return; diff --git a/sdk/eventhub/event-hubs/src/eventDataAdapter.ts b/sdk/eventhub/event-hubs/src/eventDataAdapter.ts index de54cf6e7791..dcdbc8f5c2da 100644 --- a/sdk/eventhub/event-hubs/src/eventDataAdapter.ts +++ b/sdk/eventhub/event-hubs/src/eventDataAdapter.ts @@ -76,7 +76,7 @@ export interface EventDataAdapterParameters { * @returns An event data adapter that can produce and consume event data */ export function createEventDataAdapter( - params: EventDataAdapterParameters = {} + params: EventDataAdapterParameters = {}, ): MessageAdapter { return { produce: ({ data: body, contentType }: MessageContent) => { diff --git a/sdk/eventhub/event-hubs/src/eventDataBatch.ts b/sdk/eventhub/event-hubs/src/eventDataBatch.ts index 5907787eadb2..d130a2db447b 100644 --- a/sdk/eventhub/event-hubs/src/eventDataBatch.ts +++ b/sdk/eventhub/event-hubs/src/eventDataBatch.ts @@ -181,7 +181,7 @@ export class EventDataBatchImpl implements EventDataBatch { maxSizeInBytes: number, isIdempotent: boolean, partitionKey?: string, - partitionId?: string + partitionId?: string, ) { this._context = context; this._maxSizeInBytes = maxSizeInBytes; @@ -262,7 +262,7 @@ export class EventDataBatchImpl implements EventDataBatch { private _generateBatch( encodedEvents: Buffer[], annotations: MessageAnnotations | undefined, - publishingProps?: PartitionPublishingProperties + publishingProps?: PartitionPublishingProperties, ): Buffer { if (this._isIdempotent && publishingProps) { // We need to decode the encoded events, add the idempotent annotations, and re-encode them. @@ -273,7 +273,7 @@ export class EventDataBatchImpl implements EventDataBatch { const decodedEvents = encodedEvents.map(message.decode) as unknown as RheaMessage[]; const decoratedEvents = this._decorateRheaMessagesWithPublishingProps( decodedEvents, - publishingProps + publishingProps, ); encodedEvents = decoratedEvents.map(message.encode); } @@ -292,7 +292,7 @@ export class EventDataBatchImpl implements EventDataBatch { */ private _decorateRheaMessagesWithPublishingProps( events: RheaMessage[], - publishingProps: PartitionPublishingProperties + publishingProps: PartitionPublishingProperties, ): RheaMessage[] { if (!this._isIdempotent) { return events; @@ -376,7 +376,7 @@ export class EventDataBatchImpl implements EventDataBatch { eventData, options, entityPath, - host + host, ); // Convert EventData to RheaMessage. diff --git a/sdk/eventhub/event-hubs/src/eventHubBufferedProducerClient.ts b/sdk/eventhub/event-hubs/src/eventHubBufferedProducerClient.ts index f9f6bc1aee6d..66bf90dac27f 100644 --- a/sdk/eventhub/event-hubs/src/eventHubBufferedProducerClient.ts +++ b/sdk/eventhub/event-hubs/src/eventHubBufferedProducerClient.ts @@ -240,7 +240,7 @@ export class EventHubBufferedProducerClient { constructor( connectionString: string, eventHubName: string, - options: EventHubBufferedProducerClientOptions + options: EventHubBufferedProducerClientOptions, ); /** * The `EventHubBufferedProducerClient` class is used to send events to an Event Hub. @@ -266,7 +266,7 @@ export class EventHubBufferedProducerClient { fullyQualifiedNamespace: string, eventHubName: string, credential: TokenCredential | NamedKeyCredential | SASCredential, - options: EventHubBufferedProducerClientOptions + options: EventHubBufferedProducerClientOptions, ); constructor( fullyQualifiedNamespaceOrConnectionString1: string, @@ -276,7 +276,7 @@ export class EventHubBufferedProducerClient { | NamedKeyCredential | SASCredential | EventHubBufferedProducerClientOptions, - options4?: EventHubBufferedProducerClientOptions + options4?: EventHubBufferedProducerClientOptions, ) { if (typeof eventHubNameOrOptions2 !== "string") { this.identifier = eventHubNameOrOptions2.identifier ?? getRandomName(); @@ -290,7 +290,7 @@ export class EventHubBufferedProducerClient { this._producer = new EventHubProducerClient( fullyQualifiedNamespaceOrConnectionString1, eventHubNameOrOptions2, - { ...credentialOrOptions3, identifier: this.identifier } + { ...credentialOrOptions3, identifier: this.identifier }, ); this._clientOptions = { ...credentialOrOptions3! }; } else { @@ -299,7 +299,7 @@ export class EventHubBufferedProducerClient { fullyQualifiedNamespaceOrConnectionString1, eventHubNameOrOptions2, credentialOrOptions3, - { ...options4, identifier: this.identifier } + { ...options4, identifier: this.identifier }, ); this._clientOptions = { ...options4! }; } @@ -352,11 +352,11 @@ export class EventHubBufferedProducerClient { */ async enqueueEvent( event: EventData | AmqpAnnotatedMessage, - options: EnqueueEventOptions = {} + options: EnqueueEventOptions = {}, ): Promise { if (this._isClosed) { throw new Error( - `This EventHubBufferedProducerClient has already been closed. Create a new client to enqueue events.` + `This EventHubBufferedProducerClient has already been closed. Create a new client to enqueue events.`, ); } @@ -369,8 +369,8 @@ export class EventHubBufferedProducerClient { `The following error occured during batch creation or sending: ${JSON.stringify( e, undefined, - " " - )}` + " ", + )}`, ); }); this._isBackgroundManagementRunning = true; @@ -406,7 +406,7 @@ export class EventHubBufferedProducerClient { */ async enqueueEvents( events: EventData[] | AmqpAnnotatedMessage[], - options: EnqueueEventOptions = {} + options: EnqueueEventOptions = {}, ): Promise { for (const event of events) { await this.enqueueEvent(event, options); @@ -425,7 +425,7 @@ export class EventHubBufferedProducerClient { */ async flush(options: BufferedFlushOptions = {}): Promise { await Promise.all( - Array.from(this._partitionChannels.values()).map((channel) => channel.flush(options)) + Array.from(this._partitionChannels.values()).map((channel) => channel.flush(options)), ); } @@ -462,7 +462,7 @@ export class EventHubBufferedProducerClient { */ getPartitionProperties( partitionId: string, - options: GetPartitionPropertiesOptions = {} + options: GetPartitionPropertiesOptions = {}, ): Promise { return this._producer.getPartitionProperties(partitionId, options); } diff --git a/sdk/eventhub/event-hubs/src/eventHubConsumerClient.ts b/sdk/eventhub/event-hubs/src/eventHubConsumerClient.ts index a08b9b4c7597..70b4653bbd68 100644 --- a/sdk/eventhub/event-hubs/src/eventHubConsumerClient.ts +++ b/sdk/eventhub/event-hubs/src/eventHubConsumerClient.ts @@ -123,7 +123,7 @@ export class EventHubConsumerClient { constructor( consumerGroup: string, connectionString: string, - options?: EventHubConsumerClientOptions + options?: EventHubConsumerClientOptions, ); // #1 /** * The `EventHubConsumerClient` class is used to consume events from an Event Hub. @@ -145,7 +145,7 @@ export class EventHubConsumerClient { consumerGroup: string, connectionString: string, checkpointStore: CheckpointStore, - options?: EventHubConsumerClientOptions + options?: EventHubConsumerClientOptions, ); // #1.1 /** * The `EventHubConsumerClient` class is used to consume events from an Event Hub. @@ -165,7 +165,7 @@ export class EventHubConsumerClient { consumerGroup: string, connectionString: string, eventHubName: string, - options?: EventHubConsumerClientOptions + options?: EventHubConsumerClientOptions, ); // #2 /** * The `EventHubConsumerClient` class is used to consume events from an Event Hub. @@ -189,7 +189,7 @@ export class EventHubConsumerClient { connectionString: string, eventHubName: string, checkpointStore: CheckpointStore, - options?: EventHubConsumerClientOptions + options?: EventHubConsumerClientOptions, ); // #2.1 /** * The `EventHubConsumerClient` class is used to consume events from an Event Hub. @@ -217,7 +217,7 @@ export class EventHubConsumerClient { fullyQualifiedNamespace: string, eventHubName: string, credential: TokenCredential | NamedKeyCredential | SASCredential, - options?: EventHubConsumerClientOptions + options?: EventHubConsumerClientOptions, ); // #3 /** * The `EventHubConsumerClient` class is used to consume events from an Event Hub. @@ -249,7 +249,7 @@ export class EventHubConsumerClient { eventHubName: string, credential: TokenCredential | NamedKeyCredential | SASCredential, checkpointStore: CheckpointStore, - options?: EventHubConsumerClientOptions + options?: EventHubConsumerClientOptions, ); // #3.1 constructor( private _consumerGroup: string, @@ -265,7 +265,7 @@ export class EventHubConsumerClient { | NamedKeyCredential | SASCredential, checkpointStoreOrOptions5?: CheckpointStore | EventHubConsumerClientOptions, - options6?: EventHubConsumerClientOptions + options6?: EventHubConsumerClientOptions, ) { if (isCredential(checkpointStoreOrCredentialOrOptions4)) { // #3 or 3.1 @@ -286,7 +286,7 @@ export class EventHubConsumerClient { connectionStringOrFullyQualifiedNamespace2, checkpointStoreOrEventHubNameOrOptions3 as string, checkpointStoreOrCredentialOrOptions4, - this._clientOptions + this._clientOptions, ); } else if (typeof checkpointStoreOrEventHubNameOrOptions3 === "string") { // #2 or 2.1 @@ -307,7 +307,7 @@ export class EventHubConsumerClient { this._context = createConnectionContext( connectionStringOrFullyQualifiedNamespace2, checkpointStoreOrEventHubNameOrOptions3, - this._clientOptions + this._clientOptions, ); } else { // #1 or 1.1 @@ -329,7 +329,7 @@ export class EventHubConsumerClient { this._context = createConnectionContext( connectionStringOrFullyQualifiedNamespace2, - this._clientOptions + this._clientOptions, ); } this.identifier = this._clientOptions.identifier ?? getRandomName(); @@ -355,7 +355,7 @@ export class EventHubConsumerClient { await Promise.all( activeSubscriptions.map((subscription) => { return subscription.close(); - }) + }), ); // Close the connection via the connection context. return this._context.close(); @@ -390,7 +390,7 @@ export class EventHubConsumerClient { */ getPartitionProperties( partitionId: string, - options: GetPartitionPropertiesOptions = {} + options: GetPartitionPropertiesOptions = {}, ): Promise { return this._context.managementSession!.getPartitionProperties(partitionId, { ...options, @@ -472,12 +472,12 @@ export class EventHubConsumerClient { subscribe( partitionId: string, handlers: SubscriptionEventHandlers, - options?: SubscribeOptions + options?: SubscribeOptions, ): Subscription; // #2 subscribe( handlersOrPartitionId1?: SubscriptionEventHandlers | string, optionsOrHandlers2?: SubscribeOptions | SubscriptionEventHandlers, - possibleOptions3?: SubscribeOptions + possibleOptions3?: SubscribeOptions, ): Subscription { let eventProcessor: EventProcessor; let targetedPartitionId: string; @@ -490,7 +490,7 @@ export class EventHubConsumerClient { } ({ targetedPartitionId, eventProcessor } = this.createEventProcessorForAllPartitions( handlersOrPartitionId1, - options + options, )); } else if (isSubscriptionEventHandlers(optionsOrHandlers2)) { // #2: subscribe overload (read from specific partition IDs), don't coordinate @@ -503,7 +503,7 @@ export class EventHubConsumerClient { // we don't validate the user input and instead rely on service throwing errors if any String(handlersOrPartitionId1), optionsOrHandlers2, - possibleOptions3 + possibleOptions3, )); } else { throw new TypeError("Unhandled subscribe() overload"); @@ -548,13 +548,13 @@ export class EventHubConsumerClient { private createEventProcessorForAllPartitions( subscriptionEventHandlers: SubscriptionEventHandlers, - options?: SubscribeOptions + options?: SubscribeOptions, ): { targetedPartitionId: string; eventProcessor: EventProcessor } { this._partitionGate.add("all"); if (this._userChoseCheckpointStore) { logger.verbose( - "EventHubConsumerClient subscribing to all partitions, using a checkpoint store." + "EventHubConsumerClient subscribing to all partitions, using a checkpoint store.", ); } else { logger.verbose("EventHubConsumerClient subscribing to all partitions, no checkpoint store."); @@ -575,7 +575,7 @@ export class EventHubConsumerClient { retryOptions: this._clientOptions.retryOptions, loadBalancingStrategy, loopIntervalInMs: this._loadBalancingOptions.updateIntervalInMs, - } + }, ); return { targetedPartitionId: "all", eventProcessor }; @@ -584,7 +584,7 @@ export class EventHubConsumerClient { private createEventProcessorForSinglePartition( partitionId: string, eventHandlers: SubscriptionEventHandlers, - options?: SubscribeOptions + options?: SubscribeOptions, ): { targetedPartitionId: string; eventProcessor: EventProcessor } { this._partitionGate.add(partitionId); @@ -592,11 +592,11 @@ export class EventHubConsumerClient { if (this._userChoseCheckpointStore) { logger.verbose( - `EventHubConsumerClient subscribing to specific partition (${partitionId}), using a checkpoint store.` + `EventHubConsumerClient subscribing to specific partition (${partitionId}), using a checkpoint store.`, ); } else { logger.verbose( - `EventHubConsumerClient subscribing to specific partition (${partitionId}), no checkpoint store.` + `EventHubConsumerClient subscribing to specific partition (${partitionId}), no checkpoint store.`, ); } @@ -612,7 +612,7 @@ export class EventHubConsumerClient { retryOptions: this._clientOptions.retryOptions, loadBalancingStrategy: new UnbalancedLoadBalancingStrategy(), loopIntervalInMs: this._loadBalancingOptions.updateIntervalInMs ?? 10000, - } + }, ); return { targetedPartitionId: partitionId, eventProcessor }; @@ -622,14 +622,14 @@ export class EventHubConsumerClient { connectionContext: ConnectionContext, subscriptionEventHandlers: SubscriptionEventHandlers, checkpointStore: CheckpointStore, - options: FullEventProcessorOptions + options: FullEventProcessorOptions, ): EventProcessor { return new EventProcessor( this._consumerGroup, connectionContext, subscriptionEventHandlers, checkpointStore, - options + options, ); } } @@ -656,14 +656,14 @@ export function isCheckpointStore(possible: CheckpointStore | any): possible is * @internal */ function isSubscriptionEventHandlers( - possible: any | SubscriptionEventHandlers + possible: any | SubscriptionEventHandlers, ): possible is SubscriptionEventHandlers { return typeof (possible as SubscriptionEventHandlers).processEvents === "function"; } function getOwnerLevel( options: SubscribeOptions | undefined, - userChoseCheckpointStore: boolean + userChoseCheckpointStore: boolean, ): number | undefined { if (options && options.ownerLevel) { return options.ownerLevel; diff --git a/sdk/eventhub/event-hubs/src/eventHubConsumerClientModels.ts b/sdk/eventhub/event-hubs/src/eventHubConsumerClientModels.ts index 7cdbafa002fb..b299fbcb4bc8 100644 --- a/sdk/eventhub/event-hubs/src/eventHubConsumerClientModels.ts +++ b/sdk/eventhub/event-hubs/src/eventHubConsumerClientModels.ts @@ -78,7 +78,7 @@ export interface PartitionContext { */ export type ProcessEventsHandler = ( events: ReceivedEventData[], - context: PartitionContext + context: PartitionContext, ) => Promise; /** @@ -87,7 +87,7 @@ export type ProcessEventsHandler = ( */ export type ProcessErrorHandler = ( error: Error | MessagingError, - context: PartitionContext + context: PartitionContext, ) => Promise; /** diff --git a/sdk/eventhub/event-hubs/src/eventHubProducerClient.ts b/sdk/eventhub/event-hubs/src/eventHubProducerClient.ts index 0fbd69b1fe04..eebab3e606f5 100644 --- a/sdk/eventhub/event-hubs/src/eventHubProducerClient.ts +++ b/sdk/eventhub/event-hubs/src/eventHubProducerClient.ts @@ -147,7 +147,7 @@ export class EventHubProducerClient { fullyQualifiedNamespace: string, eventHubName: string, credential: TokenCredential | NamedKeyCredential | SASCredential, - options?: EventHubClientOptions // eslint-disable-line @azure/azure-sdk/ts-naming-options + options?: EventHubClientOptions, // eslint-disable-line @azure/azure-sdk/ts-naming-options ); constructor( fullyQualifiedNamespaceOrConnectionString1: string, @@ -157,13 +157,13 @@ export class EventHubProducerClient { | NamedKeyCredential | SASCredential | EventHubClientOptions, - options4?: EventHubClientOptions // eslint-disable-line @azure/azure-sdk/ts-naming-options + options4?: EventHubClientOptions, // eslint-disable-line @azure/azure-sdk/ts-naming-options ) { this._context = createConnectionContext( fullyQualifiedNamespaceOrConnectionString1, eventHubNameOrOptions2, credentialOrOptions3, - options4 + options4, ); if (typeof eventHubNameOrOptions2 !== "string") { this._clientOptions = eventHubNameOrOptions2 || {}; @@ -249,7 +249,7 @@ export class EventHubProducerClient { if (options.maxSizeInBytes) { if (options.maxSizeInBytes > maxMessageSize) { const error = new Error( - `Max message size (${options.maxSizeInBytes} bytes) is greater than maximum message size (${maxMessageSize} bytes) on the AMQP sender link.` + `Max message size (${options.maxSizeInBytes} bytes) is greater than maximum message size (${maxMessageSize} bytes) on the AMQP sender link.`, ); logger.warning(`[${this._context.connectionId}] ${error.message}`); logErrorStackTrace(error); @@ -262,7 +262,7 @@ export class EventHubProducerClient { maxMessageSize, Boolean(this._enableIdempotentRetries), options.partitionKey, - partitionId + partitionId, ); } @@ -281,11 +281,11 @@ export class EventHubProducerClient { // @ts-ignore this is called in EventHubBufferedProducerClient via cast-to-any workaround private async getPartitionPublishingProperties( partitionId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { if (!isDefined(partitionId)) { throw new TypeError( - `getPartitionPublishingProperties called without required argument "partitionId"` + `getPartitionPublishingProperties called without required argument "partitionId"`, ); } @@ -335,7 +335,7 @@ export class EventHubProducerClient { */ async sendBatch( batch: EventData[] | AmqpAnnotatedMessage[], - options?: SendBatchOptions + options?: SendBatchOptions, ): Promise; /** * Sends a batch of events created using `EventHubProducerClient.createBatch()` to the associated Event Hub. @@ -378,7 +378,7 @@ export class EventHubProducerClient { async sendBatch(batch: EventDataBatch, options?: OperationOptions): Promise; // eslint-disable-line @azure/azure-sdk/ts-naming-options async sendBatch( batch: EventDataBatch | EventData[], - options: SendBatchOptions | OperationOptions = {} + options: SendBatchOptions | OperationOptions = {}, ): Promise { throwErrorIfConnectionClosed(this._context); throwTypeErrorIfParameterMissing(this._context.connectionId, "sendBatch", "batch", batch); @@ -423,7 +423,7 @@ export class EventHubProducerClient { options, this._context.config.entityPath, this._context.config.host, - "publish" + "publish", ).event; eventDataTracingProperties[i] = batch[i].properties; } @@ -464,7 +464,7 @@ export class EventHubProducerClient { return { tracingContext }; }), ...toSpanOptions(this._context.config, "publish", "client"), - } + }, ); } @@ -526,7 +526,7 @@ export class EventHubProducerClient { */ getPartitionProperties( partitionId: string, - options: GetPartitionPropertiesOptions = {} + options: GetPartitionPropertiesOptions = {}, ): Promise { return this._context.managementSession!.getPartitionProperties(partitionId, { ...options, @@ -560,7 +560,7 @@ function extractPartitionAssignmentFromOptions(options: SendBatchOptions = {}): */ function extractPartitionAssignmentFromBatch( batch: EventDataBatch, - options: SendBatchOptions + options: SendBatchOptions, ): { partitionKey?: string; partitionId?: string } { const result: ReturnType = {}; const partitionId = batch.partitionId; @@ -570,12 +570,12 @@ function extractPartitionAssignmentFromBatch( extractPartitionAssignmentFromOptions(options); if (unexpectedPartitionKey && partitionKey !== unexpectedPartitionKey) { throw new Error( - `The partitionKey (${unexpectedPartitionKey}) set on sendBatch does not match the partitionKey (${partitionKey}) set when creating the batch.` + `The partitionKey (${unexpectedPartitionKey}) set on sendBatch does not match the partitionKey (${partitionKey}) set when creating the batch.`, ); } if (unexpectedPartitionId && unexpectedPartitionId !== partitionId) { throw new Error( - `The partitionId (${unexpectedPartitionId}) set on sendBatch does not match the partitionId (${partitionId}) set when creating the batch.` + `The partitionId (${unexpectedPartitionId}) set on sendBatch does not match the partitionId (${partitionId}) set when creating the batch.`, ); } diff --git a/sdk/eventhub/event-hubs/src/eventHubSender.ts b/sdk/eventhub/event-hubs/src/eventHubSender.ts index a650edf89c9b..480f3daac309 100644 --- a/sdk/eventhub/event-hubs/src/eventHubSender.ts +++ b/sdk/eventhub/event-hubs/src/eventHubSender.ts @@ -173,7 +173,7 @@ export class EventHubSender { constructor( context: ConnectionContext, senderId: string, - { partitionId, enableIdempotentProducer, partitionPublishingOptions }: EventHubSenderOptions + { partitionId, enableIdempotentProducer, partitionPublishingOptions }: EventHubSenderOptions, ) { this.address = context.config.getSenderAddress(partitionId); this.name = this.address; @@ -190,7 +190,7 @@ export class EventHubSender { const senderError = eventContext.sender && eventContext.sender.error; this.logger.verbose( "'sender_error' event occurred. The associated error is: %O", - senderError + senderError, ); // TODO: Consider rejecting promise in trySendBatch() or createBatch() }; @@ -199,7 +199,7 @@ export class EventHubSender { const sessionError = eventContext.session && eventContext.session.error; this.logger.verbose( "'session_error' event occurred. The associated error is: %O", - sessionError + sessionError, ); // TODO: Consider rejecting promise in trySendBatch() or createBatch() }; @@ -210,7 +210,7 @@ export class EventHubSender { "'sender_close' event occurred. Value for isItselfClosed on the receiver is: '%s' " + "Value for isConnecting on the session is: '%s'.", sender?.isItselfClosed().toString(), - this.isConnecting + this.isConnecting, ); if (sender && !this.isConnecting) { // Call close to clean up timers & other resources @@ -226,7 +226,7 @@ export class EventHubSender { "'session_close' event occurred. Value for isSessionItselfClosed on the session is: '%s' " + "Value for isConnecting on the session is: '%s'.", sender?.isSessionItselfClosed().toString(), - this.isConnecting + this.isConnecting, ); if (sender && !this.isConnecting) { // Call close to clean up timers & other resources @@ -278,7 +278,7 @@ export class EventHubSender { options: { retryOptions?: RetryOptions; abortSignal?: AbortSignalLike; - } = {} + } = {}, ): Promise { const sender = await this._getLink(options); @@ -294,7 +294,7 @@ export class EventHubSender { options: { retryOptions?: RetryOptions; abortSignal?: AbortSignalLike; - } = {} + } = {}, ): Promise { if (this._localPublishingProperties) { // Send a copy of the properties so it can't be mutated downstream. @@ -313,7 +313,7 @@ export class EventHubSender { // createLinkIfNotOpen should throw if `this._sender` can't be created, but just in case it gets // deleted while setting up token refreshing, make sure it exists. throw new Error( - `Failed to retrieve partition publishing properties for partition "${this.partitionId}".` + `Failed to retrieve partition publishing properties for partition "${this.partitionId}".`, ); } @@ -344,13 +344,13 @@ export class EventHubSender { async send( events: EventData[] | EventDataBatch, options?: SendOptions & - EventHubProducerOptions & { tracingProperties?: Array } + EventHubProducerOptions & { tracingProperties?: Array }, ): Promise { try { this.logger.info("trying to send EventData[]."); if (this._isIdempotentProducer && this._hasPendingSend) { throw new Error( - `There can only be 1 "sendBatch" call in-flight per partition while "enableIdempotentRetries" is set to true.` + `There can only be 1 "sendBatch" call in-flight per partition while "enableIdempotentRetries" is set to true.`, ); } @@ -379,7 +379,7 @@ export class EventHubSender { } catch (err: any) { rollbackIdempotentSequenceNumbers(events); this.logger.warning( - `an error occurred while sending the batch message ${err?.name}: ${err?.message}` + `an error occurred while sending the batch message ${err?.name}: ${err?.message}`, ); logErrorStackTrace(err); throw err; @@ -432,7 +432,7 @@ export class EventHubSender { srOptions.desired_capabilities = idempotentProducerAmqpPropertyNames.capability; const idempotentProperties = generateIdempotentLinkProperties( this._userProvidedPublishingOptions, - this._localPublishingProperties + this._localPublishingProperties, ); srOptions.properties = idempotentProperties; } @@ -457,7 +457,7 @@ export class EventHubSender { * Tracing properties that are associated with EventData. */ tracingProperties?: Array; - } = {} + } = {}, ): Promise { const abortSignal: AbortSignalLike | undefined = options.abortSignal; const retryOptions = options.retryOptions || {}; @@ -477,7 +477,7 @@ export class EventHubSender { this.logger.verbose( "credit: %d available: %d", sender.credit, - sender.session.outgoing.available() + sender.session.outgoing.available(), ); let waitTimeForSendable = 1000; @@ -489,7 +489,7 @@ export class EventHubSender { this.logger.verbose( "after waiting for a second, credit: %d available: %d", sender.credit, - sender.session?.outgoing?.available() + sender.session?.outgoing?.available(), ); } else { waitTimeForSendable = 0; @@ -546,7 +546,7 @@ export class EventHubSender { const translatedError = translate(err); this.logger.warning( "an error occurred while sending the message %s", - `${translatedError?.name}: ${translatedError?.message}` + `${translatedError?.name}: ${translatedError?.message}`, ); logErrorStackTrace(translatedError); throw translatedError; @@ -557,7 +557,7 @@ export class EventHubSender { options: { retryOptions?: RetryOptions; abortSignal?: AbortSignalLike; - } = {} + } = {}, ): Promise { if (this.isOpen() && this._sender) { return this._sender; @@ -580,7 +580,7 @@ export class EventHubSender { timeoutInMs: taskTimeoutInMs, }); }, - { abortSignal: options.abortSignal, timeoutInMs: timeoutInMs } + { abortSignal: options.abortSignal, timeoutInMs: timeoutInMs }, ); }; @@ -598,7 +598,7 @@ export class EventHubSender { const translatedError = translate(err); this.logger.warning( "an error occurred while creating: %s", - `${translatedError?.name}: ${translatedError?.message}` + `${translatedError?.name}: ${translatedError?.message}`, ); logErrorStackTrace(translatedError); throw translatedError; @@ -613,7 +613,7 @@ export class EventHubSender { options: AwaitableSenderOptions & { abortSignal: AbortSignalLike | undefined; timeoutInMs: number; - } + }, ): Promise { const createSender = async () => { this.logger.verbose("trying to be created..."); @@ -637,7 +637,7 @@ export class EventHubSender { this.audience, options.timeoutInMs, this.logger, - { abortSignal: options.abortSignal } + { abortSignal: options.abortSignal }, ); // it is guaranteed to be defined at this point, otherwise, an error would // have been thrown. @@ -650,7 +650,7 @@ export class EventHubSender { const translatedError = translate(err); this.logger.warning( "an error occurred while being created: %s", - `${translatedError?.name}: ${translatedError?.message}` + `${translatedError?.name}: ${translatedError?.message}`, ); logErrorStackTrace(translatedError); throw translatedError; @@ -666,7 +666,7 @@ export class EventHubSender { static create( context: ConnectionContext, senderId: string, - options: EventHubSenderOptions + options: EventHubSenderOptions, ): EventHubSender { const ehSender: EventHubSender = new EventHubSender(context, senderId, options); if (!context.senders[ehSender.name]) { @@ -691,7 +691,7 @@ export class EventHubSender { */ export function generateIdempotentLinkProperties( userProvidedPublishingOptions: PartitionPublishingOptions | undefined, - localPublishingOptions: PartitionPublishingProperties | undefined + localPublishingOptions: PartitionPublishingProperties | undefined, ): IdempotentLinkProperties | Record { let ownerLevel: number | undefined; let producerGroupId: number | undefined; @@ -752,7 +752,7 @@ export function transformEventsForSend( * The index of tracingProperties corresponds to the same index in `events` when `events` is EventData[]. */ tracingProperties?: Array; - } = {} + } = {}, ): Buffer { if (isEventDataBatch(events)) { return (events as EventDataBatchImpl)._generateMessage(publishingProps); @@ -811,7 +811,7 @@ export function transformEventsForSend( * EventData not in a batch exposes this as `publishedSequenceNumber`. */ function commitIdempotentSequenceNumbers( - events: Omit[] | EventDataBatch + events: Omit[] | EventDataBatch, ): void { if (isEventDataBatch(events)) { (events as EventDataBatchImpl)._commitPublish(); @@ -829,7 +829,7 @@ function commitIdempotentSequenceNumbers( * Rolls back any pending publish sequence number in the events. */ function rollbackIdempotentSequenceNumbers( - events: Omit[] | EventDataBatch + events: Omit[] | EventDataBatch, ): void { if (isEventDataBatch(events)) { /* No action required. */ diff --git a/sdk/eventhub/event-hubs/src/eventPosition.ts b/sdk/eventhub/event-hubs/src/eventPosition.ts index 51e1fe46477d..d5f62552e623 100644 --- a/sdk/eventhub/event-hubs/src/eventPosition.ts +++ b/sdk/eventhub/event-hubs/src/eventPosition.ts @@ -110,7 +110,7 @@ export const latestEventPosition: EventPosition = { * @internal */ export function validateEventPositions( - position: EventPosition | { [partitionId: string]: EventPosition } + position: EventPosition | { [partitionId: string]: EventPosition }, ): void { if (!isDefined(position)) { return; @@ -120,7 +120,7 @@ export function validateEventPositions( if (!keys.length) { throw new TypeError( - "Invalid value for EventPosition found. Pass an object with either of offset, sequenceNumber or enqueuedOn properties set." + "Invalid value for EventPosition found. Pass an object with either of offset, sequenceNumber or enqueuedOn properties set.", ); } @@ -176,13 +176,13 @@ function validateEventPosition(position: EventPosition): void { (enqueuedOnPresent && sequenceNumberPresent) ) { throw new TypeError( - "Invalid value for EventPosition found. Set only one of offset, sequenceNumber or enqueuedOn properties." + "Invalid value for EventPosition found. Set only one of offset, sequenceNumber or enqueuedOn properties.", ); } if (!offsetPresent && !enqueuedOnPresent && !sequenceNumberPresent) { throw new TypeError( - "Invalid value for EventPosition found. Pass an object with either of offset, sequenceNumber or enqueuedOn properties set." + "Invalid value for EventPosition found. Pass an object with either of offset, sequenceNumber or enqueuedOn properties set.", ); } } diff --git a/sdk/eventhub/event-hubs/src/eventProcessor.ts b/sdk/eventhub/event-hubs/src/eventProcessor.ts index b65f2fe25271..092be6cf4f17 100644 --- a/sdk/eventhub/event-hubs/src/eventProcessor.ts +++ b/sdk/eventhub/event-hubs/src/eventProcessor.ts @@ -83,7 +83,7 @@ export interface CheckpointStore { fullyQualifiedNamespace: string, eventHubName: string, consumerGroup: string, - options?: OperationOptions + options?: OperationOptions, ): Promise; /** * Called to claim ownership of a list of partitions. This will return the list of partitions that were owned @@ -97,7 +97,7 @@ export interface CheckpointStore { */ claimOwnership( partitionOwnership: PartitionOwnership[], - options?: OperationOptions + options?: OperationOptions, ): Promise; /** @@ -126,7 +126,7 @@ export interface CheckpointStore { fullyQualifiedNamespace: string, eventHubName: string, consumerGroup: string, - options?: OperationOptions + options?: OperationOptions, ): Promise; } @@ -212,7 +212,7 @@ export class EventProcessor { private _context: ConnectionContext, private _subscriptionEventHandlers: SubscriptionEventHandlers, private _checkpointStore: CheckpointStore, - options: FullEventProcessorOptions + options: FullEventProcessorOptions, ) { if (options.ownerId) { this._id = options.ownerId; @@ -241,7 +241,7 @@ export class EventProcessor { private _createPartitionOwnershipRequest( partitionOwnershipMap: Map, - partitionIdToClaim: string + partitionIdToClaim: string, ): PartitionOwnership { const previousPartitionOwnership = partitionOwnershipMap.get(partitionIdToClaim); const partitionOwnership: PartitionOwnership = { @@ -261,16 +261,16 @@ export class EventProcessor { */ private async _claimOwnership( ownershipRequest: PartitionOwnership, - abortSignal: AbortSignalLike + abortSignal: AbortSignalLike, ): Promise { if (abortSignal.aborted) { logger.verbose( - `[${this._id}] Subscription was closed before claiming ownership of ${ownershipRequest.partitionId}.` + `[${this._id}] Subscription was closed before claiming ownership of ${ownershipRequest.partitionId}.`, ); return; } logger.info( - `[${this._id}] Attempting to claim ownership of partition ${ownershipRequest.partitionId}.` + `[${this._id}] Attempting to claim ownership of partition ${ownershipRequest.partitionId}.`, ); try { const claimedOwnerships = await this._checkpointStore.claimOwnership([ownershipRequest]); @@ -282,13 +282,13 @@ export class EventProcessor { } logger.info( - `[${this._id}] Successfully claimed ownership of partition ${ownershipRequest.partitionId}.` + `[${this._id}] Successfully claimed ownership of partition ${ownershipRequest.partitionId}.`, ); await this._startPump(ownershipRequest.partitionId, abortSignal); } catch (err: any) { logger.warning( - `[${this._id}] Failed to claim ownership of partition ${ownershipRequest.partitionId}` + `[${this._id}] Failed to claim ownership of partition ${ownershipRequest.partitionId}`, ); logErrorStackTrace(err); await this._handleSubscriptionError(err); @@ -298,20 +298,20 @@ export class EventProcessor { private async _startPump(partitionId: string, abortSignal: AbortSignalLike): Promise { if (abortSignal.aborted) { logger.verbose( - `[${this._id}] The subscription was closed before starting to read from ${partitionId}.` + `[${this._id}] The subscription was closed before starting to read from ${partitionId}.`, ); return; } if (this._pumpManager.isReceivingFromPartition(partitionId)) { logger.verbose( - `[${this._id}] There is already an active partitionPump for partition "${partitionId}", skipping pump creation.` + `[${this._id}] There is already an active partitionPump for partition "${partitionId}", skipping pump creation.`, ); return; } logger.verbose( - `[${this._id}] [${partitionId}] Calling user-provided PartitionProcessorFactory.` + `[${this._id}] [${partitionId}] Calling user-provided PartitionProcessorFactory.`, ); const partitionProcessor = new PartitionProcessor( @@ -323,7 +323,7 @@ export class EventProcessor { consumerGroup: this._consumerGroup, partitionId: partitionId, eventProcessorId: this._id, - } + }, ); const eventPosition = await this._getStartingPosition(partitionId); @@ -331,7 +331,7 @@ export class EventProcessor { eventPosition, this._context, partitionProcessor, - abortSignal + abortSignal, ); logger.verbose(`[${this._id}] PartitionPump created successfully.`); @@ -341,11 +341,11 @@ export class EventProcessor { const availableCheckpoints = await this._checkpointStore.listCheckpoints( this._fullyQualifiedNamespace, this._eventHubName, - this._consumerGroup + this._consumerGroup, ); const validCheckpoints = availableCheckpoints.filter( - (chk) => chk.partitionId === partitionIdToClaim + (chk) => chk.partitionId === partitionIdToClaim, ); if (validCheckpoints.length > 0) { @@ -353,28 +353,28 @@ export class EventProcessor { } logger.verbose( - `No checkpoint found for partition ${partitionIdToClaim}. Looking for fallback.` + `No checkpoint found for partition ${partitionIdToClaim}. Looking for fallback.`, ); return getStartPosition(partitionIdToClaim, this._processorOptions.startPosition); } private async _runLoopForSinglePartition( partitionId: string, - abortSignal: AbortSignalLike + abortSignal: AbortSignalLike, ): Promise { while (!abortSignal.aborted) { try { await this._startPump(partitionId, abortSignal); } catch (err: any) { logger.warning( - `[${this._id}] An error occured within the EventProcessor loop: ${err?.name}: ${err?.message}` + `[${this._id}] An error occured within the EventProcessor loop: ${err?.name}: ${err?.message}`, ); logErrorStackTrace(err); await this._handleSubscriptionError(err); } finally { // sleep for some time after which we can attempt to create a pump again. logger.verbose( - `[${this._id}] Pausing the EventProcessor loop for ${this._loopIntervalInMs} ms.` + `[${this._id}] Pausing the EventProcessor loop for ${this._loopIntervalInMs} ms.`, ); // swallow errors from delay since it's fine for delay to exit early await delayWithoutThrow(this._loopIntervalInMs, abortSignal); @@ -395,7 +395,7 @@ export class EventProcessor { */ private async _runLoopWithLoadBalancing( loadBalancingStrategy: LoadBalancingStrategy, - abortSignal: AbortSignalLike + abortSignal: AbortSignalLike, ): Promise { let cancelLoopResolver; // This provides a mechanism for exiting the loop early @@ -420,7 +420,7 @@ export class EventProcessor { await this._performLoadBalancing(loadBalancingStrategy, partitionIds, abortSignal); } catch (err: any) { logger.warning( - `[${this._id}] An error occurred within the EventProcessor loop: ${err?.name}: ${err?.message}` + `[${this._id}] An error occurred within the EventProcessor loop: ${err?.name}: ${err?.message}`, ); logErrorStackTrace(err); // Protect against the scenario where the user awaits on subscription.close() from inside processError. @@ -430,7 +430,7 @@ export class EventProcessor { const iterationDeltaInMs = Date.now() - iterationStartTimeInMs; const delayDurationInMs = Math.max(this._loopIntervalInMs - iterationDeltaInMs, 0); logger.verbose( - `[${this._id}] Pausing the EventProcessor loop for ${delayDurationInMs} ms.` + `[${this._id}] Pausing the EventProcessor loop for ${delayDurationInMs} ms.`, ); // Swallow the error since it's fine to exit early from the delay. await delayWithoutThrow(delayDurationInMs, abortSignal); @@ -446,7 +446,7 @@ export class EventProcessor { private async _performLoadBalancing( loadBalancingStrategy: LoadBalancingStrategy, partitionIds: string[], - abortSignal: AbortSignalLike + abortSignal: AbortSignalLike, ): Promise { if (abortSignal.aborted) throw new AbortError("The operation was aborted."); @@ -454,7 +454,7 @@ export class EventProcessor { const partitionOwnership = await this._checkpointStore.listOwnership( this._fullyQualifiedNamespace, this._eventHubName, - this._consumerGroup + this._consumerGroup, ); if (abortSignal.aborted) throw new AbortError("The operation was aborted."); @@ -471,7 +471,7 @@ export class EventProcessor { for (const partitionToClaim of partitionsToClaim) { const partitionOwnershipRequest = this._createPartitionOwnershipRequest( partitionOwnershipMap, - partitionToClaim + partitionToClaim, ); await this._claimOwnership(partitionOwnershipRequest, abortSignal); @@ -500,7 +500,7 @@ export class EventProcessor { }); } catch (errorFromUser: any) { logger.verbose( - `[${this._id}] An error was thrown from the user's processError handler: ${errorFromUser}` + `[${this._id}] An error was thrown from the user's processError handler: ${errorFromUser}`, ); } } @@ -530,13 +530,13 @@ export class EventProcessor { logger.verbose(`[${this._id}] Single partition target: ${this._processingTarget}`); this._loopTask = this._runLoopForSinglePartition( this._processingTarget, - this._abortController.signal + this._abortController.signal, ); } else { logger.verbose(`[${this._id}] Multiple partitions, using load balancer`); this._loopTask = this._runLoopWithLoadBalancing( this._loadBalancingStrategy, - this._abortController.signal + this._abortController.signal, ); } } @@ -586,7 +586,7 @@ export class EventProcessor { const allOwnerships = await this._checkpointStore.listOwnership( this._fullyQualifiedNamespace, this._eventHubName, - this._consumerGroup + this._consumerGroup, ); const ourOwnerships = allOwnerships.filter((ownership) => ownership.ownerId === this._id); // unclaim any partitions that we currently own @@ -603,7 +603,7 @@ function isAbandoned(ownership: PartitionOwnership): boolean { function getStartPosition( partitionIdToClaim: string, - startPositions?: EventPosition | { [partitionId: string]: EventPosition } + startPositions?: EventPosition | { [partitionId: string]: EventPosition }, ): EventPosition { if (startPositions == null) { return latestEventPosition; @@ -663,7 +663,7 @@ function computePartitionsToClaim(inputs: { const partitionsToClaim = loadBalancingStrategy.getPartitionsToClaim( id, nonAbandonedPartitionOwnershipMap, - partitionIds + partitionIds, ); partitionsToClaim.push(...partitionsToRenew); diff --git a/sdk/eventhub/event-hubs/src/eventhubConnectionConfig.ts b/sdk/eventhub/event-hubs/src/eventhubConnectionConfig.ts index 4f08ad620247..b5ba3772ea3e 100644 --- a/sdk/eventhub/event-hubs/src/eventhubConnectionConfig.ts +++ b/sdk/eventhub/event-hubs/src/eventhubConnectionConfig.ts @@ -85,7 +85,7 @@ export const EventHubConnectionConfig = { if (!config.entityPath) { throw new TypeError( `Either provide "path" or the "connectionString": "${connectionString}", ` + - `must contain EntityPath="".` + `must contain EntityPath="".`, ); } return EventHubConnectionConfig.createFromConnectionConfig(config); @@ -125,7 +125,7 @@ export const EventHubConnectionConfig = { (config as EventHubConnectionConfig).getReceiverAudience = ( partitionId: string | number, - consumergroup?: string + consumergroup?: string, ) => { if (!consumergroup) consumergroup = "$default"; return ( @@ -136,7 +136,7 @@ export const EventHubConnectionConfig = { (config as EventHubConnectionConfig).getReceiverAddress = ( partitionId: string | number, - consumergroup?: string + consumergroup?: string, ) => { if (!consumergroup) consumergroup = "$default"; return `${config.entityPath}/ConsumerGroups/${consumergroup}/Partitions/${partitionId}`; diff --git a/sdk/eventhub/event-hubs/src/impl/partitionAssigner.ts b/sdk/eventhub/event-hubs/src/impl/partitionAssigner.ts index f2804a69a3b2..8402e9f1c395 100644 --- a/sdk/eventhub/event-hubs/src/impl/partitionAssigner.ts +++ b/sdk/eventhub/event-hubs/src/impl/partitionAssigner.ts @@ -40,7 +40,7 @@ export class PartitionAssigner { }): string { if (isDefined(partitionId) && isDefined(partitionKey)) { throw new Error( - `The partitionId (${partitionId}) and partitionKey (${partitionKey}) cannot both be specified.` + `The partitionId (${partitionId}) and partitionKey (${partitionKey}) cannot both be specified.`, ); } diff --git a/sdk/eventhub/event-hubs/src/impl/partitionKeyToIdMapper.ts b/sdk/eventhub/event-hubs/src/impl/partitionKeyToIdMapper.ts index c8de4b1ed333..aad932e23ae9 100644 --- a/sdk/eventhub/event-hubs/src/impl/partitionKeyToIdMapper.ts +++ b/sdk/eventhub/event-hubs/src/impl/partitionKeyToIdMapper.ts @@ -27,7 +27,7 @@ function castToInt16(n: number): number { function computeHash( data: Buffer, seed1: number = 0, - seed2: number = 0 + seed2: number = 0, ): { b: number; c: number; diff --git a/sdk/eventhub/event-hubs/src/inMemoryCheckpointStore.ts b/sdk/eventhub/event-hubs/src/inMemoryCheckpointStore.ts index c357e3d1d55e..00beb5f54fd2 100644 --- a/sdk/eventhub/event-hubs/src/inMemoryCheckpointStore.ts +++ b/sdk/eventhub/event-hubs/src/inMemoryCheckpointStore.ts @@ -34,7 +34,7 @@ export class InMemoryCheckpointStore implements CheckpointStore { async listOwnership( _fullyQualifiedNamespace: string, _eventHubName: string, - _consumerGroup: string + _consumerGroup: string, ): Promise { const ownerships = []; @@ -85,7 +85,7 @@ export class InMemoryCheckpointStore implements CheckpointStore { "", "updateCheckpoint", "sequenceNumber", - checkpoint.sequenceNumber + checkpoint.sequenceNumber, ); throwTypeErrorIfParameterMissing("", "updateCheckpoint", "offset", checkpoint.offset); @@ -110,7 +110,7 @@ export class InMemoryCheckpointStore implements CheckpointStore { async listCheckpoints( fullyQualifiedNamespace: string, eventHubName: string, - consumerGroup: string + consumerGroup: string, ): Promise { const key = `${fullyQualifiedNamespace}:${eventHubName}:${consumerGroup}`; diff --git a/sdk/eventhub/event-hubs/src/loadBalancerStrategies/balancedStrategy.ts b/sdk/eventhub/event-hubs/src/loadBalancerStrategies/balancedStrategy.ts index 9d55f5b62b16..1f6c9eedca44 100644 --- a/sdk/eventhub/event-hubs/src/loadBalancerStrategies/balancedStrategy.ts +++ b/sdk/eventhub/event-hubs/src/loadBalancerStrategies/balancedStrategy.ts @@ -32,13 +32,13 @@ export class BalancedLoadBalancingStrategy implements LoadBalancingStrategy { public getPartitionsToClaim( ourOwnerId: string, claimedPartitionOwnershipMap: Map, - partitionIds: string[] + partitionIds: string[], ): string[] { const claimablePartitions = listAvailablePartitions( ourOwnerId, claimedPartitionOwnershipMap, partitionIds, - this._partitionOwnershipExpirationIntervalInMs + this._partitionOwnershipExpirationIntervalInMs, ); if (!claimablePartitions.length) { diff --git a/sdk/eventhub/event-hubs/src/loadBalancerStrategies/greedyStrategy.ts b/sdk/eventhub/event-hubs/src/loadBalancerStrategies/greedyStrategy.ts index 17405231491b..286a38fae200 100644 --- a/sdk/eventhub/event-hubs/src/loadBalancerStrategies/greedyStrategy.ts +++ b/sdk/eventhub/event-hubs/src/loadBalancerStrategies/greedyStrategy.ts @@ -26,13 +26,13 @@ export class GreedyLoadBalancingStrategy implements LoadBalancingStrategy { public getPartitionsToClaim( ourOwnerId: string, claimedPartitionOwnershipMap: Map, - partitionIds: string[] + partitionIds: string[], ): string[] { return listAvailablePartitions( ourOwnerId, claimedPartitionOwnershipMap, partitionIds, - this._partitionOwnershipExpirationIntervalInMs + this._partitionOwnershipExpirationIntervalInMs, ); } } diff --git a/sdk/eventhub/event-hubs/src/loadBalancerStrategies/loadBalancingStrategy.ts b/sdk/eventhub/event-hubs/src/loadBalancerStrategies/loadBalancingStrategy.ts index d2fc009e65b4..0c2d0fcf6154 100644 --- a/sdk/eventhub/event-hubs/src/loadBalancerStrategies/loadBalancingStrategy.ts +++ b/sdk/eventhub/event-hubs/src/loadBalancerStrategies/loadBalancingStrategy.ts @@ -20,7 +20,7 @@ export interface LoadBalancingStrategy { getPartitionsToClaim( ownerId: string, claimedPartitionOwnershipMap: Map, - partitionIds: string[] + partitionIds: string[], ): string[]; } @@ -61,7 +61,7 @@ interface EventProcessorCounts { */ function getActivePartitionOwnerships( partitionOwnershipMap: Map, - expirationIntervalInMs: number + expirationIntervalInMs: number, ): Map { const activePartitionOwnershipMap: Map = new Map(); partitionOwnershipMap.forEach((partitionOwnership: PartitionOwnership, partitionId: string) => { @@ -91,7 +91,7 @@ function getActivePartitionOwnerships( */ function calculateBalancedLoadCounts( ownerToOwnershipMap: Map, - partitionIds: string[] + partitionIds: string[], ): { minPartitionsPerOwner: number; requiredNumberOfOwnersWithExtraPartition: number } { // Calculate the minimum number of partitions every EventProcessor should own when the load // is evenly distributed. @@ -129,7 +129,7 @@ function calculateBalancedLoadCounts( */ function getEventProcessorCounts( minPartitionsPerOwner: number, - ownerToOwnershipMap: Map + ownerToOwnershipMap: Map, ): EventProcessorCounts { const counts: EventProcessorCounts = { haveRequiredPartitions: 0, @@ -173,7 +173,7 @@ function getEventProcessorCounts( function isLoadBalanced( requiredNumberOfOwnersWithExtraPartition: number, totalExpectedEventProcessors: number, - { haveAdditionalPartition, haveRequiredPartitions }: EventProcessorCounts + { haveAdditionalPartition, haveRequiredPartitions }: EventProcessorCounts, ): boolean { return ( haveAdditionalPartition === requiredNumberOfOwnersWithExtraPartition && @@ -194,7 +194,7 @@ function getNumberOfPartitionsToClaim( minRequiredPartitionCount: number, requiredNumberOfOwnersWithExtraPartition: number, numPartitionsOwnedByUs: number, - { haveAdditionalPartition, haveTooManyPartitions }: EventProcessorCounts + { haveAdditionalPartition, haveTooManyPartitions }: EventProcessorCounts, ): number { let actualRequiredPartitionCount = minRequiredPartitionCount; @@ -227,7 +227,7 @@ function findPartitionsToSteal( minPartitionsPerOwner: number, requiredNumberOfOwnersWithExtraPartition: number, ourOwnerId: string, - ownerToOwnershipMap: Map + ownerToOwnershipMap: Map, ): string[] { const partitionsToSteal: string[] = []; // Create a list of PartitionOwnership lists that we can steal from. @@ -287,7 +287,7 @@ export function listAvailablePartitions( ownerId: string, claimedPartitionOwnershipMap: Map, partitionIds: string[], - expirationIntervalInMs: number + expirationIntervalInMs: number, ): string[] { if (!partitionIds.length) { return []; @@ -297,10 +297,10 @@ export function listAvailablePartitions( // Any PartitionOwnership that has been updated outside the expiration interval can be claimed. const activePartitionOwnershipMap = getActivePartitionOwnerships( claimedPartitionOwnershipMap, - expirationIntervalInMs + expirationIntervalInMs, ); logger.verbose( - `[${ownerId}] Number of active ownership records: ${activePartitionOwnershipMap.size}.` + `[${ownerId}] Number of active ownership records: ${activePartitionOwnershipMap.size}.`, ); if (activePartitionOwnershipMap.size === 0) { @@ -329,7 +329,7 @@ export function listAvailablePartitions( logger.verbose( `[${ownerId}] Expected minimum number of partitions per event processor: ${minPartitionsPerOwner},` + - `expected number of event processors with additional partition: ${requiredNumberOfOwnersWithExtraPartition}.` + `expected number of event processors with additional partition: ${requiredNumberOfOwnersWithExtraPartition}.`, ); // Get some stats representing the current state the world with regards to how balanced the @@ -340,7 +340,7 @@ export function listAvailablePartitions( isLoadBalanced( requiredNumberOfOwnersWithExtraPartition, ownerToOwnershipMap.size, - eventProcessorCounts + eventProcessorCounts, ) ) { // When the partitions are evenly distributed, no change required. @@ -351,7 +351,7 @@ export function listAvailablePartitions( minPartitionsPerOwner, requiredNumberOfOwnersWithExtraPartition, ownerToOwnershipMap.get(ownerId)!.length, - eventProcessorCounts + eventProcessorCounts, ); if (numberOfPartitionsToClaim <= 0) { @@ -378,7 +378,7 @@ export function listAvailablePartitions( minPartitionsPerOwner, requiredNumberOfOwnersWithExtraPartition, ownerId, - ownerToOwnershipMap + ownerToOwnershipMap, ); return partitionsToClaim.concat(partitionsToSteal); diff --git a/sdk/eventhub/event-hubs/src/loadBalancerStrategies/unbalancedStrategy.ts b/sdk/eventhub/event-hubs/src/loadBalancerStrategies/unbalancedStrategy.ts index a9f404424e70..bcadd78859fd 100644 --- a/sdk/eventhub/event-hubs/src/loadBalancerStrategies/unbalancedStrategy.ts +++ b/sdk/eventhub/event-hubs/src/loadBalancerStrategies/unbalancedStrategy.ts @@ -22,7 +22,7 @@ export class UnbalancedLoadBalancingStrategy implements LoadBalancingStrategy { public getPartitionsToClaim( _ourOwnerId: string, _claimedPartitionOwnershipMap: Map, - partitionIds: string[] + partitionIds: string[], ): string[] { return partitionIds; } diff --git a/sdk/eventhub/event-hubs/src/logger.ts b/sdk/eventhub/event-hubs/src/logger.ts index 840453c030a6..d1c9a0590dd6 100644 --- a/sdk/eventhub/event-hubs/src/logger.ts +++ b/sdk/eventhub/event-hubs/src/logger.ts @@ -27,7 +27,7 @@ export function logErrorStackTrace(error: unknown): void { export function createReceiverLogPrefix( consumerId: string, connectionId: string, - partitionId: string + partitionId: string, ): string { return `[${connectionId}] Receiver P${partitionId}-${consumerId}`; } @@ -56,12 +56,12 @@ export type SimpleLogger = { function createLogFunction( azureLogger: AzureLogger, prefix: string, - level: AzureLogLevel + level: AzureLogLevel, ): (arg: any, ...args: any[]) => void { return (arg: any, ...args: any[]) => azureLogger[level]( ...(typeof arg === "string" ? [`${prefix}: ${arg}`] : [prefix, arg]), - ...args + ...args, ); } diff --git a/sdk/eventhub/event-hubs/src/managementClient.ts b/sdk/eventhub/event-hubs/src/managementClient.ts index a17689957050..256620315760 100644 --- a/sdk/eventhub/event-hubs/src/managementClient.ts +++ b/sdk/eventhub/event-hubs/src/managementClient.ts @@ -180,7 +180,7 @@ export class ManagementClient { * Provides the eventhub runtime information. */ async getEventHubProperties( - options: OperationOptions & { retryOptions?: RetryOptions } = {} + options: OperationOptions & { retryOptions?: RetryOptions } = {}, ): Promise { throwErrorIfConnectionClosed(this._context); return tracingClient.withSpan( @@ -216,13 +216,13 @@ export class ManagementClient { return runtimeInfo; } catch (error: any) { logger.warning( - `an error occurred while getting the hub runtime information: ${error?.name}: ${error?.message}` + `an error occurred while getting the hub runtime information: ${error?.name}: ${error?.message}`, ); logErrorStackTrace(error); throw error; } }, - toSpanOptions(this._context.config) + toSpanOptions(this._context.config), ); } @@ -232,14 +232,14 @@ export class ManagementClient { */ async getPartitionProperties( partitionId: string, - options: OperationOptions & { retryOptions?: RetryOptions } = {} + options: OperationOptions & { retryOptions?: RetryOptions } = {}, ): Promise { throwErrorIfConnectionClosed(this._context); throwTypeErrorIfParameterMissing( this._context.connectionId, "getPartitionProperties", "partitionId", - partitionId + partitionId, ); partitionId = String(partitionId); @@ -280,13 +280,13 @@ export class ManagementClient { return partitionInfo; } catch (error: any) { logger.warning( - `an error occurred while getting the partition information: ${error?.name}: ${error?.message}` + `an error occurred while getting the partition information: ${error?.name}: ${error?.message}`, ); logErrorStackTrace(error); throw error; } }, - toSpanOptions(this._context.config) + toSpanOptions(this._context.config), ); } @@ -328,7 +328,7 @@ export class ManagementClient { const ehError = translate(context.session!.error!); logger.verbose( "an error occurred on the session for request/response links for " + "$management: %O", - ehError + ehError, ); }, }; @@ -338,13 +338,13 @@ export class ManagementClient { logger.verbose( "creating sender/receiver links with " + "srOpts: %o, receiverOpts: %O.", sropt, - rxopt + rxopt, ); this._mgmtReqResLink = await RequestResponseLink.create( this._context.connection, sropt, rxopt, - { abortSignal } + { abortSignal }, ); this._mgmtReqResLink.sender.on(SenderEvents.senderError, (context: EventContext) => { const ehError = translate(context.sender!.error!); @@ -357,7 +357,7 @@ export class ManagementClient { logger.verbose( "created sender '%s' and receiver '%s' links", this._mgmtReqResLink.sender.name, - this._mgmtReqResLink.receiver.name + this._mgmtReqResLink.receiver.name, ); }; try { @@ -370,13 +370,13 @@ export class ManagementClient { this.audience, timeoutInMs, this.logger, - { abortSignal } + { abortSignal }, ); } } catch (err) { const translatedError = translate(err); logger.warning( - `an error occurred while establishing the links: ${translatedError?.name}: ${translatedError?.message}` + `an error occurred while establishing the links: ${translatedError?.name}: ${translatedError?.message}`, ); logErrorStackTrace(translatedError); throw translatedError; @@ -394,7 +394,7 @@ export class ManagementClient { retryOptions?: RetryOptions; abortSignal?: AbortSignalLike; requestName?: string; - } = {} + } = {}, ): Promise { const retryOptions = options.retryOptions || {}; try { @@ -419,13 +419,13 @@ export class ManagementClient { retryTimeoutInMs - (acquireLockEndTime - initOperationStartTime); return this._init({ abortSignal, timeoutInMs }); }, - { abortSignal, timeoutInMs: retryTimeoutInMs } + { abortSignal, timeoutInMs: retryTimeoutInMs }, ); } catch (err) { const translatedError = translate(err); logger.warning( "an error occurred while creating the link: %s", - `${translatedError?.name}: ${translatedError?.message}` + `${translatedError?.name}: ${translatedError?.message}`, ); logErrorStackTrace(translatedError); throw translatedError; @@ -467,14 +467,14 @@ export class ManagementClient { return this._context.connectionId; }, }, - } + }, ) as RetryConfig; return (await retry(config)).body; } catch (err) { const translatedError = translate(err); logger.warning( "an error occurred during send on management request-response link with address: %s", - `${translatedError?.name}: ${translatedError?.message}` + `${translatedError?.name}: ${translatedError?.message}`, ); logErrorStackTrace(translatedError); throw translatedError; diff --git a/sdk/eventhub/event-hubs/src/partitionProcessor.ts b/sdk/eventhub/event-hubs/src/partitionProcessor.ts index 0cb76481fb38..1425e0b827a1 100644 --- a/sdk/eventhub/event-hubs/src/partitionProcessor.ts +++ b/sdk/eventhub/event-hubs/src/partitionProcessor.ts @@ -69,7 +69,7 @@ export class PartitionProcessor implements PartitionContext { private _checkpointStore: CheckpointStore, private _context: BasicPartitionProperties & { eventProcessorId: string; - } + }, ) {} /** diff --git a/sdk/eventhub/event-hubs/src/partitionPump.ts b/sdk/eventhub/event-hubs/src/partitionPump.ts index 77f536c3a286..c84bc823bc55 100644 --- a/sdk/eventhub/event-hubs/src/partitionPump.ts +++ b/sdk/eventhub/event-hubs/src/partitionPump.ts @@ -30,7 +30,7 @@ export class PartitionPump { private _context: ConnectionContext, partitionProcessor: PartitionProcessor, private readonly _startPosition: EventPosition, - options: CommonEventProcessorOptions + options: CommonEventProcessorOptions, ) { this._partitionProcessor = partitionProcessor; this._processorOptions = options; @@ -54,7 +54,7 @@ export class PartitionPump { // execute and can be stopped by calling .stop() this._receiveEvents(this._partitionProcessor.partitionId); logger.info( - `Successfully started the receiver for partition "${this._partitionProcessor.partitionId}".` + `Successfully started the receiver for partition "${this._partitionProcessor.partitionId}".`, ); } @@ -66,7 +66,7 @@ export class PartitionPump { */ private _setOrReplaceReceiver( partitionId: string, - lastSeenSequenceNumber: number + lastSeenSequenceNumber: number, ): PartitionReceiver { // Determine what the new EventPosition should be. // If this PartitionPump has received events, we'll start from the last @@ -93,7 +93,7 @@ export class PartitionPump { retryOptions: this._processorOptions.retryOptions, skipParsingBodyAsJson: this._processorOptions.skipParsingBodyAsJson, prefetchCount: this._processorOptions.prefetchCount, - } + }, ); return this._receiver; @@ -113,7 +113,7 @@ export class PartitionPump { const receivedEvents = await receiver.receiveBatch( this._processorOptions.maxBatchSize, this._processorOptions.maxWaitTimeInSeconds, - this._abortController.signal + this._abortController.signal, ); if ( @@ -136,7 +136,7 @@ export class PartitionPump { "PartitionPump.process", {}, () => this._partitionProcessor.processEvents(receivedEvents), - toProcessingSpanOptions(receivedEvents, this._context.config) + toProcessingSpanOptions(receivedEvents, this._context.config), ); } catch (err: any) { // check if this pump is still receiving @@ -147,7 +147,7 @@ export class PartitionPump { } logger.warning( - `An error was thrown while receiving or processing events on partition "${this._partitionProcessor.partitionId}"` + `An error was thrown while receiving or processing events on partition "${this._partitionProcessor.partitionId}"`, ); logErrorStackTrace(err); // forward error to user's processError and swallow errors they may throw @@ -172,7 +172,7 @@ export class PartitionPump { // Using verbose over warning because this error is swallowed. logger.verbose( `An error occurred while closing the receiver with reason ${CloseReason.Shutdown}: `, - errorFromStop + errorFromStop, ); } } @@ -207,7 +207,7 @@ export class PartitionPump { */ export function toProcessingSpanOptions( receivedEvents: ReceivedEventData[], - eventHubProperties: Pick + eventHubProperties: Pick, ): TracingSpanOptions { const spanLinks: TracingSpanLink[] = []; for (const receivedEvent of receivedEvents) { diff --git a/sdk/eventhub/event-hubs/src/partitionReceiver.ts b/sdk/eventhub/event-hubs/src/partitionReceiver.ts index 173ad0f14a20..f073ad15fcfd 100644 --- a/sdk/eventhub/event-hubs/src/partitionReceiver.ts +++ b/sdk/eventhub/event-hubs/src/partitionReceiver.ts @@ -84,7 +84,7 @@ export interface PartitionReceiver { readonly receiveBatch: ( maxMessageCount: number, maxWaitTimeInSeconds?: number, - abortSignal?: AbortSignalLike + abortSignal?: AbortSignalLike, ) => Promise; /** Needed for tests only */ readonly _onError?: (error: MessagingError | Error) => void; @@ -109,7 +109,7 @@ export function createReceiver( consumerId: string, partitionId: string, eventPosition: EventPosition, - options: PartitionReceiverOptions = {} + options: PartitionReceiverOptions = {}, ): PartitionReceiver { const address = ctx.config.getReceiverAddress(partitionId, consumerGroup); const name = getRandomName(address); @@ -176,7 +176,7 @@ export function createReceiver( eventPosition, logger, options, - abortSignal + abortSignal, ), ctx, audience, @@ -184,13 +184,13 @@ export function createReceiver( logger, { abortSignal, - } + }, ); } catch (err) { state.isConnecting = false; const error = translate(err); logger.error( - `an error occurred while creating the receiver: ${error?.name}: ${error?.message}` + `an error occurred while creating the receiver: ${error?.name}: ${error?.message}`, ); logErrorStackTrace(err); throw error; @@ -199,7 +199,7 @@ export function createReceiver( receiveBatch: ( maxMessageCount: number, maxWaitTimeInSeconds: number = 60, - abortSignal?: AbortSignalLike + abortSignal?: AbortSignalLike, ) => { const prefetchCount = options.prefetchCount ?? maxMessageCount * 3; const cleanupBeforeAbort = (): Promise => { @@ -209,7 +209,7 @@ export function createReceiver( const retrieveEvents = (): Promise => { const eventsToRetrieveCount = Math.max(maxMessageCount - queue.length, 0); logger.verbose( - `already has ${queue.length} events and wants to receive ${eventsToRetrieveCount} more events` + `already has ${queue.length} events and wants to receive ${eventsToRetrieveCount} more events`, ); if (abortSignal?.aborted) { cleanupBeforeAbort(); @@ -239,16 +239,16 @@ export function createReceiver( logger.info( `${Math.min( maxMessageCount, - queue.length - )} messages received within ${maxWaitTimeInSeconds} seconds` + queue.length, + )} messages received within ${maxWaitTimeInSeconds} seconds`, ), receivedAlready: () => logger.info(`${maxMessageCount} messages already received`), receivedNone: () => logger.info( - `no messages received when max wait time in seconds ${maxWaitTimeInSeconds} is over` + `no messages received when max wait time in seconds ${maxWaitTimeInSeconds} is over`, ), - } + }, ); }) .catch(reject) @@ -274,8 +274,8 @@ export function createReceiver( enumerable: true, get: () => ctx.config.host, }, - } - ) as RetryConfig + }, + ) as RetryConfig, ); }, }; @@ -288,7 +288,7 @@ function delay( abortSignal?: AbortSignalLike; cleanupBeforeAbort?: () => void; abortErrorMsg?: string; - } + }, ): Promise { let token: ReturnType; return createAbortablePromise((resolve) => { @@ -306,7 +306,7 @@ export function checkOnInterval( abortSignal?: AbortSignalLike; cleanupBeforeAbort?: () => void; abortErrorMsg?: string; - } + }, ): Promise { let token: ReturnType; return createAbortablePromise((resolve) => { @@ -339,7 +339,7 @@ export function waitForEvents( receivedAfterWait?: () => void; receivedAlready?: () => void; receivedNone?: () => void; - } = {} + } = {}, ): Promise { const { abortSignal: clientAbortSignal, @@ -420,7 +420,7 @@ function onMessage( context: EventContext, obj: WritableReceiver, queue: ReceivedEventData[], - options: PartitionReceiverOptions + options: PartitionReceiverOptions, ): void { if (!context.message) { return; @@ -438,7 +438,7 @@ function onError( context: EventContext, obj: PartitionReceiver, receiver: Link | undefined, - logger: SimpleLogger + logger: SimpleLogger, ): void { const rheaReceiver = receiver || context.receiver; const amqpError = rheaReceiver?.error; @@ -463,13 +463,13 @@ function onSessionError(context: EventContext, obj: PartitionReceiver, logger: S async function onClose( context: EventContext, state: ReceiverState, - logger: SimpleLogger + logger: SimpleLogger, ): Promise { const rheaReceiver = state.link || context.receiver; logger.verbose( `'receiver_close' event occurred. Value for isItselfClosed on the receiver is: '${rheaReceiver ?.isItselfClosed() - .toString()}' Value for isConnecting on the session is: '${state.isConnecting}'` + .toString()}' Value for isConnecting on the session is: '${state.isConnecting}'`, ); if (rheaReceiver && !state.isConnecting) { return rheaReceiver.close().catch((err) => { @@ -481,13 +481,13 @@ async function onClose( async function onSessionClose( context: EventContext, state: ReceiverState, - logger: SimpleLogger + logger: SimpleLogger, ): Promise { const rheaReceiver = state.link || context.receiver; logger.verbose( `'session_close' event occurred. Value for isSessionItselfClosed on the session is: '${rheaReceiver ?.isSessionItselfClosed() - .toString()}' Value for isConnecting on the session is: '${state.isConnecting}'` + .toString()}' Value for isConnecting on the session is: '${state.isConnecting}'`, ); if (rheaReceiver && !state.isConnecting) { return rheaReceiver.close().catch((err) => { @@ -505,7 +505,7 @@ function createRheaOptions( queue: ReceivedEventData[], eventPosition: EventPosition, logger: SimpleLogger, - options: PartitionReceiverOptions + options: PartitionReceiverOptions, ): RheaReceiverOptions { const rheaOptions: RheaReceiverOptions & { source: Source; properties: Record } = { name, @@ -532,7 +532,7 @@ function createRheaOptions( rheaOptions.desired_capabilities = Constants.enableReceiverRuntimeMetricName; } const filterClause = getEventPositionFilter( - obj.checkpoint > -1 ? { sequenceNumber: obj.checkpoint } : eventPosition + obj.checkpoint > -1 ? { sequenceNumber: obj.checkpoint } : eventPosition, ); rheaOptions.source.filter = { "apache.org:selector-filter:string": types.wrap_described(filterClause, 0x468c00000004), @@ -551,7 +551,7 @@ async function setupLink( eventPosition: EventPosition, logger: SimpleLogger, options: PartitionReceiverOptions, - abortSignal?: AbortSignalLike + abortSignal?: AbortSignalLike, ): Promise { const rheaOptions = createRheaOptions( consumerId, @@ -562,7 +562,7 @@ async function setupLink( queue, eventPosition, logger, - options + options, ); logger.verbose(`trying to be created with options ${logObj(rheaOptions)}`); state.link = await ctx.connection.createReceiver({ diff --git a/sdk/eventhub/event-hubs/src/pumpManager.ts b/sdk/eventhub/event-hubs/src/pumpManager.ts index eb555dd96374..f5835a195a7e 100644 --- a/sdk/eventhub/event-hubs/src/pumpManager.ts +++ b/sdk/eventhub/event-hubs/src/pumpManager.ts @@ -28,7 +28,7 @@ export interface PumpManager { startPosition: EventPosition, connectionContext: ConnectionContext, partitionProcessor: PartitionProcessor, - abortSignal: AbortSignalLike + abortSignal: AbortSignalLike, ): Promise; /** @@ -91,12 +91,12 @@ export class PumpManagerImpl implements PumpManager { startPosition: EventPosition, connectionContext: ConnectionContext, partitionProcessor: PartitionProcessor, - abortSignal: AbortSignalLike + abortSignal: AbortSignalLike, ): Promise { const partitionId = partitionProcessor.partitionId; if (abortSignal.aborted) { logger.verbose( - `${this._eventProcessorName}] The subscription was closed before creating the pump for partition ${partitionId}.` + `${this._eventProcessorName}] The subscription was closed before creating the pump for partition ${partitionId}.`, ); return; } @@ -105,12 +105,12 @@ export class PumpManagerImpl implements PumpManager { if (existingPump) { if (existingPump.isReceiving) { logger.verbose( - `[${this._eventProcessorName}] [${partitionId}] The existing pump is running.` + `[${this._eventProcessorName}] [${partitionId}] The existing pump is running.`, ); return; } logger.verbose( - `[${this._eventProcessorName}] [${partitionId}] The existing pump is not running.` + `[${this._eventProcessorName}] [${partitionId}] The existing pump is not running.`, ); await this.removePump(partitionId, CloseReason.OwnershipLost); } @@ -121,7 +121,7 @@ export class PumpManagerImpl implements PumpManager { connectionContext, partitionProcessor, startPosition, - this._options + this._options, ); try { @@ -131,7 +131,7 @@ export class PumpManagerImpl implements PumpManager { await pump.start(); } catch (err: any) { logger.verbose( - `[${this._eventProcessorName}] [${partitionId}] An error occured while adding/updating a pump: ${err}` + `[${this._eventProcessorName}] [${partitionId}] An error occured while adding/updating a pump: ${err}`, ); logErrorStackTrace(err); } @@ -151,12 +151,12 @@ export class PumpManagerImpl implements PumpManager { await pump.stop(reason); } else { logger.verbose( - `[${this._eventProcessorName}] [${partitionId}] No pump was found to remove.` + `[${this._eventProcessorName}] [${partitionId}] No pump was found to remove.`, ); } } catch (err: any) { logger.verbose( - `[${this._eventProcessorName}] [${partitionId}] An error occured while removing a pump: ${err}` + `[${this._eventProcessorName}] [${partitionId}] An error occured while removing a pump: ${err}`, ); logErrorStackTrace(err); } @@ -183,7 +183,7 @@ export class PumpManagerImpl implements PumpManager { await Promise.all(tasks); } catch (err: any) { logger.verbose( - `[${this._eventProcessorName}] An error occured while removing all pumps: ${err}` + `[${this._eventProcessorName}] An error occured while removing all pumps: ${err}`, ); logErrorStackTrace(err); } finally { diff --git a/sdk/eventhub/event-hubs/src/util/connectionStringUtils.ts b/sdk/eventhub/event-hubs/src/util/connectionStringUtils.ts index 0edb82e6627a..720bb4a436b4 100644 --- a/sdk/eventhub/event-hubs/src/util/connectionStringUtils.ts +++ b/sdk/eventhub/event-hubs/src/util/connectionStringUtils.ts @@ -50,7 +50,7 @@ export interface EventHubConnectionStringProperties { * for the Event Hubs namespace. */ export function parseEventHubConnectionString( - connectionString: string + connectionString: string, ): Readonly { const parsedResult = parseConnectionString<{ Endpoint: string; @@ -64,7 +64,7 @@ export function parseEventHubConnectionString( parsedResult.Endpoint, parsedResult.SharedAccessSignature, parsedResult.SharedAccessKey, - parsedResult.SharedAccessKeyName + parsedResult.SharedAccessKeyName, ); const output: EventHubConnectionStringProperties = { @@ -95,7 +95,7 @@ function validateProperties( endpoint?: string, sharedAccessSignature?: string, sharedAccessKey?: string, - sharedAccessKeyName?: string + sharedAccessKeyName?: string, ): void { if (!endpoint) { throw new Error("Connection string should have an Endpoint key."); @@ -104,14 +104,14 @@ function validateProperties( if (sharedAccessSignature) { if (sharedAccessKey || sharedAccessKeyName) { throw new Error( - "Connection string cannot have both SharedAccessSignature and SharedAccessKey keys." + "Connection string cannot have both SharedAccessSignature and SharedAccessKey keys.", ); } } else if (sharedAccessKey && !sharedAccessKeyName) { throw new Error("Connection string with SharedAccessKey should have SharedAccessKeyName."); } else if (!sharedAccessKey && sharedAccessKeyName) { throw new Error( - "Connection string with SharedAccessKeyName should have SharedAccessKey as well." + "Connection string with SharedAccessKeyName should have SharedAccessKey as well.", ); } } diff --git a/sdk/eventhub/event-hubs/src/util/constants.ts b/sdk/eventhub/event-hubs/src/util/constants.ts index 24d349ac8a3d..cc2b680fce35 100644 --- a/sdk/eventhub/event-hubs/src/util/constants.ts +++ b/sdk/eventhub/event-hubs/src/util/constants.ts @@ -26,5 +26,5 @@ export const receiverIdPropertyName = "com.microsoft:receiver-name"; * @internal */ export const PENDING_PUBLISH_SEQ_NUM_SYMBOL = Symbol.for( - "@azure/event-hubs.pendingPublishSequenceNumber" + "@azure/event-hubs.pendingPublishSequenceNumber", ); diff --git a/sdk/eventhub/event-hubs/src/util/delayWithoutThrow.ts b/sdk/eventhub/event-hubs/src/util/delayWithoutThrow.ts index 93a6d949b2ae..148f408e2e7e 100644 --- a/sdk/eventhub/event-hubs/src/util/delayWithoutThrow.ts +++ b/sdk/eventhub/event-hubs/src/util/delayWithoutThrow.ts @@ -11,7 +11,7 @@ import { delay } from "@azure/core-amqp"; */ export async function delayWithoutThrow( delayInMs: number, - abortSignal?: AbortSignalLike + abortSignal?: AbortSignalLike, ): Promise { try { await delay(delayInMs, abortSignal); diff --git a/sdk/eventhub/event-hubs/src/util/error.ts b/sdk/eventhub/event-hubs/src/util/error.ts index bdb7de5efb26..9db6a59fe0bf 100644 --- a/sdk/eventhub/event-hubs/src/util/error.ts +++ b/sdk/eventhub/event-hubs/src/util/error.ts @@ -34,11 +34,11 @@ export function throwTypeErrorIfParameterMissing( connectionId: string, methodName: string, parameterName: string, - parameterValue: unknown + parameterValue: unknown, ): void { if (!isDefined(parameterValue)) { const error = new TypeError( - `${methodName} called without required argument "${parameterName}"` + `${methodName} called without required argument "${parameterName}"`, ); logger.warning(`[${connectionId}] ${error.name}: ${error.message}`); logErrorStackTrace(error); @@ -125,13 +125,13 @@ export function validateProducerPartitionSettings({ }): void { if (enableIdempotentRetries && (isDefined(partitionKey) || !isDefined(partitionId))) { throw new Error( - `The "partitionId" must be supplied and "partitionKey" must not be provided when the EventHubProducerClient has "enableIdempotentRetries" set to true.` + `The "partitionId" must be supplied and "partitionKey" must not be provided when the EventHubProducerClient has "enableIdempotentRetries" set to true.`, ); } if (isDefined(partitionId) && isDefined(partitionKey)) { throw new Error( - `The partitionId (${partitionId}) and partitionKey (${partitionKey}) cannot both be specified.` + `The partitionId (${partitionId}) and partitionKey (${partitionKey}) cannot both be specified.`, ); } } diff --git a/sdk/eventhub/event-hubs/src/util/timerLoop.ts b/sdk/eventhub/event-hubs/src/util/timerLoop.ts index a53af4aa89a6..8eac2d298057 100644 --- a/sdk/eventhub/event-hubs/src/util/timerLoop.ts +++ b/sdk/eventhub/event-hubs/src/util/timerLoop.ts @@ -28,7 +28,7 @@ export interface TimerLoop { */ export function createTimerLoop( timeoutInMs: number, - createTask: () => Promise + createTask: () => Promise, ): TimerLoop { let token: ReturnType; const loop = { @@ -41,7 +41,7 @@ export function createTimerLoop( /** eats up any unhandled error */ }) .finally(loop.start), - timeoutInMs + timeoutInMs, ); loop.isRunning = true; }, diff --git a/sdk/eventhub/event-hubs/src/util/typeGuards.ts b/sdk/eventhub/event-hubs/src/util/typeGuards.ts index d44b91e72700..96b3f4b0b18d 100644 --- a/sdk/eventhub/event-hubs/src/util/typeGuards.ts +++ b/sdk/eventhub/event-hubs/src/util/typeGuards.ts @@ -16,7 +16,7 @@ import { * @internal */ export function isCredential( - thing: unknown + thing: unknown, ): thing is TokenCredential | NamedKeyCredential | SASCredential { return isTokenCredential(thing) || isNamedKeyCredential(thing) || isSASCredential(thing); } diff --git a/sdk/eventhub/event-hubs/src/withAuth.ts b/sdk/eventhub/event-hubs/src/withAuth.ts index 38b07353387f..b05656b1f923 100644 --- a/sdk/eventhub/event-hubs/src/withAuth.ts +++ b/sdk/eventhub/event-hubs/src/withAuth.ts @@ -34,7 +34,7 @@ export async function withAuth( logger: SimpleLogger, options: { abortSignal?: AbortSignalLike; - } + }, ): Promise { const info = await getTokenInfo(context.tokenCredential, audience); await setupClaimNegotiation(context, audience, info, timeoutInMs, logger, options); @@ -45,8 +45,8 @@ export async function withAuth( await setupClaimNegotiation(context, audience, info2, timeoutInMs, logger, options); logger.verbose( `next token renewal is in ${info2.timeToLiveInMs} milliseconds @(${new Date( - Date.now() + info2.timeToLiveInMs - ).toString()}).` + Date.now() + info2.timeToLiveInMs, + ).toString()}).`, ); } catch (err) { logger.verbose(`an error occurred while renewing the token: ${logObj(err)}`); @@ -63,7 +63,7 @@ export async function withAuth( export async function openCbsSession( client: CbsClient, timeoutAfterStartTime: number, - { abortSignal }: { abortSignal?: AbortSignalLike } = {} + { abortSignal }: { abortSignal?: AbortSignalLike } = {}, ): Promise { return defaultCancellableLock.acquire( client.cbsLock, @@ -75,7 +75,7 @@ export async function openCbsSession( { abortSignal, timeoutInMs: timeoutAfterStartTime - Date.now(), - } + }, ); } @@ -106,7 +106,7 @@ async function getAadToken(cred: TokenCredential): Promise { async function getSharedKeyBasedToken( cred: SasTokenProvider, - audience: string + audience: string, ): Promise { return { token: await cred.getToken(audience), @@ -117,7 +117,7 @@ async function getSharedKeyBasedToken( async function getTokenInfo( cred: SasTokenProvider | TokenCredential, - audience: string + audience: string, ): Promise { return isSasTokenProvider(cred) ? getSharedKeyBasedToken(cred, audience) : getAadToken(cred); } @@ -128,7 +128,7 @@ function negotiateClaim( cbsSession: CbsClient, timeoutAfterStartTime: number, lock: string, - abortSignal?: AbortSignalLike + abortSignal?: AbortSignalLike, ): Promise { return defaultCancellableLock.acquire( lock, @@ -140,7 +140,7 @@ function negotiateClaim( { abortSignal, timeoutInMs: timeoutAfterStartTime - Date.now(), - } + }, ); } @@ -154,11 +154,11 @@ async function setupClaimNegotiation( abortSignal, }: { abortSignal?: AbortSignalLike; - } + }, ): Promise { const startTime = Date.now(); logger.verbose( - `acquiring cbs lock: '${context.cbsSession.cbsLock}' for creating the cbs session` + `acquiring cbs lock: '${context.cbsSession.cbsLock}' for creating the cbs session`, ); await openCbsSession(context.cbsSession, timeoutInMs + startTime, { abortSignal }); @@ -169,7 +169,7 @@ async function setupClaimNegotiation( context.cbsSession, timeoutInMs + startTime, context.negotiateClaimLock, - abortSignal + abortSignal, ); logger.verbose("claim negotiation succeeded"); } diff --git a/sdk/eventhub/event-hubs/test/internal/amqp.spec.ts b/sdk/eventhub/event-hubs/test/internal/amqp.spec.ts index 4a74fa4bf47b..12c5798acb3c 100644 --- a/sdk/eventhub/event-hubs/test/internal/amqp.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/amqp.spec.ts @@ -22,9 +22,9 @@ testWithServiceTypes(() => { }, body: undefined, }, - false - ) - ) + false, + ), + ), ); assert.isTrue( @@ -36,35 +36,35 @@ testWithServiceTypes(() => { }, body: undefined, }, - false - ).getRawAmqpMessage() - ) + false, + ).getRawAmqpMessage(), + ), ); assert.isTrue( isAmqpAnnotatedMessage({ body: "hello world", bodyType: "sequence", - }) + }), ); assert.isTrue( isAmqpAnnotatedMessage({ body: "hello world", bodyType: "value", - }) + }), ); assert.isTrue( isAmqpAnnotatedMessage({ body: "hello world", bodyType: "data", - }) + }), ); assert.isTrue( isAmqpAnnotatedMessage({ body: "hello world", bodyType: undefined, // the property _must_ exist, but undefined is fine. We'll default to 'data' - }) + }), ); }); }); diff --git a/sdk/eventhub/event-hubs/test/internal/auth.spec.ts b/sdk/eventhub/event-hubs/test/internal/auth.spec.ts index 66df8d542501..d2553dad9c35 100644 --- a/sdk/eventhub/event-hubs/test/internal/auth.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/auth.spec.ts @@ -42,11 +42,11 @@ testWithServiceTypes((serviceVersion) => { before(() => { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -56,7 +56,7 @@ testWithServiceTypes((serviceVersion) => { const consumerClient = new EventHubConsumerClient( "$Default", service.connectionString, - service.path + service.path, ); const properties = await consumerClient.getEventHubProperties(); @@ -79,14 +79,14 @@ testWithServiceTypes((serviceVersion) => { it("EventHubConsumerClient", async () => { const namedKeyCredential = new AzureNamedKeyCredential( sharedAccessKeyName!, - sharedAccessKey! + sharedAccessKey!, ); const consumerClient = new EventHubConsumerClient( "$Default", fullyQualifiedNamespace, service.path, - namedKeyCredential + namedKeyCredential, ); const properties = await consumerClient.getEventHubProperties(); @@ -98,13 +98,13 @@ testWithServiceTypes((serviceVersion) => { it("EventHubProducerClient", async () => { const namedKeyCredential = new AzureNamedKeyCredential( sharedAccessKeyName!, - sharedAccessKey! + sharedAccessKey!, ); const producerClient = new EventHubProducerClient( fullyQualifiedNamespace, service.path, - namedKeyCredential + namedKeyCredential, ); const properties = await producerClient.getEventHubProperties(); @@ -139,7 +139,7 @@ testWithServiceTypes((serviceVersion) => { const consumerClient = new EventHubConsumerClient( "$Default", sasConnectionString, - service.path + service.path, ); const properties = await consumerClient.getEventHubProperties(); @@ -168,7 +168,7 @@ testWithServiceTypes((serviceVersion) => { "$Default", fullyQualifiedNamespace, service.path, - sasCredential + sasCredential, ); const properties = await consumerClient.getEventHubProperties(); @@ -183,7 +183,7 @@ testWithServiceTypes((serviceVersion) => { const producerClient = new EventHubProducerClient( fullyQualifiedNamespace, service.path, - sasCredential + sasCredential, ); const properties = await producerClient.getEventHubProperties(); diff --git a/sdk/eventhub/event-hubs/test/internal/bufferedProducerUnitTests.spec.ts b/sdk/eventhub/event-hubs/test/internal/bufferedProducerUnitTests.spec.ts index 57301db11db0..b8ba53b565d8 100644 --- a/sdk/eventhub/event-hubs/test/internal/bufferedProducerUnitTests.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/bufferedProducerUnitTests.spec.ts @@ -38,11 +38,11 @@ testWithServiceTypes((serviceVersion) => { before(() => { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -59,7 +59,7 @@ testWithServiceTypes((serviceVersion) => { fakeGetPartitionIds.onCall(1).resolves(["0", "1", "2"]); fakeGetPartitionIds.onCall(2).resolves(["0"]); const fakeGetPartitionChannel = ( - _id: string + _id: string, ): SinonStubbedInstance => { return createStubInstance(BatchingPartitionChannel); }; diff --git a/sdk/eventhub/event-hubs/test/internal/cancellation.spec.ts b/sdk/eventhub/event-hubs/test/internal/cancellation.spec.ts index 6b742bf04bb2..93a2fb1c232f 100644 --- a/sdk/eventhub/event-hubs/test/internal/cancellation.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/cancellation.spec.ts @@ -36,11 +36,11 @@ testWithServiceTypes((serviceVersion) => { before("validate environment", () => { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -86,7 +86,7 @@ testWithServiceTypes((serviceVersion) => { "0", // partition id { enqueuedOn: Date.now(), - } + }, ); }); diff --git a/sdk/eventhub/event-hubs/test/internal/cbsSession.spec.ts b/sdk/eventhub/event-hubs/test/internal/cbsSession.spec.ts index d2e13575899c..19b261acb684 100644 --- a/sdk/eventhub/event-hubs/test/internal/cbsSession.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/cbsSession.spec.ts @@ -31,11 +31,11 @@ testWithServiceTypes((serviceVersion) => { before("validate environment", () => { assert.exists( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); assert.exists( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); let context: ConnectionContext; diff --git a/sdk/eventhub/event-hubs/test/internal/client.spec.ts b/sdk/eventhub/event-hubs/test/internal/client.spec.ts index 8f0747298ba7..2a68dea277a9 100644 --- a/sdk/eventhub/event-hubs/test/internal/client.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/client.spec.ts @@ -57,7 +57,7 @@ testWithServiceTypes((serviceVersion) => { test.should.throw( Error, `Either provide "eventHubName" or the "connectionString": "${connectionString}", ` + - `must contain "EntityPath=".` + `must contain "EntityPath=".`, ); }); @@ -71,14 +71,14 @@ testWithServiceTypes((serviceVersion) => { test.should.throw( Error, `The entity path "my-event-hub-name" in connectionString: "${connectionString}" ` + - `doesn't match with eventHubName: "${eventHubName}".` + `doesn't match with eventHubName: "${eventHubName}".`, ); }); it("sets eventHubName, fullyQualifiedNamespace properties when created from a connection string", function (): void { const client = new EventHubConsumerClient( "dummy", - "Endpoint=sb://test.servicebus.windows.net;SharedAccessKeyName=b;SharedAccessKey=c;EntityPath=my-event-hub-name" + "Endpoint=sb://test.servicebus.windows.net;SharedAccessKeyName=b;SharedAccessKey=c;EntityPath=my-event-hub-name", ); client.should.be.an.instanceof(EventHubConsumerClient); should.equal(client.eventHubName, "my-event-hub-name"); @@ -89,7 +89,7 @@ testWithServiceTypes((serviceVersion) => { const client = new EventHubConsumerClient( "dummy", "Endpoint=sb://test.servicebus.windows.net;SharedAccessKeyName=b;SharedAccessKey=c", - "my-event-hub-name" + "my-event-hub-name", ); client.should.be.an.instanceof(EventHubConsumerClient); should.equal(client.eventHubName, "my-event-hub-name"); @@ -109,7 +109,7 @@ testWithServiceTypes((serviceVersion) => { "dummy", "test.servicebus.windows.net", "my-event-hub-name", - dummyCredential + dummyCredential, ); client.should.be.an.instanceof(EventHubConsumerClient); should.equal(client.eventHubName, "my-event-hub-name"); @@ -120,7 +120,7 @@ testWithServiceTypes((serviceVersion) => { const client = new EventHubConsumerClient( "dummy", "Endpoint=sb://test.servicebus.windows.net;SharedAccessKeyName=b;SharedAccessKey=c;EntityPath=my-event-hub-name", - { customEndpointAddress: "sb://foo.private.bar:111" } + { customEndpointAddress: "sb://foo.private.bar:111" }, ); client.should.be.an.instanceof(EventHubConsumerClient); client["_context"].config.host.should.equal("foo.private.bar"); @@ -142,7 +142,7 @@ testWithServiceTypes((serviceVersion) => { "test.servicebus.windows.net", "my-event-hub-name", dummyCredential, - { customEndpointAddress: "sb://foo.private.bar:111" } + { customEndpointAddress: "sb://foo.private.bar:111" }, ); client.should.be.an.instanceof(EventHubConsumerClient); client["_context"].config.host.should.equal("foo.private.bar"); @@ -159,7 +159,7 @@ testWithServiceTypes((serviceVersion) => { "my-event-hub-name", { identifier, - } + }, ); client.identifier.should.equal(identifier, "The client identifier wasn't set correctly"); }); @@ -171,7 +171,7 @@ testWithServiceTypes((serviceVersion) => { test.should.throw( Error, `Either provide "eventHubName" or the "connectionString": "${connectionString}", ` + - `must contain "EntityPath=".` + `must contain "EntityPath=".`, ); }); @@ -185,13 +185,13 @@ testWithServiceTypes((serviceVersion) => { test.should.throw( Error, `The entity path "my-event-hub-name" in connectionString: "${connectionString}" ` + - `doesn't match with eventHubName: "${eventHubName}".` + `doesn't match with eventHubName: "${eventHubName}".`, ); }); it("sets eventHubName, fullyQualifiedNamespace properties when created from a connection string", function (): void { const client = new EventHubProducerClient( - "Endpoint=sb://test.servicebus.windows.net;SharedAccessKeyName=b;SharedAccessKey=c;EntityPath=my-event-hub-name" + "Endpoint=sb://test.servicebus.windows.net;SharedAccessKeyName=b;SharedAccessKey=c;EntityPath=my-event-hub-name", ); client.should.be.an.instanceof(EventHubProducerClient); should.equal(client.eventHubName, "my-event-hub-name"); @@ -201,7 +201,7 @@ testWithServiceTypes((serviceVersion) => { it("sets eventHubName, fullyQualifiedNamespace properties when created from a connection string and event hub name", function (): void { const client = new EventHubProducerClient( "Endpoint=sb://test.servicebus.windows.net;SharedAccessKeyName=b;SharedAccessKey=c", - "my-event-hub-name" + "my-event-hub-name", ); client.should.be.an.instanceof(EventHubProducerClient); should.equal(client.eventHubName, "my-event-hub-name"); @@ -220,7 +220,7 @@ testWithServiceTypes((serviceVersion) => { const client = new EventHubProducerClient( "test.servicebus.windows.net", "my-event-hub-name", - dummyCredential + dummyCredential, ); client.should.be.an.instanceof(EventHubProducerClient); should.equal(client.eventHubName, "my-event-hub-name"); @@ -230,7 +230,7 @@ testWithServiceTypes((serviceVersion) => { it("respects customEndpointAddress when using connection string", () => { const client = new EventHubProducerClient( "Endpoint=sb://test.servicebus.windows.net;SharedAccessKeyName=b;SharedAccessKey=c;EntityPath=my-event-hub-name", - { customEndpointAddress: "sb://foo.private.bar:111" } + { customEndpointAddress: "sb://foo.private.bar:111" }, ); client.should.be.an.instanceof(EventHubProducerClient); client["_context"].config.host.should.equal("foo.private.bar"); @@ -251,7 +251,7 @@ testWithServiceTypes((serviceVersion) => { "test.servicebus.windows.net", "my-event-hub-name", dummyCredential, - { customEndpointAddress: "sb://foo.private.bar:111" } + { customEndpointAddress: "sb://foo.private.bar:111" }, ); client.should.be.an.instanceof(EventHubProducerClient); client["_context"].config.host.should.equal("foo.private.bar"); @@ -265,7 +265,7 @@ testWithServiceTypes((serviceVersion) => { beforeEach(() => { client = new EventHubConsumerClient( "$Default", - "Endpoint=sb://a;SharedAccessKeyName=b;SharedAccessKey=c;EntityPath=d" + "Endpoint=sb://a;SharedAccessKeyName=b;SharedAccessKey=c;EntityPath=d", ); }); @@ -328,7 +328,7 @@ testWithServiceTypes((serviceVersion) => { let client: EventHubProducerClient; beforeEach(() => { client = new EventHubProducerClient( - "Endpoint=sb://a;SharedAccessKeyName=b;SharedAccessKey=c;EntityPath=d" + "Endpoint=sb://a;SharedAccessKeyName=b;SharedAccessKey=c;EntityPath=d", ); }); @@ -394,13 +394,13 @@ testWithServiceTypes((serviceVersion) => { beforeEach(() => { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); client = new EventHubConsumerClient( "dummy", env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "bad" + "bad", ); }); @@ -466,7 +466,7 @@ testWithServiceTypes((serviceVersion) => { beforeEach(() => { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); client = new EventHubProducerClient(env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], "bad"); }); @@ -530,12 +530,12 @@ testWithServiceTypes((serviceVersion) => { beforeEach(() => { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -543,7 +543,7 @@ testWithServiceTypes((serviceVersion) => { const consumerClient = new EventHubConsumerClient( "$Default", env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - env[EnvVarKeys.EVENTHUB_NAME] + env[EnvVarKeys.EVENTHUB_NAME], ); testUserAgentString(consumerClient["_context"]); await consumerClient.close(); @@ -555,7 +555,7 @@ testWithServiceTypes((serviceVersion) => { "$Default", env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], env[EnvVarKeys.EVENTHUB_NAME], - { userAgent: customUserAgent } + { userAgent: customUserAgent }, ); testUserAgentString(consumerClient["_context"], customUserAgent); await consumerClient.close(); @@ -566,19 +566,19 @@ testWithServiceTypes((serviceVersion) => { beforeEach(() => { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); it("should correctly populate the default user agent", async function (): Promise { const producerClient = new EventHubProducerClient( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - env[EnvVarKeys.EVENTHUB_NAME] + env[EnvVarKeys.EVENTHUB_NAME], ); testUserAgentString(producerClient["_context"]); await producerClient.close(); @@ -589,7 +589,7 @@ testWithServiceTypes((serviceVersion) => { const producerClient = new EventHubProducerClient( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], env[EnvVarKeys.EVENTHUB_NAME], - { userAgent: customUserAgent } + { userAgent: customUserAgent }, ); testUserAgentString(producerClient["_context"], customUserAgent); await producerClient.close(); @@ -600,7 +600,7 @@ testWithServiceTypes((serviceVersion) => { const packageVersion = packageJsonInfo.version; const properties = context.connection.options.properties; properties!["user-agent"].should.startWith( - `azsdk-js-azureeventhubs/${packageVersion} (${getRuntimeInfo()})` + `azsdk-js-azureeventhubs/${packageVersion} (${getRuntimeInfo()})`, ); should.equal(properties!.product, "MSJSClient"); should.equal(properties!.version, packageVersion); @@ -622,16 +622,16 @@ testWithServiceTypes((serviceVersion) => { async function beforeEachTest(): Promise { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); client = new EventHubConsumerClient( "$Default", env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - env[EnvVarKeys.EVENTHUB_NAME] + env[EnvVarKeys.EVENTHUB_NAME], ); // Ensure that the connection is opened @@ -702,15 +702,15 @@ testWithServiceTypes((serviceVersion) => { async function beforeEachTest(): Promise { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); client = new EventHubProducerClient( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - env[EnvVarKeys.EVENTHUB_NAME] + env[EnvVarKeys.EVENTHUB_NAME], ); // Ensure that the connection is opened diff --git a/sdk/eventhub/event-hubs/test/internal/config.spec.ts b/sdk/eventhub/event-hubs/test/internal/config.spec.ts index 2b406382bf17..f7e37cea8fbf 100644 --- a/sdk/eventhub/event-hubs/test/internal/config.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/config.spec.ts @@ -23,7 +23,7 @@ testWithServiceTypes(() => { it("should correctly populate config properties from an EventHubs connection string and the helper methods should work as expected", function (done) { const config = EventHubConnectionConfig.create( - "Endpoint=sb://hostname.servicebus.windows.net/;SharedAccessKeyName=sakName;SharedAccessKey=sak;EntityPath=ep" + "Endpoint=sb://hostname.servicebus.windows.net/;SharedAccessKeyName=sakName;SharedAccessKey=sak;EntityPath=ep", ); config.should.have.property("host").that.equals("hostname.servicebus.windows.net"); config.should.have.property("sharedAccessKeyName").that.equals("sakName"); @@ -52,12 +52,12 @@ testWithServiceTypes(() => { config .getReceiverAudience("0") .should.equal( - "sb://hostname.servicebus.windows.net/ep/ConsumerGroups/$default/Partitions/0" + "sb://hostname.servicebus.windows.net/ep/ConsumerGroups/$default/Partitions/0", ); config .getReceiverAudience(0) .should.equal( - "sb://hostname.servicebus.windows.net/ep/ConsumerGroups/$default/Partitions/0" + "sb://hostname.servicebus.windows.net/ep/ConsumerGroups/$default/Partitions/0", ); config .getReceiverAudience("0", "cg") @@ -81,7 +81,7 @@ testWithServiceTypes(() => { describe("setCustomEndpointAddress", () => { it("overwrites host", () => { const config = EventHubConnectionConfig.create( - "Endpoint=sb://hostname.servicebus.windows.net/;SharedAccessKeyName=sakName;SharedAccessKey=sak;EntityPath=ep" + "Endpoint=sb://hostname.servicebus.windows.net/;SharedAccessKeyName=sakName;SharedAccessKey=sak;EntityPath=ep", ); config.should.have.property("host").that.equals("hostname.servicebus.windows.net"); config.should.have.property("sharedAccessKeyName").that.equals("sakName"); @@ -110,12 +110,12 @@ testWithServiceTypes(() => { config .getReceiverAudience("0") .should.equal( - "sb://hostname.servicebus.windows.net/ep/ConsumerGroups/$default/Partitions/0" + "sb://hostname.servicebus.windows.net/ep/ConsumerGroups/$default/Partitions/0", ); config .getReceiverAudience(0) .should.equal( - "sb://hostname.servicebus.windows.net/ep/ConsumerGroups/$default/Partitions/0" + "sb://hostname.servicebus.windows.net/ep/ConsumerGroups/$default/Partitions/0", ); config .getReceiverAudience("0", "cg") @@ -134,7 +134,7 @@ testWithServiceTypes(() => { it("overwrites host and port", () => { const config = EventHubConnectionConfig.create( - "Endpoint=sb://hostname.servicebus.windows.net/;SharedAccessKeyName=sakName;SharedAccessKey=sak;EntityPath=ep" + "Endpoint=sb://hostname.servicebus.windows.net/;SharedAccessKeyName=sakName;SharedAccessKey=sak;EntityPath=ep", ); config.should.have.property("host").that.equals("hostname.servicebus.windows.net"); config.should.have.property("sharedAccessKeyName").that.equals("sakName"); @@ -163,12 +163,12 @@ testWithServiceTypes(() => { config .getReceiverAudience("0") .should.equal( - "sb://hostname.servicebus.windows.net/ep/ConsumerGroups/$default/Partitions/0" + "sb://hostname.servicebus.windows.net/ep/ConsumerGroups/$default/Partitions/0", ); config .getReceiverAudience(0) .should.equal( - "sb://hostname.servicebus.windows.net/ep/ConsumerGroups/$default/Partitions/0" + "sb://hostname.servicebus.windows.net/ep/ConsumerGroups/$default/Partitions/0", ); config .getReceiverAudience("0", "cg") @@ -179,7 +179,7 @@ testWithServiceTypes(() => { EventHubConnectionConfig.setCustomEndpointAddress( config, - "https://foo.private.endpoint:1111" + "https://foo.private.endpoint:1111", ); config.should.have .property("amqpHostname") diff --git a/sdk/eventhub/event-hubs/test/internal/createTimerLoop.spec.ts b/sdk/eventhub/event-hubs/test/internal/createTimerLoop.spec.ts index b14545294017..4c5875662279 100644 --- a/sdk/eventhub/event-hubs/test/internal/createTimerLoop.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/createTimerLoop.spec.ts @@ -30,7 +30,7 @@ describe("createTimerLoop", function () { assert.strictEqual( curCallCount, callCount, - "Expected the loop to run the exact number of iterations" + "Expected the loop to run the exact number of iterations", ); loop.stop(); assert.isFalse(loop.isRunning); diff --git a/sdk/eventhub/event-hubs/test/internal/dataTransformer.spec.ts b/sdk/eventhub/event-hubs/test/internal/dataTransformer.spec.ts index 00081bbf8f79..3f9d69cf395c 100644 --- a/sdk/eventhub/event-hubs/test/internal/dataTransformer.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/dataTransformer.spec.ts @@ -435,7 +435,7 @@ testWithServiceTypes(() => { const jsonStringBufferBody = Buffer.from(JSON.stringify(jsonBody), "utf8"); const { body: decoded, bodyType: decodedType } = transformer.decode( jsonStringBufferBody, - false + false, ); should.equal(decodedType, "data"); assert.deepStrictEqual(decoded, jsonBody); @@ -449,7 +449,7 @@ testWithServiceTypes(() => { const jsonStringBufferBody = Buffer.from(JSON.stringify(jsonBody), "utf8"); const { body: decoded, bodyType: decodedType } = transformer.decode( jsonStringBufferBody, - true + true, ); should.equal(decodedType, "data"); assert.deepStrictEqual(decoded, jsonStringBufferBody); diff --git a/sdk/eventhub/event-hubs/test/internal/diagnostics/tracing.spec.ts b/sdk/eventhub/event-hubs/test/internal/diagnostics/tracing.spec.ts index bac2818312d5..2baaedebadef 100644 --- a/sdk/eventhub/event-hubs/test/internal/diagnostics/tracing.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/diagnostics/tracing.spec.ts @@ -31,7 +31,7 @@ describe("tracing", () => { const expectedSpanKind = "client"; assert.equal( toSpanOptions({ entityPath: "", host: "" }, "receive", expectedSpanKind).spanKind, - expectedSpanKind + expectedSpanKind, ); }); }); @@ -54,7 +54,7 @@ describe("tracing", () => { {}, "testPath", "testHost", - "receive" + "receive", ); assert.notExists(spanContext); assert.equal(event.properties?.[TRACEPARENT_PROPERTY], "exists"); @@ -75,7 +75,7 @@ describe("tracing", () => { {}, "testPath", "testHost", - "receive" + "receive", ); assert.notExists(spanContext); // was not instrumented assert.notExists(event.properties?.[TRACEPARENT_PROPERTY]); @@ -101,7 +101,7 @@ describe("tracing", () => { {}, "testPath", "testHost", - "receive" + "receive", ); assert.equal(event.properties?.[TRACEPARENT_PROPERTY], "fake-traceparent-header"); diff --git a/sdk/eventhub/event-hubs/test/internal/error.spec.ts b/sdk/eventhub/event-hubs/test/internal/error.spec.ts index 9418b622bd87..a86f05c5713b 100644 --- a/sdk/eventhub/event-hubs/test/internal/error.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/error.spec.ts @@ -57,7 +57,7 @@ describe("translateError", function () { should.equal( translatedError.retryable, false, - "ProducerDisconnectedError should not be retryable." + "ProducerDisconnectedError should not be retryable.", ); should.equal(translatedError.code, "ProducerDisconnectedError"); }); diff --git a/sdk/eventhub/event-hubs/test/internal/eventHubConsumerClientUnitTests.spec.ts b/sdk/eventhub/event-hubs/test/internal/eventHubConsumerClientUnitTests.spec.ts index 0d9b4f528b1d..1d0f6c1cff1b 100644 --- a/sdk/eventhub/event-hubs/test/internal/eventHubConsumerClientUnitTests.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/eventHubConsumerClientUnitTests.spec.ts @@ -39,11 +39,11 @@ testWithServiceTypes((serviceVersion) => { before(() => { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -73,7 +73,7 @@ testWithServiceTypes((serviceVersion) => { connectionContext: ConnectionContext, subscriptionEventHandlers: SubscriptionEventHandlers, checkpointStore: CheckpointStore, - options: FullEventProcessorOptions + options: FullEventProcessorOptions, ): SinonStubbedInstance => { subscriptionEventHandlers.should.equal(subscriptionHandlers); should.exist(connectionContext.managementSession); @@ -90,7 +90,7 @@ testWithServiceTypes((serviceVersion) => { client = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString!, - service.path + service.path, ); clientWithCheckpointStore = new EventHubConsumerClient( @@ -98,7 +98,7 @@ testWithServiceTypes((serviceVersion) => { service.connectionString!, service.path, // it doesn't actually matter _what_ checkpoint store gets passed in - new InMemoryCheckpointStore() + new InMemoryCheckpointStore(), ); subscriptionHandlers = { @@ -124,14 +124,14 @@ testWithServiceTypes((serviceVersion) => { // invalid - we're already subscribed to a conflicting partition should.throw( () => client.subscribe("0", subscriptionHandlers), - /Partition already has a subscriber/ + /Partition already has a subscriber/, ); clientWithCheckpointStore.subscribe("0", subscriptionHandlers); // invalid - we're already subscribed to a conflicting partition should.throw( () => clientWithCheckpointStore.subscribe(subscriptionHandlers), - /Partition already has a subscriber/ + /Partition already has a subscriber/, ); }); @@ -150,7 +150,7 @@ testWithServiceTypes((serviceVersion) => { // and if you don't specify a CheckpointStore we also assume you just want to read all partitions // immediately so we use the UnbalancedLoadBalancingStrategy. options.loadBalancingStrategy.constructor.name.should.equal( - "UnbalancedLoadBalancingStrategy" + "UnbalancedLoadBalancingStrategy", ); options.loopIntervalInMs.should.equal(10000); @@ -178,7 +178,7 @@ testWithServiceTypes((serviceVersion) => { // and if you don't specify a CheckpointStore we also assume you just want to read all partitions // immediately so we use the UnbalancedLoadBalancingStrategy. options.loadBalancingStrategy.constructor.name.should.equal( - "UnbalancedLoadBalancingStrategy" + "UnbalancedLoadBalancingStrategy", ); options.loopIntervalInMs.should.equal(20); @@ -195,7 +195,7 @@ testWithServiceTypes((serviceVersion) => { partitionOwnershipExpirationIntervalInMs: 100, // ignored updateIntervalInMs: 20, }, - } + }, ); (client as any)["_createEventProcessor"] = fakeEventProcessorConstructor; @@ -218,7 +218,7 @@ testWithServiceTypes((serviceVersion) => { options.processingTarget!.should.equal("0"); options.loadBalancingStrategy.constructor.name.should.equal( - "UnbalancedLoadBalancingStrategy" + "UnbalancedLoadBalancingStrategy", ); options.loopIntervalInMs.should.equal(10000); }; @@ -239,7 +239,7 @@ testWithServiceTypes((serviceVersion) => { options.processingTarget!.should.equal("0"); options.loadBalancingStrategy.constructor.name.should.equal( - "UnbalancedLoadBalancingStrategy" + "UnbalancedLoadBalancingStrategy", ); options.loopIntervalInMs.should.equal(20); }; @@ -256,7 +256,7 @@ testWithServiceTypes((serviceVersion) => { partitionOwnershipExpirationIntervalInMs: 100, // ignored updateIntervalInMs: 20, }, - } + }, ); (clientWithCheckpointStore as any)["_createEventProcessor"] = fakeEventProcessorConstructor; @@ -273,7 +273,7 @@ testWithServiceTypes((serviceVersion) => { // - loopIntervalInMs: 10000 should.not.exist(options.ownerLevel); options.loadBalancingStrategy.constructor.name.should.equal( - "UnbalancedLoadBalancingStrategy" + "UnbalancedLoadBalancingStrategy", ); options.loopIntervalInMs.should.equal(10000); }; @@ -289,7 +289,7 @@ testWithServiceTypes((serviceVersion) => { // - UnbalancedLoadBalancingStrategy should.not.exist(options.ownerLevel); options.loadBalancingStrategy.constructor.name.should.equal( - "UnbalancedLoadBalancingStrategy" + "UnbalancedLoadBalancingStrategy", ); options.loopIntervalInMs.should.equal(20); }; @@ -304,7 +304,7 @@ testWithServiceTypes((serviceVersion) => { partitionOwnershipExpirationIntervalInMs: 100, // ignored updateIntervalInMs: 20, }, - } + }, ); (client as any)["_createEventProcessor"] = fakeEventProcessorConstructor; @@ -322,7 +322,7 @@ testWithServiceTypes((serviceVersion) => { options.ownerLevel!.should.equal(0); should.not.exist(options.processingTarget); options.loadBalancingStrategy.constructor.name.should.equal( - "BalancedLoadBalancingStrategy" + "BalancedLoadBalancingStrategy", ); (options.loadBalancingStrategy as BalancedLoadBalancingStrategy)[ "_partitionOwnershipExpirationIntervalInMs" @@ -340,7 +340,7 @@ testWithServiceTypes((serviceVersion) => { options.ownerLevel!.should.equal(0); should.not.exist(options.processingTarget); options.loadBalancingStrategy.constructor.name.should.equal( - "GreedyLoadBalancingStrategy" + "GreedyLoadBalancingStrategy", ); (options.loadBalancingStrategy as GreedyLoadBalancingStrategy)[ "_partitionOwnershipExpirationIntervalInMs" @@ -360,7 +360,7 @@ testWithServiceTypes((serviceVersion) => { partitionOwnershipExpirationIntervalInMs: 100, updateIntervalInMs: 20, }, - } + }, ); (clientWithCheckpointStore as any)["_createEventProcessor"] = fakeEventProcessorConstructor; @@ -375,7 +375,7 @@ testWithServiceTypes((serviceVersion) => { options.ownerLevel!.should.equal(0); should.not.exist(options.processingTarget); options.loadBalancingStrategy.constructor.name.should.equal( - "BalancedLoadBalancingStrategy" + "BalancedLoadBalancingStrategy", ); (options.loadBalancingStrategy as BalancedLoadBalancingStrategy)[ "_partitionOwnershipExpirationIntervalInMs" @@ -395,7 +395,7 @@ testWithServiceTypes((serviceVersion) => { partitionOwnershipExpirationIntervalInMs: 100, updateIntervalInMs: 20, }, - } + }, ); (clientWithCheckpointStore as any)["_createEventProcessor"] = fakeEventProcessorConstructor; @@ -410,7 +410,7 @@ testWithServiceTypes((serviceVersion) => { options.ownerLevel!.should.equal(0); should.not.exist(options.processingTarget); options.loadBalancingStrategy.constructor.name.should.equal( - "BalancedLoadBalancingStrategy" + "BalancedLoadBalancingStrategy", ); (options.loadBalancingStrategy as BalancedLoadBalancingStrategy)[ "_partitionOwnershipExpirationIntervalInMs" @@ -430,7 +430,7 @@ testWithServiceTypes((serviceVersion) => { partitionOwnershipExpirationIntervalInMs: 100, updateIntervalInMs: 20, }, - } + }, ); (clientWithCheckpointStore as any)["_createEventProcessor"] = fakeEventProcessorConstructor; @@ -445,7 +445,7 @@ testWithServiceTypes((serviceVersion) => { options.ownerLevel!.should.equal(0); should.not.exist(options.processingTarget); options.loadBalancingStrategy.constructor.name.should.equal( - "GreedyLoadBalancingStrategy" + "GreedyLoadBalancingStrategy", ); (options.loadBalancingStrategy as GreedyLoadBalancingStrategy)[ "_partitionOwnershipExpirationIntervalInMs" @@ -464,7 +464,7 @@ testWithServiceTypes((serviceVersion) => { strategy: "greedy", // defaults are used for the rest of the parameters. }, - } + }, ); (clientWithCheckpointStore as any)["_createEventProcessor"] = fakeEventProcessorConstructor; diff --git a/sdk/eventhub/event-hubs/test/internal/eventHubProducerClient.idem.spec.ts b/sdk/eventhub/event-hubs/test/internal/eventHubProducerClient.idem.spec.ts index daf6a7f41dd1..a54b8b230a0e 100644 --- a/sdk/eventhub/event-hubs/test/internal/eventHubProducerClient.idem.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/eventHubProducerClient.idem.spec.ts @@ -44,11 +44,11 @@ testWithServiceTypes((serviceVersion, onVersions) => { before("validate environment", function (): void { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -66,17 +66,17 @@ testWithServiceTypes((serviceVersion, onVersions) => { for (const partitionId of partitionIds) { const props = await (producerClient as any).getPartitionPublishingProperties( - partitionId + partitionId, ); should.equal( props.isIdempotentPublishingEnabled, false, - "Unexpected value for isIdempotentPublishingEnabled" + "Unexpected value for isIdempotentPublishingEnabled", ); should.equal(props.partitionId, partitionId, "Unexpected value for partitionId"); should.not.exist( props.lastPublishedSequenceNumber, - "Expected lastPublishedSequenceNumber to not exist" + "Expected lastPublishedSequenceNumber to not exist", ); should.not.exist(props.ownerLevel, "Expected ownerLevel to not exist"); should.not.exist(props.producerGroupId, "Expected producerGroupId to not exist"); @@ -91,17 +91,17 @@ testWithServiceTypes((serviceVersion, onVersions) => { for (const partitionId of partitionIds) { const props = await (producerClient as any).getPartitionPublishingProperties( - partitionId + partitionId, ); should.equal( props.isIdempotentPublishingEnabled, true, - "Unexpected value for isIdempotentPublishingEnabled" + "Unexpected value for isIdempotentPublishingEnabled", ); should.equal(props.partitionId, partitionId, "Unexpected value for partitionId"); should.exist( props.lastPublishedSequenceNumber, - "Expected lastPublishedSequenceNumber to exist" + "Expected lastPublishedSequenceNumber to exist", ); should.exist(props.ownerLevel, "Expected ownerLevel to exist"); should.exist(props.producerGroupId, "Expected producerGroupId to exist"); @@ -118,7 +118,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { should.equal(err.name, "TypeError"); should.equal( err.message, - `getPartitionPublishingProperties called without required argument "partitionId"` + `getPartitionPublishingProperties called without required argument "partitionId"`, ); } }); @@ -136,7 +136,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { } catch (err: any) { should.equal( err.message, - `The "partitionId" must be supplied and "partitionKey" must not be provided when the EventHubProducerClient has "enableIdempotentRetries" set to true.` + `The "partitionId" must be supplied and "partitionKey" must not be provided when the EventHubProducerClient has "enableIdempotentRetries" set to true.`, ); } }); @@ -151,7 +151,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { } catch (err: any) { should.equal( err.message, - `The "partitionId" must be supplied and "partitionKey" must not be provided when the EventHubProducerClient has "enableIdempotentRetries" set to true.` + `The "partitionId" must be supplied and "partitionKey" must not be provided when the EventHubProducerClient has "enableIdempotentRetries" set to true.`, ); } }); @@ -189,7 +189,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { } catch (err: any) { should.equal( err.message, - `The "partitionId" must be supplied and "partitionKey" must not be provided when the EventHubProducerClient has "enableIdempotentRetries" set to true.` + `The "partitionId" must be supplied and "partitionKey" must not be provided when the EventHubProducerClient has "enableIdempotentRetries" set to true.`, ); } }); @@ -205,7 +205,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { } catch (err: any) { should.equal( err.message, - `The "partitionId" must be supplied and "partitionKey" must not be provided when the EventHubProducerClient has "enableIdempotentRetries" set to true.` + `The "partitionId" must be supplied and "partitionKey" must not be provided when the EventHubProducerClient has "enableIdempotentRetries" set to true.`, ); } }); @@ -230,7 +230,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { } catch (err: any) { should.equal( err.message, - `There can only be 1 "sendBatch" call in-flight per partition while "enableIdempotentRetries" is set to true.` + `There can only be 1 "sendBatch" call in-flight per partition while "enableIdempotentRetries" is set to true.`, ); } @@ -265,7 +265,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { it("can use state from previous producerClient", async function () { const producerClient1 = new EventHubProducerClient( service.connectionString, - service.path + service.path, ); (producerClient1 as any)._enableIdempotentRetries = true; @@ -278,7 +278,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { // Create the 2nd producer const producerClient2 = new EventHubProducerClient( service.connectionString, - service.path + service.path, ); (producerClient2 as any)._enableIdempotentRetries = true; (producerClient2 as any)._partitionOptions = { @@ -297,17 +297,17 @@ testWithServiceTypes((serviceVersion, onVersions) => { should.equal( partitionPublishingProps2.producerGroupId, partitionPublishingProps1.producerGroupId, - "ProducerGroupId should match." + "ProducerGroupId should match.", ); should.equal( partitionPublishingProps2.ownerLevel! > partitionPublishingProps1.ownerLevel!, true, - "producer2 ownerLevel should be higher than producer1 ownerLevel." + "producer2 ownerLevel should be higher than producer1 ownerLevel.", ); should.equal( partitionPublishingProps2.lastPublishedSequenceNumber, partitionPublishingProps1.lastPublishedSequenceNumber! + 1, - "producer2 lastPublishedSequenceNumber should be 1 higher than producer1 lastPublishedSequenceNumber." + "producer2 lastPublishedSequenceNumber should be 1 higher than producer1 lastPublishedSequenceNumber.", ); return Promise.all([producerClient1.close(), producerClient2.close()]); @@ -330,18 +330,18 @@ testWithServiceTypes((serviceVersion, onVersions) => { should.equal( partitionPublishingProps.ownerLevel, 1, - "ownerLevel should match what the EventHubProducerClient was configured with." + "ownerLevel should match what the EventHubProducerClient was configured with.", ); should.exist( partitionPublishingProps.lastPublishedSequenceNumber, - "lastPublishedSequenceNumber should exist." + "lastPublishedSequenceNumber should exist.", ); }); it("can use ownerLevel to kick off other producers", async function () { const producerClient1 = new EventHubProducerClient( service.connectionString, - service.path + service.path, ); (producerClient1 as any)._enableIdempotentRetries = true; @@ -354,7 +354,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { // Create the 2nd producer const producerClient2 = new EventHubProducerClient( service.connectionString, - service.path + service.path, ); (producerClient2 as any)._enableIdempotentRetries = true; (producerClient2 as any)._partitionOptions = { @@ -403,7 +403,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { it("fails with invalid sequence number", async function () { const producerClient1 = new EventHubProducerClient( service.connectionString, - service.path + service.path, ); (producerClient1 as any)._enableIdempotentRetries = true; @@ -418,7 +418,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { ], { partitionId: "0", - } + }, ); const partitionPublishingProps1 = await ( producerClient1 as any @@ -429,7 +429,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { // Create the 2nd producer const producerClient2 = new EventHubProducerClient( service.connectionString, - service.path + service.path, ); (producerClient2 as any)._enableIdempotentRetries = true; (producerClient2 as any)._partitionOptions = { @@ -487,17 +487,17 @@ testWithServiceTypes((serviceVersion, onVersions) => { should.equal( afterPublishingProps.ownerLevel, beforePublishingProps.ownerLevel, - "ownerLevel should match." + "ownerLevel should match.", ); should.equal( afterPublishingProps.producerGroupId, beforePublishingProps.producerGroupId, - "producerGroupId should match." + "producerGroupId should match.", ); should.equal( afterPublishingProps.lastPublishedSequenceNumber, beforePublishingProps.lastPublishedSequenceNumber! + 1, - "afterPublishingProps.lastPublishedSequenceNumber should be 1 higher than beforePublishingProps" + "afterPublishingProps.lastPublishedSequenceNumber should be 1 higher than beforePublishingProps", ); }); @@ -511,18 +511,18 @@ testWithServiceTypes((serviceVersion, onVersions) => { batch.tryAdd({ body: 2 }); should.not.exist( (batch as EventDataBatchImpl).startingPublishedSequenceNumber, - "startingPublishedSequenceNumber should not exist before batch is successfully sent." + "startingPublishedSequenceNumber should not exist before batch is successfully sent.", ); const publishingProps = await (producerClient as any).getPartitionPublishingProperties( - "0" + "0", ); await producerClient.sendBatch(batch); should.equal( (batch as EventDataBatchImpl).startingPublishedSequenceNumber, publishingProps.lastPublishedSequenceNumber! + 1, - "startingPublishedSequenceNumber should be 1 higher than the lastPublishedSequenceNumber." + "startingPublishedSequenceNumber should be 1 higher than the lastPublishedSequenceNumber.", ); }); @@ -541,7 +541,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { }); should.not.exist( (batch as EventDataBatchImpl).startingPublishedSequenceNumber, - "startingPublishedSequenceNumber should not exist before batch is successfully sent." + "startingPublishedSequenceNumber should not exist before batch is successfully sent.", ); const abortController = new AbortController(); @@ -557,7 +557,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { should.not.equal(err.message, TEST_FAILURE); should.not.exist( (batch as EventDataBatchImpl).startingPublishedSequenceNumber, - "startingPublishedSequenceNumber should not exist if batch failed to send." + "startingPublishedSequenceNumber should not exist if batch failed to send.", ); } }); @@ -570,12 +570,12 @@ testWithServiceTypes((serviceVersion, onVersions) => { for (const event of events) { should.not.exist( (event as EventDataInternal)._publishedSequenceNumber, - "publishedSequenceNumber should not exist before event is successfully sent." + "publishedSequenceNumber should not exist before event is successfully sent.", ); } const publishingProps = await (producerClient as any).getPartitionPublishingProperties( - "0" + "0", ); await producerClient.sendBatch(events, { partitionId: "0" }); @@ -584,12 +584,12 @@ testWithServiceTypes((serviceVersion, onVersions) => { const event = events[i]; should.exist( (event as EventDataInternal)._publishedSequenceNumber, - "publishedSequenceNumber should exist after event is successfully sent." + "publishedSequenceNumber should exist after event is successfully sent.", ); should.equal( (event as EventDataInternal)._publishedSequenceNumber, publishingProps.lastPublishedSequenceNumber! + (i + 1), - "publishedSequenceNumber was not the expected result." + "publishedSequenceNumber was not the expected result.", ); } }); @@ -609,7 +609,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { for (const event of events) { should.not.exist( (event as EventDataInternal)._publishedSequenceNumber, - "publishedSequenceNumber should not exist before event is successfully sent." + "publishedSequenceNumber should not exist before event is successfully sent.", ); } @@ -630,7 +630,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { for (const event of events) { should.not.exist( (event as EventDataInternal)._publishedSequenceNumber, - "publishedSequenceNumber should not exist before event is successfully sent." + "publishedSequenceNumber should not exist before event is successfully sent.", ); } } @@ -654,7 +654,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { } catch (err: any) { should.equal( err.message, - "1 or more of these events have already been successfully published. When idempotent publishing is enabled, events that were acknowledged by the Event Hubs service may not be published again." + "1 or more of these events have already been successfully published. When idempotent publishing is enabled, events that were acknowledged by the Event Hubs service may not be published again.", ); } }); @@ -675,12 +675,12 @@ testWithServiceTypes((serviceVersion, onVersions) => { } catch (err: any) { should.equal( err.message, - "These events have already been successfully published. When idempotent publishing is enabled, events that were acknowledged by the Event Hubs service may not be published again." + "These events have already been successfully published. When idempotent publishing is enabled, events that were acknowledged by the Event Hubs service may not be published again.", ); } }); }); }); - } + }, ); }); diff --git a/sdk/eventhub/event-hubs/test/internal/eventPosition.spec.ts b/sdk/eventhub/event-hubs/test/internal/eventPosition.spec.ts index 16b3e789a9ac..d4b0da791225 100644 --- a/sdk/eventhub/event-hubs/test/internal/eventPosition.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/eventPosition.spec.ts @@ -77,7 +77,7 @@ testWithServiceTypes(() => { }; test.should.throw( TypeError, - "Invalid value for EventPosition found. Pass an object with either of offset, sequenceNumber or enqueuedOn properties set." + "Invalid value for EventPosition found. Pass an object with either of offset, sequenceNumber or enqueuedOn properties set.", ); }); it("throws error when event position is passed with both offset and sequence number set", () => { @@ -86,7 +86,7 @@ testWithServiceTypes(() => { }; test.should.throw( TypeError, - "Invalid value for EventPosition found. Set only one of offset, sequenceNumber or enqueuedOn properties." + "Invalid value for EventPosition found. Set only one of offset, sequenceNumber or enqueuedOn properties.", ); }); it("throws error when event position is passed with both offset and enqueuedOn set", () => { @@ -95,7 +95,7 @@ testWithServiceTypes(() => { }; test.should.throw( TypeError, - "Invalid value for EventPosition found. Set only one of offset, sequenceNumber or enqueuedOn properties." + "Invalid value for EventPosition found. Set only one of offset, sequenceNumber or enqueuedOn properties.", ); }); it("throws error when event position is passed with both sequence number and enqueuedOn set", () => { @@ -104,7 +104,7 @@ testWithServiceTypes(() => { }; test.should.throw( TypeError, - "Invalid value for EventPosition found. Set only one of offset, sequenceNumber or enqueuedOn properties." + "Invalid value for EventPosition found. Set only one of offset, sequenceNumber or enqueuedOn properties.", ); }); it("throws error when empty object is passed in event position map", () => { @@ -113,7 +113,7 @@ testWithServiceTypes(() => { }; test.should.throw( TypeError, - "Invalid value for EventPosition found. Pass an object with either of offset, sequenceNumber or enqueuedOn properties set." + "Invalid value for EventPosition found. Pass an object with either of offset, sequenceNumber or enqueuedOn properties set.", ); }); it("throws error when event position map is passed with both offset and sequence number set", () => { @@ -125,7 +125,7 @@ testWithServiceTypes(() => { }; test.should.throw( TypeError, - "Invalid value for EventPosition found. Set only one of offset, sequenceNumber or enqueuedOn properties." + "Invalid value for EventPosition found. Set only one of offset, sequenceNumber or enqueuedOn properties.", ); }); it("throws error when event position map is passed with both offset and enqueuedOn set", () => { @@ -134,7 +134,7 @@ testWithServiceTypes(() => { }; test.should.throw( TypeError, - "Invalid value for EventPosition found. Set only one of offset, sequenceNumber or enqueuedOn properties." + "Invalid value for EventPosition found. Set only one of offset, sequenceNumber or enqueuedOn properties.", ); }); it("throws error when event position map is passed with both sequence number and enqueuedOn set", () => { @@ -146,7 +146,7 @@ testWithServiceTypes(() => { }; test.should.throw( TypeError, - "Invalid value for EventPosition found. Set only one of offset, sequenceNumber or enqueuedOn properties." + "Invalid value for EventPosition found. Set only one of offset, sequenceNumber or enqueuedOn properties.", ); }); }); diff --git a/sdk/eventhub/event-hubs/test/internal/eventProcessor.spec.ts b/sdk/eventhub/event-hubs/test/internal/eventProcessor.spec.ts index d56943cb332e..ee0425cd700b 100644 --- a/sdk/eventhub/event-hubs/test/internal/eventProcessor.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/eventProcessor.spec.ts @@ -77,11 +77,11 @@ testWithServiceTypes((serviceVersion) => { before("validate environment", async function (): Promise { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -90,7 +90,7 @@ testWithServiceTypes((serviceVersion) => { consumerClient = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); }); @@ -103,7 +103,7 @@ testWithServiceTypes((serviceVersion) => { describe("_getStartingPosition", () => { function createEventProcessor( checkpointStore: CheckpointStore, - startPosition?: FullEventProcessorOptions["startPosition"] + startPosition?: FullEventProcessorOptions["startPosition"], ): EventProcessor { return new EventProcessor( EventHubConsumerClient.defaultConsumerGroupName, @@ -123,14 +123,14 @@ testWithServiceTypes((serviceVersion) => { maxWaitTimeInSeconds: 1, loadBalancingStrategy: defaultOptions.loadBalancingStrategy, loopIntervalInMs: defaultOptions.loopIntervalInMs, - } + }, ); } const emptyCheckpointStore = createCheckpointStore([]); function createCheckpointStore( - checkpointsForTest: Pick[] + checkpointsForTest: Pick[], ): CheckpointStore { return { claimOwnership: async () => { @@ -186,7 +186,7 @@ testWithServiceTypes((serviceVersion) => { const processor = createEventProcessor( checkpointStore, // checkpoints always win over the user's specified position - latestEventPosition + latestEventPosition, ); const eventPosition = await processor["_getStartingPosition"]("0"); @@ -268,7 +268,7 @@ testWithServiceTypes((serviceVersion) => { }, }, new InMemoryCheckpointStore(), - defaultOptions + defaultOptions, ); }); @@ -353,7 +353,7 @@ testWithServiceTypes((serviceVersion) => { { ...defaultOptions, pumpManager: pumpManager, - } + }, ); await eventProcessor["_claimOwnership"]( @@ -364,7 +364,7 @@ testWithServiceTypes((serviceVersion) => { ownerId: "owner", partitionId: "0", }, - new AbortController().signal + new AbortController().signal, ); // when we fail to claim a partition we should _definitely_ @@ -432,7 +432,7 @@ testWithServiceTypes((serviceVersion) => { }, }, loadBalancingStrategy: new BalancedLoadBalancingStrategy(60000), - } + }, ); // allow three iterations through the loop - one for each partition that @@ -451,7 +451,7 @@ testWithServiceTypes((serviceVersion) => { const numTimesAbortedIsCheckedInLoop = 6; await ep["_runLoopWithLoadBalancing"]( ep["_loadBalancingStrategy"], - triggerAbortedSignalAfterNumCalls(partitionIds.length * numTimesAbortedIsCheckedInLoop) + triggerAbortedSignalAfterNumCalls(partitionIds.length * numTimesAbortedIsCheckedInLoop), ); handlers.errors.should.deep.equal([]); @@ -459,7 +459,7 @@ testWithServiceTypes((serviceVersion) => { const currentOwnerships = await checkpointStore.listOwnership( commonFields.fullyQualifiedNamespace, commonFields.eventHubName, - commonFields.consumerGroup + commonFields.consumerGroup, ); currentOwnerships.sort((a, b) => a.partitionId.localeCompare(b.partitionId)); @@ -509,7 +509,7 @@ testWithServiceTypes((serviceVersion) => { const ownershipsAfterStop = await checkpointStore.listOwnership( commonFields.fullyQualifiedNamespace, commonFields.eventHubName, - commonFields.consumerGroup + commonFields.consumerGroup, ); ownershipsAfterStop.sort((a, b) => a.partitionId.localeCompare(b.partitionId)); @@ -563,7 +563,7 @@ testWithServiceTypes((serviceVersion) => { faultyCheckpointStore, { ...defaultOptions, - } + }, ); // claimOwnership() calls that fail in the runloop of eventProcessor @@ -603,7 +603,7 @@ testWithServiceTypes((serviceVersion) => { expectedErrorMessages.push( processCloseErrorMessage, processEventsErrorMessage, - processInitializeErrorMessage + processInitializeErrorMessage, ); } expectedErrorMessages.sort(); @@ -630,7 +630,7 @@ testWithServiceTypes((serviceVersion) => { { ...defaultOptions, startPosition: earliestEventPosition, - } + }, ); // errors that occur within the user's own event handlers will get @@ -669,7 +669,7 @@ testWithServiceTypes((serviceVersion) => { { ...defaultOptions, startPosition: latestEventPosition, - } + }, ); const id = processor.id; @@ -689,7 +689,7 @@ testWithServiceTypes((serviceVersion) => { }, }, new InMemoryCheckpointStore(), - { ...defaultOptions, ownerId: "hello", startPosition: latestEventPosition } + { ...defaultOptions, ownerId: "hello", startPosition: latestEventPosition }, ); processor.id.should.equal("hello"); @@ -718,7 +718,7 @@ testWithServiceTypes((serviceVersion) => { { ...defaultOptions, startPosition: startPosition, - } + }, ); processor.start(); @@ -756,7 +756,7 @@ testWithServiceTypes((serviceVersion) => { { ...defaultOptions, startPosition: latestEventPosition, - } + }, ); // shutdown the processor @@ -782,7 +782,7 @@ testWithServiceTypes((serviceVersion) => { { ...defaultOptions, startPosition: startPosition, - } + }, ); loggerForTest(`Starting processor for the first time`); @@ -830,7 +830,7 @@ testWithServiceTypes((serviceVersion) => { { ...defaultOptions, startPosition: startPosition, - } + }, ); processor.start(); @@ -873,7 +873,7 @@ testWithServiceTypes((serviceVersion) => { const ownershiplist = await inMemoryCheckpointStore.listOwnership( "myNamespace.servicebus.windows.net", "myEventHub", - EventHubConsumerClient.defaultConsumerGroupName + EventHubConsumerClient.defaultConsumerGroupName, ); ownershiplist.length.should.equals(2); @@ -890,15 +890,15 @@ testWithServiceTypes((serviceVersion) => { const partitionOwnershipList = await inMemoryCheckpointStore.listOwnership( "myNamespace.servicebus.windows.net", "myEventHub", - EventHubConsumerClient.defaultConsumerGroupName + EventHubConsumerClient.defaultConsumerGroupName, ); partitionOwnershipList[0].partitionId.should.equals(checkpoint.partitionId); partitionOwnershipList[0].fullyQualifiedNamespace!.should.equals( - "myNamespace.servicebus.windows.net" + "myNamespace.servicebus.windows.net", ); partitionOwnershipList[0].eventHubName!.should.equals("myEventHub"); partitionOwnershipList[0].consumerGroup!.should.equals( - EventHubConsumerClient.defaultConsumerGroupName + EventHubConsumerClient.defaultConsumerGroupName, ); }); @@ -920,7 +920,7 @@ testWithServiceTypes((serviceVersion) => { class FooPartitionProcessor { async processEvents( events: ReceivedEventData[], - context: PartitionContext + context: PartitionContext, ): Promise { processedAtLeastOneEvent.add(context.partitionId); @@ -955,7 +955,7 @@ testWithServiceTypes((serviceVersion) => { { ...defaultOptions, startPosition: earliestEventPosition, - } + }, ); // start first processor @@ -998,13 +998,13 @@ testWithServiceTypes((serviceVersion) => { consumerClient["_context"], new FooPartitionProcessor(), inMemoryCheckpointStore, - { ...defaultOptions, startPosition: earliestEventPosition } + { ...defaultOptions, startPosition: earliestEventPosition }, ); const checkpoints = await inMemoryCheckpointStore.listCheckpoints( consumerClient.fullyQualifiedNamespace, consumerClient.eventHubName, - EventHubConsumerClient.defaultConsumerGroupName + EventHubConsumerClient.defaultConsumerGroupName, ); checkpoints.sort((a, b) => a.partitionId.localeCompare(b.partitionId)); @@ -1040,7 +1040,7 @@ testWithServiceTypes((serviceVersion) => { for (const partitionId of partitionIds) { debug(`Validate events for partition: ${partitionId}`); lastEventsReceivedFromProcessor1[index].sequenceNumber.should.equal( - firstEventsReceivedFromProcessor2[index].sequenceNumber - 1 + firstEventsReceivedFromProcessor2[index].sequenceNumber - 1, ); index++; } @@ -1091,7 +1091,7 @@ testWithServiceTypes((serviceVersion) => { const ownerships = await checkpointStore.listOwnership( basicProperties.fullyQualifiedNamespace, basicProperties.eventHubName, - basicProperties.consumerGroup + basicProperties.consumerGroup, ); assertUnique(...ownerships); } @@ -1116,7 +1116,7 @@ testWithServiceTypes((serviceVersion) => { const checkpoints = await checkpointStore.listCheckpoints( basicProperties.fullyQualifiedNamespace, basicProperties.eventHubName, - basicProperties.consumerGroup + basicProperties.consumerGroup, ); assertUnique(...checkpoints); } @@ -1129,7 +1129,7 @@ testWithServiceTypes((serviceVersion) => { // ensure we have at least 3 partitions partitionIds.length.should.gte( 3, - "The load balancing tests must be ran on an Event Hub with at least 3 partitions" + "The load balancing tests must be ran on an Event Hub with at least 3 partitions", ); }); @@ -1146,7 +1146,7 @@ testWithServiceTypes((serviceVersion) => { { events: string[]; initialized: boolean; closeReason?: CloseReason } >(); partitionIds.forEach((id) => - partitionResultsMap.set(id, { events: [], initialized: false }) + partitionResultsMap.set(id, { events: [], initialized: false }), ); let didGetReceiverDisconnectedError = false; @@ -1162,7 +1162,7 @@ testWithServiceTypes((serviceVersion) => { } async processEvents( events: ReceivedEventData[], - context: PartitionContext + context: PartitionContext, ): Promise { partitionOwnershipArr.add(context.partitionId); const existingEvents = partitionResultsMap.get(context.partitionId)!.events; @@ -1206,7 +1206,7 @@ testWithServiceTypes((serviceVersion) => { startPosition: earliestEventPosition, ...processor1LoadBalancingInterval, loadBalancingStrategy: new BalancedLoadBalancingStrategy(60000), - } + }, ); processorByName[`processor-1`].start(); @@ -1229,7 +1229,7 @@ testWithServiceTypes((serviceVersion) => { startPosition: earliestEventPosition, ...processor2LoadBalancingInterval, loadBalancingStrategy: new BalancedLoadBalancingStrategy(60000), - } + }, ); partitionOwnershipArr.size.should.equal(partitionIds.length); @@ -1251,7 +1251,7 @@ testWithServiceTypes((serviceVersion) => { const partitionOwnership = await checkpointStore.listOwnership( consumerClient.fullyQualifiedNamespace, consumerClient.eventHubName, - EventHubConsumerClient.defaultConsumerGroupName + EventHubConsumerClient.defaultConsumerGroupName, ); // map of ownerId as a key and partitionIds as a value @@ -1263,7 +1263,7 @@ testWithServiceTypes((serviceVersion) => { const isBalanced = (friendlyName: string): boolean => { const n = Math.floor(partitionIds.length / 2); const numPartitions = partitionOwnershipMap.get( - processorByName[friendlyName].id + processorByName[friendlyName].id, )!.length; return numPartitions === n || numPartitions === n + 1; }; @@ -1306,7 +1306,7 @@ testWithServiceTypes((serviceVersion) => { { events: string[]; initialized: boolean; closeReason?: CloseReason } >(); partitionIds.forEach((id) => - partitionResultsMap.set(id, { events: [], initialized: false }) + partitionResultsMap.set(id, { events: [], initialized: false }), ); let didGetReceiverDisconnectedError = false; @@ -1322,7 +1322,7 @@ testWithServiceTypes((serviceVersion) => { } async processEvents( events: ReceivedEventData[], - context: PartitionContext + context: PartitionContext, ): Promise { partitionOwnershipArr.add(context.partitionId); const existingEvents = partitionResultsMap.get(context.partitionId)!.events; @@ -1366,7 +1366,7 @@ testWithServiceTypes((serviceVersion) => { startPosition: earliestEventPosition, ...processor1LoadBalancingInterval, loadBalancingStrategy: new GreedyLoadBalancingStrategy(60000), - } + }, ); processorByName[`processor-1`].start(); @@ -1389,7 +1389,7 @@ testWithServiceTypes((serviceVersion) => { startPosition: earliestEventPosition, ...processor2LoadBalancingInterval, loadBalancingStrategy: new GreedyLoadBalancingStrategy(60000), - } + }, ); partitionOwnershipArr.size.should.equal(partitionIds.length); @@ -1411,7 +1411,7 @@ testWithServiceTypes((serviceVersion) => { const partitionOwnership = await checkpointStore.listOwnership( consumerClient.fullyQualifiedNamespace, consumerClient.eventHubName, - EventHubConsumerClient.defaultConsumerGroupName + EventHubConsumerClient.defaultConsumerGroupName, ); // map of ownerId as a key and partitionIds as a value @@ -1423,7 +1423,7 @@ testWithServiceTypes((serviceVersion) => { const isBalanced = (friendlyName: string): boolean => { const n = Math.floor(partitionIds.length / 2); const numPartitions = partitionOwnershipMap.get( - processorByName[friendlyName].id + processorByName[friendlyName].id, )!.length; return numPartitions === n || numPartitions === n + 1; }; @@ -1464,7 +1464,7 @@ testWithServiceTypes((serviceVersion) => { class FooPartitionProcessor { async processEvents( _events: ReceivedEventData[], - context: PartitionContext + context: PartitionContext, ): Promise { partitionOwnershipArr.add(context.partitionId); } @@ -1492,7 +1492,7 @@ testWithServiceTypes((serviceVersion) => { ...defaultOptions, startPosition: earliestEventPosition, loadBalancingStrategy: new BalancedLoadBalancingStrategy(60000), - } + }, ); processorByName[processorName].start(); await delay(12000); @@ -1511,7 +1511,7 @@ testWithServiceTypes((serviceVersion) => { const partitionOwnership = await checkpointStore.listOwnership( consumerClient.fullyQualifiedNamespace, consumerClient.eventHubName, - EventHubConsumerClient.defaultConsumerGroupName + EventHubConsumerClient.defaultConsumerGroupName, ); partitionOwnershipArr.size.should.equal(partitionIds.length); @@ -1549,7 +1549,7 @@ testWithServiceTypes((serviceVersion) => { class FooPartitionProcessor { async processEvents( _events: ReceivedEventData[], - context: PartitionContext + context: PartitionContext, ): Promise { partitionOwnershipArr.add(context.partitionId); } @@ -1577,7 +1577,7 @@ testWithServiceTypes((serviceVersion) => { ...defaultOptions, startPosition: earliestEventPosition, loadBalancingStrategy: new GreedyLoadBalancingStrategy(60000), - } + }, ); processorByName[processorName].start(); await delay(12000); @@ -1596,7 +1596,7 @@ testWithServiceTypes((serviceVersion) => { const partitionOwnership = await checkpointStore.listOwnership( consumerClient.fullyQualifiedNamespace, consumerClient.eventHubName, - EventHubConsumerClient.defaultConsumerGroupName + EventHubConsumerClient.defaultConsumerGroupName, ); partitionOwnershipArr.size.should.equal(partitionIds.length); @@ -1663,11 +1663,11 @@ testWithServiceTypes((serviceVersion) => { loggerForTest( `[${(context as any).eventProcessorId}] processClose(${reason}) on partition ${ context.partitionId - }` + }`, ); if (reason === CloseReason.OwnershipLost && allPartitionsClaimed) { loggerForTest( - `[${(context as any).eventProcessorId}] Lost partition ${context.partitionId}` + `[${(context as any).eventProcessorId}] Lost partition ${context.partitionId}`, ); thrashAfterSettling = true; } @@ -1690,7 +1690,7 @@ testWithServiceTypes((serviceVersion) => { consumerClient["_context"], handlers, checkpointStore, - eventProcessorOptions + eventProcessorOptions, ); const processor2 = new EventProcessor( @@ -1698,7 +1698,7 @@ testWithServiceTypes((serviceVersion) => { consumerClient["_context"], handlers, checkpointStore, - eventProcessorOptions + eventProcessorOptions, ); processor1.start(); @@ -1783,7 +1783,7 @@ testWithServiceTypes((serviceVersion) => { should.equal( thrashAfterSettling, false, - "Detected PartitionOwnership thrashing after load-balancing has settled." + "Detected PartitionOwnership thrashing after load-balancing has settled.", ); } }); @@ -1828,11 +1828,11 @@ testWithServiceTypes((serviceVersion) => { loggerForTest( `[${(context as any).eventProcessorId}] processClose(${reason}) on partition ${ context.partitionId - }` + }`, ); if (reason === CloseReason.OwnershipLost && allPartitionsClaimed) { loggerForTest( - `[${(context as any).eventProcessorId}] Lost partition ${context.partitionId}` + `[${(context as any).eventProcessorId}] Lost partition ${context.partitionId}`, ); thrashAfterSettling = true; } @@ -1855,7 +1855,7 @@ testWithServiceTypes((serviceVersion) => { consumerClient["_context"], handlers, checkpointStore, - eventProcessorOptions + eventProcessorOptions, ); const processor2 = new EventProcessor( @@ -1863,7 +1863,7 @@ testWithServiceTypes((serviceVersion) => { consumerClient["_context"], handlers, checkpointStore, - eventProcessorOptions + eventProcessorOptions, ); processor1.start(); @@ -1948,7 +1948,7 @@ testWithServiceTypes((serviceVersion) => { should.equal( thrashAfterSettling, false, - "Detected PartitionOwnership thrashing after load-balancing has settled." + "Detected PartitionOwnership thrashing after load-balancing has settled.", ); } }); diff --git a/sdk/eventhub/event-hubs/test/internal/eventdata.spec.ts b/sdk/eventhub/event-hubs/test/internal/eventdata.spec.ts index 984b3ea082b8..9bd8f78be8d4 100644 --- a/sdk/eventhub/event-hubs/test/internal/eventdata.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/eventdata.spec.ts @@ -58,13 +58,13 @@ testWithServiceTypes(() => { ...testMessage, ...{ content_type: "application/json", correlation_id: "cid", message_id: 1 }, }, - false + false, ); should().equal(testEventData.messageId, 1, "Unexpected messageId found."); should().equal( testEventData.contentType, "application/json", - "Unexpected contentType found." + "Unexpected contentType found.", ); should().equal(testEventData.correlationId, "cid", "Unexpected correlationId found."); }); @@ -106,7 +106,7 @@ testWithServiceTypes(() => { ...extraAnnotations, }, }, - false + false, ); testEventData .enqueuedTimeUtc!.getTime() @@ -115,10 +115,10 @@ testWithServiceTypes(() => { testEventData.sequenceNumber!.should.equal(testAnnotations["x-opt-sequence-number"]); testEventData.partitionKey!.should.equal(testAnnotations["x-opt-partition-key"]); testEventData.systemProperties!["x-iot-foo-prop"].should.eql( - extraAnnotations["x-iot-foo-prop"] + extraAnnotations["x-iot-foo-prop"], ); testEventData.systemProperties!["x-iot-bar-prop"].should.eql( - extraAnnotations["x-iot-bar-prop"] + extraAnnotations["x-iot-bar-prop"], ); }); @@ -142,7 +142,7 @@ testWithServiceTypes(() => { group_id: "groupId", group_sequence: 1, }, - false + false, ); testEventData @@ -188,7 +188,7 @@ testWithServiceTypes(() => { ...extraAnnotations, }, }, - false + false, ); testEventData .enqueuedTimeUtc!.getTime() @@ -213,12 +213,12 @@ testWithServiceTypes(() => { should().equal( expectedTestBodyContents.equals(messageFromED.body.content), true, - "Encoded body does not match expected result." + "Encoded body does not match expected result.", ); should().equal( messageFromED.body.typecode, dataSectionTypeCode, - "Unexpected typecode encountered on body." + "Unexpected typecode encountered on body.", ); }); diff --git a/sdk/eventhub/event-hubs/test/internal/loadBalancingStrategy.spec.ts b/sdk/eventhub/event-hubs/test/internal/loadBalancingStrategy.spec.ts index 12bddc5bf3d3..5cf777578d9f 100644 --- a/sdk/eventhub/event-hubs/test/internal/loadBalancingStrategy.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/loadBalancingStrategy.spec.ts @@ -13,7 +13,7 @@ const should = chai.should(); testWithServiceTypes(() => { describe("LoadBalancingStrategy", () => { function createOwnershipMap( - partitionToOwner: Record + partitionToOwner: Record, ): Map { const ownershipMap = new Map(); @@ -85,12 +85,12 @@ testWithServiceTypes(() => { "2": "a", "3": "a", }), - allPartitions + allPartitions, ); partitionsToOwn.sort(); partitionsToOwn.should.be.deep.equal( [], - "we've gotten our fair share, shouldn't claim anything new" + "we've gotten our fair share, shouldn't claim anything new", ); // now the other side of this is when we're fighting for the ownership of an @@ -101,12 +101,12 @@ testWithServiceTypes(() => { "1": "b", "2": "a", }), - allPartitions + allPartitions, ); partitionsToOwn.sort(); partitionsToOwn.should.be.deep.equal( ["0"], - "we had our minimum fair share (1) but there's still one extra (uneven number of partitions per processor) and we should snag it" + "we had our minimum fair share (1) but there's still one extra (uneven number of partitions per processor) and we should snag it", ); }); @@ -122,12 +122,12 @@ testWithServiceTypes(() => { "2": "a", "3": "a", }), - allPartitions + allPartitions, ); partitionsToOwn.sort(); partitionsToOwn.should.be.deep.equal( [], - "we've gotten our fair share, shouldn't claim anything new" + "we've gotten our fair share, shouldn't claim anything new", ); partitionsToOwn = lb.getPartitionsToClaim( @@ -138,7 +138,7 @@ testWithServiceTypes(() => { "2": "a", "3": "a", }), - allPartitions + allPartitions, ); partitionsToOwn.sort(); partitionsToOwn.should.be.deep.equal([], "load is balanced, won't grab any more."); @@ -160,13 +160,13 @@ testWithServiceTypes(() => { "1": "a", "2": "a", }), - ["0", "1", "2"] + ["0", "1", "2"], ); partitionsToOwn.sort(); // we'll attempt to steal a partition from 'a'. partitionsToOwn.length.should.equal( 1, - "stealing with an odd number of partitions per processor" + "stealing with an odd number of partitions per processor", ); // and now the same case as above, but with an even number of partitions per processor. @@ -178,13 +178,13 @@ testWithServiceTypes(() => { "2": "a", "3": "a", }), - ["0", "1", "2", "3"] + ["0", "1", "2", "3"], ); partitionsToOwn.sort(); // we'll attempt to steal a partition from 'a'. partitionsToOwn.length.should.equal( 1, - "stealing with an even number of partitions per processor" + "stealing with an even number of partitions per processor", ); }); @@ -230,7 +230,7 @@ testWithServiceTypes(() => { requestedPartitions.should.deep.equal( [], - "c will not steal one partition since it sees that, eventually, 'a' will lose its partitions and become a +1 processor on it's own" + "c will not steal one partition since it sees that, eventually, 'a' will lose its partitions and become a +1 processor on it's own", ); }); @@ -245,7 +245,7 @@ testWithServiceTypes(() => { "1": "b", "2": "a", }), - ["0", "1", "2"] + ["0", "1", "2"], ); partitionsToOwn.sort(); @@ -266,7 +266,7 @@ testWithServiceTypes(() => { "1": "b", "3": "a", }), - allPartitions + allPartitions, ); partitionsToOwn.length.should.be.equal(1, "1 and 1 with another owner, should claim one"); // better not try to claim 'b's partition when there are unowned partitions @@ -280,7 +280,7 @@ testWithServiceTypes(() => { "2": "a", "3": "a", }), - allPartitions + allPartitions, ); partitionsToOwn.sort(); partitionsToOwn.should.be.deep.equal(["0"], "b grabbed the last available partition"); @@ -294,7 +294,7 @@ testWithServiceTypes(() => { "2": "b", "3": "a", }), - allPartitions + allPartitions, ); partitionsToOwn.sort(); partitionsToOwn.should.be.deep.equal([], "balanced: b should not grab anymore partitions"); @@ -337,12 +337,12 @@ testWithServiceTypes(() => { "2": "a", "3": "a", }), - allPartitions + allPartitions, ); partitionsToOwn.sort(); partitionsToOwn.should.be.deep.equal( [], - "we've gotten our fair share, shouldn't claim anything new" + "we've gotten our fair share, shouldn't claim anything new", ); // now the other side of this is when we're fighting for the ownership of an @@ -353,12 +353,12 @@ testWithServiceTypes(() => { "1": "b", "2": "a", }), - allPartitions + allPartitions, ); partitionsToOwn.sort(); partitionsToOwn.should.be.deep.equal( ["0"], - "we had our minimum fair share (1) but there's still one extra (uneven number of partitions per processor) and we should snag it" + "we had our minimum fair share (1) but there's still one extra (uneven number of partitions per processor) and we should snag it", ); }); @@ -374,12 +374,12 @@ testWithServiceTypes(() => { "2": "a", "3": "a", }), - allPartitions + allPartitions, ); partitionsToOwn.sort(); partitionsToOwn.should.be.deep.equal( [], - "we've gotten our fair share, shouldn't claim anything new" + "we've gotten our fair share, shouldn't claim anything new", ); partitionsToOwn = lb.getPartitionsToClaim( @@ -390,7 +390,7 @@ testWithServiceTypes(() => { "2": "a", "3": "a", }), - allPartitions + allPartitions, ); partitionsToOwn.sort(); partitionsToOwn.should.be.deep.equal([], "load is balanced, won't grab any more."); @@ -412,13 +412,13 @@ testWithServiceTypes(() => { "1": "a", "2": "a", }), - ["0", "1", "2"] + ["0", "1", "2"], ); partitionsToOwn.sort(); // we'll attempt to steal a partition from 'a'. partitionsToOwn.length.should.equal( 1, - "stealing with an odd number of partitions per processor" + "stealing with an odd number of partitions per processor", ); // and now the same case as above, but with an even number of partitions per processor. @@ -430,13 +430,13 @@ testWithServiceTypes(() => { "2": "a", "3": "a", }), - ["0", "1", "2", "3"] + ["0", "1", "2", "3"], ); partitionsToOwn.sort(); // we'll attempt to steal a partition from 'a'. partitionsToOwn.length.should.equal( 2, - "stealing with an even number of partitions per processor" + "stealing with an even number of partitions per processor", ); }); @@ -457,7 +457,7 @@ testWithServiceTypes(() => { "6": "b", "7": "b", }), - allPartitions + allPartitions, ); partitionsToOwn.sort(); // "a" should have 4 partitions in order to be balanced. @@ -510,7 +510,7 @@ testWithServiceTypes(() => { requestedPartitions.should.deep.equal( [], - "c will not steal one partition since it sees that, eventually, 'a' will lose its partitions and become a +1 processor on it's own" + "c will not steal one partition since it sees that, eventually, 'a' will lose its partitions and become a +1 processor on it's own", ); }); @@ -525,7 +525,7 @@ testWithServiceTypes(() => { "1": "b", "2": "a", }), - ["0", "1", "2"] + ["0", "1", "2"], ); partitionsToOwn.sort(); @@ -546,7 +546,7 @@ testWithServiceTypes(() => { "1": "b", "3": "a", }), - allPartitions + allPartitions, ); partitionsToOwn.length.should.be.equal(1, "1 and 1 with another owner, should claim one"); // better not try to claim 'b's partition when there are unowned partitions @@ -560,7 +560,7 @@ testWithServiceTypes(() => { "2": "a", "3": "a", }), - allPartitions + allPartitions, ); partitionsToOwn.sort(); partitionsToOwn.should.be.deep.equal(["0"], "b grabbed the last available partition"); @@ -574,7 +574,7 @@ testWithServiceTypes(() => { "2": "b", "3": "a", }), - allPartitions + allPartitions, ); partitionsToOwn.sort(); partitionsToOwn.should.be.deep.equal([], "balanced: b should not grab anymore partitions"); diff --git a/sdk/eventhub/event-hubs/test/internal/misc.spec.ts b/sdk/eventhub/event-hubs/test/internal/misc.spec.ts index 062d71d81da2..9a9dde8838d2 100644 --- a/sdk/eventhub/event-hubs/test/internal/misc.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/misc.spec.ts @@ -56,11 +56,11 @@ testWithServiceTypes((serviceVersion) => { before("validate environment", async function (): Promise { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -70,7 +70,7 @@ testWithServiceTypes((serviceVersion) => { consumerClient = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); hubInfo = await consumerClient.getEventHubProperties(); partitionId = hubInfo.partitionIds[0]; @@ -113,7 +113,7 @@ testWithServiceTypes((serviceVersion) => { }, { startPosition: { offset: lastEnqueuedOffset }, - } + }, ); }); await subscription!.close(); @@ -157,7 +157,7 @@ testWithServiceTypes((serviceVersion) => { }, { startPosition: { offset: lastEnqueuedOffset }, - } + }, ); }); await subscription!.close(); @@ -199,7 +199,7 @@ testWithServiceTypes((serviceVersion) => { }, { startPosition: { offset: lastEnqueuedOffset }, - } + }, ); }); await subscription!.close(); @@ -232,7 +232,7 @@ testWithServiceTypes((serviceVersion) => { }, { startPosition: { offset: lastEnqueuedOffset }, - } + }, ); }); await subscription!.close(); @@ -269,7 +269,7 @@ testWithServiceTypes((serviceVersion) => { }, { startPosition: { offset: lastEnqueuedOffset }, - } + }, ); }); await subscription!.close(); @@ -327,7 +327,7 @@ testWithServiceTypes((serviceVersion) => { }, { startPosition: { offset: lastEnqueuedOffset }, - } + }, ); }); await subscription!.close(); @@ -356,7 +356,7 @@ testWithServiceTypes((serviceVersion) => { senderPromises.push( producerClient.sendBatch([{ body: "Hello EventHub " + i }], { partitionKey: partitionKey.toString(), - }) + }), ); } @@ -373,7 +373,7 @@ testWithServiceTypes((serviceVersion) => { }); const receivedEvents = await subscriptionEventHandler.waitForFullEvents( hubInfo.partitionIds, - msgToSendCount + msgToSendCount, ); for (const d of receivedEvents) { @@ -383,7 +383,7 @@ testWithServiceTypes((serviceVersion) => { if (partitionMap[pk] && partitionMap[pk] !== d.partitionId) { debug( - `#### Error: Received a message from partition ${d.partitionId} with partition key ${pk}, whereas the same key was observed on partition ${partitionMap[pk]} before.` + `#### Error: Received a message from partition ${d.partitionId} with partition key ${pk}, whereas the same key was observed on partition ${partitionMap[pk]} before.`, ); assert(partitionMap[pk] === d.partitionId); } @@ -436,7 +436,7 @@ testWithServiceTypes((serviceVersion) => { should.not.exist( spanContext, - `Missing property "${TRACEPARENT_PROPERTY}" should return undefined spanContext.` + `Missing property "${TRACEPARENT_PROPERTY}" should return undefined spanContext.`, ); }); }); diff --git a/sdk/eventhub/event-hubs/test/internal/node/client.spec.ts b/sdk/eventhub/event-hubs/test/internal/node/client.spec.ts index eb100606f46a..51475efb3609 100644 --- a/sdk/eventhub/event-hubs/test/internal/node/client.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/node/client.spec.ts @@ -40,19 +40,19 @@ testWithServiceTypes((serviceVersion) => { before("validate environment", function () { should.exist( env[EnvVarKeys.AZURE_CLIENT_ID], - "define AZURE_CLIENT_ID in your environment before running integration tests." + "define AZURE_CLIENT_ID in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.AZURE_TENANT_ID], - "define AZURE_TENANT_ID in your environment before running integration tests." + "define AZURE_TENANT_ID in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.AZURE_CLIENT_SECRET], - "define AZURE_CLIENT_SECRET in your environment before running integration tests." + "define AZURE_CLIENT_SECRET in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); // This is of the form .servicebus.windows.net endpoint = (env.EVENTHUB_CONNECTION_STRING.match("Endpoint=sb://(.*)/;") || "")[1]; @@ -73,7 +73,7 @@ testWithServiceTypes((serviceVersion) => { EventHubConsumerClient.defaultConsumerGroupName, endpoint, env.EVENTHUB_NAME, - credential + credential, ); should.equal(client.fullyQualifiedNamespace, endpoint); @@ -82,7 +82,7 @@ testWithServiceTypes((serviceVersion) => { // Ensure tracing is implemented correctly await assert.supportsTracing( (options) => client.getEventHubProperties(options), - ["ManagementClient.getEventHubProperties"] + ["ManagementClient.getEventHubProperties"], ); // Additional validation that we created the correct initial span options @@ -99,8 +99,8 @@ testWithServiceTypes((serviceVersion) => { Sinon.match.any, Sinon.match.any, Sinon.match.any, - expectedSpanOptions - ) + expectedSpanOptions, + ), ); }); }); diff --git a/sdk/eventhub/event-hubs/test/internal/node/disconnect.spec.ts b/sdk/eventhub/event-hubs/test/internal/node/disconnect.spec.ts index 1445d0341027..7dd29aff4de6 100644 --- a/sdk/eventhub/event-hubs/test/internal/node/disconnect.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/node/disconnect.spec.ts @@ -39,11 +39,11 @@ testWithServiceTypes((serviceVersion) => { before("validate environment", function (): void { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -51,7 +51,7 @@ testWithServiceTypes((serviceVersion) => { const client = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); partitionIds = await client.getPartitionIds(); return client.close(); @@ -105,14 +105,14 @@ testWithServiceTypes((serviceVersion) => { EventHubConsumerClient.defaultConsumerGroupName, "Consumer1", partitionIds[0], - latestEventPosition + latestEventPosition, ); const receiver2 = createReceiver( context, EventHubConsumerClient.defaultConsumerGroupName, "Consumer2", partitionIds[1], - latestEventPosition + latestEventPosition, ); // Add 2 senders. @@ -171,14 +171,14 @@ testWithServiceTypes((serviceVersion) => { EventHubConsumerClient.defaultConsumerGroupName, "Consumer1", partitionIds[0], - latestEventPosition + latestEventPosition, ); const receiver2 = createReceiver( context, EventHubConsumerClient.defaultConsumerGroupName, "Consumer2", partitionIds[1], - latestEventPosition + latestEventPosition, ); // Add 2 senders. diff --git a/sdk/eventhub/event-hubs/test/internal/node/packageInfo.spec.ts b/sdk/eventhub/event-hubs/test/internal/node/packageInfo.spec.ts index f4327f757260..a971afd4880a 100644 --- a/sdk/eventhub/event-hubs/test/internal/node/packageInfo.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/node/packageInfo.spec.ts @@ -29,12 +29,12 @@ testWithServiceTypes(() => { should.equal( packageJsonInfo.name, name, - `${name} from package.json is not same as 'name' used in constants.ts` + `${name} from package.json is not same as 'name' used in constants.ts`, ); should.equal( packageJsonInfo.version, version, - `${version} from package.json is not same as 'version' used in constants.ts` + `${version} from package.json is not same as 'version' used in constants.ts`, ); }); }); diff --git a/sdk/eventhub/event-hubs/test/internal/receiveBatch.spec.ts b/sdk/eventhub/event-hubs/test/internal/receiveBatch.spec.ts index 329bfe25560e..3dedd24046b7 100644 --- a/sdk/eventhub/event-hubs/test/internal/receiveBatch.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/receiveBatch.spec.ts @@ -44,11 +44,11 @@ testWithServiceTypes((serviceVersion) => { before("validate environment", async function (): Promise { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -57,7 +57,7 @@ testWithServiceTypes((serviceVersion) => { consumerClient = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); partitionIds = await producerClient.getPartitionIds({}); }); @@ -70,9 +70,8 @@ testWithServiceTypes((serviceVersion) => { describe("EventHubConsumer receiveBatch", function (): void { it("should not lose messages on error", async () => { const partitionId = partitionIds[0]; - const { lastEnqueuedSequenceNumber } = await producerClient.getPartitionProperties( - partitionId - ); + const { lastEnqueuedSequenceNumber } = + await producerClient.getPartitionProperties(partitionId); // Ensure the receiver only looks at new messages. const startPosition: EventPosition = { @@ -95,7 +94,7 @@ testWithServiceTypes((serviceVersion) => { retryOptions: { maxRetries: 0, }, - } + }, ); // Periodically check that the receiver's checkpoint has been updated. @@ -126,9 +125,8 @@ testWithServiceTypes((serviceVersion) => { it("should not lose messages between retries", async () => { const partitionId = partitionIds[0]; - const { lastEnqueuedSequenceNumber } = await producerClient.getPartitionProperties( - partitionId - ); + const { lastEnqueuedSequenceNumber } = + await producerClient.getPartitionProperties(partitionId); // Ensure the receiver only looks at new messages. const startPosition: EventPosition = { @@ -151,7 +149,7 @@ testWithServiceTypes((serviceVersion) => { retryOptions: { maxRetries: 1, }, - } + }, ); // Periodically check that the receiver's checkpoint has been updated. diff --git a/sdk/eventhub/event-hubs/test/internal/sender.spec.ts b/sdk/eventhub/event-hubs/test/internal/sender.spec.ts index 35ff0c455aca..c0589e76cddb 100644 --- a/sdk/eventhub/event-hubs/test/internal/sender.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/sender.spec.ts @@ -49,11 +49,11 @@ testWithServiceTypes((serviceVersion) => { before("validate environment", function (): void { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -63,7 +63,7 @@ testWithServiceTypes((serviceVersion) => { consumerClient = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); startPosition = await getStartingPositionsForTests(consumerClient); }); @@ -143,9 +143,8 @@ testWithServiceTypes((serviceVersion) => { should.equal(batch.tryAdd({ body: list[1] }), false); // The Mike message will be rejected - it's over the limit. should.equal(batch.tryAdd({ body: list[2] }), true); // Marie should get added"; - const { subscriptionEventHandler } = await SubscriptionHandlerForTests.startingFromHere( - producerClient - ); + const { subscriptionEventHandler } = + await SubscriptionHandlerForTests.startingFromHere(producerClient); const subscriber = consumerClient.subscribe("0", subscriptionEventHandler, { startPosition, @@ -164,7 +163,7 @@ testWithServiceTypes((serviceVersion) => { // and was rejected above. [list[0], list[2]].should.be.deep.eq( receivedEvents.map((event) => event.body), - "Received messages should be equal to our sent messages" + "Received messages should be equal to our sent messages", ); }); @@ -183,9 +182,8 @@ testWithServiceTypes((serviceVersion) => { should.equal(batch.tryAdd({ body: list[0] }), true); should.equal(batch.tryAdd({ body: list[1] }), true); - const { subscriptionEventHandler } = await SubscriptionHandlerForTests.startingFromHere( - producerClient - ); + const { subscriptionEventHandler } = + await SubscriptionHandlerForTests.startingFromHere(producerClient); const subscriber = consumerClient.subscribe("0", subscriptionEventHandler, { startPosition, @@ -202,7 +200,7 @@ testWithServiceTypes((serviceVersion) => { list.should.be.deep.eq( receivedEvents.map((event) => event.body), - "Received messages should be equal to our sent messages" + "Received messages should be equal to our sent messages", ); }); @@ -221,9 +219,8 @@ testWithServiceTypes((serviceVersion) => { should.equal(batch.tryAdd({ body: list[0] }), true); should.equal(batch.tryAdd({ body: list[1] }), true); - const { subscriptionEventHandler } = await SubscriptionHandlerForTests.startingFromHere( - producerClient - ); + const { subscriptionEventHandler } = + await SubscriptionHandlerForTests.startingFromHere(producerClient); const subscriber = consumerClient.subscribe(subscriptionEventHandler, { startPosition, @@ -240,7 +237,7 @@ testWithServiceTypes((serviceVersion) => { list.should.be.deep.eq( receivedEvents.map((event) => event.body), - "Received messages should be equal to our sent messages" + "Received messages should be equal to our sent messages", ); }); @@ -265,7 +262,7 @@ testWithServiceTypes((serviceVersion) => { const receivedEvents: ReceivedEventData[] = []; let waitUntilEventsReceivedResolver: (value?: any) => void; const waitUntilEventsReceived = new Promise( - (resolve) => (waitUntilEventsReceivedResolver = resolve) + (resolve) => (waitUntilEventsReceivedResolver = resolve), ); const sequenceNumber = (await consumerClient.getPartitionProperties("0")) @@ -289,7 +286,7 @@ testWithServiceTypes((serviceVersion) => { sequenceNumber, }, maxBatchSize: 3, - } + }, ); await producerClient.sendBatch(batch); @@ -307,7 +304,7 @@ testWithServiceTypes((serviceVersion) => { properties: event.properties, }; }), - "Received messages should be equal to our sent messages" + "Received messages should be equal to our sent messages", ); }); @@ -326,7 +323,7 @@ testWithServiceTypes((serviceVersion) => { } return producerClient.sendBatch(eventDataBatch, options); }, - ["message", "EventHubProducerClient.sendBatch"] + ["message", "EventHubProducerClient.sendBatch"], ); }); @@ -342,7 +339,7 @@ testWithServiceTypes((serviceVersion) => { should.equal( (eventDataBatch as EventDataBatchImpl)._messageSpanContexts.length, 0, - "Unexpected number of span contexts in batch." + "Unexpected number of span contexts in batch.", ); }); @@ -359,7 +356,7 @@ testWithServiceTypes((serviceVersion) => { } return producerClient.sendBatch(eventDataBatch, options); }, - ["message", "EventHubProducerClient.sendBatch"] + ["message", "EventHubProducerClient.sendBatch"], ); }); @@ -375,7 +372,7 @@ testWithServiceTypes((serviceVersion) => { partitionId: "0", tracingOptions: options.tracingOptions, }), - ["message", "EventHubProducerClient.sendBatch"] + ["message", "EventHubProducerClient.sendBatch"], ); }); @@ -407,9 +404,8 @@ testWithServiceTypes((serviceVersion) => { describe("Multiple sendBatch calls", function (): void { it("should be sent successfully in parallel", async function (): Promise { - const { subscriptionEventHandler } = await SubscriptionHandlerForTests.startingFromHere( - consumerClient - ); + const { subscriptionEventHandler } = + await SubscriptionHandlerForTests.startingFromHere(consumerClient); const promises = []; for (let i = 0; i < 5; i++) { @@ -424,7 +420,7 @@ testWithServiceTypes((serviceVersion) => { try { const events = await subscriptionEventHandler.waitForEvents( await consumerClient.getPartitionIds({}), - 5 + 5, ); // we've allowed the server to choose which partition the messages are distributed to @@ -466,12 +462,16 @@ testWithServiceTypes((serviceVersion) => { if (i === 0) { debug(">>>>> Sending a message to partition %d", i); promises.push( - await producerClient.sendBatch([{ body: `Hello World ${i}` }], { partitionId: "0" }) + await producerClient.sendBatch([{ body: `Hello World ${i}` }], { + partitionId: "0", + }), ); } else if (i === 1) { debug(">>>>> Sending a message to partition %d", i); promises.push( - await producerClient.sendBatch([{ body: `Hello World ${i}` }], { partitionId: "1" }) + await producerClient.sendBatch([{ body: `Hello World ${i}` }], { + partitionId: "1", + }), ); } else { debug(">>>>> Sending a message to the hub when i == %d", i); @@ -498,7 +498,7 @@ testWithServiceTypes((serviceVersion) => { should.exist(err); should.equal(err.code, "MessageTooLargeError"); err.message.should.match( - /.*The received message \(delivery-id:(\d+), size:(\d+) bytes\) exceeds the limit \((\d+) bytes\) currently allowed on the link\..*/gi + /.*The received message \(delivery-id:(\d+), size:(\d+) bytes\) exceeds the limit \((\d+) bytes\) currently allowed on the link\..*/gi, ); } await producerClient.sendBatch([{ body: "Hello World EventHub!!" }], { partitionId: "0" }); @@ -525,7 +525,7 @@ testWithServiceTypes((serviceVersion) => { { startPosition, maxBatchSize: data.length, - } + }, ); await producerClient.sendBatch(data); @@ -555,7 +555,7 @@ testWithServiceTypes((serviceVersion) => { { startPosition, maxBatchSize: data.length, - } + }, ); await producerClient.sendBatch(data, { partitionKey: "foo" }); @@ -590,7 +590,7 @@ testWithServiceTypes((serviceVersion) => { { startPosition, maxBatchSize: data.length, - } + }, ); await producerClient.sendBatch(data, { partitionId }); @@ -616,7 +616,7 @@ testWithServiceTypes((serviceVersion) => { throw new Error("Test Failure"); } catch (err: any) { err.message.should.equal( - "The partitionId (0) and partitionKey (1) cannot both be specified." + "The partitionId (0) and partitionKey (1) cannot both be specified.", ); } }); @@ -630,7 +630,7 @@ testWithServiceTypes((serviceVersion) => { throw new Error("Test failure"); } catch (error: any) { error.message.should.equal( - "The partitionId (0) and partitionKey (boo) cannot both be specified." + "The partitionId (0) and partitionKey (boo) cannot both be specified.", ); } }); @@ -645,7 +645,7 @@ testWithServiceTypes((serviceVersion) => { throw new Error("Test failure"); } catch (error: any) { error.message.should.equal( - "The partitionId (0) and partitionKey (boo) cannot both be specified." + "The partitionId (0) and partitionKey (boo) cannot both be specified.", ); } }); @@ -660,7 +660,7 @@ testWithServiceTypes((serviceVersion) => { throw new Error("Test failure"); } catch (error: any) { error.message.should.equal( - "The partitionId (1) and partitionKey (0) cannot both be specified." + "The partitionId (1) and partitionKey (0) cannot both be specified.", ); } }); @@ -671,7 +671,7 @@ testWithServiceTypes((serviceVersion) => { throw new Error("Test Failure"); } catch (err: any) { err.message.should.match( - /.*Max message size \((\d+) bytes\) is greater than maximum message size \((\d+) bytes\) on the AMQP sender link.*/gi + /.*Max message size \((\d+) bytes\) is greater than maximum message size \((\d+) bytes\) on the AMQP sender link.*/gi, ); } }); @@ -701,7 +701,7 @@ testWithServiceTypes((serviceVersion) => { throw new Error("Test failure"); } catch (err: any) { err.message.should.equal( - "The partitionKey (bar) set on sendBatch does not match the partitionKey (foo) set when creating the batch." + "The partitionKey (bar) set on sendBatch does not match the partitionKey (foo) set when creating the batch.", ); } }); @@ -715,7 +715,7 @@ testWithServiceTypes((serviceVersion) => { throw new Error("Test failure"); } catch (err: any) { err.message.should.equal( - "The partitionKey (bar) set on sendBatch does not match the partitionKey (undefined) set when creating the batch." + "The partitionKey (bar) set on sendBatch does not match the partitionKey (undefined) set when creating the batch.", ); } }); @@ -729,7 +729,7 @@ testWithServiceTypes((serviceVersion) => { throw new Error("Test failure"); } catch (err: any) { err.message.should.equal( - "The partitionId (0) set on sendBatch does not match the partitionId (1) set when creating the batch." + "The partitionId (0) set on sendBatch does not match the partitionId (1) set when creating the batch.", ); } }); @@ -743,7 +743,7 @@ testWithServiceTypes((serviceVersion) => { throw new Error("Test failure"); } catch (err: any) { err.message.should.equal( - "The partitionId (0) set on sendBatch does not match the partitionId (undefined) set when creating the batch." + "The partitionId (0) set on sendBatch does not match the partitionId (undefined) set when creating the batch.", ); } }); @@ -798,7 +798,7 @@ testWithServiceTypes((serviceVersion) => { throw new Error("Test failure"); } catch (err: any) { err.message.should.equal( - "The partitionId (0) and partitionKey (foo) cannot both be specified." + "The partitionId (0) and partitionKey (foo) cannot both be specified.", ); } }); @@ -814,7 +814,7 @@ testWithServiceTypes((serviceVersion) => { throw new Error("Test failure"); } catch (err: any) { err.message.should.equal( - "The partitionId (0) and partitionKey (foo) cannot both be specified." + "The partitionId (0) and partitionKey (foo) cannot both be specified.", ); } }); @@ -830,7 +830,7 @@ testWithServiceTypes((serviceVersion) => { throw new Error("Test failure"); } catch (err: any) { err.message.should.equal( - "The partitionId (0) and partitionKey (0) cannot both be specified." + "The partitionId (0) and partitionKey (0) cannot both be specified.", ); } }); @@ -850,7 +850,7 @@ testWithServiceTypes((serviceVersion) => { should.exist(err); should.equal(err.code, "MessageTooLargeError"); err.message.should.match( - /.*The received message \(delivery-id:(\d+), size:(\d+) bytes\) exceeds the limit \((\d+) bytes\) currently allowed on the link\..*/gi + /.*The received message \(delivery-id:(\d+), size:(\d+) bytes\) exceeds the limit \((\d+) bytes\) currently allowed on the link\..*/gi, ); } }); @@ -871,7 +871,7 @@ testWithServiceTypes((serviceVersion) => { debug(`>>>> Received error for invalid partition id "${id}" - `, err); should.exist(err); err.message.should.match( - /.*The specified partition is invalid for an EventHub partition sender or receiver.*/gi + /.*The specified partition is invalid for an EventHub partition sender or receiver.*/gi, ); } }); diff --git a/sdk/eventhub/event-hubs/test/internal/transformEventsForSend.spec.ts b/sdk/eventhub/event-hubs/test/internal/transformEventsForSend.spec.ts index 61d030b6619c..e3e62564c9e7 100644 --- a/sdk/eventhub/event-hubs/test/internal/transformEventsForSend.spec.ts +++ b/sdk/eventhub/event-hubs/test/internal/transformEventsForSend.spec.ts @@ -48,11 +48,11 @@ testWithServiceTypes((serviceVersion) => { before("validate environment", function (): void { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -80,7 +80,7 @@ testWithServiceTypes((serviceVersion) => { should.equal( encodedMessage.byteLength, batch.sizeInBytes, - "Batch size and encodedMessage size should match." + "Batch size and encodedMessage size should match.", ); // Ensure that events in the encodedMessage don't have idempotent publishing message annotations. @@ -88,17 +88,17 @@ testWithServiceTypes((serviceVersion) => { for (const rheaMessage of rheaMessages) { should.not.exist( rheaMessage.message_annotations?.[idempotentProducerAmqpPropertyNames.epoch], - "Idempotent epoch annotation should not exist on event." + "Idempotent epoch annotation should not exist on event.", ); should.not.exist( rheaMessage.message_annotations?.[idempotentProducerAmqpPropertyNames.producerId], - "Idempotent producerId annotation should not exist on event." + "Idempotent producerId annotation should not exist on event.", ); should.not.exist( rheaMessage.message_annotations?.[ idempotentProducerAmqpPropertyNames.producerSequenceNumber ], - "Idempotent producerSequenceNumber annotation should not exist on event." + "Idempotent producerSequenceNumber annotation should not exist on event.", ); } }); @@ -134,7 +134,7 @@ testWithServiceTypes((serviceVersion) => { should.equal( encodedMessage.byteLength, batch.sizeInBytes, - "Batch size and encodedMessage size should match." + "Batch size and encodedMessage size should match.", ); // Ensure that events in the encodedMessage have idempotent publishing message annotations. @@ -144,19 +144,19 @@ testWithServiceTypes((serviceVersion) => { should.equal( rheaMessage.message_annotations![idempotentProducerAmqpPropertyNames.epoch], publishingProps.ownerLevel, - "Idempotent epoch annotation should match publishingProps.epoch on event." + "Idempotent epoch annotation should match publishingProps.epoch on event.", ); should.equal( rheaMessage.message_annotations![idempotentProducerAmqpPropertyNames.producerId], publishingProps.producerGroupId, - "Idempotent producerId annotation should match publishingProps.producerGroupId on event." + "Idempotent producerId annotation should match publishingProps.producerGroupId on event.", ); should.equal( rheaMessage.message_annotations![ idempotentProducerAmqpPropertyNames.producerSequenceNumber ], startingSequenceNumber + i, - "Idempotent producerSequenceNumber annotation on event should be consecutive after lastPublishedSequenceNumber." + "Idempotent producerSequenceNumber annotation on event should be consecutive after lastPublishedSequenceNumber.", ); } }); @@ -185,14 +185,14 @@ testWithServiceTypes((serviceVersion) => { should.equal( Buffer.isBuffer(encodedMessage), true, - "Expected events to be encoded as a binary buffer." + "Expected events to be encoded as a binary buffer.", ); // Ensure that events aren't annotated. for (const event of events as EventDataInternal[]) { should.not.exist( event[PENDING_PUBLISH_SEQ_NUM_SYMBOL], - "Expected event to lack a pending publish sequence number." + "Expected event to lack a pending publish sequence number.", ); should.not.exist(event.properties, "Expected event to lack properties."); } @@ -202,17 +202,17 @@ testWithServiceTypes((serviceVersion) => { for (const rheaMessage of rheaMessages) { should.not.exist( rheaMessage.message_annotations?.[idempotentProducerAmqpPropertyNames.epoch], - "Idempotent epoch annotation should not exist on event." + "Idempotent epoch annotation should not exist on event.", ); should.not.exist( rheaMessage.message_annotations?.[idempotentProducerAmqpPropertyNames.producerId], - "Idempotent producerId annotation should not exist on event." + "Idempotent producerId annotation should not exist on event.", ); should.not.exist( rheaMessage.message_annotations?.[ idempotentProducerAmqpPropertyNames.producerSequenceNumber ], - "Idempotent producerSequenceNumber annotation should not exist on event." + "Idempotent producerSequenceNumber annotation should not exist on event.", ); } }); @@ -234,7 +234,7 @@ testWithServiceTypes((serviceVersion) => { should.equal( Buffer.isBuffer(encodedMessage), true, - "Expected events to be encoded as a binary buffer." + "Expected events to be encoded as a binary buffer.", ); // Ensure that events aren't annotated. @@ -243,7 +243,7 @@ testWithServiceTypes((serviceVersion) => { should.equal( event[PENDING_PUBLISH_SEQ_NUM_SYMBOL], startingSequenceNumber + i, - "Expected event have a pending publish sequence number." + "Expected event have a pending publish sequence number.", ); should.not.exist(event.properties, "Expected event to lack properties."); } @@ -255,19 +255,19 @@ testWithServiceTypes((serviceVersion) => { should.equal( rheaMessage.message_annotations![idempotentProducerAmqpPropertyNames.epoch], publishingProps.ownerLevel, - "Idempotent epoch annotation should match publishingProps.epoch on event." + "Idempotent epoch annotation should match publishingProps.epoch on event.", ); should.equal( rheaMessage.message_annotations![idempotentProducerAmqpPropertyNames.producerId], publishingProps.producerGroupId, - "Idempotent producerId annotation should match publishingProps.producerGroupId on event." + "Idempotent producerId annotation should match publishingProps.producerGroupId on event.", ); should.equal( rheaMessage.message_annotations![ idempotentProducerAmqpPropertyNames.producerSequenceNumber ], startingSequenceNumber + i, - "Idempotent producerSequenceNumber annotation on event should be consecutive after lastPublishedSequenceNumber." + "Idempotent producerSequenceNumber annotation on event should be consecutive after lastPublishedSequenceNumber.", ); } }); @@ -293,7 +293,7 @@ testWithServiceTypes((serviceVersion) => { should.equal( Buffer.isBuffer(encodedMessage), true, - "Expected events to be encoded as a binary buffer." + "Expected events to be encoded as a binary buffer.", ); // Ensure that events aren't annotated. @@ -301,7 +301,7 @@ testWithServiceTypes((serviceVersion) => { const event = events[i] as EventDataInternal; should.not.exist( event[PENDING_PUBLISH_SEQ_NUM_SYMBOL], - "Expected event to lack a pending publish sequence number." + "Expected event to lack a pending publish sequence number.", ); should.not.exist(event.properties, "Expected event to lack properties."); } @@ -313,7 +313,7 @@ testWithServiceTypes((serviceVersion) => { should.equal( rheaMessage.application_properties![TRACEPARENT_PROPERTY], `some-span-probably-#${i}`, - "Expected event to have TRACEPARENT_PROPERTY." + "Expected event to have TRACEPARENT_PROPERTY.", ); } }); diff --git a/sdk/eventhub/event-hubs/test/public/amqpAnnotatedMessage.spec.ts b/sdk/eventhub/event-hubs/test/public/amqpAnnotatedMessage.spec.ts index 669842d49e72..1bdc3631b764 100644 --- a/sdk/eventhub/event-hubs/test/public/amqpAnnotatedMessage.spec.ts +++ b/sdk/eventhub/event-hubs/test/public/amqpAnnotatedMessage.spec.ts @@ -48,11 +48,11 @@ testWithServiceTypes((serviceVersion) => { before("validate environment", function (): void { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -61,7 +61,7 @@ testWithServiceTypes((serviceVersion) => { consumerClient = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); }); @@ -119,14 +119,14 @@ testWithServiceTypes((serviceVersion) => { }, { startPosition: startingPositions, - } + }, ); }); } async function sendEvents( messages: AmqpAnnotatedMessage[], - { useBatch }: { useBatch: boolean } + { useBatch }: { useBatch: boolean }, ) { if (!useBatch) { return producerClient.sendBatch(messages); @@ -152,30 +152,30 @@ testWithServiceTypes((serviceVersion) => { should.equal( event.getRawAmqpMessage().messageAnnotations!["propMsgAnnotate"], testMessage.messageAnnotations!["propMsgAnnotate"], - "Unexpected messageAnnotations on the received event." + "Unexpected messageAnnotations on the received event.", ); assert.deepEqualExcluding( event.getRawAmqpMessage(), testMessage, ["deliveryAnnotations", "body", "messageAnnotations", "header", "properties"], - "Unexpected on the AmqpAnnotatedMessage" + "Unexpected on the AmqpAnnotatedMessage", ); assert.deepEqualExcluding( event.getRawAmqpMessage().footer!, testMessage.footer!, ["deliveryCount"], - "Unexpected header on the AmqpAnnotatedMessage" + "Unexpected header on the AmqpAnnotatedMessage", ); assert.deepEqualExcluding( event.getRawAmqpMessage().properties!, testMessage.properties!, ["creationTime", "absoluteExpiryTime", "groupId"], - "Unexpected properties on the AmqpAnnotatedMessage" + "Unexpected properties on the AmqpAnnotatedMessage", ); assert.equal( event.getRawAmqpMessage().properties!.groupId, testMessage.properties!.groupId, - "Unexpected session-id on the AmqpAnnotatedMessage" + "Unexpected session-id on the AmqpAnnotatedMessage", ); }); @@ -190,20 +190,20 @@ testWithServiceTypes((serviceVersion) => { bodyType: "value", }, ], - { useBatch } + { useBatch }, ); const event = await receiveEvent(startingPositions); assert.deepEqual( event.getRawAmqpMessage().bodyType, "value", - `Should be identified as a value: ${valueType.toString()}` + `Should be identified as a value: ${valueType.toString()}`, ); assert.deepEqual( event.body, valueType, - `Deserialized body should be equal: ${valueType.toString()}` + `Deserialized body should be equal: ${valueType.toString()}`, ); } }); @@ -223,20 +223,20 @@ testWithServiceTypes((serviceVersion) => { bodyType: "sequence", }, ], - { useBatch } + { useBatch }, ); const event = await receiveEvent(startingPositions); assert.deepEqual( event.getRawAmqpMessage().bodyType, "sequence", - `Should be identified as a value: ${sequenceType.toString()}` + `Should be identified as a value: ${sequenceType.toString()}`, ); assert.deepEqual( event.body, sequenceType, - `Deserialized body should be equal: ${sequenceType.toString()}` + `Deserialized body should be equal: ${sequenceType.toString()}`, ); } }); @@ -255,7 +255,7 @@ testWithServiceTypes((serviceVersion) => { bodyType: "data", }, ], - { useBatch } + { useBatch }, ); const event = await receiveEvent(startingPositions); @@ -263,12 +263,12 @@ testWithServiceTypes((serviceVersion) => { assert.deepEqual( event.getRawAmqpMessage().bodyType, "data", - `Should be identified as data: ${dataType.toString()}` + `Should be identified as data: ${dataType.toString()}`, ); assert.deepEqual( event.body, dataType, - `Deserialized body should be equal: : ${dataType.toString()}` + `Deserialized body should be equal: : ${dataType.toString()}`, ); } }); @@ -292,7 +292,7 @@ testWithServiceTypes((serviceVersion) => { bodyType: expectedBodyType, }, ], - { useBatch } + { useBatch }, ); const event = await receiveEvent(startingPositions); diff --git a/sdk/eventhub/event-hubs/test/public/auth.spec.ts b/sdk/eventhub/event-hubs/test/public/auth.spec.ts index 57c87c1239ef..734b2adef132 100644 --- a/sdk/eventhub/event-hubs/test/public/auth.spec.ts +++ b/sdk/eventhub/event-hubs/test/public/auth.spec.ts @@ -44,11 +44,11 @@ testWithServiceTypes((serviceVersion, onVersions) => { before(() => { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -69,14 +69,14 @@ testWithServiceTypes((serviceVersion, onVersions) => { it("EventHubConsumerClient $management calls", async () => { const namedKeyCredential = new AzureNamedKeyCredential( sharedAccessKeyName!, - sharedAccessKey! + sharedAccessKey!, ); const consumerClient = new EventHubConsumerClient( "$Default", fullyQualifiedNamespace, service.path, - namedKeyCredential + namedKeyCredential, ); const properties = await consumerClient.getEventHubProperties(); @@ -102,7 +102,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { it("EventHubConsumerClient receive calls", async () => { const namedKeyCredential = new AzureNamedKeyCredential( sharedAccessKeyName!, - sharedAccessKey! + sharedAccessKey!, ); const consumerClient = new EventHubConsumerClient( @@ -114,7 +114,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { retryOptions: { maxRetries: 0, }, - } + }, ); await new Promise((resolve, reject) => { @@ -134,7 +134,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { (err: any) => { if (err.code !== "UnauthorizedError") { reject( - new Error(`Step 2 failed. Expected ${err.code} to equal "UnauthorizedError".`) + new Error(`Step 2 failed. Expected ${err.code} to equal "UnauthorizedError".`), ); } // Rotate the credentials back to valid values. @@ -164,7 +164,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { }, { maxWaitTimeInSeconds: 5, - } + }, ); }); @@ -174,7 +174,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { it("EventHubProducerClient send calls", async () => { const namedKeyCredential = new AzureNamedKeyCredential( sharedAccessKeyName!, - sharedAccessKey! + sharedAccessKey!, ); const producerClient = new EventHubProducerClient( @@ -185,7 +185,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { retryOptions: { maxRetries: 0, }, - } + }, ); // The 1st sendBatch is called with valid credentials, so it should succeed. @@ -239,7 +239,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { retryOptions: { maxRetries: 0, }, - } + }, ); const properties = await consumerClient.getEventHubProperties(); @@ -247,7 +247,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { // Rotate credential to invalid value. sasCredential.update( - `SharedAccessSignature sr=fake&sig=foo&se=${Date.now() / 1000}&skn=FakeKey` + `SharedAccessSignature sr=fake&sig=foo&se=${Date.now() / 1000}&skn=FakeKey`, ); try { await consumerClient.getEventHubProperties(); @@ -276,7 +276,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { retryOptions: { maxRetries: 0, }, - } + }, ); await new Promise((resolve, reject) => { @@ -289,7 +289,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { } // Rotate credentials to invalid values and fast forward past the token refresh. sasCredential.update( - `SharedAccessSignature sr=fake&sig=foo&se=${Date.now() / 1000}&skn=FakeKey` + `SharedAccessSignature sr=fake&sig=foo&se=${Date.now() / 1000}&skn=FakeKey`, ); clock.tick(1000 * 60 * 45); }, @@ -298,7 +298,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { async (err: any) => { if (err.code !== "UnauthorizedError") { reject( - new Error(`Step 2 failed. Expected ${err.code} to equal "UnauthorizedError".`) + new Error(`Step 2 failed. Expected ${err.code} to equal "UnauthorizedError".`), ); } // Rotate the credentials back to valid values. @@ -326,7 +326,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { }, { maxWaitTimeInSeconds: 5, - } + }, ); }); @@ -344,7 +344,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { retryOptions: { maxRetries: 0, }, - } + }, ); // The 1st sendBatch is called with valid credentials, so it should succeed. @@ -352,7 +352,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { // Rotate credential to invalid value. sasCredential.update( - `SharedAccessSignature sr=fake&sig=foo&se=${Date.now() / 1000}&skn=FakeKey` + `SharedAccessSignature sr=fake&sig=foo&se=${Date.now() / 1000}&skn=FakeKey`, ); // Fast forward through time to after the token refresh. clock.tick(1000 * 60 * 45); diff --git a/sdk/eventhub/event-hubs/test/public/cancellation.spec.ts b/sdk/eventhub/event-hubs/test/public/cancellation.spec.ts index a20cdce7f7b1..8676d95ef07c 100644 --- a/sdk/eventhub/event-hubs/test/public/cancellation.spec.ts +++ b/sdk/eventhub/event-hubs/test/public/cancellation.spec.ts @@ -34,11 +34,11 @@ testWithServiceTypes((serviceVersion) => { before("validate environment", () => { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -71,7 +71,7 @@ testWithServiceTypes((serviceVersion) => { consumerClient = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); }); diff --git a/sdk/eventhub/event-hubs/test/public/eventData.spec.ts b/sdk/eventhub/event-hubs/test/public/eventData.spec.ts index 10dbf2b26497..e0fe541000e9 100644 --- a/sdk/eventhub/event-hubs/test/public/eventData.spec.ts +++ b/sdk/eventhub/event-hubs/test/public/eventData.spec.ts @@ -46,11 +46,11 @@ testWithServiceTypes((serviceVersion) => { before("validate environment", function (): void { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -59,7 +59,7 @@ testWithServiceTypes((serviceVersion) => { consumerClient = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); }); @@ -104,7 +104,7 @@ testWithServiceTypes((serviceVersion) => { }, { startPosition: startingPositions, - } + }, ); }); } @@ -117,7 +117,7 @@ testWithServiceTypes((serviceVersion) => { const filer = { body: "b", messageId: randomUUID() }; await producerClient.sendBatch([filer]); } - } + }, ); it(`props`, async () => { const startingPositions = await getStartingPositionsForTests(consumerClient); @@ -129,17 +129,17 @@ testWithServiceTypes((serviceVersion) => { should.equal( event.contentType, testEvent.contentType, - "Unexpected contentType on the received event." + "Unexpected contentType on the received event.", ); should.equal( event.correlationId, testEvent.correlationId, - "Unexpected correlationId on the received event." + "Unexpected correlationId on the received event.", ); should.equal( event.messageId, testEvent.messageId, - "Unexpected messageId on the received event." + "Unexpected messageId on the received event.", ); }); diff --git a/sdk/eventhub/event-hubs/test/public/eventHubBufferedProducerClient.spec.ts b/sdk/eventhub/event-hubs/test/public/eventHubBufferedProducerClient.spec.ts index 79835275fae3..58b78127afd5 100644 --- a/sdk/eventhub/event-hubs/test/public/eventHubBufferedProducerClient.spec.ts +++ b/sdk/eventhub/event-hubs/test/public/eventHubBufferedProducerClient.spec.ts @@ -43,11 +43,11 @@ testWithServiceTypes((serviceVersion) => { before(() => { assert.exists( connectionString, - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); assert.exists( eventHubName, - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -193,7 +193,7 @@ testWithServiceTypes((serviceVersion) => { assert.deepEqual( resultEnqueued, testEvents, - "Expected enqueued events to match test events." + "Expected enqueued events to match test events.", ); assert.deepEqual(resultSuccess, testEvents, "Expected sent events to match test events."); }); diff --git a/sdk/eventhub/event-hubs/test/public/eventHubConsumerClient.spec.ts b/sdk/eventhub/event-hubs/test/public/eventHubConsumerClient.spec.ts index bb0943846cc4..0fd913704162 100644 --- a/sdk/eventhub/event-hubs/test/public/eventHubConsumerClient.spec.ts +++ b/sdk/eventhub/event-hubs/test/public/eventHubConsumerClient.spec.ts @@ -53,11 +53,11 @@ testWithServiceTypes((serviceVersion) => { before(() => { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -66,7 +66,7 @@ testWithServiceTypes((serviceVersion) => { consumerClient = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); partitionIds = await producerClient.getPartitionIds({}); }); @@ -105,7 +105,7 @@ testWithServiceTypes((serviceVersion) => { service.path, { identifier, - } + }, ); client.identifier.should.equal(identifier, "The client identifier wasn't set correctly"); }); @@ -116,7 +116,7 @@ testWithServiceTypes((serviceVersion) => { const client = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); // Spin up multiple subscriptions. @@ -129,7 +129,7 @@ testWithServiceTypes((serviceVersion) => { async processEvents() { /* no-op for test */ }, - }) + }), ); } @@ -148,7 +148,7 @@ testWithServiceTypes((serviceVersion) => { client["_subscriptions"].size.should.equal( 0, - "Some dangling subscriptions are still hanging around!" + "Some dangling subscriptions are still hanging around!", ); }); @@ -156,18 +156,18 @@ testWithServiceTypes((serviceVersion) => { const client = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); const startingPositions = await getStartingPositionsForTests(client); let waitForInitializeResolver: () => void; const waitForInitialize = new Promise( - (resolve) => (waitForInitializeResolver = resolve) + (resolve) => (waitForInitializeResolver = resolve), ); let waitForCloseResolver: (reason: CloseReason) => void; const waitForClose = new Promise( - (resolve) => (waitForCloseResolver = resolve) + (resolve) => (waitForCloseResolver = resolve), ); let unexpectedError: Error | undefined; let eventsWereReceived = false; @@ -190,7 +190,7 @@ testWithServiceTypes((serviceVersion) => { }, { startPosition: startingPositions, - } + }, ); // Assert that the subscription is running. @@ -207,7 +207,7 @@ testWithServiceTypes((serviceVersion) => { const closeReason = await waitForClose; closeReason.should.equal( CloseReason.Shutdown, - "Subscription closed for an unexpected reason." + "Subscription closed for an unexpected reason.", ); // Ensure no errors were thrown. @@ -221,7 +221,7 @@ testWithServiceTypes((serviceVersion) => { client["_subscriptions"].size.should.equal( 0, - "Some dangling subscriptions are still hanging around!" + "Some dangling subscriptions are still hanging around!", ); }); }); @@ -232,12 +232,12 @@ testWithServiceTypes((serviceVersion) => { const consumerClient1 = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); const consumerClient2 = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); clients.push(consumerClient1, consumerClient2); @@ -287,7 +287,7 @@ testWithServiceTypes((serviceVersion) => { { maxBatchSize: 1, maxWaitTimeInSeconds: 1, - } + }, ); await loopUntil({ @@ -311,13 +311,13 @@ testWithServiceTypes((serviceVersion) => { EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, service.path, - { loadBalancingOptions: { updateIntervalInMs: 1000 } } + { loadBalancingOptions: { updateIntervalInMs: 1000 } }, ); const consumerClient2 = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, service.path, - { loadBalancingOptions: { updateIntervalInMs: 1000 } } + { loadBalancingOptions: { updateIntervalInMs: 1000 } }, ); clients.push(consumerClient1, consumerClient2); @@ -396,7 +396,7 @@ testWithServiceTypes((serviceVersion) => { const sub1CloseHandlersCalled = Boolean( partitionIds.filter((id) => { return partitionHandlerCalls[id].close > 0; - }).length === partitionIds.length + }).length === partitionIds.length, ); return partitionsReadFromSub2.size === partitionIds.length && sub1CloseHandlersCalled; }, @@ -424,11 +424,11 @@ testWithServiceTypes((serviceVersion) => { for (const id of partitionIds) { partitionHandlerCalls[id].initialize.should.be.greaterThan( 1, - `Initialize on partition ${id} was not called more than 1 time.` + `Initialize on partition ${id} was not called more than 1 time.`, ); partitionHandlerCalls[id].close.should.be.greaterThan( 1, - `Close on partition ${id} was not called more than 1 time.` + `Close on partition ${id} was not called more than 1 time.`, ); } }); @@ -445,7 +445,7 @@ testWithServiceTypes((serviceVersion) => { logger.verbose as debug.Debugger, logger.verbose as debug.Debugger, logger.verbose as debug.Debugger, - ] + ], ); const tester = new ReceivedMessagesTester(["0"], false); @@ -454,8 +454,8 @@ testWithServiceTypes((serviceVersion) => { new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString!, - service.path - ) + service.path, + ), ); const startPosition = await getStartingPositionsForTests(clients[0]); @@ -476,7 +476,7 @@ testWithServiceTypes((serviceVersion) => { logger.verbose as debug.Debugger, logger.verbose as debug.Debugger, logger.verbose as debug.Debugger, - ] + ], ); const tester = new ReceivedMessagesTester(partitionIds, false); @@ -485,8 +485,8 @@ testWithServiceTypes((serviceVersion) => { new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString!, - service.path - ) + service.path, + ), ); const startPosition = await getStartingPositionsForTests(clients[0]); @@ -504,7 +504,7 @@ testWithServiceTypes((serviceVersion) => { ...partitionIds.map( (partitionId) => `EventHubConsumerClient subscribing to specific partition (${partitionId}), no checkpoint store.`, - `Abandoning owned partitions` + `Abandoning owned partitions`, ), ...partitionIds.map((partitionId) => `Single partition target: ${partitionId}`), ], @@ -512,7 +512,7 @@ testWithServiceTypes((serviceVersion) => { logger.verbose as debug.Debugger, logger.verbose as debug.Debugger, logger.verbose as debug.Debugger, - ] + ], ); const tester = new ReceivedMessagesTester(partitionIds, false); @@ -521,8 +521,8 @@ testWithServiceTypes((serviceVersion) => { new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString!, - service.path - ) + service.path, + ), ); const startPosition = await getStartingPositionsForTests(clients[0]); @@ -549,7 +549,7 @@ testWithServiceTypes((serviceVersion) => { logger.verbose as debug.Debugger, logger.verbose as debug.Debugger, logger.verbose as debug.Debugger, - ] + ], ); const checkpointStore = new TestInMemoryCheckpointStore(); @@ -560,9 +560,9 @@ testWithServiceTypes((serviceVersion) => { service.connectionString!, service.path, // specifying your own checkpoint store activates the "production ready" code path that - checkpointStore + checkpointStore, // also uses the BalancedLoadBalancingStrategy - ) + ), ); const startPosition = await getStartingPositionsForTests(clients[0]); @@ -575,10 +575,10 @@ testWithServiceTypes((serviceVersion) => { new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString!, - service.path + service.path, // specifying your own checkpoint store activates the "production ready" code path that // also uses the BalancedLoadBalancingStrategy - ) + ), ); const subscriber2 = clients[1].subscribe(tester, { startPosition }); @@ -606,7 +606,7 @@ testWithServiceTypes((serviceVersion) => { logger.verbose as debug.Debugger, logger.verbose as debug.Debugger, logger.verbose as debug.Debugger, - ] + ], ); const checkpointStore = new TestInMemoryCheckpointStore(); @@ -621,8 +621,8 @@ testWithServiceTypes((serviceVersion) => { loadBalancingOptions: { strategy: "greedy", }, - } - ) + }, + ), ); const tester = new ReceivedMessagesTester(partitionIds, true); @@ -642,8 +642,8 @@ testWithServiceTypes((serviceVersion) => { loadBalancingOptions: { strategy: "greedy", }, - } - ) + }, + ), ); const subscriber2 = clients[1].subscribe(tester, { startPosition }); @@ -663,7 +663,7 @@ testWithServiceTypes((serviceVersion) => { const client = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); clients.push(client); @@ -701,7 +701,7 @@ testWithServiceTypes((serviceVersion) => { // Otherwise, we shouldn't see either called. initializeCalled.should.equal( closeCalled, - "processClose was not called the same number of times as processInitialize." + "processClose was not called the same number of times as processInitialize.", ); }); @@ -709,7 +709,7 @@ testWithServiceTypes((serviceVersion) => { const client = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); clients.push(client); @@ -747,7 +747,7 @@ testWithServiceTypes((serviceVersion) => { // Otherwise, we shouldn't see either called. initializeCalled.should.equal( closeCalled, - "processClose was not called the same number of times as processInitialize." + "processClose was not called the same number of times as processInitialize.", ); }); @@ -757,7 +757,7 @@ testWithServiceTypes((serviceVersion) => { const client = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - "Fake-Hub" + "Fake-Hub", ); let subscription: Subscription; @@ -785,7 +785,7 @@ testWithServiceTypes((serviceVersion) => { const client = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); let subscription: Subscription; @@ -829,7 +829,7 @@ testWithServiceTypes((serviceVersion) => { { startPosition: latestEventPosition, maxWaitTimeInSeconds: 0, // Set timeout of 0 to resolve the promise ASAP - } + }, ); }); await subscription!.close(); @@ -888,7 +888,7 @@ testWithServiceTypes((serviceVersion) => { { startPosition: latestEventPosition, maxWaitTimeInSeconds: 30, - } + }, ); }); await subscription!.close(); @@ -900,12 +900,12 @@ testWithServiceTypes((serviceVersion) => { should.equal( eventsReceived.length, eventsSentAfterSubscribe.length, - "Not received the same number of events that were sent." + "Not received the same number of events that were sent.", ); for (let i = 0; i < eventsSentAfterSubscribe.length; i++) { eventsReceived[i].body.should.equal(eventsSentAfterSubscribe[i].body); eventsReceived[i].properties!.stamp.should.equal( - eventsSentAfterSubscribe[i].properties!.stamp + eventsSentAfterSubscribe[i].properties!.stamp, ); } }); @@ -939,7 +939,7 @@ testWithServiceTypes((serviceVersion) => { { startPosition: { sequenceNumber: partitionInfo.lastEnqueuedSequenceNumber }, maxWaitTimeInSeconds: 30, - } + }, ); }); await subscription!.close(); @@ -951,12 +951,12 @@ testWithServiceTypes((serviceVersion) => { should.equal( eventsReceived.length, eventsSentAfterSubscribe.length, - "Not received the same number of events that were sent." + "Not received the same number of events that were sent.", ); for (let i = 0; i < eventsSentAfterSubscribe.length; i++) { eventsReceived[i].body.should.equal(eventsSentAfterSubscribe[i].body); eventsReceived[i].properties!.stamp.should.equal( - eventsSentAfterSubscribe[i].properties!.stamp + eventsSentAfterSubscribe[i].properties!.stamp, ); } }); @@ -977,12 +977,12 @@ testWithServiceTypes((serviceVersion) => { should.equal( data.length, 1, - "Expected 1 event sent right before subscribe call." + "Expected 1 event sent right before subscribe call.", ); should.equal( data[0].body, eventSentBeforeSubscribe.body, - "Should have received only the 1 event sent right before subscribe call." + "Should have received only the 1 event sent right before subscribe call.", ); await producerClient.sendBatch(eventsSentAfterSubscribe, { partitionId }); @@ -1004,7 +1004,7 @@ testWithServiceTypes((serviceVersion) => { isInclusive: true, }, maxWaitTimeInSeconds: 30, - } + }, ); }); await subscription!.close(); @@ -1012,13 +1012,13 @@ testWithServiceTypes((serviceVersion) => { should.equal( eventsReceived.length, eventsSentAfterSubscribe.length, - "Not received the same number of events that were sent." + "Not received the same number of events that were sent.", ); for (let i = 0; i < eventsSentAfterSubscribe.length; i++) { eventsReceived[i].body.should.equal(eventsSentAfterSubscribe[i].body); eventsReceived[i].properties!.stamp.should.equal( - eventsSentAfterSubscribe[i].properties!.stamp + eventsSentAfterSubscribe[i].properties!.stamp, ); } }); @@ -1052,7 +1052,7 @@ testWithServiceTypes((serviceVersion) => { { startPosition: { offset: partitionInfo.lastEnqueuedOffset }, maxWaitTimeInSeconds: 30, - } + }, ); }); await subscription!.close(); @@ -1064,12 +1064,12 @@ testWithServiceTypes((serviceVersion) => { should.equal( eventsReceived.length, eventsSentAfterSubscribe.length, - "Not received the same number of events that were sent." + "Not received the same number of events that were sent.", ); for (let i = 0; i < eventsSentAfterSubscribe.length; i++) { eventsReceived[i].body.should.equal(eventsSentAfterSubscribe[i].body); eventsReceived[i].properties!.stamp.should.equal( - eventsSentAfterSubscribe[i].properties!.stamp + eventsSentAfterSubscribe[i].properties!.stamp, ); } }); @@ -1090,12 +1090,12 @@ testWithServiceTypes((serviceVersion) => { should.equal( data.length, 1, - "Expected 1 event sent right before subscribe call." + "Expected 1 event sent right before subscribe call.", ); should.equal( data[0].body, eventSentBeforeSubscribe.body, - "Should have received only the 1 event sent right before subscribe call." + "Should have received only the 1 event sent right before subscribe call.", ); await producerClient.sendBatch(eventsSentAfterSubscribe, { @@ -1119,7 +1119,7 @@ testWithServiceTypes((serviceVersion) => { isInclusive: true, }, maxWaitTimeInSeconds: 30, - } + }, ); }); await subscription!.close(); @@ -1127,13 +1127,13 @@ testWithServiceTypes((serviceVersion) => { should.equal( eventsReceived.length, eventsSentAfterSubscribe.length, - "Not received the same number of events that were sent." + "Not received the same number of events that were sent.", ); for (let i = 0; i < eventsSentAfterSubscribe.length; i++) { eventsReceived[i].body.should.equal(eventsSentAfterSubscribe[i].body); eventsReceived[i].properties!.stamp.should.equal( - eventsSentAfterSubscribe[i].properties!.stamp + eventsSentAfterSubscribe[i].properties!.stamp, ); } }); @@ -1170,7 +1170,7 @@ testWithServiceTypes((serviceVersion) => { { startPosition: { enqueuedOn: partitionInfo.lastEnqueuedOnUtc }, maxWaitTimeInSeconds: 30, - } + }, ); }); await subscription!.close(); @@ -1182,12 +1182,12 @@ testWithServiceTypes((serviceVersion) => { should.equal( eventsReceived.length, eventsSentAfterSubscribe.length, - "Not received the same number of events that were sent." + "Not received the same number of events that were sent.", ); for (let i = 0; i < eventsSentAfterSubscribe.length; i++) { eventsReceived[i].body.should.equal(eventsSentAfterSubscribe[i].body); eventsReceived[i].properties!.stamp.should.equal( - eventsSentAfterSubscribe[i].properties!.stamp + eventsSentAfterSubscribe[i].properties!.stamp, ); } }); @@ -1214,7 +1214,7 @@ testWithServiceTypes((serviceVersion) => { should.exist(context.lastEnqueuedEventProperties); context.lastEnqueuedEventProperties!.offset!.should.equal(pInfo.lastEnqueuedOffset); context.lastEnqueuedEventProperties!.sequenceNumber!.should.equal( - pInfo.lastEnqueuedSequenceNumber + pInfo.lastEnqueuedSequenceNumber, ); context .lastEnqueuedEventProperties!.enqueuedOn!.getTime() @@ -1233,7 +1233,7 @@ testWithServiceTypes((serviceVersion) => { startPosition: earliestEventPosition, maxBatchSize: 1, trackLastEnqueuedEventProperties: true, - } + }, ); }); await subscription!.close(); @@ -1245,7 +1245,7 @@ testWithServiceTypes((serviceVersion) => { const badConsumerClient = new EventHubConsumerClient( "boo", service.connectionString, - service.path + service.path, ); let subscription: Subscription | undefined; const caughtErr = await new Promise((resolve) => { @@ -1292,7 +1292,7 @@ testWithServiceTypes((serviceVersion) => { [{ body: Uint8Array.from(data), contentType: "avro/binary+1234" }], { partitionId, - } + }, ); let subscription: Subscription; const receivedEvent = await new Promise((resolve, reject) => { @@ -1308,7 +1308,7 @@ testWithServiceTypes((serviceVersion) => { }, { startPosition: startingPositions, - } + }, ); }); await subscription!.close(); diff --git a/sdk/eventhub/event-hubs/test/public/hubruntime.spec.ts b/sdk/eventhub/event-hubs/test/public/hubruntime.spec.ts index cab67e410d67..2f9da60fdc17 100644 --- a/sdk/eventhub/event-hubs/test/public/hubruntime.spec.ts +++ b/sdk/eventhub/event-hubs/test/public/hubruntime.spec.ts @@ -53,11 +53,11 @@ testWithServiceTypes((serviceVersion) => { before("validate environment", function (): void { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -65,19 +65,19 @@ testWithServiceTypes((serviceVersion) => { debug("Creating the clients.."); clientMap.set( "EventHubBufferedProducerClient", - new EventHubBufferedProducerClient(service.connectionString, service.path) + new EventHubBufferedProducerClient(service.connectionString, service.path), ); clientMap.set( "EventHubConsumerClient", new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path - ) + service.path, + ), ); clientMap.set( "EventHubProducerClient", - new EventHubProducerClient(service.connectionString, service.path) + new EventHubProducerClient(service.connectionString, service.path), ); }); @@ -107,7 +107,7 @@ testWithServiceTypes((serviceVersion) => { const client = clientMap.get(clientType)!; await assert.supportsTracing( (options) => client.getPartitionIds(options), - ["ManagementClient.getEventHubProperties"] + ["ManagementClient.getEventHubProperties"], ); }); }); @@ -119,7 +119,7 @@ testWithServiceTypes((serviceVersion) => { hubRuntimeInfo.name.should.equal(service.path); hubRuntimeInfo.partitionIds.should.have.members( - arrayOfIncreasingNumbersFromZero(hubRuntimeInfo.partitionIds.length) + arrayOfIncreasingNumbersFromZero(hubRuntimeInfo.partitionIds.length), ); hubRuntimeInfo.createdOn.should.be.instanceof(Date); }); @@ -128,7 +128,7 @@ testWithServiceTypes((serviceVersion) => { const client = clientMap.get(clientType)!; await assert.supportsTracing( (options) => client.getEventHubProperties(options), - ["ManagementClient.getEventHubProperties"] + ["ManagementClient.getEventHubProperties"], ); }); }); @@ -142,7 +142,7 @@ testWithServiceTypes((serviceVersion) => { } catch (err: any) { (err as any).name.should.equal("TypeError"); (err as any).message.should.equal( - `getPartitionProperties called without required argument "partitionId"` + `getPartitionProperties called without required argument "partitionId"`, ); } }); @@ -182,7 +182,7 @@ testWithServiceTypes((serviceVersion) => { const client = clientMap.get(clientType)!; await assert.supportsTracing( (options) => client.getPartitionProperties("0", options), - ["ManagementClient.getPartitionProperties"] + ["ManagementClient.getPartitionProperties"], ); }); }); diff --git a/sdk/eventhub/event-hubs/test/public/node/client.spec.ts b/sdk/eventhub/event-hubs/test/public/node/client.spec.ts index f0c2cab066fc..ee2d89b30154 100644 --- a/sdk/eventhub/event-hubs/test/public/node/client.spec.ts +++ b/sdk/eventhub/event-hubs/test/public/node/client.spec.ts @@ -39,19 +39,19 @@ testWithServiceTypes((serviceVersion) => { before("validate environment", function () { should.exist( env[EnvVarKeys.AZURE_CLIENT_ID], - "define AZURE_CLIENT_ID in your environment before running integration tests." + "define AZURE_CLIENT_ID in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.AZURE_TENANT_ID], - "define AZURE_TENANT_ID in your environment before running integration tests." + "define AZURE_TENANT_ID in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.AZURE_CLIENT_SECRET], - "define AZURE_CLIENT_SECRET in your environment before running integration tests." + "define AZURE_CLIENT_SECRET in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); // This is of the form .servicebus.windows.net endpoint = (env.EVENTHUB_CONNECTION_STRING.match("Endpoint=sb://(.*)/;") || "")[1]; @@ -81,7 +81,7 @@ testWithServiceTypes((serviceVersion) => { EventHubConsumerClient.defaultConsumerGroupName, endpoint, env.EVENTHUB_NAME, - credential + credential, ); should.equal(client.fullyQualifiedNamespace, endpoint); diff --git a/sdk/eventhub/event-hubs/test/public/node/disconnects.spec.ts b/sdk/eventhub/event-hubs/test/public/node/disconnects.spec.ts index 8fb84f0c9d77..edf289b2c1e5 100644 --- a/sdk/eventhub/event-hubs/test/public/node/disconnects.spec.ts +++ b/sdk/eventhub/event-hubs/test/public/node/disconnects.spec.ts @@ -33,11 +33,11 @@ testWithServiceTypes((serviceVersion, onVersions) => { before("validate environment", function (): void { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -46,7 +46,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { const client = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); const clientConnectionContext = client["_context"]; @@ -81,7 +81,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { const consumer = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); const producer = new EventHubProducerClient(service.connectionString, service.path); @@ -113,7 +113,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { should.equal( data.length, 1, - "Expected to receive 1 event in first processEvents invocation." + "Expected to receive 1 event in first processEvents invocation.", ); should.equal(data[0].body, eventSentBeforeDisconnect.body); originalConnectionId = clientConnectionContext.connectionId; @@ -126,13 +126,13 @@ testWithServiceTypes((serviceVersion, onVersions) => { should.equal( data.length, 0, - "Expected to receive 0 events in second processEvents invocation." + "Expected to receive 0 events in second processEvents invocation.", ); // The elapsed time since the last processEvents invocation should be >= maxWaitTimeInSeconds should.equal( Date.now() - firstInvocationEndTime >= maxWaitTimeInSeconds, true, - "Expected elapsed time between first and second processEvents invocations to be >= maxWaitTimeInSeconds." + "Expected elapsed time between first and second processEvents invocations to be >= maxWaitTimeInSeconds.", ); const newConnectionId = clientConnectionContext.connectionId; should.not.equal(originalConnectionId, newConnectionId); @@ -143,7 +143,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { should.equal( data.length, 1, - "Expected to receive 1 event in third processEvents invocation." + "Expected to receive 1 event in third processEvents invocation.", ); should.equal(data[0].body, eventSentAfterDisconnect.body); const newConnectionId = clientConnectionContext.connectionId; @@ -160,7 +160,7 @@ testWithServiceTypes((serviceVersion, onVersions) => { sequenceNumber: partitionProperties.lastEnqueuedSequenceNumber, }, maxWaitTimeInSeconds, - } + }, ); }); await subscription!.close(); diff --git a/sdk/eventhub/event-hubs/test/public/receiver.spec.ts b/sdk/eventhub/event-hubs/test/public/receiver.spec.ts index f89ae9dea645..1b7e4d801ff5 100644 --- a/sdk/eventhub/event-hubs/test/public/receiver.spec.ts +++ b/sdk/eventhub/event-hubs/test/public/receiver.spec.ts @@ -45,11 +45,11 @@ testWithServiceTypes((serviceVersion) => { before("validate environment", async function (): Promise { should.exist( env[EnvVarKeys.EVENTHUB_CONNECTION_STRING], - "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests." + "define EVENTHUB_CONNECTION_STRING in your environment before running integration tests.", ); should.exist( env[EnvVarKeys.EVENTHUB_NAME], - "define EVENTHUB_NAME in your environment before running integration tests." + "define EVENTHUB_NAME in your environment before running integration tests.", ); }); @@ -58,7 +58,7 @@ testWithServiceTypes((serviceVersion) => { consumerClient = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, service.connectionString, - service.path + service.path, ); partitionIds = await producerClient.getPartitionIds({}); }); @@ -86,7 +86,7 @@ testWithServiceTypes((serviceVersion) => { { startPosition: latestEventPosition, maxWaitTimeInSeconds: 0, // Set timeout of 0 to resolve the promise ASAP - } + }, ); }); await subscription!.close(); @@ -145,7 +145,7 @@ testWithServiceTypes((serviceVersion) => { { startPosition: latestEventPosition, maxWaitTimeInSeconds: 30, - } + }, ); }); await subscription!.close(); @@ -157,12 +157,12 @@ testWithServiceTypes((serviceVersion) => { should.equal( eventsReceived.length, eventsSentAfterSubscribe.length, - "Not received the same number of events that were sent." + "Not received the same number of events that were sent.", ); for (let i = 0; i < eventsSentAfterSubscribe.length; i++) { eventsReceived[i].body.should.equal(eventsSentAfterSubscribe[i].body); eventsReceived[i].properties!.stamp.should.equal( - eventsSentAfterSubscribe[i].properties!.stamp + eventsSentAfterSubscribe[i].properties!.stamp, ); } }); @@ -196,7 +196,7 @@ testWithServiceTypes((serviceVersion) => { { startPosition: { sequenceNumber: partitionInfo.lastEnqueuedSequenceNumber }, maxWaitTimeInSeconds: 30, - } + }, ); }); await subscription!.close(); @@ -208,12 +208,12 @@ testWithServiceTypes((serviceVersion) => { should.equal( eventsReceived.length, eventsSentAfterSubscribe.length, - "Not received the same number of events that were sent." + "Not received the same number of events that were sent.", ); for (let i = 0; i < eventsSentAfterSubscribe.length; i++) { eventsReceived[i].body.should.equal(eventsSentAfterSubscribe[i].body); eventsReceived[i].properties!.stamp.should.equal( - eventsSentAfterSubscribe[i].properties!.stamp + eventsSentAfterSubscribe[i].properties!.stamp, ); } }); @@ -234,12 +234,12 @@ testWithServiceTypes((serviceVersion) => { should.equal( data.length, 1, - "Expected 1 event sent right before subscribe call." + "Expected 1 event sent right before subscribe call.", ); should.equal( data[0].body, eventSentBeforeSubscribe.body, - "Should have received only the 1 event sent right before subscribe call." + "Should have received only the 1 event sent right before subscribe call.", ); await producerClient.sendBatch(eventsSentAfterSubscribe, { partitionId }); @@ -261,7 +261,7 @@ testWithServiceTypes((serviceVersion) => { isInclusive: true, }, maxWaitTimeInSeconds: 30, - } + }, ); }); await subscription!.close(); @@ -269,13 +269,13 @@ testWithServiceTypes((serviceVersion) => { should.equal( eventsReceived.length, eventsSentAfterSubscribe.length, - "Not received the same number of events that were sent." + "Not received the same number of events that were sent.", ); for (let i = 0; i < eventsSentAfterSubscribe.length; i++) { eventsReceived[i].body.should.equal(eventsSentAfterSubscribe[i].body); eventsReceived[i].properties!.stamp.should.equal( - eventsSentAfterSubscribe[i].properties!.stamp + eventsSentAfterSubscribe[i].properties!.stamp, ); } }); @@ -309,7 +309,7 @@ testWithServiceTypes((serviceVersion) => { { startPosition: { offset: partitionInfo.lastEnqueuedOffset }, maxWaitTimeInSeconds: 30, - } + }, ); }); await subscription!.close(); @@ -321,12 +321,12 @@ testWithServiceTypes((serviceVersion) => { should.equal( eventsReceived.length, eventsSentAfterSubscribe.length, - "Not received the same number of events that were sent." + "Not received the same number of events that were sent.", ); for (let i = 0; i < eventsSentAfterSubscribe.length; i++) { eventsReceived[i].body.should.equal(eventsSentAfterSubscribe[i].body); eventsReceived[i].properties!.stamp.should.equal( - eventsSentAfterSubscribe[i].properties!.stamp + eventsSentAfterSubscribe[i].properties!.stamp, ); } }); @@ -347,12 +347,12 @@ testWithServiceTypes((serviceVersion) => { should.equal( data.length, 1, - "Expected 1 event sent right before subscribe call." + "Expected 1 event sent right before subscribe call.", ); should.equal( data[0].body, eventSentBeforeSubscribe.body, - "Should have received only the 1 event sent right before subscribe call." + "Should have received only the 1 event sent right before subscribe call.", ); await producerClient.sendBatch(eventsSentAfterSubscribe, { @@ -376,7 +376,7 @@ testWithServiceTypes((serviceVersion) => { isInclusive: true, }, maxWaitTimeInSeconds: 30, - } + }, ); }); await subscription!.close(); @@ -384,13 +384,13 @@ testWithServiceTypes((serviceVersion) => { should.equal( eventsReceived.length, eventsSentAfterSubscribe.length, - "Not received the same number of events that were sent." + "Not received the same number of events that were sent.", ); for (let i = 0; i < eventsSentAfterSubscribe.length; i++) { eventsReceived[i].body.should.equal(eventsSentAfterSubscribe[i].body); eventsReceived[i].properties!.stamp.should.equal( - eventsSentAfterSubscribe[i].properties!.stamp + eventsSentAfterSubscribe[i].properties!.stamp, ); } }); @@ -427,7 +427,7 @@ testWithServiceTypes((serviceVersion) => { { startPosition: { enqueuedOn: partitionInfo.lastEnqueuedOnUtc }, maxWaitTimeInSeconds: 30, - } + }, ); }); await subscription!.close(); @@ -439,12 +439,12 @@ testWithServiceTypes((serviceVersion) => { should.equal( eventsReceived.length, eventsSentAfterSubscribe.length, - "Not received the same number of events that were sent." + "Not received the same number of events that were sent.", ); for (let i = 0; i < eventsSentAfterSubscribe.length; i++) { eventsReceived[i].body.should.equal(eventsSentAfterSubscribe[i].body); eventsReceived[i].properties!.stamp.should.equal( - eventsSentAfterSubscribe[i].properties!.stamp + eventsSentAfterSubscribe[i].properties!.stamp, ); } }); @@ -471,7 +471,7 @@ testWithServiceTypes((serviceVersion) => { should.exist(context.lastEnqueuedEventProperties); context.lastEnqueuedEventProperties!.offset!.should.equal(pInfo.lastEnqueuedOffset); context.lastEnqueuedEventProperties!.sequenceNumber!.should.equal( - pInfo.lastEnqueuedSequenceNumber + pInfo.lastEnqueuedSequenceNumber, ); context .lastEnqueuedEventProperties!.enqueuedOn!.getTime() @@ -490,7 +490,7 @@ testWithServiceTypes((serviceVersion) => { startPosition: earliestEventPosition, maxBatchSize: 1, trackLastEnqueuedEventProperties: true, - } + }, ); }); await subscription!.close(); diff --git a/sdk/eventhub/event-hubs/test/public/utils/logHelpers.ts b/sdk/eventhub/event-hubs/test/public/utils/logHelpers.ts index 544c8dc799a7..66a4a7d0607a 100644 --- a/sdk/eventhub/event-hubs/test/public/utils/logHelpers.ts +++ b/sdk/eventhub/event-hubs/test/public/utils/logHelpers.ts @@ -13,7 +13,10 @@ export class LogTester { }[]; private _previousEnabledLoggers: string = ""; - constructor(private _expectedMessages: (string | RegExp)[], loggers: debugModule.Debugger[]) { + constructor( + private _expectedMessages: (string | RegExp)[], + loggers: debugModule.Debugger[], + ) { this._attachedLoggers = []; for (const logger of loggers) { diff --git a/sdk/eventhub/event-hubs/test/public/utils/receivedMessagesTester.ts b/sdk/eventhub/event-hubs/test/public/utils/receivedMessagesTester.ts index 9278b0768e1a..fc14cc8ceebf 100644 --- a/sdk/eventhub/event-hubs/test/public/utils/receivedMessagesTester.ts +++ b/sdk/eventhub/event-hubs/test/public/utils/receivedMessagesTester.ts @@ -32,7 +32,10 @@ export class ReceivedMessagesTester implements Required(); this.expectedMessageBodies = new Set(); this.done = false; @@ -63,7 +66,7 @@ export class ReceivedMessagesTester implements Required { const partitionIds = await client.getPartitionIds({}); const startPosition: { [partitionId: string]: EventPosition } = {}; @@ -74,7 +74,7 @@ export class SubscriptionHandlerForTests implements Required { const startTime = Date.now(); @@ -118,7 +118,7 @@ export class SubscriptionHandlerForTests implements Required this._maxTimeToWaitSeconds * 1000) { throw new Error( - `Waiting _way_ too long for messages to arrive (got ${this.events.length} out of ${countOfExpectedEvents})` + `Waiting _way_ too long for messages to arrive (got ${this.events.length} out of ${countOfExpectedEvents})`, ); } } else { @@ -137,7 +137,7 @@ export class SubscriptionHandlerForTests implements Required { const events = await this.waitForFullEvents(partitionIds, countOfExpectedEvents); @@ -178,7 +178,7 @@ export class SubscriptionHandlerForTests implements Required { const expectedMessagePrefix = "EventProcessor test - multiple partitions - "; const sentMessages = []; diff --git a/sdk/eventhub/event-hubs/test/public/utils/testInMemoryCheckpointStore.ts b/sdk/eventhub/event-hubs/test/public/utils/testInMemoryCheckpointStore.ts index 094f75ec8149..417651da9d8d 100644 --- a/sdk/eventhub/event-hubs/test/public/utils/testInMemoryCheckpointStore.ts +++ b/sdk/eventhub/event-hubs/test/public/utils/testInMemoryCheckpointStore.ts @@ -32,7 +32,7 @@ export class TestInMemoryCheckpointStore implements CheckpointStore { async listOwnership( _fullyQualifiedNamespace: string, _eventHubName: string, - _consumerGroup: string + _consumerGroup: string, ): Promise { const ownerships = []; @@ -100,7 +100,7 @@ export class TestInMemoryCheckpointStore implements CheckpointStore { async listCheckpoints( fullyQualifiedNamespace: string, eventHubName: string, - consumerGroup: string + consumerGroup: string, ): Promise { const key = `${fullyQualifiedNamespace}:${eventHubName}:${consumerGroup}`; diff --git a/sdk/eventhub/event-hubs/test/public/utils/testUtils.ts b/sdk/eventhub/event-hubs/test/public/utils/testUtils.ts index 4c14754630ad..930483556a01 100644 --- a/sdk/eventhub/event-hubs/test/public/utils/testUtils.ts +++ b/sdk/eventhub/event-hubs/test/public/utils/testUtils.ts @@ -63,7 +63,7 @@ export async function loopUntil(args: { } throw new Error( - `Waited way too long for ${args.name}: ${args.errorMessageFn ? args.errorMessageFn() : ""}` + `Waited way too long for ${args.name}: ${args.errorMessageFn ? args.errorMessageFn() : ""}`, ); } @@ -71,7 +71,7 @@ export async function getStartingPositionsForTests( client: Pick< EventHubConsumerClient | EventHubProducerClient, "getPartitionProperties" | "getEventHubProperties" - > + >, ): Promise<{ [partitionId: string]: EventPosition }> { const eventHubProperties = await client.getEventHubProperties(); @@ -87,7 +87,7 @@ export async function getStartingPositionsForTests( } export function setTracerForTest( - tracer?: T + tracer?: T, ): { tracer: T; resetTracer: () => void } { tracer = tracer ?? (new TestTracer() as T); setTracer(tracer); diff --git a/sdk/eventhub/event-hubs/test/public/utils/testWithServiceTypes.ts b/sdk/eventhub/event-hubs/test/public/utils/testWithServiceTypes.ts index 97238669bbb8..37ea9fbd1c32 100644 --- a/sdk/eventhub/event-hubs/test/public/utils/testWithServiceTypes.ts +++ b/sdk/eventhub/event-hubs/test/public/utils/testWithServiceTypes.ts @@ -11,8 +11,8 @@ const testTarget = getEnvVarValue("TEST_TARGET") || "live"; export function testWithServiceTypes( handler: ( serviceVersion: SupportedTargets, - onVersions: (supported: SupportedTargets[]) => TestFunctionWrapper - ) => void + onVersions: (supported: SupportedTargets[]) => TestFunctionWrapper, + ) => void, ): void { // Wrap within an empty `describe` so that nested functions get the mocha // context object for the current suite being ran. @@ -36,7 +36,7 @@ export function testWithServiceTypes( } handler(serviceVersion as SupportedTargets, ...rest); - } + }, ); }); }); diff --git a/sdk/eventhub/event-hubs/test/stress/app/src/scenarioCheckpointStore.ts b/sdk/eventhub/event-hubs/test/stress/app/src/scenarioCheckpointStore.ts index 0597caa25244..2d5881fe78a5 100644 --- a/sdk/eventhub/event-hubs/test/stress/app/src/scenarioCheckpointStore.ts +++ b/sdk/eventhub/event-hubs/test/stress/app/src/scenarioCheckpointStore.ts @@ -38,7 +38,7 @@ async function scenarioCheckpointStore() { const blobContainerClient = new ContainerClient( storageAccountConnectionString || "", - containerName + containerName, ); if (!(await blobContainerClient.exists())) { await blobContainerClient.create(); @@ -49,7 +49,7 @@ async function scenarioCheckpointStore() { EventHubConsumerClient.defaultConsumerGroupName, connectionString || "", eventHubName || "", - checkpointStore + checkpointStore, ); const subscription = consumerClient.subscribe({ processEvents: async (events, context) => { diff --git a/sdk/eventhub/event-hubs/test/stress/app/src/scenarioNoActivity.ts b/sdk/eventhub/event-hubs/test/stress/app/src/scenarioNoActivity.ts index 69f83d2670bb..54edda56dcf4 100644 --- a/sdk/eventhub/event-hubs/test/stress/app/src/scenarioNoActivity.ts +++ b/sdk/eventhub/event-hubs/test/stress/app/src/scenarioNoActivity.ts @@ -77,7 +77,7 @@ export async function scenarioNoActivity() { maxBatchSize, maxWaitTimeInSeconds: 0.1, startPosition: { enqueuedOn: Date.now(), isInclusive: true }, - } + }, ); } await producer.sendBatch([{ body: "abcd" }, { body: "abcd2" }]); diff --git a/sdk/eventhub/event-hubs/test/stress/app/src/utils.ts b/sdk/eventhub/event-hubs/test/stress/app/src/utils.ts index 0b36aff2eeca..77503e06efef 100644 --- a/sdk/eventhub/event-hubs/test/stress/app/src/utils.ts +++ b/sdk/eventhub/event-hubs/test/stress/app/src/utils.ts @@ -31,7 +31,7 @@ export interface SnapshotOptions { export async function loopForever( fn: () => Promise, duration: number, - abortSignal?: AbortSignalLike + abortSignal?: AbortSignalLike, ) { while (!abortSignal?.aborted) { await delay(duration); @@ -40,28 +40,28 @@ export async function loopForever( } export function createEventHubsConsumerClient( - options?: EventHubConsumerClientOptions + options?: EventHubConsumerClientOptions, ): EventHubConsumerClient { const consumerGroup = process.env.EVENTHUBS_CONSUMER_GROUP || "$Default"; const connectionString = process.env.EVENTHUBS_CONNECTION_STRING; const hubName = process.env.EVENTHUB_NAME; if (!connectionString || !consumerGroup || !hubName) { throw new Error( - "EVENTHUBS_CONNECTION_STRING, EVENTHUB_NAME and EVENTHUBS_CONSUMER_GROUP have to be populated in the environment and are not!" + "EVENTHUBS_CONNECTION_STRING, EVENTHUB_NAME and EVENTHUBS_CONSUMER_GROUP have to be populated in the environment and are not!", ); } return new EventHubConsumerClient(consumerGroup, connectionString, hubName, options); } export function createEventHubsProducerClient( - options?: EventHubClientOptions + options?: EventHubClientOptions, ): EventHubProducerClient { const eventHubName = process.env.EVENTHUB_NAME; const connectionString = process.env.EVENTHUBS_CONNECTION_STRING; if (!connectionString || !eventHubName) { throw new Error( - "EVENTHUBS_CONNECTION_STRING and EVENTHUB_NAME have to be populated in the environment and are not!" + "EVENTHUBS_CONNECTION_STRING and EVENTHUB_NAME have to be populated in the environment and are not!", ); } diff --git a/sdk/eventhub/eventhubs-checkpointstore-blob/package.json b/sdk/eventhub/eventhubs-checkpointstore-blob/package.json index 609be80232fa..ca7fd815777f 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-blob/package.json +++ b/sdk/eventhub/eventhubs-checkpointstore-blob/package.json @@ -39,11 +39,11 @@ "build:test:node": "tsc -p . && dev-tool run bundle", "build:test": "npm run build:test:node", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* typings *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 1200000 \"dist-esm/test/*.spec.js\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -97,7 +97,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "ts-node": "^10.0.0", "typescript": "~5.2.0", diff --git a/sdk/eventhub/eventhubs-checkpointstore-blob/samples-dev/receiveEventsUsingCheckpointStore.ts b/sdk/eventhub/eventhubs-checkpointstore-blob/samples-dev/receiveEventsUsingCheckpointStore.ts index 00e3cf92acc2..02e1a33b2e47 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-blob/samples-dev/receiveEventsUsingCheckpointStore.ts +++ b/sdk/eventhub/eventhubs-checkpointstore-blob/samples-dev/receiveEventsUsingCheckpointStore.ts @@ -42,7 +42,7 @@ export async function main() { consumerGroup, connectionString, eventHubName, - checkpointStore + checkpointStore, ); // The below code will set up your program to listen to events from your Event Hub instance. @@ -59,7 +59,7 @@ export async function main() { for (const event of events) { console.log( - `Received event: '${event.body}' from partition: '${context.partitionId}' and consumer group: '${context.consumerGroup}'` + `Received event: '${event.body}' from partition: '${context.partitionId}' and consumer group: '${context.consumerGroup}'`, ); } @@ -74,7 +74,7 @@ export async function main() { console.log( `Successfully checkpointed event with sequence number: ${ events[events.length - 1].sequenceNumber - } from partition: 'partitionContext.partitionId'` + } from partition: 'partitionContext.partitionId'`, ); }, processError: async (err, context) => { diff --git a/sdk/eventhub/eventhubs-checkpointstore-blob/samples-dev/receiveEventsWithApiSpecificStorage.ts b/sdk/eventhub/eventhubs-checkpointstore-blob/samples-dev/receiveEventsWithApiSpecificStorage.ts index 85234c9ab98e..29a54701b6a5 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-blob/samples-dev/receiveEventsWithApiSpecificStorage.ts +++ b/sdk/eventhub/eventhubs-checkpointstore-blob/samples-dev/receiveEventsWithApiSpecificStorage.ts @@ -45,7 +45,7 @@ export async function main() { consumerGroup, connectionString, eventHubName, - checkpointStore + checkpointStore, ); // The below code will set up your program to listen to events from your Event Hub instance. @@ -56,7 +56,7 @@ export async function main() { processEvents: async (events, context) => { for (const event of events) { console.log( - `Received event: '${event.body}' from partition: '${context.partitionId}' and consumer group: '${context.consumerGroup}'` + `Received event: '${event.body}' from partition: '${context.partitionId}' and consumer group: '${context.consumerGroup}'`, ); } @@ -71,7 +71,7 @@ export async function main() { console.log( `Successfully checkpointed event with sequence number: ${ events[events.length - 1].sequenceNumber - } from partition: 'partitionContext.partitionId'` + } from partition: 'partitionContext.partitionId'`, ); }, processError: async (err, context) => { diff --git a/sdk/eventhub/eventhubs-checkpointstore-blob/src/blobCheckpointStore.ts b/sdk/eventhub/eventhubs-checkpointstore-blob/src/blobCheckpointStore.ts index 75b05205cac1..53eac1aa453a 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-blob/src/blobCheckpointStore.ts +++ b/sdk/eventhub/eventhubs-checkpointstore-blob/src/blobCheckpointStore.ts @@ -43,7 +43,7 @@ export class BlobCheckpointStore implements CheckpointStore { fullyQualifiedNamespace: string, eventHubName: string, consumerGroup: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { const partitionOwnershipArray: PartitionOwnership[] = []; const { abortSignal, tracingOptions } = options; @@ -108,7 +108,7 @@ export class BlobCheckpointStore implements CheckpointStore { */ async claimOwnership( partitionOwnership: PartitionOwnership[], - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { const partitionOwnershipArray: PartitionOwnership[] = []; for (const ownership of partitionOwnership) { @@ -120,7 +120,7 @@ export class BlobCheckpointStore implements CheckpointStore { ownerid: ownership.ownerId, }, ownership.etag, - options + options, ); if (updatedBlobResponse.lastModified) { @@ -131,7 +131,7 @@ export class BlobCheckpointStore implements CheckpointStore { partitionOwnershipArray.push(ownership); logger.info( `[${ownership.ownerId}] Claimed ownership successfully for partition: ${ownership.partitionId}`, - `LastModifiedTime: ${ownership.lastModifiedTimeInMs}, ETag: ${ownership.etag}` + `LastModifiedTime: ${ownership.lastModifiedTimeInMs}, ETag: ${ownership.etag}`, ); } catch (err: any) { const restError = err as RestError; @@ -141,14 +141,14 @@ export class BlobCheckpointStore implements CheckpointStore { // as multiple consumers attempt to claim the same partition (first one wins) // and losers get this error. logger.verbose( - `[${ownership.ownerId}] Did not claim partition ${ownership.partitionId}. Another processor has already claimed it.` + `[${ownership.ownerId}] Did not claim partition ${ownership.partitionId}. Another processor has already claimed it.`, ); continue; } logger.warning( `Error occurred while claiming ownership for partition: ${ownership.partitionId}`, - err.message + err.message, ); logErrorStackTrace(err); @@ -173,7 +173,7 @@ export class BlobCheckpointStore implements CheckpointStore { fullyQualifiedNamespace: string, eventHubName: string, consumerGroup: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { const { abortSignal, tracingOptions } = options; const blobPrefix = BlobCheckpointStore.getBlobPrefix({ @@ -202,7 +202,7 @@ export class BlobCheckpointStore implements CheckpointStore { const sequenceNumber = parseIntOrThrow( blob.name, "sequencenumber", - checkpointMetadata.sequencenumber + checkpointMetadata.sequencenumber, ); checkpoints.push({ @@ -231,7 +231,7 @@ export class BlobCheckpointStore implements CheckpointStore { throwTypeErrorIfParameterMissing( "updateCheckpoint", "sequenceNumber", - checkpoint.sequenceNumber + checkpoint.sequenceNumber, ); throwTypeErrorIfParameterMissing("updateCheckpoint", "offset", checkpoint.offset); @@ -244,27 +244,27 @@ export class BlobCheckpointStore implements CheckpointStore { offset: checkpoint.offset.toString(), }, undefined, - options + options, ); logger.verbose( `Updated checkpoint successfully for partition: ${checkpoint.partitionId}`, `LastModifiedTime: ${metadataResponse.lastModified!.toISOString()}, ETag: ${ metadataResponse.etag - }` + }`, ); return; } catch (err: any) { logger.warning( `Error occurred while upating the checkpoint for partition: ${checkpoint.partitionId}.`, - err.message + err.message, ); logErrorStackTrace(err); if (err?.name === "AbortError") throw err; throw new Error( - `Error occurred while upating the checkpoint for partition: ${checkpoint.partitionId}, ${err}` + `Error occurred while upating the checkpoint for partition: ${checkpoint.partitionId}, ${err}`, ); } } @@ -293,7 +293,7 @@ export class BlobCheckpointStore implements CheckpointStore { blobName: string, metadata: OwnershipMetadata | CheckpointMetadata, etag: string | undefined, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { const { abortSignal, tracingOptions } = options; const blockBlobClient = this._containerClient.getBlobClient(blobName).getBlockBlobClient(); @@ -352,7 +352,7 @@ type CheckpointMetadata = { export function parseIntOrThrow( blobName: string, fieldName: string, - numStr: string | undefined + numStr: string | undefined, ): number { if (numStr == null) { throw new Error(`Missing metadata property '${fieldName}' on blob '${blobName}'`); @@ -362,7 +362,7 @@ export function parseIntOrThrow( if (isNaN(num)) { throw new Error( - `Failed to parse metadata property '${fieldName}' on blob '${blobName}' as a number` + `Failed to parse metadata property '${fieldName}' on blob '${blobName}' as a number`, ); } diff --git a/sdk/eventhub/eventhubs-checkpointstore-blob/src/storageBlobInterfaces.ts b/sdk/eventhub/eventhubs-checkpointstore-blob/src/storageBlobInterfaces.ts index 5d6a5057a21a..5e41d6b3dcd9 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-blob/src/storageBlobInterfaces.ts +++ b/sdk/eventhub/eventhubs-checkpointstore-blob/src/storageBlobInterfaces.ts @@ -37,7 +37,7 @@ export interface ContainerClientLike { * under the specified account. */ listBlobsFlat( - options?: ContainerListBlobsOptions + options?: ContainerListBlobsOptions, ): PagedAsyncIterableIterator; } @@ -51,13 +51,13 @@ export interface BlockBlobClientLike { upload( body: HttpRequestBody, contentLength: number, - options?: BlockBlobUploadOptions + options?: BlockBlobUploadOptions, ): Promise; /** * Sets user-defined metadata for the specified blob as one or more name-value pairs. */ setMetadata( metadata?: Metadata, - options?: BlobSetMetadataOptions + options?: BlobSetMetadataOptions, ): Promise; } diff --git a/sdk/eventhub/eventhubs-checkpointstore-blob/src/util/error.ts b/sdk/eventhub/eventhubs-checkpointstore-blob/src/util/error.ts index 741a86602900..870d6ecf74c6 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-blob/src/util/error.ts +++ b/sdk/eventhub/eventhubs-checkpointstore-blob/src/util/error.ts @@ -13,11 +13,11 @@ import { logger, logErrorStackTrace } from "../log"; export function throwTypeErrorIfParameterMissing( methodName: string, parameterName: string, - parameterValue: unknown + parameterValue: unknown, ): void { if (parameterValue === undefined || parameterValue === null) { const error = new TypeError( - `${methodName} called without required argument "${parameterName}"` + `${methodName} called without required argument "${parameterName}"`, ); logger.warning(error.message); logErrorStackTrace(error); diff --git a/sdk/eventhub/eventhubs-checkpointstore-blob/test/blob-checkpointstore.spec.ts b/sdk/eventhub/eventhubs-checkpointstore-blob/test/blob-checkpointstore.spec.ts index 6f06f62eb4f0..c92bfad48aa9 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-blob/test/blob-checkpointstore.spec.ts +++ b/sdk/eventhub/eventhubs-checkpointstore-blob/test/blob-checkpointstore.spec.ts @@ -28,14 +28,14 @@ describe("Blob Checkpoint Store", function (): void { before("validate environment", async function (): Promise { should.exist( env[EnvVarKeys.STORAGE_CONNECTION_STRING], - "define STORAGE_CONNECTION_STRING in your environment before running integration tests." + "define STORAGE_CONNECTION_STRING in your environment before running integration tests.", ); }); beforeEach(async () => { containerClient = new ContainerClient( service.storageConnectionString, - `container-${Guid.create()}` + `container-${Guid.create()}`, ); await containerClient.create(); }); @@ -60,7 +60,7 @@ describe("Blob Checkpoint Store", function (): void { "testConsumerGroup", { abortSignal: signal, - } + }, ); throw new Error(TEST_FAILURE); } catch (err: any) { @@ -84,7 +84,7 @@ describe("Blob Checkpoint Store", function (): void { "testConsumerGroup", { abortSignal: signal, - } + }, ); throw new Error(TEST_FAILURE); } catch (err: any) { @@ -99,7 +99,7 @@ describe("Blob Checkpoint Store", function (): void { const listOwnership = await checkpointStore.listOwnership( "testNamespace.servicebus.windows.net", "testEventHub", - "testConsumerGroup" + "testConsumerGroup", ); should.equal(listOwnership.length, 0); }); @@ -126,7 +126,7 @@ describe("Blob Checkpoint Store", function (): void { ], { abortSignal: signal, - } + }, ); throw new Error(TEST_FAILURE); } catch (err: any) { @@ -156,7 +156,7 @@ describe("Blob Checkpoint Store", function (): void { ], { abortSignal: signal, - } + }, ); throw new Error(TEST_FAILURE); } catch (err: any) { @@ -234,7 +234,7 @@ describe("Blob Checkpoint Store", function (): void { const listOwnership = await checkpointStore.listOwnership( "testNamespace.servicebus.windows.net", "testEventHub", - "testConsumerGroup" + "testConsumerGroup", ); should.equal(listOwnership.length, 0); @@ -252,7 +252,7 @@ describe("Blob Checkpoint Store", function (): void { const ownershipList = await checkpointStore.listOwnership( "testNamespace.servicebus.windows.net", "testEventHub", - "testConsumerGroup" + "testConsumerGroup", ); should.equal(ownershipList.length, 1, "Unexpected number of ownerships in list."); @@ -260,28 +260,28 @@ describe("Blob Checkpoint Store", function (): void { should.equal( ownershipList[0].consumerGroup, "testConsumerGroup", - "The 1st ownership item has the wrong consumerGroup." + "The 1st ownership item has the wrong consumerGroup.", ); should.equal( ownershipList[0].fullyQualifiedNamespace, "testNamespace.servicebus.windows.net", - "The 1st fullyQualifiedNamespace item has the wrong fullyQualifiedNamespace." + "The 1st fullyQualifiedNamespace item has the wrong fullyQualifiedNamespace.", ); should.equal( ownershipList[0].eventHubName, "testEventHub", - "The 1st ownership item has the wrong eventHubName." + "The 1st ownership item has the wrong eventHubName.", ); should.equal( ownershipList[0].partitionId, "0", - "The 1st ownership item has the wrong partitionId." + "The 1st ownership item has the wrong partitionId.", ); should.exist(ownershipList[0].lastModifiedTimeInMs, "lastModifiedTimeInMs should exist."); should.exist(ownershipList[0].etag, "etag should exist."); debug( - `LastModifiedTime: ${ownershipList[0].lastModifiedTimeInMs!}, ETag: ${ownershipList[0].etag}` + `LastModifiedTime: ${ownershipList[0].lastModifiedTimeInMs!}, ETag: ${ownershipList[0].etag}`, ); }); @@ -290,7 +290,7 @@ describe("Blob Checkpoint Store", function (): void { const listOwnership = await checkpointStore.listOwnership( "testNamespace.servicebus.windows.net", "testEventHub", - "testConsumerGroup" + "testConsumerGroup", ); should.equal(listOwnership.length, 0); @@ -309,7 +309,7 @@ describe("Blob Checkpoint Store", function (): void { const ownershipList = await checkpointStore.listOwnership( "testNamespace.servicebus.windows.net", "testEventHub", - "testConsumerGroup" + "testConsumerGroup", ); should.equal(ownershipList.length, 1, "Unexpected number of ownerships in list."); @@ -317,27 +317,27 @@ describe("Blob Checkpoint Store", function (): void { should.equal( ownershipList[0].consumerGroup, "testConsumerGroup", - "The 1st ownership item has the wrong consumerGroup." + "The 1st ownership item has the wrong consumerGroup.", ); should.equal( ownershipList[0].fullyQualifiedNamespace, "testNamespace.servicebus.windows.net", - "The 1st fullyQualifiedNamespace item has the wrong fullyQualifiedNamespace." + "The 1st fullyQualifiedNamespace item has the wrong fullyQualifiedNamespace.", ); should.equal( ownershipList[0].eventHubName, "testEventHub", - "The 1st ownership item has the wrong eventHubName." + "The 1st ownership item has the wrong eventHubName.", ); should.equal( ownershipList[0].partitionId, "0", - "The 1st ownership item has the wrong partitionId." + "The 1st ownership item has the wrong partitionId.", ); should.exist(ownershipList[0].lastModifiedTimeInMs, "lastModifiedTimeInMs should exist."); should.exist(ownershipList[0].etag, "etag should exist."); debug( - `LastModifiedTime: ${ownershipList[0].lastModifiedTimeInMs!}, ETag: ${ownershipList[0].etag}` + `LastModifiedTime: ${ownershipList[0].lastModifiedTimeInMs!}, ETag: ${ownershipList[0].etag}`, ); }); @@ -346,7 +346,7 @@ describe("Blob Checkpoint Store", function (): void { const listOwnership = await checkpointStore.listOwnership( "testNamespace.servicebus.windows.net", "testEventHub", - "testConsumerGroup" + "testConsumerGroup", ); should.equal(listOwnership.length, 0); @@ -370,7 +370,7 @@ describe("Blob Checkpoint Store", function (): void { const ownershipList = await checkpointStore.listOwnership( "testNamespace.servicebus.windows.net", "testEventHub", - "testConsumerGroup" + "testConsumerGroup", ); should.equal(ownershipList.length, 3, "Unexpected number of ownerships in list."); @@ -379,22 +379,22 @@ describe("Blob Checkpoint Store", function (): void { should.equal( ownershipList[0].consumerGroup, "testConsumerGroup", - "The 1st ownership item has the wrong consumerGroup." + "The 1st ownership item has the wrong consumerGroup.", ); should.equal( ownershipList[0].fullyQualifiedNamespace, "testNamespace.servicebus.windows.net", - "The 1st fullyQualifiedNamespace item has the wrong fullyQualifiedNamespace." + "The 1st fullyQualifiedNamespace item has the wrong fullyQualifiedNamespace.", ); should.equal( ownershipList[0].eventHubName, "testEventHub", - "The 1st ownership item has the wrong eventHubName." + "The 1st ownership item has the wrong eventHubName.", ); should.equal( ownershipList[0].partitionId, "0", - "The 1st ownership item has the wrong partitionId." + "The 1st ownership item has the wrong partitionId.", ); should.exist(ownershipList[0].lastModifiedTimeInMs, "lastModifiedTimeInMs should exist."); should.exist(ownershipList[0].etag, "etag should exist."); @@ -402,7 +402,7 @@ describe("Blob Checkpoint Store", function (): void { should.equal( ownershipList[1].partitionId, "1", - "The 2nd ownership item has the wrong partitionId." + "The 2nd ownership item has the wrong partitionId.", ); should.exist(ownershipList[1].lastModifiedTimeInMs, "lastModifiedTimeInMs should exist."); should.exist(ownershipList[1].etag, "etag should exist."); @@ -410,7 +410,7 @@ describe("Blob Checkpoint Store", function (): void { should.equal( ownershipList[2].partitionId, "2", - "The 3rd ownership item has the wrong partitionId." + "The 3rd ownership item has the wrong partitionId.", ); should.exist(ownershipList[2].lastModifiedTimeInMs, "lastModifiedTimeInMs should exist."); should.exist(ownershipList[2].etag, "etag should exist."); @@ -432,7 +432,7 @@ describe("Blob Checkpoint Store", function (): void { "testConsumerGroup", { abortSignal: signal, - } + }, ); throw new Error(TEST_FAILURE); } catch (err: any) { @@ -456,7 +456,7 @@ describe("Blob Checkpoint Store", function (): void { "testConsumerGroup", { abortSignal: signal, - } + }, ); throw new Error(TEST_FAILURE); } catch (err: any) { @@ -490,7 +490,7 @@ describe("Blob Checkpoint Store", function (): void { let checkpoints = await checkpointStore.listCheckpoints( eventHubProperties.fullyQualifiedNamespace, eventHubProperties.eventHubName, - eventHubProperties.consumerGroup + eventHubProperties.consumerGroup, ); checkpoints.length.should.equal(3); @@ -516,7 +516,7 @@ describe("Blob Checkpoint Store", function (): void { checkpoints = await checkpointStore.listCheckpoints( eventHubProperties.fullyQualifiedNamespace, eventHubProperties.eventHubName, - eventHubProperties.consumerGroup + eventHubProperties.consumerGroup, ); checkpoints.length.should.equal(3); @@ -546,7 +546,7 @@ describe("Blob Checkpoint Store", function (): void { let checkpoints = await checkpointStore.listCheckpoints( eventHubProperties.fullyQualifiedNamespace, eventHubProperties.eventHubName, - eventHubProperties.consumerGroup + eventHubProperties.consumerGroup, ); checkpoints.length.should.equal(0); @@ -567,7 +567,7 @@ describe("Blob Checkpoint Store", function (): void { checkpoints = await checkpointStore.listCheckpoints( eventHubProperties.fullyQualifiedNamespace, eventHubProperties.eventHubName, - eventHubProperties.consumerGroup + eventHubProperties.consumerGroup, ); checkpoints.length.should.equal(1); @@ -662,7 +662,7 @@ describe("Blob Checkpoint Store", function (): void { const listOwnership = await checkpointStore.listOwnership( "testNamespace.servicebus.windows.net", "testEventHub", - "testConsumerGroup" + "testConsumerGroup", ); should.equal(listOwnership.length, 0); @@ -679,7 +679,7 @@ describe("Blob Checkpoint Store", function (): void { const ownershipList = await checkpointStore.listOwnership( "testNamespace.servicebus.windows.net", "testEventHub", - "testConsumerGroup" + "testConsumerGroup", ); ownershipList.length.should.equal(1); @@ -717,11 +717,11 @@ describe("Blob Checkpoint Store", function (): void { const listOwnershipPromise = checkpointStore.listOwnership( commonData.fullyQualifiedNamespace, commonData.eventHubName, - commonData.consumerGroup + commonData.consumerGroup, ); await listOwnershipPromise.should.be.rejectedWith( - `Missing ownerid in metadata for blob test/test/test/ownership/100` + `Missing ownerid in metadata for blob test/test/test/ownership/100`, ); }); @@ -750,11 +750,11 @@ describe("Blob Checkpoint Store", function (): void { const listCheckpointsPromise = checkpointStore.listCheckpoints( commonData.fullyQualifiedNamespace, commonData.eventHubName, - commonData.consumerGroup + commonData.consumerGroup, ); await listCheckpointsPromise.should.be.rejectedWith( - `Missing metadata property 'offset' on blob 'test/test/test/checkpoint/100` + `Missing metadata property 'offset' on blob 'test/test/test/checkpoint/100`, ); }); @@ -778,7 +778,7 @@ describe("Blob Checkpoint Store", function (): void { const checkpoints = await checkpointStore.listCheckpoints( commonData.fullyQualifiedNamespace, commonData.eventHubName, - commonData.consumerGroup + commonData.consumerGroup, ); checkpoints.length.should.equal(1); @@ -796,7 +796,7 @@ describe("Blob Checkpoint Store", function (): void { eventHubName: "eVentHubNamE", consumerGroup: "cOnsuMerGrouPNaMe", // partition ID is optional - }) + }), ); chai.assert.equal( @@ -807,7 +807,7 @@ describe("Blob Checkpoint Store", function (): void { eventHubName: "eVentHubNamE", consumerGroup: "cOnsuMerGrouPNaMe", partitionId: "0", - }) + }), ); }); @@ -816,16 +816,16 @@ describe("Blob Checkpoint Store", function (): void { should.throw( () => parseIntOrThrow("blobname", "fieldname", ""), - "Failed to parse metadata property 'fieldname' on blob 'blobname' as a number" + "Failed to parse metadata property 'fieldname' on blob 'blobname' as a number", ); should.throw( () => parseIntOrThrow("blobname", "fieldname", "hello"), - "Failed to parse metadata property 'fieldname' on blob 'blobname' as a number" + "Failed to parse metadata property 'fieldname' on blob 'blobname' as a number", ); should.throw( () => parseIntOrThrow("blobname", "fieldname", undefined), - "Missing metadata property 'fieldname' on blob 'blobname'" + "Missing metadata property 'fieldname' on blob 'blobname'", ); }); }).timeout(90000); diff --git a/sdk/eventhub/eventhubs-checkpointstore-blob/test/snippets.spec.ts b/sdk/eventhub/eventhubs-checkpointstore-blob/test/snippets.spec.ts index ba84c97272ac..13d1422754b6 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-blob/test/snippets.spec.ts +++ b/sdk/eventhub/eventhubs-checkpointstore-blob/test/snippets.spec.ts @@ -38,7 +38,7 @@ describe.skip("Snippets", () => { async function main(): Promise { const blobContainerClient = new ContainerClient( storageAccountConnectionString, - containerName + containerName, ); if (!(await blobContainerClient.exists())) { @@ -50,7 +50,7 @@ describe.skip("Snippets", () => { consumerGroup, eventHubConnectionString, eventHubName, - checkpointStore + checkpointStore, ); const subscription = consumerClient.subscribe({ diff --git a/sdk/eventhub/eventhubs-checkpointstore-table/package.json b/sdk/eventhub/eventhubs-checkpointstore-table/package.json index 79c4f1574537..6b414940f4a6 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-table/package.json +++ b/sdk/eventhub/eventhubs-checkpointstore-table/package.json @@ -39,11 +39,11 @@ "build:test:node": "tsc -p . && dev-tool run bundle", "build:test": "npm run build:test:node", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* typings *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 1200000 --full-trace \"dist-esm/test/*.spec.js\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -95,7 +95,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "ts-node": "^10.0.0", "typescript": "~5.2.0", diff --git a/sdk/eventhub/eventhubs-checkpointstore-table/src/tableCheckpointStore.ts b/sdk/eventhub/eventhubs-checkpointstore-table/src/tableCheckpointStore.ts index b77ce5652eb2..ad0b81b427da 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-table/src/tableCheckpointStore.ts +++ b/sdk/eventhub/eventhubs-checkpointstore-table/src/tableCheckpointStore.ts @@ -10,7 +10,7 @@ import { logErrorStackTrace, logger } from "./log"; * Checks if the value contains a `Timestamp` field of type `string`. */ function _hasTimestamp( - value: T + value: T, ): value is T & { Timestamp: string } { return typeof (value as any).Timestamp === "string"; } @@ -80,7 +80,7 @@ export class TableCheckpointStore implements CheckpointStore { async listOwnership( fullyQualifiedNamespace: string, eventHubName: string, - consumerGroup: string + consumerGroup: string, ): Promise { const partitionKey = `${fullyQualifiedNamespace} ${eventHubName} ${consumerGroup} Ownership`; const partitionOwnershipArray: PartitionOwnership[] = []; @@ -91,7 +91,7 @@ export class TableCheckpointStore implements CheckpointStore { for await (const entity of entitiesIter) { if (!entity.timestamp) { throw new Error( - `Unable to retrieve timestamp from partitionKey "${partitionKey}", rowKey "${entity.rowKey}"` + `Unable to retrieve timestamp from partitionKey "${partitionKey}", rowKey "${entity.rowKey}"`, ); } @@ -147,11 +147,11 @@ export class TableCheckpointStore implements CheckpointStore { }); const entityRetrieved = await this._tableClient.getEntity( ownershipEntity.partitionKey, - ownershipEntity.rowKey + ownershipEntity.rowKey, ); if (!entityRetrieved.timestamp) { throw new Error( - `Unable to retrieve timestamp from partitionKey "${partitionKey}", rowKey "${entityRetrieved.rowKey}"` + `Unable to retrieve timestamp from partitionKey "${partitionKey}", rowKey "${entityRetrieved.rowKey}"`, ); } updatedOwnership.lastModifiedTimeInMs = new Date(entityRetrieved.timestamp).getTime(); @@ -159,7 +159,7 @@ export class TableCheckpointStore implements CheckpointStore { partitionOwnershipArray.push(updatedOwnership); logger.info( `[${ownership.ownerId}] Claimed ownership successfully for partition: ${ownership.partitionId}`, - `LastModifiedTime: ${ownership.lastModifiedTimeInMs}, ETag: ${ownership.etag}` + `LastModifiedTime: ${ownership.lastModifiedTimeInMs}, ETag: ${ownership.etag}`, ); } else { const newOwnershipMetadata = await this._tableClient.createEntity(ownershipEntity, { @@ -172,12 +172,12 @@ export class TableCheckpointStore implements CheckpointStore { if (!_hasTimestamp(newOwnershipMetadata)) { throw new Error( - `Unable to retrieve timestamp from partitionKey "${partitionKey}", rowKey "${ownershipEntity.rowKey}"` + `Unable to retrieve timestamp from partitionKey "${partitionKey}", rowKey "${ownershipEntity.rowKey}"`, ); } updatedOwnership.lastModifiedTimeInMs = new Date( - newOwnershipMetadata.Timestamp + newOwnershipMetadata.Timestamp, ).getTime(); updatedOwnership.etag = newOwnershipMetadata.etag; partitionOwnershipArray.push(updatedOwnership); @@ -188,13 +188,13 @@ export class TableCheckpointStore implements CheckpointStore { // as multiple consumers attempt to claim the same partition (first one wins) // and losers get this error. logger.verbose( - `[${ownership.ownerId}] Did not claim partition ${ownership.partitionId}. Another processor has already claimed it.` + `[${ownership.ownerId}] Did not claim partition ${ownership.partitionId}. Another processor has already claimed it.`, ); continue; } logger.warning( `Error occurred while claiming ownership for partition: ${ownership.partitionId}`, - err.message + err.message, ); logErrorStackTrace(err); } @@ -216,7 +216,7 @@ export class TableCheckpointStore implements CheckpointStore { async listCheckpoints( fullyQualifiedNamespace: string, eventHubName: string, - consumerGroup: string + consumerGroup: string, ): Promise { const partitionKey = `${fullyQualifiedNamespace} ${eventHubName} ${consumerGroup} Checkpoint`; const checkpoints: Checkpoint[] = []; @@ -260,7 +260,7 @@ export class TableCheckpointStore implements CheckpointStore { } catch (err: any) { logger.verbose( `Error occurred while upating the checkpoint for partition: ${checkpoint.partitionId}.`, - err.message + err.message, ); throw err; } diff --git a/sdk/eventhub/eventhubs-checkpointstore-table/src/util/error.ts b/sdk/eventhub/eventhubs-checkpointstore-table/src/util/error.ts index ec7decad4d71..7df4a27ed726 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-table/src/util/error.ts +++ b/sdk/eventhub/eventhubs-checkpointstore-table/src/util/error.ts @@ -13,11 +13,11 @@ import { logErrorStackTrace, logger } from "../log"; export function throwTypeErrorIfParameterMissing( methodName: string, parameterName: string, - parameterValue: unknown + parameterValue: unknown, ): void { if (parameterValue === undefined || parameterValue === null) { const error = new TypeError( - `${methodName} called without required argument "${parameterName}"` + `${methodName} called without required argument "${parameterName}"`, ); logger.warning(error.message); logErrorStackTrace(error); diff --git a/sdk/eventhub/eventhubs-checkpointstore-table/test/tables-checkpointstore.spec.ts b/sdk/eventhub/eventhubs-checkpointstore-table/test/tables-checkpointstore.spec.ts index cd45b9bec4db..9e448ef46a6d 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-table/test/tables-checkpointstore.spec.ts +++ b/sdk/eventhub/eventhubs-checkpointstore-table/test/tables-checkpointstore.spec.ts @@ -28,11 +28,11 @@ const service = { const credential = new AzureNamedKeyCredential( service.storageAccountName, - service.storageAccountKey + service.storageAccountKey, ); const serviceClient = new TableServiceClient( `https://${service.storageAccountName}.table.core.windows.net`, - credential + credential, ); describe("TableCheckpointStore", function (): void { @@ -43,7 +43,7 @@ describe("TableCheckpointStore", function (): void { client = new TableClient( `https://${service.storageAccountName}.table.core.windows.net`, tableName, - credential + credential, ); await serviceClient.createTable(tableName); }); @@ -58,7 +58,7 @@ describe("TableCheckpointStore", function (): void { const listOwnership = await checkpointStore.listOwnership( "test.servicebus.windows.net", "testHub", - "testConsumerGroup" + "testConsumerGroup", ); should.equal(listOwnership.length, 0); }); @@ -70,7 +70,7 @@ describe("TableCheckpointStore", function (): void { const checkpoints = await checkpointStore.listCheckpoints( "test.servicebus.windows.net", "testHub", - "testConsumerGroup" + "testConsumerGroup", ); should.equal(checkpoints.length, 0); }); @@ -87,7 +87,7 @@ describe("TableCheckpointStore", function (): void { let checkpoints = await checkpointStore.listCheckpoints( eventHubProperties.fullyQualifiedNamespace, eventHubProperties.eventHubName, - eventHubProperties.consumerGroup + eventHubProperties.consumerGroup, ); checkpoints.length.should.equal(0); // Create the checkpoint to add. @@ -105,7 +105,7 @@ describe("TableCheckpointStore", function (): void { checkpoints = await checkpointStore.listCheckpoints( eventHubProperties.fullyQualifiedNamespace, eventHubProperties.eventHubName, - eventHubProperties.consumerGroup + eventHubProperties.consumerGroup, ); checkpoints.length.should.equal(1); @@ -147,7 +147,7 @@ describe("TableCheckpointStore", function (): void { const listOwnership = await checkpointStore.listOwnership( "testNamespace.servicebus.windows.net", "testEventHub", - "testConsumerGroup" + "testConsumerGroup", ); should.equal(listOwnership.length, 0); @@ -164,41 +164,41 @@ describe("TableCheckpointStore", function (): void { const ownershipList = await checkpointStore.listOwnership( "testNamespace.servicebus.windows.net", "testEventHub", - "testConsumerGroup" + "testConsumerGroup", ); should.equal(ownershipList.length, 1, "Unexpected number of ownerships in list."); should.equal( ownershipList[0].ownerId, "Id1", - "The 1st ownership item has the wrong ownerId." + "The 1st ownership item has the wrong ownerId.", ); should.equal( ownershipList[0].consumerGroup, "testConsumerGroup", - "The 1st ownership item has the wrong consumerGroup." + "The 1st ownership item has the wrong consumerGroup.", ); should.equal( ownershipList[0].fullyQualifiedNamespace, "testNamespace.servicebus.windows.net", - "The 1st fullyQualifiedNamespace item has the wrong fullyQualifiedNamespace." + "The 1st fullyQualifiedNamespace item has the wrong fullyQualifiedNamespace.", ); should.equal( ownershipList[0].eventHubName, "testEventHub", - "The 1st ownership item has the wrong eventHubName." + "The 1st ownership item has the wrong eventHubName.", ); should.equal( ownershipList[0].partitionId, "0", - "The 1st ownership item has the wrong partitionId." + "The 1st ownership item has the wrong partitionId.", ); should.exist(ownershipList[0].lastModifiedTimeInMs, "lastModifiedTimeInMs should exist."); should.exist(ownershipList[0].etag, "etag should exist."); debug( `LastModifiedTime: ${ownershipList[0].lastModifiedTimeInMs!}, ETag: ${ ownershipList[0].etag - }` + }`, ); }); }); @@ -233,7 +233,7 @@ describe("TableCheckpointStore", function (): void { const listOwnership = await checkpointStore.listOwnership( "blue.servicebus.windows.net", "blueHub", - "$default" + "$default", ); should.equal(listOwnership.length, 1); }); @@ -244,7 +244,7 @@ describe("TableCheckpointStore", function (): void { const listCheckpoint = await checkpointStore.listCheckpoints( "blue.servicebus.windows.net", "blueHub", - "$default" + "$default", ); should.equal(listCheckpoint.length, 1); }); @@ -260,7 +260,7 @@ describe("TableCheckpointStore", function (): void { const listOwnership = await checkpointStore.listOwnership( "blue.servicebus.windows.net", "blueHub", - "$default" + "$default", ); const originalClaimedOwnerships = await checkpointStore.claimOwnership([ @@ -268,9 +268,8 @@ describe("TableCheckpointStore", function (): void { ]); const originalETag = originalClaimedOwnerships[0].etag; - const newClaimedOwnerships = await checkpointStore.claimOwnership( - originalClaimedOwnerships - ); + const newClaimedOwnerships = + await checkpointStore.claimOwnership(originalClaimedOwnerships); newClaimedOwnerships.length.should.equal(1); @@ -298,7 +297,7 @@ describe("TableCheckpointStore", function (): void { const listOwnership = await checkpointStore.listOwnership( "testNamespace.servicebus.windows.net", "testEventHub", - "testConsumerGroup" + "testConsumerGroup", ); should.equal(listOwnership.length, 0); const partitionOwnershipArray: PartitionOwnership[] = []; @@ -320,41 +319,41 @@ describe("TableCheckpointStore", function (): void { const ownershipList = await checkpointStore.listOwnership( "testNamespace.servicebus.windows.net", "testEventHub", - "testConsumerGroup" + "testConsumerGroup", ); should.equal(ownershipList.length, 3, "Unexpected number of ownerships in list."); should.equal( ownershipList[0].ownerId, "Id1", - "The 1st ownership item has the wrong ownerId." + "The 1st ownership item has the wrong ownerId.", ); should.equal( ownershipList[0].consumerGroup, "testConsumerGroup", - "The 1st ownership item has the wrong consumerGroup." + "The 1st ownership item has the wrong consumerGroup.", ); should.equal( ownershipList[0].fullyQualifiedNamespace, "testNamespace.servicebus.windows.net", - "The 1st fullyQualifiedNamespace item has the wrong fullyQualifiedNamespace." + "The 1st fullyQualifiedNamespace item has the wrong fullyQualifiedNamespace.", ); should.equal( ownershipList[0].eventHubName, "testEventHub", - "The 1st ownership item has the wrong eventHubName." + "The 1st ownership item has the wrong eventHubName.", ); should.equal( ownershipList[0].partitionId, "0", - "The 1st ownership item has the wrong partitionId." + "The 1st ownership item has the wrong partitionId.", ); should.exist(ownershipList[0].lastModifiedTimeInMs, "lastModifiedTimeInMs should exist."); should.exist(ownershipList[0].etag, "etag should exist."); debug( `LastModifiedTime: ${ownershipList[0].lastModifiedTimeInMs!}, ETag: ${ ownershipList[0].etag - }` + }`, ); }); @@ -363,7 +362,7 @@ describe("TableCheckpointStore", function (): void { const listOwnership = await checkpointStore.listOwnership( "testNamespace.servicebus.windows.net", "testEventHub", - "testConsumerGroup" + "testConsumerGroup", ); should.equal(listOwnership.length, 0); @@ -386,40 +385,40 @@ describe("TableCheckpointStore", function (): void { const ownershipList = await checkpointStore.listOwnership( "testNamespace.servicebus.windows.net", "testEventHub", - "testConsumerGroup" + "testConsumerGroup", ); should.equal(ownershipList.length, 3, "Unexpected number of ownerships in list."); should.equal( ownershipList[0].ownerId, "Id1", - "The 1st ownership item has the wrong ownerId." + "The 1st ownership item has the wrong ownerId.", ); should.equal( ownershipList[0].consumerGroup, "testConsumerGroup", - "The 1st ownership item has the wrong consumerGroup." + "The 1st ownership item has the wrong consumerGroup.", ); should.equal( ownershipList[0].fullyQualifiedNamespace, "testNamespace.servicebus.windows.net", - "The 1st fullyQualifiedNamespace item has the wrong fullyQualifiedNamespace." + "The 1st fullyQualifiedNamespace item has the wrong fullyQualifiedNamespace.", ); should.equal( ownershipList[0].eventHubName, "testEventHub", - "The 1st ownership item has the wrong eventHubName." + "The 1st ownership item has the wrong eventHubName.", ); should.equal( ownershipList[0].eventHubName, "testEventHub", - "The 1st ownership item has the wrong eventHubName." + "The 1st ownership item has the wrong eventHubName.", ); should.equal( ownershipList[0].partitionId, "0", - "The 1st ownership item has the wrong partitionId." + "The 1st ownership item has the wrong partitionId.", ); should.exist(ownershipList[0].lastModifiedTimeInMs, "lastModifiedTimeInMs should exist."); should.exist(ownershipList[0].etag, "etag should exist."); @@ -427,7 +426,7 @@ describe("TableCheckpointStore", function (): void { should.equal( ownershipList[1].partitionId, "1", - "The 2nd ownership item has the wrong partitionId." + "The 2nd ownership item has the wrong partitionId.", ); should.exist(ownershipList[1].lastModifiedTimeInMs, "lastModifiedTimeInMs should exist."); should.exist(ownershipList[1].etag, "etag should exist."); @@ -435,7 +434,7 @@ describe("TableCheckpointStore", function (): void { should.equal( ownershipList[2].partitionId, "2", - "The 3rd ownership item has the wrong partitionId." + "The 3rd ownership item has the wrong partitionId.", ); should.exist(ownershipList[2].lastModifiedTimeInMs, "lastModifiedTimeInMs should exist."); should.exist(ownershipList[2].etag, "etag should exist."); @@ -466,7 +465,7 @@ describe("TableCheckpointStore", function (): void { let checkpoints = await checkpointStore.listCheckpoints( eventHubProperties.fullyQualifiedNamespace, eventHubProperties.eventHubName, - eventHubProperties.consumerGroup + eventHubProperties.consumerGroup, ); checkpoints.length.should.equal(3); checkpoints.sort((a, b) => a.partitionId.localeCompare(b.partitionId)); @@ -490,7 +489,7 @@ describe("TableCheckpointStore", function (): void { checkpoints = await checkpointStore.listCheckpoints( eventHubProperties.fullyQualifiedNamespace, eventHubProperties.eventHubName, - eventHubProperties.consumerGroup + eventHubProperties.consumerGroup, ); checkpoints.length.should.equal(3); checkpoints.sort((a, b) => a.partitionId.localeCompare(b.partitionId)); diff --git a/sdk/eventhub/mock-hub/package.json b/sdk/eventhub/mock-hub/package.json index b06a5d61b31b..4dbaccfb7e84 100644 --- a/sdk/eventhub/mock-hub/package.json +++ b/sdk/eventhub/mock-hub/package.json @@ -17,11 +17,11 @@ "build": "npm run clean && tsc -p .", "build:samples": "dev-tool samples prep && cd dist-samples && tsc -p .", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist types *.tgz *.log", "execute:samples": "npm run build:samples && dev-tool samples run dist-samples/javascript dist-samples/typescript/dist/dist-samples/typescript/src/", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -54,7 +54,6 @@ "@types/node": "^18.0.0", "dotenv": "^16.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "typescript": "~5.2.0", "ts-node": "^10.0.0" diff --git a/sdk/eventhub/mock-hub/src/sender/streamingPartitionSender.ts b/sdk/eventhub/mock-hub/src/sender/streamingPartitionSender.ts index 3fd56e3ab0b7..460932137ed9 100644 --- a/sdk/eventhub/mock-hub/src/sender/streamingPartitionSender.ts +++ b/sdk/eventhub/mock-hub/src/sender/streamingPartitionSender.ts @@ -33,7 +33,7 @@ export class StreamingPartitionSender { sender: Sender, partitionId: string, startPosition: EventPosition, - enableRuntimeMetric: boolean + enableRuntimeMetric: boolean, ) { this._messageStore = messageStore; this._messageIterator = messageStore.getMessageIterator(partitionId, startPosition); @@ -88,7 +88,7 @@ export class StreamingPartitionSender { const partitionInfo = this._messageStore.getPartitionInfo(this._partitionId); deliveryAnnotations["last_enqueued_offset"] = partitionInfo.lastEnqueuedOffset; deliveryAnnotations["last_enqueued_sequence_number"] = types.wrap_long( - partitionInfo.lastEnqueuedSequenceNumber + partitionInfo.lastEnqueuedSequenceNumber, ); deliveryAnnotations["last_enqueued_time_utc"] = partitionInfo.lastEnqueuedTimeUtc; deliveryAnnotations["runtime_info_retrieval_time_utc"] = new Date(); diff --git a/sdk/eventhub/mock-hub/src/server/mockServer.ts b/sdk/eventhub/mock-hub/src/server/mockServer.ts index 9d9aeedbedf4..5d99125ca7c2 100644 --- a/sdk/eventhub/mock-hub/src/server/mockServer.ts +++ b/sdk/eventhub/mock-hub/src/server/mockServer.ts @@ -385,10 +385,10 @@ export class MockServer extends EventEmitter { private _sendMessage = ( context: EventContext, outgoingMessage: Message, - toLinkName?: string + toLinkName?: string, ): void => { const sender = context.connection.find_sender( - (s: Sender) => s.name === toLinkName || s.target.address === toLinkName + (s: Sender) => s.name === toLinkName || s.target.address === toLinkName, ); if (sender) { sender.send(outgoingMessage); diff --git a/sdk/eventhub/mock-hub/src/services/eventHubs.ts b/sdk/eventhub/mock-hub/src/services/eventHubs.ts index a1e463a484aa..a0717ec477b3 100644 --- a/sdk/eventhub/mock-hub/src/services/eventHubs.ts +++ b/sdk/eventhub/mock-hub/src/services/eventHubs.ts @@ -266,7 +266,7 @@ export class MockEventHub implements IMockEventHub { !this._handleSenderOwnerLevel( entityComponents.consumerGroup, entityComponents.partitionId, - event.sender + event.sender, ) ) { return; @@ -278,7 +278,7 @@ export class MockEventHub implements IMockEventHub { // Check if we need to include runtime metrics on events we send to the client. const enableRuntimeMetric = desiredCapabilities.includes( - "com.microsoft:enable-receiver-runtime-metric" + "com.microsoft:enable-receiver-runtime-metric", ); // Get the starting position from which to start reading events. @@ -293,14 +293,14 @@ export class MockEventHub implements IMockEventHub { event.sender, entityComponents.partitionId, startPosition, - enableRuntimeMetric + enableRuntimeMetric, ); this._streamingPartitionSenderMap.set(event.sender, streamingPartitionSender); streamingPartitionSender.start(); this._storePartitionSender( entityComponents.consumerGroup, entityComponents.partitionId, - event.sender + event.sender, ); } catch (err: any) { // Probably should close the sender at this point. @@ -332,7 +332,7 @@ export class MockEventHub implements IMockEventHub { this._deletePartitionSender( entityComponents.consumerGroup, entityComponents.partitionId, - event.sender + event.sender, ); } } @@ -571,7 +571,7 @@ export class MockEventHub implements IMockEventHub { private _handleSenderOwnerLevel( consumerGroup: string, partitionId: string, - sender: Sender + sender: Sender, ): boolean { const ownerLevel = this._getSenderOwnerLevel(sender); @@ -688,7 +688,7 @@ export class MockEventHub implements IMockEventHub { private _handlePartitionSenderOpenValidation( entityComponents: PartionSenderEntityComponents, sender: Sender, - context: EventContext + context: EventContext, ): boolean { const { eventHubName, consumerGroup, partitionId } = entityComponents; if (!this.partitionIds.includes(partitionId)) { @@ -729,7 +729,7 @@ export class MockEventHub implements IMockEventHub { } private _parseReceiverPartitionEntityPath( - entityPath: string + entityPath: string, ): PartionReceiverEntityComponents | undefined { const parts = entityPath.split("/"); if (parts.length !== 3) { @@ -744,7 +744,7 @@ export class MockEventHub implements IMockEventHub { } private _parseSenderPartitionEntityPath( - entityPath: string + entityPath: string, ): PartionSenderEntityComponents | undefined { const parts = entityPath.split("/"); if (parts.length !== 5) { @@ -774,7 +774,7 @@ export class MockEventHub implements IMockEventHub { } const receiverRegex = new RegExp( - `^${this._name}\\/ConsumerGroups\\/[\\w\\d\\$\\-\\_]+\\/Partitions\\/[\\w\\d\\$\\-\\_]+` + `^${this._name}\\/ConsumerGroups\\/[\\w\\d\\$\\-\\_]+\\/Partitions\\/[\\w\\d\\$\\-\\_]+`, ); if (receiverRegex.test(searchPath)) { return true; diff --git a/sdk/eventhub/mock-hub/src/storage/messageStore.ts b/sdk/eventhub/mock-hub/src/storage/messageStore.ts index 55f5a44ff81a..edbe50be3de2 100644 --- a/sdk/eventhub/mock-hub/src/storage/messageStore.ts +++ b/sdk/eventhub/mock-hub/src/storage/messageStore.ts @@ -166,7 +166,7 @@ export class MessageStore { */ public async *getMessageIterator( partitionId: string, - startPosition: EventPosition + startPosition: EventPosition, ): AsyncIterator { const partitionStore = this._getPartitionStore(partitionId); const partitionViews = this._getPartitionViews(partitionId); diff --git a/sdk/eventhub/perf-tests/event-hubs-track-1/package.json b/sdk/eventhub/perf-tests/event-hubs-track-1/package.json index 0b85666b285e..f15054603bc6 100644 --- a/sdk/eventhub/perf-tests/event-hubs-track-1/package.json +++ b/sdk/eventhub/perf-tests/event-hubs-track-1/package.json @@ -15,12 +15,12 @@ "moment": "^2.24.0" }, "devDependencies": { + "@azure/dev-tool": "^1.0.0", "@types/node": "^8.0.0", "@types/uuid": "^8.0.0", "ts-node": "^8.3.0", "tslib": "^2.0.0", - "typescript": "~5.2.0", - "prettier": "^2.5.1" + "typescript": "~5.2.0" }, "private": true, "scripts": { @@ -28,9 +28,9 @@ "build": "tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm test-dist typings *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/eventhub/perf-tests/event-hubs/package.json b/sdk/eventhub/perf-tests/event-hubs/package.json index 5d0d4e8c6e8b..c0cf1ad09cd1 100644 --- a/sdk/eventhub/perf-tests/event-hubs/package.json +++ b/sdk/eventhub/perf-tests/event-hubs/package.json @@ -19,11 +19,11 @@ "@types/uuid": "^8.0.0", "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -32,9 +32,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm test-dist typings *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/eventhub/perf-tests/event-hubs/test/receive.spec.ts b/sdk/eventhub/perf-tests/event-hubs/test/receive.spec.ts index 08d2e449b40e..7ab1fe1eee55 100644 --- a/sdk/eventhub/perf-tests/event-hubs/test/receive.spec.ts +++ b/sdk/eventhub/perf-tests/event-hubs/test/receive.spec.ts @@ -58,7 +58,7 @@ async function main(): Promise { async function sendBatch( numberOfEvents: number, partitionIds: string[], - eventBodySize: number + eventBodySize: number, ): Promise { const _payload = Buffer.alloc(eventBodySize); const producer = new EventHubProducerClient(connectionString, eventHubName); @@ -100,7 +100,7 @@ async function RunTest(maxBatchSize: number, messages: number): Promise { processEvents, processError, }, - { maxBatchSize, startPosition: earliestEventPosition } + { maxBatchSize, startPosition: earliestEventPosition }, ); } @@ -132,7 +132,7 @@ async function WriteResults(messages: number): Promise { currentMessages, currentElapsed, maxMessages, - maxElapsed + maxElapsed, ); } while (_messages < messages); } @@ -143,7 +143,7 @@ function WriteResult( currentMessages: number, currentElapsed: number, maxMessages: number, - maxElapsed: number + maxElapsed: number, ): void { const memoryUsage = process.memoryUsage(); log( @@ -152,7 +152,7 @@ function WriteResult( `\tAvg MPS\t${Math.round((totalMessages * 1000) / totalElapsed)}` + `\tMax MPS\t${Math.round((maxMessages * 1000) / maxElapsed)}` + `\tRSS\t${memoryUsage.rss}` + - `\tHeapUsed\t${memoryUsage.heapUsed}` + `\tHeapUsed\t${memoryUsage.heapUsed}`, ); } diff --git a/sdk/eventhub/perf-tests/event-hubs/test/subscribe.spec.ts b/sdk/eventhub/perf-tests/event-hubs/test/subscribe.spec.ts index 046d2779b41f..6e8bf5444e92 100644 --- a/sdk/eventhub/perf-tests/event-hubs/test/subscribe.spec.ts +++ b/sdk/eventhub/perf-tests/event-hubs/test/subscribe.spec.ts @@ -109,7 +109,7 @@ export class SubscribeTest extends EventPerfTest { { maxBatchSize: this.parsedOptions["max-batch-size"].value, startPosition: earliestEventPosition, - } + }, ); } @@ -125,13 +125,13 @@ export class SubscribeTest extends EventPerfTest { console.log( `\tBatch count: ${this.callbackCallsCount}, Batch count per sec: ${ this.callbackCallsCount / this.parsedOptions.duration.value - }` + }`, ); console.log(`\tmessagesPerBatch: ${this.messagesPerBatch}`); console.log( `\tmessagesPerBatch... median: ${median(this.messagesPerBatch)}, avg: ${ this.messagesPerBatch.reduce((a, b) => a + b, 0) / this.messagesPerBatch.length - }, max: ${Math.max(...this.messagesPerBatch)}, min: ${Math.min(...this.messagesPerBatch)}` + }, max: ${Math.max(...this.messagesPerBatch)}, min: ${Math.min(...this.messagesPerBatch)}`, ); } } @@ -140,7 +140,7 @@ export class SubscribeTest extends EventPerfTest { async function sendBatch( numberOfEvents: number, eventBodySize: number, - partitions: number + partitions: number, ): Promise { const _payload = Buffer.alloc(eventBodySize); const producer = new EventHubProducerClient(connectionString, eventHubName); diff --git a/sdk/formrecognizer/ai-form-recognizer/package.json b/sdk/formrecognizer/ai-form-recognizer/package.json index 4fa2ba88c79b..30e16ee76f0c 100644 --- a/sdk/formrecognizer/ai-form-recognizer/package.json +++ b/sdk/formrecognizer/ai-form-recognizer/package.json @@ -56,11 +56,11 @@ "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && npm run bundle:bin && api-extractor run --local", "bundle:bin": "rollup -c rollup.config.bin.mjs 2>&1", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"bin/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"bin/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log test-results.*xml", "execute:samples": "dev-tool samples run samples-dev/", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"bin/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"bin/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 1200000 --exclude 'dist-esm/**/browser/*.spec.js' \"dist-esm/test/**/*.spec.js\" \"dist-esm/test/**/node/*.spec.js\"", diff --git a/sdk/formrecognizer/perf-tests/ai-form-recognizer/package.json b/sdk/formrecognizer/perf-tests/ai-form-recognizer/package.json index 5b53f3cc437b..09f46f97206e 100644 --- a/sdk/formrecognizer/perf-tests/ai-form-recognizer/package.json +++ b/sdk/formrecognizer/perf-tests/ai-form-recognizer/package.json @@ -19,10 +19,10 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "typescript": "~5.2.0", - "ts-node": "^10.0.0" + "ts-node": "^10.0.0", + "@azure/dev-tool": "^1.0.0" }, "scripts": { "perf-test:node": "npm run build && node dist-esm/index.spec.js", @@ -30,9 +30,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/formrecognizer/perf-tests/ai-form-recognizer/test/custom.spec.ts b/sdk/formrecognizer/perf-tests/ai-form-recognizer/test/custom.spec.ts index 80c487f7f535..690337531ad5 100644 --- a/sdk/formrecognizer/perf-tests/ai-form-recognizer/test/custom.spec.ts +++ b/sdk/formrecognizer/perf-tests/ai-form-recognizer/test/custom.spec.ts @@ -67,7 +67,7 @@ export class CustomModelRecognitionTest extends PerfTest; } diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/isUnexpected.ts b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/isUnexpected.ts index cea03c61038a..7121714da98c 100644 --- a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/isUnexpected.ts +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/isUnexpected.ts @@ -17,14 +17,14 @@ const responseMap: Record = { }; export function isUnexpected( - response: GetJob200Response | GetJobDefaultResponse + response: GetJob200Response | GetJobDefaultResponse, ): response is GetJobDefaultResponse; export function isUnexpected( response: | CreateJob200Response | CreateJob202Response | CreateJobLogicalResponse - | CreateJobDefaultResponse + | CreateJobDefaultResponse, ): response is CreateJobDefaultResponse; export function isUnexpected( response: @@ -33,7 +33,7 @@ export function isUnexpected( | CreateJob200Response | CreateJob202Response | CreateJobLogicalResponse - | CreateJobDefaultResponse + | CreateJobDefaultResponse, ): response is GetJobDefaultResponse | CreateJobDefaultResponse { const lroOriginal = response.headers["x-ms-original-url"]; const url = new URL(lroOriginal ?? response.request.url); @@ -76,7 +76,7 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // {guid} ==> $ // {guid}:export ==> :export$ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "" + pathParts[j] || "", ); if (!isMatched) { diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/pollingHelper.ts b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/pollingHelper.ts index dc5151e9b83b..8d474ad66d83 100644 --- a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/pollingHelper.ts +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/pollingHelper.ts @@ -24,16 +24,16 @@ import { * @returns - A poller object to poll for operation state updates and eventually get the final response. */ export async function getLongRunningPoller< - TResult extends CreateJobLogicalResponse | CreateJobDefaultResponse + TResult extends CreateJobLogicalResponse | CreateJobDefaultResponse, >( client: Client, initialResponse: CreateJob200Response | CreateJob202Response | CreateJobDefaultResponse, - options?: CreateHttpPollerOptions> + options?: CreateHttpPollerOptions>, ): Promise, TResult>>; export async function getLongRunningPoller( client: Client, initialResponse: TResult, - options: CreateHttpPollerOptions> = {} + options: CreateHttpPollerOptions> = {}, ): Promise, TResult>> { const poller: LongRunningOperation = { requestMethod: initialResponse.request.method, diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/package.json b/sdk/healthinsights/health-insights-clinicalmatching-rest/package.json index 9c6771d649b4..b8dd8876d597 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/package.json +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/package.json @@ -38,11 +38,11 @@ "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "generate:client": "echo skipped", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -76,7 +76,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^2.1.2", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/clientDefinitions.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/clientDefinitions.ts index 365aab9869d0..33ced90129d1 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/clientDefinitions.ts +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/clientDefinitions.ts @@ -19,7 +19,7 @@ export interface GetJob { export interface CreateJob { /** Creates a Trial Matcher job with the given request body. */ post( - options?: CreateJobParameters + options?: CreateJobParameters, ): StreamableMethod; } diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/clinicalMatchingRest.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/clinicalMatchingRest.ts index ba27a59f472e..f0f26848d651 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/clinicalMatchingRest.ts +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/clinicalMatchingRest.ts @@ -15,7 +15,7 @@ import { ClinicalMatchingRestClient } from "./clientDefinitions"; export default function createClient( endpoint: string, credentials: KeyCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): ClinicalMatchingRestClient { const baseUrl = options.baseUrl ?? `${endpoint}/healthinsights`; options.apiVersion = options.apiVersion ?? "2023-03-01-preview"; diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/isUnexpected.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/isUnexpected.ts index ccd8b4d7b38b..7af7e960511c 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/isUnexpected.ts +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/isUnexpected.ts @@ -17,14 +17,14 @@ const responseMap: Record = { }; export function isUnexpected( - response: GetJob200Response | GetJobDefaultResponse + response: GetJob200Response | GetJobDefaultResponse, ): response is GetJobDefaultResponse; export function isUnexpected( response: | CreateJob200Response | CreateJob202Response | CreateJobLogicalResponse - | CreateJobDefaultResponse + | CreateJobDefaultResponse, ): response is CreateJobDefaultResponse; export function isUnexpected( response: @@ -33,7 +33,7 @@ export function isUnexpected( | CreateJob200Response | CreateJob202Response | CreateJobLogicalResponse - | CreateJobDefaultResponse + | CreateJobDefaultResponse, ): response is GetJobDefaultResponse | CreateJobDefaultResponse { const lroOriginal = response.headers["x-ms-original-url"]; const url = new URL(lroOriginal ?? response.request.url); @@ -76,7 +76,7 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // {guid} ==> $ // {guid}:export ==> :export$ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "" + pathParts[j] || "", ); if (!isMatched) { diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/pollingHelper.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/pollingHelper.ts index dc5151e9b83b..8d474ad66d83 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/pollingHelper.ts +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/pollingHelper.ts @@ -24,16 +24,16 @@ import { * @returns - A poller object to poll for operation state updates and eventually get the final response. */ export async function getLongRunningPoller< - TResult extends CreateJobLogicalResponse | CreateJobDefaultResponse + TResult extends CreateJobLogicalResponse | CreateJobDefaultResponse, >( client: Client, initialResponse: CreateJob200Response | CreateJob202Response | CreateJobDefaultResponse, - options?: CreateHttpPollerOptions> + options?: CreateHttpPollerOptions>, ): Promise, TResult>>; export async function getLongRunningPoller( client: Client, initialResponse: TResult, - options: CreateHttpPollerOptions> = {} + options: CreateHttpPollerOptions> = {}, ): Promise, TResult>> { const poller: LongRunningOperation = { requestMethod: initialResponse.request.method, diff --git a/sdk/identity/identity-broker/package.json b/sdk/identity/identity-broker/package.json index 20cb1e7cfb06..3c2cdf3512dc 100644 --- a/sdk/identity/identity-broker/package.json +++ b/sdk/identity/identity-broker/package.json @@ -11,11 +11,11 @@ "build:samples": "echo skipped", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run extract-api && tsc -p . && dev-tool run bundle", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm types \"*.tgz\" \"*.log\"", "execute:samples": "echo skipped", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -83,8 +83,7 @@ "rimraf": "^5.0.1", "typescript": "~5.0.0", "sinon": "^17.0.0", - "wtfnode": "0.9.1", - "prettier": "^2.8.8" + "wtfnode": "0.9.1" }, "//sampleConfiguration": { "productName": "Azure Identity Brokered Auth Plugin", diff --git a/sdk/identity/identity-broker/test/internal/node/interactiveBrowserCredential.spec.ts b/sdk/identity/identity-broker/test/internal/node/interactiveBrowserCredential.spec.ts index 0064842f79df..95d861df83b8 100644 --- a/sdk/identity/identity-broker/test/internal/node/interactiveBrowserCredential.spec.ts +++ b/sdk/identity/identity-broker/test/internal/node/interactiveBrowserCredential.spec.ts @@ -62,7 +62,7 @@ describe("InteractiveBrowserCredential (internal)", function (this: Mocha.Suite) }; assert.throws(() => { new InteractiveBrowserCredential( - recorder.configureClientOptions(interactiveBrowserCredentialOptions) + recorder.configureClientOptions(interactiveBrowserCredentialOptions), ); }, "Broker for WAM was requested to be enabled, but no native broker was configured."); } else { @@ -93,7 +93,7 @@ describe("InteractiveBrowserCredential (internal)", function (this: Mocha.Suite) const scope = "https://graph.microsoft.com/.default"; const credential = new InteractiveBrowserCredential( - recorder.configureClientOptions(interactiveBrowserCredentialOptions) + recorder.configureClientOptions(interactiveBrowserCredentialOptions), ); try { diff --git a/sdk/identity/identity-cache-persistence/package.json b/sdk/identity/identity-cache-persistence/package.json index 7f590b21bbaf..9776565ec580 100644 --- a/sdk/identity/identity-cache-persistence/package.json +++ b/sdk/identity/identity-cache-persistence/package.json @@ -11,11 +11,11 @@ "build:samples": "echo skipped", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && npm run extract-api && tsc -p . && dev-tool run bundle", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\" \"samples-dev/**/*.ts\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\" \"samples-dev/**/*.ts\"", "clean": "rimraf dist dist-* types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\" \"samples-dev/**/*.ts\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\" \"samples-dev/**/*.ts\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -88,7 +88,6 @@ "util": "^0.12.1", "sinon": "^17.0.0", "@types/sinon": "^17.0.0", - "prettier": "^2.5.1", "ts-node": "^10.0.0" } } diff --git a/sdk/identity/identity-cache-persistence/src/platforms.ts b/sdk/identity/identity-cache-persistence/src/platforms.ts index 040c13c23ad5..74207f398dae 100644 --- a/sdk/identity/identity-cache-persistence/src/platforms.ts +++ b/sdk/identity/identity-cache-persistence/src/platforms.ts @@ -93,7 +93,7 @@ export const msalPersistencePlatforms: Partial => FilePersistenceWithDataProtection.create( getPersistencePath(name), - DataProtectionScope.CurrentUser + DataProtectionScope.CurrentUser, ), darwin: async (options: MsalPersistenceOptions = {}): Promise => { diff --git a/sdk/identity/identity-cache-persistence/src/provider.ts b/sdk/identity/identity-cache-persistence/src/provider.ts index cfca6078e5b2..ea6a59cb5d11 100644 --- a/sdk/identity/identity-cache-persistence/src/provider.ts +++ b/sdk/identity/identity-cache-persistence/src/provider.ts @@ -22,7 +22,7 @@ export async function createPersistence(options: MsalPersistenceOptions): Promis } export async function createPersistenceCachePlugin( - options?: MsalPersistenceOptions + options?: MsalPersistenceOptions, ): Promise { const persistence = await createPersistence(options ?? {}); diff --git a/sdk/identity/identity-cache-persistence/test/internal/node/clientCertificateCredential.spec.ts b/sdk/identity/identity-cache-persistence/test/internal/node/clientCertificateCredential.spec.ts index d9569ec06723..a2ec769e3c3f 100644 --- a/sdk/identity/identity-cache-persistence/test/internal/node/clientCertificateCredential.spec.ts +++ b/sdk/identity/identity-cache-persistence/test/internal/node/clientCertificateCredential.spec.ts @@ -38,7 +38,7 @@ describe("ClientCertificateCredential (internal)", function (this: Mocha.Suite) // MsalClientSecret calls to this method underneath. doGetTokenSpy = setup.sandbox.spy( ConfidentialClientApplication.prototype, - "acquireTokenByClientCredential" + "acquireTokenByClientCredential", ); }); afterEach(async function () { @@ -76,7 +76,7 @@ describe("ClientCertificateCredential (internal)", function (this: Mocha.Suite) env.AZURE_TENANT_ID!, env.AZURE_CLIENT_ID!, certificatePath, - recorder.configureClientOptions({ tokenCachePersistenceOptions }) + recorder.configureClientOptions({ tokenCachePersistenceOptions }), ); await credential.getToken(scope); @@ -111,7 +111,7 @@ describe("ClientCertificateCredential (internal)", function (this: Mocha.Suite) env.AZURE_TENANT_ID!, env.AZURE_CLIENT_ID!, certificatePath, - recorder.configureClientOptions({ tokenCachePersistenceOptions }) + recorder.configureClientOptions({ tokenCachePersistenceOptions }), ); await credential.getToken(scope); diff --git a/sdk/identity/identity-cache-persistence/test/internal/node/clientSecretCredential.spec.ts b/sdk/identity/identity-cache-persistence/test/internal/node/clientSecretCredential.spec.ts index 07562f644c3f..c967a9c841e4 100644 --- a/sdk/identity/identity-cache-persistence/test/internal/node/clientSecretCredential.spec.ts +++ b/sdk/identity/identity-cache-persistence/test/internal/node/clientSecretCredential.spec.ts @@ -34,7 +34,7 @@ describe("ClientSecretCredential (internal)", function (this: Mocha.Suite) { // MsalClientSecret calls to this method underneath. doGetTokenSpy = setup.sandbox.spy( ConfidentialClientApplication.prototype, - "acquireTokenByClientCredential" + "acquireTokenByClientCredential", ); }); afterEach(async function () { @@ -61,7 +61,7 @@ describe("ClientSecretCredential (internal)", function (this: Mocha.Suite) { env.AZURE_TENANT_ID!, env.AZURE_CLIENT_ID!, env.AZURE_CLIENT_SECRET!, - recorder.configureClientOptions({ tokenCachePersistenceOptions }) + recorder.configureClientOptions({ tokenCachePersistenceOptions }), ); await credential.getToken(scope); @@ -99,7 +99,7 @@ describe("ClientSecretCredential (internal)", function (this: Mocha.Suite) { env.AZURE_TENANT_ID!, env.AZURE_CLIENT_ID!, env.AZURE_CLIENT_SECRET!, - recorder.configureClientOptions({ tokenCachePersistenceOptions }) + recorder.configureClientOptions({ tokenCachePersistenceOptions }), ); await credential.getToken(scope); diff --git a/sdk/identity/identity-cache-persistence/test/internal/node/deviceCodeCredential.spec.ts b/sdk/identity/identity-cache-persistence/test/internal/node/deviceCodeCredential.spec.ts index 66a1ae6796fa..9dbb05211d71 100644 --- a/sdk/identity/identity-cache-persistence/test/internal/node/deviceCodeCredential.spec.ts +++ b/sdk/identity/identity-cache-persistence/test/internal/node/deviceCodeCredential.spec.ts @@ -32,7 +32,7 @@ describe("DeviceCodeCredential (internal)", function (this: Mocha.Suite) { // MsalClientSecret calls to this method underneath. doGetTokenSpy = setup.sandbox.spy( PublicClientApplication.prototype, - "acquireTokenByDeviceCode" + "acquireTokenByDeviceCode", ); }); afterEach(async function () { @@ -64,7 +64,7 @@ describe("DeviceCodeCredential (internal)", function (this: Mocha.Suite) { const credential = new DeviceCodeCredential( recorder.configureClientOptions({ tokenCachePersistenceOptions, - }) + }), ); await credential.getToken(scope); @@ -96,7 +96,7 @@ describe("DeviceCodeCredential (internal)", function (this: Mocha.Suite) { const credential = new DeviceCodeCredential( recorder.configureClientOptions({ tokenCachePersistenceOptions, - }) + }), ); await credential.getToken(scope); @@ -137,7 +137,7 @@ describe("DeviceCodeCredential (internal)", function (this: Mocha.Suite) { // To be able to re-use the account, the Token Cache must also have been provided. // TODO: Perhaps make the account parameter part of the tokenCachePersistenceOptions? tokenCachePersistenceOptions, - }) + }), ); const account = await credential.authenticate(scope); @@ -151,7 +151,7 @@ describe("DeviceCodeCredential (internal)", function (this: Mocha.Suite) { // To be able to re-use the account, the Token Cache must also have been provided. // TODO: Perhaps make the account parameter part of the tokenCachePersistenceOptions? tokenCachePersistenceOptions, - }) + }), ); // The cache should have a token a this point diff --git a/sdk/identity/identity-cache-persistence/test/internal/node/setup.spec.ts b/sdk/identity/identity-cache-persistence/test/internal/node/setup.spec.ts index 49810e16d903..7896dd787d96 100644 --- a/sdk/identity/identity-cache-persistence/test/internal/node/setup.spec.ts +++ b/sdk/identity/identity-cache-persistence/test/internal/node/setup.spec.ts @@ -13,7 +13,7 @@ import { useIdentityPlugin } from "../../../../identity/src"; if (!process.versions.node.startsWith("16")) { console.warn( "WARNING: skipping persistence tests on incompatible node version:", - process.version + process.version, ); console.warn("Persistence tests are only compatible with Node 16."); process.exit(0); diff --git a/sdk/identity/identity-cache-persistence/test/internal/node/usernamePasswordCredential.spec.ts b/sdk/identity/identity-cache-persistence/test/internal/node/usernamePasswordCredential.spec.ts index 6bd6a4fcbb24..dc20f68ac7c3 100644 --- a/sdk/identity/identity-cache-persistence/test/internal/node/usernamePasswordCredential.spec.ts +++ b/sdk/identity/identity-cache-persistence/test/internal/node/usernamePasswordCredential.spec.ts @@ -32,7 +32,7 @@ describe("UsernamePasswordCredential (internal)", function (this: Mocha.Suite) { // MsalClientSecret calls to this method underneath. doGetTokenSpy = setup.sandbox.spy( PublicClientApplication.prototype, - "acquireTokenByUsernamePassword" + "acquireTokenByUsernamePassword", ); }); @@ -63,7 +63,7 @@ describe("UsernamePasswordCredential (internal)", function (this: Mocha.Suite) { env.AZURE_CLIENT_ID!, env.AZURE_USERNAME!, env.AZURE_PASSWORD!, - recorder.configureClientOptions({ tokenCachePersistenceOptions }) + recorder.configureClientOptions({ tokenCachePersistenceOptions }), ); await credential.getToken(scope); @@ -93,7 +93,7 @@ describe("UsernamePasswordCredential (internal)", function (this: Mocha.Suite) { env.AZURE_CLIENT_ID!, env.AZURE_USERNAME!, env.AZURE_PASSWORD!, - recorder.configureClientOptions({ tokenCachePersistenceOptions }) + recorder.configureClientOptions({ tokenCachePersistenceOptions }), ); await credential.getToken(scope); diff --git a/sdk/identity/identity-vscode/package.json b/sdk/identity/identity-vscode/package.json index d7c550f72a5f..1cdbc6f2457c 100644 --- a/sdk/identity/identity-vscode/package.json +++ b/sdk/identity/identity-vscode/package.json @@ -11,11 +11,11 @@ "build:samples": "echo skipped", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && npm run extract-api && tsc -p . && dev-tool run bundle", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\" \"samples-dev/**/*.ts\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\" \"samples-dev/**/*.ts\"", "clean": "rimraf dist dist-* types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\" \"samples-dev/**/*.ts\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\" \"samples-dev/**/*.ts\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -80,7 +80,6 @@ "eslint": "^8.0.0", "inherits": "^2.0.3", "mocha": "^10.0.0", - "prettier": "^2.5.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.0", "sinon": "^17.0.0", diff --git a/sdk/identity/identity-vscode/src/index.ts b/sdk/identity/identity-vscode/src/index.ts index db4dd7e8b010..5aad7bcd3625 100644 --- a/sdk/identity/identity-vscode/src/index.ts +++ b/sdk/identity/identity-vscode/src/index.ts @@ -39,6 +39,6 @@ export const vsCodePlugin: IdentityPlugin = (context) => { const { vsCodeCredentialControl } = context as AzurePluginContext; vsCodeCredentialControl.setVsCodeCredentialFinder(() => - keytar.findCredentials(VSCodeServiceName) + keytar.findCredentials(VSCodeServiceName), ); }; diff --git a/sdk/identity/identity/package.json b/sdk/identity/identity/package.json index 6fc746704e86..e99964914b0a 100644 --- a/sdk/identity/identity/package.json +++ b/sdk/identity/identity/package.json @@ -52,8 +52,8 @@ "clean": "rimraf dist dist-* types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 180000 'dist-esm/test/public/node/*.spec.js' 'dist-esm/test/internal/node/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -154,7 +154,6 @@ "mocha": "^10.0.0", "ms": "^2.1.3", "c8": "^8.0.0", - "prettier": "^2.5.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.0", "sinon": "^17.0.0", diff --git a/sdk/identity/identity/samples-dev/clientSecretCredential.ts b/sdk/identity/identity/samples-dev/clientSecretCredential.ts index 7adc92e80f78..a23b4ca5c8aa 100644 --- a/sdk/identity/identity/samples-dev/clientSecretCredential.ts +++ b/sdk/identity/identity/samples-dev/clientSecretCredential.ts @@ -15,7 +15,7 @@ export async function main(): Promise { const credential = new ClientSecretCredential( process.env.AZURE_TENANT_ID!, // The tenant ID in Microsoft Entra ID process.env.AZURE_CLIENT_ID!, // The app registration client Id in the Microsoft Entra tenant - process.env.AZURE_CLIENT_SECRET! // The app registration secret for the registered application + process.env.AZURE_CLIENT_SECRET!, // The app registration secret for the registered application ); const keyVaultUrl = `https://key-vault-name.vault.azure.net`; diff --git a/sdk/identity/identity/src/client/identityClient.ts b/sdk/identity/identity/src/client/identityClient.ts index da4e73768fa0..75f56dd48c47 100644 --- a/sdk/identity/identity/src/client/identityClient.ts +++ b/sdk/identity/identity/src/client/identityClient.ts @@ -121,13 +121,13 @@ export class IdentityClient extends ServiceClient implements INetworkModule { }; logger.info( - `IdentityClient: [${request.url}] token acquired, expires on ${token.accessToken.expiresOnTimestamp}` + `IdentityClient: [${request.url}] token acquired, expires on ${token.accessToken.expiresOnTimestamp}`, ); return token; } else { const error = new AuthenticationError(response.status, response.bodyAsText); logger.warning( - `IdentityClient: authentication error. HTTP status: ${response.status}, ${error.errorResponse.errorDescription}` + `IdentityClient: authentication error. HTTP status: ${response.status}, ${error.errorResponse.errorDescription}`, ); throw error; } @@ -139,13 +139,13 @@ export class IdentityClient extends ServiceClient implements INetworkModule { scopes: string, refreshToken: string | undefined, clientSecret: string | undefined, - options: GetTokenOptions = {} + options: GetTokenOptions = {}, ): Promise { if (refreshToken === undefined) { return null; } logger.info( - `IdentityClient: refreshing access token with client ID: ${clientId}, scopes: ${scopes} started` + `IdentityClient: refreshing access token with client ID: ${clientId}, scopes: ${scopes} started`, ); const refreshParams = { @@ -194,12 +194,12 @@ export class IdentityClient extends ServiceClient implements INetworkModule { return null; } else { logger.warning( - `IdentityClient: failed refreshing token for client ID: ${clientId}: ${err}` + `IdentityClient: failed refreshing token for client ID: ${clientId}: ${err}`, ); throw err; } } - } + }, ); } @@ -249,7 +249,7 @@ export class IdentityClient extends ServiceClient implements INetworkModule { async sendGetRequestAsync( url: string, - options?: NetworkRequestOptions + options?: NetworkRequestOptions, ): Promise> { const request = createPipelineRequest({ url, @@ -272,7 +272,7 @@ export class IdentityClient extends ServiceClient implements INetworkModule { async sendPostRequestAsync( url: string, - options?: NetworkRequestOptions + options?: NetworkRequestOptions, ): Promise> { const request = createPipelineRequest({ url, @@ -327,18 +327,18 @@ export class IdentityClient extends ServiceClient implements INetworkModule { } const base64Metadata = accessToken.split(".")[1]; const { appid, upn, tid, oid } = JSON.parse( - Buffer.from(base64Metadata, "base64").toString("utf8") + Buffer.from(base64Metadata, "base64").toString("utf8"), ); logger.info( `[Authenticated account] Client ID: ${appid}. Tenant ID: ${tid}. User Principal Name: ${ upn || unavailableUpn - }. Object ID (user): ${oid}` + }. Object ID (user): ${oid}`, ); } catch (e: any) { logger.warning( "allowLoggingAccountIdentifiers was set, but we couldn't log the account information. Error:", - e.message + e.message, ); } } diff --git a/sdk/identity/identity/src/credentials/authorizationCodeCredential.browser.ts b/sdk/identity/identity/src/credentials/authorizationCodeCredential.browser.ts index 9821e29f078c..62f6a593b09e 100644 --- a/sdk/identity/identity/src/credentials/authorizationCodeCredential.browser.ts +++ b/sdk/identity/identity/src/credentials/authorizationCodeCredential.browser.ts @@ -6,7 +6,7 @@ import { credentialLogger, formatError } from "../util/logging"; import { AuthorizationCodeCredentialOptions } from "./authorizationCodeCredentialOptions"; const BrowserNotSupportedError = new Error( - "AuthorizationCodeCredential is not supported in the browser. InteractiveBrowserCredential is more appropriate for this use case." + "AuthorizationCodeCredential is not supported in the browser. InteractiveBrowserCredential is more appropriate for this use case.", ); const logger = credentialLogger("AuthorizationCodeCredential"); @@ -20,14 +20,14 @@ export class AuthorizationCodeCredential implements TokenCredential { clientSecret: string, authorizationCode: string, redirectUri: string, - options?: AuthorizationCodeCredentialOptions + options?: AuthorizationCodeCredentialOptions, ); constructor( tenantId: string | "common", clientId: string, authorizationCode: string, redirectUri: string, - options?: AuthorizationCodeCredentialOptions + options?: AuthorizationCodeCredentialOptions, ); constructor() { logger.info(formatError("", BrowserNotSupportedError)); diff --git a/sdk/identity/identity/src/credentials/authorizationCodeCredential.ts b/sdk/identity/identity/src/credentials/authorizationCodeCredential.ts index ff27303f6a7d..b8f7df4a5531 100644 --- a/sdk/identity/identity/src/credentials/authorizationCodeCredential.ts +++ b/sdk/identity/identity/src/credentials/authorizationCodeCredential.ts @@ -59,7 +59,7 @@ export class AuthorizationCodeCredential implements TokenCredential { clientSecret: string, authorizationCode: string, redirectUri: string, - options?: AuthorizationCodeCredentialOptions + options?: AuthorizationCodeCredentialOptions, ); /** * Creates an instance of AuthorizationCodeCredential with the details needed @@ -87,7 +87,7 @@ export class AuthorizationCodeCredential implements TokenCredential { clientId: string, authorizationCode: string, redirectUri: string, - options?: AuthorizationCodeCredentialOptions + options?: AuthorizationCodeCredentialOptions, ); /** * @hidden @@ -99,7 +99,7 @@ export class AuthorizationCodeCredential implements TokenCredential { clientSecretOrAuthorizationCode: string, authorizationCodeOrRedirectUri: string, redirectUriOrOptions: string | AuthorizationCodeCredentialOptions | undefined, - options?: AuthorizationCodeCredentialOptions + options?: AuthorizationCodeCredentialOptions, ) { checkTenantId(logger, tenantId); let clientSecret: string | undefined = clientSecretOrAuthorizationCode; @@ -120,7 +120,7 @@ export class AuthorizationCodeCredential implements TokenCredential { // TODO: Validate tenant if provided this.tenantId = tenantId; this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds( - options?.additionallyAllowedTenants + options?.additionallyAllowedTenants, ); this.msalFlow = new MsalAuthorizationCode({ @@ -151,7 +151,7 @@ export class AuthorizationCodeCredential implements TokenCredential { const tenantId = processMultiTenantRequest( this.tenantId, newOptions, - this.additionallyAllowedTenantIds + this.additionallyAllowedTenantIds, ); newOptions.tenantId = tenantId; @@ -160,7 +160,7 @@ export class AuthorizationCodeCredential implements TokenCredential { ...newOptions, disableAutomaticAuthentication: this.disableAutomaticAuthentication, }); - } + }, ); } } diff --git a/sdk/identity/identity/src/credentials/azureApplicationCredential.browser.ts b/sdk/identity/identity/src/credentials/azureApplicationCredential.browser.ts index da515d7f4c69..281ac6c8e9fb 100644 --- a/sdk/identity/identity/src/credentials/azureApplicationCredential.browser.ts +++ b/sdk/identity/identity/src/credentials/azureApplicationCredential.browser.ts @@ -7,7 +7,7 @@ import { ChainedTokenCredential } from "./chainedTokenCredential"; import { TokenCredentialOptions } from "../tokenCredentialOptions"; const BrowserNotSupportedError = new Error( - "ApplicationCredential is not supported in the browser. Use InteractiveBrowserCredential instead." + "ApplicationCredential is not supported in the browser. Use InteractiveBrowserCredential instead.", ); const logger = credentialLogger("ApplicationCredential"); diff --git a/sdk/identity/identity/src/credentials/azureCliCredential.ts b/sdk/identity/identity/src/credentials/azureCliCredential.ts index 0ef5673cf1b5..beaa979490a2 100644 --- a/sdk/identity/identity/src/credentials/azureCliCredential.ts +++ b/sdk/identity/identity/src/credentials/azureCliCredential.ts @@ -41,7 +41,7 @@ export const cliCredentialInternals = { async getAzureCliAccessToken( resource: string, tenantId?: string, - timeout?: number + timeout?: number, ): Promise<{ stdout: string; stderr: string; error: Error | null }> { let tenantSection: string[] = []; if (tenantId) { @@ -63,7 +63,7 @@ export const cliCredentialInternals = { { cwd: cliCredentialInternals.getSafeWorkingDir(), shell: true, timeout }, (error, stdout, stderr) => { resolve({ stdout: stdout, stderr: stderr, error }); - } + }, ); } catch (err: any) { reject(err); @@ -99,7 +99,7 @@ export class AzureCliCredential implements TokenCredential { this.tenantId = options?.tenantId; } this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds( - options?.additionallyAllowedTenants + options?.additionallyAllowedTenants, ); this.timeout = options?.processTimeoutInMs; } @@ -114,12 +114,12 @@ export class AzureCliCredential implements TokenCredential { */ public async getToken( scopes: string | string[], - options: GetTokenOptions = {} + options: GetTokenOptions = {}, ): Promise { const tenantId = processMultiTenantRequest( this.tenantId, options, - this.additionallyAllowedTenantIds + this.additionallyAllowedTenantIds, ); if (tenantId) { @@ -135,7 +135,7 @@ export class AzureCliCredential implements TokenCredential { const obj = await cliCredentialInternals.getAzureCliAccessToken( resource, tenantId, - this.timeout + this.timeout, ); const specificScope = obj.stderr?.match("(.*)az login --scope(.*)"); const isLoginError = obj.stderr?.match("(.*)az login(.*)") && !specificScope; @@ -144,14 +144,14 @@ export class AzureCliCredential implements TokenCredential { if (isNotInstallError) { const error = new CredentialUnavailableError( - "Azure CLI could not be found. Please visit https://aka.ms/azure-cli for installation instructions and then, once installed, authenticate to your Azure account using 'az login'." + "Azure CLI could not be found. Please visit https://aka.ms/azure-cli for installation instructions and then, once installed, authenticate to your Azure account using 'az login'.", ); logger.getToken.info(formatError(scopes, error)); throw error; } if (isLoginError) { const error = new CredentialUnavailableError( - "Please run 'az login' from a command prompt to authenticate before using this credential." + "Please run 'az login' from a command prompt to authenticate before using this credential.", ); logger.getToken.info(formatError(scopes, error)); throw error; @@ -176,7 +176,7 @@ export class AzureCliCredential implements TokenCredential { err.name === "CredentialUnavailableError" ? err : new CredentialUnavailableError( - (err as Error).message || "Unknown error while trying to retrieve the access token" + (err as Error).message || "Unknown error while trying to retrieve the access token", ); logger.getToken.info(formatError(scopes, error)); throw error; diff --git a/sdk/identity/identity/src/credentials/azureDeveloperCliCredential.browser.ts b/sdk/identity/identity/src/credentials/azureDeveloperCliCredential.browser.ts index f861a4fe18ec..5573170e7570 100644 --- a/sdk/identity/identity/src/credentials/azureDeveloperCliCredential.browser.ts +++ b/sdk/identity/identity/src/credentials/azureDeveloperCliCredential.browser.ts @@ -5,7 +5,7 @@ import { AccessToken, TokenCredential } from "@azure/core-auth"; import { credentialLogger, formatError } from "../util/logging"; const BrowserNotSupportedError = new Error( - "AzureDeveloperCliCredential is not supported in the browser." + "AzureDeveloperCliCredential is not supported in the browser.", ); const logger = credentialLogger("AzureDeveloperCliCredential"); diff --git a/sdk/identity/identity/src/credentials/azureDeveloperCliCredential.ts b/sdk/identity/identity/src/credentials/azureDeveloperCliCredential.ts index 3a9e10038cb7..9b65ee14320b 100644 --- a/sdk/identity/identity/src/credentials/azureDeveloperCliCredential.ts +++ b/sdk/identity/identity/src/credentials/azureDeveloperCliCredential.ts @@ -26,7 +26,7 @@ export const developerCliCredentialInternals = { if (process.platform === "win32") { if (!process.env.SystemRoot) { throw new Error( - "Azure Developer CLI credential expects a 'SystemRoot' environment variable" + "Azure Developer CLI credential expects a 'SystemRoot' environment variable", ); } return process.env.SystemRoot; @@ -43,7 +43,7 @@ export const developerCliCredentialInternals = { async getAzdAccessToken( scopes: string[], tenantId?: string, - timeout?: number + timeout?: number, ): Promise<{ stdout: string; stderr: string; error: Error | null }> { let tenantSection: string[] = []; if (tenantId) { @@ -60,7 +60,7 @@ export const developerCliCredentialInternals = { "json", ...scopes.reduce( (previous, current) => previous.concat("--scope", current), - [] + [], ), ...tenantSection, ], @@ -70,7 +70,7 @@ export const developerCliCredentialInternals = { }, (error, stdout, stderr) => { resolve({ stdout, stderr, error }); - } + }, ); } catch (err: any) { reject(err); @@ -125,7 +125,7 @@ export class AzureDeveloperCliCredential implements TokenCredential { this.tenantId = options?.tenantId; } this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds( - options?.additionallyAllowedTenants + options?.additionallyAllowedTenants, ); this.timeout = options?.processTimeoutInMs; } @@ -140,12 +140,12 @@ export class AzureDeveloperCliCredential implements TokenCredential { */ public async getToken( scopes: string | string[], - options: GetTokenOptions = {} + options: GetTokenOptions = {}, ): Promise { const tenantId = processMultiTenantRequest( this.tenantId, options, - this.additionallyAllowedTenantIds + this.additionallyAllowedTenantIds, ); if (tenantId) { checkTenantId(logger, tenantId); @@ -166,7 +166,7 @@ export class AzureDeveloperCliCredential implements TokenCredential { const obj = await developerCliCredentialInternals.getAzdAccessToken( scopeList, tenantId, - this.timeout + this.timeout, ); const isNotLoggedInError = obj.stderr?.match("not logged in, run `azd login` to login") || @@ -177,7 +177,7 @@ export class AzureDeveloperCliCredential implements TokenCredential { if (isNotInstallError || (obj.error && (obj.error as any).code === "ENOENT")) { const error = new CredentialUnavailableError( - "Azure Developer CLI couldn't be found. To mitigate this issue, see the troubleshooting guidelines at https://aka.ms/azsdk/js/identity/azdevclicredential/troubleshoot." + "Azure Developer CLI couldn't be found. To mitigate this issue, see the troubleshooting guidelines at https://aka.ms/azsdk/js/identity/azdevclicredential/troubleshoot.", ); logger.getToken.info(formatError(scopes, error)); throw error; @@ -185,7 +185,7 @@ export class AzureDeveloperCliCredential implements TokenCredential { if (isNotLoggedInError) { const error = new CredentialUnavailableError( - "Please run 'azd auth login' from a command prompt to authenticate before using this credential. For more information, see the troubleshooting guidelines at https://aka.ms/azsdk/js/identity/azdevclicredential/troubleshoot." + "Please run 'azd auth login' from a command prompt to authenticate before using this credential. For more information, see the troubleshooting guidelines at https://aka.ms/azsdk/js/identity/azdevclicredential/troubleshoot.", ); logger.getToken.info(formatError(scopes, error)); throw error; @@ -209,7 +209,7 @@ export class AzureDeveloperCliCredential implements TokenCredential { err.name === "CredentialUnavailableError" ? err : new CredentialUnavailableError( - (err as Error).message || "Unknown error while trying to retrieve the access token" + (err as Error).message || "Unknown error while trying to retrieve the access token", ); logger.getToken.info(formatError(scopes, error)); throw error; diff --git a/sdk/identity/identity/src/credentials/azurePowerShellCredential.browser.ts b/sdk/identity/identity/src/credentials/azurePowerShellCredential.browser.ts index dd2d5534ee25..e4dc1f1ed3db 100644 --- a/sdk/identity/identity/src/credentials/azurePowerShellCredential.browser.ts +++ b/sdk/identity/identity/src/credentials/azurePowerShellCredential.browser.ts @@ -5,7 +5,7 @@ import { AccessToken, TokenCredential } from "@azure/core-auth"; import { credentialLogger, formatError } from "../util/logging"; const BrowserNotSupportedError = new Error( - "AzurePowerShellCredential is not supported in the browser." + "AzurePowerShellCredential is not supported in the browser.", ); const logger = credentialLogger("AzurePowerShellCredential"); diff --git a/sdk/identity/identity/src/credentials/azurePowerShellCredential.ts b/sdk/identity/identity/src/credentials/azurePowerShellCredential.ts index f4df69c6bdc6..a3cafd104fd4 100644 --- a/sdk/identity/identity/src/credentials/azurePowerShellCredential.ts +++ b/sdk/identity/identity/src/credentials/azurePowerShellCredential.ts @@ -118,7 +118,7 @@ export class AzurePowerShellCredential implements TokenCredential { this.tenantId = options?.tenantId; } this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds( - options?.additionallyAllowedTenants + options?.additionallyAllowedTenants, ); this.timeout = options?.processTimeoutInMs; } @@ -130,7 +130,7 @@ export class AzurePowerShellCredential implements TokenCredential { private async getAzurePowerShellAccessToken( resource: string, tenantId?: string, - timeout?: number + timeout?: number, ): Promise<{ Token: string; ExpiresOn: string }> { // Clone the stack to avoid mutating it while iterating for (const powerShellCommand of [...commandStack]) { @@ -184,13 +184,13 @@ export class AzurePowerShellCredential implements TokenCredential { */ public async getToken( scopes: string | string[], - options: GetTokenOptions = {} + options: GetTokenOptions = {}, ): Promise { return tracingClient.withSpan(`${this.constructor.name}.getToken`, options, async () => { const tenantId = processMultiTenantRequest( this.tenantId, options, - this.additionallyAllowedTenantIds + this.additionallyAllowedTenantIds, ); const scope = typeof scopes === "string" ? scopes : scopes[0]; if (tenantId) { @@ -217,7 +217,7 @@ export class AzurePowerShellCredential implements TokenCredential { throw error; } const error = new CredentialUnavailableError( - `${err}. ${powerShellPublicErrorMessages.troubleshoot}` + `${err}. ${powerShellPublicErrorMessages.troubleshoot}`, ); logger.getToken.info(formatError(scope, error)); throw error; diff --git a/sdk/identity/identity/src/credentials/chainedTokenCredential.ts b/sdk/identity/identity/src/credentials/chainedTokenCredential.ts index 6c6d21ed9b5a..2359c2020b1e 100644 --- a/sdk/identity/identity/src/credentials/chainedTokenCredential.ts +++ b/sdk/identity/identity/src/credentials/chainedTokenCredential.ts @@ -54,7 +54,7 @@ export class ChainedTokenCredential implements TokenCredential { private async getTokenInternal( scopes: string | string[], - options: GetTokenOptions = {} + options: GetTokenOptions = {}, ): Promise<{ token: AccessToken; successfulCredential: TokenCredential }> { let token: AccessToken | null = null; let successfulCredential: TokenCredential; @@ -84,21 +84,21 @@ export class ChainedTokenCredential implements TokenCredential { if (!token && errors.length > 0) { const err = new AggregateAuthenticationError( errors, - "ChainedTokenCredential authentication failed." + "ChainedTokenCredential authentication failed.", ); logger.getToken.info(formatError(scopes, err)); throw err; } logger.getToken.info( - `Result for ${successfulCredential.constructor.name}: ${formatSuccess(scopes)}` + `Result for ${successfulCredential.constructor.name}: ${formatSuccess(scopes)}`, ); if (token === null) { throw new CredentialUnavailableError("Failed to retrieve a valid token"); } return { token, successfulCredential }; - } + }, ); } } diff --git a/sdk/identity/identity/src/credentials/clientAssertionCredential.browser.ts b/sdk/identity/identity/src/credentials/clientAssertionCredential.browser.ts index fe0ae49c3231..02efe887a032 100644 --- a/sdk/identity/identity/src/credentials/clientAssertionCredential.browser.ts +++ b/sdk/identity/identity/src/credentials/clientAssertionCredential.browser.ts @@ -5,7 +5,7 @@ import { AccessToken, TokenCredential } from "@azure/core-auth"; import { credentialLogger, formatError } from "../util/logging"; const BrowserNotSupportedError = new Error( - "ClientAssertionCredential is not supported in the browser." + "ClientAssertionCredential is not supported in the browser.", ); const logger = credentialLogger("ClientAssertionCredential"); diff --git a/sdk/identity/identity/src/credentials/clientAssertionCredential.ts b/sdk/identity/identity/src/credentials/clientAssertionCredential.ts index ff6900f25e09..7ba9a01c3c06 100644 --- a/sdk/identity/identity/src/credentials/clientAssertionCredential.ts +++ b/sdk/identity/identity/src/credentials/clientAssertionCredential.ts @@ -38,16 +38,16 @@ export class ClientAssertionCredential implements TokenCredential { tenantId: string, clientId: string, getAssertion: () => Promise, - options: ClientAssertionCredentialOptions = {} + options: ClientAssertionCredentialOptions = {}, ) { if (!tenantId || !clientId || !getAssertion) { throw new Error( - "ClientAssertionCredential: tenantId, clientId, and clientAssertion are required parameters." + "ClientAssertionCredential: tenantId, clientId, and clientAssertion are required parameters.", ); } this.tenantId = tenantId; this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds( - options?.additionallyAllowedTenants + options?.additionallyAllowedTenants, ); this.clientId = clientId; this.options = options; @@ -78,12 +78,12 @@ export class ClientAssertionCredential implements TokenCredential { this.tenantId, newOptions, this.additionallyAllowedTenantIds, - logger + logger, ); const arrayScopes = Array.isArray(scopes) ? scopes : [scopes]; return this.msalFlow.getToken(arrayScopes, newOptions); - } + }, ); } } diff --git a/sdk/identity/identity/src/credentials/clientCertificateCredential.browser.ts b/sdk/identity/identity/src/credentials/clientCertificateCredential.browser.ts index a71c83aff825..649c7c3e7fa7 100644 --- a/sdk/identity/identity/src/credentials/clientCertificateCredential.browser.ts +++ b/sdk/identity/identity/src/credentials/clientCertificateCredential.browser.ts @@ -5,7 +5,7 @@ import { AccessToken, TokenCredential } from "@azure/core-auth"; import { credentialLogger, formatError } from "../util/logging"; const BrowserNotSupportedError = new Error( - "ClientCertificateCredential is not supported in the browser." + "ClientCertificateCredential is not supported in the browser.", ); const logger = credentialLogger("ClientCertificateCredential"); diff --git a/sdk/identity/identity/src/credentials/clientCertificateCredential.ts b/sdk/identity/identity/src/credentials/clientCertificateCredential.ts index a953977d832e..b3c7e74cb29c 100644 --- a/sdk/identity/identity/src/credentials/clientCertificateCredential.ts +++ b/sdk/identity/identity/src/credentials/clientCertificateCredential.ts @@ -76,7 +76,7 @@ export class ClientCertificateCredential implements TokenCredential { tenantId: string, clientId: string, certificatePath: string, - options?: ClientCertificateCredentialOptions + options?: ClientCertificateCredentialOptions, ); /** * Creates an instance of the ClientCertificateCredential with the details @@ -92,7 +92,7 @@ export class ClientCertificateCredential implements TokenCredential { tenantId: string, clientId: string, configuration: ClientCertificatePEMCertificatePath, - options?: ClientCertificateCredentialOptions + options?: ClientCertificateCredentialOptions, ); /** * Creates an instance of the ClientCertificateCredential with the details @@ -108,13 +108,13 @@ export class ClientCertificateCredential implements TokenCredential { tenantId: string, clientId: string, configuration: ClientCertificatePEMCertificate, - options?: ClientCertificateCredentialOptions + options?: ClientCertificateCredentialOptions, ); constructor( tenantId: string, clientId: string, certificatePathOrConfiguration: string | ClientCertificateCredentialPEMConfiguration, - options: ClientCertificateCredentialOptions = {} + options: ClientCertificateCredentialOptions = {}, ) { if (!tenantId || !clientId) { throw new Error(`${credentialName}: tenantId and clientId are required parameters.`); @@ -122,7 +122,7 @@ export class ClientCertificateCredential implements TokenCredential { this.tenantId = tenantId; this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds( - options?.additionallyAllowedTenants + options?.additionallyAllowedTenants, ); const configuration: ClientCertificateCredentialPEMConfiguration = { @@ -139,12 +139,12 @@ export class ClientCertificateCredential implements TokenCredential { ).certificatePath; if (!configuration || !(certificate || certificatePath)) { throw new Error( - `${credentialName}: Provide either a PEM certificate in string form, or the path to that certificate in the filesystem. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.` + `${credentialName}: Provide either a PEM certificate in string form, or the path to that certificate in the filesystem. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.`, ); } if (certificate && certificatePath) { throw new Error( - `${credentialName}: To avoid unexpected behaviors, providing both the contents of a PEM certificate and the path to a PEM certificate is forbidden. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.` + `${credentialName}: To avoid unexpected behaviors, providing both the contents of a PEM certificate and the path to a PEM certificate is forbidden. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.`, ); } this.msalFlow = new MsalClientCertificate({ @@ -172,7 +172,7 @@ export class ClientCertificateCredential implements TokenCredential { this.tenantId, newOptions, this.additionallyAllowedTenantIds, - logger + logger, ); const arrayScopes = Array.isArray(scopes) ? scopes : [scopes]; diff --git a/sdk/identity/identity/src/credentials/clientSecretCredential.browser.ts b/sdk/identity/identity/src/credentials/clientSecretCredential.browser.ts index 360ca809a20b..cb71d6a971d5 100644 --- a/sdk/identity/identity/src/credentials/clientSecretCredential.browser.ts +++ b/sdk/identity/identity/src/credentials/clientSecretCredential.browser.ts @@ -48,12 +48,12 @@ export class ClientSecretCredential implements TokenCredential { tenantId: string, clientId: string, clientSecret: string, - options?: ClientSecretCredentialOptions + options?: ClientSecretCredentialOptions, ) { this.identityClient = new IdentityClient(options); this.tenantId = tenantId; this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds( - options?.additionallyAllowedTenants + options?.additionallyAllowedTenants, ); this.clientId = clientId; this.clientSecret = clientSecret; @@ -71,7 +71,7 @@ export class ClientSecretCredential implements TokenCredential { */ public async getToken( scopes: string | string[], - options: GetTokenOptions = {} + options: GetTokenOptions = {}, ): Promise { return tracingClient.withSpan( `${this.constructor.name}.getToken`, @@ -80,7 +80,7 @@ export class ClientSecretCredential implements TokenCredential { const tenantId = processMultiTenantRequest( this.tenantId, newOptions, - this.additionallyAllowedTenantIds + this.additionallyAllowedTenantIds, ); const query = new URLSearchParams({ @@ -112,7 +112,7 @@ export class ClientSecretCredential implements TokenCredential { logger.getToken.info(formatError(scopes, err)); throw err; } - } + }, ); } } diff --git a/sdk/identity/identity/src/credentials/clientSecretCredential.ts b/sdk/identity/identity/src/credentials/clientSecretCredential.ts index 6bf4221b027f..b85263c91baa 100644 --- a/sdk/identity/identity/src/credentials/clientSecretCredential.ts +++ b/sdk/identity/identity/src/credentials/clientSecretCredential.ts @@ -42,17 +42,17 @@ export class ClientSecretCredential implements TokenCredential { tenantId: string, clientId: string, clientSecret: string, - options: ClientSecretCredentialOptions = {} + options: ClientSecretCredentialOptions = {}, ) { if (!tenantId || !clientId || !clientSecret) { throw new Error( - "ClientSecretCredential: tenantId, clientId, and clientSecret are required parameters. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot." + "ClientSecretCredential: tenantId, clientId, and clientSecret are required parameters. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.", ); } this.tenantId = tenantId; this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds( - options?.additionallyAllowedTenants + options?.additionallyAllowedTenants, ); this.msalFlow = new MsalClientSecret({ @@ -82,12 +82,12 @@ export class ClientSecretCredential implements TokenCredential { this.tenantId, newOptions, this.additionallyAllowedTenantIds, - logger + logger, ); const arrayScopes = ensureScopes(scopes); return this.msalFlow.getToken(arrayScopes, newOptions); - } + }, ); } } diff --git a/sdk/identity/identity/src/credentials/defaultAzureCredential.browser.ts b/sdk/identity/identity/src/credentials/defaultAzureCredential.browser.ts index d4da9bf41fc8..5ef3d0872e56 100644 --- a/sdk/identity/identity/src/credentials/defaultAzureCredential.browser.ts +++ b/sdk/identity/identity/src/credentials/defaultAzureCredential.browser.ts @@ -7,7 +7,7 @@ import { ChainedTokenCredential } from "./chainedTokenCredential"; import { TokenCredentialOptions } from "../tokenCredentialOptions"; const BrowserNotSupportedError = new Error( - "DefaultAzureCredential is not supported in the browser. Use InteractiveBrowserCredential instead." + "DefaultAzureCredential is not supported in the browser. Use InteractiveBrowserCredential instead.", ); const logger = credentialLogger("DefaultAzureCredential"); diff --git a/sdk/identity/identity/src/credentials/defaultAzureCredential.ts b/sdk/identity/identity/src/credentials/defaultAzureCredential.ts index 50a17dccbcb1..286620d8a944 100644 --- a/sdk/identity/identity/src/credentials/defaultAzureCredential.ts +++ b/sdk/identity/identity/src/credentials/defaultAzureCredential.ts @@ -230,7 +230,7 @@ export class DefaultAzureCredential extends ChainedTokenCredential { options?: | DefaultAzureCredentialOptions | DefaultAzureCredentialResourceIdOptions - | DefaultAzureCredentialClientIdOptions + | DefaultAzureCredentialClientIdOptions, ) { super(...defaultCredentials.map((ctor) => new ctor(options))); } diff --git a/sdk/identity/identity/src/credentials/deviceCodeCredential.ts b/sdk/identity/identity/src/credentials/deviceCodeCredential.ts index d4af719627ce..5210728073e0 100644 --- a/sdk/identity/identity/src/credentials/deviceCodeCredential.ts +++ b/sdk/identity/identity/src/credentials/deviceCodeCredential.ts @@ -57,7 +57,7 @@ export class DeviceCodeCredential implements TokenCredential { constructor(options?: DeviceCodeCredentialOptions) { this.tenantId = options?.tenantId; this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds( - options?.additionallyAllowedTenants + options?.additionallyAllowedTenants, ); this.msalFlow = new MsalDeviceCode({ ...options, @@ -89,7 +89,7 @@ export class DeviceCodeCredential implements TokenCredential { this.tenantId, newOptions, this.additionallyAllowedTenantIds, - logger + logger, ); const arrayScopes = ensureScopes(scopes); @@ -97,7 +97,7 @@ export class DeviceCodeCredential implements TokenCredential { ...newOptions, disableAutomaticAuthentication: this.disableAutomaticAuthentication, }); - } + }, ); } @@ -113,7 +113,7 @@ export class DeviceCodeCredential implements TokenCredential { */ async authenticate( scopes: string | string[], - options: GetTokenOptions = {} + options: GetTokenOptions = {}, ): Promise { return tracingClient.withSpan( `${this.constructor.name}.authenticate`, @@ -122,7 +122,7 @@ export class DeviceCodeCredential implements TokenCredential { const arrayScopes = Array.isArray(scopes) ? scopes : [scopes]; await this.msalFlow.getToken(arrayScopes, newOptions); return this.msalFlow.getActiveAccount(); - } + }, ); } } diff --git a/sdk/identity/identity/src/credentials/environmentCredential.browser.ts b/sdk/identity/identity/src/credentials/environmentCredential.browser.ts index d3c97d92579b..33b2b376dc78 100644 --- a/sdk/identity/identity/src/credentials/environmentCredential.browser.ts +++ b/sdk/identity/identity/src/credentials/environmentCredential.browser.ts @@ -5,7 +5,7 @@ import { AccessToken, TokenCredential } from "@azure/core-auth"; import { credentialLogger, formatError } from "../util/logging"; const BrowserNotSupportedError = new Error( - "EnvironmentCredential is not supported in the browser." + "EnvironmentCredential is not supported in the browser.", ); const logger = credentialLogger("EnvironmentCredential"); diff --git a/sdk/identity/identity/src/credentials/environmentCredential.ts b/sdk/identity/identity/src/credentials/environmentCredential.ts index 6da39cb2afdb..192a8fcc8dce 100644 --- a/sdk/identity/identity/src/credentials/environmentCredential.ts +++ b/sdk/identity/identity/src/credentials/environmentCredential.ts @@ -89,7 +89,7 @@ export class EnvironmentCredential implements TokenCredential { if (tenantId && clientId && clientSecret) { logger.info( - `Invoking ClientSecretCredential with tenant ID: ${tenantId}, clientId: ${clientId} and clientSecret: [REDACTED]` + `Invoking ClientSecretCredential with tenant ID: ${tenantId}, clientId: ${clientId} and clientSecret: [REDACTED]`, ); this._credential = new ClientSecretCredential(tenantId, clientId, clientSecret, newOptions); return; @@ -99,13 +99,13 @@ export class EnvironmentCredential implements TokenCredential { const certificatePassword = process.env.AZURE_CLIENT_CERTIFICATE_PASSWORD; if (tenantId && clientId && certificatePath) { logger.info( - `Invoking ClientCertificateCredential with tenant ID: ${tenantId}, clientId: ${clientId} and certificatePath: ${certificatePath}` + `Invoking ClientCertificateCredential with tenant ID: ${tenantId}, clientId: ${clientId} and certificatePath: ${certificatePath}`, ); this._credential = new ClientCertificateCredential( tenantId, clientId, { certificatePath, certificatePassword }, - newOptions + newOptions, ); return; } @@ -114,14 +114,14 @@ export class EnvironmentCredential implements TokenCredential { const password = process.env.AZURE_PASSWORD; if (tenantId && clientId && username && password) { logger.info( - `Invoking UsernamePasswordCredential with tenant ID: ${tenantId}, clientId: ${clientId} and username: ${username}` + `Invoking UsernamePasswordCredential with tenant ID: ${tenantId}, clientId: ${clientId} and username: ${username}`, ); this._credential = new UsernamePasswordCredential( tenantId, clientId, username, password, - newOptions + newOptions, ); } } @@ -149,7 +149,7 @@ export class EnvironmentCredential implements TokenCredential { } } throw new CredentialUnavailableError( - `${credentialName} is unavailable. No underlying credential could be used. To troubleshoot, visit https://aka.ms/azsdk/js/identity/environmentcredential/troubleshoot.` + `${credentialName} is unavailable. No underlying credential could be used. To troubleshoot, visit https://aka.ms/azsdk/js/identity/environmentcredential/troubleshoot.`, ); }); } diff --git a/sdk/identity/identity/src/credentials/interactiveBrowserCredential.browser.ts b/sdk/identity/identity/src/credentials/interactiveBrowserCredential.browser.ts index afed1496b098..329a3a4318eb 100644 --- a/sdk/identity/identity/src/credentials/interactiveBrowserCredential.browser.ts +++ b/sdk/identity/identity/src/credentials/interactiveBrowserCredential.browser.ts @@ -45,11 +45,11 @@ export class InteractiveBrowserCredential implements TokenCredential { * @param options - Options for configuring the client which makes the authentication request. */ constructor( - options: InteractiveBrowserCredentialInBrowserOptions | InteractiveBrowserCredentialNodeOptions + options: InteractiveBrowserCredentialInBrowserOptions | InteractiveBrowserCredentialNodeOptions, ) { if (!options?.clientId) { const error = new Error( - "The parameter `clientId` cannot be left undefined for the `InteractiveBrowserCredential`" + "The parameter `clientId` cannot be left undefined for the `InteractiveBrowserCredential`", ); logger.info(formatError("", error)); throw error; @@ -57,7 +57,7 @@ export class InteractiveBrowserCredential implements TokenCredential { this.tenantId = options?.tenantId; this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds( - options?.additionallyAllowedTenants + options?.additionallyAllowedTenants, ); const browserOptions = options as InteractiveBrowserCredentialInBrowserOptions; @@ -68,7 +68,7 @@ export class InteractiveBrowserCredential implements TokenCredential { const error = new Error( `Invalid loginStyle: ${ browserOptions.loginStyle - }. Should be any of the following: ${loginStyles.join(", ")}.` + }. Should be any of the following: ${loginStyles.join(", ")}.`, ); logger.info(formatError("", error)); throw error; @@ -107,7 +107,7 @@ export class InteractiveBrowserCredential implements TokenCredential { const tenantId = processMultiTenantRequest( this.tenantId, newOptions, - this.additionallyAllowedTenantIds + this.additionallyAllowedTenantIds, ); newOptions.tenantId = tenantId; @@ -116,7 +116,7 @@ export class InteractiveBrowserCredential implements TokenCredential { ...newOptions, disableAutomaticAuthentication: this.disableAutomaticAuthentication, }); - } + }, ); } @@ -132,7 +132,7 @@ export class InteractiveBrowserCredential implements TokenCredential { */ async authenticate( scopes: string | string[], - options: GetTokenOptions = {} + options: GetTokenOptions = {}, ): Promise { return tracingClient.withSpan( `${this.constructor.name}.authenticate`, @@ -141,7 +141,7 @@ export class InteractiveBrowserCredential implements TokenCredential { const arrayScopes = Array.isArray(scopes) ? scopes : [scopes]; await this.msalFlow.getToken(arrayScopes, newOptions); return this.msalFlow.getActiveAccount(); - } + }, ); } } diff --git a/sdk/identity/identity/src/credentials/interactiveBrowserCredential.ts b/sdk/identity/identity/src/credentials/interactiveBrowserCredential.ts index 67a1299bb899..3aa65fce2950 100644 --- a/sdk/identity/identity/src/credentials/interactiveBrowserCredential.ts +++ b/sdk/identity/identity/src/credentials/interactiveBrowserCredential.ts @@ -44,7 +44,7 @@ export class InteractiveBrowserCredential implements TokenCredential { * @param options - Options for configuring the client which makes the authentication requests. */ constructor( - options: InteractiveBrowserCredentialNodeOptions | InteractiveBrowserCredentialInBrowserOptions + options: InteractiveBrowserCredentialNodeOptions | InteractiveBrowserCredentialInBrowserOptions, ) { const redirectUri = typeof options.redirectUri === "function" @@ -53,14 +53,14 @@ export class InteractiveBrowserCredential implements TokenCredential { this.tenantId = options?.tenantId; this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds( - options?.additionallyAllowedTenants + options?.additionallyAllowedTenants, ); const ibcNodeOptions = options as InteractiveBrowserCredentialNodeOptions; if (ibcNodeOptions?.brokerOptions?.enabled) { if (!ibcNodeOptions?.brokerOptions?.parentWindowHandle) { throw new Error( - "In order to do WAM authentication, `parentWindowHandle` under `brokerOptions` is a required parameter" + "In order to do WAM authentication, `parentWindowHandle` under `brokerOptions` is a required parameter", ); } else { this.msalFlow = new MsalOpenBrowser({ @@ -109,7 +109,7 @@ export class InteractiveBrowserCredential implements TokenCredential { this.tenantId, newOptions, this.additionallyAllowedTenantIds, - logger + logger, ); const arrayScopes = ensureScopes(scopes); @@ -117,7 +117,7 @@ export class InteractiveBrowserCredential implements TokenCredential { ...newOptions, disableAutomaticAuthentication: this.disableAutomaticAuthentication, }); - } + }, ); } @@ -136,7 +136,7 @@ export class InteractiveBrowserCredential implements TokenCredential { */ async authenticate( scopes: string | string[], - options: GetTokenOptions = {} + options: GetTokenOptions = {}, ): Promise { return tracingClient.withSpan( `${this.constructor.name}.authenticate`, @@ -145,7 +145,7 @@ export class InteractiveBrowserCredential implements TokenCredential { const arrayScopes = ensureScopes(scopes); await this.msalFlow.getToken(arrayScopes, newOptions); return this.msalFlow.getActiveAccount(); - } + }, ); } } diff --git a/sdk/identity/identity/src/credentials/managedIdentityCredential/appServiceMsi2017.ts b/sdk/identity/identity/src/credentials/managedIdentityCredential/appServiceMsi2017.ts index 70d4a43bdbf1..48dba46a07d4 100644 --- a/sdk/identity/identity/src/credentials/managedIdentityCredential/appServiceMsi2017.ts +++ b/sdk/identity/identity/src/credentials/managedIdentityCredential/appServiceMsi2017.ts @@ -19,7 +19,7 @@ const logger = credentialLogger(msiName); */ function prepareRequestOptions( scopes: string | string[], - clientId?: string + clientId?: string, ): PipelineRequestOptions { const resource = mapScopesToResource(scopes); if (!resource) { @@ -70,25 +70,25 @@ export const appServiceMsi2017: MSI = { const result = Boolean(env.MSI_ENDPOINT && env.MSI_SECRET); if (!result) { logger.info( - `${msiName}: Unavailable. The environment variables needed are: MSI_ENDPOINT and MSI_SECRET.` + `${msiName}: Unavailable. The environment variables needed are: MSI_ENDPOINT and MSI_SECRET.`, ); } return result; }, async getToken( configuration: MSIConfiguration, - getTokenOptions: GetTokenOptions = {} + getTokenOptions: GetTokenOptions = {}, ): Promise { const { identityClient, scopes, clientId, resourceId } = configuration; if (resourceId) { logger.warning( - `${msiName}: managed Identity by resource Id is not supported. Argument resourceId might be ignored by the service.` + `${msiName}: managed Identity by resource Id is not supported. Argument resourceId might be ignored by the service.`, ); } logger.info( - `${msiName}: Using the endpoint and the secret coming form the environment variables: MSI_ENDPOINT=${process.env.MSI_ENDPOINT} and MSI_SECRET=[REDACTED].` + `${msiName}: Using the endpoint and the secret coming form the environment variables: MSI_ENDPOINT=${process.env.MSI_ENDPOINT} and MSI_SECRET=[REDACTED].`, ); const request = createPipelineRequest({ diff --git a/sdk/identity/identity/src/credentials/managedIdentityCredential/appServiceMsi2019.ts b/sdk/identity/identity/src/credentials/managedIdentityCredential/appServiceMsi2019.ts index 07f7fc6d8766..96bc1a44073c 100644 --- a/sdk/identity/identity/src/credentials/managedIdentityCredential/appServiceMsi2019.ts +++ b/sdk/identity/identity/src/credentials/managedIdentityCredential/appServiceMsi2019.ts @@ -20,7 +20,7 @@ const logger = credentialLogger(msiName); function prepareRequestOptions( scopes: string | string[], clientId?: string, - resourceId?: string + resourceId?: string, ): PipelineRequestOptions { const resource = mapScopesToResource(scopes); if (!resource) { @@ -74,19 +74,19 @@ export const appServiceMsi2019: MSI = { const result = Boolean(env.IDENTITY_ENDPOINT && env.IDENTITY_HEADER); if (!result) { logger.info( - `${msiName}: Unavailable. The environment variables needed are: IDENTITY_ENDPOINT and IDENTITY_HEADER.` + `${msiName}: Unavailable. The environment variables needed are: IDENTITY_ENDPOINT and IDENTITY_HEADER.`, ); } return result; }, async getToken( configuration: MSIConfiguration, - getTokenOptions: GetTokenOptions = {} + getTokenOptions: GetTokenOptions = {}, ): Promise { const { identityClient, scopes, clientId, resourceId } = configuration; logger.info( - `${msiName}: Using the endpoint and the secret coming form the environment variables: IDENTITY_ENDPOINT=${process.env.IDENTITY_ENDPOINT} and IDENTITY_HEADER=[REDACTED].` + `${msiName}: Using the endpoint and the secret coming form the environment variables: IDENTITY_ENDPOINT=${process.env.IDENTITY_ENDPOINT} and IDENTITY_HEADER=[REDACTED].`, ); const request = createPipelineRequest({ diff --git a/sdk/identity/identity/src/credentials/managedIdentityCredential/arcMsi.ts b/sdk/identity/identity/src/credentials/managedIdentityCredential/arcMsi.ts index 58dc96ae2875..e607e99b3285 100644 --- a/sdk/identity/identity/src/credentials/managedIdentityCredential/arcMsi.ts +++ b/sdk/identity/identity/src/credentials/managedIdentityCredential/arcMsi.ts @@ -24,7 +24,7 @@ const logger = credentialLogger(msiName); function prepareRequestOptions( scopes: string | string[], clientId?: string, - resourceId?: string + resourceId?: string, ): PipelineRequestOptions { const resource = mapScopesToResource(scopes); if (!resource) { @@ -71,7 +71,7 @@ function readFileAsync(path: string, options: { encoding: BufferEncoding }): Pro reject(err); } resolve(data); - }) + }), ); } @@ -80,7 +80,7 @@ function readFileAsync(path: string, options: { encoding: BufferEncoding }): Pro */ async function filePathRequest( identityClient: IdentityClient, - requestPrepareOptions: PipelineRequestOptions + requestPrepareOptions: PipelineRequestOptions, ): Promise { const response = await identityClient.sendRequest(createPipelineRequest(requestPrepareOptions)); @@ -91,7 +91,7 @@ async function filePathRequest( } throw new AuthenticationError( response.status, - `${msiName}: To authenticate with Azure Arc MSI, status code 401 is expected on the first request. ${message}` + `${msiName}: To authenticate with Azure Arc MSI, status code 401 is expected on the first request. ${message}`, ); } @@ -117,25 +117,25 @@ export const arcMsi: MSI = { const result = Boolean(process.env.IMDS_ENDPOINT && process.env.IDENTITY_ENDPOINT); if (!result) { logger.info( - `${msiName}: The environment variables needed are: IMDS_ENDPOINT and IDENTITY_ENDPOINT` + `${msiName}: The environment variables needed are: IMDS_ENDPOINT and IDENTITY_ENDPOINT`, ); } return result; }, async getToken( configuration: MSIConfiguration, - getTokenOptions: GetTokenOptions = {} + getTokenOptions: GetTokenOptions = {}, ): Promise { const { identityClient, scopes, clientId, resourceId } = configuration; if (clientId) { logger.warning( - `${msiName}: user-assigned identities not supported. The argument clientId might be ignored by the service.` + `${msiName}: user-assigned identities not supported. The argument clientId might be ignored by the service.`, ); } if (resourceId) { logger.warning( - `${msiName}: user defined managed Identity by resource Id is not supported. Argument resourceId will be ignored.` + `${msiName}: user defined managed Identity by resource Id is not supported. Argument resourceId will be ignored.`, ); } diff --git a/sdk/identity/identity/src/credentials/managedIdentityCredential/cloudShellMsi.ts b/sdk/identity/identity/src/credentials/managedIdentityCredential/cloudShellMsi.ts index 2c3ee5c00f77..e817b0758329 100644 --- a/sdk/identity/identity/src/credentials/managedIdentityCredential/cloudShellMsi.ts +++ b/sdk/identity/identity/src/credentials/managedIdentityCredential/cloudShellMsi.ts @@ -20,7 +20,7 @@ export const logger = credentialLogger(msiName); function prepareRequestOptions( scopes: string | string[], clientId?: string, - resourceId?: string + resourceId?: string, ): PipelineRequestOptions { const resource = mapScopesToResource(scopes); if (!resource) { @@ -76,24 +76,24 @@ export const cloudShellMsi: MSI = { }, async getToken( configuration: MSIConfiguration, - getTokenOptions: GetTokenOptions = {} + getTokenOptions: GetTokenOptions = {}, ): Promise { const { identityClient, scopes, clientId, resourceId } = configuration; if (clientId) { logger.warning( - `${msiName}: user-assigned identities not supported. The argument clientId might be ignored by the service.` + `${msiName}: user-assigned identities not supported. The argument clientId might be ignored by the service.`, ); } if (resourceId) { logger.warning( - `${msiName}: user defined managed Identity by resource Id not supported. The argument resourceId might be ignored by the service.` + `${msiName}: user defined managed Identity by resource Id not supported. The argument resourceId might be ignored by the service.`, ); } logger.info( - `${msiName}: Using the endpoint coming form the environment variable MSI_ENDPOINT = ${process.env.MSI_ENDPOINT}.` + `${msiName}: Using the endpoint coming form the environment variable MSI_ENDPOINT = ${process.env.MSI_ENDPOINT}.`, ); const request = createPipelineRequest({ diff --git a/sdk/identity/identity/src/credentials/managedIdentityCredential/fabricMsi.ts b/sdk/identity/identity/src/credentials/managedIdentityCredential/fabricMsi.ts index 174ffc03236a..e282f91e0c4c 100644 --- a/sdk/identity/identity/src/credentials/managedIdentityCredential/fabricMsi.ts +++ b/sdk/identity/identity/src/credentials/managedIdentityCredential/fabricMsi.ts @@ -33,7 +33,7 @@ const logger = credentialLogger(msiName); function prepareRequestOptions( scopes: string | string[], clientId?: string, - resourceId?: string + resourceId?: string, ): PipelineRequestOptions { const resource = mapScopesToResource(scopes); if (!resource) { @@ -84,24 +84,24 @@ export const fabricMsi: MSI = { } const env = process.env; const result = Boolean( - env.IDENTITY_ENDPOINT && env.IDENTITY_HEADER && env.IDENTITY_SERVER_THUMBPRINT + env.IDENTITY_ENDPOINT && env.IDENTITY_HEADER && env.IDENTITY_SERVER_THUMBPRINT, ); if (!result) { logger.info( - `${msiName}: Unavailable. The environment variables needed are: IDENTITY_ENDPOINT, IDENTITY_HEADER and IDENTITY_SERVER_THUMBPRINT` + `${msiName}: Unavailable. The environment variables needed are: IDENTITY_ENDPOINT, IDENTITY_HEADER and IDENTITY_SERVER_THUMBPRINT`, ); } return result; }, async getToken( configuration: MSIConfiguration, - getTokenOptions: GetTokenOptions = {} + getTokenOptions: GetTokenOptions = {}, ): Promise { const { scopes, identityClient, clientId, resourceId } = configuration; if (resourceId) { logger.warning( - `${msiName}: user defined managed Identity by resource Id is not supported. Argument resourceId might be ignored by the service.` + `${msiName}: user defined managed Identity by resource Id is not supported. Argument resourceId might be ignored by the service.`, ); } @@ -112,7 +112,7 @@ export const fabricMsi: MSI = { `IDENTITY_ENDPOINT=${process.env.IDENTITY_ENDPOINT},`, "IDENTITY_HEADER=[REDACTED] and", "IDENTITY_SERVER_THUMBPRINT=[REDACTED].", - ].join(" ") + ].join(" "), ); const request = createPipelineRequest({ diff --git a/sdk/identity/identity/src/credentials/managedIdentityCredential/imdsMsi.ts b/sdk/identity/identity/src/credentials/managedIdentityCredential/imdsMsi.ts index 54dd8d57f93a..7075d14d35a3 100644 --- a/sdk/identity/identity/src/credentials/managedIdentityCredential/imdsMsi.ts +++ b/sdk/identity/identity/src/credentials/managedIdentityCredential/imdsMsi.ts @@ -29,7 +29,7 @@ function prepareRequestOptions( options?: { skipQuery?: boolean; skipMetadataHeader?: boolean; - } + }, ): PipelineRequestOptions { const resource = mapScopesToResource(scopes); if (!resource) { @@ -150,7 +150,7 @@ export const imdsMsi: MSI = { if (response.status === 403) { if ( response.bodyAsText?.includes( - "A socket operation was attempted to an unreachable network" + "A socket operation was attempted to an unreachable network", ) ) { logger.info(`${msiName}: The Azure IMDS endpoint is unavailable`); @@ -161,18 +161,18 @@ export const imdsMsi: MSI = { // If we received any response, the endpoint is available logger.info(`${msiName}: The Azure IMDS endpoint is available`); return true; - } + }, ); }, async getToken( configuration: MSIConfiguration, - getTokenOptions: GetTokenOptions = {} + getTokenOptions: GetTokenOptions = {}, ): Promise { const { identityClient, scopes, clientId, resourceId } = configuration; if (process.env.AZURE_POD_IDENTITY_AUTHORITY_HOST) { logger.info( - `${msiName}: Using the Azure IMDS endpoint coming from the environment variable AZURE_POD_IDENTITY_AUTHORITY_HOST=${process.env.AZURE_POD_IDENTITY_AUTHORITY_HOST}.` + `${msiName}: Using the Azure IMDS endpoint coming from the environment variable AZURE_POD_IDENTITY_AUTHORITY_HOST=${process.env.AZURE_POD_IDENTITY_AUTHORITY_HOST}.`, ); } else { logger.info(`${msiName}: Using the default Azure IMDS endpoint ${imdsHost}.`); @@ -201,7 +201,7 @@ export const imdsMsi: MSI = { throw new AuthenticationError( 404, - `${msiName}: Failed to retrieve IMDS token after ${imdsMsiRetryConfig.maxRetries} retries.` + `${msiName}: Failed to retrieve IMDS token after ${imdsMsiRetryConfig.maxRetries} retries.`, ); }, }; diff --git a/sdk/identity/identity/src/credentials/managedIdentityCredential/index.browser.ts b/sdk/identity/identity/src/credentials/managedIdentityCredential/index.browser.ts index 3ad840d2a377..b773536e081a 100644 --- a/sdk/identity/identity/src/credentials/managedIdentityCredential/index.browser.ts +++ b/sdk/identity/identity/src/credentials/managedIdentityCredential/index.browser.ts @@ -7,7 +7,7 @@ import { TokenCredentialOptions } from "../../tokenCredentialOptions"; import { credentialLogger, formatError } from "../../util/logging"; const BrowserNotSupportedError = new Error( - "ManagedIdentityCredential is not supported in the browser." + "ManagedIdentityCredential is not supported in the browser.", ); const logger = credentialLogger("ManagedIdentityCredential"); diff --git a/sdk/identity/identity/src/credentials/managedIdentityCredential/index.ts b/sdk/identity/identity/src/credentials/managedIdentityCredential/index.ts index 97595115f227..bc487f10def8 100644 --- a/sdk/identity/identity/src/credentials/managedIdentityCredential/index.ts +++ b/sdk/identity/identity/src/credentials/managedIdentityCredential/index.ts @@ -100,7 +100,7 @@ export class ManagedIdentityCredential implements TokenCredential { | string | ManagedIdentityCredentialClientIdOptions | ManagedIdentityCredentialResourceIdOptions, - options?: TokenCredentialOptions + options?: TokenCredentialOptions, ) { let _options: TokenCredentialOptions | undefined; if (typeof clientIdOrOptions === "string") { @@ -114,7 +114,7 @@ export class ManagedIdentityCredential implements TokenCredential { // For JavaScript users. if (this.clientId && this.resourceId) { throw new Error( - `${ManagedIdentityCredential.name} - Client Id and Resource Id can't be provided at the same time.` + `${ManagedIdentityCredential.name} - Client Id and Resource Id can't be provided at the same time.`, ); } this.identityClient = new IdentityClient(_options); @@ -151,7 +151,7 @@ export class ManagedIdentityCredential implements TokenCredential { private async cachedAvailableMSI( scopes: string | string[], - getTokenOptions?: GetTokenOptions + getTokenOptions?: GetTokenOptions, ): Promise { if (this.cachedMSI) { return this.cachedMSI; @@ -183,17 +183,17 @@ export class ManagedIdentityCredential implements TokenCredential { } throw new CredentialUnavailableError( - `${ManagedIdentityCredential.name} - No MSI credential available` + `${ManagedIdentityCredential.name} - No MSI credential available`, ); } private async authenticateManagedIdentity( scopes: string | string[], - getTokenOptions?: GetTokenOptions + getTokenOptions?: GetTokenOptions, ): Promise { const { span, updatedOptions } = tracingClient.startSpan( `${ManagedIdentityCredential.name}.authenticateManagedIdentity`, - getTokenOptions + getTokenOptions, ); try { @@ -206,7 +206,7 @@ export class ManagedIdentityCredential implements TokenCredential { clientId: this.clientId, resourceId: this.resourceId, }, - updatedOptions + updatedOptions, ); } catch (err: any) { span.setStatus({ @@ -230,12 +230,12 @@ export class ManagedIdentityCredential implements TokenCredential { */ public async getToken( scopes: string | string[], - options?: GetTokenOptions + options?: GetTokenOptions, ): Promise { let result: AccessToken | null = null; const { span, updatedOptions } = tracingClient.startSpan( `${ManagedIdentityCredential.name}.getToken`, - options + options, ); try { // isEndpointAvailable can be true, false, or null, @@ -269,7 +269,7 @@ export class ManagedIdentityCredential implements TokenCredential { // It also means that the endpoint answered with either 200 or 201 (see the sendTokenRequest method), // yet we had no access token. For this reason, we'll throw once with a specific message: const error = new CredentialUnavailableError( - "The managed identity endpoint was reached, yet no tokens were received." + "The managed identity endpoint was reached, yet no tokens were received.", ); logger.getToken.info(formatError(scopes, error)); throw error; @@ -283,7 +283,7 @@ export class ManagedIdentityCredential implements TokenCredential { // We've previously determined that the endpoint was unavailable, // either because it was unreachable or permanently unable to authenticate. const error = new CredentialUnavailableError( - "The managed identity endpoint is not currently available" + "The managed identity endpoint is not currently available", ); logger.getToken.info(formatError(scopes, error)); throw error; @@ -313,7 +313,7 @@ export class ManagedIdentityCredential implements TokenCredential { // we can safely assume the credential is unavailable. if (err.code === "ENETUNREACH") { const error = new CredentialUnavailableError( - `${ManagedIdentityCredential.name}: Unavailable. Network unreachable. Message: ${err.message}` + `${ManagedIdentityCredential.name}: Unavailable. Network unreachable. Message: ${err.message}`, ); logger.getToken.info(formatError(scopes, error)); @@ -324,7 +324,7 @@ export class ManagedIdentityCredential implements TokenCredential { // we can safely assume the credential is unavailable. if (err.code === "EHOSTUNREACH") { const error = new CredentialUnavailableError( - `${ManagedIdentityCredential.name}: Unavailable. No managed identity endpoint found. Message: ${err.message}` + `${ManagedIdentityCredential.name}: Unavailable. No managed identity endpoint found. Message: ${err.message}`, ); logger.getToken.info(formatError(scopes, error)); @@ -334,7 +334,7 @@ export class ManagedIdentityCredential implements TokenCredential { // and it means that the endpoint is working, but that no identity is available. if (err.statusCode === 400) { throw new CredentialUnavailableError( - `${ManagedIdentityCredential.name}: The managed identity endpoint is indicating there's no available identity. Message: ${err.message}` + `${ManagedIdentityCredential.name}: The managed identity endpoint is indicating there's no available identity. Message: ${err.message}`, ); } @@ -343,7 +343,7 @@ export class ManagedIdentityCredential implements TokenCredential { if (err.statusCode === 403 || err.code === 403) { if (err.message.includes("A socket operation was attempted to an unreachable network")) { const error = new CredentialUnavailableError( - `${ManagedIdentityCredential.name}: Unavailable. Network unreachable. Message: ${err.message}` + `${ManagedIdentityCredential.name}: Unavailable. Network unreachable. Message: ${err.message}`, ); logger.getToken.info(formatError(scopes, error)); @@ -355,7 +355,7 @@ export class ManagedIdentityCredential implements TokenCredential { // This will throw silently during any ChainedTokenCredential. if (err.statusCode === undefined) { throw new CredentialUnavailableError( - `${ManagedIdentityCredential.name}: Authentication failed. Message ${err.message}` + `${ManagedIdentityCredential.name}: Authentication failed. Message ${err.message}`, ); } @@ -378,7 +378,7 @@ export class ManagedIdentityCredential implements TokenCredential { private handleResult( scopes: string | string[], result?: MsalResult, - getTokenOptions?: GetTokenOptions + getTokenOptions?: GetTokenOptions, ): AccessToken { this.ensureValidMsalToken(scopes, result, getTokenOptions); logger.getToken.info(formatSuccess(scopes)); @@ -395,7 +395,7 @@ export class ManagedIdentityCredential implements TokenCredential { private ensureValidMsalToken( scopes: string | string[], msalToken?: MsalToken, - getTokenOptions?: GetTokenOptions + getTokenOptions?: GetTokenOptions, ): void { const error = (message: string): Error => { logger.getToken.info(message); @@ -421,20 +421,20 @@ export class ManagedIdentityCredential implements TokenCredential { this.confidentialApp.SetAppTokenProvider(async (appTokenProviderParameters) => { logger.info( `SetAppTokenProvider invoked with parameters- ${JSON.stringify( - appTokenProviderParameters - )}` + appTokenProviderParameters, + )}`, ); const getTokenOptions: GetTokenOptions = { ...appTokenProviderParameters, }; logger.info( `authenticateManagedIdentity invoked with scopes- ${JSON.stringify( - appTokenProviderParameters.scopes - )} and getTokenOptions - ${JSON.stringify(getTokenOptions)}` + appTokenProviderParameters.scopes, + )} and getTokenOptions - ${JSON.stringify(getTokenOptions)}`, ); const resultToken = await this.authenticateManagedIdentity( appTokenProviderParameters.scopes, - getTokenOptions + getTokenOptions, ); if (resultToken) { @@ -449,7 +449,7 @@ export class ManagedIdentityCredential implements TokenCredential { }; } else { logger.info( - `SetAppTokenProvider token has "no_access_token_returned" as the saved token` + `SetAppTokenProvider token has "no_access_token_returned" as the saved token`, ); return { accessToken: "no_access_token_returned", diff --git a/sdk/identity/identity/src/credentials/managedIdentityCredential/models.ts b/sdk/identity/identity/src/credentials/managedIdentityCredential/models.ts index 4ce9b68ba6eb..69fd5ce8f5a6 100644 --- a/sdk/identity/identity/src/credentials/managedIdentityCredential/models.ts +++ b/sdk/identity/identity/src/credentials/managedIdentityCredential/models.ts @@ -35,6 +35,6 @@ export interface MSI { }): Promise; getToken( configuration: MSIConfiguration, - getTokenOptions?: GetTokenOptions + getTokenOptions?: GetTokenOptions, ): Promise; } diff --git a/sdk/identity/identity/src/credentials/managedIdentityCredential/tokenExchangeMsi.ts b/sdk/identity/identity/src/credentials/managedIdentityCredential/tokenExchangeMsi.ts index 266228164d3b..ef38083f3a46 100644 --- a/sdk/identity/identity/src/credentials/managedIdentityCredential/tokenExchangeMsi.ts +++ b/sdk/identity/identity/src/credentials/managedIdentityCredential/tokenExchangeMsi.ts @@ -21,18 +21,18 @@ export function tokenExchangeMsi(): MSI { const result = Boolean( (clientId || env.AZURE_CLIENT_ID) && env.AZURE_TENANT_ID && - process.env.AZURE_FEDERATED_TOKEN_FILE + process.env.AZURE_FEDERATED_TOKEN_FILE, ); if (!result) { logger.info( - `${msiName}: Unavailable. The environment variables needed are: AZURE_CLIENT_ID (or the client ID sent through the parameters), AZURE_TENANT_ID and AZURE_FEDERATED_TOKEN_FILE` + `${msiName}: Unavailable. The environment variables needed are: AZURE_CLIENT_ID (or the client ID sent through the parameters), AZURE_TENANT_ID and AZURE_FEDERATED_TOKEN_FILE`, ); } return result; }, async getToken( configuration: MSIConfiguration, - getTokenOptions: GetTokenOptions = {} + getTokenOptions: GetTokenOptions = {}, ): Promise { const { scopes, clientId } = configuration; const identityClientTokenCredentialOptions = {}; diff --git a/sdk/identity/identity/src/credentials/managedIdentityCredential/utils.ts b/sdk/identity/identity/src/credentials/managedIdentityCredential/utils.ts index 0a8324496c73..c725e586dd26 100644 --- a/sdk/identity/identity/src/credentials/managedIdentityCredential/utils.ts +++ b/sdk/identity/identity/src/credentials/managedIdentityCredential/utils.ts @@ -70,6 +70,6 @@ export function parseExpirationTimestamp(body: TokenResponseParsedBody): number } throw new Error( - `Failed to parse token expiration from body. expires_in="${body.expires_in}", expires_on="${body.expires_on}"` + `Failed to parse token expiration from body. expires_in="${body.expires_in}", expires_on="${body.expires_on}"`, ); } diff --git a/sdk/identity/identity/src/credentials/onBehalfOfCredential.ts b/sdk/identity/identity/src/credentials/onBehalfOfCredential.ts index c1def00ff4cf..c2341212b48a 100644 --- a/sdk/identity/identity/src/credentials/onBehalfOfCredential.ts +++ b/sdk/identity/identity/src/credentials/onBehalfOfCredential.ts @@ -53,7 +53,7 @@ export class OnBehalfOfCredential implements TokenCredential { constructor( options: OnBehalfOfCredentialCertificateOptions & MultiTenantTokenCredentialOptions & - CredentialPersistenceOptions + CredentialPersistenceOptions, ); /** * Creates an instance of the {@link OnBehalfOfCredential} with the details @@ -79,7 +79,7 @@ export class OnBehalfOfCredential implements TokenCredential { constructor( options: OnBehalfOfCredentialSecretOptions & MultiTenantTokenCredentialOptions & - CredentialPersistenceOptions + CredentialPersistenceOptions, ); constructor(private options: OnBehalfOfCredentialOptions) { @@ -93,13 +93,13 @@ export class OnBehalfOfCredential implements TokenCredential { } = options; if (!tenantId || !clientId || !(clientSecret || certificatePath) || !userAssertionToken) { throw new Error( - `${credentialName}: tenantId, clientId, clientSecret (or certificatePath) and userAssertionToken are required parameters.` + `${credentialName}: tenantId, clientId, clientSecret (or certificatePath) and userAssertionToken are required parameters.`, ); } this.tenantId = tenantId; this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds( - additionallyAllowedTenantIds + additionallyAllowedTenantIds, ); this.msalFlow = new MsalOnBehalfOf({ @@ -122,7 +122,7 @@ export class OnBehalfOfCredential implements TokenCredential { this.tenantId, newOptions, this.additionallyAllowedTenantIds, - logger + logger, ); const arrayScopes = ensureScopes(scopes); diff --git a/sdk/identity/identity/src/credentials/usernamePasswordCredential.browser.ts b/sdk/identity/identity/src/credentials/usernamePasswordCredential.browser.ts index 46321b8a7f1e..cbea9cba1ede 100644 --- a/sdk/identity/identity/src/credentials/usernamePasswordCredential.browser.ts +++ b/sdk/identity/identity/src/credentials/usernamePasswordCredential.browser.ts @@ -46,14 +46,14 @@ export class UsernamePasswordCredential implements TokenCredential { clientId: string, username: string, password: string, - options?: UsernamePasswordCredentialOptions + options?: UsernamePasswordCredentialOptions, ) { checkTenantId(logger, tenantIdOrName); this.identityClient = new IdentityClient(options); this.tenantId = tenantIdOrName; this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds( - options?.additionallyAllowedTenants + options?.additionallyAllowedTenants, ); this.clientId = clientId; this.username = username; @@ -72,7 +72,7 @@ export class UsernamePasswordCredential implements TokenCredential { */ public async getToken( scopes: string | string[], - options: GetTokenOptions = {} + options: GetTokenOptions = {}, ): Promise { return tracingClient.withSpan( "UsernamePasswordCredential.getToken", @@ -81,7 +81,7 @@ export class UsernamePasswordCredential implements TokenCredential { const tenantId = processMultiTenantRequest( this.tenantId, newOptions, - this.additionallyAllowedTenantIds + this.additionallyAllowedTenantIds, ); newOptions.tenantId = tenantId; @@ -109,7 +109,7 @@ export class UsernamePasswordCredential implements TokenCredential { const tokenResponse = await this.identityClient.sendTokenRequest(webResource); logger.getToken.info(formatSuccess(scopes)); return (tokenResponse && tokenResponse.accessToken) || null; - } + }, ); } } diff --git a/sdk/identity/identity/src/credentials/usernamePasswordCredential.ts b/sdk/identity/identity/src/credentials/usernamePasswordCredential.ts index e15fa98eb65c..760a5f2a487b 100644 --- a/sdk/identity/identity/src/credentials/usernamePasswordCredential.ts +++ b/sdk/identity/identity/src/credentials/usernamePasswordCredential.ts @@ -42,17 +42,17 @@ export class UsernamePasswordCredential implements TokenCredential { clientId: string, username: string, password: string, - options: UsernamePasswordCredentialOptions = {} + options: UsernamePasswordCredentialOptions = {}, ) { if (!tenantId || !clientId || !username || !password) { throw new Error( - "UsernamePasswordCredential: tenantId, clientId, username and password are required parameters. To troubleshoot, visit https://aka.ms/azsdk/js/identity/usernamepasswordcredential/troubleshoot." + "UsernamePasswordCredential: tenantId, clientId, username and password are required parameters. To troubleshoot, visit https://aka.ms/azsdk/js/identity/usernamepasswordcredential/troubleshoot.", ); } this.tenantId = tenantId; this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds( - options?.additionallyAllowedTenants + options?.additionallyAllowedTenants, ); this.msalFlow = new MsalUsernamePassword({ @@ -87,12 +87,12 @@ export class UsernamePasswordCredential implements TokenCredential { this.tenantId, newOptions, this.additionallyAllowedTenantIds, - logger + logger, ); const arrayScopes = ensureScopes(scopes); return this.msalFlow.getToken(arrayScopes, newOptions); - } + }, ); } } diff --git a/sdk/identity/identity/src/credentials/visualStudioCodeCredential.browser.ts b/sdk/identity/identity/src/credentials/visualStudioCodeCredential.browser.ts index 2ae067c4cd5a..a801cddd0765 100644 --- a/sdk/identity/identity/src/credentials/visualStudioCodeCredential.browser.ts +++ b/sdk/identity/identity/src/credentials/visualStudioCodeCredential.browser.ts @@ -5,14 +5,14 @@ import { AccessToken, TokenCredential } from "@azure/core-auth"; import { credentialLogger, formatError } from "../util/logging"; const BrowserNotSupportedError = new Error( - "VisualStudioCodeCredential is not supported in the browser." + "VisualStudioCodeCredential is not supported in the browser.", ); const logger = credentialLogger("VisualStudioCodeCredential"); export const vsCodeCredentialControl = { set vsCodeCredentialFinder(_finder: never) { throw new Error( - "Attempted to register a VisualStudioCodeCredential provider plugin in the browser. This environment is not supported by VisualStudioCodeCredential." + "Attempted to register a VisualStudioCodeCredential provider plugin in the browser. This environment is not supported by VisualStudioCodeCredential.", ); }, }; diff --git a/sdk/identity/identity/src/credentials/visualStudioCodeCredential.ts b/sdk/identity/identity/src/credentials/visualStudioCodeCredential.ts index 7308fc59be5a..a945ed9709fd 100644 --- a/sdk/identity/identity/src/credentials/visualStudioCodeCredential.ts +++ b/sdk/identity/identity/src/credentials/visualStudioCodeCredential.ts @@ -133,7 +133,7 @@ export class VisualStudioCodeCredential implements TokenCredential { } this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds( - options?.additionallyAllowedTenants + options?.additionallyAllowedTenants, ); checkUnsupportedTenant(this.tenantId); @@ -176,7 +176,7 @@ export class VisualStudioCodeCredential implements TokenCredential { */ public async getToken( scopes: string | string[], - options?: GetTokenOptions + options?: GetTokenOptions, ): Promise { await this.prepareOnce(); @@ -185,7 +185,7 @@ export class VisualStudioCodeCredential implements TokenCredential { this.tenantId, options, this.additionallyAllowedTenantIds, - logger + logger, ) || this.tenantId; if (findCredentials === undefined) { @@ -196,7 +196,7 @@ export class VisualStudioCodeCredential implements TokenCredential { "and enable it by importing `useIdentityPlugin` from `@azure/identity` and calling", "`useIdentityPlugin(vsCodePlugin)` before creating a `VisualStudioCodeCredential`.", "To troubleshoot, visit https://aka.ms/azsdk/js/identity/vscodecredential/troubleshoot.", - ].join(" ") + ].join(" "), ); } @@ -233,7 +233,7 @@ export class VisualStudioCodeCredential implements TokenCredential { AzureAccountClientId, scopeString, refreshToken, - undefined + undefined, ); if (tokenResponse) { @@ -241,14 +241,14 @@ export class VisualStudioCodeCredential implements TokenCredential { return tokenResponse.accessToken; } else { const error = new CredentialUnavailableError( - "Could not retrieve the token associated with Visual Studio Code. Have you connected using the 'Azure Account' extension recently? To troubleshoot, visit https://aka.ms/azsdk/js/identity/vscodecredential/troubleshoot." + "Could not retrieve the token associated with Visual Studio Code. Have you connected using the 'Azure Account' extension recently? To troubleshoot, visit https://aka.ms/azsdk/js/identity/vscodecredential/troubleshoot.", ); logger.getToken.info(formatError(scopes, error)); throw error; } } else { const error = new CredentialUnavailableError( - "Could not retrieve the token associated with Visual Studio Code. Did you connect using the 'Azure Account' extension? To troubleshoot, visit https://aka.ms/azsdk/js/identity/vscodecredential/troubleshoot." + "Could not retrieve the token associated with Visual Studio Code. Did you connect using the 'Azure Account' extension? To troubleshoot, visit https://aka.ms/azsdk/js/identity/vscodecredential/troubleshoot.", ); logger.getToken.info(formatError(scopes, error)); throw error; diff --git a/sdk/identity/identity/src/credentials/workloadIdentityCredential.browser.ts b/sdk/identity/identity/src/credentials/workloadIdentityCredential.browser.ts index 4ecd7a1dfe4a..3c898aeff234 100644 --- a/sdk/identity/identity/src/credentials/workloadIdentityCredential.browser.ts +++ b/sdk/identity/identity/src/credentials/workloadIdentityCredential.browser.ts @@ -5,7 +5,7 @@ import { AccessToken, TokenCredential } from "@azure/core-auth"; import { credentialLogger, formatError } from "../util/logging"; const BrowserNotSupportedError = new Error( - "WorkloadIdentityCredential is not supported in the browser." + "WorkloadIdentityCredential is not supported in the browser.", ); const logger = credentialLogger("WorkloadIdentityCredential"); diff --git a/sdk/identity/identity/src/credentials/workloadIdentityCredential.ts b/sdk/identity/identity/src/credentials/workloadIdentityCredential.ts index 3344f4b137a6..4c81cfbbb62d 100644 --- a/sdk/identity/identity/src/credentials/workloadIdentityCredential.ts +++ b/sdk/identity/identity/src/credentials/workloadIdentityCredential.ts @@ -63,13 +63,13 @@ export class WorkloadIdentityCredential implements TokenCredential { } if (clientId && tenantId && this.federatedTokenFilePath) { logger.info( - `Invoking ClientAssertionCredential with tenant ID: ${tenantId}, clientId: ${workloadIdentityCredentialOptions.clientId} and federated token path: [REDACTED]` + `Invoking ClientAssertionCredential with tenant ID: ${tenantId}, clientId: ${workloadIdentityCredentialOptions.clientId} and federated token path: [REDACTED]`, ); this.client = new ClientAssertionCredential( tenantId, clientId, this.readFileContents.bind(this), - options + options, ); } } @@ -84,7 +84,7 @@ export class WorkloadIdentityCredential implements TokenCredential { */ public async getToken( scopes: string | string[], - options?: GetTokenOptions + options?: GetTokenOptions, ): Promise { if (!this.client) { const errorMessage = `${credentialName}: is unavailable. tenantId, clientId, and federatedTokenFilePath are required parameters. @@ -106,7 +106,7 @@ export class WorkloadIdentityCredential implements TokenCredential { } if (!this.federatedTokenFilePath) { throw new CredentialUnavailableError( - `${credentialName}: is unavailable. Invalid file path provided ${this.federatedTokenFilePath}.` + `${credentialName}: is unavailable. Invalid file path provided ${this.federatedTokenFilePath}.`, ); } if (!this.azureFederatedTokenFileContent) { @@ -114,7 +114,7 @@ export class WorkloadIdentityCredential implements TokenCredential { const value = file.trim(); if (!value) { throw new CredentialUnavailableError( - `${credentialName}: is unavailable. No content on the file ${this.federatedTokenFilePath}.` + `${credentialName}: is unavailable. No content on the file ${this.federatedTokenFilePath}.`, ); } else { this.azureFederatedTokenFileContent = value; diff --git a/sdk/identity/identity/src/errors.ts b/sdk/identity/identity/src/errors.ts index 4da56a6e13f4..cb54271ac6f8 100644 --- a/sdk/identity/identity/src/errors.ts +++ b/sdk/identity/identity/src/errors.ts @@ -138,7 +138,7 @@ export class AuthenticationError extends Error { } super( - `${errorResponse.error} Status code: ${statusCode}\nMore details:\n${errorResponse.errorDescription}` + `${errorResponse.error} Status code: ${statusCode}\nMore details:\n${errorResponse.errorDescription}`, ); this.statusCode = statusCode; this.errorResponse = errorResponse; @@ -220,7 +220,7 @@ export class AuthenticationRequiredError extends Error { /** * Optional parameters. A message can be specified. The {@link GetTokenOptions} of the request can also be specified to more easily associate the error with the received parameters. */ - options: AuthenticationRequiredErrorOptions + options: AuthenticationRequiredErrorOptions, ) { super(options.message); this.scopes = options.scopes; diff --git a/sdk/identity/identity/src/msal/browserFlows/msalAuthCode.ts b/sdk/identity/identity/src/msal/browserFlows/msalAuthCode.ts index c5da8990ebdd..7ad77eaeb36a 100644 --- a/sdk/identity/identity/src/msal/browserFlows/msalAuthCode.ts +++ b/sdk/identity/identity/src/msal/browserFlows/msalAuthCode.ts @@ -46,7 +46,7 @@ export class MSALAuthCode extends MsalBrowser { // Preparing the MSAL application. this.app = new msalBrowser.PublicClientApplication( - this.msalConfig as msalBrowser.Configuration + this.msalConfig as msalBrowser.Configuration, ); if (this.account) { this.app.setActiveAccount(publicToMsal(this.account)); @@ -59,7 +59,7 @@ export class MSALAuthCode extends MsalBrowser { * @param result - Result object received from MSAL. */ private async handleBrowserResult( - result?: msalBrowser.AuthenticationResult + result?: msalBrowser.AuthenticationResult, ): Promise { try { if (result && result.account) { @@ -86,7 +86,7 @@ export class MSALAuthCode extends MsalBrowser { However, no "authenticationRecord" has been provided for this credential, therefore we're unable to pick between these accounts. A new login attempt will be requested, to ensure the correct account is picked. -To work with multiple accounts for the same Client ID and Tenant ID, please provide an "authenticationRecord" when initializing "InteractiveBrowserCredential".` +To work with multiple accounts for the same Client ID and Tenant ID, please provide an "authenticationRecord" when initializing "InteractiveBrowserCredential".`, ); // To safely trigger a new login, we're also ensuring the local cache is cleared up for this MSAL object. // However, we want to avoid kicking the user out of their authentication on the Azure side. @@ -116,7 +116,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov */ public async handleRedirect(): Promise { return this.handleBrowserResult( - (await this.app.handleRedirectPromise(redirectHash)) || undefined + (await this.app.handleRedirectPromise(redirectHash)) || undefined, ); } @@ -155,7 +155,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov */ public async getTokenSilent( scopes: string[], - options?: CredentialFlowGetTokenOptions + options?: CredentialFlowGetTokenOptions, ): Promise { const account = await this.getActiveAccount(); if (!account) { @@ -190,7 +190,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov */ protected async doGetToken( scopes: string[], - options?: CredentialFlowGetTokenOptions + options?: CredentialFlowGetTokenOptions, ): Promise { const account = await this.getActiveAccount(); if (!account) { @@ -222,7 +222,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov return this.handleResult( scopes, this.clientId, - await this.app.acquireTokenPopup(parameters) + await this.app.acquireTokenPopup(parameters), ); } } diff --git a/sdk/identity/identity/src/msal/browserFlows/msalBrowserCommon.ts b/sdk/identity/identity/src/msal/browserFlows/msalBrowserCommon.ts index 2eff54bb09aa..6c743df563cc 100644 --- a/sdk/identity/identity/src/msal/browserFlows/msalBrowserCommon.ts +++ b/sdk/identity/identity/src/msal/browserFlows/msalBrowserCommon.ts @@ -56,7 +56,7 @@ export interface MsalBrowserFlow extends MsalFlow { * @internal */ export function defaultBrowserMsalConfig( - options: MsalBrowserFlowOptions + options: MsalBrowserFlowOptions, ): msalBrowser.Configuration { const tenantId = options.tenantId || DefaultTenantId; const authority = getAuthority(tenantId, options.authorityHost); @@ -102,7 +102,7 @@ export abstract class MsalBrowser extends MsalBaseUtilities implements MsalBrows } this.clientId = options.clientId; this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds( - options?.tokenCredentialOptions?.additionallyAllowedTenants + options?.tokenCredentialOptions?.additionallyAllowedTenants, ); this.tenantId = resolveTenantId(this.logger, options.tenantId, options.clientId); this.authorityHost = options.authorityHost; @@ -161,7 +161,7 @@ export abstract class MsalBrowser extends MsalBaseUtilities implements MsalBrows */ public async getToken( scopes: string[], - options: CredentialFlowGetTokenOptions = {} + options: CredentialFlowGetTokenOptions = {}, ): Promise { const tenantId = processMultiTenantRequest(this.tenantId, options, this.additionallyAllowedTenantIds) || @@ -190,7 +190,7 @@ export abstract class MsalBrowser extends MsalBaseUtilities implements MsalBrows }); } this.logger.info( - `Silent authentication failed, falling back to interactive method ${this.loginStyle}` + `Silent authentication failed, falling back to interactive method ${this.loginStyle}`, ); return this.doGetToken(scopes); }); diff --git a/sdk/identity/identity/src/msal/nodeFlows/msalAuthorizationCode.ts b/sdk/identity/identity/src/msal/nodeFlows/msalAuthorizationCode.ts index bbb514d47557..4fae054b46b0 100644 --- a/sdk/identity/identity/src/msal/nodeFlows/msalAuthorizationCode.ts +++ b/sdk/identity/identity/src/msal/nodeFlows/msalAuthorizationCode.ts @@ -49,7 +49,7 @@ export class MsalAuthorizationCode extends MsalNode { protected async doGetToken( scopes: string[], - options?: CredentialFlowGetTokenOptions + options?: CredentialFlowGetTokenOptions, ): Promise { try { const result = await this.getApp("confidentialFirst", options?.enableCae).acquireTokenByCode({ diff --git a/sdk/identity/identity/src/msal/nodeFlows/msalClientAssertion.ts b/sdk/identity/identity/src/msal/nodeFlows/msalClientAssertion.ts index 1abee491d561..effdfdea935b 100644 --- a/sdk/identity/identity/src/msal/nodeFlows/msalClientAssertion.ts +++ b/sdk/identity/identity/src/msal/nodeFlows/msalClientAssertion.ts @@ -31,13 +31,13 @@ export class MsalClientAssertion extends MsalNode { protected async doGetToken( scopes: string[], - options: CredentialFlowGetTokenOptions = {} + options: CredentialFlowGetTokenOptions = {}, ): Promise { try { const assertion = await this.getAssertion(); const result = await this.getApp( "confidential", - options.enableCae + options.enableCae, ).acquireTokenByClientCredential({ scopes, correlationId: options.correlationId, diff --git a/sdk/identity/identity/src/msal/nodeFlows/msalClientCertificate.ts b/sdk/identity/identity/src/msal/nodeFlows/msalClientCertificate.ts index 412a61183654..63f70e6bfa07 100644 --- a/sdk/identity/identity/src/msal/nodeFlows/msalClientCertificate.ts +++ b/sdk/identity/identity/src/msal/nodeFlows/msalClientCertificate.ts @@ -62,7 +62,7 @@ interface CertificateParts { */ export async function parseCertificate( configuration: ClientCertificateCredentialPEMConfiguration, - sendCertificateChain?: boolean + sendCertificateChain?: boolean, ): Promise { const certificateParts: Partial = {}; @@ -153,7 +153,7 @@ export class MsalClientCertificate extends MsalNode { protected async doGetToken( scopes: string[], - options: CredentialFlowGetTokenOptions = {} + options: CredentialFlowGetTokenOptions = {}, ): Promise { try { const clientCredReq: ClientCredentialRequest = { @@ -165,7 +165,7 @@ export class MsalClientCertificate extends MsalNode { }; const result = await this.getApp( "confidential", - options.enableCae + options.enableCae, ).acquireTokenByClientCredential(clientCredReq); // Even though we're providing the same default in memory persistence cache that we use for DeviceCodeCredential, // The Client Credential flow does not return the account information from the authentication service, diff --git a/sdk/identity/identity/src/msal/nodeFlows/msalClientSecret.ts b/sdk/identity/identity/src/msal/nodeFlows/msalClientSecret.ts index b30d304d2b37..79c7dcc0a1b7 100644 --- a/sdk/identity/identity/src/msal/nodeFlows/msalClientSecret.ts +++ b/sdk/identity/identity/src/msal/nodeFlows/msalClientSecret.ts @@ -29,12 +29,12 @@ export class MsalClientSecret extends MsalNode { protected async doGetToken( scopes: string[], - options: CredentialFlowGetTokenOptions = {} + options: CredentialFlowGetTokenOptions = {}, ): Promise { try { const result = await this.getApp( "confidential", - options.enableCae + options.enableCae, ).acquireTokenByClientCredential({ scopes, correlationId: options.correlationId, diff --git a/sdk/identity/identity/src/msal/nodeFlows/msalDeviceCode.ts b/sdk/identity/identity/src/msal/nodeFlows/msalDeviceCode.ts index 2f682d8f2418..ca71c6185e06 100644 --- a/sdk/identity/identity/src/msal/nodeFlows/msalDeviceCode.ts +++ b/sdk/identity/identity/src/msal/nodeFlows/msalDeviceCode.ts @@ -29,7 +29,7 @@ export class MsalDeviceCode extends MsalNode { protected async doGetToken( scopes: string[], - options?: CredentialFlowGetTokenOptions + options?: CredentialFlowGetTokenOptions, ): Promise { try { const requestOptions: msalNode.DeviceCodeRequest = { @@ -41,7 +41,7 @@ export class MsalDeviceCode extends MsalNode { claims: options?.claims, }; const promise = this.getApp("public", options?.enableCae).acquireTokenByDeviceCode( - requestOptions + requestOptions, ); const deviceResponse = await this.withCancellation(promise, options?.abortSignal, () => { requestOptions.cancel = true; diff --git a/sdk/identity/identity/src/msal/nodeFlows/msalNodeCommon.ts b/sdk/identity/identity/src/msal/nodeFlows/msalNodeCommon.ts index ada34217aae8..452b84490208 100644 --- a/sdk/identity/identity/src/msal/nodeFlows/msalNodeCommon.ts +++ b/sdk/identity/identity/src/msal/nodeFlows/msalNodeCommon.ts @@ -151,7 +151,7 @@ export abstract class MsalNode extends MsalBaseUtilities implements MsalFlow { this.msalConfig = this.defaultNodeMsalConfig(options); this.tenantId = resolveTenantId(options.logger, options.tenantId, options.clientId); this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds( - options?.tokenCredentialOptions?.additionallyAllowedTenants + options?.tokenCredentialOptions?.additionallyAllowedTenants, ); this.clientId = this.msalConfig.auth.clientId; if (options?.getAssertion) { @@ -180,7 +180,7 @@ export abstract class MsalNode extends MsalBaseUtilities implements MsalFlow { "You must install the identity-cache-persistence plugin package (`npm install --save @azure/identity-cache-persistence`)", "and enable it by importing `useIdentityPlugin` from `@azure/identity` and calling", "`useIdentityPlugin(cachePersistencePlugin)` before using `tokenCachePersistenceOptions`.", - ].join(" ") + ].join(" "), ); } @@ -192,7 +192,7 @@ export abstract class MsalNode extends MsalBaseUtilities implements MsalFlow { "You must install the identity-broker plugin package (`npm install --save @azure/identity-broker`)", "and enable it by importing `useIdentityPlugin` from `@azure/identity` and calling", "`useIdentityPlugin(createNativeBrokerPlugin())` before using `enableBroker`.", - ].join(" ") + ].join(" "), ); } @@ -227,7 +227,7 @@ export abstract class MsalNode extends MsalBaseUtilities implements MsalFlow { knownAuthorities: getKnownAuthorities( tenantId, authority, - options.disableInstanceDiscovery + options.disableInstanceDiscovery, ), clientCapabilities, }, @@ -244,18 +244,18 @@ export abstract class MsalNode extends MsalBaseUtilities implements MsalFlow { } protected getApp( appType: "publicFirst" | "confidentialFirst", - enableCae?: boolean + enableCae?: boolean, ): msalNode.ConfidentialClientApplication | msalNode.PublicClientApplication; protected getApp(appType: "public", enableCae?: boolean): msalNode.PublicClientApplication; protected getApp( appType: "confidential", - enableCae?: boolean + enableCae?: boolean, ): msalNode.ConfidentialClientApplication; protected getApp( appType: AppType, - enableCae?: boolean + enableCae?: boolean, ): msalNode.ConfidentialClientApplication | msalNode.PublicClientApplication { const app = enableCae ? this.caeApp : this.app; if (appType === "publicFirst") { @@ -306,7 +306,7 @@ export abstract class MsalNode extends MsalBaseUtilities implements MsalFlow { if (!this.parentWindowHandle) { // error should have been thrown from within the constructor of InteractiveBrowserCredential this.logger.warning( - "Parent window handle is not specified for the broker. This may cause unexpected behavior. Please provide the parentWindowHandle." + "Parent window handle is not specified for the broker. This may cause unexpected behavior. Please provide the parentWindowHandle.", ); } } @@ -334,7 +334,7 @@ export abstract class MsalNode extends MsalBaseUtilities implements MsalFlow { } else { if (this.requiresConfidential) { throw new Error( - "Unable to generate the MSAL confidential client. Missing either the client's secret, certificate or assertion." + "Unable to generate the MSAL confidential client. Missing either the client's secret, certificate or assertion.", ); } } @@ -346,7 +346,7 @@ export abstract class MsalNode extends MsalBaseUtilities implements MsalFlow { protected withCancellation( promise: Promise, abortSignal?: AbortSignalLike, - onCancel?: () => void + onCancel?: () => void, ): Promise { return new Promise((resolve, reject) => { promise @@ -396,7 +396,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov */ async getTokenSilent( scopes: string[], - options?: CredentialFlowGetTokenOptions + options?: CredentialFlowGetTokenOptions, ): Promise { await this.getActiveAccount(options?.enableCae); if (!this.account) { @@ -424,7 +424,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov if (!this.parentWindowHandle) { // error should have been thrown from within the constructor of InteractiveBrowserCredential this.logger.warning( - "Parent window handle is not specified for the broker. This may cause unexpected behavior. Please provide the parentWindowHandle." + "Parent window handle is not specified for the broker. This may cause unexpected behavior. Please provide the parentWindowHandle.", ); } if (this.enableMsaPassthrough) { @@ -440,10 +440,12 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov * `authenticationRecord` parameter. See issue - https://github.com/Azure/azure-sdk-for-js/issues/24349#issuecomment-1496715651 * This workaround serves as a workaround for silent authentication not happening when authenticationRecord is passed. */ - await this.getApp("publicFirst", options?.enableCae)?.getTokenCache().getAllAccounts(); + await this.getApp("publicFirst", options?.enableCae) + ?.getTokenCache() + .getAllAccounts(); const response = (await this.getApp("confidential", options?.enableCae)?.acquireTokenSilent( - silentRequest + silentRequest, )) ?? (await this.getApp("public", options?.enableCae).acquireTokenSilent(silentRequest)); return this.handleResult(scopes, this.clientId, response || undefined); } catch (err: any) { @@ -462,7 +464,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov */ public async getToken( scopes: string[], - options: CredentialFlowGetTokenOptions = {} + options: CredentialFlowGetTokenOptions = {}, ): Promise { const tenantId = processMultiTenantRequest(this.tenantId, options, this.additionallyAllowedTenantIds) || diff --git a/sdk/identity/identity/src/msal/nodeFlows/msalOnBehalfOf.ts b/sdk/identity/identity/src/msal/nodeFlows/msalOnBehalfOf.ts index e776dc3dd96c..a36e6c9df2fa 100644 --- a/sdk/identity/identity/src/msal/nodeFlows/msalOnBehalfOf.ts +++ b/sdk/identity/identity/src/msal/nodeFlows/msalOnBehalfOf.ts @@ -57,7 +57,7 @@ export class MsalOnBehalfOf extends MsalNode { try { const parts = await parseCertificate( { certificatePath: this.certificatePath }, - this.sendCertificateChain + this.sendCertificateChain, ); this.msalConfig.auth.clientCertificate = { thumbprint: parts.thumbprint, @@ -76,7 +76,7 @@ export class MsalOnBehalfOf extends MsalNode { protected async doGetToken( scopes: string[], - options: CredentialFlowGetTokenOptions = {} + options: CredentialFlowGetTokenOptions = {}, ): Promise { try { const result = await this.getApp("confidential", options.enableCae).acquireTokenOnBehalfOf({ diff --git a/sdk/identity/identity/src/msal/nodeFlows/msalOpenBrowser.ts b/sdk/identity/identity/src/msal/nodeFlows/msalOpenBrowser.ts index 1ccab69b7ca7..d8fd53d6e202 100644 --- a/sdk/identity/identity/src/msal/nodeFlows/msalOpenBrowser.ts +++ b/sdk/identity/identity/src/msal/nodeFlows/msalOpenBrowser.ts @@ -49,7 +49,7 @@ export class MsalOpenBrowser extends MsalNode { protected async doGetToken( scopes: string[], - options?: CredentialFlowGetTokenOptions + options?: CredentialFlowGetTokenOptions, ): Promise { try { const interactiveRequest: msalNode.InteractiveRequest = { @@ -71,7 +71,7 @@ export class MsalOpenBrowser extends MsalNode { } else { // error should have been thrown from within the constructor of InteractiveBrowserCredential this.logger.warning( - "Parent window handle is not specified for the broker. This may cause unexpected behavior. Please provide the parentWindowHandle." + "Parent window handle is not specified for the broker. This may cause unexpected behavior. Please provide the parentWindowHandle.", ); } @@ -82,11 +82,11 @@ export class MsalOpenBrowser extends MsalNode { } if (hasNativeBroker() && !this.enableBroker) { this.logger.verbose( - "Authentication will resume normally without the broker, since it's not enabled" + "Authentication will resume normally without the broker, since it's not enabled", ); } const result = await this.getApp("public", options?.enableCae).acquireTokenInteractive( - interactiveRequest + interactiveRequest, ); if (result.fromNativeBroker) { this.logger.verbose(`This result is returned from native broker`); diff --git a/sdk/identity/identity/src/msal/nodeFlows/msalUsernamePassword.ts b/sdk/identity/identity/src/msal/nodeFlows/msalUsernamePassword.ts index 5bc9d598d52a..0d834a7dd810 100644 --- a/sdk/identity/identity/src/msal/nodeFlows/msalUsernamePassword.ts +++ b/sdk/identity/identity/src/msal/nodeFlows/msalUsernamePassword.ts @@ -31,7 +31,7 @@ export class MsalUsernamePassword extends MsalNode { protected async doGetToken( scopes: string[], - options?: CredentialFlowGetTokenOptions + options?: CredentialFlowGetTokenOptions, ): Promise { try { const requestOptions: msalNode.UsernamePasswordRequest = { @@ -43,7 +43,7 @@ export class MsalUsernamePassword extends MsalNode { claims: options?.claims, }; const result = await this.getApp("public", options?.enableCae).acquireTokenByUsernamePassword( - requestOptions + requestOptions, ); return this.handleResult(scopes, this.clientId, result || undefined); } catch (error: any) { diff --git a/sdk/identity/identity/src/msal/utils.browser.ts b/sdk/identity/identity/src/msal/utils.browser.ts index b6212be9b07d..5e246b11dfdf 100644 --- a/sdk/identity/identity/src/msal/utils.browser.ts +++ b/sdk/identity/identity/src/msal/utils.browser.ts @@ -30,7 +30,7 @@ export function ensureValidMsalToken( scopes: string | string[], logger: CredentialLogger, msalToken?: MsalToken, - getTokenOptions?: GetTokenOptions + getTokenOptions?: GetTokenOptions, ): void { const error = (message: string): Error => { logger.getToken.info(message); @@ -79,7 +79,7 @@ export function getAuthority(tenantId: string, host?: string): string { export function getKnownAuthorities( tenantId: string, authorityHost: string, - disableInstanceDiscovery?: boolean + disableInstanceDiscovery?: boolean, ): string[] { if ((tenantId === "adfs" && authorityHost) || disableInstanceDiscovery) { return [authorityHost]; @@ -94,7 +94,7 @@ export function getKnownAuthorities( */ export const defaultLoggerCallback: ( logger: CredentialLogger, - platform?: "Node" | "Browser" + platform?: "Node" | "Browser", ) => msalCommon.ILoggerCallback = (logger: CredentialLogger, platform: "Node" | "Browser" = isNode ? "Node" : "Browser") => (level, message, containsPii): void => { @@ -169,7 +169,7 @@ export class MsalBaseUtilities { scopes: string | string[], clientId: string, result?: MsalResult, - getTokenOptions?: GetTokenOptions + getTokenOptions?: GetTokenOptions, ): AccessToken { if (result?.account) { this.account = msalToPublic(clientId, result.account); @@ -202,7 +202,7 @@ export class MsalBaseUtilities { case "interaction_required": case "login_required": this.logger.info( - formatError(scopes, `Authentication returned errorCode ${msalError.errorCode}`) + formatError(scopes, `Authentication returned errorCode ${msalError.errorCode}`), ); break; default: diff --git a/sdk/identity/identity/src/msal/utils.ts b/sdk/identity/identity/src/msal/utils.ts index d1de0c6536fd..e79bd98790b2 100644 --- a/sdk/identity/identity/src/msal/utils.ts +++ b/sdk/identity/identity/src/msal/utils.ts @@ -30,7 +30,7 @@ export function ensureValidMsalToken( scopes: string | string[], logger: CredentialLogger, msalToken?: MsalToken, - getTokenOptions?: GetTokenOptions + getTokenOptions?: GetTokenOptions, ): void { const error = (message: string): Error => { logger.getToken.info(message); @@ -79,7 +79,7 @@ export function getAuthority(tenantId: string, host?: string): string { export function getKnownAuthorities( tenantId: string, authorityHost: string, - disableInstanceDiscovery?: boolean + disableInstanceDiscovery?: boolean, ): string[] { if ((tenantId === "adfs" && authorityHost) || disableInstanceDiscovery) { return [authorityHost]; @@ -94,7 +94,7 @@ export function getKnownAuthorities( */ export const defaultLoggerCallback: ( logger: CredentialLogger, - platform?: "Node" | "Browser" + platform?: "Node" | "Browser", ) => ILoggerCallback = (logger: CredentialLogger, platform: "Node" | "Browser" = isNode ? "Node" : "Browser") => (level, message, containsPii): void => { @@ -169,7 +169,7 @@ export class MsalBaseUtilities { scopes: string | string[], clientId: string, result?: MsalResult, - getTokenOptions?: GetTokenOptions + getTokenOptions?: GetTokenOptions, ): AccessToken { if (result?.account) { this.account = msalToPublic(clientId, result.account); @@ -202,7 +202,7 @@ export class MsalBaseUtilities { case "interaction_required": case "login_required": this.logger.info( - formatError(scopes, `Authentication returned errorCode ${msalError.errorCode}`) + formatError(scopes, `Authentication returned errorCode ${msalError.errorCode}`), ); break; default: @@ -223,8 +223,8 @@ export class MsalBaseUtilities { scopes, `Error from the native broker: ${error.message} with status code: ${ (error as any).statusCode - }` - ) + }`, + ), ); return error; } diff --git a/sdk/identity/identity/src/plugins/provider.ts b/sdk/identity/identity/src/plugins/provider.ts index 68632d0d65cc..4225ffc529a1 100644 --- a/sdk/identity/identity/src/plugins/provider.ts +++ b/sdk/identity/identity/src/plugins/provider.ts @@ -16,8 +16,8 @@ export type IdentityPlugin = (context: unknown) => void; export interface CachePluginControl { setPersistence( persistenceFactory: ( - options?: TokenCachePersistenceOptions - ) => Promise + options?: TokenCachePersistenceOptions, + ) => Promise, ): void; } diff --git a/sdk/identity/identity/src/util/authHostEnv.browser.ts b/sdk/identity/identity/src/util/authHostEnv.browser.ts index 1275f06b6ed9..79d469bbc1bc 100644 --- a/sdk/identity/identity/src/util/authHostEnv.browser.ts +++ b/sdk/identity/identity/src/util/authHostEnv.browser.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. const BrowserNotSupportedError = new Error( - "getAuthorityHostEnvironment is not supported in the browser." + "getAuthorityHostEnvironment is not supported in the browser.", ); export function getAuthorityHostEnvironment(): { authorityHost: string } | undefined { diff --git a/sdk/identity/identity/src/util/logging.ts b/sdk/identity/identity/src/util/logging.ts index 5d0858e152b1..e99474d32750 100644 --- a/sdk/identity/identity/src/util/logging.ts +++ b/sdk/identity/identity/src/util/logging.ts @@ -27,7 +27,7 @@ export function processEnvVars(supportedEnvVars: string[]): EnvironmentAccumulat } return acc; }, - { missing: [], assigned: [] } + { missing: [], assigned: [] }, ); } @@ -40,7 +40,7 @@ export function processEnvVars(supportedEnvVars: string[]): EnvironmentAccumulat export function logEnvVars(credentialName: string, supportedEnvVars: string[]): void { const { assigned } = processEnvVars(supportedEnvVars); logger.info( - `${credentialName} => Found the following environment variables: ${assigned.join(", ")}` + `${credentialName} => Found the following environment variables: ${assigned.join(", ")}`, ); } @@ -91,7 +91,7 @@ export interface CredentialLoggerInstance { export function credentialLoggerInstance( title: string, parent?: CredentialLoggerInstance, - log: AzureLogger = logger + log: AzureLogger = logger, ): CredentialLoggerInstance { const fullTitle = parent ? `${parent.fullTitle} ${title}` : title; diff --git a/sdk/identity/identity/src/util/processMultiTenantRequest.browser.ts b/sdk/identity/identity/src/util/processMultiTenantRequest.browser.ts index 4518a0f2793b..09b7285192bf 100644 --- a/sdk/identity/identity/src/util/processMultiTenantRequest.browser.ts +++ b/sdk/identity/identity/src/util/processMultiTenantRequest.browser.ts @@ -16,7 +16,7 @@ function createConfigurationErrorMessage(tenantId: string): string { export function processMultiTenantRequest( tenantId?: string, getTokenOptions?: GetTokenOptions, - additionallyAllowedTenantIds: string[] = [] + additionallyAllowedTenantIds: string[] = [], ): string | undefined { let resolvedTenantId: string | undefined; if (tenantId === "adfs") { diff --git a/sdk/identity/identity/src/util/processMultiTenantRequest.ts b/sdk/identity/identity/src/util/processMultiTenantRequest.ts index f7e0b0e3daa2..7891231d6b04 100644 --- a/sdk/identity/identity/src/util/processMultiTenantRequest.ts +++ b/sdk/identity/identity/src/util/processMultiTenantRequest.ts @@ -19,7 +19,7 @@ export function processMultiTenantRequest( tenantId?: string, getTokenOptions?: GetTokenOptions, additionallyAllowedTenantIds: string[] = [], - logger?: CredentialLogger + logger?: CredentialLogger, ): string | undefined { let resolvedTenantId: string | undefined; if (process.env.AZURE_IDENTITY_DISABLE_MULTITENANTAUTH) { diff --git a/sdk/identity/identity/src/util/processUtils.ts b/sdk/identity/identity/src/util/processUtils.ts index a4474c999972..f90c70ca9719 100644 --- a/sdk/identity/identity/src/util/processUtils.ts +++ b/sdk/identity/identity/src/util/processUtils.ts @@ -15,7 +15,7 @@ export const processUtils = { execFile( file: string, params: string[], - options?: childProcess.ExecFileOptionsWithStringEncoding + options?: childProcess.ExecFileOptionsWithStringEncoding, ): Promise { return new Promise((resolve, reject) => { childProcess.execFile(file, params, options, (error, stdout, stderr) => { diff --git a/sdk/identity/identity/src/util/tenantIdUtils.ts b/sdk/identity/identity/src/util/tenantIdUtils.ts index 3a4889f670e0..37290ab6f9a0 100644 --- a/sdk/identity/identity/src/util/tenantIdUtils.ts +++ b/sdk/identity/identity/src/util/tenantIdUtils.ts @@ -11,7 +11,7 @@ export { processMultiTenantRequest } from "./processMultiTenantRequest"; export function checkTenantId(logger: CredentialLogger, tenantId: string): void { if (!tenantId.match(/^[0-9a-zA-Z-.]+$/)) { const error = new Error( - "Invalid tenant id provided. You can locate your tenant id by following the instructions listed here: https://learn.microsoft.com/partner-center/find-ids-and-domain-names." + "Invalid tenant id provided. You can locate your tenant id by following the instructions listed here: https://learn.microsoft.com/partner-center/find-ids-and-domain-names.", ); logger.info(formatError("", error)); throw error; @@ -24,7 +24,7 @@ export function checkTenantId(logger: CredentialLogger, tenantId: string): void export function resolveTenantId( logger: CredentialLogger, tenantId?: string, - clientId?: string + clientId?: string, ): string { if (tenantId) { checkTenantId(logger, tenantId); @@ -43,7 +43,7 @@ export function resolveTenantId( * @internal */ export function resolveAdditionallyAllowedTenantIds( - additionallyAllowedTenants?: string[] + additionallyAllowedTenants?: string[], ): string[] { if (!additionallyAllowedTenants || additionallyAllowedTenants.length === 0) { return []; diff --git a/sdk/identity/identity/test/authTestUtils.ts b/sdk/identity/identity/test/authTestUtils.ts index 53f71217d5b1..420e1b91232b 100644 --- a/sdk/identity/identity/test/authTestUtils.ts +++ b/sdk/identity/identity/test/authTestUtils.ts @@ -28,7 +28,7 @@ export function assertClientCredentials( requestBody: string, expectedTenantId: string, expectedClientId: string, - expectedClientSecret?: string + expectedClientSecret?: string, ): void { assert.ok(requestUrl.indexOf(DefaultAuthorityHost) > -1); assert.ok(requestUrl.indexOf(expectedTenantId) > -1); @@ -36,14 +36,14 @@ export function assertClientCredentials( assert.strictEqual( requestBody.indexOf(`client_id=${expectedClientId}`) > -1, true, - "Request body doesn't contain expected clientId" + "Request body doesn't contain expected clientId", ); if (expectedClientSecret) { assert.strictEqual( requestBody.indexOf(`client_secret=${expectedClientSecret}`) > -1, true, - "Request body doesn't contain expected clientSecret" + "Request body doesn't contain expected clientSecret", ); } } diff --git a/sdk/identity/identity/test/httpRequests.browser.ts b/sdk/identity/identity/test/httpRequests.browser.ts index 7e8dd6ff207b..0eb667ecae31 100644 --- a/sdk/identity/identity/test/httpRequests.browser.ts +++ b/sdk/identity/identity/test/httpRequests.browser.ts @@ -110,7 +110,7 @@ export class IdentityTestContext implements IdentityTestContextInterface { */ async sendIndividualRequest( sendPromise: () => Promise, - { response }: { response: TestResponse } + { response }: { response: TestResponse }, ): Promise { /** * Both keeps track of the outgoing requests, @@ -134,7 +134,7 @@ export class IdentityTestContext implements IdentityTestContextInterface { */ async sendIndividualRequestAndGetError( sendPromise: () => Promise, - response: { response: TestResponse } + response: { response: TestResponse }, ): Promise { return getError(this.sendIndividualRequest(sendPromise, response)); } diff --git a/sdk/identity/identity/test/httpRequests.ts b/sdk/identity/identity/test/httpRequests.ts index 243514ac9f74..f07157baa3f1 100644 --- a/sdk/identity/identity/test/httpRequests.ts +++ b/sdk/identity/identity/test/httpRequests.ts @@ -131,7 +131,7 @@ export class IdentityTestContext implements IdentityTestContextInterface { */ async sendIndividualRequest( sendPromise: () => Promise, - { response }: { response: TestResponse } + { response }: { response: TestResponse }, ): Promise { const request = createRequest(); this.sandbox.replace( @@ -140,7 +140,7 @@ export class IdentityTestContext implements IdentityTestContextInterface { (_options: string | URL | http.RequestOptions, resolve: any) => { resolve(responseToIncomingMessage(response)); return request; - } + }, ); this.clock.runAllAsync(); return sendPromise(); @@ -151,7 +151,7 @@ export class IdentityTestContext implements IdentityTestContextInterface { */ async sendIndividualRequestAndGetError( sendPromise: () => Promise, - response: { response: TestResponse } + response: { response: TestResponse }, ): Promise { return getError(this.sendIndividualRequest(sendPromise, response)); } @@ -162,7 +162,7 @@ export class IdentityTestContext implements IdentityTestContextInterface { public registerResponses( provider: "http" | "https", responses: { response?: TestResponse; error?: RestError }[], - spies: sinon.SinonSpy[] + spies: sinon.SinonSpy[], ): http.RequestOptions[] { const providerObject = provider === "http" ? http : https; const totalOptions: http.RequestOptions[] = []; @@ -170,7 +170,7 @@ export class IdentityTestContext implements IdentityTestContextInterface { try { const fakeRequest = ( options: string | URL | http.RequestOptions, - resolve: any + resolve: any, ): http.ClientRequest => { totalOptions.push(options as http.RequestOptions); @@ -193,7 +193,7 @@ export class IdentityTestContext implements IdentityTestContextInterface { } catch (e: any) { console.debug( "Failed to replace the request. This might be expected if you're running multiple sendCredentialRequests() calls.", - e.message + e.message, ); } @@ -209,7 +209,7 @@ export class IdentityTestContext implements IdentityTestContextInterface { extractRequests( options: http.RequestOptions[], spies: sinon.SinonSpy[], - protocol: "http" | "https" + protocol: "http" | "https", ): { url: string; body: string; diff --git a/sdk/identity/identity/test/httpRequestsCommon.ts b/sdk/identity/identity/test/httpRequestsCommon.ts index 54b3d81dc342..113868fbe8df 100644 --- a/sdk/identity/identity/test/httpRequestsCommon.ts +++ b/sdk/identity/identity/test/httpRequestsCommon.ts @@ -32,7 +32,7 @@ export type RawTestResponse = { response?: TestResponse; error?: RestError }; */ export type SendIndividualRequest = ( sendPromise: () => Promise, - response: { response: TestResponse } + response: { response: TestResponse }, ) => Promise; /** @@ -42,7 +42,7 @@ export type SendIndividualRequest = ( */ export type SendIndividualRequestAndGetError = ( sendPromise: () => Promise, - response: { response: TestResponse } + response: { response: TestResponse }, ) => Promise; /** @@ -91,7 +91,7 @@ export interface IdentityTestContextInterface { export function createResponse( statusCode: number, body: Record = {}, - headers: RawHttpHeaders = {} + headers: RawHttpHeaders = {}, ): { response: TestResponse } { return { response: { diff --git a/sdk/identity/identity/test/internal/identityClient.spec.ts b/sdk/identity/identity/test/internal/identityClient.spec.ts index 34057b1291c1..0c59de734bc5 100644 --- a/sdk/identity/identity/test/internal/identityClient.spec.ts +++ b/sdk/identity/identity/test/internal/identityClient.spec.ts @@ -78,14 +78,14 @@ describe("IdentityClient", function () { new IdentityClient({ authorityHost: "http://totallyinsecure.lol" }); }, Error, - "The authorityHost address must use the 'https' protocol." + "The authorityHost address must use the 'https' protocol.", ); assert.throws( () => { new IdentityClient({ authorityHost: "httpsomg.com" }); }, Error, - "The authorityHost address must use the 'https' protocol." + "The authorityHost address must use the 'https' protocol.", ); }); @@ -108,7 +108,7 @@ describe("IdentityClient", function () { new IdentityClient(); }, Error, - "The authorityHost address must use the 'https' protocol." + "The authorityHost address must use the 'https' protocol.", ); process.env.AZURE_AUTHORITY_HOST = "httpsomg.com"; assert.throws( @@ -116,7 +116,7 @@ describe("IdentityClient", function () { new IdentityClient(); }, Error, - "The authorityHost address must use the 'https' protocol." + "The authorityHost address must use the 'https' protocol.", ); // While we have the environment variable, ensure correct precedence @@ -171,7 +171,7 @@ describe("IdentityClient", function () { ]; const logMessages = testContext.logMessages.filter( - (msg: string) => msg.indexOf("azure:identity:") >= 0 + (msg: string) => msg.indexOf("azure:identity:") >= 0, ); assert.equal(expectedMessages.length, logMessages.length); diff --git a/sdk/identity/identity/test/internal/logger.spec.ts b/sdk/identity/identity/test/internal/logger.spec.ts index 18a06c6a1a09..4ab8e40adaf9 100644 --- a/sdk/identity/identity/test/internal/logger.spec.ts +++ b/sdk/identity/identity/test/internal/logger.spec.ts @@ -52,7 +52,7 @@ describe("Identity logging utilities", function () { logger.info(formatError("scope", new Error("message"))); assert.equal( allParams[0].join(" "), - "title => ERROR. Scopes: scope. Error message: message." + "title => ERROR. Scopes: scope. Error message: message.", ); }); }); @@ -95,7 +95,7 @@ describe("Identity logging utilities", function () { public async getToken( scopes: string | string[], - _options?: GetTokenOptions + _options?: GetTokenOptions, ): Promise { if (scopes.length) { this.logger.getToken.info(formatSuccess(scopes)); @@ -113,7 +113,7 @@ describe("Identity logging utilities", function () { await fakeCredential.getToken(["Scope 1", "Scope 2"]); assert.equal( allInfoParams[1].join(" "), - "FakeCredential => getToken() => SUCCESS. Scopes: Scope 1, Scope 2." + "FakeCredential => getToken() => SUCCESS. Scopes: Scope 1, Scope 2.", ); try { @@ -124,7 +124,7 @@ describe("Identity logging utilities", function () { assert.equal( allInfoParams[2].join(" "), - "FakeCredential => getToken() => ERROR. Error message: test getToken error." + "FakeCredential => getToken() => ERROR. Error message: test getToken error.", ); }); }); diff --git a/sdk/identity/identity/test/internal/node/azureApplicationCredential.spec.ts b/sdk/identity/identity/test/internal/node/azureApplicationCredential.spec.ts index 90d41fd83cc0..86c0b38fef08 100644 --- a/sdk/identity/identity/test/internal/node/azureApplicationCredential.spec.ts +++ b/sdk/identity/identity/test/internal/node/azureApplicationCredential.spec.ts @@ -42,7 +42,7 @@ describe("AzureApplicationCredential testing Managed Identity (internal)", funct }); assert.ok( error!.message!.indexOf("No MSI credential available") > -1, - "Failed to match the expected error" + "Failed to match the expected error", ); }); @@ -106,12 +106,12 @@ describe("AzureApplicationCredential testing Managed Identity (internal)", funct assert.equal(decodeURIComponent(query.get("resource")!), "https://service"); assert.ok( authRequest.url.startsWith(process.env.MSI_ENDPOINT), - "URL does not start with expected host and path" + "URL does not start with expected host and path", ); assert.equal(authRequest.headers.secret, process.env.MSI_SECRET); assert.ok( authRequest.url.indexOf(`api-version=2017-09-01`) > -1, - "URL does not have expected version" + "URL does not have expected version", ); if (authDetails.result?.token) { assert.equal(authDetails.result.expiresOnTimestamp, 1560999478000); diff --git a/sdk/identity/identity/test/internal/node/azureCliCredential.spec.ts b/sdk/identity/identity/test/internal/node/azureCliCredential.spec.ts index 86bff3a67503..d07783f18414 100644 --- a/sdk/identity/identity/test/internal/node/azureCliCredential.spec.ts +++ b/sdk/identity/identity/test/internal/node/azureCliCredential.spec.ts @@ -50,7 +50,7 @@ describe("AzureCliCredential (internal)", function () { cwd: [process.env.SystemRoot, "/bin"].includes(azOptions[0].cwd), shell: azOptions[0].shell, }, - { cwd: true, shell: true } + { cwd: true, shell: true }, ); }); @@ -80,7 +80,7 @@ describe("AzureCliCredential (internal)", function () { cwd: [process.env.SystemRoot, "/bin"].includes(azOptions[0].cwd), shell: azOptions[0].shell, }, - { cwd: true, shell: true } + { cwd: true, shell: true }, ); }); @@ -110,7 +110,7 @@ describe("AzureCliCredential (internal)", function () { cwd: [process.env.SystemRoot, "/bin"].includes(azOptions[0].cwd), shell: azOptions[0].shell, }, - { cwd: true, shell: true } + { cwd: true, shell: true }, ); }); @@ -125,7 +125,7 @@ describe("AzureCliCredential (internal)", function () { } catch (error: any) { assert.equal( error.message, - "Azure CLI could not be found. Please visit https://aka.ms/azure-cli for installation instructions and then, once installed, authenticate to your Azure account using 'az login'." + "Azure CLI could not be found. Please visit https://aka.ms/azure-cli for installation instructions and then, once installed, authenticate to your Azure account using 'az login'.", ); } } else { @@ -138,7 +138,7 @@ describe("AzureCliCredential (internal)", function () { } catch (error: any) { assert.equal( error.message, - "Azure CLI could not be found. Please visit https://aka.ms/azure-cli for installation instructions and then, once installed, authenticate to your Azure account using 'az login'." + "Azure CLI could not be found. Please visit https://aka.ms/azure-cli for installation instructions and then, once installed, authenticate to your Azure account using 'az login'.", ); } } @@ -154,7 +154,7 @@ describe("AzureCliCredential (internal)", function () { } catch (error: any) { assert.equal( error.message, - "Please run 'az login' from a command prompt to authenticate before using this credential." + "Please run 'az login' from a command prompt to authenticate before using this credential.", ); } }); @@ -218,7 +218,7 @@ az login --scope https://test.windows.net/.default`; cwd: [process.env.SystemRoot, "/bin"].includes(azOptions[0].cwd), shell: azOptions[0].shell, }, - { cwd: true, shell: true } + { cwd: true, shell: true }, ); }); @@ -238,7 +238,7 @@ az login --scope https://test.windows.net/.default`; shell: azOptions[0].shell, timeout: 50, }, - { cwd: true, shell: true, timeout: 50 } + { cwd: true, shell: true, timeout: 50 }, ); }); @@ -265,7 +265,7 @@ az login --scope https://test.windows.net/.default`; credential.getToken("https://service/.default", { tenantId: tenantId, }), - tenantIdErrorMessage + tenantIdErrorMessage, ); }); @@ -281,13 +281,13 @@ az login --scope https://test.windows.net/.default`; inputScope === "" ? "empty string" : inputScope === "\0" - ? "null character" - : `"${inputScope}"`; + ? "null character" + : `"${inputScope}"`; it(`rejects invalid scope of ${testCase}`, async function () { const credential = new AzureCliCredential(); await assert.isRejected( credential.getToken(inputScope), - "Invalid scope was specified by the user or calling client" + "Invalid scope was specified by the user or calling client", ); }); } diff --git a/sdk/identity/identity/test/internal/node/azureDeveloperCliCredential.spec.ts b/sdk/identity/identity/test/internal/node/azureDeveloperCliCredential.spec.ts index d62d8c4eb785..a8a97c52c11a 100644 --- a/sdk/identity/identity/test/internal/node/azureDeveloperCliCredential.spec.ts +++ b/sdk/identity/identity/test/internal/node/azureDeveloperCliCredential.spec.ts @@ -49,7 +49,7 @@ describe("AzureDeveloperCliCredential (internal)", function () { { cwd: [process.env.SystemRoot, "/bin"].includes(azdOptions[0].cwd), }, - { cwd: true } + { cwd: true }, ); }); @@ -78,7 +78,7 @@ describe("AzureDeveloperCliCredential (internal)", function () { { cwd: [process.env.SystemRoot, "/bin"].includes(azdOptions[0].cwd), }, - { cwd: true } + { cwd: true }, ); }); @@ -107,7 +107,7 @@ describe("AzureDeveloperCliCredential (internal)", function () { { cwd: [process.env.SystemRoot, "/bin"].includes(azdOptions[0].cwd), }, - { cwd: true } + { cwd: true }, ); }); @@ -122,7 +122,7 @@ describe("AzureDeveloperCliCredential (internal)", function () { } catch (error: any) { assert.equal( error.message, - "Azure Developer CLI couldn't be found. To mitigate this issue, see the troubleshooting guidelines at https://aka.ms/azsdk/js/identity/azdevclicredential/troubleshoot." + "Azure Developer CLI couldn't be found. To mitigate this issue, see the troubleshooting guidelines at https://aka.ms/azsdk/js/identity/azdevclicredential/troubleshoot.", ); } } else { @@ -135,7 +135,7 @@ describe("AzureDeveloperCliCredential (internal)", function () { } catch (error: any) { assert.equal( error.message, - "Azure Developer CLI couldn't be found. To mitigate this issue, see the troubleshooting guidelines at https://aka.ms/azsdk/js/identity/azdevclicredential/troubleshoot." + "Azure Developer CLI couldn't be found. To mitigate this issue, see the troubleshooting guidelines at https://aka.ms/azsdk/js/identity/azdevclicredential/troubleshoot.", ); } } @@ -187,7 +187,7 @@ describe("AzureDeveloperCliCredential (internal)", function () { credential.getToken("https://service/.default", { tenantId: tenantId, }), - tenantIdErrorMessage + tenantIdErrorMessage, ); }); it(`rejects invalid tenant id of ${testCase} in constructor`, function () { @@ -202,13 +202,13 @@ describe("AzureDeveloperCliCredential (internal)", function () { inputScope === "" ? "empty string" : inputScope === "\0" - ? "null character" - : `"${inputScope}"`; + ? "null character" + : `"${inputScope}"`; it(`rejects invalid scope of ${testCase}`, async function () { const credential = new AzureDeveloperCliCredential(); await assert.isRejected( credential.getToken(inputScope), - "Invalid scope was specified by the user or calling client" + "Invalid scope was specified by the user or calling client", ); }); } diff --git a/sdk/identity/identity/test/internal/node/azurePowerShellCredential.spec.ts b/sdk/identity/identity/test/internal/node/azurePowerShellCredential.spec.ts index ab3ae215a336..47c88b6b8d16 100644 --- a/sdk/identity/identity/test/internal/node/azurePowerShellCredential.spec.ts +++ b/sdk/identity/identity/test/internal/node/azurePowerShellCredential.spec.ts @@ -35,7 +35,7 @@ describe("AzurePowerShellCredential", function () { it("command stack is configured correctly by platform", function () { assert.deepStrictEqual( commandStack, - process.platform === "win32" ? ["pwsh.exe", "powershell.exe"] : ["pwsh"] + process.platform === "win32" ? ["pwsh.exe", "powershell.exe"] : ["pwsh"], ); }); @@ -109,7 +109,7 @@ describe("AzurePowerShellCredential", function () { assert.equal(error?.name, "CredentialUnavailableError"); assert.equal( error?.message, - `Error: Unable to execute PowerShell. Ensure that it is installed in your system. To troubleshoot, visit https://aka.ms/azsdk/js/identity/powershellcredential/troubleshoot.` + `Error: Unable to execute PowerShell. Ensure that it is installed in your system. To troubleshoot, visit https://aka.ms/azsdk/js/identity/powershellcredential/troubleshoot.`, ); sandbox.restore(); @@ -137,7 +137,7 @@ describe("AzurePowerShellCredential", function () { assert.equal(error?.name, "CredentialUnavailableError"); assert.equal( error?.message, - `Error: Unable to parse the output of PowerShell. Received output: Not valid JSON. To troubleshoot, visit https://aka.ms/azsdk/js/identity/powershellcredential/troubleshoot.` + `Error: Unable to parse the output of PowerShell. Received output: Not valid JSON. To troubleshoot, visit https://aka.ms/azsdk/js/identity/powershellcredential/troubleshoot.`, ); sandbox.restore(); @@ -167,7 +167,7 @@ describe("AzurePowerShellCredential", function () { assert.equal(error?.name, "CredentialUnavailableError"); assert.equal( error?.message, - `Error: Unable to parse the output of PowerShell. Received output: Not valid JSON. To troubleshoot, visit https://aka.ms/azsdk/js/identity/powershellcredential/troubleshoot.` + `Error: Unable to parse the output of PowerShell. Received output: Not valid JSON. To troubleshoot, visit https://aka.ms/azsdk/js/identity/powershellcredential/troubleshoot.`, ); sandbox.restore(); @@ -253,7 +253,7 @@ describe("AzurePowerShellCredential", function () { credential.getToken("https://service/.default", { tenantId: tenantId, }), - tenantIdErrorMessage + tenantIdErrorMessage, ); }); it(`rejects invalid tenant id of ${testCase} in constructor`, function () { @@ -268,13 +268,13 @@ describe("AzurePowerShellCredential", function () { inputScope === "" ? "empty string" : inputScope === "\0" - ? "null character" - : `"${inputScope}"`; + ? "null character" + : `"${inputScope}"`; it(`rejects invalid scope of ${testCase}`, async function () { const credential = new AzurePowerShellCredential(); await assert.isRejected( credential.getToken(inputScope), - "Invalid scope was specified by the user or calling client" + "Invalid scope was specified by the user or calling client", ); }); } diff --git a/sdk/identity/identity/test/internal/node/chainedTokenCredential.spec.ts b/sdk/identity/identity/test/internal/node/chainedTokenCredential.spec.ts index 1e57c1133cc4..94691214db51 100644 --- a/sdk/identity/identity/test/internal/node/chainedTokenCredential.spec.ts +++ b/sdk/identity/identity/test/internal/node/chainedTokenCredential.spec.ts @@ -17,7 +17,7 @@ class TestMockCredential implements TokenCredential { describe("ChainedTokenCredential", function () { it("Logs the expected successful message", async () => { const chainedTokenCredential = new ChainedTokenCredential( - new TestMockCredential(Promise.resolve({ token: "firstToken", expiresOnTimestamp: 0 })) + new TestMockCredential(Promise.resolve({ token: "firstToken", expiresOnTimestamp: 0 })), ); const infoSpy = Sinon.spy(chainedTokenCredentialLogger.parent, "info"); @@ -28,11 +28,11 @@ describe("ChainedTokenCredential", function () { assert.equal( infoSpy.getCalls()[0].args.join(" "), - "ChainedTokenCredential => getToken() => Result for TestMockCredential: SUCCESS. Scopes: ." + "ChainedTokenCredential => getToken() => Result for TestMockCredential: SUCCESS. Scopes: .", ); assert.equal( getTokenInfoSpy.getCalls()[0].args[0], - "Result for TestMockCredential: SUCCESS. Scopes: ." + "Result for TestMockCredential: SUCCESS. Scopes: .", ); infoSpy.restore(); @@ -47,7 +47,7 @@ describe("ChainedTokenCredential", function () { } const chainedTokenCredential = new ChainedTokenCredential( - mockCredential(Promise.resolve({ token: "firstToken", expiresOnTimestamp: 0 })) + mockCredential(Promise.resolve({ token: "firstToken", expiresOnTimestamp: 0 })), ); const infoSpy = Sinon.spy(chainedTokenCredentialLogger.parent, "info"); @@ -58,11 +58,11 @@ describe("ChainedTokenCredential", function () { assert.equal( infoSpy.getCalls()[0].args.join(" "), - "ChainedTokenCredential => getToken() => Result for Object: SUCCESS. Scopes: ." + "ChainedTokenCredential => getToken() => Result for Object: SUCCESS. Scopes: .", ); assert.equal( getTokenInfoSpy.getCalls()[0].args[0], - "Result for Object: SUCCESS. Scopes: ." + "Result for Object: SUCCESS. Scopes: .", ); infoSpy.restore(); diff --git a/sdk/identity/identity/test/internal/node/clientAssertionCredential.spec.ts b/sdk/identity/identity/test/internal/node/clientAssertionCredential.spec.ts index d99f1ffb50a3..1c5edc5980a3 100644 --- a/sdk/identity/identity/test/internal/node/clientAssertionCredential.spec.ts +++ b/sdk/identity/identity/test/internal/node/clientAssertionCredential.spec.ts @@ -26,7 +26,7 @@ describe("ClientAssertionCredential (internal)", function () { getTokenSilentSpy = setup.sandbox.spy(MsalNode.prototype, "getTokenSilent"); doGetTokenSpy = Sinon.spy( ConfidentialClientApplication.prototype, - "acquireTokenByClientCredential" + "acquireTokenByClientCredential", ); }); afterEach(async function () { @@ -40,7 +40,7 @@ describe("ClientAssertionCredential (internal)", function () { new ClientAssertionCredential( undefined as any, env.AZURE_CLIENT_ID ?? "client", - async () => "assertion" + async () => "assertion", ); } catch (e: any) { errors.push(e); @@ -49,7 +49,7 @@ describe("ClientAssertionCredential (internal)", function () { new ClientAssertionCredential( env.AZURE_TENANT_ID ?? "tenant", undefined as any, - async () => "assertion" + async () => "assertion", ); } catch (e: any) { errors.push(e); @@ -58,7 +58,7 @@ describe("ClientAssertionCredential (internal)", function () { new ClientAssertionCredential( env.AZURE_TENANT_ID ?? "tenant", env.AZURE_CLIENT_ID ?? "client", - undefined as any + undefined as any, ); } catch (e: any) { errors.push(e); @@ -72,7 +72,7 @@ describe("ClientAssertionCredential (internal)", function () { errors.forEach((e) => { assert.equal( e.message, - "ClientAssertionCredential: tenantId, clientId, and clientAssertion are required parameters." + "ClientAssertionCredential: tenantId, clientId, and clientAssertion are required parameters.", ); }); }); diff --git a/sdk/identity/identity/test/internal/node/clientCertificateCredential.spec.ts b/sdk/identity/identity/test/internal/node/clientCertificateCredential.spec.ts index ee82bc90d4d5..77efd66d1f0d 100644 --- a/sdk/identity/identity/test/internal/node/clientCertificateCredential.spec.ts +++ b/sdk/identity/identity/test/internal/node/clientCertificateCredential.spec.ts @@ -33,7 +33,7 @@ describe("ClientCertificateCredential (internal)", function () { // MsalClientSecret calls to this method underneath. doGetTokenSpy = setup.sandbox.spy( ConfidentialClientApplication.prototype, - "acquireTokenByClientCredential" + "acquireTokenByClientCredential", ); }); afterEach(async function () { @@ -68,7 +68,7 @@ describe("ClientCertificateCredential (internal)", function () { errors.forEach((e) => { assert.equal( e.message, - "ClientCertificateCredential: tenantId and clientId are required parameters." + "ClientCertificateCredential: tenantId and clientId are required parameters.", ); }); @@ -89,7 +89,7 @@ describe("ClientCertificateCredential (internal)", function () { errors.forEach((e) => { assert.equal( e.message, - "ClientCertificateCredential: Provide either a PEM certificate in string form, or the path to that certificate in the filesystem. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot." + "ClientCertificateCredential: Provide either a PEM certificate in string form, or the path to that certificate in the filesystem. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.", ); }); @@ -106,7 +106,7 @@ describe("ClientCertificateCredential (internal)", function () { assert.ok(error); assert.equal( (error as Error).message, - "ClientCertificateCredential: To avoid unexpected behaviors, providing both the contents of a PEM certificate and the path to a PEM certificate is forbidden. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot." + "ClientCertificateCredential: To avoid unexpected behaviors, providing both the contents of a PEM certificate and the path to a PEM certificate is forbidden. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.", ); }); @@ -142,7 +142,7 @@ describe("ClientCertificateCredential (internal)", function () { assert.ok(error); assert.deepEqual( error?.message, - `The file at the specified path does not contain a PEM-encoded certificate.` + `The file at the specified path does not contain a PEM-encoded certificate.`, ); }); @@ -184,7 +184,7 @@ describe("ClientCertificateCredential (internal)", function () { { // TODO: Uncomment once we're ready to release this feature. // regionalAuthority: RegionalAuthority.AutoDiscoverRegion - } + }, ); // We'll abort since we only want to ensure the parameters are sent appropriately. diff --git a/sdk/identity/identity/test/internal/node/clientSecretCredential.spec.ts b/sdk/identity/identity/test/internal/node/clientSecretCredential.spec.ts index 6cb82f632cf2..312e707e53fa 100644 --- a/sdk/identity/identity/test/internal/node/clientSecretCredential.spec.ts +++ b/sdk/identity/identity/test/internal/node/clientSecretCredential.spec.ts @@ -31,7 +31,7 @@ describe("ClientSecretCredential (internal)", function () { // MsalClientSecret calls to this method underneath. doGetTokenSpy = setup.sandbox.spy( ConfidentialClientApplication.prototype, - "acquireTokenByClientCredential" + "acquireTokenByClientCredential", ); }); afterEach(async function () { @@ -66,7 +66,7 @@ describe("ClientSecretCredential (internal)", function () { errors.forEach((e) => { assert.equal( e.message, - "ClientSecretCredential: tenantId, clientId, and clientSecret are required parameters. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot." + "ClientSecretCredential: tenantId, clientId, and clientSecret are required parameters. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.", ); }); }); @@ -78,7 +78,7 @@ describe("ClientSecretCredential (internal)", function () { const credential = new ClientSecretCredential( env.AZURE_TENANT_ID!, env.AZURE_CLIENT_ID!, - env.AZURE_CLIENT_SECRET! + env.AZURE_CLIENT_SECRET!, ); const { token: firstToken } = await credential.getToken(scope); @@ -101,7 +101,7 @@ describe("ClientSecretCredential (internal)", function () { env.AZURE_TENANT_ID!, env.AZURE_CLIENT_ID!, env.AZURE_CLIENT_SECRET!, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); await credential.getToken(scope, { tenantId: env.AZURE_TENANT_ID } as GetTokenOptions); @@ -118,7 +118,7 @@ describe("ClientSecretCredential (internal)", function () { { // TODO: Uncomment once we're ready to release this feature. // regionalAuthority: RegionalAuthority.AutoDiscoverRegion - } + }, ); // We'll abort since we only want to ensure the parameters are sent appropriately. @@ -148,7 +148,7 @@ describe("ClientSecretCredential (internal)", function () { env.AZURE_CLIENT_SECRET!, recorder.configureClientOptions({ loggingOptions: { allowLoggingAccountIdentifiers: true }, - }) + }), ); setLogLevel("info"); const spy = Sinon.spy(process.stderr, "write"); @@ -165,10 +165,10 @@ describe("ClientSecretCredential (internal)", function () { (expectedCall!.args[0] as any as string) .replace( /Object ID .user.: [a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+/g, - "Object ID (user): HIDDEN" + "Object ID (user): HIDDEN", ) .trim(), - expectedMessage + expectedMessage, ); spy.restore(); AzureLogger.destroy(); diff --git a/sdk/identity/identity/test/internal/node/deviceCodeCredential.spec.ts b/sdk/identity/identity/test/internal/node/deviceCodeCredential.spec.ts index ca027f8933d3..550b89147368 100644 --- a/sdk/identity/identity/test/internal/node/deviceCodeCredential.spec.ts +++ b/sdk/identity/identity/test/internal/node/deviceCodeCredential.spec.ts @@ -29,7 +29,7 @@ describe("DeviceCodeCredential (internal)", function () { // MsalClientSecret calls to this method underneath. doGetTokenSpy = setup.sandbox.spy( PublicClientApplication.prototype, - "acquireTokenByDeviceCode" + "acquireTokenByDeviceCode", ); }); afterEach(async function () { @@ -47,7 +47,7 @@ describe("DeviceCodeCredential (internal)", function () { recorder.configureClientOptions({ tenantId: env.AZURE_TENANT_ID, clientId: env.AZURE_CLIENT_ID, - }) + }), ); await credential.getToken(scope); @@ -58,12 +58,12 @@ describe("DeviceCodeCredential (internal)", function () { assert.equal( getTokenSilentSpy.callCount, 2, - "getTokenSilentSpy.callCount should have been 2 (2nd time)" + "getTokenSilentSpy.callCount should have been 2 (2nd time)", ); assert.equal( doGetTokenSpy.callCount, 1, - "doGetTokenSpy.callCount should have been 1 (2nd time)" + "doGetTokenSpy.callCount should have been 1 (2nd time)", ); }); @@ -76,7 +76,7 @@ describe("DeviceCodeCredential (internal)", function () { recorder.configureClientOptions({ tenantId: env.AZURE_TENANT_ID, clientId: env.AZURE_CLIENT_ID, - }) + }), ); await credential.getToken(scope, { tenantId: env.AZURE_TENANT_ID } as GetTokenOptions); diff --git a/sdk/identity/identity/test/internal/node/interactiveBrowserCredential.spec.ts b/sdk/identity/identity/test/internal/node/interactiveBrowserCredential.spec.ts index 2623686008e8..c8056354be36 100644 --- a/sdk/identity/identity/test/internal/node/interactiveBrowserCredential.spec.ts +++ b/sdk/identity/identity/test/internal/node/interactiveBrowserCredential.spec.ts @@ -51,7 +51,7 @@ describe("InteractiveBrowserCredential (internal)", function () { const testErrorMessage = "No browsers available on this test."; (sandbox.stub(interactiveBrowserMockable, "open") as any).throws( "BrowserConfigurationAuthError", - testErrorMessage + testErrorMessage, ); const credential = new InteractiveBrowserCredential( @@ -59,7 +59,7 @@ describe("InteractiveBrowserCredential (internal)", function () { redirectUri: "http://localhost:8081", tenantId: env.AZURE_TENANT_ID, clientId: env.AZURE_CLIENT_ID, - } as InteractiveBrowserCredentialNodeOptions) + } as InteractiveBrowserCredentialNodeOptions), ); let error: Error | undefined; diff --git a/sdk/identity/identity/test/internal/node/managedIdentityCredential.spec.ts b/sdk/identity/identity/test/internal/node/managedIdentityCredential.spec.ts index 7d703c9df284..b5165ed10b2a 100644 --- a/sdk/identity/identity/test/internal/node/managedIdentityCredential.spec.ts +++ b/sdk/identity/identity/test/internal/node/managedIdentityCredential.spec.ts @@ -86,7 +86,7 @@ describe("ManagedIdentityCredential", function () { assert.ok(authRequest.url.startsWith(imdsHost), "URL does not start with expected host"); assert.ok( authRequest.url.indexOf(`api-version=${imdsApiVersion}`) > -1, - "URL does not have expected version" + "URL does not have expected version", ); }); @@ -123,7 +123,7 @@ describe("ManagedIdentityCredential", function () { oid: "HIDDEN", }; const base64AccessTokenData = Buffer.from(JSON.stringify(accessTokenData), "utf8").toString( - "base64" + "base64", ); const authDetails = await testContext.sendCredentialRequests({ @@ -157,7 +157,7 @@ describe("ManagedIdentityCredential", function () { assert.ok(authRequest.url.startsWith(imdsHost), "URL does not start with expected host"); assert.ok( authRequest.url.indexOf(`api-version=${imdsApiVersion}`) > -1, - "URL does not have expected version" + "URL does not have expected version", ); const expectedMessage = `azure:identity:info ManagedIdentityCredential => getToken() => SUCCESS. Scopes: https://service/.default.`; assert.equal((spy.getCall(spy.callCount - 2).args[0] as any as string).trim(), expectedMessage); @@ -202,7 +202,7 @@ describe("ManagedIdentityCredential", function () { }); assert.ok( error!.message!.indexOf("No MSI credential available") > -1, - "Failed to match the expected error" + "Failed to match the expected error", ); }); @@ -264,7 +264,7 @@ describe("ManagedIdentityCredential", function () { "connecting to 169.254.169.254:80: connecting to 169.254.169.254:80: dial tcp 169.254.169.254:80: connectex: A socket operation was attempted to an unreachable network.", { statusCode: 403, - } + }, ); const { error } = await testContext.sendCredentialRequests({ @@ -330,8 +330,8 @@ describe("ManagedIdentityCredential", function () { assert.ok( error!.message!.indexOf( - `Failed to retrieve IMDS token after ${imdsMsiRetryConfig.maxRetries} retries.` - ) > -1 + `Failed to retrieve IMDS token after ${imdsMsiRetryConfig.maxRetries} retries.`, + ) > -1, ); }); @@ -391,7 +391,7 @@ describe("ManagedIdentityCredential", function () { assert.ok(error?.message); assert.equal( error?.message.split("\n")[0], - "ManagedIdentityCredential authentication failed. Status code: 503" + "ManagedIdentityCredential authentication failed. Status code: 503", ); }); @@ -413,7 +413,7 @@ describe("ManagedIdentityCredential", function () { assert.ok(error?.message); assert.equal( error?.message.split("\n")[0], - "ManagedIdentityCredential authentication failed. Status code: 500" + "ManagedIdentityCredential authentication failed. Status code: 500", ); }); @@ -441,7 +441,7 @@ describe("ManagedIdentityCredential", function () { assert.ok(error?.message); assert.equal( error?.message.split("\n")[0], - "ManagedIdentityCredential authentication failed. Status code: 503" + "ManagedIdentityCredential authentication failed. Status code: 503", ); }); @@ -469,7 +469,7 @@ describe("ManagedIdentityCredential", function () { assert.ok(error?.message); assert.equal( error?.message.split("\n")[0], - "ManagedIdentityCredential authentication failed. Status code: 503" + "ManagedIdentityCredential authentication failed. Status code: 503", ); }); @@ -479,7 +479,7 @@ describe("ManagedIdentityCredential", function () { assert.ok( await imdsMsi.isAvailable({ scopes: "https://endpoint/.default", - }) + }), ); }); @@ -503,7 +503,7 @@ describe("ManagedIdentityCredential", function () { const imdsPingRequest = authDetails.requests[0]; assert.equal( imdsPingRequest.url, - "http://10.0.0.1/metadata/identity/oauth2/token?resource=https%3A%2F%2Fservice&api-version=2018-02-01&msi_res_id=resource-id" + "http://10.0.0.1/metadata/identity/oauth2/token?resource=https%3A%2F%2Fservice&api-version=2018-02-01&msi_res_id=resource-id", ); }); @@ -526,7 +526,7 @@ describe("ManagedIdentityCredential", function () { assert.equal( imdsPingRequest.url, - "http://10.0.0.1/metadata/identity/oauth2/token?resource=https%3A%2F%2Fservice&api-version=2018-02-01&client_id=client" + "http://10.0.0.1/metadata/identity/oauth2/token?resource=https%3A%2F%2Fservice&api-version=2018-02-01&client_id=client", ); }); @@ -541,7 +541,7 @@ describe("ManagedIdentityCredential", function () { createResponse(200), // Retries until exhaustion ...Array(DEFAULT_CLIENT_MAX_RETRY_COUNT + 1).fill( - createResponse(503, {}, { "Retry-After": "2" }) + createResponse(503, {}, { "Retry-After": "2" }), ), ], }); @@ -587,12 +587,12 @@ describe("ManagedIdentityCredential", function () { assert.equal(decodeURIComponent(query.get("resource")!), "https://service"); assert.ok( authRequest.url.startsWith(process.env.MSI_ENDPOINT), - "URL does not start with expected host and path" + "URL does not start with expected host and path", ); assert.equal(authRequest.headers.secret, process.env.MSI_SECRET); assert.ok( authRequest.url.indexOf(`api-version=2017-09-01`) > -1, - "URL does not have expected version" + "URL does not have expected version", ); if (authDetails.result?.token) { assert.equal(authDetails.result.expiresOnTimestamp, 1560999478000); @@ -625,12 +625,12 @@ describe("ManagedIdentityCredential", function () { assert.equal(decodeURIComponent(query.get("resource")!), "https://service"); assert.ok( authRequest.url.startsWith(process.env.IDENTITY_ENDPOINT), - "URL does not start with expected host and path" + "URL does not start with expected host and path", ); assert.equal(authRequest.headers["X-IDENTITY-HEADER"], process.env.IDENTITY_HEADER); assert.ok( authRequest.url.indexOf(`api-version=2019-08-01`) > -1, - "URL does not have expected version" + "URL does not have expected version", ); if (authDetails.result?.token) { assert.equal(authDetails.result.expiresOnTimestamp, 1624157878000); @@ -663,12 +663,12 @@ describe("ManagedIdentityCredential", function () { assert.equal(decodeURIComponent(query.get("mi_res_id")!), "RESOURCE-ID"); assert.ok( authRequest.url.startsWith(process.env.IDENTITY_ENDPOINT), - "URL does not start with expected host and path" + "URL does not start with expected host and path", ); assert.equal(authRequest.headers["X-IDENTITY-HEADER"], process.env.IDENTITY_HEADER); assert.ok( authRequest.url.indexOf(`api-version=2019-08-01`) > -1, - "URL does not have expected version" + "URL does not have expected version", ); if (authDetails.result?.token) { assert.equal(authDetails.result.expiresOnTimestamp, 1624157878000); @@ -786,7 +786,7 @@ describe("ManagedIdentityCredential", function () { {}, { "www-authenticate": `we don't pay much attention about this format=${tempFile}`, - } + }, ), createResponse(200, { access_token: "token", @@ -804,7 +804,7 @@ describe("ManagedIdentityCredential", function () { assert.ok( validationRequest.url.startsWith(process.env.IDENTITY_ENDPOINT), - "URL does not start with expected host and path" + "URL does not start with expected host and path", ); // Authorization request, which comes after getting the file path, for now at least. @@ -816,7 +816,7 @@ describe("ManagedIdentityCredential", function () { assert.ok( authRequest.url.startsWith(process.env.IDENTITY_ENDPOINT), - "URL does not start with expected host and path" + "URL does not start with expected host and path", ); assert.equal(authRequest.headers.Authorization, `Basic ${key}`); @@ -855,7 +855,7 @@ describe("ManagedIdentityCredential", function () { {}, { "www-authenticate": `we don't pay much attention about this format=${tempFile}`, - } + }, ), createResponse(200, { access_token: "token", @@ -874,7 +874,7 @@ describe("ManagedIdentityCredential", function () { assert.ok( validationRequest.url.startsWith(process.env.IDENTITY_ENDPOINT), - "URL does not start with expected host and path" + "URL does not start with expected host and path", ); // Authorization request, which comes after getting the file path, for now at least. @@ -888,7 +888,7 @@ describe("ManagedIdentityCredential", function () { assert.ok( authRequest.url.startsWith(process.env.IDENTITY_ENDPOINT), - "URL does not start with expected host and path" + "URL does not start with expected host and path", ); assert.equal(authRequest.headers.Authorization, `Basic ${key}`); @@ -927,7 +927,7 @@ describe("ManagedIdentityCredential", function () { {}, { "www-authenticate": `we don't pay much attention about this format=${tempFile}`, - } + }, ), createResponse(200, { access_token: "token", @@ -946,7 +946,7 @@ describe("ManagedIdentityCredential", function () { assert.ok( validationRequest.url.startsWith(process.env.IDENTITY_ENDPOINT), - "URL does not start with expected host and path" + "URL does not start with expected host and path", ); // Authorization request, which comes after getting the file path, for now at least. @@ -960,7 +960,7 @@ describe("ManagedIdentityCredential", function () { assert.ok( authRequest.url.startsWith(process.env.IDENTITY_ENDPOINT), - "URL does not start with expected host and path" + "URL does not start with expected host and path", ); assert.equal(authRequest.headers.Authorization, `Basic ${key}`); @@ -1005,7 +1005,7 @@ describe("ManagedIdentityCredential", function () { assert.equal(decodeURIComponent(query.get("resource")!), "https://service"); assert.ok( authRequest.url.startsWith(process.env.IDENTITY_ENDPOINT), - "URL does not start with expected host and path" + "URL does not start with expected host and path", ); assert.equal(authRequest.headers.secret, process.env.IDENTITY_HEADER); @@ -1047,7 +1047,7 @@ describe("ManagedIdentityCredential", function () { assert.equal(decodeURIComponent(query.get("resource")!), "https://service"); assert.ok( authRequest.url.startsWith(process.env.IDENTITY_ENDPOINT), - "URL does not start with expected host and path" + "URL does not start with expected host and path", ); assert.equal(authRequest.headers.secret, process.env.IDENTITY_HEADER); diff --git a/sdk/identity/identity/test/internal/node/onBehalfOfCredential.spec.ts b/sdk/identity/identity/test/internal/node/onBehalfOfCredential.spec.ts index 0b8d0f3df1f7..7daeb964b9e9 100644 --- a/sdk/identity/identity/test/internal/node/onBehalfOfCredential.spec.ts +++ b/sdk/identity/identity/test/internal/node/onBehalfOfCredential.spec.ts @@ -31,7 +31,7 @@ describe("OnBehalfOfCredential", function () { const newMSALClientLogs = (): number => testContext.logMessages.filter((message) => - message.match("Initialized MSAL's On-Behalf-Of flow") + message.match("Initialized MSAL's On-Behalf-Of flow"), ).length; const authDetails = await testContext.sendCredentialRequests({ @@ -64,7 +64,7 @@ describe("OnBehalfOfCredential", function () { const newMSALClientLogs = (): number => testContext.logMessages.filter((message) => - message.match("Initialized MSAL's On-Behalf-Of flow") + message.match("Initialized MSAL's On-Behalf-Of flow"), ).length; const authDetails = await testContext.sendCredentialRequests({ diff --git a/sdk/identity/identity/test/internal/node/usernamePasswordCredential.spec.ts b/sdk/identity/identity/test/internal/node/usernamePasswordCredential.spec.ts index 51dfb3f0c130..9bc65c5aa352 100644 --- a/sdk/identity/identity/test/internal/node/usernamePasswordCredential.spec.ts +++ b/sdk/identity/identity/test/internal/node/usernamePasswordCredential.spec.ts @@ -31,7 +31,7 @@ describe("UsernamePasswordCredential (internal)", function () { // MsalClientSecret calls to this method underneath. doGetTokenSpy = setup.sandbox.spy( PublicClientApplication.prototype, - "acquireTokenByUsernamePassword" + "acquireTokenByUsernamePassword", ); }); @@ -48,7 +48,7 @@ describe("UsernamePasswordCredential (internal)", function () { undefined as any, env.AZURE_CLIENT_ID!, env.AZURE_USERNAME!, - env.AZURE_PASSWORD! + env.AZURE_PASSWORD!, ); } catch (e: any) { errors.push(e); @@ -58,7 +58,7 @@ describe("UsernamePasswordCredential (internal)", function () { env.AZURE_TENANT_ID!, undefined as any, env.AZURE_USERNAME!, - env.AZURE_PASSWORD! + env.AZURE_PASSWORD!, ); } catch (e: any) { errors.push(e); @@ -68,7 +68,7 @@ describe("UsernamePasswordCredential (internal)", function () { env.AZURE_TENANT_ID!, env.AZURE_CLIENT_ID!, undefined as any, - env.AZURE_PASSWORD! + env.AZURE_PASSWORD!, ); } catch (e: any) { errors.push(e); @@ -78,7 +78,7 @@ describe("UsernamePasswordCredential (internal)", function () { env.AZURE_TENANT_ID!, env.AZURE_CLIENT_ID!, env.AZURE_USERNAME!, - undefined as any + undefined as any, ); } catch (e: any) { errors.push(e); @@ -89,7 +89,7 @@ describe("UsernamePasswordCredential (internal)", function () { undefined as any, undefined as any, undefined as any, - undefined as any + undefined as any, ); } catch (e: any) { errors.push(e); @@ -98,7 +98,7 @@ describe("UsernamePasswordCredential (internal)", function () { errors.forEach((e) => { assert.equal( e.message, - "UsernamePasswordCredential: tenantId, clientId, username and password are required parameters. To troubleshoot, visit https://aka.ms/azsdk/js/identity/usernamepasswordcredential/troubleshoot." + "UsernamePasswordCredential: tenantId, clientId, username and password are required parameters. To troubleshoot, visit https://aka.ms/azsdk/js/identity/usernamepasswordcredential/troubleshoot.", ); }); }); @@ -115,7 +115,7 @@ describe("UsernamePasswordCredential (internal)", function () { env.AZURE_TENANT_ID!, env.AZURE_CLIENT_ID!, env.AZURE_USERNAME!, - env.AZURE_PASSWORD! + env.AZURE_PASSWORD!, ); await credential.getToken(scope); @@ -137,7 +137,7 @@ describe("UsernamePasswordCredential (internal)", function () { env.AZURE_IDENTITY_TEST_CLIENTID || env.AZURE_CLIENT_ID!, env.AZURE_IDENTITY_TEST_USERNAME || env.AZURE_USERNAME!, env.AZURE_IDENTITY_TEST_PASSWORD || env.AZURE_PASSWORD!, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); await credential.getToken(scope, { tenantId: env.AZURE_TENANT_ID } as GetTokenOptions); @@ -160,7 +160,7 @@ describe("UsernamePasswordCredential (internal)", function () { env.AZURE_IDENTITY_TEST_PASSWORD || env.AZURE_PASSWORD!, recorder.configureClientOptions({ loggingOptions: { allowLoggingAccountIdentifiers: true }, - }) + }), ); setLogLevel("info"); const spy = Sinon.spy(process.stderr, "write"); @@ -175,10 +175,10 @@ describe("UsernamePasswordCredential (internal)", function () { .replace(/User Principal Name: [^ ]+. /g, "User Principal Name: HIDDEN. ") .replace( /Object ID .user.: [a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+/g, - "Object ID (user): HIDDEN" + "Object ID (user): HIDDEN", ) .trim(), - expectedMessage + expectedMessage, ); spy.restore(); AzureLogger.destroy(); diff --git a/sdk/identity/identity/test/internal/node/workloadIdentityCredential.spec.ts b/sdk/identity/identity/test/internal/node/workloadIdentityCredential.spec.ts index e19faac67947..d4d8ffcfa93e 100644 --- a/sdk/identity/identity/test/internal/node/workloadIdentityCredential.spec.ts +++ b/sdk/identity/identity/test/internal/node/workloadIdentityCredential.spec.ts @@ -90,7 +90,7 @@ describe("WorkloadIdentityCredential", function () { clientId, tenantId, tokenFilePath, - } + }, ); } catch (e) { console.log(e); @@ -115,7 +115,7 @@ describe("WorkloadIdentityCredential", function () { clientId: "workloadIdentityClientId", tenantId, tokenFilePath, - } + }, ); } catch (e) { console.log(e); @@ -128,7 +128,7 @@ describe("WorkloadIdentityCredential", function () { async function validateWorkloadIdentityCredential( credential: WorkloadIdentityCredential, token: AccessToken, - options: { clientId: string; tenantId: string; tokenFilePath: string } + options: { clientId: string; tenantId: string; tokenFilePath: string }, ) { const { clientId: expectedClientId, diff --git a/sdk/identity/identity/test/internal/utils.spec.ts b/sdk/identity/identity/test/internal/utils.spec.ts index f46f8d9b5cd8..a39d10dade82 100644 --- a/sdk/identity/identity/test/internal/utils.spec.ts +++ b/sdk/identity/identity/test/internal/utils.spec.ts @@ -18,7 +18,7 @@ describe("Identity utilities", function () { processMultiTenantRequest("same-tenant", { tenantId: "same-tenant", }), - "same-tenant" + "same-tenant", ); }); @@ -29,9 +29,9 @@ describe("Identity utilities", function () { { tenantId: "get-token-options-tenant-id", }, - ["*"] + ["*"], ), - "get-token-options-tenant-id" + "get-token-options-tenant-id", ); }); @@ -42,9 +42,9 @@ describe("Identity utilities", function () { { tenantId: "get-token-options-tenant-id", }, - ["get-token-options-tenant-id"] + ["get-token-options-tenant-id"], ), - "get-token-options-tenant-id" + "get-token-options-tenant-id", ); }); }); @@ -53,25 +53,25 @@ describe("Identity utilities", function () { it("should add the tenant Id when the authority host ends with a slash", async function () { assert.equal( getAuthority("tenant-id", "https://login.microsoftonline.com/"), - "https://login.microsoftonline.com/tenant-id" + "https://login.microsoftonline.com/tenant-id", ); }); it("should add the tenant Id when the authority host ends without a slash", async function () { assert.equal( getAuthority("tenant-id", "https://login.microsoftonline.com"), - "https://login.microsoftonline.com/tenant-id" + "https://login.microsoftonline.com/tenant-id", ); }); it("should not add the tenant twice", async function () { assert.equal( getAuthority("tenant-id", "https://login.microsoftonline.com/tenant-id"), - "https://login.microsoftonline.com/tenant-id" + "https://login.microsoftonline.com/tenant-id", ); }); it("should not add the tenant twice even when it ends in a slash", async function () { assert.equal( getAuthority("tenant-id", "https://login.microsoftonline.com/tenant-id/"), - "https://login.microsoftonline.com/tenant-id/" + "https://login.microsoftonline.com/tenant-id/", ); }); }); diff --git a/sdk/identity/identity/test/manual-integration/AzureFunctions/IdentityTest/KeyvaultAuthentication/index.ts b/sdk/identity/identity/test/manual-integration/AzureFunctions/IdentityTest/KeyvaultAuthentication/index.ts index 938dd69a5329..658188f9413c 100644 --- a/sdk/identity/identity/test/manual-integration/AzureFunctions/IdentityTest/KeyvaultAuthentication/index.ts +++ b/sdk/identity/identity/test/manual-integration/AzureFunctions/IdentityTest/KeyvaultAuthentication/index.ts @@ -4,7 +4,7 @@ import { AzureFunction, Context, HttpRequest } from "@azure/functions"; const httpTrigger: AzureFunction = async function ( context: Context, - req: HttpRequest + req: HttpRequest, ): Promise { try { const credential = new DefaultAzureCredential(); diff --git a/sdk/identity/identity/test/manual-integration/Kubernetes/index.ts b/sdk/identity/identity/test/manual-integration/Kubernetes/index.ts index 84f2004a56a2..72ab04314049 100644 --- a/sdk/identity/identity/test/manual-integration/Kubernetes/index.ts +++ b/sdk/identity/identity/test/manual-integration/Kubernetes/index.ts @@ -7,7 +7,7 @@ async function main(): Promise { console.log("About to auth: ", process.env.AZURE_IDENTITY_TEST_MANAGED_IDENTITY_CLIENT_ID); // This will use the user managed identity in the environment called AZURE_IDENTITY_TEST_MANAGED_IDENTITY_CLIENT_ID const credential = new ManagedIdentityCredential( - process.env.AZURE_IDENTITY_TEST_MANAGED_IDENTITY_CLIENT_ID! + process.env.AZURE_IDENTITY_TEST_MANAGED_IDENTITY_CLIENT_ID!, ); const url = process.env.AZURE_IDENTITY_TEST_VAULT_URL!; diff --git a/sdk/identity/identity/test/manual-integration/Kubernetes/run_test.ts b/sdk/identity/identity/test/manual-integration/Kubernetes/run_test.ts index a33c316fb5ed..ddc91bead45b 100644 --- a/sdk/identity/identity/test/manual-integration/Kubernetes/run_test.ts +++ b/sdk/identity/identity/test/manual-integration/Kubernetes/run_test.ts @@ -43,7 +43,7 @@ const argv = yargs }) .demandOption( ["client-id", "resource-id", "vault-url", "repository", "image-name", "image-tag"], - "please provide all required parameters" + "please provide all required parameters", ) .help() .alias("help", "h").argv; diff --git a/sdk/identity/identity/test/manual/authorization-code-credential/authorizationCodeSample.ts b/sdk/identity/identity/test/manual/authorization-code-credential/authorizationCodeSample.ts index ea3924a0df63..5512cc37cc69 100644 --- a/sdk/identity/identity/test/manual/authorization-code-credential/authorizationCodeSample.ts +++ b/sdk/identity/identity/test/manual/authorization-code-credential/authorizationCodeSample.ts @@ -74,14 +74,14 @@ async function getCredential(): Promise { } else { reject( new Error( - `Authentication Error "${req.query["error"]}":\n\n${req.query["error_description"]}` - ) + `Authentication Error "${req.query["error"]}":\n\n${req.query["error_description"]}`, + ), ); } }); server = app.listen(port, () => - console.log(`Authorization code redirect server listening on port ${port}`) + console.log(`Authorization code redirect server listening on port ${port}`), ); }); @@ -110,7 +110,7 @@ async function getCredential(): Promise { // the default authority host: https://login.microsoftonline.com. It is only // necessary when a different authority host is used in the initial authorization // URI. - { authorityHost } + { authorityHost }, ); } else { // NOTE: If there is no client secret, we can construct an auth code credential @@ -124,7 +124,7 @@ async function getCredential(): Promise { // the default authority host: https://login.microsoftonline.com. It is only // necessary when a different authority host is used in the initial authorization // URI. - { authorityHost } + { authorityHost }, ); } } diff --git a/sdk/identity/identity/test/manual/interactive-browser-credential/package.json b/sdk/identity/identity/test/manual/interactive-browser-credential/package.json index c6913124626c..7e018df82ed1 100644 --- a/sdk/identity/identity/test/manual/interactive-browser-credential/package.json +++ b/sdk/identity/identity/test/manual/interactive-browser-credential/package.json @@ -6,8 +6,8 @@ "scripts": { "build": "webpack --config webpack.config.js", "start": "webpack-dev-server", - "check-format": "prettier --list-different --config ../../../../../.prettierrc.json --ignore-path ../../../../../.prettierignore \"src/**/*.tsx\"", - "format": "prettier --write --config ../../../../../.prettierrc.json --ignore-path ../../../../../.prettierignore \"src/**/*.tsx\"" + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../../.prettierrc.json --ignore-path ../../../../../.prettierignore \"src/**/*.tsx\"", + "format": "dev-tool run vendored prettier --write --config ../../../../../.prettierrc.json --ignore-path ../../../../../.prettierignore \"src/**/*.tsx\"" }, "author": "Microsoft Corporation", "license": "MIT", @@ -19,6 +19,7 @@ "tslib": "2.4.1" }, "devDependencies": { + "@azure/dev-tool": "^1.0.0", "@azure/identity-cache-persistence": "^1.0.0", "@types/express": "^4.16.0", "@types/node": "^18.0.0", @@ -27,7 +28,6 @@ "@types/webpack": "^4.4.13", "@types/webpack-dev-middleware": "^2.0.2", "dotenv": "^16.0.0", - "prettier": "^2.5.1", "ts-loader": "^8.0.0", "typescript": "~5.2.0", "webpack": "^4.0.0", diff --git a/sdk/identity/identity/test/node/msalNodeTestSetup.ts b/sdk/identity/identity/test/node/msalNodeTestSetup.ts index 9ead0357ebb7..7b9a05761d4f 100644 --- a/sdk/identity/identity/test/node/msalNodeTestSetup.ts +++ b/sdk/identity/identity/test/node/msalNodeTestSetup.ts @@ -22,7 +22,7 @@ export interface MsalTestSetupResponse { export async function msalNodeTestSetup( testContext?: Test, - playbackClientId?: string + playbackClientId?: string, ): Promise<{ cleanup: MsalTestCleanup; recorder: Recorder; @@ -36,7 +36,7 @@ export async function msalNodeTestSetup(stubbedToken: AuthenticationResult): Pro export async function msalNodeTestSetup( testContextOrStubbedToken?: Test | AuthenticationResult, - playbackClientId = "azure_client_id" + playbackClientId = "azure_client_id", ): Promise { const playbackValues = { correlationId: "client-request-id", @@ -176,7 +176,7 @@ export async function msalNodeTestSetup( }, ], }, - ["record", "playback"] + ["record", "playback"], ); return { @@ -208,12 +208,12 @@ export async function msalNodeTestSetup( ]; publicClientMethods.forEach((method) => - sandbox.stub(PublicClientApplication.prototype, method).callsFake(async () => stubbedToken) + sandbox.stub(PublicClientApplication.prototype, method).callsFake(async () => stubbedToken), ); confidentialClientMethods.forEach((method) => sandbox .stub(ConfidentialClientApplication.prototype, method) - .callsFake(async () => stubbedToken) + .callsFake(async () => stubbedToken), ); return { diff --git a/sdk/identity/identity/test/public/browser/clientSecretCredential.spec.ts b/sdk/identity/identity/test/public/browser/clientSecretCredential.spec.ts index 75d3ebca3794..fc5d961a5501 100644 --- a/sdk/identity/identity/test/public/browser/clientSecretCredential.spec.ts +++ b/sdk/identity/identity/test/public/browser/clientSecretCredential.spec.ts @@ -33,7 +33,7 @@ describe("ClientSecretCredential", function () { authDetails.requests[0].body, "tenant", "client", - "secret" + "secret", ); }); }); diff --git a/sdk/identity/identity/test/public/browser/usernamePasswordCredential.spec.ts b/sdk/identity/identity/test/public/browser/usernamePasswordCredential.spec.ts index 644b5dc2a55a..17115150e42d 100644 --- a/sdk/identity/identity/test/public/browser/usernamePasswordCredential.spec.ts +++ b/sdk/identity/identity/test/public/browser/usernamePasswordCredential.spec.ts @@ -38,7 +38,7 @@ describe("UsernamePasswordCredential", function () { assert.strictEqual( authRequest.body.indexOf(`password=${encodeURIComponent(password)}`) > -1, true, - "Request body doesn't contain expected password" + "Request body doesn't contain expected password", ); }); }); diff --git a/sdk/identity/identity/test/public/chainedTokenCredential.spec.ts b/sdk/identity/identity/test/public/chainedTokenCredential.spec.ts index 25427e586199..d769457f8ef6 100644 --- a/sdk/identity/identity/test/public/chainedTokenCredential.spec.ts +++ b/sdk/identity/identity/test/public/chainedTokenCredential.spec.ts @@ -27,11 +27,11 @@ describe("ChainedTokenCredential", function () { new AuthenticationRequiredError({ scopes: ["https://vault.azure.net/.default"], message: "authentication-required.", - }) - ) + }), + ), ), mockCredential(Promise.resolve({ token: "firstToken", expiresOnTimestamp: 0 })), - mockCredential(Promise.resolve({ token: "secondToken", expiresOnTimestamp: 0 })) + mockCredential(Promise.resolve({ token: "secondToken", expiresOnTimestamp: 0 })), ); const accessToken = await chainedTokenCredential.getToken("scope"); assert.notStrictEqual(accessToken, null); @@ -41,18 +41,18 @@ describe("ChainedTokenCredential", function () { it("returns an AggregateAuthenticationError when no token is returned and one credential returned an error", async () => { const chainedTokenCredential = new ChainedTokenCredential( mockCredential(Promise.reject(new CredentialUnavailableError("unavailable."))), - mockCredential(Promise.reject(new CredentialUnavailableError("unavailable."))) + mockCredential(Promise.reject(new CredentialUnavailableError("unavailable."))), ); const error = await getError( - chainedTokenCredential.getToken("scope") + chainedTokenCredential.getToken("scope"), ); assert.deepEqual(error.errors.length, 2); assert.deepEqual( error.message, `ChainedTokenCredential authentication failed. CredentialUnavailableError: unavailable. -CredentialUnavailableError: unavailable.` +CredentialUnavailableError: unavailable.`, ); }); }); diff --git a/sdk/identity/identity/test/public/node/authorityValidation.spec.ts b/sdk/identity/identity/test/public/node/authorityValidation.spec.ts index f1d8e9b36a35..848219e33fbc 100644 --- a/sdk/identity/identity/test/public/node/authorityValidation.spec.ts +++ b/sdk/identity/identity/test/public/node/authorityValidation.spec.ts @@ -26,7 +26,7 @@ describe("AuthorityValidation", function () { env.AZURE_TENANT_ID!, env.AZURE_CLIENT_ID!, env.AZURE_CLIENT_SECRET!, - recorder.configureClientOptions({ disableInstanceDiscovery: true }) + recorder.configureClientOptions({ disableInstanceDiscovery: true }), ); const token = await credential.getToken(scope); diff --git a/sdk/identity/identity/test/public/node/azureApplicationCredential.spec.ts b/sdk/identity/identity/test/public/node/azureApplicationCredential.spec.ts index 1c8307986b42..7f6efe6c5270 100644 --- a/sdk/identity/identity/test/public/node/azureApplicationCredential.spec.ts +++ b/sdk/identity/identity/test/public/node/azureApplicationCredential.spec.ts @@ -68,7 +68,7 @@ describe.skip("AzureApplicationCredential", function () { "ChainedTokenCredential.getToken", "EnvironmentCredential.getToken", "ClientSecretCredential.getToken", - ] + ], ); }); diff --git a/sdk/identity/identity/test/public/node/caeARM.spec.ts b/sdk/identity/identity/test/public/node/caeARM.spec.ts index 7b27958810f6..1636564f075b 100644 --- a/sdk/identity/identity/test/public/node/caeARM.spec.ts +++ b/sdk/identity/identity/test/public/node/caeARM.spec.ts @@ -34,7 +34,7 @@ import { authorizeRequestOnClaimChallenge } from "@azure/core-client"; */ async function challengeFlow( credential: TokenCredential, - recorder: Recorder + recorder: Recorder, ): Promise { const managementScope = "https://management.azure.com/.default"; const graphScope = "User.ReadWrite.All"; @@ -86,7 +86,7 @@ async function challengeFlow( // This log line helps us see how long this is taking on record mode. console.log( "Waiting for the revocation of the token. Retrying in 30 seconds. Retry number", - ++count + ++count, ); await delay(30000); } @@ -104,7 +104,7 @@ async function challengeFlow( }, authorizeRequestOnChallenge: authorizeRequestOnClaimChallenge, }, - }) + }), ); pipeline.addPolicy(recorder.configureClientOptions({}).additionalPolicies![0].policy); const httpClient = createDefaultHttpClient(); @@ -119,7 +119,7 @@ async function challengeFlow( createPipelineRequest({ url: managementSubscriptions, method: "GET", - }) + }), ); assert.equal(finalResponse.status, 200, "Final response failed."); @@ -151,7 +151,7 @@ describe.skip("CAE", function () { it("DeviceCodeCredential", async function (this: Context) { const [firstAccessToken, finalAccessToken] = await challengeFlow( new DeviceCodeCredential(recorder.configureClientOptions({ tenantId: env.AZURE_TENANT_ID })), - recorder + recorder, ); assert.notDeepEqual(firstAccessToken, finalAccessToken); @@ -166,9 +166,9 @@ describe.skip("CAE", function () { DeveloperSignOnClientId, env.AZURE_USERNAME!, env.AZURE_PASSWORD!, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ), - recorder + recorder, ); assert.notDeepEqual(firstAccessToken, finalAccessToken); diff --git a/sdk/identity/identity/test/public/node/clientCertificateCredential.spec.ts b/sdk/identity/identity/test/public/node/clientCertificateCredential.spec.ts index aa5ffc373db2..f57120a650c2 100644 --- a/sdk/identity/identity/test/public/node/clientCertificateCredential.spec.ts +++ b/sdk/identity/identity/test/public/node/clientCertificateCredential.spec.ts @@ -37,7 +37,7 @@ describe("ClientCertificateCredential", function () { env.IDENTITY_SP_TENANT_ID || env.AZURE_TENANT_ID!, env.IDENTITY_SP_CLIENT_ID || env.AZURE_CLIENT_ID!, env.IDENTITY_SP_CERT_PEM || certificatePath!, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); const token = await credential.getToken(scope); @@ -53,7 +53,7 @@ describe("ClientCertificateCredential", function () { certificate: env.IDENTITY_PEM_CONTENTS || fs.readFileSync(certificatePath, { encoding: "utf-8" }), }, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); const token = await credential.getToken(scope); @@ -75,7 +75,7 @@ describe("ClientCertificateCredential", function () { recorder.configureClientOptions({ certificatePath: env.IDENTITY_SP_CERT_SNI_PEM || certificatePath, }), - { sendCertificateChain: true } + { sendCertificateChain: true }, ); const token = await credential.getToken(scope); @@ -100,7 +100,7 @@ describe("ClientCertificateCredential", function () { throw new Error("Fake HTTP client."); }, }, - }) + }), ); const controller = new AbortController(); @@ -133,12 +133,12 @@ describe("ClientCertificateCredential", function () { const credential = new ClientCertificateCredential( env.IDENTITY_SP_TENANT_ID || env.AZURE_TENANT_ID!, env.IDENTITY_SP_CLIENT_ID || env.AZURE_CLIENT_ID!, - recorder.configureClientOptions({ certificatePath }) + recorder.configureClientOptions({ certificatePath }), ); await credential.getToken(scope, tracingOptions); }, - ["ClientCertificateCredential.getToken"] + ["ClientCertificateCredential.getToken"], ); }); }); diff --git a/sdk/identity/identity/test/public/node/clientSecretCredential.spec.ts b/sdk/identity/identity/test/public/node/clientSecretCredential.spec.ts index a6e0872bd89a..164dd970a0d6 100644 --- a/sdk/identity/identity/test/public/node/clientSecretCredential.spec.ts +++ b/sdk/identity/identity/test/public/node/clientSecretCredential.spec.ts @@ -29,7 +29,7 @@ describe("ClientSecretCredential", function () { env.AZURE_TENANT_ID!, env.AZURE_CLIENT_ID!, env.AZURE_CLIENT_SECRET!, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); const token = await credential.getToken(scope); @@ -42,7 +42,7 @@ describe("ClientSecretCredential", function () { env.AZURE_TENANT_ID!, env.AZURE_CLIENT_ID!, env.AZURE_CLIENT_SECRET!, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); const token = await credential.getToken(scope, { enableCae: true }); @@ -55,7 +55,7 @@ describe("ClientSecretCredential", function () { env.AZURE_TENANT_ID!, env.AZURE_CLIENT_ID!, env.AZURE_CLIENT_SECRET!, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); const controller = new AbortController(); @@ -83,12 +83,12 @@ describe("ClientSecretCredential", function () { env.AZURE_TENANT_ID!, env.AZURE_CLIENT_ID!, env.AZURE_CLIENT_SECRET!, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); await credential.getToken(scope, tracingOptions); }, - ["ClientSecretCredential.getToken"] + ["ClientSecretCredential.getToken"], ); }); @@ -108,7 +108,7 @@ describe("ClientSecretCredential", function () { recorder.configureClientOptions({ // TODO: Uncomment again once we're ready to release this feature. // regionalAuthority: RegionalAuthority.AutoDiscoverRegion - }) + }), ); const token = await credential.getToken(scope); diff --git a/sdk/identity/identity/test/public/node/deviceCodeCredential.spec.ts b/sdk/identity/identity/test/public/node/deviceCodeCredential.spec.ts index 1b5e1d46de9d..622137e73ab0 100644 --- a/sdk/identity/identity/test/public/node/deviceCodeCredential.spec.ts +++ b/sdk/identity/identity/test/public/node/deviceCodeCredential.spec.ts @@ -49,7 +49,7 @@ describe("DeviceCodeCredential", function () { recorder.configureClientOptions({ tenantId: env.AZURE_TENANT_ID, clientId: env.AZURE_CLIENT_ID, - }) + }), ); const token = await credential.getToken(scope); @@ -66,7 +66,7 @@ describe("DeviceCodeCredential", function () { recorder.configureClientOptions({ tenantId: env.AZURE_TENANT_ID, clientId: env.AZURE_CLIENT_ID, - }) + }), ); // Important: Specifying permissions on the scope parameter of getToken won't work on client credential flows. @@ -88,7 +88,7 @@ describe("DeviceCodeCredential", function () { tenantId: env.AZURE_TENANT_ID, clientId: env.AZURE_CLIENT_ID, userPromptCallback: callback, - }) + }), ); const token = await credential.getToken(scope); @@ -111,7 +111,7 @@ describe("DeviceCodeCredential", function () { recorder.configureClientOptions({ tenantId: env.AZURE_TENANT_ID, clientId: env.AZURE_CLIENT_ID, - }) + }), ); const controller = new AbortController(); @@ -141,7 +141,7 @@ describe("DeviceCodeCredential", function () { const credential = new DeviceCodeCredential( recorder.configureClientOptions({ disableAutomaticAuthentication: true, - }) + }), ); let error: AbortError | undefined; @@ -152,7 +152,7 @@ describe("DeviceCodeCredential", function () { } assert.equal( error?.message, - `Automatic authentication has been disabled. You may call the authentication() method.` + `Automatic authentication has been disabled. You may call the authentication() method.`, ); const account = await credential.authenticate(scope); @@ -170,12 +170,12 @@ describe("DeviceCodeCredential", function () { recorder.configureClientOptions({ tenantId: env.AZURE_TENANT_ID, clientId: env.AZURE_CLIENT_ID, - }) + }), ); await credential.getToken(scope, tracingOptions); }, - ["DeviceCodeCredential.getToken"] + ["DeviceCodeCredential.getToken"], ); }); }); diff --git a/sdk/identity/identity/test/public/node/environmentCredential.spec.ts b/sdk/identity/identity/test/public/node/environmentCredential.spec.ts index a943a081de96..545dafd1c872 100644 --- a/sdk/identity/identity/test/public/node/environmentCredential.spec.ts +++ b/sdk/identity/identity/test/public/node/environmentCredential.spec.ts @@ -116,7 +116,7 @@ describe("EnvironmentCredential", function () { assert.equal( getTokenSpy.callCount, 1, - "UsernamePasswordCredential getToken should have been called" + "UsernamePasswordCredential getToken should have been called", ); }); @@ -133,7 +133,7 @@ describe("EnvironmentCredential", function () { await credential.getToken(scope, tracingOptions); }, - ["EnvironmentCredential.getToken"] + ["EnvironmentCredential.getToken"], ); }); @@ -155,7 +155,7 @@ describe("EnvironmentCredential", function () { await credential.getToken(scope, tracingOptions); }, - ["EnvironmentCredential.getToken"] + ["EnvironmentCredential.getToken"], ); }); @@ -178,7 +178,7 @@ describe("EnvironmentCredential", function () { // We will focus our test on making sure the underlying getToken was called. } }, - ["EnvironmentCredential.getToken"] + ["EnvironmentCredential.getToken"], ); }); @@ -188,8 +188,8 @@ describe("EnvironmentCredential", function () { assert.equal(error.name, "CredentialUnavailableError"); assert.ok( error.message.indexOf( - "EnvironmentCredential is unavailable. No underlying credential could be used." - ) > -1 + "EnvironmentCredential is unavailable. No underlying credential could be used.", + ) > -1, ); }); diff --git a/sdk/identity/identity/test/public/node/extensions.spec.ts b/sdk/identity/identity/test/public/node/extensions.spec.ts index 12fa31b92213..b9ffabbb7b9c 100644 --- a/sdk/identity/identity/test/public/node/extensions.spec.ts +++ b/sdk/identity/identity/test/public/node/extensions.spec.ts @@ -14,7 +14,7 @@ async function assertRejects(p: Promise, regexp: RegExp): Promise } catch (e: any) { if (!regexp.test(e.message)) { throw new AssertionError( - `The input did not match the regular expression ${regexp}. Input:\n\n'${e.message}'` + `The input did not match the regular expression ${regexp}. Input:\n\n'${e.message}'`, ); } return; @@ -36,7 +36,7 @@ describe("Plugin API", function (this: Mocha.Suite) { it("Calling getToken on VisualStudioCodeCredential throws if not initialized", async function () { await assertRejects( new VisualStudioCodeCredential().getToken("https://graph.microsoft.com/.default"), - /No implementation of `VisualStudioCodeCredential`.*@azure\/identity-vscode/ + /No implementation of `VisualStudioCodeCredential`.*@azure\/identity-vscode/, ); }); }); diff --git a/sdk/identity/identity/test/public/node/usernamePasswordCredential.spec.ts b/sdk/identity/identity/test/public/node/usernamePasswordCredential.spec.ts index 0136aba38c2c..ef7d2d458b56 100644 --- a/sdk/identity/identity/test/public/node/usernamePasswordCredential.spec.ts +++ b/sdk/identity/identity/test/public/node/usernamePasswordCredential.spec.ts @@ -37,7 +37,7 @@ describe("UsernamePasswordCredential", function () { clientId, env.AZURE_IDENTITY_TEST_USERNAME || env.AZURE_USERNAME!, env.AZURE_IDENTITY_TEST_PASSWORD || env.AZURE_PASSWORD!, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); const token = await credential.getToken(scope); @@ -53,7 +53,7 @@ describe("UsernamePasswordCredential", function () { tenantId, clientId, env.AZURE_IDENTITY_TEST_USERNAME || env.AZURE_USERNAME!, - env.AZURE_IDENTITY_TEST_PASSWORD || env.AZURE_PASSWORD! + env.AZURE_IDENTITY_TEST_PASSWORD || env.AZURE_PASSWORD!, ); const controller = new AbortController(); @@ -85,12 +85,12 @@ describe("UsernamePasswordCredential", function () { clientId, env.AZURE_IDENTITY_TEST_USERNAME || env.AZURE_USERNAME!, env.AZURE_IDENTITY_TEST_PASSWORD || env.AZURE_PASSWORD!, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); await credential.getToken(scope, tracingOptions); }, - ["UsernamePasswordCredential.getToken"] + ["UsernamePasswordCredential.getToken"], ); }); }); diff --git a/sdk/identity/identity/test/public/node/utils/utils.ts b/sdk/identity/identity/test/public/node/utils/utils.ts index 6ae1002ff002..46e53c6df816 100644 --- a/sdk/identity/identity/test/public/node/utils/utils.ts +++ b/sdk/identity/identity/test/public/node/utils/utils.ts @@ -11,7 +11,7 @@ import { randomUUID } from "@azure/core-util"; export async function createJWTTokenFromCertificate( authorityHost: string, clientId: string, - certificatePath: string + certificatePath: string, ): Promise { console.log("client ID =", clientId); const privateKeyPemCert = fs.readFileSync(certificatePath); diff --git a/sdk/identity/identity/test/public/node/workloadIdentityCredential.spec.ts b/sdk/identity/identity/test/public/node/workloadIdentityCredential.spec.ts index 4764984c765c..844d4d8d79df 100644 --- a/sdk/identity/identity/test/public/node/workloadIdentityCredential.spec.ts +++ b/sdk/identity/identity/test/public/node/workloadIdentityCredential.spec.ts @@ -50,7 +50,7 @@ describe.skip("WorkloadIdentityCredential", function () { tenantId, clientId, tokenFilePath: fileDir.tempFile, - } as WorkloadIdentityCredentialOptions) + } as WorkloadIdentityCredentialOptions), ); try { const token = await credential.getToken(scope); @@ -94,7 +94,7 @@ describe.skip("WorkloadIdentityCredential", function () { const credential = new DefaultAzureCredential( recorder.configureClientOptions({ managedIdentityClientId: "f850650c-1fcf-4489-b46f-71af2e30d360", - }) + }), ); try { const token = await credential.getToken(scope); diff --git a/sdk/identity/perf-tests/identity/package.json b/sdk/identity/perf-tests/identity/package.json index 3040b85e149a..4a9b68caa3e4 100644 --- a/sdk/identity/perf-tests/identity/package.json +++ b/sdk/identity/perf-tests/identity/package.json @@ -17,11 +17,11 @@ "@types/node": "^18.0.0", "@types/uuid": "^8.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "ts-node": "^10.0.0", "tslib": "^2.2.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -30,9 +30,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json index ed5028bf36b4..d9bf16b0b86d 100644 --- a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json +++ b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json @@ -23,11 +23,11 @@ "build:samples": "echo Obsolete", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md", "integration-test:browser": "karma start --single-run", "integration-test:node": "dev-tool run test:node-js-input --no-test-proxy=true", @@ -102,7 +102,6 @@ "karma-mocha-reporter": "^2.2.5", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "source-map-support": "^0.5.9", diff --git a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/src/instrumentation.browser.ts b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/src/instrumentation.browser.ts index 6e0af28fcd29..6a39e11cd96d 100644 --- a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/src/instrumentation.browser.ts +++ b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/src/instrumentation.browser.ts @@ -23,7 +23,7 @@ class AzureSdkInstrumentation extends InstrumentationBase { super( "@azure/opentelemetry-instrumentation-azure-sdk", SDK_VERSION, - Object.assign({}, options) + Object.assign({}, options), ); } /** In the browser we rely on overriding the `enable` function instead as there are no modules to patch. */ @@ -58,7 +58,7 @@ class AzureSdkInstrumentation extends InstrumentationBase { * ``` */ export function createAzureSdkInstrumentation( - options: AzureSdkInstrumentationOptions = {} + options: AzureSdkInstrumentationOptions = {}, ): Instrumentation { return new AzureSdkInstrumentation(options); } diff --git a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/src/instrumentation.ts b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/src/instrumentation.ts index 020cd4736c97..ae44efba4d31 100644 --- a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/src/instrumentation.ts +++ b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/src/instrumentation.ts @@ -25,7 +25,7 @@ class AzureSdkInstrumentation extends InstrumentationBase { super( "@azure/opentelemetry-instrumentation-azure-sdk", SDK_VERSION, - Object.assign({}, options) + Object.assign({}, options), ); } /** @@ -47,7 +47,7 @@ class AzureSdkInstrumentation extends InstrumentationBase { } return moduleExports; - } + }, ); // Needed to support 1.0.0-preview.14 result.includePrerelease = true; @@ -75,7 +75,7 @@ class AzureSdkInstrumentation extends InstrumentationBase { * this instrumentation as early as possible and before loading any Azure Client Libraries. */ export function createAzureSdkInstrumentation( - options: AzureSdkInstrumentationOptions = {} + options: AzureSdkInstrumentationOptions = {}, ): Instrumentation { return new AzureSdkInstrumentation(options); } diff --git a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/src/instrumenter.ts b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/src/instrumenter.ts index eeba2bac1471..b9ad08536bdd 100644 --- a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/src/instrumenter.ts +++ b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/src/instrumenter.ts @@ -27,7 +27,7 @@ export const propagator = new W3CTraceContextPropagator(); export class OpenTelemetryInstrumenter implements Instrumenter { startSpan( name: string, - spanOptions: InstrumenterSpanOptions + spanOptions: InstrumenterSpanOptions, ): { span: TracingSpan; tracingContext: TracingContext } { let ctx = spanOptions?.tracingContext || context.active(); let span: Span; @@ -57,7 +57,7 @@ export class OpenTelemetryInstrumenter implements Instrumenter { } withContext< CallbackArgs extends unknown[], - Callback extends (...args: CallbackArgs) => ReturnType + Callback extends (...args: CallbackArgs) => ReturnType, >( tracingContext: TracingContext, callback: Callback, @@ -67,7 +67,7 @@ export class OpenTelemetryInstrumenter implements Instrumenter { tracingContext, callback, /** Assume caller will bind `this` or use arrow functions */ undefined, - ...callbackArgs + ...callbackArgs, ); } @@ -75,7 +75,7 @@ export class OpenTelemetryInstrumenter implements Instrumenter { return propagator.extract( context.active(), { traceparent: traceparentHeader }, - defaultTextMapGetter + defaultTextMapGetter, ); } diff --git a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/src/transformations.ts b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/src/transformations.ts index d1121e19a1b5..50ce618fa98b 100644 --- a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/src/transformations.ts +++ b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/src/transformations.ts @@ -12,7 +12,7 @@ import { Attributes, AttributeValue, Link, SpanKind, SpanOptions, trace } from " * @returns - The OpenTelemetry {@link SpanKind} */ export function toOpenTelemetrySpanKind( - tracingSpanKind?: K + tracingSpanKind?: K, ): SpanKindMapping[K] { const key = (tracingSpanKind || "internal").toUpperCase() as keyof typeof SpanKind; return SpanKind[key] as SpanKindMapping[K]; @@ -55,7 +55,7 @@ function toOpenTelemetryLinks(spanLinks: TracingSpanLink[] = []): Link[] { * @returns An {@link SpanAttributes} to set on a span. */ function toOpenTelemetrySpanAttributes( - spanAttributes: { [key: string]: unknown } | undefined + spanAttributes: { [key: string]: unknown } | undefined, ): Attributes { const attributes: ReturnType = {}; for (const key in spanAttributes) { diff --git a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/test/public/instrumenter.spec.ts b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/test/public/instrumenter.spec.ts index 9fb7c96a2aa5..8b75af3193ac 100644 --- a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/test/public/instrumenter.spec.ts +++ b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/test/public/instrumenter.spec.ts @@ -173,7 +173,7 @@ describe("OpenTelemetryInstrumenter", () => { it("supports spanLinks from traceparentHeader", () => { const linkedContext = instrumenter.parseTraceparentHeader( - "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01" + "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01", ); const { span } = instrumenter.startSpan("test", { @@ -276,7 +276,7 @@ describe("OpenTelemetryInstrumenter", () => { context.active(), function (this: any) { assert.equal(this, 42); - }.bind(42) + }.bind(42), ); // Arrow syntax diff --git a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/test/public/util/testClient.ts b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/test/public/util/testClient.ts index 3ab3116f3059..31f5c92aff0e 100644 --- a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/test/public/util/testClient.ts +++ b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/test/public/util/testClient.ts @@ -45,7 +45,7 @@ export class TestClient { */ exampleOperation(options: Options = {}): Promise { return this.tracingClient.withSpan("TestClient.outer", options, (updatedOptions) => - this.generatedClientOperation(updatedOptions) + this.generatedClientOperation(updatedOptions), ); } @@ -64,7 +64,7 @@ export class TestClient { ...updatedOptions, }); }, - { spanKind: "client" } + { spanKind: "client" }, ); } } diff --git a/sdk/iot/iot-modelsrepository/package.json b/sdk/iot/iot-modelsrepository/package.json index 9329f1002e7f..ecf118588c2c 100644 --- a/sdk/iot/iot-modelsrepository/package.json +++ b/sdk/iot/iot-modelsrepository/package.json @@ -18,11 +18,11 @@ "build:samples": "echo Obsolete.", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "karma start --single-run", "integration-test:node": "dev-tool run test:node-js-input", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -96,7 +96,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "ts-node": "^10.0.0", diff --git a/sdk/iot/iot-modelsrepository/samples-dev/dtmiConventionsSample.ts b/sdk/iot/iot-modelsrepository/samples-dev/dtmiConventionsSample.ts index a28b1d1ccf9d..81b885a2a7ee 100644 --- a/sdk/iot/iot-modelsrepository/samples-dev/dtmiConventionsSample.ts +++ b/sdk/iot/iot-modelsrepository/samples-dev/dtmiConventionsSample.ts @@ -20,13 +20,13 @@ function main() { // local repository fully qualified path to a model file const fullyQualifiedLocalPath = getModelUri( "dtmi:com:example:Thermostat;1", - "file:///path/to/repository/" + "file:///path/to/repository/", ); console.log(fullyQualifiedLocalPath); const fullyQualifiedRemotePath = getModelUri( "dtmi:com:example:Thermostat;1", - "https://contoso.com/models" + "https://contoso.com/models", ); console.log(fullyQualifiedRemotePath); } diff --git a/sdk/iot/iot-modelsrepository/src/dtmiConventions.ts b/sdk/iot/iot-modelsrepository/src/dtmiConventions.ts index 61c373aa2528..d818b3716312 100644 --- a/sdk/iot/iot-modelsrepository/src/dtmiConventions.ts +++ b/sdk/iot/iot-modelsrepository/src/dtmiConventions.ts @@ -25,7 +25,7 @@ export function isValidDtmi(dtmi: string): boolean { export function getModelUri( dtmi: string, repositoryUri: string, - expanded: boolean = false + expanded: boolean = false, ): string { if (!repositoryUri.endsWith("/")) { repositoryUri = repositoryUri.concat("/"); diff --git a/sdk/iot/iot-modelsrepository/src/dtmiResolver.ts b/sdk/iot/iot-modelsrepository/src/dtmiResolver.ts index dbc4fb13ed5f..db1a81597caf 100644 --- a/sdk/iot/iot-modelsrepository/src/dtmiResolver.ts +++ b/sdk/iot/iot-modelsrepository/src/dtmiResolver.ts @@ -26,7 +26,7 @@ export class DtmiResolver { async resolve( dtmis: string[], expandedModel: boolean, - options?: OperationOptions + options?: OperationOptions, ): Promise<{ [dtmi: string]: DTDL }> { const modelMap: { [dtmi: string]: DTDL } = {}; const dtdlPromises = dtmis.map(async (dtmi) => { @@ -38,7 +38,7 @@ export class DtmiResolver { const modelIds: string[] = (dtdl as DTDL[]).map((model: DTDL) => model["@id"]); if (!modelIds.includes(dtmi)) { throw new ModelError( - `DTMI mismatch on expanded DTDL - Request: ${dtmi}, Response: ${modelIds}` + `DTMI mismatch on expanded DTDL - Request: ${dtmi}, Response: ${modelIds}`, ); } for (const model of dtdl) { diff --git a/sdk/iot/iot-modelsrepository/src/modelsRepositoryClient.ts b/sdk/iot/iot-modelsrepository/src/modelsRepositoryClient.ts index 958b63b829ab..120213a3384a 100644 --- a/sdk/iot/iot-modelsrepository/src/modelsRepositoryClient.ts +++ b/sdk/iot/iot-modelsrepository/src/modelsRepositoryClient.ts @@ -146,7 +146,7 @@ export class ModelsRepositoryClient { } else if (prot === "" && location.search(/\.[a-zA-Z]{2,63}$/)) { // Web URL with protocol unspecified - default to HTTPS logger.info( - "Repository Location identified as remote endpoint without protocol specified - using HttpFetcher" + "Repository Location identified as remote endpoint without protocol specified - using HttpFetcher", ); const fLocation = "https://" + location; const client = this._createClient(options); @@ -172,11 +172,11 @@ export class ModelsRepositoryClient { */ async getModels( dtmis: string[], - options?: GetModelsOptions + options?: GetModelsOptions, ): Promise<{ [dtmi: string]: unknown }>; async getModels( dtmis: string | string[], - options?: GetModelsOptions + options?: GetModelsOptions, ): Promise<{ [dtmi: string]: unknown }> { let modelMap: { [dtmi: string]: unknown }; if (!Array.isArray(dtmis)) { @@ -207,7 +207,7 @@ export class ModelsRepositoryClient { const baseModelMap: { [dtmi: string]: unknown } = await this._resolver.resolve( dtmis, false, - options + options, ); const baseModelList = Object.keys(baseModelMap).map((key) => baseModelMap[key]); logger.info(`Retreiving model dependencies for ${dtmis}...`); diff --git a/sdk/iot/iot-modelsrepository/src/psuedoParser.ts b/sdk/iot/iot-modelsrepository/src/psuedoParser.ts index 82c172bf4f65..971ff342fa4a 100644 --- a/sdk/iot/iot-modelsrepository/src/psuedoParser.ts +++ b/sdk/iot/iot-modelsrepository/src/psuedoParser.ts @@ -41,7 +41,7 @@ export class PseudoParser { private async _expand( model: DTDL, modelMap: { [dtmi: string]: DTDL }, - tryFromExpanded: boolean + tryFromExpanded: boolean, ): Promise { logger.info(`Expanding model: ${model["@id"]}`); const dependencies = this._getModelDependencies(model); @@ -54,7 +54,7 @@ export class PseudoParser { try { resolvedDependenciesMap = await this._resolver.resolve( dependenciesToResolve, - tryFromExpanded + tryFromExpanded, ); } catch (e: any) { if (e instanceof RestError) { diff --git a/sdk/iot/iot-modelsrepository/test/browser/browserTest.spec.ts b/sdk/iot/iot-modelsrepository/test/browser/browserTest.spec.ts index e0646f087cf1..9c6f5093d367 100644 --- a/sdk/iot/iot-modelsrepository/test/browser/browserTest.spec.ts +++ b/sdk/iot/iot-modelsrepository/test/browser/browserTest.spec.ts @@ -14,10 +14,10 @@ describe("resolver - browser", () => { dependencyResolution: "tryFromExpanded", }); expect(actualOutput["dtmi:azure:DeviceManagement:DeviceInformation;1"]).to.not.equal( - undefined + undefined, ); expect(actualOutput["dtmi:azure:DeviceManagement:DeviceInformation;1"]["@id"]).to.equal( - "dtmi:azure:DeviceManagement:DeviceInformation;1" + "dtmi:azure:DeviceManagement:DeviceInformation;1", ); }); }); diff --git a/sdk/iot/iot-modelsrepository/test/node/integration/index.spec.ts b/sdk/iot/iot-modelsrepository/test/node/integration/index.spec.ts index 834f556d6946..f7a3776e3024 100644 --- a/sdk/iot/iot-modelsrepository/test/node/integration/index.spec.ts +++ b/sdk/iot/iot-modelsrepository/test/node/integration/index.spec.ts @@ -167,7 +167,7 @@ describe("resolver - node", function () { for (let i = 0; i < scenario.dtmis.length; i++) { myStub.onCall(i).callsFake((request: PipelineRequest) => { expect(request.url, "URL not formatted for request correctly.").to.deep.equal( - scenario.dtmis[i].expectedUri + scenario.dtmis[i].expectedUri, ); const pipelineResponse: any = { request: request, diff --git a/sdk/keyvault/keyvault-admin/package.json b/sdk/keyvault/keyvault-admin/package.json index d1344553ec1c..4ef874ef3bfe 100644 --- a/sdk/keyvault/keyvault-admin/package.json +++ b/sdk/keyvault/keyvault-admin/package.json @@ -49,11 +49,11 @@ "build:test": "tsc -p . && npm run bundle", "build": "npm run clean && tsc -p . && npm run build:nodebrowser && api-extractor run --local", "bundle": "dev-tool run bundle --browser-test=false", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log statistics.html coverage && rimraf src/**/*.js && rimraf test/**/*.js", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md", "integration-test:browser": "echo skipped", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 180000 --exclude \"dist-esm/**/*.browser.spec.js\" \"dist-esm/**/*.spec.js\"", @@ -134,7 +134,6 @@ "esm": "^3.2.18", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "source-map-support": "^0.5.9", diff --git a/sdk/keyvault/keyvault-admin/samples-dev/accessControlHelloWorld.ts b/sdk/keyvault/keyvault-admin/samples-dev/accessControlHelloWorld.ts index b70171546a17..0859b368269d 100644 --- a/sdk/keyvault/keyvault-admin/samples-dev/accessControlHelloWorld.ts +++ b/sdk/keyvault/keyvault-admin/samples-dev/accessControlHelloWorld.ts @@ -62,7 +62,7 @@ export async function main(): Promise { globalScope, roleAssignmentName, roleDefinition.id, - clientObjectId + clientObjectId, ); console.log(assignment); diff --git a/sdk/keyvault/keyvault-admin/samples-dev/backupSelectiveKeyRestore.ts b/sdk/keyvault/keyvault-admin/samples-dev/backupSelectiveKeyRestore.ts index 98cb16567cad..1ea15276e71d 100644 --- a/sdk/keyvault/keyvault-admin/samples-dev/backupSelectiveKeyRestore.ts +++ b/sdk/keyvault/keyvault-admin/samples-dev/backupSelectiveKeyRestore.ts @@ -45,7 +45,7 @@ export async function main(): Promise { const selectiveKeyRestorePoller = await client.beginSelectiveKeyRestore( key.name, backupResult.folderUri!, - sasToken + sasToken, ); const restoreResult = await selectiveKeyRestorePoller.pollUntilDone(); console.log("restoreResult", restoreResult); diff --git a/sdk/keyvault/keyvault-admin/src/accessControlClient.ts b/sdk/keyvault/keyvault-admin/src/accessControlClient.ts index 93bfb7228c16..e8659fb68542 100644 --- a/sdk/keyvault/keyvault-admin/src/accessControlClient.ts +++ b/sdk/keyvault/keyvault-admin/src/accessControlClient.ts @@ -66,7 +66,7 @@ export class KeyVaultAccessControlClient { constructor( vaultUrl: string, credential: TokenCredential, - options: AccessControlClientOptions = {} + options: AccessControlClientOptions = {}, ) { this.vaultUrl = vaultUrl; @@ -93,7 +93,7 @@ export class KeyVaultAccessControlClient { // returned by the challenge, so pass an empty array as a placeholder. scopes: [], challengeCallbacks: createKeyVaultChallengeCallbacks(options), - }) + }), ); } @@ -119,7 +119,7 @@ export class KeyVaultAccessControlClient { name: string, roleDefinitionId: string, principalId: string, - options: CreateRoleAssignmentOptions = {} + options: CreateRoleAssignmentOptions = {}, ): Promise { return tracingClient.withSpan( "KeyVaultAccessControlClient.createRoleAssignment", @@ -135,10 +135,10 @@ export class KeyVaultAccessControlClient { principalId, }, }, - updatedOptions + updatedOptions, ); return mappings.roleAssignment.generatedToPublic(response); - } + }, ); } @@ -159,14 +159,14 @@ export class KeyVaultAccessControlClient { public deleteRoleAssignment( roleScope: KeyVaultRoleScope, name: string, - options: DeleteRoleAssignmentOptions = {} + options: DeleteRoleAssignmentOptions = {}, ): Promise { return tracingClient.withSpan( "KeyVaultAccessControlClient.deleteRoleAssignment", options, async (updatedOptions) => { await this.client.roleAssignments.delete(this.vaultUrl, roleScope, name, updatedOptions); - } + }, ); } @@ -188,7 +188,7 @@ export class KeyVaultAccessControlClient { public getRoleAssignment( roleScope: KeyVaultRoleScope, name: string, - options: GetRoleAssignmentOptions = {} + options: GetRoleAssignmentOptions = {}, ): Promise { return tracingClient.withSpan( "KeyVaultAccessControlClient.getRoleAssignment", @@ -198,10 +198,10 @@ export class KeyVaultAccessControlClient { this.vaultUrl, roleScope, name, - updatedOptions + updatedOptions, ); return mappings.roleAssignment.generatedToPublic(response); - } + }, ); } @@ -214,7 +214,7 @@ export class KeyVaultAccessControlClient { private async *listRoleAssignmentsPage( roleScope: KeyVaultRoleScope, continuationState: ListRoleAssignmentsPageSettings, - options?: ListRoleAssignmentsOptions + options?: ListRoleAssignmentsOptions, ): AsyncIterableIterator { if (!continuationState.continuationToken) { const optionsComplete: RoleAssignmentsListForScopeOptionalParams = options || {}; @@ -223,7 +223,7 @@ export class KeyVaultAccessControlClient { optionsComplete, async (updatedOptions) => { return this.client.roleAssignments.listForScope(this.vaultUrl, roleScope, updatedOptions); - } + }, ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -239,9 +239,9 @@ export class KeyVaultAccessControlClient { this.vaultUrl, roleScope, continuationState.continuationToken!, - updatedOptions + updatedOptions, ); - } + }, ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -259,7 +259,7 @@ export class KeyVaultAccessControlClient { */ private async *listRoleAssignmentsAll( roleScope: KeyVaultRoleScope, - options?: ListRoleAssignmentsOptions + options?: ListRoleAssignmentsOptions, ): AsyncIterableIterator { for await (const page of this.listRoleAssignmentsPage(roleScope, {}, options)) { yield* page; @@ -282,7 +282,7 @@ export class KeyVaultAccessControlClient { */ public listRoleAssignments( roleScope: KeyVaultRoleScope, - options: ListRoleAssignmentsOptions = {} + options: ListRoleAssignmentsOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listRoleAssignmentsAll(roleScope, options); @@ -307,7 +307,7 @@ export class KeyVaultAccessControlClient { private async *listRoleDefinitionsPage( roleScope: KeyVaultRoleScope, continuationState: ListRoleDefinitionsPageSettings, - options: ListRoleDefinitionsOptions = {} + options: ListRoleDefinitionsOptions = {}, ): AsyncIterableIterator { if (!continuationState.continuationToken) { const optionsComplete: RoleAssignmentsListForScopeOptionalParams = options || {}; @@ -315,7 +315,7 @@ export class KeyVaultAccessControlClient { "KeyVaultAccessControlClient.listRoleDefinitionsPage", optionsComplete, (updatedOptions) => - this.client.roleDefinitions.list(this.vaultUrl, roleScope, updatedOptions) + this.client.roleDefinitions.list(this.vaultUrl, roleScope, updatedOptions), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -331,8 +331,8 @@ export class KeyVaultAccessControlClient { this.vaultUrl, roleScope, continuationState.continuationToken!, - updatedOptions - ) + updatedOptions, + ), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -350,7 +350,7 @@ export class KeyVaultAccessControlClient { */ private async *listRoleDefinitionsAll( roleScope: KeyVaultRoleScope, - options?: ListRoleDefinitionsOptions + options?: ListRoleDefinitionsOptions, ): AsyncIterableIterator { for await (const page of this.listRoleDefinitionsPage(roleScope, {}, options)) { yield* page; @@ -373,7 +373,7 @@ export class KeyVaultAccessControlClient { */ public listRoleDefinitions( roleScope: KeyVaultRoleScope, - options: ListRoleDefinitionsOptions = {} + options: ListRoleDefinitionsOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listRoleDefinitionsAll(roleScope, options); @@ -405,7 +405,7 @@ export class KeyVaultAccessControlClient { public getRoleDefinition( roleScope: KeyVaultRoleScope, name: string, - options: GetRoleDefinitionOptions = {} + options: GetRoleDefinitionOptions = {}, ): Promise { return tracingClient.withSpan( "KeyVaultAccessControlClient.getRoleDefinition", @@ -415,10 +415,10 @@ export class KeyVaultAccessControlClient { this.vaultUrl, roleScope, name, - updatedOptions + updatedOptions, ); return mappings.roleDefinition.generatedToPublic(response); - } + }, ); } @@ -438,7 +438,7 @@ export class KeyVaultAccessControlClient { */ public setRoleDefinition( roleScope: KeyVaultRoleScope, - options: SetRoleDefinitionOptions = {} + options: SetRoleDefinitionOptions = {}, ): Promise { return tracingClient.withSpan( "KeyVaultAccessControlClient.setRoleDefinition", @@ -457,10 +457,10 @@ export class KeyVaultAccessControlClient { roleType: "CustomRole", }, }, - updatedOptions + updatedOptions, ); return mappings.roleDefinition.generatedToPublic(response); - } + }, ); } @@ -480,14 +480,14 @@ export class KeyVaultAccessControlClient { public deleteRoleDefinition( roleScope: KeyVaultRoleScope, name: string, - options: DeleteRoleDefinitionOptions = {} + options: DeleteRoleDefinitionOptions = {}, ): Promise { return tracingClient.withSpan( "KeyVaultAccessControlClient.deleteRoleDefinition", options, async (updatedOptions) => { await this.client.roleDefinitions.delete(this.vaultUrl, roleScope, name, updatedOptions); - } + }, ); } } diff --git a/sdk/keyvault/keyvault-admin/src/backupClient.ts b/sdk/keyvault/keyvault-admin/src/backupClient.ts index 4eb9f9881ae7..73cdac57fa99 100644 --- a/sdk/keyvault/keyvault-admin/src/backupClient.ts +++ b/sdk/keyvault/keyvault-admin/src/backupClient.ts @@ -70,7 +70,7 @@ export class KeyVaultBackupClient { constructor( vaultUrl: string, credential: TokenCredential, - options: KeyVaultBackupClientOptions = {} + options: KeyVaultBackupClientOptions = {}, ) { this.vaultUrl = vaultUrl; @@ -96,7 +96,7 @@ export class KeyVaultBackupClient { // returned by the challenge, so pass an empty array as a placeholder. scopes: [], challengeCallbacks: createKeyVaultChallengeCallbacks(options), - }) + }), ); } @@ -134,7 +134,7 @@ export class KeyVaultBackupClient { public async beginBackup( blobStorageUri: string, sasToken?: string, - options: KeyVaultBeginBackupOptions = {} + options: KeyVaultBeginBackupOptions = {}, ): Promise> { const poller = new KeyVaultBackupPoller({ blobStorageUri, @@ -187,7 +187,7 @@ export class KeyVaultBackupClient { public async beginRestore( folderUri: string, sasToken?: string, - options: KeyVaultBeginRestoreOptions = {} + options: KeyVaultBeginRestoreOptions = {}, ): Promise> { const poller = new KeyVaultRestorePoller({ ...mappings.folderUriParts(folderUri), @@ -242,7 +242,7 @@ export class KeyVaultBackupClient { keyName: string, folderUri: string, sasToken?: string, - options: KeyVaultBeginSelectiveKeyRestoreOptions = {} + options: KeyVaultBeginSelectiveKeyRestoreOptions = {}, ): Promise< PollerLike > { diff --git a/sdk/keyvault/keyvault-admin/src/lro/backup/operation.ts b/sdk/keyvault/keyvault-admin/src/lro/backup/operation.ts index 483a70dea8a6..e863edc7e59e 100644 --- a/sdk/keyvault/keyvault-admin/src/lro/backup/operation.ts +++ b/sdk/keyvault/keyvault-admin/src/lro/backup/operation.ts @@ -47,7 +47,7 @@ export class KeyVaultBackupPollOperation extends KeyVaultAdminPollOperation< public state: KeyVaultBackupPollOperationState, private vaultUrl: string, private client: KeyVaultClient, - private requestOptions: KeyVaultBeginBackupOptions = {} + private requestOptions: KeyVaultBeginBackupOptions = {}, ) { super(state, { cancelMessage: "Cancelling a full Key Vault backup is not supported." }); } @@ -57,7 +57,7 @@ export class KeyVaultBackupPollOperation extends KeyVaultAdminPollOperation< */ private fullBackup(options: FullBackupOptionalParams): Promise { return tracingClient.withSpan("KeyVaultBackupPoller.fullBackup", options, (updatedOptions) => - this.client.fullBackup(this.vaultUrl, updatedOptions) + this.client.fullBackup(this.vaultUrl, updatedOptions), ); } @@ -66,12 +66,12 @@ export class KeyVaultBackupPollOperation extends KeyVaultAdminPollOperation< */ private fullBackupStatus( jobId: string, - options: KeyVaultBeginBackupOptions + options: KeyVaultBeginBackupOptions, ): Promise { return tracingClient.withSpan( "KeyVaultBackupPoller.fullBackupStatus", options, - (updatedOptions) => this.client.fullBackupStatus(this.vaultUrl, jobId, updatedOptions) + (updatedOptions) => this.client.fullBackupStatus(this.vaultUrl, jobId, updatedOptions), ); } @@ -82,7 +82,7 @@ export class KeyVaultBackupPollOperation extends KeyVaultAdminPollOperation< options: { abortSignal?: AbortSignalLike; fireProgress?: (state: KeyVaultBackupPollOperationState) => void; - } = {} + } = {}, ): Promise { const state = this.state; const { blobStorageUri, sasToken } = state; @@ -126,7 +126,7 @@ export class KeyVaultBackupPollOperation extends KeyVaultAdminPollOperation< } = serviceOperation; if (!startTime) { throw new Error( - `Missing "startTime" from the full backup operation. Full backup did not start successfully.` + `Missing "startTime" from the full backup operation. Full backup did not start successfully.`, ); } diff --git a/sdk/keyvault/keyvault-admin/src/lro/backup/poller.ts b/sdk/keyvault/keyvault-admin/src/lro/backup/poller.ts index 27c35023665d..359ffa79ca1f 100644 --- a/sdk/keyvault/keyvault-admin/src/lro/backup/poller.ts +++ b/sdk/keyvault/keyvault-admin/src/lro/backup/poller.ts @@ -46,7 +46,7 @@ export class KeyVaultBackupPoller extends KeyVaultAdminPoller< }, vaultUrl, client, - requestOptions + requestOptions, ); super(operation); diff --git a/sdk/keyvault/keyvault-admin/src/lro/keyVaultAdminPoller.ts b/sdk/keyvault/keyvault-admin/src/lro/keyVaultAdminPoller.ts index 154a63464714..59332d9ab4e3 100644 --- a/sdk/keyvault/keyvault-admin/src/lro/keyVaultAdminPoller.ts +++ b/sdk/keyvault/keyvault-admin/src/lro/keyVaultAdminPoller.ts @@ -46,7 +46,7 @@ export interface KeyVaultAdminPollOperationState extends PollOperationS * Generates a version of the state with only public properties. At least those common for all of the Key Vault Admin pollers. */ export function cleanState, TResult>( - state: TState + state: TState, ): KeyVaultAdminPollOperationState { return { jobId: state.jobId, @@ -67,7 +67,7 @@ export function cleanState, - TResult + TResult, > extends Poller { /** * Defines how much time the poller is going to wait before making a new request to the service. @@ -101,12 +101,15 @@ export interface KeyVaultAdminPollOperationOptions { */ export class KeyVaultAdminPollOperation< TState extends KeyVaultAdminPollOperationState, - TResult + TResult, > implements PollOperation { private cancelMessage: string; - constructor(public state: TState, options: KeyVaultAdminPollOperationOptions) { + constructor( + public state: TState, + options: KeyVaultAdminPollOperationOptions, + ) { this.cancelMessage = options.cancelMessage; } diff --git a/sdk/keyvault/keyvault-admin/src/lro/restore/operation.ts b/sdk/keyvault/keyvault-admin/src/lro/restore/operation.ts index 1ea589cc2380..f9bf41339727 100644 --- a/sdk/keyvault/keyvault-admin/src/lro/restore/operation.ts +++ b/sdk/keyvault/keyvault-admin/src/lro/restore/operation.ts @@ -55,7 +55,7 @@ export class KeyVaultRestorePollOperation extends KeyVaultAdminPollOperation< public state: KeyVaultRestorePollOperationState, private vaultUrl: string, private client: KeyVaultClient, - private requestOptions: KeyVaultBeginRestoreOptions = {} + private requestOptions: KeyVaultBeginRestoreOptions = {}, ) { super(state, { cancelMessage: "Cancelling the restoration full Key Vault backup is not supported.", @@ -66,10 +66,10 @@ export class KeyVaultRestorePollOperation extends KeyVaultAdminPollOperation< * Tracing the fullRestore operation */ private fullRestore( - options: FullRestoreOperationOptionalParams + options: FullRestoreOperationOptionalParams, ): Promise { return tracingClient.withSpan("KeyVaultRestorePoller.fullRestore", options, (updatedOptions) => - this.client.fullRestoreOperation(this.vaultUrl, updatedOptions) + this.client.fullRestoreOperation(this.vaultUrl, updatedOptions), ); } @@ -78,12 +78,12 @@ export class KeyVaultRestorePollOperation extends KeyVaultAdminPollOperation< */ private async restoreStatus( jobId: string, - options: OperationOptions + options: OperationOptions, ): Promise { return tracingClient.withSpan( "KeyVaultRestorePoller.restoreStatus", options, - (updatedOptions) => this.client.restoreStatus(this.vaultUrl, jobId, updatedOptions) + (updatedOptions) => this.client.restoreStatus(this.vaultUrl, jobId, updatedOptions), ); } @@ -94,7 +94,7 @@ export class KeyVaultRestorePollOperation extends KeyVaultAdminPollOperation< options: { abortSignal?: AbortSignalLike; fireProgress?: (state: KeyVaultRestorePollOperationState) => void; - } = {} + } = {}, ): Promise { const state = this.state; const { folderUri, sasToken, folderName } = state; @@ -134,7 +134,7 @@ export class KeyVaultRestorePollOperation extends KeyVaultAdminPollOperation< if (!startTime) { throw new Error( - `Missing "startTime" from the full restore operation. Restore did not start successfully.` + `Missing "startTime" from the full restore operation. Restore did not start successfully.`, ); } diff --git a/sdk/keyvault/keyvault-admin/src/lro/restore/poller.ts b/sdk/keyvault/keyvault-admin/src/lro/restore/poller.ts index 72970824d3e2..6d335689d309 100644 --- a/sdk/keyvault/keyvault-admin/src/lro/restore/poller.ts +++ b/sdk/keyvault/keyvault-admin/src/lro/restore/poller.ts @@ -49,7 +49,7 @@ export class KeyVaultRestorePoller extends KeyVaultAdminPoller< }, vaultUrl, client, - requestOptions + requestOptions, ); super(operation); diff --git a/sdk/keyvault/keyvault-admin/src/lro/selectiveKeyRestore/operation.ts b/sdk/keyvault/keyvault-admin/src/lro/selectiveKeyRestore/operation.ts index 3bd433bde4f3..4f73ae070da5 100644 --- a/sdk/keyvault/keyvault-admin/src/lro/selectiveKeyRestore/operation.ts +++ b/sdk/keyvault/keyvault-admin/src/lro/selectiveKeyRestore/operation.ts @@ -60,7 +60,7 @@ export class KeyVaultSelectiveKeyRestorePollOperation extends KeyVaultAdminPollO public state: KeyVaultSelectiveKeyRestorePollOperationState, private vaultUrl: string, private client: KeyVaultClient, - private requestOptions: KeyVaultBeginSelectiveKeyRestoreOptions = {} + private requestOptions: KeyVaultBeginSelectiveKeyRestoreOptions = {}, ) { super(state, { cancelMessage: "Cancelling a selective Key Vault restore is not supported." }); } @@ -70,13 +70,13 @@ export class KeyVaultSelectiveKeyRestorePollOperation extends KeyVaultAdminPollO */ private selectiveRestore( keyName: string, - options: SelectiveKeyRestoreOperationOptionalParams + options: SelectiveKeyRestoreOperationOptionalParams, ): Promise { return tracingClient.withSpan( "KeyVaultSelectiveKeyRestorePoller.selectiveRestore", options, (updatedOptions) => - this.client.selectiveKeyRestoreOperation(this.vaultUrl, keyName, updatedOptions) + this.client.selectiveKeyRestoreOperation(this.vaultUrl, keyName, updatedOptions), ); } @@ -87,7 +87,7 @@ export class KeyVaultSelectiveKeyRestorePollOperation extends KeyVaultAdminPollO return tracingClient.withSpan( "KeyVaultSelectiveKeyRestorePoller.restoreStatus", options, - (updatedOptions) => this.client.restoreStatus(this.vaultUrl, jobId, updatedOptions) + (updatedOptions) => this.client.restoreStatus(this.vaultUrl, jobId, updatedOptions), ); } @@ -98,7 +98,7 @@ export class KeyVaultSelectiveKeyRestorePollOperation extends KeyVaultAdminPollO options: { abortSignal?: AbortSignalLike; fireProgress?: (state: KeyVaultSelectiveKeyRestorePollOperationState) => void; - } = {} + } = {}, ): Promise { const state = this.state; const { keyName, folderUri, sasToken, folderName } = state; diff --git a/sdk/keyvault/keyvault-admin/src/lro/selectiveKeyRestore/poller.ts b/sdk/keyvault/keyvault-admin/src/lro/selectiveKeyRestore/poller.ts index d12598202271..1701b4bb9582 100644 --- a/sdk/keyvault/keyvault-admin/src/lro/selectiveKeyRestore/poller.ts +++ b/sdk/keyvault/keyvault-admin/src/lro/selectiveKeyRestore/poller.ts @@ -52,7 +52,7 @@ export class KeyVaultSelectiveKeyRestorePoller extends KeyVaultAdminPoller< }, vaultUrl, client, - requestOptions + requestOptions, ); super(operation); diff --git a/sdk/keyvault/keyvault-admin/src/settingsClient.ts b/sdk/keyvault/keyvault-admin/src/settingsClient.ts index e83e6edbf8ee..660bbad18f76 100644 --- a/sdk/keyvault/keyvault-admin/src/settingsClient.ts +++ b/sdk/keyvault/keyvault-admin/src/settingsClient.ts @@ -96,7 +96,7 @@ export class KeyVaultSettingsClient { credential, scopes: [], challengeCallbacks: createKeyVaultChallengeCallbacks(options), - }) + }), ); } @@ -108,10 +108,10 @@ export class KeyVaultSettingsClient { */ async updateSetting( setting: KeyVaultSetting, - options: UpdateSettingOptions = {} + options: UpdateSettingOptions = {}, ): Promise { return makeSetting( - await this.client.updateSetting(this.vaultUrl, setting.name, String(setting.value), options) + await this.client.updateSetting(this.vaultUrl, setting.name, String(setting.value), options), ); } diff --git a/sdk/keyvault/keyvault-admin/test/internal/serviceVersionParameter.spec.ts b/sdk/keyvault/keyvault-admin/test/internal/serviceVersionParameter.spec.ts index 4ec7e5a11794..dd0369529027 100644 --- a/sdk/keyvault/keyvault-admin/test/internal/serviceVersionParameter.spec.ts +++ b/sdk/keyvault/keyvault-admin/test/internal/serviceVersionParameter.spec.ts @@ -47,7 +47,7 @@ describe("The keyvault-admin clients should set the serviceVersion", () => { credential = new ClientSecretCredential( env.AZURE_TENANT_ID || "tenant", env.AZURE_CLIENT_ID || "client", - env.AZURE_CLIENT_SECRET || "secret" + env.AZURE_CLIENT_SECRET || "secret", ); sandbox = createSandbox(); }); diff --git a/sdk/keyvault/keyvault-admin/test/internal/userAgent.spec.ts b/sdk/keyvault/keyvault-admin/test/internal/userAgent.spec.ts index a9b26a0d1a3f..6bed86347f6d 100644 --- a/sdk/keyvault/keyvault-admin/test/internal/userAgent.spec.ts +++ b/sdk/keyvault/keyvault-admin/test/internal/userAgent.spec.ts @@ -22,7 +22,7 @@ describe("Key Vault Admin's user agent", function () { throw new Error("only a test"); }, }, - } + }, ); try { @@ -41,12 +41,12 @@ describe("Key Vault Admin's user agent", function () { let version: string; try { const fileContents = JSON.parse( - fs.readFileSync(path.join(__dirname, "../../package.json"), { encoding: "utf-8" }) + fs.readFileSync(path.join(__dirname, "../../package.json"), { encoding: "utf-8" }), ); version = fileContents.version; } catch { const fileContents = JSON.parse( - fs.readFileSync(path.join(__dirname, "../../../package.json"), { encoding: "utf-8" }) + fs.readFileSync(path.join(__dirname, "../../../package.json"), { encoding: "utf-8" }), ); version = fileContents.version; } diff --git a/sdk/keyvault/keyvault-admin/test/public/accessControlClient.aborts.spec.ts b/sdk/keyvault/keyvault-admin/test/public/accessControlClient.aborts.spec.ts index a17c7aa9ed38..1d4c612e7b0f 100644 --- a/sdk/keyvault/keyvault-admin/test/public/accessControlClient.aborts.spec.ts +++ b/sdk/keyvault/keyvault-admin/test/public/accessControlClient.aborts.spec.ts @@ -68,7 +68,7 @@ describe("Aborting KeyVaultAccessControlClient's requests", () => { assertEnvironmentVariable("CLIENT_OBJECT_ID"), { abortSignal: controller.signal, - } + }, ); }); }); diff --git a/sdk/keyvault/keyvault-admin/test/public/accessControlClient.spec.ts b/sdk/keyvault/keyvault-admin/test/public/accessControlClient.spec.ts index 4f47a9b6185a..642272a30d6d 100644 --- a/sdk/keyvault/keyvault-admin/test/public/accessControlClient.spec.ts +++ b/sdk/keyvault/keyvault-admin/test/public/accessControlClient.spec.ts @@ -71,7 +71,7 @@ describe("KeyVaultAccessControlClient", () => { describe("getRoleDefinition", function () { it("returns a role definition by name", async function () { const anyRoleDefinition = getYieldedValue( - await client.listRoleDefinitions(globalScope).next() + await client.listRoleDefinitions(globalScope).next(), ); const roleDefinition = await client.getRoleDefinition(globalScope, anyRoleDefinition.name); @@ -126,7 +126,7 @@ describe("KeyVaultAccessControlClient", () => { for await (const definition of client.listRoleDefinitions(globalScope)) { if (definition.id === roleDefinition.id) { assert.fail( - "expected to successfully delete custom role definition, but it still exists." + "expected to successfully delete custom role definition, but it still exists.", ); } } @@ -139,7 +139,7 @@ describe("KeyVaultAccessControlClient", () => { roleDefinitionName: "foo unique value", roleName: "foo role definition name", permissions: [], - }) + }), ); }); @@ -161,7 +161,7 @@ describe("KeyVaultAccessControlClient", () => { roleDefinitionName: builtInDefinition.name, roleName: builtInDefinition.roleName, permissions, - }) + }), ); }); }); @@ -233,7 +233,7 @@ describe("KeyVaultAccessControlClient", () => { globalScope, assignmentName, roleDefinition.id, - assertEnvironmentVariable("CLIENT_OBJECT_ID") + assertEnvironmentVariable("CLIENT_OBJECT_ID"), ); assert.equal(assignment.name, assignmentName); assert.equal(assignment.properties?.roleDefinitionId, roleDefinition.id); @@ -282,7 +282,7 @@ describe("KeyVaultAccessControlClient", () => { roleAssignmentName, roleDefinition.id, assertEnvironmentVariable("CLIENT_OBJECT_ID"), - options + options, ); await client.getRoleAssignment(KnownRoleScope.Global, roleAssignmentName, options); await client.listRoleAssignments(KnownRoleScope.Global, options).next(); @@ -299,7 +299,7 @@ describe("KeyVaultAccessControlClient", () => { "KeyVaultAccessControlClient.listRoleDefinitionsPage", "KeyVaultAccessControlClient.deleteRoleAssignment", "KeyVaultAccessControlClient.deleteRoleDefinition", - ] + ], ); }); }); diff --git a/sdk/keyvault/keyvault-admin/test/public/backupClient.spec.ts b/sdk/keyvault/keyvault-admin/test/public/backupClient.spec.ts index 2c3f92638801..809cf0ac7a46 100644 --- a/sdk/keyvault/keyvault-admin/test/public/backupClient.spec.ts +++ b/sdk/keyvault/keyvault-admin/test/public/backupClient.spec.ts @@ -38,7 +38,7 @@ describe("KeyVaultBackupClient", () => { const backupPoller = await client.beginBackup( blobStorageUri, blobSasToken, - testPollerProperties + testPollerProperties, ); await backupPoller.poll(); @@ -62,7 +62,7 @@ describe("KeyVaultBackupClient", () => { it("throws when polling errors", async function () { await assert.isRejected( client.beginBackup(blobStorageUri, "invalid_sas_token", testPollerProperties), - /SAS token/ + /SAS token/, ); }); }); @@ -72,7 +72,7 @@ describe("KeyVaultBackupClient", () => { const backupPoller = await client.beginBackup( blobStorageUri, blobSasToken, - testPollerProperties + testPollerProperties, ); const backupResult = await backupPoller.pollUntilDone(); assert.exists(backupResult.folderUri); @@ -80,7 +80,7 @@ describe("KeyVaultBackupClient", () => { const restorePoller = await client.beginRestore( backupResult.folderUri!, blobSasToken, - testPollerProperties + testPollerProperties, ); await restorePoller.poll(); @@ -92,7 +92,7 @@ describe("KeyVaultBackupClient", () => { assert.isTrue(resumedPoller.getOperationState().isStarted); // without polling assert.equal( resumedPoller.getOperationState().jobId, - restorePoller.getOperationState().jobId + restorePoller.getOperationState().jobId, ); const restoreResult = await restorePoller.pollUntilDone(); @@ -120,7 +120,7 @@ describe("KeyVaultBackupClient", () => { const backupPoller = await client.beginBackup( blobStorageUri, blobSasToken, - testPollerProperties + testPollerProperties, ); const backupURI = await backupPoller.pollUntilDone(); assert.exists(backupURI.folderUri); @@ -133,7 +133,7 @@ describe("KeyVaultBackupClient", () => { keyName, backupURI.folderUri!, blobSasToken, - testPollerProperties + testPollerProperties, ); await selectiveKeyRestorePoller.poll(); @@ -145,12 +145,12 @@ describe("KeyVaultBackupClient", () => { { ...testPollerProperties, resumeFrom: selectiveKeyRestorePoller.toString(), - } + }, ); assert.isTrue(resumedPoller.getOperationState().isStarted); // without polling assert.equal( resumedPoller.getOperationState().jobId, - selectiveKeyRestorePoller.getOperationState().jobId + selectiveKeyRestorePoller.getOperationState().jobId, ); await selectiveKeyRestorePoller.pollUntilDone(); @@ -163,7 +163,7 @@ describe("KeyVaultBackupClient", () => { it("throws when polling errors", async function () { await assert.isRejected( client.beginRestore(blobStorageUri, "bad_token", testPollerProperties), - /SAS token is malformed/ + /SAS token is malformed/, ); }); }); diff --git a/sdk/keyvault/keyvault-admin/test/public/utils/authentication.ts b/sdk/keyvault/keyvault-admin/test/public/utils/authentication.ts index 3fde08be2d28..7459b7c2b10b 100644 --- a/sdk/keyvault/keyvault-admin/test/public/utils/authentication.ts +++ b/sdk/keyvault/keyvault-admin/test/public/utils/authentication.ts @@ -17,7 +17,7 @@ import { getEnvironmentVariable, getServiceVersion } from "./common"; export async function authenticate( that: Context, - serviceVersion: ReturnType + serviceVersion: ReturnType, ): Promise { const recorder = new Recorder(that.currentTest); let generatedUUIDs = 0; @@ -69,17 +69,17 @@ export async function authenticate( recorder.configureClientOptions({ serviceVersion, disableChallengeResourceVerification: true, - }) + }), ); const keyClient = new KeyClient( keyVaultHsmUrl, credential, - recorder.configureClientOptions({ serviceVersion, disableChallengeResourceVerification: true }) + recorder.configureClientOptions({ serviceVersion, disableChallengeResourceVerification: true }), ); const backupClient = new KeyVaultBackupClient( keyVaultHsmUrl, credential, - recorder.configureClientOptions({ serviceVersion, disableChallengeResourceVerification: true }) + recorder.configureClientOptions({ serviceVersion, disableChallengeResourceVerification: true }), ); const settingsClient = new KeyVaultSettingsClient( keyVaultHsmUrl, @@ -87,7 +87,7 @@ export async function authenticate( recorder.configureClientOptions({ serviceVersion, disableChallengeResourceVerification: true, - }) + }), ); return { diff --git a/sdk/keyvault/keyvault-admin/test/public/utils/common.ts b/sdk/keyvault/keyvault-admin/test/public/utils/common.ts index 98f48d2227f8..179d1a36e8a1 100644 --- a/sdk/keyvault/keyvault-admin/test/public/utils/common.ts +++ b/sdk/keyvault/keyvault-admin/test/public/utils/common.ts @@ -82,7 +82,7 @@ export function getServiceVersion(): SUPPORTED_API_VERSIONS { */ export function onVersions( supportedVersions: SupportedVersions, - serviceVersion?: SUPPORTED_API_VERSIONS + serviceVersion?: SUPPORTED_API_VERSIONS, ): TestFunctionWrapper { return supports(serviceVersion || getServiceVersion(), supportedVersions, serviceVersions); } diff --git a/sdk/keyvault/keyvault-certificates/package.json b/sdk/keyvault/keyvault-certificates/package.json index d29fdf933c6d..36a9eda78f6e 100644 --- a/sdk/keyvault/keyvault-certificates/package.json +++ b/sdk/keyvault/keyvault-certificates/package.json @@ -44,11 +44,11 @@ "build:nodebrowser": "dev-tool run bundle", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && npm run build:nodebrowser && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist-esm dist-test types *.tgz *.log samples/typescript/dist", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"samples-dev/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"samples-dev/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 350000 'dist-esm/**/*.spec.js'", @@ -145,7 +145,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.0", "sinon": "^17.0.0", diff --git a/sdk/keyvault/keyvault-certificates/samples-dev/helloWorld.ts b/sdk/keyvault/keyvault-certificates/samples-dev/helloWorld.ts index 5a933274c46d..d6a08cdfd39a 100644 --- a/sdk/keyvault/keyvault-certificates/samples-dev/helloWorld.ts +++ b/sdk/keyvault/keyvault-certificates/samples-dev/helloWorld.ts @@ -36,7 +36,7 @@ export async function main(): Promise { // Creating a self-signed certificate const createPoller = await client.beginCreateCertificate( certificateName, - DefaultCertificatePolicy + DefaultCertificatePolicy, ); // Get the pending certificate before the creation operation is complete @@ -52,7 +52,7 @@ export async function main(): Promise { // Note: It will not retrieve the certificate's policy. const certificateFromVersion = await client.getCertificateVersion( certificateName, - certificateWithPolicy.properties.version! + certificateWithPolicy.properties.version!, ); console.log("Certificate from a specific version:", certificateFromVersion); @@ -68,7 +68,7 @@ export async function main(): Promise { const updatedCertificate = await client.updateCertificateProperties( certificateName, version, - properties + properties, ); console.log("Updated certificate:", updatedCertificate); diff --git a/sdk/keyvault/keyvault-certificates/samples-dev/importCertificate.ts b/sdk/keyvault/keyvault-certificates/samples-dev/importCertificate.ts index c7163b682530..603b48f03b43 100644 --- a/sdk/keyvault/keyvault-certificates/samples-dev/importCertificate.ts +++ b/sdk/keyvault/keyvault-certificates/samples-dev/importCertificate.ts @@ -146,7 +146,7 @@ export async function main(): Promise { issuerName: WellKnownIssuer.Self, subject: "CN=contoso.com", }, - } + }, ); console.log("importedCertificate", importedCertificate); @@ -169,7 +169,7 @@ export async function main(): Promise { issuerName: WellKnownIssuer.Self, subject: "CN=contoso.com", }, - } + }, ); console.log("importedCertificate", importedCertificate); diff --git a/sdk/keyvault/keyvault-certificates/samples-dev/mergeCertificate.ts b/sdk/keyvault/keyvault-certificates/samples-dev/mergeCertificate.ts index 572f1d5368c0..70eb58234deb 100644 --- a/sdk/keyvault/keyvault-certificates/samples-dev/mergeCertificate.ts +++ b/sdk/keyvault/keyvault-certificates/samples-dev/mergeCertificate.ts @@ -55,7 +55,7 @@ ${base64Csr} // For more information on how to set up a local certificate authority // go to: https://gist.github.com/Soarez/9688998 childProcess.execSync( - "openssl x509 -req -in test.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out test.crt" + "openssl x509 -req -in test.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out test.crt", ); const base64Crt = fs.readFileSync("test.crt").toString().split("\n").slice(1, -1).join(""); diff --git a/sdk/keyvault/keyvault-certificates/src/index.ts b/sdk/keyvault/keyvault-certificates/src/index.ts index e8393e0f506d..97a877dcc59c 100644 --- a/sdk/keyvault/keyvault-certificates/src/index.ts +++ b/sdk/keyvault/keyvault-certificates/src/index.ts @@ -244,7 +244,7 @@ export class CertificateClient { constructor( vaultUrl: string, credential: TokenCredential, - clientOptions: CertificateClientOptions = {} + clientOptions: CertificateClientOptions = {}, ) { this.vaultUrl = vaultUrl; @@ -268,14 +268,14 @@ export class CertificateClient { this.client = new KeyVaultClient( clientOptions.serviceVersion || LATEST_API_VERSION, - internalClientPipelineOptions + internalClientPipelineOptions, ); this.client.pipeline.addPolicy(authPolicy); } private async *listPropertiesOfCertificatesPage( continuationState: PageSettings, - options: ListPropertiesOfCertificatesOptions = {} + options: ListPropertiesOfCertificatesOptions = {}, ): AsyncIterableIterator { if (continuationState.continuationToken == null) { const optionsComplete: GetCertificatesOptionalParams = { @@ -286,7 +286,7 @@ export class CertificateClient { const currentSetResponse = await tracingClient.withSpan( "CertificateClient.listPropertiesOfCertificatesPage", optionsComplete, - (updatedOptions) => this.client.getCertificates(this.vaultUrl, updatedOptions) + (updatedOptions) => this.client.getCertificates(this.vaultUrl, updatedOptions), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -301,8 +301,8 @@ export class CertificateClient { this.client.getCertificatesNext( this.vaultUrl, continuationState.continuationToken!, - updatedOptions - ) + updatedOptions, + ), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -314,7 +314,7 @@ export class CertificateClient { } private async *listPropertiesOfCertificatesAll( - options: ListPropertiesOfCertificatesOptions = {} + options: ListPropertiesOfCertificatesOptions = {}, ): AsyncIterableIterator { const f = {}; @@ -347,7 +347,7 @@ export class CertificateClient { * @param options - The optional parameters */ public listPropertiesOfCertificates( - options: ListPropertiesOfCertificatesOptions = {} + options: ListPropertiesOfCertificatesOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listPropertiesOfCertificatesAll(options); @@ -368,7 +368,7 @@ export class CertificateClient { private async *listPropertiesOfCertificateVersionsPage( certificateName: string, continuationState: PageSettings, - options: ListPropertiesOfCertificateVersionsOptions = {} + options: ListPropertiesOfCertificateVersionsOptions = {}, ): AsyncIterableIterator { if (continuationState.continuationToken == null) { const optionsComplete: GetCertificateVersionsOptionalParams = { @@ -379,7 +379,7 @@ export class CertificateClient { "CertificateClient.listPropertiesOfCertificateVersionsPage", optionsComplete, (updatedOptions) => - this.client.getCertificateVersions(this.vaultUrl, certificateName, updatedOptions) + this.client.getCertificateVersions(this.vaultUrl, certificateName, updatedOptions), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -394,8 +394,8 @@ export class CertificateClient { this.client.getCertificateVersions( continuationState.continuationToken!, certificateName, - updatedOptions - ) + updatedOptions, + ), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -408,14 +408,14 @@ export class CertificateClient { private async *listPropertiesOfCertificateVersionsAll( certificateName: string, - options: ListPropertiesOfCertificateVersionsOptions = {} + options: ListPropertiesOfCertificateVersionsOptions = {}, ): AsyncIterableIterator { const f = {}; for await (const page of this.listPropertiesOfCertificateVersionsPage( certificateName, f, - options + options, )) { for (const item of page) { yield item; @@ -440,7 +440,7 @@ export class CertificateClient { */ public listPropertiesOfCertificateVersions( certificateName: string, - options: ListPropertiesOfCertificateVersionsOptions = {} + options: ListPropertiesOfCertificateVersionsOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listPropertiesOfCertificateVersionsAll(certificateName, options); @@ -492,7 +492,7 @@ export class CertificateClient { */ public async beginDeleteCertificate( certificateName: string, - options: BeginDeleteCertificateOptions = {} + options: BeginDeleteCertificateOptions = {}, ): Promise> { const poller = new DeleteCertificatePoller({ certificateName, @@ -523,7 +523,7 @@ export class CertificateClient { * @param options - The optional parameters */ public deleteContacts( - options: DeleteContactsOptions = {} + options: DeleteContactsOptions = {}, ): Promise { let parsedBody: any; return tracingClient.withSpan( @@ -537,7 +537,7 @@ export class CertificateClient { }, }); return coreContactsToCertificateContacts(parsedBody); - } + }, ); } @@ -559,7 +559,7 @@ export class CertificateClient { */ public setContacts( contacts: CertificateContact[], - options: SetContactsOptions = {} + options: SetContactsOptions = {}, ): Promise { const coreContacts = contacts.map((x) => ({ emailAddress: x ? x.email : undefined, @@ -580,10 +580,10 @@ export class CertificateClient { onResponse: (response) => { parsedBody = response.parsedBody; }, - } + }, ); return coreContactsToCertificateContacts(parsedBody); - } + }, ); } @@ -611,13 +611,13 @@ export class CertificateClient { async (updatedOptions) => { const result = await this.client.getCertificateContacts(this.vaultUrl, updatedOptions); return coreContactsToCertificateContacts(result); - } + }, ); } private async *listPropertiesOfIssuersPage( continuationState: PageSettings, - options: ListPropertiesOfIssuersOptions = {} + options: ListPropertiesOfIssuersOptions = {}, ): AsyncIterableIterator { if (continuationState.continuationToken == null) { const requestOptionsComplete: GetCertificateIssuersOptionalParams = { @@ -627,7 +627,7 @@ export class CertificateClient { const currentSetResponse = await tracingClient.withSpan( "CertificateClient.listPropertiesOfIssuersPage", requestOptionsComplete, - (updatedOptions) => this.client.getCertificateIssuers(this.vaultUrl, updatedOptions) + (updatedOptions) => this.client.getCertificateIssuers(this.vaultUrl, updatedOptions), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -639,7 +639,7 @@ export class CertificateClient { "CertificateClient.listPropertiesOfIssuersPage", options, (updatedOptions) => - this.client.getCertificateIssuers(continuationState.continuationToken!, updatedOptions) + this.client.getCertificateIssuers(continuationState.continuationToken!, updatedOptions), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -651,7 +651,7 @@ export class CertificateClient { } private async *listPropertiesOfIssuersAll( - options: ListPropertiesOfIssuersOptions = {} + options: ListPropertiesOfIssuersOptions = {}, ): AsyncIterableIterator { const f = {}; @@ -684,7 +684,7 @@ export class CertificateClient { * @param options - The optional parameters */ public listPropertiesOfIssuers( - options: ListPropertiesOfIssuersOptions = {} + options: ListPropertiesOfIssuersOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listPropertiesOfIssuersAll(options); @@ -718,7 +718,7 @@ export class CertificateClient { public createIssuer( issuerName: string, provider: string, - options: CreateIssuerOptions = {} + options: CreateIssuerOptions = {}, ): Promise { return tracingClient.withSpan( "CertificateClient.createIssuer", @@ -765,7 +765,7 @@ export class CertificateClient { }, }); return toPublicIssuer(parsedBody); - } + }, ); } @@ -787,7 +787,7 @@ export class CertificateClient { */ public async updateIssuer( issuerName: string, - options: UpdateIssuerOptions = {} + options: UpdateIssuerOptions = {}, ): Promise { return tracingClient.withSpan( "CertificateClient.updateIssuer", @@ -835,7 +835,7 @@ export class CertificateClient { }); return toPublicIssuer(parsedBody); - } + }, ); } @@ -868,7 +868,7 @@ export class CertificateClient { }, }); return toPublicIssuer(parsedBody); - } + }, ); } @@ -888,7 +888,7 @@ export class CertificateClient { */ public deleteIssuer( issuerName: string, - options: DeleteIssuerOptions = {} + options: DeleteIssuerOptions = {}, ): Promise { let parsedBody: any; return tracingClient.withSpan( @@ -902,7 +902,7 @@ export class CertificateClient { }, }); return toPublicIssuer(parsedBody); - } + }, ); } @@ -944,7 +944,7 @@ export class CertificateClient { public async beginCreateCertificate( certificateName: string, policy: CertificatePolicy, - options: BeginCreateCertificateOptions = {} + options: BeginCreateCertificateOptions = {}, ): Promise> { const poller = new CreateCertificatePoller({ vaultUrl: this.vaultUrl, @@ -981,7 +981,7 @@ export class CertificateClient { */ public getCertificate( certificateName: string, - options: GetCertificateOptions = {} + options: GetCertificateOptions = {}, ): Promise { return tracingClient.withSpan( "CertificateClient.getCertificate", @@ -991,10 +991,10 @@ export class CertificateClient { this.vaultUrl, certificateName, "", - updatedOptions + updatedOptions, ); return getCertificateWithPolicyFromCertificateBundle(result); - } + }, ); } @@ -1021,7 +1021,7 @@ export class CertificateClient { public getCertificateVersion( certificateName: string, version: string, - options: GetCertificateVersionOptions = {} + options: GetCertificateVersionOptions = {}, ): Promise { return tracingClient.withSpan( "CertificateClient.getCertificateVersion", @@ -1034,10 +1034,10 @@ export class CertificateClient { this.vaultUrl, certificateName, version, - updatedOptions + updatedOptions, ); return getCertificateFromCertificateBundle(result); - } + }, ); } @@ -1069,7 +1069,7 @@ export class CertificateClient { public importCertificate( certificateName: string, certificateBytes: Uint8Array, - options: ImportCertificateOptions = {} + options: ImportCertificateOptions = {}, ): Promise { return tracingClient.withSpan( "CertificateClient.importCertificate", @@ -1077,16 +1077,16 @@ export class CertificateClient { async (updatedOptions) => { const base64EncodedCertificate = parseCertificateBytes( certificateBytes, - updatedOptions.policy?.contentType + updatedOptions.policy?.contentType, ); const result = await this.client.importCertificate( this.vaultUrl, certificateName, base64EncodedCertificate, - updatedOptions + updatedOptions, ); return getCertificateWithPolicyFromCertificateBundle(result); - } + }, ); } @@ -1109,7 +1109,7 @@ export class CertificateClient { */ public getCertificatePolicy( certificateName: string, - options: GetCertificatePolicyOptions = {} + options: GetCertificatePolicyOptions = {}, ): Promise { let parsedBody: any; return tracingClient.withSpan( @@ -1123,7 +1123,7 @@ export class CertificateClient { }, }); return toPublicPolicy(parsedBody); - } + }, ); } @@ -1137,7 +1137,7 @@ export class CertificateClient { public updateCertificatePolicy( certificateName: string, policy: CertificatePolicy, - options: UpdateCertificatePolicyOptions = {} + options: UpdateCertificatePolicyOptions = {}, ): Promise { let parsedBody: any; return tracingClient.withSpan( @@ -1152,7 +1152,7 @@ export class CertificateClient { }, }); return toPublicPolicy(parsedBody); - } + }, ); } @@ -1184,7 +1184,7 @@ export class CertificateClient { public updateCertificateProperties( certificateName: string, version: string, - options: UpdateCertificatePropertiesOptions = {} + options: UpdateCertificatePropertiesOptions = {}, ): Promise { let parsedBody: any; return tracingClient.withSpan( @@ -1199,7 +1199,7 @@ export class CertificateClient { }, }); return getCertificateFromCertificateBundle(parsedBody); - } + }, ); } @@ -1227,7 +1227,7 @@ export class CertificateClient { */ public async getCertificateOperation( certificateName: string, - options: GetCertificateOperationOptions = {} + options: GetCertificateOperationOptions = {}, ): Promise> { const poller = new CertificateOperationPoller({ certificateName, @@ -1262,7 +1262,7 @@ export class CertificateClient { */ public deleteCertificateOperation( certificateName: string, - options: DeleteCertificateOperationOptions = {} + options: DeleteCertificateOperationOptions = {}, ): Promise { return tracingClient.withSpan( "CertificateClient.deleteCertificateOperation", @@ -1276,7 +1276,7 @@ export class CertificateClient { }, }); return getCertificateOperationFromCoreOperation(certificateName, this.vaultUrl, parsedBody); - } + }, ); } @@ -1317,7 +1317,7 @@ export class CertificateClient { public mergeCertificate( certificateName: string, x509Certificates: Uint8Array[], - options: MergeCertificateOptions = {} + options: MergeCertificateOptions = {}, ): Promise { let parsedBody: any; return tracingClient.withSpan( @@ -1331,7 +1331,7 @@ export class CertificateClient { }, }); return getCertificateWithPolicyFromCertificateBundle(parsedBody); - } + }, ); } @@ -1354,7 +1354,7 @@ export class CertificateClient { */ public backupCertificate( certificateName: string, - options: BackupCertificateOptions = {} + options: BackupCertificateOptions = {}, ): Promise { let parsedBody: any; return tracingClient.withSpan( @@ -1368,7 +1368,7 @@ export class CertificateClient { }, }); return parsedBody.value; - } + }, ); } @@ -1394,7 +1394,7 @@ export class CertificateClient { */ public restoreCertificateBackup( backup: Uint8Array, - options: RestoreCertificateBackupOptions = {} + options: RestoreCertificateBackupOptions = {}, ): Promise { let parsedBody: any; return tracingClient.withSpan( @@ -1408,13 +1408,13 @@ export class CertificateClient { }, }); return getCertificateWithPolicyFromCertificateBundle(parsedBody); - } + }, ); } private async *listDeletedCertificatesPage( continuationState: PageSettings, - options: ListDeletedCertificatesOptions = {} + options: ListDeletedCertificatesOptions = {}, ): AsyncIterableIterator { if (continuationState.continuationToken == null) { const requestOptionsComplete: GetDeletedCertificatesOptionalParams = { @@ -1425,7 +1425,7 @@ export class CertificateClient { const currentSetResponse = await tracingClient.withSpan( "CertificateClient.listDeletedCertificatesPage", requestOptionsComplete, - (updatedOptions) => this.client.getDeletedCertificates(this.vaultUrl, updatedOptions) + (updatedOptions) => this.client.getDeletedCertificates(this.vaultUrl, updatedOptions), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -1440,8 +1440,8 @@ export class CertificateClient { this.client.getDeletedCertificatesNext( this.vaultUrl, continuationState.continuationToken!, - updatedOptions - ) + updatedOptions, + ), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -1453,7 +1453,7 @@ export class CertificateClient { } private async *listDeletedCertificatesAll( - options: ListDeletedCertificatesOptions = {} + options: ListDeletedCertificatesOptions = {}, ): AsyncIterableIterator { const f = {}; @@ -1484,7 +1484,7 @@ export class CertificateClient { * @param options - The optional parameters */ public listDeletedCertificates( - options: ListDeletedCertificatesOptions = {} + options: ListDeletedCertificatesOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listDeletedCertificatesAll(options); @@ -1517,7 +1517,7 @@ export class CertificateClient { */ public getDeletedCertificate( certificateName: string, - options: GetDeletedCertificateOptions = {} + options: GetDeletedCertificateOptions = {}, ): Promise { return tracingClient.withSpan( "CertificateClient.getDeletedCertificate", @@ -1531,7 +1531,7 @@ export class CertificateClient { }, }); return getDeletedCertificateFromDeletedCertificateBundle(parsedBody); - } + }, ); } @@ -1553,7 +1553,7 @@ export class CertificateClient { */ public async purgeDeletedCertificate( certificateName: string, - options: PurgeDeletedCertificateOptions = {} + options: PurgeDeletedCertificateOptions = {}, ): Promise { return tracingClient.withSpan( "CertificateClient.purgeDeletedCertificate", @@ -1561,7 +1561,7 @@ export class CertificateClient { async (updatedOptions) => { await this.client.purgeDeletedCertificate(this.vaultUrl, certificateName, updatedOptions); return null; - } + }, ); } @@ -1596,7 +1596,7 @@ export class CertificateClient { */ public async beginRecoverDeletedCertificate( certificateName: string, - options: BeginRecoverDeletedCertificateOptions = {} + options: BeginRecoverDeletedCertificateOptions = {}, ): Promise> { const poller = new RecoverDeletedCertificatePoller({ certificateName, diff --git a/sdk/keyvault/keyvault-certificates/src/lro/create/operation.ts b/sdk/keyvault/keyvault-certificates/src/lro/create/operation.ts index c58aa93582fb..83d3515ed96f 100644 --- a/sdk/keyvault/keyvault-certificates/src/lro/create/operation.ts +++ b/sdk/keyvault/keyvault-certificates/src/lro/create/operation.ts @@ -61,7 +61,7 @@ export class CreateCertificatePollOperation extends KeyVaultCertificatePollOpera public state: CreateCertificatePollOperationState, private vaultUrl: string, private client: KeyVaultClient, - private operationOptions: OperationOptions = {} + private operationOptions: OperationOptions = {}, ) { super(state); } @@ -72,7 +72,7 @@ export class CreateCertificatePollOperation extends KeyVaultCertificatePollOpera private createCertificate( certificateName: string, certificatePolicy: CertificatePolicy, - options: CreateCertificateOptions = {} + options: CreateCertificateOptions = {}, ): Promise { return tracingClient.withSpan( "CreateCertificatePoller.createCertificate", @@ -88,7 +88,7 @@ export class CreateCertificatePollOperation extends KeyVaultCertificatePollOpera }); return getCertificateWithPolicyFromCertificateBundle(result); - } + }, ); } @@ -97,7 +97,7 @@ export class CreateCertificatePollOperation extends KeyVaultCertificatePollOpera */ private getCertificate( certificateName: string, - options: GetCertificateOptions = {} + options: GetCertificateOptions = {}, ): Promise { return tracingClient.withSpan( "CreateCertificatePoller.getCertificate", @@ -107,11 +107,11 @@ export class CreateCertificatePollOperation extends KeyVaultCertificatePollOpera this.vaultUrl, certificateName, "", - updatedOptions + updatedOptions, ); return getCertificateWithPolicyFromCertificateBundle(result); - } + }, ); } @@ -120,7 +120,7 @@ export class CreateCertificatePollOperation extends KeyVaultCertificatePollOpera */ private getPlainCertificateOperation( certificateName: string, - options: GetPlainCertificateOperationOptions = {} + options: GetPlainCertificateOperationOptions = {}, ): Promise { return tracingClient.withSpan( "CreateCertificatePoller.getPlainCertificateOperation", @@ -134,7 +134,7 @@ export class CreateCertificatePollOperation extends KeyVaultCertificatePollOpera }, }); return getCertificateOperationFromCoreOperation(certificateName, this.vaultUrl, parsedBody); - } + }, ); } @@ -143,7 +143,7 @@ export class CreateCertificatePollOperation extends KeyVaultCertificatePollOpera */ private cancelCertificateOperation( certificateName: string, - options: CancelCertificateOperationOptions = {} + options: CancelCertificateOperationOptions = {}, ): Promise { return tracingClient.withSpan( "CreateCertificatePoller.cancelCertificateOperation", @@ -157,7 +157,7 @@ export class CreateCertificatePollOperation extends KeyVaultCertificatePollOpera }, }); return getCertificateOperationFromCoreOperation(certificateName, this.vaultUrl, parsedBody); - } + }, ); } @@ -169,7 +169,7 @@ export class CreateCertificatePollOperation extends KeyVaultCertificatePollOpera options: { abortSignal?: AbortSignalLike; fireProgress?: (state: CreateCertificatePollOperationState) => void; - } = {} + } = {}, ): Promise { const state = this.state; const { certificateName, certificatePolicy, createCertificateOptions } = state; @@ -184,16 +184,16 @@ export class CreateCertificatePollOperation extends KeyVaultCertificatePollOpera state.result = await this.createCertificate( certificateName, certificatePolicy!, - createCertificateOptions + createCertificateOptions, ); this.state.certificateOperation = await this.getPlainCertificateOperation( certificateName, - this.operationOptions + this.operationOptions, ); } else if (!state.isCompleted) { this.state.certificateOperation = await this.getPlainCertificateOperation( certificateName, - this.operationOptions + this.operationOptions, ); } @@ -213,7 +213,7 @@ export class CreateCertificatePollOperation extends KeyVaultCertificatePollOpera */ async cancel( this: CreateCertificatePollOperation, - options: { abortSignal?: AbortSignal } = {} + options: { abortSignal?: AbortSignal } = {}, ): Promise { const state = this.state; const { certificateName } = state; @@ -224,7 +224,7 @@ export class CreateCertificatePollOperation extends KeyVaultCertificatePollOpera state.certificateOperation = await this.cancelCertificateOperation( certificateName, - this.operationOptions + this.operationOptions, ); this.state.isCancelled = true; diff --git a/sdk/keyvault/keyvault-certificates/src/lro/create/poller.ts b/sdk/keyvault/keyvault-certificates/src/lro/create/poller.ts index 2314b1fd8097..f3d3a4541f31 100644 --- a/sdk/keyvault/keyvault-certificates/src/lro/create/poller.ts +++ b/sdk/keyvault/keyvault-certificates/src/lro/create/poller.ts @@ -51,7 +51,7 @@ export class CreateCertificatePoller extends KeyVaultCertificatePoller< }, vaultUrl, client, - operationOptions + operationOptions, ); super(operation); diff --git a/sdk/keyvault/keyvault-certificates/src/lro/delete/operation.ts b/sdk/keyvault/keyvault-certificates/src/lro/delete/operation.ts index 73ea2d0de3aa..b2a2b50bd686 100644 --- a/sdk/keyvault/keyvault-certificates/src/lro/delete/operation.ts +++ b/sdk/keyvault/keyvault-certificates/src/lro/delete/operation.ts @@ -38,7 +38,7 @@ export class DeleteCertificatePollOperation extends KeyVaultCertificatePollOpera public state: DeleteCertificatePollOperationState, private vaultUrl: string, private client: KeyVaultClient, - private operationOptions: OperationOptions = {} + private operationOptions: OperationOptions = {}, ) { super(state, { cancelMessage: "Canceling the deletion of a certificate is not supported." }); } @@ -49,7 +49,7 @@ export class DeleteCertificatePollOperation extends KeyVaultCertificatePollOpera */ private deleteCertificate( certificateName: string, - options: DeleteCertificateOptions = {} + options: DeleteCertificateOptions = {}, ): Promise { return tracingClient.withSpan( "DeleteCertificatePoller.deleteCertificate", @@ -58,10 +58,10 @@ export class DeleteCertificatePollOperation extends KeyVaultCertificatePollOpera const response = await this.client.deleteCertificate( this.vaultUrl, certificateName, - updatedOptions + updatedOptions, ); return getDeletedCertificateFromDeletedCertificateBundle(response); - } + }, ); } @@ -71,7 +71,7 @@ export class DeleteCertificatePollOperation extends KeyVaultCertificatePollOpera */ public async getDeletedCertificate( certificateName: string, - options: GetDeletedCertificateOptions = {} + options: GetDeletedCertificateOptions = {}, ): Promise { return tracingClient.withSpan( "DeleteCertificatePoller.getDeletedCertificate", @@ -85,7 +85,7 @@ export class DeleteCertificatePollOperation extends KeyVaultCertificatePollOpera }, }); return getDeletedCertificateFromDeletedCertificateBundle(parsedBody); - } + }, ); } @@ -97,7 +97,7 @@ export class DeleteCertificatePollOperation extends KeyVaultCertificatePollOpera options: { abortSignal?: AbortSignalLike; fireProgress?: (state: DeleteCertificatePollOperationState) => void; - } = {} + } = {}, ): Promise { const state = this.state; const { certificateName } = state; @@ -109,7 +109,7 @@ export class DeleteCertificatePollOperation extends KeyVaultCertificatePollOpera if (!state.isStarted) { const deletedCertificate = await this.deleteCertificate( certificateName, - this.operationOptions + this.operationOptions, ); state.isStarted = true; state.result = deletedCertificate; diff --git a/sdk/keyvault/keyvault-certificates/src/lro/delete/poller.ts b/sdk/keyvault/keyvault-certificates/src/lro/delete/poller.ts index 528f6350db85..6b62618a1411 100644 --- a/sdk/keyvault/keyvault-certificates/src/lro/delete/poller.ts +++ b/sdk/keyvault/keyvault-certificates/src/lro/delete/poller.ts @@ -41,7 +41,7 @@ export class DeleteCertificatePoller extends KeyVaultCertificatePoller< }, vaultUrl, client, - operationOptions + operationOptions, ); super(operation); diff --git a/sdk/keyvault/keyvault-certificates/src/lro/keyVaultCertificatePoller.ts b/sdk/keyvault/keyvault-certificates/src/lro/keyVaultCertificatePoller.ts index 3a3fad5b3c09..fe54b89ed57e 100644 --- a/sdk/keyvault/keyvault-certificates/src/lro/keyVaultCertificatePoller.ts +++ b/sdk/keyvault/keyvault-certificates/src/lro/keyVaultCertificatePoller.ts @@ -34,7 +34,7 @@ export interface KeyVaultCertificatePollOperationState */ // eslint-disable-next-line no-use-before-define export function cleanState, TResult>( - state: TState + state: TState, ): KeyVaultCertificatePollOperationState { return { certificateName: state.certificateName, @@ -51,7 +51,7 @@ export function cleanState, - TResult + TResult, > extends Poller { /** * Defines how much time the poller is going to wait before making a new request to the service. @@ -85,12 +85,15 @@ export interface KeyVaultCertificatePollOperationOptions { */ export class KeyVaultCertificatePollOperation< TState extends KeyVaultCertificatePollOperationState, - TResult + TResult, > implements PollOperation { private cancelMessage: string = ""; - constructor(public state: TState, options: KeyVaultCertificatePollOperationOptions = {}) { + constructor( + public state: TState, + options: KeyVaultCertificatePollOperationOptions = {}, + ) { if (options.cancelMessage) { this.cancelMessage = options.cancelMessage; } diff --git a/sdk/keyvault/keyvault-certificates/src/lro/operation/operation.ts b/sdk/keyvault/keyvault-certificates/src/lro/operation/operation.ts index 12d72129602c..78c427156ca1 100644 --- a/sdk/keyvault/keyvault-certificates/src/lro/operation/operation.ts +++ b/sdk/keyvault/keyvault-certificates/src/lro/operation/operation.ts @@ -45,7 +45,7 @@ export class CertificateOperationPollOperation extends KeyVaultCertificatePollOp public state: CertificateOperationState, private vaultUrl: string, private client: KeyVaultClient, - private operationOptions: OperationOptions = {} + private operationOptions: OperationOptions = {}, ) { super(state); } @@ -55,7 +55,7 @@ export class CertificateOperationPollOperation extends KeyVaultCertificatePollOp */ private cancelCertificateOperation( certificateName: string, - options: CancelCertificateOperationOptions = {} + options: CancelCertificateOperationOptions = {}, ): Promise { return tracingClient.withSpan( "CertificateOperationPoller.cancelCertificateOperation", @@ -69,7 +69,7 @@ export class CertificateOperationPollOperation extends KeyVaultCertificatePollOp }, }); return getCertificateOperationFromCoreOperation(certificateName, this.vaultUrl, parsedBody); - } + }, ); } @@ -78,7 +78,7 @@ export class CertificateOperationPollOperation extends KeyVaultCertificatePollOp */ private getCertificate( certificateName: string, - options: GetCertificateOptions = {} + options: GetCertificateOptions = {}, ): Promise { return tracingClient.withSpan( "CertificateOperationPoller.getCertificate", @@ -88,10 +88,10 @@ export class CertificateOperationPollOperation extends KeyVaultCertificatePollOp this.vaultUrl, certificateName, "", - updatedOptions + updatedOptions, ); return getCertificateWithPolicyFromCertificateBundle(result); - } + }, ); } @@ -100,7 +100,7 @@ export class CertificateOperationPollOperation extends KeyVaultCertificatePollOp */ private getPlainCertificateOperation( certificateName: string, - options: GetPlainCertificateOperationOptions = {} + options: GetPlainCertificateOperationOptions = {}, ): Promise { return tracingClient.withSpan( "CertificateOperationPoller.getPlainCertificateOperation", @@ -114,7 +114,7 @@ export class CertificateOperationPollOperation extends KeyVaultCertificatePollOp }, }); return getCertificateOperationFromCoreOperation(certificateName, this.vaultUrl, parsedBody); - } + }, ); } @@ -125,7 +125,7 @@ export class CertificateOperationPollOperation extends KeyVaultCertificatePollOp options: { abortSignal?: AbortSignalLike; fireProgress?: (state: CertificateOperationState) => void; - } = {} + } = {}, ): Promise { const state = this.state; const certificateName = state.certificateName!; @@ -139,12 +139,12 @@ export class CertificateOperationPollOperation extends KeyVaultCertificatePollOp state.result = await this.getCertificate(certificateName, this.operationOptions); state.certificateOperation = await this.getPlainCertificateOperation( certificateName, - this.operationOptions + this.operationOptions, ); } else if (!state.isCompleted) { state.certificateOperation = await this.getPlainCertificateOperation( certificateName, - this.operationOptions + this.operationOptions, ); } @@ -164,7 +164,7 @@ export class CertificateOperationPollOperation extends KeyVaultCertificatePollOp */ async cancel( this: CertificateOperationPollOperation, - options: { abortSignal?: AbortSignal } = {} + options: { abortSignal?: AbortSignal } = {}, ): Promise { const state = this.state; const certificateName = state.certificateName!; @@ -175,7 +175,7 @@ export class CertificateOperationPollOperation extends KeyVaultCertificatePollOp state.certificateOperation = await this.cancelCertificateOperation( certificateName, - this.operationOptions + this.operationOptions, ); this.state.isCancelled = true; diff --git a/sdk/keyvault/keyvault-certificates/src/lro/operation/poller.ts b/sdk/keyvault/keyvault-certificates/src/lro/operation/poller.ts index 0830848525df..4e99de6e9de9 100644 --- a/sdk/keyvault/keyvault-certificates/src/lro/operation/poller.ts +++ b/sdk/keyvault/keyvault-certificates/src/lro/operation/poller.ts @@ -41,7 +41,7 @@ export class CertificateOperationPoller extends KeyVaultCertificatePoller< }, vaultUrl, client, - operationOptions + operationOptions, ); super(operation); diff --git a/sdk/keyvault/keyvault-certificates/src/lro/recover/operation.ts b/sdk/keyvault/keyvault-certificates/src/lro/recover/operation.ts index b883370abe35..b2d39cea54df 100644 --- a/sdk/keyvault/keyvault-certificates/src/lro/recover/operation.ts +++ b/sdk/keyvault/keyvault-certificates/src/lro/recover/operation.ts @@ -33,7 +33,7 @@ export class RecoverDeletedCertificatePollOperation extends KeyVaultCertificateP public state: RecoverDeletedCertificateState, private vaultUrl: string, private client: KeyVaultClient, - private operationOptions: OperationOptions = {} + private operationOptions: OperationOptions = {}, ) { super(state, { cancelMessage: "Canceling the recovery of a deleted certificate is not supported.", @@ -45,7 +45,7 @@ export class RecoverDeletedCertificatePollOperation extends KeyVaultCertificateP */ private getCertificate( certificateName: string, - options: GetCertificateOptions = {} + options: GetCertificateOptions = {}, ): Promise { return tracingClient.withSpan( "RecoverDeletedCertificatePoller.getCertificate", @@ -55,10 +55,10 @@ export class RecoverDeletedCertificatePollOperation extends KeyVaultCertificateP this.vaultUrl, certificateName, "", - updatedOptions + updatedOptions, ); return getCertificateWithPolicyFromCertificateBundle(result); - } + }, ); } @@ -68,7 +68,7 @@ export class RecoverDeletedCertificatePollOperation extends KeyVaultCertificateP */ private recoverDeletedCertificate( certificateName: string, - options: RecoverDeletedCertificateOptions = {} + options: RecoverDeletedCertificateOptions = {}, ): Promise { let parsedBody: any; return tracingClient.withSpan( @@ -82,7 +82,7 @@ export class RecoverDeletedCertificatePollOperation extends KeyVaultCertificateP }, }); return getCertificateWithPolicyFromCertificateBundle(parsedBody); - } + }, ); } @@ -93,7 +93,7 @@ export class RecoverDeletedCertificatePollOperation extends KeyVaultCertificateP options: { abortSignal?: AbortSignalLike; fireProgress?: (state: RecoverDeletedCertificateState) => void; - } = {} + } = {}, ): Promise { const state = this.state; const { certificateName } = state; diff --git a/sdk/keyvault/keyvault-certificates/src/lro/recover/poller.ts b/sdk/keyvault/keyvault-certificates/src/lro/recover/poller.ts index e8b77403e3e3..24822579d304 100644 --- a/sdk/keyvault/keyvault-certificates/src/lro/recover/poller.ts +++ b/sdk/keyvault/keyvault-certificates/src/lro/recover/poller.ts @@ -43,7 +43,7 @@ export class RecoverDeletedCertificatePoller extends KeyVaultCertificatePoller< }, vaultUrl, client, - operationOptions + operationOptions, ); super(operation); diff --git a/sdk/keyvault/keyvault-certificates/src/transformations.ts b/sdk/keyvault/keyvault-certificates/src/transformations.ts index fc32b07ddf24..d34259b2e71d 100644 --- a/sdk/keyvault/keyvault-certificates/src/transformations.ts +++ b/sdk/keyvault/keyvault-certificates/src/transformations.ts @@ -47,7 +47,7 @@ export function toCoreAttributes(properties: CertificateProperties): Certificate export function toCorePolicy( id: string | undefined, policy: CertificatePolicy, - attributes: CertificateAttributes = {} + attributes: CertificateAttributes = {}, ): CoreCertificatePolicy { let subjectAlternativeNames: CoreSubjectAlternativeNames = {}; if (policy.subjectAlternativeNames) { @@ -193,7 +193,7 @@ export function toPublicIssuer(issuer: IssuerBundle = {}): CertificateIssuer { } export function getCertificateFromCertificateBundle( - certificateBundle: CertificateBundle + certificateBundle: CertificateBundle, ): KeyVaultCertificate { const parsedId = parseKeyVaultCertificateIdentifier(certificateBundle.id!); @@ -228,7 +228,7 @@ export function getCertificateFromCertificateBundle( } export function getCertificateWithPolicyFromCertificateBundle( - certificateBundle: CertificateBundle + certificateBundle: CertificateBundle, ): KeyVaultCertificateWithPolicy { const parsedId = parseKeyVaultCertificateIdentifier(certificateBundle.id!); @@ -265,7 +265,7 @@ export function getCertificateWithPolicyFromCertificateBundle( } export function getDeletedCertificateFromDeletedCertificateBundle( - certificateBundle: DeletedCertificateBundle + certificateBundle: DeletedCertificateBundle, ): DeletedCertificate { const certificate: KeyVaultCertificateWithPolicy = getCertificateWithPolicyFromCertificateBundle(certificateBundle); @@ -317,7 +317,7 @@ export function getDeletedCertificateFromItem(item: DeletedCertificateItem): Del } function getCertificateOperationErrorFromErrorModel( - error?: ErrorModel | null + error?: ErrorModel | null, ): CertificateOperationError | undefined { if (error) { return { @@ -332,7 +332,7 @@ function getCertificateOperationErrorFromErrorModel( export function getCertificateOperationFromCoreOperation( certificateName: string, vaultUrl: string, - operation: CoreCertificateOperation + operation: CoreCertificateOperation, ): CertificateOperation { return { cancellationRequested: operation.cancellationRequested, @@ -358,13 +358,13 @@ export function getCertificateOperationFromCoreOperation( export function coreContactsToCertificateContacts(contacts: CoreContacts): CertificateContact[] { return contacts.contactList ? contacts.contactList.map( - (x) => ({ email: x.emailAddress, phone: x.phone, name: x.name } as CertificateContact) + (x) => ({ email: x.emailAddress, phone: x.phone, name: x.name }) as CertificateContact, ) : []; } export function getPropertiesFromCertificateBundle( - certificateBundle: CertificateBundle + certificateBundle: CertificateBundle, ): CertificateProperties { const parsedId = parseKeyVaultCertificateIdentifier(certificateBundle.id!); const attributes: CertificateAttributes = certificateBundle.attributes || {}; diff --git a/sdk/keyvault/keyvault-certificates/src/utils.ts b/sdk/keyvault/keyvault-certificates/src/utils.ts index c684b017d1ca..bba5b0fe8a11 100644 --- a/sdk/keyvault/keyvault-certificates/src/utils.ts +++ b/sdk/keyvault/keyvault-certificates/src/utils.ts @@ -62,7 +62,7 @@ export function base64ToUint8Array(value: string): Uint8Array { */ export function parseCertificateBytes( certificateBytes: Uint8Array, - contentType: CertificateContentType + contentType: CertificateContentType, ): string { if (contentType === "application/x-pem-file") { // PEM files have the certificate bytes already Base64 formatted. diff --git a/sdk/keyvault/keyvault-certificates/test/internal/serviceVersionParameter.spec.ts b/sdk/keyvault/keyvault-certificates/test/internal/serviceVersionParameter.spec.ts index e5e515bedda7..d9ae0de99d11 100644 --- a/sdk/keyvault/keyvault-certificates/test/internal/serviceVersionParameter.spec.ts +++ b/sdk/keyvault/keyvault-certificates/test/internal/serviceVersionParameter.spec.ts @@ -52,7 +52,7 @@ describe("The Certificates client should set the serviceVersion", () => { const calls = spy.getCalls(); assert.equal( calls[0].args[0].url, - `https://keyvaultname.vault.azure.net/certificates/certificateName/?api-version=${LATEST_API_VERSION}` + `https://keyvaultname.vault.azure.net/certificates/certificateName/?api-version=${LATEST_API_VERSION}`, ); }); @@ -72,7 +72,7 @@ describe("The Certificates client should set the serviceVersion", () => { const lastCall = calls[calls.length - 1]; assert.equal( lastCall.args[0].url, - `https://keyvaultname.vault.azure.net/certificates/certificateName/?api-version=${serviceVersion}` + `https://keyvaultname.vault.azure.net/certificates/certificateName/?api-version=${serviceVersion}`, ); } }); diff --git a/sdk/keyvault/keyvault-certificates/test/internal/userAgent.spec.ts b/sdk/keyvault/keyvault-certificates/test/internal/userAgent.spec.ts index e8f3607f26c1..c7b67a41fdad 100644 --- a/sdk/keyvault/keyvault-certificates/test/internal/userAgent.spec.ts +++ b/sdk/keyvault/keyvault-certificates/test/internal/userAgent.spec.ts @@ -40,14 +40,14 @@ describe("Certificates client's user agent (only in Node, because of fs)", () => try { // The unit-test script has this test file at: test/internal/userAgent.spec.ts const fileContents = JSON.parse( - fs.readFileSync(path.join(__dirname, "../../package.json"), { encoding: "utf-8" }) + fs.readFileSync(path.join(__dirname, "../../package.json"), { encoding: "utf-8" }), ); version = fileContents.version; } catch { // The integration-test script has this test file in a different place, // Along the lines of: dist-esm/test/internal/userAgent.spec.ts const fileContents = JSON.parse( - fs.readFileSync(path.join(__dirname, "../../../package.json"), { encoding: "utf-8" }) + fs.readFileSync(path.join(__dirname, "../../../package.json"), { encoding: "utf-8" }), ); version = fileContents.version; } diff --git a/sdk/keyvault/keyvault-certificates/test/public/CRUD.spec.ts b/sdk/keyvault/keyvault-certificates/test/public/CRUD.spec.ts index 1ac45a14dd32..c1353591b73c 100644 --- a/sdk/keyvault/keyvault-certificates/test/public/CRUD.spec.ts +++ b/sdk/keyvault/keyvault-certificates/test/public/CRUD.spec.ts @@ -46,7 +46,7 @@ describe("Certificates client - create, read, update and delete", () => { secretClient = new SecretClient( keyVaultUrl, credential, - recorder.configureClientOptions({ disableChallengeResourceVerification: !isLiveMode() }) + recorder.configureClientOptions({ disableChallengeResourceVerification: !isLiveMode() }), ); }); @@ -61,13 +61,13 @@ describe("Certificates client - create, read, update and delete", () => { const poller = await client.beginCreateCertificate( certificateName, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); const pendingCertificate = poller.getResult(); // Pending certificate assert.equal( pendingCertificate!.properties.name, certificateName, - "Unexpected name in result from beginCreateCertificate()." + "Unexpected name in result from beginCreateCertificate().", ); }); @@ -91,7 +91,7 @@ describe("Certificates client - create, read, update and delete", () => { await client.beginCreateCertificate( certificateName, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); assert.fail("Expected an error"); } catch (e) { @@ -106,7 +106,7 @@ describe("Certificates client - create, read, update and delete", () => { await client.beginCreateCertificate( certificateName, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); await client.updateCertificateProperties(certificateName, "", { tags: { @@ -118,7 +118,7 @@ describe("Certificates client - create, read, update and delete", () => { assert.equal( updated!.properties.tags!.customTag!, "value", - "Expect attribute 'tags' to be updated." + "Expect attribute 'tags' to be updated.", ); }); @@ -128,7 +128,7 @@ describe("Certificates client - create, read, update and delete", () => { const poller = await client.beginCreateCertificate( certificateName, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); let result = await poller.pollUntilDone(); @@ -149,7 +149,7 @@ describe("Certificates client - create, read, update and delete", () => { const poller = await client.beginCreateCertificate( certificateName, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); let result = await poller.pollUntilDone(); @@ -171,13 +171,13 @@ describe("Certificates client - create, read, update and delete", () => { await client.beginCreateCertificate( certificateName, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); const result = await client.getCertificate(certificateName); assert.equal( result.properties.name, certificateName, - "Unexpected certificate name in result from beginCreateCertificate()." + "Unexpected certificate name in result from beginCreateCertificate().", ); }); @@ -191,7 +191,7 @@ describe("Certificates client - create, read, update and delete", () => { const createPoller = await client.beginCreateCertificate( certificateName, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); await createPoller.pollUntilDone(); @@ -205,7 +205,7 @@ describe("Certificates client - create, read, update and delete", () => { // Obtaining only the public certificate. // We send "-passin 'pass:'" because our self-signed certificate doesn't specify a password on its issuer. childProcess.execSync( - "openssl pkcs12 -in pkcs12.p12 -out pkcs12.crt.pem -clcerts -nokeys -passin pass:" + "openssl pkcs12 -in pkcs12.p12 -out pkcs12.crt.pem -clcerts -nokeys -passin pass:", ); // To generate a PEM private key out of a KeyVault Certificate @@ -224,7 +224,7 @@ describe("Certificates client - create, read, update and delete", () => { .split(/-----(BEGIN|END) CERTIFICATE-----/g)[2] .split(os.EOL) .join("") - .replace(/\n/g, "") + .replace(/\n/g, ""), ); }); @@ -241,7 +241,7 @@ describe("Certificates client - create, read, update and delete", () => { subject: "cn=MyCert", contentType: "application/x-pem-file", }, - testPollerProperties + testPollerProperties, ); await createPoller.pollUntilDone(); @@ -266,7 +266,7 @@ describe("Certificates client - create, read, update and delete", () => { await client.beginCreateCertificate( certificateName, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); const result = await client.getCertificate(certificateName); @@ -274,7 +274,7 @@ describe("Certificates client - create, read, update and delete", () => { assert.equal( result.properties.name, certificateName, - "Unexpected certificate name in result from beginCreateCertificate()." + "Unexpected certificate name in result from beginCreateCertificate().", ); }); @@ -297,7 +297,7 @@ describe("Certificates client - create, read, update and delete", () => { await client.beginCreateCertificate( certificateName, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); const poller = await client.beginDeleteCertificate(certificateName, testPollerProperties); const result = poller.getResult()!; @@ -339,19 +339,19 @@ describe("Certificates client - create, read, update and delete", () => { const certificatePoller = await client.beginCreateCertificate( certificateName, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); await certificatePoller.pollUntilDone(); const deletePoller = await client.beginDeleteCertificate( certificateName, - testPollerProperties + testPollerProperties, ); const deletedCertificate = await deletePoller.pollUntilDone(); assert.equal( deletedCertificate.name, certificateName, - "Unexpected certificate name in result from pollUntilDone()." + "Unexpected certificate name in result from pollUntilDone().", ); }); @@ -360,13 +360,13 @@ describe("Certificates client - create, read, update and delete", () => { const certificatePoller = await client.beginCreateCertificate( certificateName, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); await certificatePoller.pollUntilDone(); const deletePoller = await client.beginDeleteCertificate( certificateName, - testPollerProperties + testPollerProperties, ); await deletePoller.pollUntilDone(); @@ -374,7 +374,7 @@ describe("Certificates client - create, read, update and delete", () => { assert.equal( deletedCertificate.name, certificateName, - "Unexpected certificate name in result from getDeletedCertificate()." + "Unexpected certificate name in result from getDeletedCertificate().", ); }); @@ -418,7 +418,7 @@ describe("Certificates client - create, read, update and delete", () => { issuerName, subject: "cn=MyCert", }, - testPollerProperties + testPollerProperties, ); // Reading the issuer from the certificate @@ -465,7 +465,7 @@ describe("Certificates client - create, read, update and delete", () => { await client.beginCreateCertificate( certificateName, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); const result = await client.getCertificate(certificateName); assert.equal(result.policy!.issuerName, "Self"); @@ -485,12 +485,12 @@ describe("Certificates client - create, read, update and delete", () => { const certificateName = recorder.variable( "crudcertoperation", - `crudcertoperation-${Math.floor(Math.random() * 10000)}` + `crudcertoperation-${Math.floor(Math.random() * 10000)}`, ); await client.beginCreateCertificate( certificateName, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); let certificateOperation: any; @@ -538,11 +538,11 @@ describe("Certificates client - create, read, update and delete", () => { const getResponse = await client.getContacts(); assert.equal( getResponse && getResponse[0] && getResponse[0].name ? getResponse[0].name : undefined, - "a" + "a", ); assert.equal( getResponse && getResponse[1] && getResponse[1].name ? getResponse[1].name : undefined, - "b" + "b", ); await client.deleteContacts(); @@ -567,7 +567,7 @@ describe("Certificates client - create, read, update and delete", () => { { ...testPollerProperties, ...tracingOptions, - } + }, ); await poller.pollUntilDone(); await client.getCertificate(certificateName, { ...tracingOptions }); @@ -577,7 +577,7 @@ describe("Certificates client - create, read, update and delete", () => { "CreateCertificatePoller.getPlainCertificateOperation", "CreateCertificatePoller.getCertificate", "CertificateClient.getCertificate", - ] + ], ); }); }); diff --git a/sdk/keyvault/keyvault-certificates/test/public/list.spec.ts b/sdk/keyvault/keyvault-certificates/test/public/list.spec.ts index bee07a8037d4..ecd88f764b65 100644 --- a/sdk/keyvault/keyvault-certificates/test/public/list.spec.ts +++ b/sdk/keyvault/keyvault-certificates/test/public/list.spec.ts @@ -70,7 +70,7 @@ describe("Certificates client - list certificates in various ways", () => { const createPoller = await client.beginCreateCertificate( name, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); await createPoller.pollUntilDone(); } @@ -92,7 +92,7 @@ describe("Certificates client - list certificates in various ways", () => { const createPoller = await client.beginCreateCertificate( name, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); await createPoller.pollUntilDone(); } @@ -122,7 +122,7 @@ describe("Certificates client - list certificates in various ways", () => { const createPoller = await client.beginCreateCertificate( name, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); await createPoller.pollUntilDone(); } @@ -146,7 +146,7 @@ describe("Certificates client - list certificates in various ways", () => { const createPoller = await client.beginCreateCertificate( name, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); await createPoller.pollUntilDone(); } @@ -190,7 +190,7 @@ describe("Certificates client - list certificates in various ways", () => { ...testPollerProperties, tags: { tag }, enabled: true, - } + }, ); const response = await createPoller.pollUntilDone(); // Versions don't match. Something must be happening under the hood. @@ -222,7 +222,7 @@ describe("Certificates client - list certificates in various ways", () => { assert.equal( version.name, certificateName, - "Unexpected certificate name in result from listKeyVersions()." + "Unexpected certificate name in result from listKeyVersions().", ); totalVersions += 1; } diff --git a/sdk/keyvault/keyvault-certificates/test/public/lro.create.spec.ts b/sdk/keyvault/keyvault-certificates/test/public/lro.create.spec.ts index d51603a97f2e..a101b045e08c 100644 --- a/sdk/keyvault/keyvault-certificates/test/public/lro.create.spec.ts +++ b/sdk/keyvault/keyvault-certificates/test/public/lro.create.spec.ts @@ -35,12 +35,12 @@ describe("Certificates client - LRO - create", () => { it("can wait until a certificate is created", async function (this: Context) { const certificateName = testClient.formatName( - `${certificatePrefix}-${this!.test!.title}-${certificateSuffix}` + `${certificatePrefix}-${this!.test!.title}-${certificateSuffix}`, ); const poller = await client.beginCreateCertificate( certificateName, DefaultCertificatePolicy, - testPollerProperties + testPollerProperties, ); assert.ok(poller.getOperationState().isStarted); @@ -58,12 +58,12 @@ describe("Certificates client - LRO - create", () => { it("can resume from a stopped poller", async function (this: Context) { this.retries(5); const certificateName = testClient.formatName( - `${certificatePrefix}-${this!.test!.title}-${certificateSuffix}` + `${certificatePrefix}-${this!.test!.title}-${certificateSuffix}`, ); const poller = await client.beginCreateCertificate( certificateName, DefaultCertificatePolicy, - testPollerProperties + testPollerProperties, ); assert.ok(poller.getOperationState().isStarted); @@ -85,7 +85,7 @@ describe("Certificates client - LRO - create", () => { { resumeFrom: serialized, ...testPollerProperties, - } + }, ); assert.ok(resumePoller.getOperationState().isStarted); diff --git a/sdk/keyvault/keyvault-certificates/test/public/lro.delete.spec.ts b/sdk/keyvault/keyvault-certificates/test/public/lro.delete.spec.ts index 93a8fea7c1a2..d17e2030d7d8 100644 --- a/sdk/keyvault/keyvault-certificates/test/public/lro.delete.spec.ts +++ b/sdk/keyvault/keyvault-certificates/test/public/lro.delete.spec.ts @@ -35,12 +35,12 @@ describe("Certificates client - lro - delete", () => { it("can wait until a certificate is deleted", async function (this: Context) { const certificateName = testClient.formatName( - `${certificatePrefix}-${this!.test!.title}-${certificateSuffix}` + `${certificatePrefix}-${this!.test!.title}-${certificateSuffix}`, ); const createPoller = await client.beginCreateCertificate( certificateName, DefaultCertificatePolicy, - testPollerProperties + testPollerProperties, ); await createPoller.pollUntilDone(); const poller = await client.beginDeleteCertificate(certificateName, testPollerProperties); @@ -64,12 +64,12 @@ describe("Certificates client - lro - delete", () => { it("can resume from a stopped poller", async function (this: Context) { this.retries(5); const certificateName = testClient.formatName( - `${certificatePrefix}-${this!.test!.title}-${certificateSuffix}` + `${certificatePrefix}-${this!.test!.title}-${certificateSuffix}`, ); const createPoller = await client.beginCreateCertificate( certificateName, DefaultCertificatePolicy, - testPollerProperties + testPollerProperties, ); await createPoller.pollUntilDone(); const poller = await client.beginDeleteCertificate(certificateName, testPollerProperties); diff --git a/sdk/keyvault/keyvault-certificates/test/public/lro.operation.spec.ts b/sdk/keyvault/keyvault-certificates/test/public/lro.operation.spec.ts index b3976afa5f56..bf816e0a8345 100644 --- a/sdk/keyvault/keyvault-certificates/test/public/lro.operation.spec.ts +++ b/sdk/keyvault/keyvault-certificates/test/public/lro.operation.spec.ts @@ -40,12 +40,12 @@ describe("Certificates client - LRO - certificate operation", () => { it("can wait until a certificate is created by getting the poller from getCertificateOperation", async function (this: Context) { this.retries(5); const certificateName = testClient.formatName( - `${certificatePrefix}-${this!.test!.title}-${certificateSuffix}` + `${certificatePrefix}-${this!.test!.title}-${certificateSuffix}`, ); const createPoller = await client.beginCreateCertificate( certificateName, DefaultCertificatePolicy, - testPollerProperties + testPollerProperties, ); createPoller.stopPolling(); const poller = await client.getCertificateOperation(certificateName, testPollerProperties); @@ -68,12 +68,12 @@ describe("Certificates client - LRO - certificate operation", () => { it("can resume from a stopped poller", async function (this: Context) { this.retries(5); const certificateName = testClient.formatName( - `${certificatePrefix}-${this!.test!.title}-${certificateSuffix}` + `${certificatePrefix}-${this!.test!.title}-${certificateSuffix}`, ); const createPoller = await client.beginCreateCertificate( certificateName, DefaultCertificatePolicy, - testPollerProperties + testPollerProperties, ); createPoller.stopPolling(); @@ -92,8 +92,8 @@ describe("Certificates client - LRO - certificate operation", () => { const completeCertificate: KeyVaultCertificateWithPolicy = await resumePoller.pollUntilDone(); assert.equal(completeCertificate.name, certificateName); - const operation: CertificateOperation = await resumePoller.getOperationState() - .certificateOperation!; + const operation: CertificateOperation = + await resumePoller.getOperationState().certificateOperation!; assert.equal(operation.status, "completed"); assert.ok(resumePoller.getOperationState().isCompleted); }); diff --git a/sdk/keyvault/keyvault-certificates/test/public/lro.recover.spec.ts b/sdk/keyvault/keyvault-certificates/test/public/lro.recover.spec.ts index 5da8e7e0026b..f8d3d434ba04 100644 --- a/sdk/keyvault/keyvault-certificates/test/public/lro.recover.spec.ts +++ b/sdk/keyvault/keyvault-certificates/test/public/lro.recover.spec.ts @@ -35,12 +35,12 @@ describe("Certificates client - LRO - recoverDelete", () => { it("can wait until a certificate is recovered", async function (this: Context) { const certificateName = testClient.formatName( - `${certificatePrefix}-${this!.test!.title}-${certificateSuffix}` + `${certificatePrefix}-${this!.test!.title}-${certificateSuffix}`, ); const createPoller = await client.beginCreateCertificate( certificateName, DefaultCertificatePolicy, - testPollerProperties + testPollerProperties, ); await createPoller.pollUntilDone(); @@ -49,7 +49,7 @@ describe("Certificates client - LRO - recoverDelete", () => { const recoverPoller = await client.beginRecoverDeletedCertificate( certificateName, - testPollerProperties + testPollerProperties, ); assert.ok(recoverPoller.getOperationState().isStarted); @@ -69,12 +69,12 @@ describe("Certificates client - LRO - recoverDelete", () => { it("can resume from a stopped poller", async function (this: Context) { this.retries(5); const certificateName = testClient.formatName( - `${certificatePrefix}-${this!.test!.title}-${certificateSuffix}` + `${certificatePrefix}-${this!.test!.title}-${certificateSuffix}`, ); const createPoller = await client.beginCreateCertificate( certificateName, DefaultCertificatePolicy, - testPollerProperties + testPollerProperties, ); await createPoller.pollUntilDone(); const deletePoller = await client.beginDeleteCertificate(certificateName, testPollerProperties); @@ -82,7 +82,7 @@ describe("Certificates client - LRO - recoverDelete", () => { const recoverPoller = await client.beginRecoverDeletedCertificate( certificateName, - testPollerProperties + testPollerProperties, ); assert.ok(recoverPoller.getOperationState().isStarted); diff --git a/sdk/keyvault/keyvault-certificates/test/public/mergeAndImport.spec.ts b/sdk/keyvault/keyvault-certificates/test/public/mergeAndImport.spec.ts index 365f049b11af..19e302a0b5cb 100644 --- a/sdk/keyvault/keyvault-certificates/test/public/mergeAndImport.spec.ts +++ b/sdk/keyvault/keyvault-certificates/test/public/mergeAndImport.spec.ts @@ -37,7 +37,7 @@ describe("Certificates client - merge and import certificates", () => { secretClient = new SecretClient( keyVaultUrl, credential, - recorder.configureClientOptions({ disableChallengeResourceVerification: true }) + recorder.configureClientOptions({ disableChallengeResourceVerification: true }), ); }); @@ -56,7 +56,7 @@ describe("Certificates client - merge and import certificates", () => { issuerName: "Self", subject: "cn=MyCert", }, - testPollerProperties + testPollerProperties, ); await createPoller.pollUntilDone(); const certificateSecret = await secretClient.getSecret(certificateNames[0]); @@ -76,7 +76,7 @@ describe("Certificates client - merge and import certificates", () => { issuerName: "Self", subject: "cn=MyCert", }, - testPollerProperties + testPollerProperties, ); await createPoller.pollUntilDone(); const certificateSecret = await secretClient.getSecret(certificateNames[0]); @@ -107,7 +107,7 @@ describe("Certificates client - merge and import certificates", () => { certificateTransparency: false, subject: "cn=MyCert", }, - testPollerProperties + testPollerProperties, ); const certificateOperationPoller = await client.getCertificateOperation(certificateName); @@ -122,7 +122,7 @@ ${base64Csr} // openssl genrsa -out ca.key 2048 // openssl req -new -x509 -key ca.key -out ca.crt childProcess.execSync( - "openssl x509 -req -in test.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out test.crt" + "openssl x509 -req -in test.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out test.crt", ); const base64Crt = fs.readFileSync("test.crt").toString().split("\n").slice(1, -1).join(""); diff --git a/sdk/keyvault/keyvault-certificates/test/public/recoverBackupRestore.spec.ts b/sdk/keyvault/keyvault-certificates/test/public/recoverBackupRestore.spec.ts index 96f1832beb11..1104aeb11b59 100644 --- a/sdk/keyvault/keyvault-certificates/test/public/recoverBackupRestore.spec.ts +++ b/sdk/keyvault/keyvault-certificates/test/public/recoverBackupRestore.spec.ts @@ -42,7 +42,7 @@ describe("Certificates client - restore certificates and recover backups", () => const createPoller = await client.beginCreateCertificate( certificateName, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); await createPoller.pollUntilDone(); const deletePoller = await client.beginDeleteCertificate(certificateName, testPollerProperties); @@ -50,17 +50,17 @@ describe("Certificates client - restore certificates and recover backups", () => assert.equal( getDeletedResult.properties.name, certificateName, - "Unexpected certificate name in result from getCertificate()." + "Unexpected certificate name in result from getCertificate().", ); const recoverPoller = await client.beginRecoverDeletedCertificate( certificateName, - testPollerProperties + testPollerProperties, ); const getResult = await recoverPoller.pollUntilDone(); assert.equal( getResult.properties.name, certificateName, - "Unexpected certificate name in result from getCertificate()." + "Unexpected certificate name in result from getCertificate().", ); }); @@ -85,13 +85,13 @@ describe("Certificates client - restore certificates and recover backups", () => const createPoller = await client.beginCreateCertificate( certificateName, basicCertificatePolicy, - testPollerProperties + testPollerProperties, ); await createPoller.pollUntilDone(); const backup = await client.backupCertificate(certificateName); const deletePoller = await client.beginDeleteCertificate( certificateName, - testPollerProperties + testPollerProperties, ); await deletePoller.pollUntilDone(); await client.purgeDeletedCertificate(certificateName); @@ -104,7 +104,7 @@ describe("Certificates client - restore certificates and recover backups", () => // If this is useful to you, please open an issue at: https://github.com/Azure/azure-sdk-for-js/issues const restorePoller = await testClient.beginRestoreCertificateBackup( backup as Uint8Array, - testPollerProperties + testPollerProperties, ); const restoredCertificate = await restorePoller.pollUntilDone(); @@ -124,7 +124,7 @@ describe("Certificates client - restore certificates and recover backups", () => assert.equal( error.message, "Backup blob contains invalid or corrupt version.", - "Unexpected error from restoreCertificate()" + "Unexpected error from restoreCertificate()", ); }); }); diff --git a/sdk/keyvault/keyvault-certificates/test/public/utils/common.ts b/sdk/keyvault/keyvault-certificates/test/public/utils/common.ts index bd0310d0deee..fe9afbbb7340 100644 --- a/sdk/keyvault/keyvault-certificates/test/public/utils/common.ts +++ b/sdk/keyvault/keyvault-certificates/test/public/utils/common.ts @@ -58,7 +58,7 @@ export function getServiceVersion(): NonNullable; } @@ -60,7 +60,7 @@ async function update( options: { abortSignal?: AbortSignalLike; fireProgress?: (state: RestoreCertificateBackupPollOperationState) => void; - } = {} + } = {}, ): Promise { const state = this.state; const { backup, client, operationOptions = {} } = state; @@ -104,7 +104,7 @@ function toString(this: RestoreCertificateBackupPollOperation): string { * @param state - A poll operation's state, in case the new one is intended to follow up where the previous one was left. */ export function makeRestoreCertificateBackupPollOperation( - state: RestoreCertificateBackupPollOperationState + state: RestoreCertificateBackupPollOperationState, ): RestoreCertificateBackupPollOperation { return { state: { diff --git a/sdk/keyvault/keyvault-certificates/test/public/utils/testAuthentication.ts b/sdk/keyvault/keyvault-certificates/test/public/utils/testAuthentication.ts index 9b88107f0c5b..8fe240b65dd2 100644 --- a/sdk/keyvault/keyvault-certificates/test/public/utils/testAuthentication.ts +++ b/sdk/keyvault/keyvault-certificates/test/public/utils/testAuthentication.ts @@ -11,7 +11,7 @@ import { createTestCredential } from "@azure-tools/test-credential"; export async function authenticate( that: Context, - serviceVersion: ReturnType + serviceVersion: ReturnType, ): Promise { const suffix = uniqueString(); @@ -65,7 +65,7 @@ export async function authenticate( recorder.configureClientOptions({ serviceVersion, disableChallengeResourceVerification: !isLiveMode(), - }) + }), ); const testClient = new TestClient(client); diff --git a/sdk/keyvault/keyvault-certificates/test/public/utils/testClient.ts b/sdk/keyvault/keyvault-certificates/test/public/utils/testClient.ts index a64065bf6a49..03417c1ba582 100644 --- a/sdk/keyvault/keyvault-certificates/test/public/utils/testClient.ts +++ b/sdk/keyvault/keyvault-certificates/test/public/utils/testClient.ts @@ -26,7 +26,7 @@ export default class TestClient { } public async beginRestoreCertificateBackup( backup: Uint8Array, - options: BeginRestoreCertificateBackupOptions = {} + options: BeginRestoreCertificateBackupOptions = {}, ): Promise, KeyVaultCertificate>> { const poller = new RestoreCertificateBackupPoller({ backup, diff --git a/sdk/keyvault/keyvault-common/package.json b/sdk/keyvault/keyvault-common/package.json index 5bc993247eb6..f8ea2cd9153c 100644 --- a/sdk/keyvault/keyvault-common/package.json +++ b/sdk/keyvault/keyvault-common/package.json @@ -13,11 +13,11 @@ "build:samples": "echo skipped", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && npm run build:test && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -67,7 +67,6 @@ "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@microsoft/api-extractor": "^7.31.1", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "cross-env": "^7.0.2", "esm": "^3.2.18", diff --git a/sdk/keyvault/keyvault-common/src/challengeBasedAuthenticationPolicy.ts b/sdk/keyvault/keyvault-common/src/challengeBasedAuthenticationPolicy.ts index e71e3f0470e4..d70f813d2ad9 100644 --- a/sdk/keyvault/keyvault-common/src/challengeBasedAuthenticationPolicy.ts +++ b/sdk/keyvault/keyvault-common/src/challengeBasedAuthenticationPolicy.ts @@ -61,7 +61,7 @@ function verifyChallengeResource(scope: string, request: PipelineRequest): void if (!requestUrl.hostname.endsWith(`.${scopeAsUrl.hostname}`)) { throw new Error( - `The challenge resource '${scopeAsUrl.hostname}' does not match the requested domain. Set disableChallengeResourceVerification to true in your client options to disable. See https://aka.ms/azsdk/blog/vault-uri for more information.` + `The challenge resource '${scopeAsUrl.hostname}' does not match the requested domain. Set disableChallengeResourceVerification to true in your client options to disable. See https://aka.ms/azsdk/blog/vault-uri for more information.`, ); } } @@ -80,7 +80,7 @@ function verifyChallengeResource(scope: string, request: PipelineRequest): void * */ export function createKeyVaultChallengeCallbacks( - options: CreateChallengeCallbacksOptions = {} + options: CreateChallengeCallbacksOptions = {}, ): ChallengeCallbacks { const { disableChallengeResourceVerification } = options; let challengeState: ChallengeState = { status: "none" }; diff --git a/sdk/keyvault/keyvault-common/src/parseKeyVaultIdentifier.ts b/sdk/keyvault/keyvault-common/src/parseKeyVaultIdentifier.ts index 4e76f1c8fa47..8d3b596bc731 100644 --- a/sdk/keyvault/keyvault-common/src/parseKeyVaultIdentifier.ts +++ b/sdk/keyvault/keyvault-common/src/parseKeyVaultIdentifier.ts @@ -27,7 +27,7 @@ export interface KeyVaultEntityIdentifier { */ export function parseKeyVaultIdentifier( collection: string, - identifier: string | undefined + identifier: string | undefined, ): KeyVaultEntityIdentifier { if (typeof collection !== "string" || !(collection = collection.trim())) { throw new Error("Invalid collection argument"); @@ -48,13 +48,13 @@ export function parseKeyVaultIdentifier( const segments = (baseUri.pathname || "").split("/"); if (segments.length !== 3 && segments.length !== 4) { throw new Error( - `Invalid ${collection} identifier: ${identifier}. Bad number of segments: ${segments.length}` + `Invalid ${collection} identifier: ${identifier}. Bad number of segments: ${segments.length}`, ); } if (collection !== segments[1]) { throw new Error( - `Invalid ${collection} identifier: ${identifier}. segment [1] should be "${collection}", found "${segments[1]}"` + `Invalid ${collection} identifier: ${identifier}. segment [1] should be "${collection}", found "${segments[1]}"`, ); } diff --git a/sdk/keyvault/keyvault-common/test/internal/challengeAuthenticationCallbacks.spec.ts b/sdk/keyvault/keyvault-common/test/internal/challengeAuthenticationCallbacks.spec.ts index 8c7e6a724163..d87c2c282cda 100644 --- a/sdk/keyvault/keyvault-common/test/internal/challengeAuthenticationCallbacks.spec.ts +++ b/sdk/keyvault/keyvault-common/test/internal/challengeAuthenticationCallbacks.spec.ts @@ -104,7 +104,7 @@ describe("Challenge based authentication tests", function () { }, scopes: [], }), - "Missing challenge" + "Missing challenge", ); }); @@ -143,7 +143,7 @@ describe("Challenge based authentication tests", function () { }, scopes: [], }), - `The challenge contains invalid scope 'invalid_scope/.default'` + `The challenge contains invalid scope 'invalid_scope/.default'`, ); }); @@ -161,7 +161,7 @@ describe("Challenge based authentication tests", function () { }, scopes: [], }), - "The challenge resource 'vault.azure.net' does not match the requested domain. Set disableChallengeResourceVerification to true in your client options to disable. See https://aka.ms/azsdk/blog/vault-uri for more information." + "The challenge resource 'vault.azure.net' does not match the requested domain. Set disableChallengeResourceVerification to true in your client options to disable. See https://aka.ms/azsdk/blog/vault-uri for more information.", ); }); @@ -179,7 +179,7 @@ describe("Challenge based authentication tests", function () { }, scopes: [], }), - "The challenge resource 'vault.azure.net' does not match the requested domain. Set disableChallengeResourceVerification to true in your client options to disable. See https://aka.ms/azsdk/blog/vault-uri for more information." + "The challenge resource 'vault.azure.net' does not match the requested domain. Set disableChallengeResourceVerification to true in your client options to disable. See https://aka.ms/azsdk/blog/vault-uri for more information.", ); }); diff --git a/sdk/keyvault/keyvault-keys/package.json b/sdk/keyvault/keyvault-keys/package.json index fc9354d5d716..057e038f0431 100644 --- a/sdk/keyvault/keyvault-keys/package.json +++ b/sdk/keyvault/keyvault-keys/package.json @@ -50,11 +50,11 @@ "build:test": "tsc -p . && npm run bundle", "build": "npm run clean && tsc -p . && npm run build:nodebrowser && api-extractor run --local", "bundle": "dev-tool run bundle", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log dist-browser statistics.html coverage && rimraf src/**/*.js && rimraf test/**/*.js", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/**/*.spec.js'", @@ -143,7 +143,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.0", "sinon": "^17.0.0", diff --git a/sdk/keyvault/keyvault-keys/samples-dev/cryptography.ts b/sdk/keyvault/keyvault-keys/samples-dev/cryptography.ts index 5ddc52db2dc1..b93ed5355735 100644 --- a/sdk/keyvault/keyvault-keys/samples-dev/cryptography.ts +++ b/sdk/keyvault/keyvault-keys/samples-dev/cryptography.ts @@ -32,7 +32,7 @@ export async function main(): Promise { const cryptoClient = new CryptographyClient( myWorkKey.id!, // You can use either the key or the key Id i.e. its url to create a CryptographyClient. - credential + credential, ); // Sign and Verify diff --git a/sdk/keyvault/keyvault-keys/src/cryptography/aesCryptographyProvider.browser.ts b/sdk/keyvault/keyvault-keys/src/cryptography/aesCryptographyProvider.browser.ts index 97deb068693b..18ae65e1144d 100644 --- a/sdk/keyvault/keyvault-keys/src/cryptography/aesCryptographyProvider.browser.ts +++ b/sdk/keyvault/keyvault-keys/src/cryptography/aesCryptographyProvider.browser.ts @@ -12,12 +12,12 @@ import { CryptographyProvider, LocalCryptographyUnsupportedError } from "./model export class AesCryptographyProvider implements CryptographyProvider { encrypt(): never { throw new LocalCryptographyUnsupportedError( - "AES Local cryptography is not supported in the browser." + "AES Local cryptography is not supported in the browser.", ); } decrypt(): never { throw new LocalCryptographyUnsupportedError( - "AES Local cryptography is not supported in the browser." + "AES Local cryptography is not supported in the browser.", ); } @@ -30,37 +30,37 @@ export class AesCryptographyProvider implements CryptographyProvider { wrapKey(): never { throw new LocalCryptographyUnsupportedError( - "AES Local cryptography is not supported in the browser." + "AES Local cryptography is not supported in the browser.", ); } unwrapKey(): never { throw new LocalCryptographyUnsupportedError( - "AES Local cryptography is not supported in the browser." + "AES Local cryptography is not supported in the browser.", ); } sign(): never { throw new LocalCryptographyUnsupportedError( - "AES Local cryptography is not supported in the browser." + "AES Local cryptography is not supported in the browser.", ); } signData(): never { throw new LocalCryptographyUnsupportedError( - "AES Local cryptography is not supported in the browser." + "AES Local cryptography is not supported in the browser.", ); } verify(): never { throw new LocalCryptographyUnsupportedError( - "AES Local cryptography is not supported in the browser." + "AES Local cryptography is not supported in the browser.", ); } verifyData(): never { throw new LocalCryptographyUnsupportedError( - "AES Local cryptography is not supported in the browser." + "AES Local cryptography is not supported in the browser.", ); } } diff --git a/sdk/keyvault/keyvault-keys/src/cryptography/aesCryptographyProvider.ts b/sdk/keyvault/keyvault-keys/src/cryptography/aesCryptographyProvider.ts index 9fe212a681c1..9a298a09be8d 100644 --- a/sdk/keyvault/keyvault-keys/src/cryptography/aesCryptographyProvider.ts +++ b/sdk/keyvault/keyvault-keys/src/cryptography/aesCryptographyProvider.ts @@ -38,7 +38,7 @@ export class AesCryptographyProvider implements CryptographyProvider { } encrypt( encryptParameters: AesCbcEncryptParameters, - _options?: EncryptOptions + _options?: EncryptOptions, ): Promise { const { algorithm, keySizeInBytes } = this.supportedAlgorithms[encryptParameters.algorithm]; const iv = encryptParameters.iv || crypto.randomBytes(16); @@ -58,7 +58,7 @@ export class AesCryptographyProvider implements CryptographyProvider { decrypt( decryptParameters: AesCbcDecryptParameters, - _options?: DecryptOptions + _options?: DecryptOptions, ): Promise { const { algorithm, keySizeInBytes } = this.supportedAlgorithms[decryptParameters.algorithm]; @@ -67,7 +67,7 @@ export class AesCryptographyProvider implements CryptographyProvider { const decipher = crypto.createDecipheriv( algorithm, this.key.k!.subarray(0, keySizeInBytes), - decryptParameters.iv + decryptParameters.iv, ); let dec = decipher.update(Buffer.from(decryptParameters.ciphertext)); dec = Buffer.concat([dec, decipher.final()]); @@ -121,32 +121,32 @@ export class AesCryptographyProvider implements CryptographyProvider { wrapKey( _algorithm: KeyWrapAlgorithm, _keyToWrap: Uint8Array, - _options?: WrapKeyOptions + _options?: WrapKeyOptions, ): Promise { throw new LocalCryptographyUnsupportedError( - "Wrapping a key using a local JsonWebKey is not supported for AES." + "Wrapping a key using a local JsonWebKey is not supported for AES.", ); } unwrapKey( _algorithm: KeyWrapAlgorithm, _encryptedKey: Uint8Array, - _options?: UnwrapKeyOptions + _options?: UnwrapKeyOptions, ): Promise { throw new LocalCryptographyUnsupportedError( - "Unwrapping a key using a local JsonWebKey is not supported for AES." + "Unwrapping a key using a local JsonWebKey is not supported for AES.", ); } sign(_algorithm: string, _digest: Uint8Array, _options?: SignOptions): Promise { throw new LocalCryptographyUnsupportedError( - "Signing using a local JsonWebKey is not supported for AES." + "Signing using a local JsonWebKey is not supported for AES.", ); } signData(_algorithm: string, _data: Uint8Array, _options?: SignOptions): Promise { throw new LocalCryptographyUnsupportedError( - "Signing using a local JsonWebKey is not supported for AES." + "Signing using a local JsonWebKey is not supported for AES.", ); } @@ -154,20 +154,20 @@ export class AesCryptographyProvider implements CryptographyProvider { _algorithm: string, _digest: Uint8Array, _signature: Uint8Array, - _options?: VerifyOptions + _options?: VerifyOptions, ): Promise { throw new LocalCryptographyUnsupportedError( - "Verifying using a local JsonWebKey is not supported for AES." + "Verifying using a local JsonWebKey is not supported for AES.", ); } verifyData( _algorithm: string, _data: Uint8Array, _signature: Uint8Array, - _updatedOptions: OperationOptions + _updatedOptions: OperationOptions, ): Promise { throw new LocalCryptographyUnsupportedError( - "Verifying using a local JsonWebKey is not supported for AES." + "Verifying using a local JsonWebKey is not supported for AES.", ); } diff --git a/sdk/keyvault/keyvault-keys/src/cryptography/crypto.browser.ts b/sdk/keyvault/keyvault-keys/src/cryptography/crypto.browser.ts index 5afbc4f29913..5e32f3a707e5 100644 --- a/sdk/keyvault/keyvault-keys/src/cryptography/crypto.browser.ts +++ b/sdk/keyvault/keyvault-keys/src/cryptography/crypto.browser.ts @@ -9,7 +9,7 @@ import { LocalCryptographyUnsupportedError } from "./models"; */ export async function createHash(_algorithm: string, _data: Uint8Array): Promise { throw new LocalCryptographyUnsupportedError( - "Our libraries don't currently support browser hashing" + "Our libraries don't currently support browser hashing", ); } @@ -19,7 +19,7 @@ export async function createHash(_algorithm: string, _data: Uint8Array): Promise */ export function createVerify(_algorithm: string, _data: Uint8Array): never { throw new LocalCryptographyUnsupportedError( - "Our libraries don't currently support browser hashing" + "Our libraries don't currently support browser hashing", ); } @@ -29,6 +29,6 @@ export function createVerify(_algorithm: string, _data: Uint8Array): never { */ export function randomBytes(_length: number): Uint8Array { throw new LocalCryptographyUnsupportedError( - "Our libraries don't currently support browser crypto" + "Our libraries don't currently support browser crypto", ); } diff --git a/sdk/keyvault/keyvault-keys/src/cryptography/crypto.ts b/sdk/keyvault/keyvault-keys/src/cryptography/crypto.ts index 3d1b433dc6c3..af4e0f2f3fa7 100644 --- a/sdk/keyvault/keyvault-keys/src/cryptography/crypto.ts +++ b/sdk/keyvault/keyvault-keys/src/cryptography/crypto.ts @@ -34,8 +34,8 @@ export async function createHash(algorithm: string, data: Uint8Array): Promise; /** @@ -99,7 +99,7 @@ export interface CryptographyProvider { unwrapKey( algorithm: KeyWrapAlgorithm, encryptedKey: Uint8Array, - options?: UnwrapKeyOptions + options?: UnwrapKeyOptions, ): Promise; /** @@ -113,7 +113,7 @@ export interface CryptographyProvider { sign( algorithm: SignatureAlgorithm, digest: Uint8Array, - options?: SignOptions + options?: SignOptions, ): Promise; /** @@ -127,7 +127,7 @@ export interface CryptographyProvider { signData( algorithm: SignatureAlgorithm, data: Uint8Array, - options?: SignOptions + options?: SignOptions, ): Promise; /** @@ -143,7 +143,7 @@ export interface CryptographyProvider { algorithm: SignatureAlgorithm, digest: Uint8Array, signature: Uint8Array, - options?: VerifyOptions + options?: VerifyOptions, ): Promise; /** @@ -159,6 +159,6 @@ export interface CryptographyProvider { algorithm: string, data: Uint8Array, signature: Uint8Array, - updatedOptions: OperationOptions + updatedOptions: OperationOptions, ): Promise; } diff --git a/sdk/keyvault/keyvault-keys/src/cryptography/remoteCryptographyProvider.ts b/sdk/keyvault/keyvault-keys/src/cryptography/remoteCryptographyProvider.ts index e922a7f4710c..b2f38d12fe3e 100644 --- a/sdk/keyvault/keyvault-keys/src/cryptography/remoteCryptographyProvider.ts +++ b/sdk/keyvault/keyvault-keys/src/cryptography/remoteCryptographyProvider.ts @@ -45,7 +45,7 @@ export class RemoteCryptographyProvider implements CryptographyProvider { constructor( key: string | KeyVaultKey, credential: TokenCredential, - pipelineOptions: CryptographyClientOptions = {} + pipelineOptions: CryptographyClientOptions = {}, ) { this.client = getOrInitializeClient(credential, pipelineOptions); @@ -85,7 +85,7 @@ export class RemoteCryptographyProvider implements CryptographyProvider { encrypt( encryptParameters: EncryptParameters, - options: EncryptOptions = {} + options: EncryptOptions = {}, ): Promise { const { algorithm, plaintext, ...params } = encryptParameters; const requestOptions = { ...options, ...params }; @@ -100,7 +100,7 @@ export class RemoteCryptographyProvider implements CryptographyProvider { this.version, algorithm, plaintext, - updatedOptions + updatedOptions, ); return { @@ -111,13 +111,13 @@ export class RemoteCryptographyProvider implements CryptographyProvider { authenticationTag: result.authenticationTag, iv: result.iv, }; - } + }, ); } decrypt( decryptParameters: DecryptParameters, - options: DecryptOptions = {} + options: DecryptOptions = {}, ): Promise { const { algorithm, ciphertext, ...params } = decryptParameters; const requestOptions = { ...options, ...params }; @@ -132,21 +132,21 @@ export class RemoteCryptographyProvider implements CryptographyProvider { this.version, algorithm, ciphertext, - updatedOptions + updatedOptions, ); return { result: result.result!, keyID: this.getKeyID(), algorithm, }; - } + }, ); } wrapKey( algorithm: KeyWrapAlgorithm, keyToWrap: Uint8Array, - options: WrapKeyOptions = {} + options: WrapKeyOptions = {}, ): Promise { return tracingClient.withSpan( "RemoteCryptographyProvider.wrapKey", @@ -158,7 +158,7 @@ export class RemoteCryptographyProvider implements CryptographyProvider { this.version, algorithm, keyToWrap, - updatedOptions + updatedOptions, ); return { @@ -166,14 +166,14 @@ export class RemoteCryptographyProvider implements CryptographyProvider { algorithm, keyID: this.getKeyID(), }; - } + }, ); } unwrapKey( algorithm: KeyWrapAlgorithm, encryptedKey: Uint8Array, - options: UnwrapKeyOptions = {} + options: UnwrapKeyOptions = {}, ): Promise { return tracingClient.withSpan( "RemoteCryptographyProvider.unwrapKey", @@ -185,7 +185,7 @@ export class RemoteCryptographyProvider implements CryptographyProvider { this.version, algorithm, encryptedKey, - updatedOptions + updatedOptions, ); return { @@ -193,7 +193,7 @@ export class RemoteCryptographyProvider implements CryptographyProvider { algorithm, keyID: this.getKeyID(), }; - } + }, ); } @@ -208,11 +208,11 @@ export class RemoteCryptographyProvider implements CryptographyProvider { this.version, algorithm, digest, - updatedOptions + updatedOptions, ); return { result: result.result!, algorithm, keyID: this.getKeyID() }; - } + }, ); } @@ -220,7 +220,7 @@ export class RemoteCryptographyProvider implements CryptographyProvider { algorithm: string, data: Uint8Array, signature: Uint8Array, - options: VerifyOptions = {} + options: VerifyOptions = {}, ): Promise { return tracingClient.withSpan( "RemoteCryptographyProvider.verifyData", @@ -228,7 +228,7 @@ export class RemoteCryptographyProvider implements CryptographyProvider { async (updatedOptions) => { const hash = await createHash(algorithm, data); return this.verify(algorithm, hash, signature, updatedOptions); - } + }, ); } @@ -236,7 +236,7 @@ export class RemoteCryptographyProvider implements CryptographyProvider { algorithm: string, digest: Uint8Array, signature: Uint8Array, - options: VerifyOptions = {} + options: VerifyOptions = {}, ): Promise { return tracingClient.withSpan( "RemoteCryptographyProvider.verify", @@ -249,13 +249,13 @@ export class RemoteCryptographyProvider implements CryptographyProvider { algorithm, digest, signature, - updatedOptions + updatedOptions, ); return { result: response.value ? response.value : false, keyID: this.getKeyID(), }; - } + }, ); } @@ -271,10 +271,10 @@ export class RemoteCryptographyProvider implements CryptographyProvider { this.version, algorithm, digest, - updatedOptions + updatedOptions, ); return { result: result.result!, algorithm, keyID: this.getKeyID() }; - } + }, ); } @@ -308,12 +308,12 @@ export class RemoteCryptographyProvider implements CryptographyProvider { this.vaultUrl, this.name, options && options.version ? options.version : this.version ? this.version : "", - updatedOptions + updatedOptions, ); this.key = getKeyFromKeyBundle(response); } return this.key; - } + }, ); } @@ -365,7 +365,7 @@ export class RemoteCryptographyProvider implements CryptographyProvider { */ function getOrInitializeClient( credential: TokenCredential, - options: CryptographyClientOptions & { generatedClient?: KeyVaultClient } + options: CryptographyClientOptions & { generatedClient?: KeyVaultClient }, ): KeyVaultClient { if (options.generatedClient) { return options.generatedClient; @@ -402,7 +402,7 @@ function getOrInitializeClient( const client = new KeyVaultClient( options.serviceVersion || LATEST_API_VERSION, - internalPipelineOptions + internalPipelineOptions, ); client.pipeline.addPolicy(authPolicy); diff --git a/sdk/keyvault/keyvault-keys/src/cryptography/rsaCryptographyProvider.browser.ts b/sdk/keyvault/keyvault-keys/src/cryptography/rsaCryptographyProvider.browser.ts index 888d1cf657af..6f20177f376d 100644 --- a/sdk/keyvault/keyvault-keys/src/cryptography/rsaCryptographyProvider.browser.ts +++ b/sdk/keyvault/keyvault-keys/src/cryptography/rsaCryptographyProvider.browser.ts @@ -12,12 +12,12 @@ import { CryptographyProvider, LocalCryptographyUnsupportedError } from "./model export class RsaCryptographyProvider implements CryptographyProvider { encrypt(): never { throw new LocalCryptographyUnsupportedError( - "RSA Local cryptography is not supported in the browser." + "RSA Local cryptography is not supported in the browser.", ); } decrypt(): never { throw new LocalCryptographyUnsupportedError( - "RSA Local cryptography is not supported in the browser." + "RSA Local cryptography is not supported in the browser.", ); } @@ -30,37 +30,37 @@ export class RsaCryptographyProvider implements CryptographyProvider { wrapKey(): never { throw new LocalCryptographyUnsupportedError( - "RSA Local cryptography is not supported in the browser." + "RSA Local cryptography is not supported in the browser.", ); } unwrapKey(): never { throw new LocalCryptographyUnsupportedError( - "RSA Local cryptography is not supported in the browser." + "RSA Local cryptography is not supported in the browser.", ); } sign(): never { throw new LocalCryptographyUnsupportedError( - "RSA Local cryptography is not supported in the browser." + "RSA Local cryptography is not supported in the browser.", ); } signData(): never { throw new LocalCryptographyUnsupportedError( - "RSA Local cryptography is not supported in the browser." + "RSA Local cryptography is not supported in the browser.", ); } verify(): never { throw new LocalCryptographyUnsupportedError( - "RSA Local cryptography is not supported in the browser." + "RSA Local cryptography is not supported in the browser.", ); } verifyData(): never { throw new LocalCryptographyUnsupportedError( - "RSA Local cryptography is not supported in the browser." + "RSA Local cryptography is not supported in the browser.", ); } } diff --git a/sdk/keyvault/keyvault-keys/src/cryptography/rsaCryptographyProvider.ts b/sdk/keyvault/keyvault-keys/src/cryptography/rsaCryptographyProvider.ts index 964ee8ad797d..e18e83d97618 100644 --- a/sdk/keyvault/keyvault-keys/src/cryptography/rsaCryptographyProvider.ts +++ b/sdk/keyvault/keyvault-keys/src/cryptography/rsaCryptographyProvider.ts @@ -56,24 +56,24 @@ export class RsaCryptographyProvider implements CryptographyProvider { keyID: this.key.kid, result: publicEncrypt( { key: keyPEM, padding: padding }, - Buffer.from(encryptParameters.plaintext) + Buffer.from(encryptParameters.plaintext), ), }); } decrypt( _decryptParameters: DecryptParameters, - _options?: DecryptOptions + _options?: DecryptOptions, ): Promise { throw new LocalCryptographyUnsupportedError( - "Decrypting using a local JsonWebKey is not supported." + "Decrypting using a local JsonWebKey is not supported.", ); } wrapKey( algorithm: KeyWrapAlgorithm, keyToWrap: Uint8Array, - _options?: WrapKeyOptions + _options?: WrapKeyOptions, ): Promise { this.ensureValid(); const keyPEM = convertJWKtoPEM(this.key); @@ -90,30 +90,30 @@ export class RsaCryptographyProvider implements CryptographyProvider { unwrapKey( _algorithm: KeyWrapAlgorithm, _encryptedKey: Uint8Array, - _options?: UnwrapKeyOptions + _options?: UnwrapKeyOptions, ): Promise { throw new LocalCryptographyUnsupportedError( - "Unwrapping a key using a local JsonWebKey is not supported." + "Unwrapping a key using a local JsonWebKey is not supported.", ); } sign( _algorithm: SignatureAlgorithm, _digest: Uint8Array, - _options?: SignOptions + _options?: SignOptions, ): Promise { throw new LocalCryptographyUnsupportedError( - "Signing a digest using a local JsonWebKey is not supported." + "Signing a digest using a local JsonWebKey is not supported.", ); } signData( _algorithm: SignatureAlgorithm, _data: Uint8Array, - _options?: SignOptions + _options?: SignOptions, ): Promise { throw new LocalCryptographyUnsupportedError( - "Signing a block of data using a local JsonWebKey is not supported." + "Signing a block of data using a local JsonWebKey is not supported.", ); } @@ -121,10 +121,10 @@ export class RsaCryptographyProvider implements CryptographyProvider { _algorithm: SignatureAlgorithm, _digest: Uint8Array, _signature: Uint8Array, - _options?: VerifyOptions + _options?: VerifyOptions, ): Promise { throw new LocalCryptographyUnsupportedError( - "Verifying a digest using a local JsonWebKey is not supported." + "Verifying a digest using a local JsonWebKey is not supported.", ); } @@ -132,7 +132,7 @@ export class RsaCryptographyProvider implements CryptographyProvider { algorithm: SignatureAlgorithm, data: Uint8Array, signature: Uint8Array, - _options?: VerifyOptions + _options?: VerifyOptions, ): Promise { this.ensureValid(); const keyPEM = convertJWKtoPEM(this.key); diff --git a/sdk/keyvault/keyvault-keys/src/cryptographyClient.ts b/sdk/keyvault/keyvault-keys/src/cryptographyClient.ts index 6a3bd35c5ee8..bf8f3f7ce177 100644 --- a/sdk/keyvault/keyvault-keys/src/cryptographyClient.ts +++ b/sdk/keyvault/keyvault-keys/src/cryptographyClient.ts @@ -83,7 +83,7 @@ export class CryptographyClient { constructor( key: string | KeyVaultKey, credential: TokenCredential, - pipelineOptions?: CryptographyClientOptions + pipelineOptions?: CryptographyClientOptions, ); /** * Constructs a new instance of the Cryptography client for the given key in local mode. @@ -108,7 +108,7 @@ export class CryptographyClient { constructor( key: string | KeyVaultKey | JsonWebKey, credential?: TokenCredential, - pipelineOptions: CryptographyClientOptions = {} + pipelineOptions: CryptographyClientOptions = {}, ) { if (typeof key === "string") { // Key URL for remote-local operations. @@ -168,7 +168,7 @@ export class CryptographyClient { */ public encrypt( encryptParameters: EncryptParameters, - options?: EncryptOptions + options?: EncryptOptions, ): Promise; /** * Encrypts the given plaintext with the specified cryptography algorithm @@ -186,7 +186,7 @@ export class CryptographyClient { public encrypt( algorithm: EncryptionAlgorithm, plaintext: Uint8Array, - options?: EncryptOptions + options?: EncryptOptions, ): Promise; public encrypt( ...args: @@ -228,7 +228,7 @@ export class CryptographyClient { } } catch (e: any) { throw new Error( - `Unable to initialize IV for algorithm ${parameters.algorithm}. You may pass a valid IV to avoid this error. Error: ${e.message}` + `Unable to initialize IV for algorithm ${parameters.algorithm}. You may pass a valid IV to avoid this error. Error: ${e.message}`, ); } } @@ -239,7 +239,7 @@ export class CryptographyClient { * @param args - The encrypt arguments */ private disambiguateEncryptArguments( - args: [EncryptParameters, EncryptOptions?] | [string, Uint8Array, EncryptOptions?] + args: [EncryptParameters, EncryptOptions?] | [string, Uint8Array, EncryptOptions?], ): [EncryptParameters, EncryptOptions] { if (typeof args[0] === "string") { // Sample shape: ["RSA1_5", buffer, options] @@ -273,7 +273,7 @@ export class CryptographyClient { */ public async decrypt( decryptParameters: DecryptParameters, - options?: DecryptOptions + options?: DecryptOptions, ): Promise; /** * Decrypts the given ciphertext with the specified cryptography algorithm @@ -294,7 +294,7 @@ export class CryptographyClient { public decrypt( algorithm: EncryptionAlgorithm, ciphertext: Uint8Array, - options?: DecryptOptions + options?: DecryptOptions, ): Promise; public decrypt( ...args: @@ -322,7 +322,7 @@ export class CryptographyClient { * @param args - The decrypt arguments */ private disambiguateDecryptArguments( - args: [DecryptParameters, DecryptOptions?] | [string, Uint8Array, DecryptOptions?] + args: [DecryptParameters, DecryptOptions?] | [string, Uint8Array, DecryptOptions?], ): [DecryptParameters, DecryptOptions] { if (typeof args[0] === "string") { // Sample shape: ["RSA1_5", encryptedBuffer, options] @@ -354,7 +354,7 @@ export class CryptographyClient { public wrapKey( algorithm: KeyWrapAlgorithm, key: Uint8Array, - options: WrapKeyOptions = {} + options: WrapKeyOptions = {}, ): Promise { return tracingClient.withSpan("CryptographyClient.wrapKey", options, async (updatedOptions) => { this.ensureValid(await this.fetchKey(updatedOptions), KnownKeyOperations.WrapKey); @@ -385,7 +385,7 @@ export class CryptographyClient { public unwrapKey( algorithm: KeyWrapAlgorithm, encryptedKey: Uint8Array, - options: UnwrapKeyOptions = {} + options: UnwrapKeyOptions = {}, ): Promise { return tracingClient.withSpan( "CryptographyClient.unwrapKey", @@ -401,7 +401,7 @@ export class CryptographyClient { } throw err; } - } + }, ); } @@ -420,7 +420,7 @@ export class CryptographyClient { public sign( algorithm: SignatureAlgorithm, digest: Uint8Array, - options: SignOptions = {} + options: SignOptions = {}, ): Promise { return tracingClient.withSpan("CryptographyClient.sign", options, async (updatedOptions) => { this.ensureValid(await this.fetchKey(updatedOptions), KnownKeyOperations.Sign); @@ -453,7 +453,7 @@ export class CryptographyClient { algorithm: SignatureAlgorithm, digest: Uint8Array, signature: Uint8Array, - options: VerifyOptions = {} + options: VerifyOptions = {}, ): Promise { return tracingClient.withSpan("CryptographyClient.verify", options, async (updatedOptions) => { this.ensureValid(await this.fetchKey(updatedOptions), KnownKeyOperations.Verify); @@ -484,7 +484,7 @@ export class CryptographyClient { public signData( algorithm: SignatureAlgorithm, data: Uint8Array, - options: SignOptions = {} + options: SignOptions = {}, ): Promise { return tracingClient.withSpan( "CryptographyClient.signData", @@ -500,7 +500,7 @@ export class CryptographyClient { } throw err; } - } + }, ); } @@ -521,7 +521,7 @@ export class CryptographyClient { algorithm: SignatureAlgorithm, data: Uint8Array, signature: Uint8Array, - options: VerifyOptions = {} + options: VerifyOptions = {}, ): Promise { return tracingClient.withSpan( "CryptographyClient.verifyData", @@ -537,7 +537,7 @@ export class CryptographyClient { } throw err; } - } + }, ); } @@ -579,7 +579,7 @@ export class CryptographyClient { // If we don't have permission to get the key, we'll fall back to using the remote provider. // Marking the key as a remoteOnlyIdentifier will ensure that we don't attempt to fetch the key again. logger.verbose( - `Permission denied to get key ${this.key.value}. Falling back to remote operation.` + `Permission denied to get key ${this.key.value}. Falling back to remote operation.`, ); this.key = { kind: "remoteOnlyIdentifier", value: this.key.value }; } else { @@ -606,7 +606,7 @@ export class CryptographyClient { private async getProvider( operation: CryptographyProviderOperation, algorithm: string, - options: T + options: T, ): Promise { if (!this.providers) { const keyMaterial = await this.getKeyMaterial(options); @@ -616,7 +616,7 @@ export class CryptographyClient { if (keyMaterial) { this.providers.push( new RsaCryptographyProvider(keyMaterial), - new AesCryptographyProvider(keyMaterial) + new AesCryptographyProvider(keyMaterial), ); } @@ -633,7 +633,7 @@ export class CryptographyClient { throw new Error( `Unable to support operation: "${operation}" with algorithm: "${algorithm}" ${ this.key.kind === "JsonWebKey" ? "using a local JsonWebKey" : "" - }` + }`, ); } diff --git a/sdk/keyvault/keyvault-keys/src/index.ts b/sdk/keyvault/keyvault-keys/src/index.ts index 03b66baf02e4..9022e3b61c9c 100644 --- a/sdk/keyvault/keyvault-keys/src/index.ts +++ b/sdk/keyvault/keyvault-keys/src/index.ts @@ -246,7 +246,7 @@ export class KeyClient { constructor( vaultUrl: string, credential: TokenCredential, - pipelineOptions: KeyClientOptions = {} + pipelineOptions: KeyClientOptions = {}, ) { this.vaultUrl = vaultUrl; @@ -282,7 +282,7 @@ export class KeyClient { this.credential = credential; this.client = new KeyVaultClient( pipelineOptions.serviceVersion || LATEST_API_VERSION, - internalPipelineOptions + internalPipelineOptions, ); this.client.pipeline.addPolicy(authPolicy); } @@ -306,7 +306,7 @@ export class KeyClient { public createKey( name: string, keyType: KeyType, - options?: CreateKeyOptions + options?: CreateKeyOptions, ): Promise { let unflattenedOptions = {}; @@ -328,7 +328,7 @@ export class KeyClient { async (updatedOptions) => { const response = await this.client.createKey(this.vaultUrl, name, keyType, updatedOptions); return getKeyFromKeyBundle(response); - } + }, ); } @@ -409,7 +409,7 @@ export class KeyClient { public importKey( name: string, key: JsonWebKey, - options?: ImportKeyOptions + options?: ImportKeyOptions, ): Promise { let unflattenedOptions = {}; @@ -440,7 +440,7 @@ export class KeyClient { async (updatedOptions) => { const response = await this.client.importKey(this.vaultUrl, name, key, updatedOptions); return getKeyFromKeyBundle(response); - } + }, ); } @@ -459,11 +459,11 @@ export class KeyClient { */ public getCryptographyClient( keyName: string, - options?: GetCryptographyClientOptions + options?: GetCryptographyClientOptions, ): CryptographyClient { const keyUrl = new URL( ["keys", keyName, options?.keyVersion].filter(Boolean).join("/"), - this.vaultUrl + this.vaultUrl, ); // The goals of this method are discoverability and performance (by sharing a client and pipeline). @@ -476,7 +476,7 @@ export class KeyClient { const cryptoClient = new CryptographyClient( keyUrl.toString(), this.credential, - constructorOptions + constructorOptions, ); return cryptoClient; } @@ -510,7 +510,7 @@ export class KeyClient { */ public async beginDeleteKey( name: string, - options: BeginDeleteKeyOptions = {} + options: BeginDeleteKeyOptions = {}, ): Promise, DeletedKey>> { const poller = new DeleteKeyPoller({ name, @@ -547,7 +547,7 @@ export class KeyClient { public updateKeyProperties( name: string, keyVersion: string, - options?: UpdateKeyPropertiesOptions + options?: UpdateKeyPropertiesOptions, ): Promise; /** * The updateKeyProperties method changes specified properties of the latest version of an existing stored key. Properties that @@ -568,7 +568,7 @@ export class KeyClient { */ public updateKeyProperties( name: string, - options?: UpdateKeyPropertiesOptions + options?: UpdateKeyPropertiesOptions, ): Promise; public updateKeyProperties( ...args: [string, string, UpdateKeyPropertiesOptions?] | [string, UpdateKeyPropertiesOptions?] @@ -591,10 +591,10 @@ export class KeyClient { this.vaultUrl, name, keyVersion, - unflattenedOptions + unflattenedOptions, ); return getKeyFromKeyBundle(response); - } + }, ); } @@ -605,7 +605,7 @@ export class KeyClient { * @returns - The standardized arguments collection. */ private disambiguateUpdateKeyPropertiesArgs( - args: [string, string, UpdateKeyPropertiesOptions?] | [string, UpdateKeyPropertiesOptions?] + args: [string, string, UpdateKeyPropertiesOptions?] | [string, UpdateKeyPropertiesOptions?], ): [string, string, UpdateKeyPropertiesOptions] { if (typeof args[1] === "string") { // [name, keyVersion, options?] => [name, keyVersion, options || {}] @@ -635,7 +635,7 @@ export class KeyClient { this.vaultUrl, name, options && options.version ? options.version : "", - updatedOptions + updatedOptions, ); return getKeyFromKeyBundle(response); }); @@ -714,7 +714,7 @@ export class KeyClient { */ public async beginRecoverDeletedKey( name: string, - options: BeginRecoverDeletedKeyOptions = {} + options: BeginRecoverDeletedKeyOptions = {}, ): Promise, DeletedKey>> { const poller = new RecoverDeletedKeyPoller({ name, @@ -766,7 +766,7 @@ export class KeyClient { */ public async restoreKeyBackup( backup: Uint8Array, - options: RestoreKeyBackupOptions = {} + options: RestoreKeyBackupOptions = {}, ): Promise { return tracingClient.withSpan(`KeyClient.restoreKeyBackup`, options, async (updatedOptions) => { const response = await this.client.restoreKey(this.vaultUrl, backup, updatedOptions); @@ -830,7 +830,7 @@ export class KeyClient { public releaseKey( name: string, targetAttestationToken: string, - options: ReleaseKeyOptions = {} + options: ReleaseKeyOptions = {}, ): Promise { return tracingClient.withSpan("KeyClient.releaseKey", options, async (updatedOptions) => { const { nonce, algorithm, ...rest } = updatedOptions; @@ -843,7 +843,7 @@ export class KeyClient { enc: algorithm, nonce, ...rest, - } + }, ); return { value: result.value! }; @@ -866,7 +866,7 @@ export class KeyClient { */ public getKeyRotationPolicy( keyName: string, - options: GetKeyRotationPolicyOptions = {} + options: GetKeyRotationPolicyOptions = {}, ): Promise { return tracingClient.withSpan("KeyClient.getKeyRotationPolicy", options, async () => { const policy = await this.client.getKeyRotationPolicy(this.vaultUrl, keyName); @@ -891,7 +891,7 @@ export class KeyClient { public updateKeyRotationPolicy( keyName: string, policy: KeyRotationPolicyProperties, - options: UpdateKeyRotationPolicyOptions = {} + options: UpdateKeyRotationPolicyOptions = {}, ): Promise { return tracingClient.withSpan( "KeyClient.updateKeyRotationPolicy", @@ -901,10 +901,10 @@ export class KeyClient { this.vaultUrl, keyName, keyRotationTransformations.propertiesToGenerated(policy), - updatedOptions + updatedOptions, ); return keyRotationTransformations.generatedToPublic(result); - } + }, ); } @@ -917,7 +917,7 @@ export class KeyClient { private async *listPropertiesOfKeyVersionsPage( name: string, continuationState: PageSettings, - options?: ListPropertiesOfKeyVersionsOptions + options?: ListPropertiesOfKeyVersionsOptions, ): AsyncIterableIterator { if (continuationState.continuationToken == null) { const optionsComplete: GetKeysOptionalParams = { @@ -927,7 +927,7 @@ export class KeyClient { const currentSetResponse = await tracingClient.withSpan( "KeyClient.listPropertiesOfKeyVersionsPage", optionsComplete, - async (updatedOptions) => this.client.getKeyVersions(this.vaultUrl, name, updatedOptions) + async (updatedOptions) => this.client.getKeyVersions(this.vaultUrl, name, updatedOptions), ); continuationState.continuationToken = currentSetResponse.nextLink; @@ -944,8 +944,8 @@ export class KeyClient { this.vaultUrl, name, continuationState.continuationToken!, - updatedOptions - ) + updatedOptions, + ), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -963,7 +963,7 @@ export class KeyClient { */ private async *listPropertiesOfKeyVersionsAll( name: string, - options?: ListPropertiesOfKeyVersionsOptions + options?: ListPropertiesOfKeyVersionsOptions, ): AsyncIterableIterator { const f = {}; @@ -991,7 +991,7 @@ export class KeyClient { */ public listPropertiesOfKeyVersions( name: string, - options: ListPropertiesOfKeyVersionsOptions = {} + options: ListPropertiesOfKeyVersionsOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listPropertiesOfKeyVersionsAll(name, options); @@ -1014,7 +1014,7 @@ export class KeyClient { */ private async *listPropertiesOfKeysPage( continuationState: PageSettings, - options?: ListPropertiesOfKeysOptions + options?: ListPropertiesOfKeysOptions, ): AsyncIterableIterator { if (continuationState.continuationToken == null) { const optionsComplete: GetKeysOptionalParams = { @@ -1024,7 +1024,7 @@ export class KeyClient { const currentSetResponse = await tracingClient.withSpan( "KeyClient.listPropertiesOfKeysPage", optionsComplete, - async (updatedOptions) => this.client.getKeys(this.vaultUrl, updatedOptions) + async (updatedOptions) => this.client.getKeys(this.vaultUrl, updatedOptions), ); continuationState.continuationToken = currentSetResponse.nextLink; @@ -1040,8 +1040,8 @@ export class KeyClient { this.client.getKeysNext( this.vaultUrl, continuationState.continuationToken!, - updatedOptions - ) + updatedOptions, + ), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -1057,7 +1057,7 @@ export class KeyClient { * @param options - Common options for the iterative endpoints. */ private async *listPropertiesOfKeysAll( - options?: ListPropertiesOfKeysOptions + options?: ListPropertiesOfKeysOptions, ): AsyncIterableIterator { const f = {}; @@ -1084,7 +1084,7 @@ export class KeyClient { * @param options - The optional parameters. */ public listPropertiesOfKeys( - options: ListPropertiesOfKeysOptions = {} + options: ListPropertiesOfKeysOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listPropertiesOfKeysAll(options); @@ -1106,7 +1106,7 @@ export class KeyClient { */ private async *listDeletedKeysPage( continuationState: PageSettings, - options?: ListDeletedKeysOptions + options?: ListDeletedKeysOptions, ): AsyncIterableIterator { if (continuationState.continuationToken == null) { const optionsComplete: GetKeysOptionalParams = { @@ -1116,7 +1116,7 @@ export class KeyClient { const currentSetResponse = await tracingClient.withSpan( "KeyClient.listDeletedKeysPage", optionsComplete, - async (updatedOptions) => this.client.getDeletedKeys(this.vaultUrl, updatedOptions) + async (updatedOptions) => this.client.getDeletedKeys(this.vaultUrl, updatedOptions), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -1131,8 +1131,8 @@ export class KeyClient { this.client.getDeletedKeysNext( this.vaultUrl, continuationState.continuationToken!, - updatedOptions - ) + updatedOptions, + ), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { @@ -1148,7 +1148,7 @@ export class KeyClient { * @param options - Common options for the iterative endpoints. */ private async *listDeletedKeysAll( - options?: ListDeletedKeysOptions + options?: ListDeletedKeysOptions, ): AsyncIterableIterator { const f = {}; @@ -1174,7 +1174,7 @@ export class KeyClient { * @param options - The optional parameters. */ public listDeletedKeys( - options: ListDeletedKeysOptions = {} + options: ListDeletedKeysOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listDeletedKeysAll(options); diff --git a/sdk/keyvault/keyvault-keys/src/lro/delete/operation.ts b/sdk/keyvault/keyvault-keys/src/lro/delete/operation.ts index 9770b657afdd..5ad4d0f3d62b 100644 --- a/sdk/keyvault/keyvault-keys/src/lro/delete/operation.ts +++ b/sdk/keyvault/keyvault-keys/src/lro/delete/operation.ts @@ -22,7 +22,7 @@ export class DeleteKeyPollOperation extends KeyVaultKeyPollOperation< public state: DeleteKeyPollOperationState, private vaultUrl: string, private client: KeyVaultClient, - private operationOptions: OperationOptions = {} + private operationOptions: OperationOptions = {}, ) { super(state, { cancelMessage: "Canceling the deletion of a key is not supported." }); } @@ -49,7 +49,7 @@ export class DeleteKeyPollOperation extends KeyVaultKeyPollOperation< async (updatedOptions) => { const response = await this.client.getDeletedKey(this.vaultUrl, name, updatedOptions); return getKeyFromKeyBundle(response); - } + }, ); } @@ -60,7 +60,7 @@ export class DeleteKeyPollOperation extends KeyVaultKeyPollOperation< options: { abortSignal?: AbortSignalLike; fireProgress?: (state: DeleteKeyPollOperationState) => void; - } = {} + } = {}, ): Promise { const state = this.state; const { name } = state; diff --git a/sdk/keyvault/keyvault-keys/src/lro/delete/poller.ts b/sdk/keyvault/keyvault-keys/src/lro/delete/poller.ts index 92cb49ea3d53..62553981a2eb 100644 --- a/sdk/keyvault/keyvault-keys/src/lro/delete/poller.ts +++ b/sdk/keyvault/keyvault-keys/src/lro/delete/poller.ts @@ -25,7 +25,7 @@ export class DeleteKeyPoller extends KeyVaultKeyPoller extends PollOperationSta */ export abstract class KeyVaultKeyPoller< TState extends KeyVaultKeyPollOperationState, - TResult + TResult, > extends Poller { /** * Defines how much time the poller is going to wait before making a new request to the service. @@ -61,7 +61,10 @@ export interface KeyVaultKeyPollOperationOptions { export class KeyVaultKeyPollOperation implements PollOperation { private cancelMessage: string = ""; - constructor(public state: TState, options: KeyVaultKeyPollOperationOptions = {}) { + constructor( + public state: TState, + options: KeyVaultKeyPollOperationOptions = {}, + ) { if (options.cancelMessage) { this.cancelMessage = options.cancelMessage; } diff --git a/sdk/keyvault/keyvault-keys/src/lro/recover/operation.ts b/sdk/keyvault/keyvault-keys/src/lro/recover/operation.ts index 9af6baee8a94..be0993ed66ce 100644 --- a/sdk/keyvault/keyvault-keys/src/lro/recover/operation.ts +++ b/sdk/keyvault/keyvault-keys/src/lro/recover/operation.ts @@ -23,7 +23,7 @@ export class RecoverDeletedKeyPollOperation extends KeyVaultKeyPollOperation< public state: RecoverDeletedKeyPollOperationState, private vaultUrl: string, private client: KeyVaultClient, - private operationOptions: OperationOptions = {} + private operationOptions: OperationOptions = {}, ) { super(state, { cancelMessage: "Canceling the recovery of a deleted key is not supported." }); } @@ -41,10 +41,10 @@ export class RecoverDeletedKeyPollOperation extends KeyVaultKeyPollOperation< this.vaultUrl, name, updatedOptions?.version || "", - updatedOptions + updatedOptions, ); return getKeyFromKeyBundle(response); - } + }, ); } @@ -54,7 +54,7 @@ export class RecoverDeletedKeyPollOperation extends KeyVaultKeyPollOperation< */ private async recoverDeletedKey( name: string, - options: RecoverDeletedKeyOptions = {} + options: RecoverDeletedKeyOptions = {}, ): Promise { return tracingClient.withSpan( "RecoverDeletedKeyPoller.recoverDeleteKey", @@ -62,7 +62,7 @@ export class RecoverDeletedKeyPollOperation extends KeyVaultKeyPollOperation< async (updatedOptions) => { const response = await this.client.recoverDeletedKey(this.vaultUrl, name, updatedOptions); return getKeyFromKeyBundle(response); - } + }, ); } @@ -73,7 +73,7 @@ export class RecoverDeletedKeyPollOperation extends KeyVaultKeyPollOperation< options: { abortSignal?: AbortSignalLike; fireProgress?: (state: RecoverDeletedKeyPollOperationState) => void; - } = {} + } = {}, ): Promise { const state = this.state; const { name } = state; diff --git a/sdk/keyvault/keyvault-keys/src/lro/recover/poller.ts b/sdk/keyvault/keyvault-keys/src/lro/recover/poller.ts index e39c21c8d28c..c92047541baf 100644 --- a/sdk/keyvault/keyvault-keys/src/lro/recover/poller.ts +++ b/sdk/keyvault/keyvault-keys/src/lro/recover/poller.ts @@ -28,7 +28,7 @@ export class RecoverDeletedKeyPoller extends KeyVaultKeyPoller< }, vaultUrl, client, - operationOptions + operationOptions, ); super(operation); diff --git a/sdk/keyvault/keyvault-keys/src/transformations.ts b/sdk/keyvault/keyvault-keys/src/transformations.ts index 663296760c24..0de6ad328ca9 100644 --- a/sdk/keyvault/keyvault-keys/src/transformations.ts +++ b/sdk/keyvault/keyvault-keys/src/transformations.ts @@ -25,7 +25,7 @@ import { * Shapes the exposed {@link KeyVaultKey} based on either a received key bundle or deleted key bundle. */ export function getKeyFromKeyBundle( - bundle: KeyBundle | DeletedKeyBundle + bundle: KeyBundle | DeletedKeyBundle, ): KeyVaultKey | DeletedKey { const keyBundle = bundle as KeyBundle; const deletedKeyBundle = bundle as DeletedKeyBundle; @@ -142,7 +142,7 @@ function getNormalizedActionType(caseInsensitiveActionType: string): ActionType */ export const keyRotationTransformations = { propertiesToGenerated: function ( - parameters: KeyRotationPolicyProperties + parameters: KeyRotationPolicyProperties, ): Partial { const policy: GeneratedPolicy = { attributes: { diff --git a/sdk/keyvault/keyvault-keys/test/internal/aesCryptography.spec.ts b/sdk/keyvault/keyvault-keys/test/internal/aesCryptography.spec.ts index 9942c899b3d7..ef90e8c3e761 100644 --- a/sdk/keyvault/keyvault-keys/test/internal/aesCryptography.spec.ts +++ b/sdk/keyvault/keyvault-keys/test/internal/aesCryptography.spec.ts @@ -34,7 +34,7 @@ describe("AesCryptographyProvider browser tests", function () { plaintext: stringToUint8Array("foo"), iv: stringToUint8Array("foo"), }), - /not supported in the browser/ + /not supported in the browser/, ); }); }); @@ -87,7 +87,7 @@ describe("AesCryptographyProvider internal tests", function () { plaintext: stringToUint8Array(text), iv: getKey(16), }), - /Key type does not match/ + /Key type does not match/, ); await assert.isRejected( @@ -96,7 +96,7 @@ describe("AesCryptographyProvider internal tests", function () { ciphertext: stringToUint8Array(text), iv: getKey(16), }), - /Key type does not match/ + /Key type does not match/, ); }); @@ -110,7 +110,7 @@ describe("AesCryptographyProvider internal tests", function () { plaintext: stringToUint8Array(text), iv: getKey(16), }), - /Key must be at least \d+ bits/ + /Key must be at least \d+ bits/, ); await assert.isRejected( @@ -119,7 +119,7 @@ describe("AesCryptographyProvider internal tests", function () { ciphertext: stringToUint8Array(text), iv: getKey(16), }), - /Key must be at least \d+ bits/ + /Key must be at least \d+ bits/, ); }); }); @@ -162,7 +162,9 @@ describe("AesCryptographyProvider internal tests", function () { remoteProvider = new RemoteCryptographyProvider( keyVaultKey, credential, - recorder.configureClientOptions({ disableChallengeResourceVerification: !isLiveMode() }) + recorder.configureClientOptions({ + disableChallengeResourceVerification: !isLiveMode(), + }), ); const text = this.test!.title; @@ -188,7 +190,9 @@ describe("AesCryptographyProvider internal tests", function () { remoteProvider = new RemoteCryptographyProvider( keyVaultKey, credential, - recorder.configureClientOptions({ disableChallengeResourceVerification: !isLiveMode() }) + recorder.configureClientOptions({ + disableChallengeResourceVerification: !isLiveMode(), + }), ); const text = this.test!.title; diff --git a/sdk/keyvault/keyvault-keys/test/internal/crypto.spec.ts b/sdk/keyvault/keyvault-keys/test/internal/crypto.spec.ts index 709f72e3190e..be4600e3d50e 100644 --- a/sdk/keyvault/keyvault-keys/test/internal/crypto.spec.ts +++ b/sdk/keyvault/keyvault-keys/test/internal/crypto.spec.ts @@ -31,7 +31,7 @@ describe("internal crypto tests", () => { it("parses the vaultUrl", () => { const client = new CryptographyClient( "https://my.vault.azure.net/keys/keyId/v1", - tokenCredential + tokenCredential, ); assert.equal(client.vaultUrl, "https://my.vault.azure.net"); }); @@ -39,14 +39,14 @@ describe("internal crypto tests", () => { it("throws if id is invalid", () => { assert.throws( () => new CryptographyClient("foo", tokenCredential), - /not a valid Key Vault key ID/ + /not a valid Key Vault key ID/, ); }); it("allows version to be omitted", () => { const client = new CryptographyClient( "https://my.vault.azure.net/keys/keyId", - tokenCredential + tokenCredential, ); assert.equal(client.vaultUrl, "https://my.vault.azure.net"); }); @@ -72,7 +72,7 @@ describe("internal crypto tests", () => { const cryptoClient = new CryptographyClient(key, tokenCredential); await assert.isRejected( cryptoClient.encrypt("RSA1_5", stringToUint8Array("")), - `Key ${key.id} can't be used before ${notBefore.toISOString()}` + `Key ${key.id} can't be used before ${notBefore.toISOString()}`, ); }); @@ -82,7 +82,7 @@ describe("internal crypto tests", () => { const cryptoClient = new CryptographyClient(key, tokenCredential); await assert.isRejected( cryptoClient.encrypt("RSA1_5", stringToUint8Array("")), - `Key ${key.id} expired at ${expiresOn.toISOString()}` + `Key ${key.id} expired at ${expiresOn.toISOString()}`, ); }); @@ -100,7 +100,7 @@ describe("internal crypto tests", () => { key.id = "invalid_id"; assert.throws( () => new CryptographyClient(key, tokenCredential), - /not a valid Key Vault key ID/ + /not a valid Key Vault key ID/, ); }); }); @@ -118,7 +118,7 @@ describe("internal crypto tests", () => { key.keyOps = ["encrypt"]; await assert.isRejected( cryptoClient.decrypt("RSA1_5", stringToUint8Array("")), - /Operation decrypt is not supported/ + /Operation decrypt is not supported/, ); }); }); @@ -176,7 +176,7 @@ describe("internal crypto tests", () => { operationOptionsSinonMatcher({ requestOptions: { timeout: 5 }, tracingOptions: {}, - }) + }), ); }); @@ -185,7 +185,7 @@ describe("internal crypto tests", () => { await client.encrypt( { algorithm: "RSA1_5", plaintext: text }, - { requestOptions: { timeout: 5 } } + { requestOptions: { timeout: 5 } }, ); sinon.assert.calledWith( @@ -194,7 +194,7 @@ describe("internal crypto tests", () => { operationOptionsSinonMatcher({ requestOptions: { timeout: 5 }, tracingOptions: {}, - }) + }), ); }); }); @@ -210,7 +210,7 @@ describe("internal crypto tests", () => { operationOptionsSinonMatcher({ requestOptions: { timeout: 5 }, tracingOptions: {}, - }) + }), ); }); @@ -219,7 +219,7 @@ describe("internal crypto tests", () => { await client.decrypt( { algorithm: "RSA1_5", ciphertext: text }, - { requestOptions: { timeout: 5 } } + { requestOptions: { timeout: 5 } }, ); sinon.assert.calledWith( @@ -228,7 +228,7 @@ describe("internal crypto tests", () => { operationOptionsSinonMatcher({ requestOptions: { timeout: 5 }, tracingOptions: {}, - }) + }), ); }); }); @@ -243,7 +243,7 @@ describe("internal crypto tests", () => { const rsaProvider = new RsaCryptographyProvider({ kty: "AES", keyOps: ["encrypt"] }); assert.throws( () => rsaProvider.encrypt({ algorithm: "RSA1_5", plaintext: stringToUint8Array("foo") }), - "Key type does not match the algorithm RSA" + "Key type does not match the algorithm RSA", ); }); @@ -254,7 +254,7 @@ describe("internal crypto tests", () => { const rsaProvider = new RsaCryptographyProvider({ kty: "RSA", keyOps: ["encrypt"] }); assert.throws( () => rsaProvider.encrypt({ algorithm: "RSA1_5", plaintext: stringToUint8Array("foo") }), - /not supported in the browser/ + /not supported in the browser/, ); }); }); @@ -340,7 +340,7 @@ describe("internal crypto tests", () => { httpClient: { sendRequest, }, - } + }, ); await idCryptoClient.sign("RS256", new Uint8Array([1, 2, 3])); @@ -438,13 +438,13 @@ describe("internal crypto tests", () => { describe("when a local provider errors", function () { it("throws the original encrypt exception", async function () { await assert.isRejected( - cryptoClient.encrypt({ algorithm: "RSA-OAEP", plaintext: stringToUint8Array("text") }) + cryptoClient.encrypt({ algorithm: "RSA-OAEP", plaintext: stringToUint8Array("text") }), ); }); it("throws the original decrypt exception", async function () { await assert.isRejected( - cryptoClient.decrypt({ algorithm: "RSA-OAEP", ciphertext: stringToUint8Array("text") }) + cryptoClient.decrypt({ algorithm: "RSA-OAEP", ciphertext: stringToUint8Array("text") }), ); }); @@ -463,12 +463,12 @@ describe("internal crypto tests", () => { }); it("throws the original verify exception", async function () { await assert.isRejected( - cryptoClient.verify("PS256", stringToUint8Array("data"), stringToUint8Array("sig")) + cryptoClient.verify("PS256", stringToUint8Array("data"), stringToUint8Array("sig")), ); }); it("throws the original verifyData exception", async function () { await assert.isRejected( - cryptoClient.verifyData("PS256", stringToUint8Array("data"), stringToUint8Array("sig")) + cryptoClient.verifyData("PS256", stringToUint8Array("data"), stringToUint8Array("sig")), ); }); }); @@ -485,7 +485,7 @@ describe("internal crypto tests", () => { * matcher does the comparisons needed and still maintain sinon.calledWith() compatibility. */ function operationOptionsSinonMatcher( - expectedPropagatedOptions: T + expectedPropagatedOptions: T, ): ReturnType { return sinon.match((actualOptions: T) => { // check that an actual context was set up (ie, we must have diff --git a/sdk/keyvault/keyvault-keys/test/internal/recoverBackupRestore.spec.ts b/sdk/keyvault/keyvault-keys/test/internal/recoverBackupRestore.spec.ts index b9c46365aae9..e3940d10b484 100644 --- a/sdk/keyvault/keyvault-keys/test/internal/recoverBackupRestore.spec.ts +++ b/sdk/keyvault/keyvault-keys/test/internal/recoverBackupRestore.spec.ts @@ -42,7 +42,7 @@ describe("Keys client - restore keys and recover backups", () => { assert.equal( deletePoller.getResult()!.name, keyName, - "Unexpected key name in result from deletePoller.getResult()." + "Unexpected key name in result from deletePoller.getResult().", ); await deletePoller.pollUntilDone(); @@ -138,7 +138,7 @@ describe("Keys client - restore keys and recover backups", () => { assert.equal( error.message, "Backup blob contains invalid or corrupt version.", - "Unexpected error from restoreKeyBackup()" + "Unexpected error from restoreKeyBackup()", ); }); }); diff --git a/sdk/keyvault/keyvault-keys/test/internal/serviceVersionParameter.spec.ts b/sdk/keyvault/keyvault-keys/test/internal/serviceVersionParameter.spec.ts index 2dc20abd4ef6..f292f1edfc1c 100644 --- a/sdk/keyvault/keyvault-keys/test/internal/serviceVersionParameter.spec.ts +++ b/sdk/keyvault/keyvault-keys/test/internal/serviceVersionParameter.spec.ts @@ -56,7 +56,7 @@ describe("The Keys client should set the serviceVersion", () => { const calls = spy.getCalls(); assert.equal( calls[0].args[0].url, - `https://keyvaultname.vault.azure.net/keys/keyName/create?api-version=${LATEST_API_VERSION}` + `https://keyvaultname.vault.azure.net/keys/keyName/create?api-version=${LATEST_API_VERSION}`, ); }); @@ -72,7 +72,7 @@ describe("The Keys client should set the serviceVersion", () => { const lastCall = calls[calls.length - 1]; assert.equal( lastCall.args[0].url, - `https://keyvaultname.vault.azure.net/keys/keyName/create?api-version=${serviceVersion}` + `https://keyvaultname.vault.azure.net/keys/keyName/create?api-version=${serviceVersion}`, ); }); }); diff --git a/sdk/keyvault/keyvault-keys/test/internal/transformations.spec.ts b/sdk/keyvault/keyvault-keys/test/internal/transformations.spec.ts index 93d055fc5f2d..d4c8c4e569b4 100644 --- a/sdk/keyvault/keyvault-keys/test/internal/transformations.spec.ts +++ b/sdk/keyvault/keyvault-keys/test/internal/transformations.spec.ts @@ -340,7 +340,7 @@ describe("Transformations", () => { assert.deepEqualExcludingEvery( keyRotationTransformations.propertiesToGenerated(publicPolicy), expected, - ["created", "updated"] as any + ["created", "updated"] as any, ); }); }); diff --git a/sdk/keyvault/keyvault-keys/test/internal/userAgent.spec.ts b/sdk/keyvault/keyvault-keys/test/internal/userAgent.spec.ts index 20b8c855b417..3d84c95fa7e3 100644 --- a/sdk/keyvault/keyvault-keys/test/internal/userAgent.spec.ts +++ b/sdk/keyvault/keyvault-keys/test/internal/userAgent.spec.ts @@ -40,14 +40,14 @@ describe("Keys client's user agent", () => { try { // The unit-test script has this test file at: test/internal/userAgent.spec.ts const fileContents = JSON.parse( - fs.readFileSync(path.join(__dirname, "../../package.json"), { encoding: "utf-8" }) + fs.readFileSync(path.join(__dirname, "../../package.json"), { encoding: "utf-8" }), ); version = fileContents.version; } catch { // The integration-test script has this test file in a considerably different place, // Along the lines of: dist-esm/keyvault-keys/test/internal/userAgent.spec.ts const fileContents = JSON.parse( - fs.readFileSync(path.join(__dirname, "../../../../package.json"), { encoding: "utf-8" }) + fs.readFileSync(path.join(__dirname, "../../../../package.json"), { encoding: "utf-8" }), ); version = fileContents.version; } diff --git a/sdk/keyvault/keyvault-keys/test/public/crypto.hsm.spec.ts b/sdk/keyvault/keyvault-keys/test/public/crypto.hsm.spec.ts index 9fbf94cbc2c3..b2d095adb6f6 100644 --- a/sdk/keyvault/keyvault-keys/test/public/crypto.hsm.spec.ts +++ b/sdk/keyvault/keyvault-keys/test/public/crypto.hsm.spec.ts @@ -55,7 +55,7 @@ onVersions({ minVer: "7.2" }).describe( cryptoClient = new CryptographyClient( keyVaultKey.id!, credential, - recorder.configureClientOptions({ disableChallengeResourceVerification: !isLiveMode() }) + recorder.configureClientOptions({ disableChallengeResourceVerification: !isLiveMode() }), ); const text = this.test!.title; const encryptResult = await cryptoClient.encrypt({ @@ -83,7 +83,7 @@ onVersions({ minVer: "7.2" }).describe( cryptoClient = new CryptographyClient( keyVaultKey.id!, credential, - recorder.configureClientOptions({ disableChallengeResourceVerification: !isLiveMode() }) + recorder.configureClientOptions({ disableChallengeResourceVerification: !isLiveMode() }), ); const text = this.test!.title; // We are using a predictable IV to support our recorded tests; however, you should use a cryptographically secure IV or omit it and @@ -104,5 +104,5 @@ onVersions({ minVer: "7.2" }).describe( await testClient?.flushKey(keyName); }); }); - } + }, ); diff --git a/sdk/keyvault/keyvault-keys/test/public/keyClient.hsm.spec.ts b/sdk/keyvault/keyvault-keys/test/public/keyClient.hsm.spec.ts index d0e2b18138d5..b325b78397c6 100644 --- a/sdk/keyvault/keyvault-keys/test/public/keyClient.hsm.spec.ts +++ b/sdk/keyvault/keyvault-keys/test/public/keyClient.hsm.spec.ts @@ -72,7 +72,7 @@ onVersions({ minVer: "7.2" }).describe( it("supports tracing", async () => { await assert.supportsTracing( (options) => hsmClient.getRandomBytes(1, options), - ["KeyClient.getRandomBytes"] + ["KeyClient.getRandomBytes"], ); }); }); @@ -104,7 +104,7 @@ onVersions({ minVer: "7.2" }).describe( if (!isPlaybackMode()) { const client = createDefaultHttpClient(); const response = await client.sendRequest( - createPipelineRequest({ url: `${attestationUri}/generate-test-token` }) + createPipelineRequest({ url: `${attestationUri}/generate-test-token` }), ); attestation = JSON.parse(response.bodyAsText!).token; recorder.variable("attestation", attestation); @@ -116,7 +116,7 @@ onVersions({ minVer: "7.2" }).describe( it("can create an exportable key and release it", async () => { const keyName = recorder.variable( "exportkey", - `exportkey-${Math.floor(Math.random() * 100000)}` + `exportkey-${Math.floor(Math.random() * 100000)}`, ); const createdKey = await hsmClient.createKey(keyName, "RSA", { exportable: true, @@ -126,7 +126,7 @@ onVersions({ minVer: "7.2" }).describe( assert.exists(createdKey.properties.releasePolicy?.encodedPolicy); assert.isNotEmpty( - JSON.parse(uint8ArrayToString(createdKey.properties.releasePolicy!.encodedPolicy!)) + JSON.parse(uint8ArrayToString(createdKey.properties.releasePolicy!.encodedPolicy!)), ); assert.isTrue(createdKey.properties.exportable); const releaseResult = await hsmClient.releaseKey(keyName, attestation); @@ -137,7 +137,7 @@ onVersions({ minVer: "7.2" }).describe( it("can import an exportable key and release it", async () => { const keyName = recorder.variable( "importreleasekey", - `importreleasekey-${Math.floor(Math.random() * 100000)}` + `importreleasekey-${Math.floor(Math.random() * 100000)}`, ); const importedKey = await hsmClient.importKey(keyName, createRsaKey(), { @@ -147,7 +147,7 @@ onVersions({ minVer: "7.2" }).describe( assert.exists(importedKey.properties.releasePolicy?.encodedPolicy); assert.isNotEmpty( - JSON.parse(uint8ArrayToString(importedKey.properties.releasePolicy!.encodedPolicy!)) + JSON.parse(uint8ArrayToString(importedKey.properties.releasePolicy!.encodedPolicy!)), ); const releaseResult = await hsmClient.releaseKey(keyName, attestation, { version: importedKey.properties.version, @@ -161,7 +161,7 @@ onVersions({ minVer: "7.2" }).describe( it("can update a key's release policy", async () => { const keyName = recorder.variable( "exportkey", - `exportkey-${Math.floor(Math.random() * 100000)}` + `exportkey-${Math.floor(Math.random() * 100000)}`, ); const createdKey = await hsmClient.createKey(keyName, "RSA", { @@ -190,7 +190,7 @@ onVersions({ minVer: "7.2" }).describe( assert.exists(updatedKey.properties.releasePolicy?.encodedPolicy); const decodedReleasePolicy = JSON.parse( - uint8ArrayToString(updatedKey.properties.releasePolicy!.encodedPolicy!) + uint8ArrayToString(updatedKey.properties.releasePolicy!.encodedPolicy!), ); assert.equal(decodedReleasePolicy.anyOf[0].anyOf[0].equals, "false"); @@ -199,26 +199,26 @@ onVersions({ minVer: "7.2" }).describe( it("errors when key is exportable without a release policy", async () => { const keyName = recorder.variable( "exportablenopolicy", - `exportablenopolicy-${Math.floor(Math.random() * 100000)}` + `exportablenopolicy-${Math.floor(Math.random() * 100000)}`, ); await assert.isRejected( hsmClient.createRsaKey(keyName, { exportable: true }), - /exportable/i + /exportable/i, ); }); it("errors when a key has a release policy but is not exportable", async () => { const keyName = recorder.variable( "policynonexportable", - `policynonexportable-${Math.floor(Math.random() * 100000)}` + `policynonexportable-${Math.floor(Math.random() * 100000)}`, ); await assert.isRejected( hsmClient.createRsaKey(keyName, { releasePolicy: { encodedPolicy: encodedReleasePolicy }, }), - /exportable/i + /exportable/i, ); }); }); - } + }, ); diff --git a/sdk/keyvault/keyvault-keys/test/public/keyClient.spec.ts b/sdk/keyvault/keyvault-keys/test/public/keyClient.spec.ts index 0285cec7ac68..7b366f321369 100644 --- a/sdk/keyvault/keyvault-keys/test/public/keyClient.spec.ts +++ b/sdk/keyvault/keyvault-keys/test/public/keyClient.spec.ts @@ -128,7 +128,7 @@ describe("Keys client - create, read, update and delete operations", () => { assert.equal( result!.properties.notBefore!.getTime(), notBefore.getTime(), - "Unexpected notBefore value from createKey()." + "Unexpected notBefore value from createKey().", ); assert.equal(result.name, keyName, "Unexpected key name in result from createKey()."); await testClient.flushKey(keyName); @@ -146,7 +146,7 @@ describe("Keys client - create, read, update and delete operations", () => { assert.equal( result!.properties.expiresOn!.getTime(), expiresOn.getTime(), - "Unexpected expires value from createKey()." + "Unexpected expires value from createKey().", ); assert.equal(result.name, keyName, "Unexpected key name in result from createKey()."); await testClient.flushKey(keyName); @@ -192,7 +192,7 @@ describe("Keys client - create, read, update and delete operations", () => { assert.equal( result!.properties.expiresOn!.getTime(), expiresOn.getTime(), - "Unexpected expires value after attempting to update a disabled key" + "Unexpected expires value after attempting to update a disabled key", ); await testClient.flushKey(keyName); }); @@ -248,7 +248,7 @@ describe("Keys client - create, read, update and delete operations", () => { assert.equal( getResult.properties.version, version, - "Unexpected key name in result from getKey()." + "Unexpected key name in result from getKey().", ); await testClient.flushKey(keyName); }); @@ -260,14 +260,14 @@ describe("Keys client - create, read, update and delete operations", () => { assert.equal( poller.getResult()!.name, keyName, - "Unexpected key name in result from beginDeleteKey()." + "Unexpected key name in result from beginDeleteKey().", ); await poller.pollUntilDone(); let getResult = await poller.getResult(); assert.equal( getResult!.name, keyName, - "Unexpected key name in result from poller.getResult()." + "Unexpected key name in result from poller.getResult().", ); getResult = await client.getDeletedKey(keyName); assert.equal(getResult!.name, keyName, "Unexpected key name in result from getDeletedKey()."); @@ -303,7 +303,7 @@ describe("Keys client - create, read, update and delete operations", () => { it("rotateKey supports rotating a key", async () => { const keyName = recorder.variable( "keyrotate", - `keyrotate-${Math.floor(Math.random() * 1000)}` + `keyrotate-${Math.floor(Math.random() * 1000)}`, ); const key = await client.createKey(keyName, "RSA"); const rotatedKey = await client.rotateKey(keyName); @@ -320,7 +320,7 @@ describe("Keys client - create, read, update and delete operations", () => { it("updateKeyRotationPolicy supports creating a new rotation policy and fetching it", async () => { const keyName = recorder.variable( "keyrotationpolicy", - `keyrotationpolicy-${Math.floor(Math.random() * 1000)}` + `keyrotationpolicy-${Math.floor(Math.random() * 1000)}`, ); const key = await client.createKey(keyName, "RSA"); @@ -342,7 +342,7 @@ describe("Keys client - create, read, update and delete operations", () => { it("updateKeyRotationPolicy supports updating an existing policy", async () => { const keyName = recorder.variable( "keyrotationpolicy", - `keyrotationpolicy-${Math.floor(Math.random() * 1000)}` + `keyrotationpolicy-${Math.floor(Math.random() * 1000)}`, ); const key = await client.createKey(keyName, "RSA"); @@ -384,7 +384,7 @@ describe("Keys client - create, read, update and delete operations", () => { it("throws when attempting to fetch a policy of a non-existent key", async () => { const keyName = recorder.variable( "nonexistentkey", - `nonexistentkey-${Math.floor(Math.random() * 1000)}` + `nonexistentkey-${Math.floor(Math.random() * 1000)}`, ); await assert.isRejected(client.getKeyRotationPolicy(keyName)); }); @@ -392,7 +392,7 @@ describe("Keys client - create, read, update and delete operations", () => { it("supports tracing", async () => { const keyName = recorder.variable( "rotationpolicytracing", - `rotationpolicytracing-${Math.floor(Math.random() * 1000)}` + `rotationpolicytracing-${Math.floor(Math.random() * 1000)}`, ); const key = await client.createKey(keyName, "RSA"); @@ -408,11 +408,11 @@ describe("Keys client - create, read, update and delete operations", () => { }, ], }, - options + options, ); await client.getKeyRotationPolicy(key.name, options); }, - ["KeyClient.updateKeyRotationPolicy", "KeyClient.getKeyRotationPolicy"] + ["KeyClient.updateKeyRotationPolicy", "KeyClient.getKeyRotationPolicy"], ); }); } @@ -443,7 +443,7 @@ describe("Keys client - create, read, update and delete operations", () => { if (!isPlaybackMode()) { const attestationTokenClient = createDefaultHttpClient(); const response = await attestationTokenClient.sendRequest( - createPipelineRequest({ url: `${attestationUri}/generate-test-token` }) + createPipelineRequest({ url: `${attestationUri}/generate-test-token` }), ); attestation = JSON.parse(response.bodyAsText!).token; recorder.variable("attestation", attestation); @@ -455,7 +455,7 @@ describe("Keys client - create, read, update and delete operations", () => { it("can create an exportable key and release it", async () => { const keyName = recorder.variable( "exportkey", - `exportkey-${Math.floor(Math.random() * 1000)}` + `exportkey-${Math.floor(Math.random() * 1000)}`, ); const createdKey = await client.createRsaKey(keyName, { exportable: true, @@ -466,7 +466,7 @@ describe("Keys client - create, read, update and delete operations", () => { assert.exists(createdKey.properties.releasePolicy?.encodedPolicy); assert.isNotEmpty( - JSON.parse(uint8ArrayToString(createdKey.properties.releasePolicy!.encodedPolicy!)) + JSON.parse(uint8ArrayToString(createdKey.properties.releasePolicy!.encodedPolicy!)), ); assert.isTrue(createdKey.properties.exportable); const releaseResult = await client.releaseKey(keyName, attestation); @@ -477,32 +477,32 @@ describe("Keys client - create, read, update and delete operations", () => { it("errors when key is exportable without a release policy", async () => { const keyName = recorder.variable( "exportablenopolicy", - `exportablenopolicy-${Math.floor(Math.random() * 1000)}` + `exportablenopolicy-${Math.floor(Math.random() * 1000)}`, ); await assert.isRejected( client.createRsaKey(keyName, { exportable: true, hsm: true }), - /exportable/i + /exportable/i, ); }); it("errors when a key has a release policy but is not exportable", async () => { const keyName = recorder.variable( "policynonexportable", - `policynonexportable-${Math.floor(Math.random() * 1000)}` + `policynonexportable-${Math.floor(Math.random() * 1000)}`, ); await assert.isRejected( client.createRsaKey(keyName, { hsm: true, releasePolicy: { encodedPolicy: encodedReleasePolicy }, }), - /exportable/i + /exportable/i, ); }); it("errors when updating an immutable release policy", async () => { const keyName = recorder.variable( "immutablerelease", - `immutablerelease-${Math.floor(Math.random() * 1000)}` + `immutablerelease-${Math.floor(Math.random() * 1000)}`, ); const createdKey = await client.createRsaKey(keyName, { exportable: true, @@ -536,7 +536,7 @@ describe("Keys client - create, read, update and delete operations", () => { immutable: true, }, }), - /Immutable Key Release/ + /Immutable Key Release/, ); }); }); @@ -545,7 +545,7 @@ describe("Keys client - create, read, update and delete operations", () => { it("traces through the basic operations", async () => { const keyName = recorder.variable( "keyclienttracing", - `keyclienttracing-${Math.floor(Math.random() * 1000)}` + `keyclienttracing-${Math.floor(Math.random() * 1000)}`, ); await assert.supportsTracing( async (options) => { @@ -565,14 +565,14 @@ describe("Keys client - create, read, update and delete operations", () => { "KeyClient.listPropertiesOfKeysPage", "KeyClient.listPropertiesOfKeyVersionsPage", "KeyClient.updateKeyProperties", - ] + ], ); }); onVersions({ minVer: "7.3" }).it("traces through key rotation operations", async () => { const keyName = recorder.variable( "keyrotationtracing", - `keyrotationtracing-${Math.floor(Math.random() * 1000)}` + `keyrotationtracing-${Math.floor(Math.random() * 1000)}`, ); await client.createKey(keyName, "RSA"); await assert.supportsTracing( @@ -587,11 +587,11 @@ describe("Keys client - create, read, update and delete operations", () => { }, ], }, - options + options, ); await client.getKeyRotationPolicy(keyName, options); }, - ["KeyClient.updateKeyRotationPolicy", "KeyClient.getKeyRotationPolicy"] + ["KeyClient.updateKeyRotationPolicy", "KeyClient.getKeyRotationPolicy"], ); }); @@ -604,7 +604,7 @@ describe("Keys client - create, read, update and delete operations", () => { // ignore errors, as it's not worth setting up the secure key release policy for this test. } }, - ["KeyClient.releaseKey"] + ["KeyClient.releaseKey"], ); }); }); diff --git a/sdk/keyvault/keyvault-keys/test/public/list.spec.ts b/sdk/keyvault/keyvault-keys/test/public/list.spec.ts index 003ed0c32b35..dad4405e62bf 100644 --- a/sdk/keyvault/keyvault-keys/test/public/list.spec.ts +++ b/sdk/keyvault/keyvault-keys/test/public/list.spec.ts @@ -71,7 +71,7 @@ describe("Keys client - list keys in various ways", () => { assert.equal( version.name, keyName, - "Unexpected key name in result from listPropertiesOfKeyVersions()." + "Unexpected key name in result from listPropertiesOfKeyVersions().", ); totalVersions += 1; } @@ -95,7 +95,7 @@ describe("Keys client - list keys in various ways", () => { assert.equal( version.name, keyName, - "Unexpected key name in result from listPropertiesOfKeyVersions()." + "Unexpected key name in result from listPropertiesOfKeyVersions().", ); totalVersions += 1; } @@ -111,7 +111,7 @@ describe("Keys client - list keys in various ways", () => { assert.equal( version.name, keyName, - "Unexpected key name in result from listPropertiesOfKeyVersions()." + "Unexpected key name in result from listPropertiesOfKeyVersions().", ); totalVersions += 1; } @@ -126,7 +126,7 @@ describe("Keys client - list keys in various ways", () => { assert.equal( version.name, keyName, - "Unexpected key name in result from listPropertiesOfKeyVersions()." + "Unexpected key name in result from listPropertiesOfKeyVersions().", ); totalVersions += 1; } diff --git a/sdk/keyvault/keyvault-keys/test/public/node/crypto.spec.ts b/sdk/keyvault/keyvault-keys/test/public/node/crypto.spec.ts index 1b44ec43d09a..6983beb8b6e6 100644 --- a/sdk/keyvault/keyvault-keys/test/public/node/crypto.spec.ts +++ b/sdk/keyvault/keyvault-keys/test/public/node/crypto.spec.ts @@ -40,7 +40,7 @@ describe("CryptographyClient (all decrypts happen remotely)", () => { cryptoClient = new CryptographyClient( keyVaultKey, credential, - recorder.configureClientOptions({ disableChallengeResourceVerification: !isLiveMode() }) + recorder.configureClientOptions({ disableChallengeResourceVerification: !isLiveMode() }), ); }); @@ -88,7 +88,7 @@ describe("CryptographyClient (all decrypts happen remotely)", () => { algorithm: "RSA-OAEP", plaintext: stringToUint8Array(text), }, - {} + {}, ); const decryptResult = await cryptoClient.decrypt({ algorithm: "RSA-OAEP", @@ -115,13 +115,13 @@ describe("CryptographyClient (all decrypts happen remotely)", () => { it("the CryptographyClient can be created from a full KeyVaultKey object", async function (this: Context) { const customKeyName = testClient.formatName( - `${keyPrefix}-${this!.test!.title}-${keySuffix}` + `${keyPrefix}-${this!.test!.title}-${keySuffix}`, ); const customKeyVaultKey = await client.createKey(customKeyName, "RSA"); const cryptoClientFromKey = new CryptographyClient( customKeyVaultKey, credential, - recorder.configureClientOptions({ disableChallengeResourceVerification: !isLiveMode() }) + recorder.configureClientOptions({ disableChallengeResourceVerification: !isLiveMode() }), ); const text = this.test!.title; @@ -140,7 +140,7 @@ describe("CryptographyClient (all decrypts happen remotely)", () => { it("wrap and unwrap with rsa1_5", async function () { if (!isLiveMode()) { console.log( - "Wrapping and unwrapping don't cause a repeatable pattern, so these tests can only run in playback mode" + "Wrapping and unwrapping don't cause a repeatable pattern, so these tests can only run in playback mode", ); this.skip(); } @@ -155,7 +155,7 @@ describe("CryptographyClient (all decrypts happen remotely)", () => { it("wrap and unwrap with RSA-OAEP", async function (this: Context) { if (!isLiveMode()) { console.log( - "Wrapping and unwrapping don't cause a repeatable pattern, so these tests can only run in playback mode" + "Wrapping and unwrapping don't cause a repeatable pattern, so these tests can only run in playback mode", ); this.skip(); } @@ -193,23 +193,23 @@ describe("CryptographyClient (all decrypts happen remotely)", () => { async (options) => { const encryptResult = await cryptoClient.encrypt( { algorithm: "RSA1_5", plaintext: stringToUint8Array("Hello, world") }, - options + options, ); await cryptoClient.decrypt( { algorithm: "RSA1_5", ciphertext: encryptResult.result }, - options + options, ); const signResult = await cryptoClient.signData( "RS256", stringToUint8Array("Message"), - options + options, ); await cryptoClient.verifyData( "RS256", stringToUint8Array("Message"), signResult.result, - options + options, ); }, [ @@ -217,7 +217,7 @@ describe("CryptographyClient (all decrypts happen remotely)", () => { "CryptographyClient.decrypt", "CryptographyClient.signData", "CryptographyClient.verifyData", - ] + ], ); } }); @@ -246,7 +246,7 @@ describe("CryptographyClient (all decrypts happen remotely)", () => { cryptoClient = new CryptographyClient( keyVaultKey.id!, credential, - recorder.configureClientOptions({ disableChallengeResourceVerification: !isLiveMode() }) + recorder.configureClientOptions({ disableChallengeResourceVerification: !isLiveMode() }), ); }); @@ -284,7 +284,7 @@ describe("CryptographyClient (all decrypts happen remotely)", () => { it("wrap and unwrap with RSA-OAEP on a RSA-HSM key", async function (this: Context) { if (!isLiveMode()) { console.log( - "Wrapping and unwrapping don't cause a repeatable pattern, so this test can only run live" + "Wrapping and unwrapping don't cause a repeatable pattern, so this test can only run live", ); this.skip(); } @@ -298,7 +298,7 @@ describe("CryptographyClient (all decrypts happen remotely)", () => { it("wrap and unwrap with RSA1_5 on a RSA-HSM key", async function (this: Context) { if (!isLiveMode()) { console.log( - "Wrapping and unwrapping don't cause a repeatable pattern, so this test can only run live" + "Wrapping and unwrapping don't cause a repeatable pattern, so this test can only run live", ); this.skip(); } @@ -364,7 +364,7 @@ describe("CryptographyClient (all decrypts happen remotely)", () => { keyVaultKey.name, recorder.configureClientOptions({ keyVersion: keyVaultKey.properties.version, - }) + }), ); const data = Buffer.from("my message"); diff --git a/sdk/keyvault/keyvault-keys/test/public/node/localCryptography.spec.ts b/sdk/keyvault/keyvault-keys/test/public/node/localCryptography.spec.ts index 561ee876fa0f..8a4450bbb908 100644 --- a/sdk/keyvault/keyvault-keys/test/public/node/localCryptography.spec.ts +++ b/sdk/keyvault/keyvault-keys/test/public/node/localCryptography.spec.ts @@ -55,42 +55,42 @@ describe("Local cryptography public tests", () => { it("throws on encrypt", async function () { await assert.isRejected( cryptoClientFromKey.encrypt("foo", Buffer.from("bar")), - /using a local JsonWebKey/ + /using a local JsonWebKey/, ); }); it("throws on wrapKey", async function () { await assert.isRejected( cryptoClientFromKey.wrapKey("A128KW", Buffer.from("bar")), - /using a local JsonWebKey/ + /using a local JsonWebKey/, ); }); it("throws on sign", async function () { await assert.isRejected( cryptoClientFromKey.sign("RSA1_5", Buffer.from("bar")), - /using a local JsonWebKey/ + /using a local JsonWebKey/, ); }); it("throws on signData", async function () { await assert.isRejected( cryptoClientFromKey.signData("PS360", Buffer.from("bar")), - /using a local JsonWebKey/ + /using a local JsonWebKey/, ); }); it("throws on verify", async function () { await assert.isRejected( cryptoClientFromKey.verify("PS360", Buffer.from("bar"), Buffer.from("baz")), - /using a local JsonWebKey/ + /using a local JsonWebKey/, ); }); it("throws on verifyData", async function () { await assert.isRejected( cryptoClientFromKey.verifyData("PS360", Buffer.from("bar"), Buffer.from("baz")), - /using a local JsonWebKey/ + /using a local JsonWebKey/, ); }); }); @@ -99,14 +99,14 @@ describe("Local cryptography public tests", () => { it("throws on decrypt", async function () { await assert.isRejected( cryptoClientFromKey.decrypt("RSA1_5", Buffer.from("bar")), - /using a local JsonWebKey/ + /using a local JsonWebKey/, ); }); it("throws on unwrapKey", async function () { await assert.isRejected( cryptoClientFromKey.unwrapKey("RSA1_5", Buffer.from("bar")), - /using a local JsonWebKey/ + /using a local JsonWebKey/, ); }); }); @@ -205,7 +205,7 @@ describe("Local cryptography public tests", () => { const cryptoClient = new CryptographyClient( keyVaultKey.id!, credential, - recorder.configureClientOptions({ disableChallengeResourceVerification: !isLiveMode() }) + recorder.configureClientOptions({ disableChallengeResourceVerification: !isLiveMode() }), ); // Sign is not implemented yet. @@ -221,7 +221,7 @@ describe("Local cryptography public tests", () => { const verifyResult = await localCryptoClient.verifyData( localAlgorithmName, digest, - signature.result + signature.result, ); assert.ok(verifyResult); diff --git a/sdk/keyvault/keyvault-keys/test/public/utils/common.ts b/sdk/keyvault/keyvault-keys/test/public/utils/common.ts index 04934cc642e9..eebcb87f6482 100644 --- a/sdk/keyvault/keyvault-keys/test/public/utils/common.ts +++ b/sdk/keyvault/keyvault-keys/test/public/utils/common.ts @@ -27,7 +27,7 @@ export function getServiceVersion(): string { */ export function onVersions( supportedVersions: SupportedVersions, - serviceVersion?: string + serviceVersion?: string, ): TestFunctionWrapper { return supports(serviceVersion || getServiceVersion(), supportedVersions, serviceVersions); } diff --git a/sdk/keyvault/keyvault-keys/test/public/utils/crypto.ts b/sdk/keyvault/keyvault-keys/test/public/utils/crypto.ts index 48c8197045d6..ad029ba92a50 100644 --- a/sdk/keyvault/keyvault-keys/test/public/utils/crypto.ts +++ b/sdk/keyvault/keyvault-keys/test/public/utils/crypto.ts @@ -46,26 +46,26 @@ export function createRsaKey(): JsonWebKey { kty: "RSA", keyOps: ["encrypt", "decrypt", "sign", "verify", "wrapKey", "unwrapKey"], n: toBytes( - "00a0914d00234ac683b21b4c15d5bed887bdc959c2e57af54ae734e8f00720d775d275e455207e3784ceeb60a50a4655dd72a7a94d271e8ee8f7959a669ca6e775bf0e23badae991b4529d978528b4bd90521d32dd2656796ba82b6bbfc7668c8f5eeb5053747fd199319d29a8440d08f4412d527ff9311eda71825920b47b1c46b11ab3e91d7316407e89c7f340f7b85a34042ce51743b27d4718403d34c7b438af6181be05e4d11eb985d38253d7fe9bf53fc2f1b002d22d2d793fa79a504b6ab42d0492804d7071d727a06cf3a8893aa542b1503f832b296371b6707d4dc6e372f8fe67d8ded1c908fde45ce03bc086a71487fa75e43aa0e0679aa0d20efe35" + "00a0914d00234ac683b21b4c15d5bed887bdc959c2e57af54ae734e8f00720d775d275e455207e3784ceeb60a50a4655dd72a7a94d271e8ee8f7959a669ca6e775bf0e23badae991b4529d978528b4bd90521d32dd2656796ba82b6bbfc7668c8f5eeb5053747fd199319d29a8440d08f4412d527ff9311eda71825920b47b1c46b11ab3e91d7316407e89c7f340f7b85a34042ce51743b27d4718403d34c7b438af6181be05e4d11eb985d38253d7fe9bf53fc2f1b002d22d2d793fa79a504b6ab42d0492804d7071d727a06cf3a8893aa542b1503f832b296371b6707d4dc6e372f8fe67d8ded1c908fde45ce03bc086a71487fa75e43aa0e0679aa0d20efe35", ), e: toBytes("10001"), d: toBytes( - "627c7d24668148fe2252c7fa649ea8a5a9ed44d75c766cda42b29b660e99404f0e862d4561a6c95af6a83d213e0a2244b03cd28576473215073785fb067f015da19084ade9f475e08b040a9a2c7ba00253bb8125508c9df140b75161d266be347a5e0f6900fe1d8bbf78ccc25eeb37e0c9d188d6e1fc15169ba4fe12276193d77790d2326928bd60d0d01d6ead8d6ac4861abadceec95358fd6689c50a1671a4a936d2376440a41445501da4e74bfb98f823bd19c45b94eb01d98fc0d2f284507f018ebd929b8180dbe6381fdd434bffb7800aaabdd973d55f9eaf9bb88a6ea7b28c2a80231e72de1ad244826d665582c2362761019de2e9f10cb8bcc2625649" + "627c7d24668148fe2252c7fa649ea8a5a9ed44d75c766cda42b29b660e99404f0e862d4561a6c95af6a83d213e0a2244b03cd28576473215073785fb067f015da19084ade9f475e08b040a9a2c7ba00253bb8125508c9df140b75161d266be347a5e0f6900fe1d8bbf78ccc25eeb37e0c9d188d6e1fc15169ba4fe12276193d77790d2326928bd60d0d01d6ead8d6ac4861abadceec95358fd6689c50a1671a4a936d2376440a41445501da4e74bfb98f823bd19c45b94eb01d98fc0d2f284507f018ebd929b8180dbe6381fdd434bffb7800aaabdd973d55f9eaf9bb88a6ea7b28c2a80231e72de1ad244826d665582c2362761019de2e9f10cb8bcc2625649", ), p: toBytes( - "00d1deac8d68ddd2c1fd52d5999655b2cf1565260de5269e43fd2a85f39280e1708ffff0682166cb6106ee5ea5e9ffd9f98d0becc9ff2cda2febc97259215ad84b9051e563e14a051dce438bc6541a24ac4f014cf9732d36ebfc1e61a00d82cbe412090f7793cfbd4b7605be133dfc3991f7e1bed5786f337de5036fc1e2df4cf3" + "00d1deac8d68ddd2c1fd52d5999655b2cf1565260de5269e43fd2a85f39280e1708ffff0682166cb6106ee5ea5e9ffd9f98d0becc9ff2cda2febc97259215ad84b9051e563e14a051dce438bc6541a24ac4f014cf9732d36ebfc1e61a00d82cbe412090f7793cfbd4b7605be133dfc3991f7e1bed5786f337de5036fc1e2df4cf3", ), q: toBytes( - "00c3dc66b641a9b73cd833bc439cd34fc6574465ab5b7e8a92d32595a224d56d911e74624225b48c15a670282a51c40d1dad4bc2e9a3c8dab0c76f10052dfb053bc6ed42c65288a8e8bace7a8881184323f94d7db17ea6dfba651218f931a93b8f738f3d8fd3f6ba218d35b96861a0f584b0ab88ddcf446b9815f4d287d83a3237" + "00c3dc66b641a9b73cd833bc439cd34fc6574465ab5b7e8a92d32595a224d56d911e74624225b48c15a670282a51c40d1dad4bc2e9a3c8dab0c76f10052dfb053bc6ed42c65288a8e8bace7a8881184323f94d7db17ea6dfba651218f931a93b8f738f3d8fd3f6ba218d35b96861a0f584b0ab88ddcf446b9815f4d287d83a3237", ), dp: toBytes( - "00c9a159be7265cbbabc9afcc4967eb74fe58a4c4945431902d1142da599b760e03838f8cbd26b64324fea6bdc9338503f459793636e59b5361d1e6951e08ddb089e1b507be952a81fbeaf7e76890ea4f536e25505c3f648b1e88377dfc19b4c304e738dfca07211b792286a392a704d0f444c0a802539110b7f1f121c00cff0a9" + "00c9a159be7265cbbabc9afcc4967eb74fe58a4c4945431902d1142da599b760e03838f8cbd26b64324fea6bdc9338503f459793636e59b5361d1e6951e08ddb089e1b507be952a81fbeaf7e76890ea4f536e25505c3f648b1e88377dfc19b4c304e738dfca07211b792286a392a704d0f444c0a802539110b7f1f121c00cff0a9", ), dq: toBytes( - "00a0bd4c0a3d9f64436a082374b5caf2488bac1568696153a6a5e4cd85d186db31e2f58f024c617d29f37b4e6b54c97a1e25efec59c4d1fd3061ac33509ce8cae5c11f4cd2e83f41a8264f785e78dc0996076ee23dfdfc43d67c463afaa0180c4a718357f9a6f270d542479a0f213870e661fb950abca4a14ca290570ba7983347" + "00a0bd4c0a3d9f64436a082374b5caf2488bac1568696153a6a5e4cd85d186db31e2f58f024c617d29f37b4e6b54c97a1e25efec59c4d1fd3061ac33509ce8cae5c11f4cd2e83f41a8264f785e78dc0996076ee23dfdfc43d67c463afaa0180c4a718357f9a6f270d542479a0f213870e661fb950abca4a14ca290570ba7983347", ), qi: toBytes( - "009fe7ae42e92bc04fcd5780464bd21d0c8ac0c599f9af020fde6ab0a7e7d1d39902f5d8fb6c614184c4c1b103fb46e94cd10a6c8a40f9991a1f28269f326435b6c50276fda6493353c650a833f724d80c7d522ba16c79f0eb61f672736b68fb8be3243d10943c4ab7028d09e76cfb5892222e38bc4d35585bf35a88cd68c73b07" + "009fe7ae42e92bc04fcd5780464bd21d0c8ac0c599f9af020fde6ab0a7e7d1d39902f5d8fb6c614184c4c1b103fb46e94cd10a6c8a40f9991a1f28269f326435b6c50276fda6493353c650a833f724d80c7d522ba16c79f0eb61f672736b68fb8be3243d10943c4ab7028d09e76cfb5892222e38bc4d35585bf35a88cd68c73b07", ), }; } diff --git a/sdk/keyvault/keyvault-keys/test/public/utils/lro/restore/operation.ts b/sdk/keyvault/keyvault-keys/test/public/utils/lro/restore/operation.ts index a527e20a8593..8c2ab45ea793 100644 --- a/sdk/keyvault/keyvault-keys/test/public/utils/lro/restore/operation.ts +++ b/sdk/keyvault/keyvault-keys/test/public/utils/lro/restore/operation.ts @@ -22,7 +22,7 @@ export interface TestKeyClientInterface { */ restoreKeyBackup( backup: Uint8Array, - options?: BeginRestoreKeyBackupOptions + options?: BeginRestoreKeyBackupOptions, ): Promise; } @@ -59,7 +59,7 @@ async function update( options: { abortSignal?: AbortSignalLike; fireProgress?: (state: RestoreKeyBackupPollOperationState) => void; - } = {} + } = {}, ): Promise { const state = this.state; const { backup, client, requestOptions = {} } = state; @@ -103,7 +103,7 @@ function toString(this: RestoreKeyBackupPollOperation): string { * @param state - A poll operation's state, in case the new one is intended to follow up where the previous one was left. */ export function makeRestoreKeyBackupPollOperation( - state: RestoreKeyBackupPollOperationState + state: RestoreKeyBackupPollOperationState, ): RestoreKeyBackupPollOperation { return { state: { diff --git a/sdk/keyvault/keyvault-keys/test/public/utils/testAuthentication.ts b/sdk/keyvault/keyvault-keys/test/public/utils/testAuthentication.ts index 654a5799adc6..3e25448f4b78 100644 --- a/sdk/keyvault/keyvault-keys/test/public/utils/testAuthentication.ts +++ b/sdk/keyvault/keyvault-keys/test/public/utils/testAuthentication.ts @@ -61,7 +61,7 @@ export async function authenticate(version: string, recorder: Recorder): Promise recorder.configureClientOptions({ serviceVersion: version, disableChallengeResourceVerification: !isLiveMode(), - }) + }), ); const testClient = new TestClient(client); @@ -72,7 +72,7 @@ export async function authenticate(version: string, recorder: Recorder): Promise credential, recorder.configureClientOptions({ disableChallengeResourceVerification: !isLiveMode(), - }) + }), ); } diff --git a/sdk/keyvault/keyvault-secrets/package.json b/sdk/keyvault/keyvault-secrets/package.json index ba53704a2be5..1b351f161087 100644 --- a/sdk/keyvault/keyvault-secrets/package.json +++ b/sdk/keyvault/keyvault-secrets/package.json @@ -45,11 +45,11 @@ "build:browser": "tsc -p . && dev-tool run bundle", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && npm run build:nodebrowser && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log dist-browser statistics.html coverage && rimraf src/**/*.js && rimraf test/**/*.js", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 350000 'dist-esm/**/*.spec.js'", @@ -138,7 +138,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.0", "sinon": "^17.0.0", diff --git a/sdk/keyvault/keyvault-secrets/samples-dev/helloWorld.ts b/sdk/keyvault/keyvault-secrets/samples-dev/helloWorld.ts index 9f040d9fcd67..9f34d63af33a 100644 --- a/sdk/keyvault/keyvault-secrets/samples-dev/helloWorld.ts +++ b/sdk/keyvault/keyvault-secrets/samples-dev/helloWorld.ts @@ -41,7 +41,7 @@ export async function main(): Promise { result.properties.version!, { enabled: false, - } + }, ); console.log("updated secret: ", updatedSecret); diff --git a/sdk/keyvault/keyvault-secrets/samples-dev/listOperations.ts b/sdk/keyvault/keyvault-secrets/samples-dev/listOperations.ts index 0fd77c135ed8..18f92847b06c 100644 --- a/sdk/keyvault/keyvault-secrets/samples-dev/listOperations.ts +++ b/sdk/keyvault/keyvault-secrets/samples-dev/listOperations.ts @@ -54,7 +54,7 @@ export async function main(): Promise { // List the versions of BankAccountPassword for await (const secretProperties of client.listPropertiesOfSecretVersions( - bankAccountSecretName + bankAccountSecretName, )) { if (secretProperties.enabled) { const secret = await client.getSecret(secretProperties.name); diff --git a/sdk/keyvault/keyvault-secrets/src/index.ts b/sdk/keyvault/keyvault-secrets/src/index.ts index 3332b281f1a6..4fe9a222264f 100644 --- a/sdk/keyvault/keyvault-secrets/src/index.ts +++ b/sdk/keyvault/keyvault-secrets/src/index.ts @@ -116,7 +116,7 @@ export class SecretClient { constructor( vaultUrl: string, credential: TokenCredential, - pipelineOptions: SecretClientOptions = {} + pipelineOptions: SecretClientOptions = {}, ) { this.vaultUrl = vaultUrl; @@ -140,7 +140,7 @@ export class SecretClient { this.client = new KeyVaultClient( pipelineOptions.serviceVersion || LATEST_API_VERSION, - internalPipelineOptions + internalPipelineOptions, ); this.client.pipeline.addPolicy(authPolicy); } @@ -163,7 +163,7 @@ export class SecretClient { public setSecret( secretName: string, value: string, - options: SetSecretOptions = {} + options: SetSecretOptions = {}, ): Promise { let unflattenedOptions = {}; @@ -186,10 +186,10 @@ export class SecretClient { this.vaultUrl, secretName, value, - updatedOptions + updatedOptions, ); return getSecretFromSecretBundle(response); - } + }, ); } @@ -222,7 +222,7 @@ export class SecretClient { */ public async beginDeleteSecret( name: string, - options: BeginDeleteSecretOptions = {} + options: BeginDeleteSecretOptions = {}, ): Promise, DeletedSecret>> { const poller = new DeleteSecretPoller({ name, @@ -256,7 +256,7 @@ export class SecretClient { public async updateSecretProperties( secretName: string, secretVersion: string, - options: UpdateSecretPropertiesOptions = {} + options: UpdateSecretPropertiesOptions = {}, ): Promise { let unflattenedOptions = {}; if (options) { @@ -279,10 +279,10 @@ export class SecretClient { this.vaultUrl, secretName, secretVersion, - updatedOptions + updatedOptions, ); return getSecretFromSecretBundle(response).properties; - } + }, ); } @@ -305,7 +305,7 @@ export class SecretClient { this.vaultUrl, secretName, options && options.version ? options.version : "", - updatedOptions + updatedOptions, ); return getSecretFromSecretBundle(response); }); @@ -326,7 +326,7 @@ export class SecretClient { */ public getDeletedSecret( secretName: string, - options: GetDeletedSecretOptions = {} + options: GetDeletedSecretOptions = {}, ): Promise { return tracingClient.withSpan( "SecretClient.getDeletedSecret", @@ -335,10 +335,10 @@ export class SecretClient { const response = await this.client.getDeletedSecret( this.vaultUrl, secretName, - updatedOptions + updatedOptions, ); return getSecretFromSecretBundle(response); - } + }, ); } @@ -360,14 +360,14 @@ export class SecretClient { */ public purgeDeletedSecret( secretName: string, - options: PurgeDeletedSecretOptions = {} + options: PurgeDeletedSecretOptions = {}, ): Promise { return tracingClient.withSpan( "SecretClient.purgeDeletedSecret", options, async (updatedOptions) => { await this.client.purgeDeletedSecret(this.vaultUrl, secretName, updatedOptions); - } + }, ); } @@ -403,7 +403,7 @@ export class SecretClient { */ public async beginRecoverDeletedSecret( name: string, - options: BeginRecoverDeletedSecretOptions = {} + options: BeginRecoverDeletedSecretOptions = {}, ): Promise, SecretProperties>> { const poller = new RecoverDeletedSecretPoller({ name, @@ -433,7 +433,7 @@ export class SecretClient { */ public backupSecret( secretName: string, - options: BackupSecretOptions = {} + options: BackupSecretOptions = {}, ): Promise { return tracingClient.withSpan("SecretClient.backupSecret", options, async (updatedOptions) => { const response = await this.client.backupSecret(this.vaultUrl, secretName, updatedOptions); @@ -459,7 +459,7 @@ export class SecretClient { */ public restoreSecretBackup( secretBundleBackup: Uint8Array, - options: RestoreSecretBackupOptions = {} + options: RestoreSecretBackupOptions = {}, ): Promise { return tracingClient.withSpan( "SecretClient.restoreSecretBackup", @@ -468,10 +468,10 @@ export class SecretClient { const response = await this.client.restoreSecret( this.vaultUrl, secretBundleBackup, - updatedOptions + updatedOptions, ); return getSecretFromSecretBundle(response).properties; - } + }, ); } @@ -484,7 +484,7 @@ export class SecretClient { private async *listPropertiesOfSecretVersionsPage( secretName: string, continuationState: PageSettings, - options: ListPropertiesOfSecretVersionsOptions = {} + options: ListPropertiesOfSecretVersionsOptions = {}, ): AsyncIterableIterator { if (continuationState.continuationToken == null) { const optionsComplete: GetSecretsOptionalParams = { @@ -494,13 +494,14 @@ export class SecretClient { const currentSetResponse = await tracingClient.withSpan( "SecretClient.listPropertiesOfSecretVersionsPage", optionsComplete, - (updatedOptions) => this.client.getSecretVersions(this.vaultUrl, secretName, updatedOptions) + (updatedOptions) => + this.client.getSecretVersions(this.vaultUrl, secretName, updatedOptions), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { yield currentSetResponse.value.map( (bundle: SecretBundle | DeletedSecretBundle) => - getSecretFromSecretBundle(bundle).properties + getSecretFromSecretBundle(bundle).properties, ); } } @@ -513,14 +514,14 @@ export class SecretClient { this.vaultUrl, secretName, continuationState.continuationToken!, - updatedOptions - ) + updatedOptions, + ), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { yield currentSetResponse.value.map( (bundle: SecretBundle | DeletedSecretBundle) => - getSecretFromSecretBundle(bundle).properties + getSecretFromSecretBundle(bundle).properties, ); } else { break; @@ -535,7 +536,7 @@ export class SecretClient { */ private async *listPropertiesOfSecretVersionsAll( secretName: string, - options: ListPropertiesOfSecretVersionsOptions = {} + options: ListPropertiesOfSecretVersionsOptions = {}, ): AsyncIterableIterator { const f = {}; @@ -563,7 +564,7 @@ export class SecretClient { */ public listPropertiesOfSecretVersions( secretName: string, - options: ListPropertiesOfSecretVersionsOptions = {} + options: ListPropertiesOfSecretVersionsOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listPropertiesOfSecretVersionsAll(secretName, options); @@ -586,7 +587,7 @@ export class SecretClient { */ private async *listPropertiesOfSecretsPage( continuationState: PageSettings, - options: ListPropertiesOfSecretsOptions = {} + options: ListPropertiesOfSecretsOptions = {}, ): AsyncIterableIterator { if (continuationState.continuationToken == null) { const optionsComplete: GetSecretsOptionalParams = { @@ -596,13 +597,13 @@ export class SecretClient { const currentSetResponse = await tracingClient.withSpan( "SecretClient.listPropertiesOfSecretsPage", optionsComplete, - (updatedOptions) => this.client.getSecrets(this.vaultUrl, updatedOptions) + (updatedOptions) => this.client.getSecrets(this.vaultUrl, updatedOptions), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { yield currentSetResponse.value.map( (bundle: SecretBundle | DeletedSecretBundle) => - getSecretFromSecretBundle(bundle).properties + getSecretFromSecretBundle(bundle).properties, ); } } @@ -614,14 +615,14 @@ export class SecretClient { this.client.getSecretsNext( this.vaultUrl, continuationState.continuationToken!, - updatedOptions - ) + updatedOptions, + ), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { yield currentSetResponse.value.map( (bundle: SecretBundle | DeletedSecretBundle) => - getSecretFromSecretBundle(bundle).properties + getSecretFromSecretBundle(bundle).properties, ); } else { break; @@ -634,7 +635,7 @@ export class SecretClient { * @param options - Optional parameters for the underlying HTTP request. */ private async *listPropertiesOfSecretsAll( - options: ListPropertiesOfSecretsOptions = {} + options: ListPropertiesOfSecretsOptions = {}, ): AsyncIterableIterator { const f = {}; @@ -661,7 +662,7 @@ export class SecretClient { * @param options - The optional parameters. */ public listPropertiesOfSecrets( - options: ListPropertiesOfSecretsOptions = {} + options: ListPropertiesOfSecretsOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listPropertiesOfSecretsAll(options); @@ -683,7 +684,7 @@ export class SecretClient { */ private async *listDeletedSecretsPage( continuationState: PageSettings, - options: ListDeletedSecretsOptions = {} + options: ListDeletedSecretsOptions = {}, ): AsyncIterableIterator { if (continuationState.continuationToken == null) { const optionsComplete: GetSecretsOptionalParams = { @@ -693,12 +694,12 @@ export class SecretClient { const currentSetResponse = await tracingClient.withSpan( "SecretClient.listDeletedSecretsPage", optionsComplete, - (updatedOptions) => this.client.getDeletedSecrets(this.vaultUrl, updatedOptions) + (updatedOptions) => this.client.getDeletedSecrets(this.vaultUrl, updatedOptions), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { yield currentSetResponse.value.map((bundle: SecretBundle | DeletedSecretBundle) => - getSecretFromSecretBundle(bundle) + getSecretFromSecretBundle(bundle), ); } } @@ -710,13 +711,13 @@ export class SecretClient { this.client.getDeletedSecretsNext( this.vaultUrl, continuationState.continuationToken!, - updatedOptions - ) + updatedOptions, + ), ); continuationState.continuationToken = currentSetResponse.nextLink; if (currentSetResponse.value) { yield currentSetResponse.value.map((bundle: SecretBundle | DeletedSecretBundle) => - getSecretFromSecretBundle(bundle) + getSecretFromSecretBundle(bundle), ); } else { break; @@ -729,7 +730,7 @@ export class SecretClient { * @param options - Optional parameters for the underlying HTTP request. */ private async *listDeletedSecretsAll( - options: ListDeletedSecretsOptions = {} + options: ListDeletedSecretsOptions = {}, ): AsyncIterableIterator { const f = {}; @@ -755,7 +756,7 @@ export class SecretClient { * @param options - The optional parameters. */ public listDeletedSecrets( - options: ListDeletedSecretsOptions = {} + options: ListDeletedSecretsOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listDeletedSecretsAll(options); diff --git a/sdk/keyvault/keyvault-secrets/src/lro/delete/operation.ts b/sdk/keyvault/keyvault-secrets/src/lro/delete/operation.ts index eaa3ad67fe1f..1e4c2e26c5bc 100644 --- a/sdk/keyvault/keyvault-secrets/src/lro/delete/operation.ts +++ b/sdk/keyvault/keyvault-secrets/src/lro/delete/operation.ts @@ -29,7 +29,7 @@ export class DeleteSecretPollOperation extends KeyVaultSecretPollOperation< public state: DeleteSecretPollOperationState, private vaultUrl: string, private client: KeyVaultClient, - private operationOptions: OperationOptions = {} + private operationOptions: OperationOptions = {}, ) { super(state, { cancelMessage: "Canceling the deletion of a secret is not supported." }); } @@ -45,7 +45,7 @@ export class DeleteSecretPollOperation extends KeyVaultSecretPollOperation< async (updatedOptions) => { const response = await this.client.deleteSecret(this.vaultUrl, name, updatedOptions); return getSecretFromSecretBundle(response); - } + }, ); } @@ -55,7 +55,7 @@ export class DeleteSecretPollOperation extends KeyVaultSecretPollOperation< */ private getDeletedSecret( name: string, - options: GetDeletedSecretOptions = {} + options: GetDeletedSecretOptions = {}, ): Promise { return tracingClient.withSpan( "DeleteSecretPoller.getDeletedSecret", @@ -63,7 +63,7 @@ export class DeleteSecretPollOperation extends KeyVaultSecretPollOperation< async (updatedOptions) => { const response = await this.client.getDeletedSecret(this.vaultUrl, name, updatedOptions); return getSecretFromSecretBundle(response); - } + }, ); } @@ -74,7 +74,7 @@ export class DeleteSecretPollOperation extends KeyVaultSecretPollOperation< options: { abortSignal?: AbortSignalLike; fireProgress?: (state: DeleteSecretPollOperationState) => void; - } = {} + } = {}, ): Promise { const state = this.state; const { name } = state; diff --git a/sdk/keyvault/keyvault-secrets/src/lro/delete/poller.ts b/sdk/keyvault/keyvault-secrets/src/lro/delete/poller.ts index 169cf264d7b2..6ea14c87d3fc 100644 --- a/sdk/keyvault/keyvault-secrets/src/lro/delete/poller.ts +++ b/sdk/keyvault/keyvault-secrets/src/lro/delete/poller.ts @@ -28,7 +28,7 @@ export class DeleteSecretPoller extends KeyVaultSecretPoller< }, vaultUrl, client, - operationOptions + operationOptions, ); super(operation); diff --git a/sdk/keyvault/keyvault-secrets/src/lro/keyVaultSecretPoller.ts b/sdk/keyvault/keyvault-secrets/src/lro/keyVaultSecretPoller.ts index 0af092156180..fd479b3796b1 100644 --- a/sdk/keyvault/keyvault-secrets/src/lro/keyVaultSecretPoller.ts +++ b/sdk/keyvault/keyvault-secrets/src/lro/keyVaultSecretPoller.ts @@ -33,7 +33,7 @@ export interface KeyVaultSecretPollOperationState extends PollOperation */ export abstract class KeyVaultSecretPoller< TState extends KeyVaultSecretPollOperationState, - TResult + TResult, > extends Poller { /** * Defines how much time the poller is going to wait before making a new request to the service. @@ -61,12 +61,15 @@ export interface KeyVaultSecretPollOperationOptions { // eslint-disable-next-next no-use-before-define export class KeyVaultSecretPollOperation< TState extends KeyVaultSecretPollOperationState, - TResult + TResult, > implements PollOperation { private cancelMessage: string = ""; - constructor(public state: TState, options: KeyVaultSecretPollOperationOptions = {}) { + constructor( + public state: TState, + options: KeyVaultSecretPollOperationOptions = {}, + ) { if (options.cancelMessage) { this.cancelMessage = options.cancelMessage; } diff --git a/sdk/keyvault/keyvault-secrets/src/lro/recover/operation.ts b/sdk/keyvault/keyvault-secrets/src/lro/recover/operation.ts index b3eb6ba2704f..7251a57b3a4e 100644 --- a/sdk/keyvault/keyvault-secrets/src/lro/recover/operation.ts +++ b/sdk/keyvault/keyvault-secrets/src/lro/recover/operation.ts @@ -34,7 +34,7 @@ export class RecoverDeletedSecretPollOperation extends KeyVaultSecretPollOperati public state: RecoverDeletedSecretPollOperationState, private vaultUrl: string, private client: KeyVaultClient, - private options: OperationOptions = {} + private options: OperationOptions = {}, ) { super(state, { cancelMessage: "Canceling the recovery of a deleted secret is not supported." }); } @@ -52,10 +52,10 @@ export class RecoverDeletedSecretPollOperation extends KeyVaultSecretPollOperati this.vaultUrl, name, options && options.version ? options.version : "", - updatedOptions + updatedOptions, ); return getSecretFromSecretBundle(response); - } + }, ); } @@ -65,7 +65,7 @@ export class RecoverDeletedSecretPollOperation extends KeyVaultSecretPollOperati */ private recoverDeletedSecret( name: string, - options: GetSecretOptions = {} + options: GetSecretOptions = {}, ): Promise { return tracingClient.withSpan( "RecoverDeletedSecretPoller.recoverDeletedSecret", @@ -74,10 +74,10 @@ export class RecoverDeletedSecretPollOperation extends KeyVaultSecretPollOperati const response = await this.client.recoverDeletedSecret( this.vaultUrl, name, - updatedOptions + updatedOptions, ); return getSecretFromSecretBundle(response); - } + }, ); } @@ -89,7 +89,7 @@ export class RecoverDeletedSecretPollOperation extends KeyVaultSecretPollOperati options: { abortSignal?: AbortSignalLike; fireProgress?: (state: RecoverDeletedSecretPollOperationState) => void; - } = {} + } = {}, ): Promise { const state = this.state; const { name } = state; diff --git a/sdk/keyvault/keyvault-secrets/src/lro/recover/poller.ts b/sdk/keyvault/keyvault-secrets/src/lro/recover/poller.ts index fad3d235e884..88e1aa369e29 100644 --- a/sdk/keyvault/keyvault-secrets/src/lro/recover/poller.ts +++ b/sdk/keyvault/keyvault-secrets/src/lro/recover/poller.ts @@ -31,7 +31,7 @@ export class RecoverDeletedSecretPoller extends KeyVaultSecretPoller< }, vaultUrl, client, - operationOptions + operationOptions, ); super(operation); diff --git a/sdk/keyvault/keyvault-secrets/src/transformations.ts b/sdk/keyvault/keyvault-secrets/src/transformations.ts index fec80a174812..b6a24c247031 100644 --- a/sdk/keyvault/keyvault-secrets/src/transformations.ts +++ b/sdk/keyvault/keyvault-secrets/src/transformations.ts @@ -10,7 +10,7 @@ import { DeletedSecret, KeyVaultSecret } from "./secretsModels"; * Shapes the exposed {@link KeyVaultKey} based on either a received secret bundle or deleted secret bundle. */ export function getSecretFromSecretBundle( - bundle: SecretBundle | DeletedSecretBundle + bundle: SecretBundle | DeletedSecretBundle, ): KeyVaultSecret { const secretBundle = bundle as SecretBundle; const deletedSecretBundle = bundle as DeletedSecretBundle; diff --git a/sdk/keyvault/keyvault-secrets/test/internal/serviceVersionParameter.spec.ts b/sdk/keyvault/keyvault-secrets/test/internal/serviceVersionParameter.spec.ts index 7d4391a969e0..675b261c973a 100644 --- a/sdk/keyvault/keyvault-secrets/test/internal/serviceVersionParameter.spec.ts +++ b/sdk/keyvault/keyvault-secrets/test/internal/serviceVersionParameter.spec.ts @@ -53,7 +53,7 @@ describe("The Secrets client should set the serviceVersion", () => { const calls = spy.getCalls(); assert.equal( calls[0].args[0].url, - `https://keyvaultname.vault.azure.net/secrets/secretName?api-version=${LATEST_API_VERSION}` + `https://keyvaultname.vault.azure.net/secrets/secretName?api-version=${LATEST_API_VERSION}`, ); }); @@ -73,7 +73,7 @@ describe("The Secrets client should set the serviceVersion", () => { const lastCall = calls[calls.length - 1]; assert.equal( lastCall.args[0].url, - `https://keyvaultname.vault.azure.net/secrets/secretName?api-version=${serviceVersion}` + `https://keyvaultname.vault.azure.net/secrets/secretName?api-version=${serviceVersion}`, ); } }); diff --git a/sdk/keyvault/keyvault-secrets/test/internal/userAgent.spec.ts b/sdk/keyvault/keyvault-secrets/test/internal/userAgent.spec.ts index 2f850caa43b2..1d6d850e87ea 100644 --- a/sdk/keyvault/keyvault-secrets/test/internal/userAgent.spec.ts +++ b/sdk/keyvault/keyvault-secrets/test/internal/userAgent.spec.ts @@ -39,14 +39,14 @@ describe("Secrets client's user agent (only in Node, because of fs)", () => { try { // The unit-test script has this test file at: test/internal/userAgent.spec.ts const fileContents = JSON.parse( - fs.readFileSync(path.join(__dirname, "../../package.json"), { encoding: "utf-8" }) + fs.readFileSync(path.join(__dirname, "../../package.json"), { encoding: "utf-8" }), ); version = fileContents.version; } catch { // The integration-test script has this test file in a considerably different place, // Along the lines of: dist-esm/keyvault-keys/test/internal/userAgent.spec.ts const fileContents = JSON.parse( - fs.readFileSync(path.join(__dirname, "../../../../package.json"), { encoding: "utf-8" }) + fs.readFileSync(path.join(__dirname, "../../../../package.json"), { encoding: "utf-8" }), ); version = fileContents.version; } diff --git a/sdk/keyvault/keyvault-secrets/test/public/CRUD.spec.ts b/sdk/keyvault/keyvault-secrets/test/public/CRUD.spec.ts index edd15be2db4d..7cfa9485d346 100644 --- a/sdk/keyvault/keyvault-secrets/test/public/CRUD.spec.ts +++ b/sdk/keyvault/keyvault-secrets/test/public/CRUD.spec.ts @@ -36,7 +36,7 @@ describe("Secret client - create, read, update and delete operations", () => { it("can add a secret", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); const result = await client.setSecret(secretName, secretValue); assert.equal(result.name, secretName, "Unexpected secret name in result from setSecret()."); @@ -47,7 +47,7 @@ describe("Secret client - create, read, update and delete operations", () => { // This is a bug related to the browser features of the recorder. it("can abort adding a secret", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); const controller = new AbortController(); controller.abort(); @@ -70,7 +70,7 @@ describe("Secret client - create, read, update and delete operations", () => { it("can set a secret with Empty Value", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); const emptySecretValue = ""; const result = await client.setSecret(secretName, emptySecretValue); @@ -78,13 +78,13 @@ describe("Secret client - create, read, update and delete operations", () => { assert.equal( result.value, emptySecretValue, - "Unexpected secret value in result from setSecret()." + "Unexpected secret value in result from setSecret().", ); }); it("can set a secret with attributes", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); const expiryDate = new Date("3000-01-01"); expiryDate.setMilliseconds(0); @@ -93,13 +93,13 @@ describe("Secret client - create, read, update and delete operations", () => { assert.equal( expiryDate.getDate(), updated!.properties.expiresOn!.getDate(), - "Expect attribute 'expiresOn' to be defined." + "Expect attribute 'expiresOn' to be defined.", ); }); it("can update a secret", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); const expiryDate = new Date("3000-01-01"); expiryDate.setMilliseconds(0); @@ -113,13 +113,13 @@ describe("Secret client - create, read, update and delete operations", () => { assert.equal( updated!.properties.expiresOn!.getDate(), expiryDate.getDate(), - "Expect attribute 'expiresOn' to be updated." + "Expect attribute 'expiresOn' to be updated.", ); }); it("can update a disabled secret", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); const expiryDate = new Date("3000-01-01"); expiryDate.setMilliseconds(0); @@ -133,13 +133,13 @@ describe("Secret client - create, read, update and delete operations", () => { assert.equal( updatedProperties!.expiresOn!.getDate(), expiryDate.getDate(), - "Expect attribute 'expiresOn' to be updated." + "Expect attribute 'expiresOn' to be updated.", ); }); it("can get a secret", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); await client.setSecret(secretName, secretValue); const result = await client.getSecret(secretName); @@ -149,7 +149,7 @@ describe("Secret client - create, read, update and delete operations", () => { it("can't get a disabled secret", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); const expiryDate = new Date("3000-01-01"); expiryDate.setMilliseconds(0); @@ -162,7 +162,7 @@ describe("Secret client - create, read, update and delete operations", () => { it("can retrieve the latest version of a secret value", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); await client.setSecret(secretName, secretValue); @@ -174,7 +174,7 @@ describe("Secret client - create, read, update and delete operations", () => { it("can get a secret (Non Existing)", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); let error; try { @@ -189,7 +189,7 @@ describe("Secret client - create, read, update and delete operations", () => { it("can delete a secret", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); await client.setSecret(secretName, secretValue); const deletePoller = await client.beginDeleteSecret(secretName, testPollerProperties); @@ -226,7 +226,7 @@ describe("Secret client - create, read, update and delete operations", () => { it("can delete a secret (Non Existing)", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); let error; try { @@ -241,7 +241,7 @@ describe("Secret client - create, read, update and delete operations", () => { it("can get a deleted secret", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); await client.setSecret(secretName, "RSA"); const deletePoller = await client.beginDeleteSecret(secretName, testPollerProperties); @@ -250,7 +250,7 @@ describe("Secret client - create, read, update and delete operations", () => { assert.equal( deletedSecret!.name, secretName, - "Unexpected secret name in result from getSecret()." + "Unexpected secret name in result from getSecret().", ); await deletePoller.pollUntilDone(); @@ -258,7 +258,7 @@ describe("Secret client - create, read, update and delete operations", () => { assert.equal( deletedSecret!.name, secretName, - "Unexpected secret name in result from getSecret()." + "Unexpected secret name in result from getSecret().", ); const getResult = await client.getDeletedSecret(secretName); @@ -267,7 +267,7 @@ describe("Secret client - create, read, update and delete operations", () => { it("can get a deleted secret (Non Existing)", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); let error; try { @@ -284,7 +284,7 @@ describe("Secret client - create, read, update and delete operations", () => { it("traces through the various operations", async () => { const secretName = recorder.variable( "secrettrace", - `secrettrace${Math.floor(Math.random() * 1000)}` + `secrettrace${Math.floor(Math.random() * 1000)}`, ); await assert.supportsTracing( @@ -308,7 +308,7 @@ describe("Secret client - create, read, update and delete operations", () => { "DeleteSecretPoller.deleteSecret", "DeleteSecretPoller.getDeletedSecret", "SecretClient.purgeDeletedSecret", - ] + ], ); }); }); diff --git a/sdk/keyvault/keyvault-secrets/test/public/list.spec.ts b/sdk/keyvault/keyvault-secrets/test/public/list.spec.ts index 7e3111d43dcc..0bc2aa6a661d 100644 --- a/sdk/keyvault/keyvault-secrets/test/public/list.spec.ts +++ b/sdk/keyvault/keyvault-secrets/test/public/list.spec.ts @@ -59,7 +59,7 @@ describe("Secret client - list secrets in various ways", () => { it("can list secret properties", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); const secretNames = [`${secretName}0`, `${secretName}1`]; for (const name of secretNames) { @@ -78,7 +78,7 @@ describe("Secret client - list secrets in various ways", () => { it("can list deleted secrets", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); const secretNames = [`${secretName}0`, `${secretName}1`]; for (const name of secretNames) { @@ -105,7 +105,7 @@ describe("Secret client - list secrets in various ways", () => { } const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); const secretValues = [`${secretValue}0`, `${secretValue}1`, `${secretValue}2`]; interface VersionValuePair { @@ -135,14 +135,14 @@ describe("Secret client - list secrets in various ways", () => { it("can list secret versions (non existing)", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); let totalVersions = 0; for await (const secretProperties of client.listPropertiesOfSecretVersions(secretName)) { assert.equal( secretProperties.name, secretName, - "Unexpected key name in result from listKeyVersions()." + "Unexpected key name in result from listKeyVersions().", ); totalVersions += 1; } @@ -151,7 +151,7 @@ describe("Secret client - list secrets in various ways", () => { it("can list secrets by page", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); const secretNames = [`${secretName}0`, `${secretName}1`]; for (const name of secretNames) { @@ -170,7 +170,7 @@ describe("Secret client - list secrets in various ways", () => { it("can list deleted secrets by page", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); const secretNames = [`${secretName}0`, `${secretName}1`]; for (const name of secretNames) { @@ -194,7 +194,7 @@ describe("Secret client - list secrets in various ways", () => { it("can retrieve all versions of a secret by page", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); const secretValues = [`${secretValue}0`, `${secretValue}1`, `${secretValue}2`]; interface VersionValuePair { @@ -228,7 +228,7 @@ describe("Secret client - list secrets in various ways", () => { it("can list secret versions by page (non existing)", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); let totalVersions = 0; for await (const page of client @@ -238,7 +238,7 @@ describe("Secret client - list secrets in various ways", () => { assert.equal( secretProperties.name, secretName, - "Unexpected key name in result from listKeyVersions()." + "Unexpected key name in result from listKeyVersions().", ); totalVersions += 1; } diff --git a/sdk/keyvault/keyvault-secrets/test/public/lro.delete.spec.ts b/sdk/keyvault/keyvault-secrets/test/public/lro.delete.spec.ts index f6271ec91047..c62064278d68 100644 --- a/sdk/keyvault/keyvault-secrets/test/public/lro.delete.spec.ts +++ b/sdk/keyvault/keyvault-secrets/test/public/lro.delete.spec.ts @@ -35,7 +35,7 @@ describe("Secrets client - Long Running Operations - delete", () => { it("can wait until a secret is deleted", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); await client.setSecret(secretName, "value"); const poller = await client.beginDeleteSecret(secretName, testPollerProperties); @@ -54,7 +54,7 @@ describe("Secrets client - Long Running Operations - delete", () => { it("can resume from a stopped poller", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); await client.setSecret(secretName, "value"); const poller = await client.beginDeleteSecret(secretName, testPollerProperties); diff --git a/sdk/keyvault/keyvault-secrets/test/public/lro.recover.spec.ts b/sdk/keyvault/keyvault-secrets/test/public/lro.recover.spec.ts index deb37c5ac8ce..af56f15ece45 100644 --- a/sdk/keyvault/keyvault-secrets/test/public/lro.recover.spec.ts +++ b/sdk/keyvault/keyvault-secrets/test/public/lro.recover.spec.ts @@ -35,7 +35,7 @@ describe("Secrets client - Long Running Operations - recoverDelete", () => { it("can wait until a secret is recovered", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); await client.setSecret(secretName, "value"); @@ -58,7 +58,7 @@ describe("Secrets client - Long Running Operations - recoverDelete", () => { it("can resume from a stopped poller", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); await client.setSecret(secretName, "value"); const deletePoller = await client.beginDeleteSecret(secretName, testPollerProperties); diff --git a/sdk/keyvault/keyvault-secrets/test/public/recoverBackupRestore.spec.ts b/sdk/keyvault/keyvault-secrets/test/public/recoverBackupRestore.spec.ts index 1a61b91d9708..7fa870af2cc5 100644 --- a/sdk/keyvault/keyvault-secrets/test/public/recoverBackupRestore.spec.ts +++ b/sdk/keyvault/keyvault-secrets/test/public/recoverBackupRestore.spec.ts @@ -35,14 +35,14 @@ describe("Secret client - restore secrets and recover backups", () => { it("can recover a deleted secret", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); await client.setSecret(secretName, "RSA"); const deletePoller = await client.beginDeleteSecret(secretName, testPollerProperties); assert.equal( deletePoller.getResult()!.name, secretName, - "Unexpected secret name in result from deletePoller.getResult()." + "Unexpected secret name in result from deletePoller.getResult().", ); await deletePoller.pollUntilDone(); @@ -50,7 +50,7 @@ describe("Secret client - restore secrets and recover backups", () => { assert.equal( getDeletedResult.name, secretName, - "Unexpected secret name in result from getSecret()." + "Unexpected secret name in result from getSecret().", ); const recoverPoller = await client.beginRecoverDeletedSecret(secretName, testPollerProperties); @@ -58,19 +58,19 @@ describe("Secret client - restore secrets and recover backups", () => { assert.equal( secretProperties.name, secretName, - "Unexpected secret name in result from getSecret()." + "Unexpected secret name in result from getSecret().", ); }); it("can recover a deleted secret (non existing)", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); let error; try { const recoverPoller = await client.beginRecoverDeletedSecret( secretName, - testPollerProperties + testPollerProperties, ); await recoverPoller.pollUntilDone(); throw Error("Expecting an error but not catching one."); @@ -83,7 +83,7 @@ describe("Secret client - restore secrets and recover backups", () => { it("can backup a secret", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); await client.setSecret(secretName, "RSA"); const result = await client.backupSecret(secretName); @@ -94,13 +94,13 @@ describe("Secret client - restore secrets and recover backups", () => { } assert.ok( result!.length > 0, - `Unexpected length (${result!.length}) of buffer from backupSecret()` + `Unexpected length (${result!.length}) of buffer from backupSecret()`, ); }); it("can backup a secret (non existing)", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); let error; try { @@ -118,7 +118,7 @@ describe("Secret client - restore secrets and recover backups", () => { // since the purge operation currently can't be expected to finish anytime soon. it("can restore a secret", async function (this: Context) { const secretName = testClient.formatName( - `${secretPrefix}-${this!.test!.title}-${secretSuffix}` + `${secretPrefix}-${this!.test!.title}-${secretSuffix}`, ); await client.setSecret(secretName, "RSA"); const backup = await client.backupSecret(secretName); @@ -134,7 +134,7 @@ describe("Secret client - restore secrets and recover backups", () => { // If this is useful to you, please open an issue at: https://github.com/Azure/azure-sdk-for-js/issues const restorePoller = await testClient.beginRestoreSecretBackup( backup as Uint8Array, - testPollerProperties + testPollerProperties, ); const restoredSecretProperties = await restorePoller.pollUntilDone(); @@ -155,7 +155,7 @@ describe("Secret client - restore secrets and recover backups", () => { assert.equal( error.message, "Backup blob contains invalid or corrupt version.", - "Unexpected error from restoreSecretBackup()" + "Unexpected error from restoreSecretBackup()", ); }); }); diff --git a/sdk/keyvault/keyvault-secrets/test/public/utils/common.ts b/sdk/keyvault/keyvault-secrets/test/public/utils/common.ts index b02b86e75a66..8abe5ad12865 100644 --- a/sdk/keyvault/keyvault-secrets/test/public/utils/common.ts +++ b/sdk/keyvault/keyvault-secrets/test/public/utils/common.ts @@ -53,7 +53,7 @@ export function getServiceVersion(): NonNullable { */ export function onVersions( supportedVersions: SupportedVersions, - serviceVersion?: ServiceVersion + serviceVersion?: ServiceVersion, ): TestFunctionWrapper { return supports(serviceVersion || getServiceVersion(), supportedVersions, serviceVersions); } diff --git a/sdk/keyvault/keyvault-secrets/test/public/utils/lro/restore/operation.ts b/sdk/keyvault/keyvault-secrets/test/public/utils/lro/restore/operation.ts index 2e9fc7df2c62..e637264312fc 100644 --- a/sdk/keyvault/keyvault-secrets/test/public/utils/lro/restore/operation.ts +++ b/sdk/keyvault/keyvault-secrets/test/public/utils/lro/restore/operation.ts @@ -22,7 +22,7 @@ export interface TestSecretClientInterface { */ restoreSecretBackup( backup: Uint8Array, - options?: BeginRestoreSecretBackupOptions + options?: BeginRestoreSecretBackupOptions, ): Promise; } @@ -60,7 +60,7 @@ async function update( options: { abortSignal?: AbortSignalLike; fireProgress?: (state: RestoreSecretBackupPollOperationState) => void; - } = {} + } = {}, ): Promise { const state = this.state; const { backup, client, operationOptions = {} } = state; @@ -104,7 +104,7 @@ function toString(this: RestoreSecretBackupPollOperation): string { * @param state - A poll operation's state, in case the new one is intended to follow up where the previous one was left. */ export function makeRestoreSecretBackupPollOperation( - state: RestoreSecretBackupPollOperationState + state: RestoreSecretBackupPollOperationState, ): RestoreSecretBackupPollOperation { return { state: { diff --git a/sdk/keyvault/keyvault-secrets/test/public/utils/testAuthentication.ts b/sdk/keyvault/keyvault-secrets/test/public/utils/testAuthentication.ts index 3217ec18afb0..17872f4b7209 100644 --- a/sdk/keyvault/keyvault-secrets/test/public/utils/testAuthentication.ts +++ b/sdk/keyvault/keyvault-secrets/test/public/utils/testAuthentication.ts @@ -18,7 +18,7 @@ import { FindReplaceSanitizer } from "@azure-tools/test-recorder/types/src/utils export async function authenticate( that: Context, - serviceVersion: ReturnType + serviceVersion: ReturnType, ): Promise { const generalSanitizers: FindReplaceSanitizer[] = []; @@ -67,7 +67,7 @@ export async function authenticate( recorder.configureClientOptions({ serviceVersion, disableChallengeResourceVerification: true, - }) + }), ); const testClient = new TestClient(client); diff --git a/sdk/keyvault/keyvault-secrets/test/public/utils/testClient.ts b/sdk/keyvault/keyvault-secrets/test/public/utils/testClient.ts index 2eb3c3183ddb..e3b3a6d77bbf 100644 --- a/sdk/keyvault/keyvault-secrets/test/public/utils/testClient.ts +++ b/sdk/keyvault/keyvault-secrets/test/public/utils/testClient.ts @@ -26,7 +26,7 @@ export default class TestClient { } public async beginRestoreSecretBackup( backup: Uint8Array, - options: BeginRestoreSecretBackupOptions = {} + options: BeginRestoreSecretBackupOptions = {}, ): Promise, SecretProperties>> { const poller = new RestoreSecretBackupPoller({ backup, diff --git a/sdk/keyvault/perf-tests/keyvault-certificates/package.json b/sdk/keyvault/perf-tests/keyvault-certificates/package.json index 1fa9e58d5bc7..e9f1ac9e8623 100644 --- a/sdk/keyvault/perf-tests/keyvault-certificates/package.json +++ b/sdk/keyvault/perf-tests/keyvault-certificates/package.json @@ -17,12 +17,12 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", "typescript": "~5.2.0", - "@types/uuid": "^8.0.0" + "@types/uuid": "^8.0.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -31,9 +31,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/keyvault/perf-tests/keyvault-certificates/test/getCertificate.spec.ts b/sdk/keyvault/perf-tests/keyvault-certificates/test/getCertificate.spec.ts index fbe7a097d38b..5917e435f523 100644 --- a/sdk/keyvault/perf-tests/keyvault-certificates/test/getCertificate.spec.ts +++ b/sdk/keyvault/perf-tests/keyvault-certificates/test/getCertificate.spec.ts @@ -16,14 +16,14 @@ export abstract class CertificateTest extends PerfTest { async globalSetup() { const poller = await this.certificateClient.beginCreateCertificate( CertificateTest.certificateName, - { issuerName: WellKnownIssuer.Self, subject: "CN=Azure SDK" } + { issuerName: WellKnownIssuer.Self, subject: "CN=Azure SDK" }, ); await poller.pollUntilDone(); } async globalCleanup() { const poller = await this.certificateClient.beginDeleteCertificate( - CertificateTest.certificateName + CertificateTest.certificateName, ); const result = await poller.pollUntilDone(); if (result.recoveryId) { diff --git a/sdk/keyvault/perf-tests/keyvault-certificates/test/utils.ts b/sdk/keyvault/perf-tests/keyvault-certificates/test/utils.ts index cab69de22adf..6ab855e96b2f 100644 --- a/sdk/keyvault/perf-tests/keyvault-certificates/test/utils.ts +++ b/sdk/keyvault/perf-tests/keyvault-certificates/test/utils.ts @@ -7,7 +7,7 @@ dotenv.config(); export const credential = new ClientSecretCredential( getEnvVar("AZURE_TENANT_ID"), getEnvVar("AZURE_CLIENT_ID"), - getEnvVar("AZURE_CLIENT_SECRET") + getEnvVar("AZURE_CLIENT_SECRET"), ); export const keyVaultUri = getEnvVar("KEYVAULT_URI"); diff --git a/sdk/keyvault/perf-tests/keyvault-keys/package.json b/sdk/keyvault/perf-tests/keyvault-keys/package.json index bf3f8cf94571..6f75b92991da 100644 --- a/sdk/keyvault/perf-tests/keyvault-keys/package.json +++ b/sdk/keyvault/perf-tests/keyvault-keys/package.json @@ -17,12 +17,12 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", "typescript": "~5.2.0", - "@types/uuid": "^8.0.0" + "@types/uuid": "^8.0.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -31,9 +31,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/keyvault/perf-tests/keyvault-keys/test/cryptography/unwrapKey.spec.ts b/sdk/keyvault/perf-tests/keyvault-keys/test/cryptography/unwrapKey.spec.ts index 8e395cafc2bc..6ef8c80218cd 100644 --- a/sdk/keyvault/perf-tests/keyvault-keys/test/cryptography/unwrapKey.spec.ts +++ b/sdk/keyvault/perf-tests/keyvault-keys/test/cryptography/unwrapKey.spec.ts @@ -9,7 +9,7 @@ export class UnwrapKeyTest extends CryptographyTest { async setup() { const wrapResult = await CryptographyTest.cryptoClient!.wrapKey( this.wrapAlgorithm, - randomBytes(32) + randomBytes(32), ); this.encryptedKey = wrapResult.result; } diff --git a/sdk/keyvault/perf-tests/keyvault-keys/test/utils.ts b/sdk/keyvault/perf-tests/keyvault-keys/test/utils.ts index cab69de22adf..6ab855e96b2f 100644 --- a/sdk/keyvault/perf-tests/keyvault-keys/test/utils.ts +++ b/sdk/keyvault/perf-tests/keyvault-keys/test/utils.ts @@ -7,7 +7,7 @@ dotenv.config(); export const credential = new ClientSecretCredential( getEnvVar("AZURE_TENANT_ID"), getEnvVar("AZURE_CLIENT_ID"), - getEnvVar("AZURE_CLIENT_SECRET") + getEnvVar("AZURE_CLIENT_SECRET"), ); export const keyVaultUri = getEnvVar("KEYVAULT_URI"); diff --git a/sdk/keyvault/perf-tests/keyvault-secrets/package.json b/sdk/keyvault/perf-tests/keyvault-secrets/package.json index 85e7b424f4e4..593175868b82 100644 --- a/sdk/keyvault/perf-tests/keyvault-secrets/package.json +++ b/sdk/keyvault/perf-tests/keyvault-secrets/package.json @@ -17,12 +17,12 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", "typescript": "~5.2.0", - "@types/uuid": "^8.0.0" + "@types/uuid": "^8.0.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -31,9 +31,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/keyvault/perf-tests/keyvault-secrets/test/listSecrets.spec.ts b/sdk/keyvault/perf-tests/keyvault-secrets/test/listSecrets.spec.ts index 479ac4bb41a5..4a98fb88cb69 100644 --- a/sdk/keyvault/perf-tests/keyvault-secrets/test/listSecrets.spec.ts +++ b/sdk/keyvault/perf-tests/keyvault-secrets/test/listSecrets.spec.ts @@ -27,7 +27,7 @@ export class ListSecretsTest extends SecretTest { ) { throw new Error( `KeyVault ${this.secretClient.vaultUrl} must contain 0 ` + - "secrets (including soft-deleted) before starting perf test" + "secrets (including soft-deleted) before starting perf test", ); } diff --git a/sdk/keyvault/perf-tests/keyvault-secrets/test/secretTest.ts b/sdk/keyvault/perf-tests/keyvault-secrets/test/secretTest.ts index 44f88e8f3122..e8e79b91dca2 100644 --- a/sdk/keyvault/perf-tests/keyvault-secrets/test/secretTest.ts +++ b/sdk/keyvault/perf-tests/keyvault-secrets/test/secretTest.ts @@ -18,7 +18,7 @@ export abstract class SecretTest> extends Per if (deletedSecret.recoveryId) { await this.secretClient.purgeDeletedSecret(name); } - }) + }), ); } } diff --git a/sdk/keyvault/perf-tests/keyvault-secrets/test/utils.ts b/sdk/keyvault/perf-tests/keyvault-secrets/test/utils.ts index cab69de22adf..6ab855e96b2f 100644 --- a/sdk/keyvault/perf-tests/keyvault-secrets/test/utils.ts +++ b/sdk/keyvault/perf-tests/keyvault-secrets/test/utils.ts @@ -7,7 +7,7 @@ dotenv.config(); export const credential = new ClientSecretCredential( getEnvVar("AZURE_TENANT_ID"), getEnvVar("AZURE_CLIENT_ID"), - getEnvVar("AZURE_CLIENT_SECRET") + getEnvVar("AZURE_CLIENT_SECRET"), ); export const keyVaultUri = getEnvVar("KEYVAULT_URI"); diff --git a/sdk/loadtesting/load-testing-rest/package.json b/sdk/loadtesting/load-testing-rest/package.json index 31eb54f17b59..aa5c984cfa7a 100644 --- a/sdk/loadtesting/load-testing-rest/package.json +++ b/sdk/loadtesting/load-testing-rest/package.json @@ -47,11 +47,11 @@ "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -109,7 +109,6 @@ "mkdirp": "^1.0.4", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "uuid": "^9.0.0", diff --git a/sdk/loadtesting/load-testing-rest/samples-dev/sample.ts b/sdk/loadtesting/load-testing-rest/samples-dev/sample.ts index 5146346e13e9..cae1def2c29e 100644 --- a/sdk/loadtesting/load-testing-rest/samples-dev/sample.ts +++ b/sdk/loadtesting/load-testing-rest/samples-dev/sample.ts @@ -70,7 +70,7 @@ async function main() { if (fileValidatePoller.getOperationState().status != "succeeded" && fileValidateResult) throw new Error( "There is some issue in validation, please make sure uploaded file is a valid JMX." + - fileValidateResult.body.validationFailureDetails + fileValidateResult.body.validationFailureDetails, ); // Creating/Updating app component diff --git a/sdk/loadtesting/load-testing-rest/src/azureLoadTesting.ts b/sdk/loadtesting/load-testing-rest/src/azureLoadTesting.ts index 6bc7f2adbd68..fbd007cc162c 100644 --- a/sdk/loadtesting/load-testing-rest/src/azureLoadTesting.ts +++ b/sdk/loadtesting/load-testing-rest/src/azureLoadTesting.ts @@ -13,7 +13,7 @@ import { AzureLoadTestingClient } from "./clientDefinitions"; export default function createClient( Endpoint: string, credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): AzureLoadTestingClient { const baseUrl = options.baseUrl ?? `https://${Endpoint}`; options.apiVersion = options.apiVersion ?? "2022-11-01"; diff --git a/sdk/loadtesting/load-testing-rest/src/clientDefinitions.ts b/sdk/loadtesting/load-testing-rest/src/clientDefinitions.ts index aac5c99ec252..478d71b5e33c 100644 --- a/sdk/loadtesting/load-testing-rest/src/clientDefinitions.ts +++ b/sdk/loadtesting/load-testing-rest/src/clientDefinitions.ts @@ -94,7 +94,7 @@ import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface TestCreateOrUpdate { /** Create a new test or update an existing test. */ patch( - options: TestCreateOrUpdateParameters + options: TestCreateOrUpdateParameters, ): StreamableMethod< | TestCreateOrUpdate200Response | TestCreateOrUpdate201Response @@ -102,7 +102,7 @@ export interface TestCreateOrUpdate { >; /** Delete a test by its name. */ delete( - options?: TestDeleteParameters + options?: TestDeleteParameters, ): StreamableMethod; /** Get load test details by test name */ get(options?: TestGetParameters): StreamableMethod; @@ -111,36 +111,36 @@ export interface TestCreateOrUpdate { export interface TestList { /** Get all load tests by the fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}. */ get( - options?: TestListParameters + options?: TestListParameters, ): StreamableMethod; } export interface TestUploadFile { /** Upload input file for a given test name. File size can't be more than 50 MB. Existing file with same name for the given test will be overwritten. File should be provided in the request body as application/octet-stream. */ put( - options: TestUploadFileParameters + options: TestUploadFileParameters, ): StreamableMethod; /** Get test file by the file name. */ get( - options?: TestGetFileParameters + options?: TestGetFileParameters, ): StreamableMethod; /** Delete file by the file name for a test */ delete( - options?: TestDeleteFileParameters + options?: TestDeleteFileParameters, ): StreamableMethod; } export interface TestListFiles { /** Get all test files. */ get( - options?: TestListFilesParameters + options?: TestListFilesParameters, ): StreamableMethod; } export interface TestCreateOrUpdateAppComponents { /** Associate an app component (collection of azure resources) to a test */ patch( - options: TestCreateOrUpdateAppComponentsParameters + options: TestCreateOrUpdateAppComponentsParameters, ): StreamableMethod< | TestCreateOrUpdateAppComponents200Response | TestCreateOrUpdateAppComponents201Response @@ -148,14 +148,14 @@ export interface TestCreateOrUpdateAppComponents { >; /** Get associated app component (collection of azure resources) for the given test. */ get( - options?: TestListAppComponentsParameters + options?: TestListAppComponentsParameters, ): StreamableMethod; } export interface TestCreateOrUpdateServerMetricsConfig { /** Configure server metrics for a test */ patch( - options: TestCreateOrUpdateServerMetricsConfigParameters + options: TestCreateOrUpdateServerMetricsConfigParameters, ): StreamableMethod< | TestCreateOrUpdateServerMetricsConfig200Response | TestCreateOrUpdateServerMetricsConfig201Response @@ -163,7 +163,7 @@ export interface TestCreateOrUpdateServerMetricsConfig { >; /** List server metrics configuration for the given test. */ get( - options?: TestListServerMetricsConfigParameters + options?: TestListServerMetricsConfigParameters, ): StreamableMethod< TestListServerMetricsConfig200Response | TestListServerMetricsConfigDefaultResponse >; @@ -172,11 +172,11 @@ export interface TestCreateOrUpdateServerMetricsConfig { export interface TestRunDelete { /** Delete a test run by its name. */ delete( - options?: TestRunDeleteParameters + options?: TestRunDeleteParameters, ): StreamableMethod; /** Create and start a new test run with the given name. */ patch( - options: TestRunCreateOrUpdateParameters + options: TestRunCreateOrUpdateParameters, ): StreamableMethod< | TestRunCreateOrUpdate200Response | TestRunCreateOrUpdate201Response @@ -184,35 +184,35 @@ export interface TestRunDelete { >; /** Get test run details by name. */ get( - options?: TestRunGetParameters + options?: TestRunGetParameters, ): StreamableMethod; } export interface TestRunGetFile { /** Get test run file by file name. */ get( - options?: TestRunGetFileParameters + options?: TestRunGetFileParameters, ): StreamableMethod; } export interface TestRunList { /** Get all test runs with given filters */ get( - options?: TestRunListParameters + options?: TestRunListParameters, ): StreamableMethod; } export interface TestRunStop { /** Stop test run by name. */ post( - options?: TestRunStopParameters + options?: TestRunStopParameters, ): StreamableMethod; } export interface TestRunListMetricNamespaces { /** List the metric namespaces for a load test run. */ get( - options?: TestRunListMetricNamespacesParameters + options?: TestRunListMetricNamespacesParameters, ): StreamableMethod< TestRunListMetricNamespaces200Response | TestRunListMetricNamespacesDefaultResponse >; @@ -221,7 +221,7 @@ export interface TestRunListMetricNamespaces { export interface TestRunListMetricDefinitions { /** List the metric definitions for a load test run. */ get( - options: TestRunListMetricDefinitionsParameters + options: TestRunListMetricDefinitionsParameters, ): StreamableMethod< TestRunListMetricDefinitions200Response | TestRunListMetricDefinitionsDefaultResponse >; @@ -230,14 +230,14 @@ export interface TestRunListMetricDefinitions { export interface TestRunListMetrics { /** List the metric values for a load test run. */ post( - options: TestRunListMetricsParameters + options: TestRunListMetricsParameters, ): StreamableMethod; } export interface TestRunListMetricDimensionValues { /** List the dimension values for the given metric dimension name. */ get( - options: TestRunListMetricDimensionValuesParameters + options: TestRunListMetricDimensionValuesParameters, ): StreamableMethod< TestRunListMetricDimensionValues200Response | TestRunListMetricDimensionValuesDefaultResponse >; @@ -246,7 +246,7 @@ export interface TestRunListMetricDimensionValues { export interface TestRunCreateOrUpdateAppComponents { /** Associate an app component (collection of azure resources) to a test run */ patch( - options: TestRunCreateOrUpdateAppComponentsParameters + options: TestRunCreateOrUpdateAppComponentsParameters, ): StreamableMethod< | TestRunCreateOrUpdateAppComponents200Response | TestRunCreateOrUpdateAppComponents201Response @@ -254,7 +254,7 @@ export interface TestRunCreateOrUpdateAppComponents { >; /** Get associated app component (collection of azure resources) for the given test run. */ get( - options?: TestRunListAppComponentsParameters + options?: TestRunListAppComponentsParameters, ): StreamableMethod< TestRunListAppComponents200Response | TestRunListAppComponentsDefaultResponse >; @@ -263,7 +263,7 @@ export interface TestRunCreateOrUpdateAppComponents { export interface TestRunCreateOrUpdateServerMetricsConfig { /** Configure server metrics for a test run */ patch( - options: TestRunCreateOrUpdateServerMetricsConfigParameters + options: TestRunCreateOrUpdateServerMetricsConfigParameters, ): StreamableMethod< | TestRunCreateOrUpdateServerMetricsConfig200Response | TestRunCreateOrUpdateServerMetricsConfig201Response @@ -271,7 +271,7 @@ export interface TestRunCreateOrUpdateServerMetricsConfig { >; /** List server metrics configuration for the given test run. */ get( - options?: TestRunListServerMetricsConfigParameters + options?: TestRunListServerMetricsConfigParameters, ): StreamableMethod< TestRunListServerMetricsConfig200Response | TestRunListServerMetricsConfigDefaultResponse >; @@ -291,7 +291,7 @@ export interface Routes { /** Resource for '/tests/\{testId\}/server-metrics-config' has methods for the following verbs: patch, get */ ( path: "/tests/{testId}/server-metrics-config", - testId: string + testId: string, ): TestCreateOrUpdateServerMetricsConfig; /** Resource for '/test-runs/\{testRunId\}' has methods for the following verbs: delete, patch, get */ (path: "/test-runs/{testRunId}", testRunId: string): TestRunDelete; @@ -299,7 +299,7 @@ export interface Routes { ( path: "/test-runs/{testRunId}/files/{fileName}", testRunId: string, - fileName: string + fileName: string, ): TestRunGetFile; /** Resource for '/test-runs' has methods for the following verbs: get */ (path: "/test-runs"): TestRunList; @@ -308,12 +308,12 @@ export interface Routes { /** Resource for '/test-runs/\{testRunId\}/metric-namespaces' has methods for the following verbs: get */ ( path: "/test-runs/{testRunId}/metric-namespaces", - testRunId: string + testRunId: string, ): TestRunListMetricNamespaces; /** Resource for '/test-runs/\{testRunId\}/metric-definitions' has methods for the following verbs: get */ ( path: "/test-runs/{testRunId}/metric-definitions", - testRunId: string + testRunId: string, ): TestRunListMetricDefinitions; /** Resource for '/test-runs/\{testRunId\}/metrics' has methods for the following verbs: post */ (path: "/test-runs/{testRunId}/metrics", testRunId: string): TestRunListMetrics; @@ -321,17 +321,17 @@ export interface Routes { ( path: "/test-runs/{testRunId}/metric-dimensions/{name}/values", testRunId: string, - name: string + name: string, ): TestRunListMetricDimensionValues; /** Resource for '/test-runs/\{testRunId\}/app-components' has methods for the following verbs: patch, get */ ( path: "/test-runs/{testRunId}/app-components", - testRunId: string + testRunId: string, ): TestRunCreateOrUpdateAppComponents; /** Resource for '/test-runs/\{testRunId\}/server-metrics-config' has methods for the following verbs: patch, get */ ( path: "/test-runs/{testRunId}/server-metrics-config", - testRunId: string + testRunId: string, ): TestRunCreateOrUpdateServerMetricsConfig; } diff --git a/sdk/loadtesting/load-testing-rest/src/getFileValidationPoller.ts b/sdk/loadtesting/load-testing-rest/src/getFileValidationPoller.ts index adaf586b85b5..d46405677e19 100644 --- a/sdk/loadtesting/load-testing-rest/src/getFileValidationPoller.ts +++ b/sdk/loadtesting/load-testing-rest/src/getFileValidationPoller.ts @@ -18,14 +18,14 @@ import { sleep } from "./util/LROUtil"; export async function getFileValidationPoller( client: AzureLoadTestingClient, fileUploadResult: TestUploadFile201Response, - polledOperationOptions: PolledOperationOptions = {} + polledOperationOptions: PolledOperationOptions = {}, ): Promise { // get filename and testid from initial response const fileName = fileUploadResult.body.fileName; const requestUrl = fileUploadResult.request.url; const testId = requestUrl.substring( requestUrl.indexOf("tests/") + 6, - requestUrl.lastIndexOf("/files") + requestUrl.lastIndexOf("/files"), ); type Handler = (state: OperationState) => void; @@ -122,7 +122,7 @@ export async function getFileValidationPoller( }, onProgress( - callback: (state: OperationState) => void + callback: (state: OperationState) => void, ): CancelOnProgress { const s = Symbol(); progressCallbacks.set(s, callback); diff --git a/sdk/loadtesting/load-testing-rest/src/getTestRunCompletionPoller.ts b/sdk/loadtesting/load-testing-rest/src/getTestRunCompletionPoller.ts index 4566f025ce00..3d082409303f 100644 --- a/sdk/loadtesting/load-testing-rest/src/getTestRunCompletionPoller.ts +++ b/sdk/loadtesting/load-testing-rest/src/getTestRunCompletionPoller.ts @@ -22,7 +22,7 @@ import { sleep, isTestRunInProgress } from "./util/LROUtil"; export async function getTestRunCompletionPoller( client: AzureLoadTestingClient, createTestRunResponse: TestRunCreateOrUpdate200Response | TestRunCreateOrUpdate201Response, - polledOperationOptions: PolledOperationOptions = {} + polledOperationOptions: PolledOperationOptions = {}, ): Promise { type Handler = (state: OperationState) => void; diff --git a/sdk/loadtesting/load-testing-rest/src/isUnexpected.ts b/sdk/loadtesting/load-testing-rest/src/isUnexpected.ts index 80cb61595245..07966296e034 100644 --- a/sdk/loadtesting/load-testing-rest/src/isUnexpected.ts +++ b/sdk/loadtesting/load-testing-rest/src/isUnexpected.ts @@ -95,101 +95,101 @@ export function isUnexpected( response: | TestCreateOrUpdate200Response | TestCreateOrUpdate201Response - | TestCreateOrUpdateDefaultResponse + | TestCreateOrUpdateDefaultResponse, ): response is TestCreateOrUpdateDefaultResponse; export function isUnexpected( - response: TestDelete204Response | TestDeleteDefaultResponse + response: TestDelete204Response | TestDeleteDefaultResponse, ): response is TestDeleteDefaultResponse; export function isUnexpected( - response: TestGet200Response | TestGetDefaultResponse + response: TestGet200Response | TestGetDefaultResponse, ): response is TestGetDefaultResponse; export function isUnexpected( - response: TestList200Response | TestListDefaultResponse + response: TestList200Response | TestListDefaultResponse, ): response is TestListDefaultResponse; export function isUnexpected( - response: TestUploadFile201Response | TestUploadFileDefaultResponse + response: TestUploadFile201Response | TestUploadFileDefaultResponse, ): response is TestUploadFileDefaultResponse; export function isUnexpected( - response: TestGetFile200Response | TestGetFileDefaultResponse + response: TestGetFile200Response | TestGetFileDefaultResponse, ): response is TestGetFileDefaultResponse; export function isUnexpected( - response: TestDeleteFile204Response | TestDeleteFileDefaultResponse + response: TestDeleteFile204Response | TestDeleteFileDefaultResponse, ): response is TestDeleteFileDefaultResponse; export function isUnexpected( - response: TestListFiles200Response | TestListFilesDefaultResponse + response: TestListFiles200Response | TestListFilesDefaultResponse, ): response is TestListFilesDefaultResponse; export function isUnexpected( response: | TestCreateOrUpdateAppComponents200Response | TestCreateOrUpdateAppComponents201Response - | TestCreateOrUpdateAppComponentsDefaultResponse + | TestCreateOrUpdateAppComponentsDefaultResponse, ): response is TestCreateOrUpdateAppComponentsDefaultResponse; export function isUnexpected( - response: TestListAppComponents200Response | TestListAppComponentsDefaultResponse + response: TestListAppComponents200Response | TestListAppComponentsDefaultResponse, ): response is TestListAppComponentsDefaultResponse; export function isUnexpected( response: | TestCreateOrUpdateServerMetricsConfig200Response | TestCreateOrUpdateServerMetricsConfig201Response - | TestCreateOrUpdateServerMetricsConfigDefaultResponse + | TestCreateOrUpdateServerMetricsConfigDefaultResponse, ): response is TestCreateOrUpdateServerMetricsConfigDefaultResponse; export function isUnexpected( - response: TestListServerMetricsConfig200Response | TestListServerMetricsConfigDefaultResponse + response: TestListServerMetricsConfig200Response | TestListServerMetricsConfigDefaultResponse, ): response is TestListServerMetricsConfigDefaultResponse; export function isUnexpected( - response: TestRunDelete204Response | TestRunDeleteDefaultResponse + response: TestRunDelete204Response | TestRunDeleteDefaultResponse, ): response is TestRunDeleteDefaultResponse; export function isUnexpected( response: | TestRunCreateOrUpdate200Response | TestRunCreateOrUpdate201Response - | TestRunCreateOrUpdateDefaultResponse + | TestRunCreateOrUpdateDefaultResponse, ): response is TestRunCreateOrUpdateDefaultResponse; export function isUnexpected( - response: TestRunGet200Response | TestRunGetDefaultResponse + response: TestRunGet200Response | TestRunGetDefaultResponse, ): response is TestRunGetDefaultResponse; export function isUnexpected( - response: TestRunGetFile200Response | TestRunGetFileDefaultResponse + response: TestRunGetFile200Response | TestRunGetFileDefaultResponse, ): response is TestRunGetFileDefaultResponse; export function isUnexpected( - response: TestRunList200Response | TestRunListDefaultResponse + response: TestRunList200Response | TestRunListDefaultResponse, ): response is TestRunListDefaultResponse; export function isUnexpected( - response: TestRunStop200Response | TestRunStopDefaultResponse + response: TestRunStop200Response | TestRunStopDefaultResponse, ): response is TestRunStopDefaultResponse; export function isUnexpected( - response: TestRunListMetricNamespaces200Response | TestRunListMetricNamespacesDefaultResponse + response: TestRunListMetricNamespaces200Response | TestRunListMetricNamespacesDefaultResponse, ): response is TestRunListMetricNamespacesDefaultResponse; export function isUnexpected( - response: TestRunListMetricDefinitions200Response | TestRunListMetricDefinitionsDefaultResponse + response: TestRunListMetricDefinitions200Response | TestRunListMetricDefinitionsDefaultResponse, ): response is TestRunListMetricDefinitionsDefaultResponse; export function isUnexpected( - response: TestRunListMetrics200Response | TestRunListMetricsDefaultResponse + response: TestRunListMetrics200Response | TestRunListMetricsDefaultResponse, ): response is TestRunListMetricsDefaultResponse; export function isUnexpected( response: | TestRunListMetricDimensionValues200Response - | TestRunListMetricDimensionValuesDefaultResponse + | TestRunListMetricDimensionValuesDefaultResponse, ): response is TestRunListMetricDimensionValuesDefaultResponse; export function isUnexpected( response: | TestRunCreateOrUpdateAppComponents200Response | TestRunCreateOrUpdateAppComponents201Response - | TestRunCreateOrUpdateAppComponentsDefaultResponse + | TestRunCreateOrUpdateAppComponentsDefaultResponse, ): response is TestRunCreateOrUpdateAppComponentsDefaultResponse; export function isUnexpected( - response: TestRunListAppComponents200Response | TestRunListAppComponentsDefaultResponse + response: TestRunListAppComponents200Response | TestRunListAppComponentsDefaultResponse, ): response is TestRunListAppComponentsDefaultResponse; export function isUnexpected( response: | TestRunCreateOrUpdateServerMetricsConfig200Response | TestRunCreateOrUpdateServerMetricsConfig201Response - | TestRunCreateOrUpdateServerMetricsConfigDefaultResponse + | TestRunCreateOrUpdateServerMetricsConfigDefaultResponse, ): response is TestRunCreateOrUpdateServerMetricsConfigDefaultResponse; export function isUnexpected( response: | TestRunListServerMetricsConfig200Response - | TestRunListServerMetricsConfigDefaultResponse + | TestRunListServerMetricsConfigDefaultResponse, ): response is TestRunListServerMetricsConfigDefaultResponse; export function isUnexpected( response: @@ -250,7 +250,7 @@ export function isUnexpected( | TestRunCreateOrUpdateServerMetricsConfig201Response | TestRunCreateOrUpdateServerMetricsConfigDefaultResponse | TestRunListServerMetricsConfig200Response - | TestRunListServerMetricsConfigDefaultResponse + | TestRunListServerMetricsConfigDefaultResponse, ): response is | TestCreateOrUpdateDefaultResponse | TestDeleteDefaultResponse diff --git a/sdk/loadtesting/load-testing-rest/src/paginateHelper.ts b/sdk/loadtesting/load-testing-rest/src/paginateHelper.ts index 477bace4a37f..f0d91c952cda 100644 --- a/sdk/loadtesting/load-testing-rest/src/paginateHelper.ts +++ b/sdk/loadtesting/load-testing-rest/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/loadtesting/load-testing-rest/src/pollingHelper.ts b/sdk/loadtesting/load-testing-rest/src/pollingHelper.ts index cbd1726a4c84..37df8f412f93 100644 --- a/sdk/loadtesting/load-testing-rest/src/pollingHelper.ts +++ b/sdk/loadtesting/load-testing-rest/src/pollingHelper.ts @@ -13,15 +13,15 @@ import { export async function getLongRunningPoller( client: AzureLoadTestingClient, - initialResponse: TestUploadFileSuccessResponse + initialResponse: TestUploadFileSuccessResponse, ): Promise; export async function getLongRunningPoller( client: AzureLoadTestingClient, - initialResponse: TestRunCreateOrUpdateSuccessResponse + initialResponse: TestRunCreateOrUpdateSuccessResponse, ): Promise; export async function getLongRunningPoller( client: AzureLoadTestingClient, - initialResponse: TestRunCreateOrUpdateSuccessResponse | TestUploadFileSuccessResponse + initialResponse: TestRunCreateOrUpdateSuccessResponse | TestUploadFileSuccessResponse, ): Promise { if (isFileUpload(initialResponse)) { return getFileValidationPoller(client, initialResponse); diff --git a/sdk/loadtesting/load-testing-rest/test/public/utils/recordedClient.ts b/sdk/loadtesting/load-testing-rest/test/public/utils/recordedClient.ts index 3945f0537e9e..c92be35cfb19 100644 --- a/sdk/loadtesting/load-testing-rest/test/public/utils/recordedClient.ts +++ b/sdk/loadtesting/load-testing-rest/test/public/utils/recordedClient.ts @@ -36,12 +36,12 @@ const recorderEnvSetup: RecorderStartOptions = { export function createClient( recorder: Recorder, - options: ClientOptions = {} + options: ClientOptions = {}, ): AzureLoadTestingClient { return AzureLoadTesting( env.LOADTESTSERVICE_ENDPOINT || "", credential, - recorder.configureClientOptions(options) + recorder.configureClientOptions(options), ); } diff --git a/sdk/maps/maps-common/package.json b/sdk/maps/maps-common/package.json index 554dc1868f10..bce2fba00901 100644 --- a/sdk/maps/maps-common/package.json +++ b/sdk/maps/maps-common/package.json @@ -15,11 +15,11 @@ "build:samples": "echo skipped", "build:test": "echo skipped", "build": "tsc -p . && npm run build:nodebrowser && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log coverage coverage-browser", "execute:samples": "echo skipped", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\"", "generate:client": "echo skipped", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", @@ -74,7 +74,6 @@ "@azure/dev-tool": "^1.0.0", "@microsoft/api-extractor": "^7.31.1", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "typescript": "~5.2.0", "ts-node": "^10.0.0", diff --git a/sdk/maps/maps-common/src/credential/createAzureMapsKeyCredentialPolicy.ts b/sdk/maps/maps-common/src/credential/createAzureMapsKeyCredentialPolicy.ts index 9ad8cc3f411b..16eaa191f944 100644 --- a/sdk/maps/maps-common/src/credential/createAzureMapsKeyCredentialPolicy.ts +++ b/sdk/maps/maps-common/src/credential/createAzureMapsKeyCredentialPolicy.ts @@ -21,7 +21,7 @@ const azureMapsKeyCredentialPolicyName = "mapsAzureKeyCredentialPolicy"; * using an `AzureKeyCredential` for Azure Maps */ export function createAzureMapsKeyCredentialPolicy( - azureKeyCredential: KeyCredential + azureKeyCredential: KeyCredential, ): PipelinePolicy { return { name: azureMapsKeyCredentialPolicyName, diff --git a/sdk/maps/maps-common/src/models/geojsons.ts b/sdk/maps/maps-common/src/models/geojsons.ts index ec224d89d650..8f3a2e013dbd 100644 --- a/sdk/maps/maps-common/src/models/geojsons.ts +++ b/sdk/maps/maps-common/src/models/geojsons.ts @@ -21,7 +21,7 @@ export type BBox2D = [ southWestLongitude: number, southWestLatitude: number, northEastLongitude: number, - northEastLatitude: number + northEastLatitude: number, ]; /** 3D bounding box */ export type BBox3D = [ @@ -30,7 +30,7 @@ export type BBox3D = [ southWestElevation: number, northEastLongitude: number, northEastLatitude: number, - northEastElevation: number + northEastElevation: number, ]; /** Bounding box including information on the coordinate range for its geometries */ export type BBox = BBox2D | BBox3D; diff --git a/sdk/maps/maps-common/src/models/lro.ts b/sdk/maps/maps-common/src/models/lro.ts index 71e52aebfa88..4c0ad33f7697 100644 --- a/sdk/maps/maps-common/src/models/lro.ts +++ b/sdk/maps/maps-common/src/models/lro.ts @@ -17,7 +17,7 @@ import { LroResponse } from "@azure/core-lro"; */ export async function getRawResponse( getResponse: (options: TOptions) => Promise, - options: TOptions + options: TOptions, ): Promise> { const { onResponse } = options || {}; let rawResponse: FullOperationResponse; @@ -46,7 +46,7 @@ export async function getRawResponse(settings: { client: TClient; options: TOptions; @@ -56,6 +56,6 @@ export function createSendPollRequest< return async (path: string) => getRawResponse( (paramOptions) => client.sendOperationRequest({ options: paramOptions }, { path, ...spec }), - options + options, ); } diff --git a/sdk/maps/maps-geolocation-rest/package.json b/sdk/maps/maps-geolocation-rest/package.json index 701e68516caa..9a4877138073 100644 --- a/sdk/maps/maps-geolocation-rest/package.json +++ b/sdk/maps/maps-geolocation-rest/package.json @@ -38,11 +38,11 @@ "build:samples": "dev-tool samples publish --force", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -74,7 +74,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^1.0.4", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/maps/maps-geolocation-rest/src/MapsGeolocation.ts b/sdk/maps/maps-geolocation-rest/src/MapsGeolocation.ts index ba22cf72cc76..e4f1c35e707c 100644 --- a/sdk/maps/maps-geolocation-rest/src/MapsGeolocation.ts +++ b/sdk/maps/maps-geolocation-rest/src/MapsGeolocation.ts @@ -31,7 +31,7 @@ import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline"; */ export default function MapsGeolocation( credential: AzureKeyCredential, - options?: ClientOptions + options?: ClientOptions, ): MapsGeolocationClient; /** * Creates an instance of MapsGeolocation from an Azure Identity `TokenCredential`. @@ -52,7 +52,7 @@ export default function MapsGeolocation( export default function MapsGeolocation( credential: TokenCredential, mapsAccountClientId: string, - options?: ClientOptions + options?: ClientOptions, ): MapsGeolocationClient; /** * Creates an instance of MapsGeolocation from an Azure Identity `AzureSASCredential`. @@ -71,12 +71,12 @@ export default function MapsGeolocation( */ export default function MapsGeolocation( credential: AzureSASCredential, - options?: ClientOptions + options?: ClientOptions, ): MapsGeolocationClient; export default function MapsGeolocation( credential: TokenCredential | AzureKeyCredential | AzureSASCredential, clientIdOrOptions: string | ClientOptions = {}, - maybeOptions: ClientOptions = {} + maybeOptions: ClientOptions = {}, ): MapsGeolocationClient { const options = typeof clientIdOrOptions === "string" ? maybeOptions : clientIdOrOptions; @@ -95,7 +95,7 @@ export default function MapsGeolocation( bearerTokenAuthenticationPolicy({ credential, scopes: `${options.baseUrl || "https://atlas.microsoft.com"}/.default`, - }) + }), ); client.pipeline.addPolicy(createMapsClientIdPolicy(clientId)); return client; diff --git a/sdk/maps/maps-geolocation-rest/test/public/MapsGeolocation.spec.ts b/sdk/maps/maps-geolocation-rest/test/public/MapsGeolocation.spec.ts index c863d804ac50..cc02a9efd279 100644 --- a/sdk/maps/maps-geolocation-rest/test/public/MapsGeolocation.spec.ts +++ b/sdk/maps/maps-geolocation-rest/test/public/MapsGeolocation.spec.ts @@ -45,7 +45,7 @@ describe("Authentication", function () { const client = MapsGeolocation( credential, env["MAPS_RESOURCE_CLIENT_ID"] as string, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); const response = await client @@ -77,7 +77,7 @@ describe("Endpoint can be overwritten", function () { it("should be executed with different baseUrl", async function () { const client = createClient( - recorder.configureClientOptions({ baseUrl: "https://us.atlas.microsoft.com/" }) + recorder.configureClientOptions({ baseUrl: "https://us.atlas.microsoft.com/" }), ); const response = await client .path("/geolocation/ip/{format}", "json") diff --git a/sdk/maps/maps-render-rest/package.json b/sdk/maps/maps-render-rest/package.json index 28c6f87d3d7a..b419c0100d3f 100644 --- a/sdk/maps/maps-render-rest/package.json +++ b/sdk/maps/maps-render-rest/package.json @@ -38,11 +38,11 @@ "build:samples": "dev-tool samples publish --force", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -75,7 +75,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^1.0.4", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/maps/maps-render-rest/samples-dev/getMapTileset.ts b/sdk/maps/maps-render-rest/samples-dev/getMapTileset.ts index 55ac58c7f7a4..0b95197b7a6f 100644 --- a/sdk/maps/maps-render-rest/samples-dev/getMapTileset.ts +++ b/sdk/maps/maps-render-rest/samples-dev/getMapTileset.ts @@ -43,7 +43,7 @@ async function main() { const { maxzoom, minzoom, bounds = [] } = response.body; console.log(`The zoom range started from ${minzoom} to ${maxzoom}`); console.log( - `The left bound is ${bounds[0]}, bottom bound is ${bounds[1]}, right bound is ${bounds[2]}, and top bound is ${bounds[3]}` + `The left bound is ${bounds[0]}, bottom bound is ${bounds[1]}, right bound is ${bounds[2]}, and top bound is ${bounds[3]}`, ); } diff --git a/sdk/maps/maps-render-rest/src/mapsRender.ts b/sdk/maps/maps-render-rest/src/mapsRender.ts index 40f1dec94384..f57dc5794f4b 100644 --- a/sdk/maps/maps-render-rest/src/mapsRender.ts +++ b/sdk/maps/maps-render-rest/src/mapsRender.ts @@ -30,7 +30,7 @@ import createClient from "./generated/mapsRenderClient"; */ export default function MapsRender( credential: AzureKeyCredential, - options?: ClientOptions + options?: ClientOptions, ): MapsRenderClient; /** * Creates an instance of MapsRender from an Azure Identity `TokenCredential`. @@ -51,7 +51,7 @@ export default function MapsRender( export default function MapsRender( credential: TokenCredential, mapsAccountClientId: string, - options?: ClientOptions + options?: ClientOptions, ): MapsRenderClient; /** * Creates an instance of MapsRender from an Azure Identity `AzureSASCredential`. @@ -70,12 +70,12 @@ export default function MapsRender( */ export default function MapsRender( credential: AzureSASCredential, - options?: ClientOptions + options?: ClientOptions, ): MapsRenderClient; export default function MapsRender( credential: TokenCredential | AzureKeyCredential | AzureSASCredential, clientIdOrOptions: string | ClientOptions = {}, - maybeOptions: ClientOptions = {} + maybeOptions: ClientOptions = {}, ): MapsRenderClient { const options = typeof clientIdOrOptions === "string" ? maybeOptions : clientIdOrOptions; @@ -94,7 +94,7 @@ export default function MapsRender( bearerTokenAuthenticationPolicy({ credential, scopes: `${options.baseUrl || "https://atlas.microsoft.com"}/.default`, - }) + }), ); client.pipeline.addPolicy(createMapsClientIdPolicy(clientId)); return client; diff --git a/sdk/maps/maps-render-rest/src/positionToTileXY.ts b/sdk/maps/maps-render-rest/src/positionToTileXY.ts index 4b530a6fc9e8..d76dc65fcd14 100644 --- a/sdk/maps/maps-render-rest/src/positionToTileXY.ts +++ b/sdk/maps/maps-render-rest/src/positionToTileXY.ts @@ -34,7 +34,7 @@ const MAX_LONGITUDE = 180; export function positionToTileXY( position: LatLon, zoom: number, - tileSize: "512" | "256" + tileSize: "512" | "256", ): { x: number; y: number } { const latitude = clip(position[0], MIN_LATITUDE, MAX_LATITUDE); const longitude = clip(position[1], MIN_LONGITUDE, MAX_LONGITUDE); diff --git a/sdk/maps/maps-render-rest/test/public/createPathQuery.spec.ts b/sdk/maps/maps-render-rest/test/public/createPathQuery.spec.ts index 901f2eab6a94..06c4ac3b8d4d 100644 --- a/sdk/maps/maps-render-rest/test/public/createPathQuery.spec.ts +++ b/sdk/maps/maps-render-rest/test/public/createPathQuery.spec.ts @@ -64,7 +64,7 @@ describe("create path query helper", () => { const path = createPathQuery([circularPath, linearPath, polygonPath]); assert.equal( path, - "lc000000|la0.9|lw2|ra10000||13.228 52.4559&path=lc000000|la0.9|lw2||13.35 52.577|13.2988 52.6|13.2988 52.32&path=lc000000|la0.9|lw2|fcFFFFFF|fa0.8||13.35 52.577|13.2988 52.6|13.2988 52.32|13.35 52.577" + "lc000000|la0.9|lw2|ra10000||13.228 52.4559&path=lc000000|la0.9|lw2||13.35 52.577|13.2988 52.6|13.2988 52.32&path=lc000000|la0.9|lw2|fcFFFFFF|fa0.8||13.35 52.577|13.2988 52.6|13.2988 52.32|13.35 52.577", ); const res = await client.path("/map/static/{format}", "png").get({ diff --git a/sdk/maps/maps-render-rest/test/public/createPinsQuery.spec.ts b/sdk/maps/maps-render-rest/test/public/createPinsQuery.spec.ts index 9e5194282e6d..63669e89f28a 100644 --- a/sdk/maps/maps-render-rest/test/public/createPinsQuery.spec.ts +++ b/sdk/maps/maps-render-rest/test/public/createPinsQuery.spec.ts @@ -70,7 +70,7 @@ describe("create pins query helper", () => { assert.equal( pinsQuery, - "default||'A'13.35 52.577|13.2988 52.6&pins=default|coFFFFFF||'A'13.35 52.577|13.2988 52.6&pins=none|coFFFFFF||'A'13.35 52.577|13.2988 52.6&pins=custom|coFFFFFF||'A'13.35 52.577|13.2988 52.6||http://contoso.com/pushpins/red.png" + "default||'A'13.35 52.577|13.2988 52.6&pins=default|coFFFFFF||'A'13.35 52.577|13.2988 52.6&pins=none|coFFFFFF||'A'13.35 52.577|13.2988 52.6&pins=custom|coFFFFFF||'A'13.35 52.577|13.2988 52.6||http://contoso.com/pushpins/red.png", ); /* We don't test custom pin E2E since we have no reliable image source */ @@ -106,7 +106,7 @@ describe("create pins query helper", () => { assert.equal( pinsQuery, - "default|al0.8|la10 4|lc000000|ls10|an0 0|ro90|sc2|co123456||13.35 52.577" + "default|al0.8|la10 4|lc000000|ls10|an0 0|ro90|sc2|co123456||13.35 52.577", ); const res = await client.path("/map/static/{format}", "png").get({ diff --git a/sdk/maps/maps-render-rest/test/public/mapsRender.spec.ts b/sdk/maps/maps-render-rest/test/public/mapsRender.spec.ts index 25a42b51b515..2606ed0fdbf7 100644 --- a/sdk/maps/maps-render-rest/test/public/mapsRender.spec.ts +++ b/sdk/maps/maps-render-rest/test/public/mapsRender.spec.ts @@ -43,7 +43,7 @@ describe("Authentication", function () { const client = MapsRender( credential, env["MAPS_RESOURCE_CLIENT_ID"] as string, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); const response = await client.path("/map/copyright/caption/{format}", "json").get(); @@ -71,7 +71,7 @@ describe("Endpoint can be overwritten", function () { it("should be executed with different baseUrl", async function () { const client = createClient( - recorder.configureClientOptions({ baseUrl: "https://us.atlas.microsoft.com/" }) + recorder.configureClientOptions({ baseUrl: "https://us.atlas.microsoft.com/" }), ); const response = await client.path("/map/copyright/caption/{format}", "json").get(); diff --git a/sdk/maps/maps-route-rest/package.json b/sdk/maps/maps-route-rest/package.json index 5b6912cbdbe9..3a6314d7fc41 100644 --- a/sdk/maps/maps-route-rest/package.json +++ b/sdk/maps/maps-route-rest/package.json @@ -61,11 +61,11 @@ "build:samples": "dev-tool samples publish --force", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -99,7 +99,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^1.0.4", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/maps/maps-route-rest/samples-dev/directions.ts b/sdk/maps/maps-route-rest/samples-dev/directions.ts index 803c953a24a1..f8419460ca15 100644 --- a/sdk/maps/maps-route-rest/samples-dev/directions.ts +++ b/sdk/maps/maps-route-rest/samples-dev/directions.ts @@ -73,13 +73,13 @@ async function main() { getRouteDirectionsResult.body.routes.forEach(({ summary, legs }) => { console.log( - `The total distance is ${summary.lengthInMeters} meters, and it takes ${summary.travelTimeInSeconds} seconds.` + `The total distance is ${summary.lengthInMeters} meters, and it takes ${summary.travelTimeInSeconds} seconds.`, ); legs.forEach(({ summary, points }, idx) => { console.log( `The ${idx + 1}th leg's length is ${summary.lengthInMeters} meters, and it takes ${ summary.travelTimeInSeconds - } seconds. Followings are the first 10 points: ` + } seconds. Followings are the first 10 points: `, ); console.table(points.slice(0, 10)); }); @@ -131,13 +131,13 @@ async function main() { getRouteDirectionsResult.body.routes.forEach(({ summary, legs }) => { console.log( - `The total distance is ${summary.lengthInMeters} meters, and it takes ${summary.travelTimeInSeconds} seconds.` + `The total distance is ${summary.lengthInMeters} meters, and it takes ${summary.travelTimeInSeconds} seconds.`, ); legs.forEach(({ summary, points }, idx) => { console.log( `The ${idx + 1}th leg's length is ${summary.lengthInMeters} meters, and it takes ${ summary.travelTimeInSeconds - } seconds. Followings are the first 10 points: ` + } seconds. Followings are the first 10 points: `, ); console.table(points.slice(0, 10)); }); @@ -196,13 +196,13 @@ async function main() { console.log(`Request ${index} success!`); item.response.routes.forEach(({ summary, legs }) => { console.log( - `The total distance is ${summary.lengthInMeters} meters, and it takes ${summary.travelTimeInSeconds} seconds.` + `The total distance is ${summary.lengthInMeters} meters, and it takes ${summary.travelTimeInSeconds} seconds.`, ); legs.forEach(({ summary, points }, idx) => { console.log( `The ${idx + 1}th leg's length is ${summary.lengthInMeters} meters, and it takes ${ summary.travelTimeInSeconds - } seconds. Followings are the first 10 points: ` + } seconds. Followings are the first 10 points: `, ); console.table(points.slice(0, 10)); }); diff --git a/sdk/maps/maps-route-rest/samples-dev/lro.ts b/sdk/maps/maps-route-rest/samples-dev/lro.ts index 2be71ce4a380..4a124e6d31d3 100644 --- a/sdk/maps/maps-route-rest/samples-dev/lro.ts +++ b/sdk/maps/maps-route-rest/samples-dev/lro.ts @@ -84,13 +84,13 @@ function logBatchResponse(result: RouteGetRouteDirectionsBatch200Response) { console.log(`Request ${index} success!`); item.response.routes.forEach(({ summary, legs }) => { console.log( - `The total distance is ${summary.lengthInMeters} meters, and it takes ${summary.travelTimeInSeconds} seconds.` + `The total distance is ${summary.lengthInMeters} meters, and it takes ${summary.travelTimeInSeconds} seconds.`, ); legs.forEach(({ summary, points }, idx) => { console.log( `The ${idx + 1}th leg's length is ${summary.lengthInMeters} meters, and it takes ${ summary.travelTimeInSeconds - } seconds. Followings are the first 10 points: ` + } seconds. Followings are the first 10 points: `, ); console.table(points.slice(0, 10)); }); diff --git a/sdk/maps/maps-route-rest/samples-dev/matrix.ts b/sdk/maps/maps-route-rest/samples-dev/matrix.ts index da8c05b76aa0..6e8cdf5ddb54 100644 --- a/sdk/maps/maps-route-rest/samples-dev/matrix.ts +++ b/sdk/maps/maps-route-rest/samples-dev/matrix.ts @@ -70,7 +70,7 @@ async function main() { const { summary, matrix } = (routeMatrixResult as RouteGetRouteMatrix200Response).body; console.log( - `${summary.successfulRoutes}/${summary.totalRoutes} routes are successfully calculated. Following is the detailed info:` + `${summary.successfulRoutes}/${summary.totalRoutes} routes are successfully calculated. Following is the detailed info:`, ); matrix.forEach((row) => { row.forEach((cell) => { diff --git a/sdk/maps/maps-route-rest/samples-dev/resumeLro.ts b/sdk/maps/maps-route-rest/samples-dev/resumeLro.ts index df4d660e7149..d86d6cc98230 100644 --- a/sdk/maps/maps-route-rest/samples-dev/resumeLro.ts +++ b/sdk/maps/maps-route-rest/samples-dev/resumeLro.ts @@ -91,13 +91,13 @@ async function main() { console.log(`Request ${index} success!`); item.response.routes.forEach(({ summary, legs }) => { console.log( - `The total distance is ${summary.lengthInMeters} meters, and it takes ${summary.travelTimeInSeconds} seconds.` + `The total distance is ${summary.lengthInMeters} meters, and it takes ${summary.travelTimeInSeconds} seconds.`, ); legs.forEach(({ summary, points }, idx) => { console.log( `The ${idx + 1}th leg's length is ${summary.lengthInMeters} meters, and it takes ${ summary.travelTimeInSeconds - } seconds. Followings are the first 10 points: ` + } seconds. Followings are the first 10 points: `, ); console.table(points.slice(0, 10)); }); diff --git a/sdk/maps/maps-route-rest/src/helpers.ts b/sdk/maps/maps-route-rest/src/helpers.ts index 7c328c88be21..249769d6c8ff 100644 --- a/sdk/maps/maps-route-rest/src/helpers.ts +++ b/sdk/maps/maps-route-rest/src/helpers.ts @@ -26,7 +26,7 @@ export function toColonDelimitedLatLonString(coordinates: LatLon[]): string { * @returns The composed batch request. */ export function createRouteDirectionsBatchRequest( - queryParamProperties: RouteGetRouteDirectionsQueryParamProperties[] + queryParamProperties: RouteGetRouteDirectionsQueryParamProperties[], ): BatchRequest { return { batchItems: queryParamProperties.map((queryParam) => ({ diff --git a/sdk/maps/maps-route-rest/src/mapsRoute.ts b/sdk/maps/maps-route-rest/src/mapsRoute.ts index 6221e35c1a33..5f6dcfda585c 100644 --- a/sdk/maps/maps-route-rest/src/mapsRoute.ts +++ b/sdk/maps/maps-route-rest/src/mapsRoute.ts @@ -31,7 +31,7 @@ import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline"; */ export default function MapsRoute( credential: AzureKeyCredential, - options?: ClientOptions + options?: ClientOptions, ): MapsRouteClient; /** * Creates an instance of MapsRoute from an Azure Identity `TokenCredential`. @@ -52,7 +52,7 @@ export default function MapsRoute( export default function MapsRoute( credential: TokenCredential, mapsAccountClientId: string, - options?: ClientOptions + options?: ClientOptions, ): MapsRouteClient; /** * Creates an instance of MapsRoute from an Azure Identity `AzureSASCredential`. @@ -71,12 +71,12 @@ export default function MapsRoute( */ export default function MapsRoute( credential: AzureSASCredential, - options?: ClientOptions + options?: ClientOptions, ): MapsRouteClient; export default function MapsRoute( credential: TokenCredential | AzureKeyCredential | AzureSASCredential, clientIdOrOptions: string | ClientOptions = {}, - maybeOptions: ClientOptions = {} + maybeOptions: ClientOptions = {}, ): MapsRouteClient { const options = typeof clientIdOrOptions === "string" ? maybeOptions : clientIdOrOptions; @@ -95,7 +95,7 @@ export default function MapsRoute( bearerTokenAuthenticationPolicy({ credential, scopes: `${options.baseUrl || "https://atlas.microsoft.com"}/.default`, - }) + }), ); client.pipeline.addPolicy(createMapsClientIdPolicy(clientId)); return client; diff --git a/sdk/maps/maps-route-rest/test/public/mapsRouteClient.spec.ts b/sdk/maps/maps-route-rest/test/public/mapsRouteClient.spec.ts index ceff18998cdf..2cffef3b7267 100644 --- a/sdk/maps/maps-route-rest/test/public/mapsRouteClient.spec.ts +++ b/sdk/maps/maps-route-rest/test/public/mapsRouteClient.spec.ts @@ -55,7 +55,7 @@ describe("Endpoint can be overwritten", function (this: Suite) { it("should be executed with different baseUrl", async function () { const client = createClient( - recorder.configureClientOptions({ baseUrl: "https://us.atlas.microsoft.com/" }) + recorder.configureClientOptions({ baseUrl: "https://us.atlas.microsoft.com/" }), ); const routeDirectionsResult = await client.path("/route/directions/{format}", "json").get({ queryParameters: { diff --git a/sdk/maps/maps-search-rest/package.json b/sdk/maps/maps-search-rest/package.json index b01233e12372..644fb7fe008b 100644 --- a/sdk/maps/maps-search-rest/package.json +++ b/sdk/maps/maps-search-rest/package.json @@ -38,11 +38,11 @@ "build:samples": "dev-tool samples publish --force", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -76,7 +76,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^1.0.4", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/maps/maps-search-rest/src/MapsSearch.ts b/sdk/maps/maps-search-rest/src/MapsSearch.ts index 0a92f8fccf85..46c12dd5c1ba 100644 --- a/sdk/maps/maps-search-rest/src/MapsSearch.ts +++ b/sdk/maps/maps-search-rest/src/MapsSearch.ts @@ -31,7 +31,7 @@ import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline"; */ export default function MapsSearch( credential: AzureKeyCredential, - options?: ClientOptions + options?: ClientOptions, ): MapsSearchClient; /** * Creates an instance of MapsSearch from an Azure Identity `TokenCredential`. @@ -52,7 +52,7 @@ export default function MapsSearch( export default function MapsSearch( credential: TokenCredential, mapsAccountClientId: string, - options?: ClientOptions + options?: ClientOptions, ): MapsSearchClient; /** * Creates an instance of MapsSearch from an Azure Identity `AzureSASCredential`. @@ -71,12 +71,12 @@ export default function MapsSearch( */ export default function MapsSearch( credential: AzureSASCredential, - options?: ClientOptions + options?: ClientOptions, ): MapsSearchClient; export default function MapsSearch( credential: TokenCredential | AzureKeyCredential | AzureSASCredential, clientIdOrOptions: string | ClientOptions = {}, - maybeOptions: ClientOptions = {} + maybeOptions: ClientOptions = {}, ): MapsSearchClient { const options = typeof clientIdOrOptions === "string" ? maybeOptions : clientIdOrOptions; @@ -95,7 +95,7 @@ export default function MapsSearch( bearerTokenAuthenticationPolicy({ credential, scopes: `${options.baseUrl || "https://atlas.microsoft.com"}/.default`, - }) + }), ); client.pipeline.addPolicy(createMapsClientIdPolicy(clientId)); return client; diff --git a/sdk/maps/maps-search-rest/test/public/MapsSearch.spec.ts b/sdk/maps/maps-search-rest/test/public/MapsSearch.spec.ts index cbda79e9d7c5..dee5d7c28bc4 100644 --- a/sdk/maps/maps-search-rest/test/public/MapsSearch.spec.ts +++ b/sdk/maps/maps-search-rest/test/public/MapsSearch.spec.ts @@ -43,7 +43,7 @@ describe("Authentication", function () { const client = MapsSearch( credential, env["MAPS_RESOURCE_CLIENT_ID"] as string, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); const response = await client.path("/geocode").get({ queryParameters: { query: "Starbucks" } }); @@ -70,7 +70,7 @@ describe("Endpoint can be overwritten", function () { it("should be executed with different baseUrl", async function () { const client = createClient( - recorder.configureClientOptions({ baseUrl: "https://us.atlas.microsoft.com/" }) + recorder.configureClientOptions({ baseUrl: "https://us.atlas.microsoft.com/" }), ); const response = await client.path("/geocode").get({ queryParameters: { query: "Starbucks" } }); assert.isOk(!isUnexpected(response)); @@ -191,13 +191,13 @@ describe("/reverseGeocode", function () { // "The provided coordinates in query are invalid, out of range, or not in the expected format" assert.isTrue( isUnexpected( - await client.path("/reverseGeocode").get({ queryParameters: { coordinates: [121, -100] } }) - ) + await client.path("/reverseGeocode").get({ queryParameters: { coordinates: [121, -100] } }), + ), ); assert.isTrue( isUnexpected( - await client.path("/reverseGeocode").get({ queryParameters: { coordinates: [250, 25] } }) - ) + await client.path("/reverseGeocode").get({ queryParameters: { coordinates: [250, 25] } }), + ), ); }); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/package.json b/sdk/metricsadvisor/ai-metrics-advisor/package.json index a006763966ad..34001d14b0ba 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/package.json +++ b/sdk/metricsadvisor/ai-metrics-advisor/package.json @@ -56,11 +56,11 @@ "build:samples": "echo Obsolete.", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm dist-browser dist-test dist-test temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md", "integration-test:browser": "echo skipped", "integration-test:browser:real": "dev-tool run test:browser", @@ -121,7 +121,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "ts-node": "^10.0.0", diff --git a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/alertingConfig.ts b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/alertingConfig.ts index ae5b7489ae50..afc65aa2dc1f 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/alertingConfig.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/alertingConfig.ts @@ -49,7 +49,7 @@ export async function main() { // create a new alerting configuration async function createAlertConfig( adminClient: MetricsAdvisorAdministrationClient, - detectionConfigId: string + detectionConfigId: string, ) { console.log("Creating a new alerting configuration..."); const alertConfig: Omit = { @@ -83,7 +83,7 @@ async function updateAlertConfig( adminClient: MetricsAdvisorAdministrationClient, alertConfigId: string, detectionConfigId: string, - hookIds: string[] + hookIds: string[], ) { const patch: Omit = { name: "new Name", @@ -116,7 +116,7 @@ async function updateAlertConfig( async function deleteAlertConfig( adminClient: MetricsAdvisorAdministrationClient, - alertConfigId: string + alertConfigId: string, ) { console.log(`Deleting alerting configuration ${alertConfigId}`); await adminClient.deleteAlertConfig(alertConfigId); @@ -124,7 +124,7 @@ async function deleteAlertConfig( async function listAlertConfig( adminClient: MetricsAdvisorAdministrationClient, - detectdionConfigId: string + detectdionConfigId: string, ) { console.log(`Listing alert configurations for detection configuration ${detectdionConfigId}`); let i = 1; diff --git a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/dataFeed.ts b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/dataFeed.ts index fc82594ed618..8be8e9292028 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/dataFeed.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/dataFeed.ts @@ -72,7 +72,7 @@ async function listDataFeeds(client: MetricsAdvisorAdministrationClient) { } async function createDataFeed( - client: MetricsAdvisorAdministrationClient + client: MetricsAdvisorAdministrationClient, ): Promise { console.log("Creating Datafeed..."); const feed: DataFeedDescriptor = { diff --git a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/dataSourceCredential.ts b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/dataSourceCredential.ts index 2fb61be4783d..d03968bc0a5e 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/dataSourceCredential.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/dataSourceCredential.ts @@ -51,7 +51,7 @@ async function listDataSourceCredentials(client: MetricsAdvisorAdministrationCli const iterator = client.listDataSourceCredential(); for await (const datasourceCredential of iterator) { console.log( - `id :${datasourceCredential.id}, name: ${datasourceCredential.name}, type: ${datasourceCredential.type}` + `id :${datasourceCredential.id}, name: ${datasourceCredential.name}, type: ${datasourceCredential.type}`, ); } @@ -72,7 +72,7 @@ async function listDataSourceCredentials(client: MetricsAdvisorAdministrationCli } async function createDataSourceCredential( - client: MetricsAdvisorAdministrationClient + client: MetricsAdvisorAdministrationClient, ): Promise { console.log("Creating DataSource credential..."); const datasourceCredential: DataSourceSqlConnectionString = { @@ -88,7 +88,7 @@ async function createDataSourceCredential( async function getDataSourceCredential( client: MetricsAdvisorAdministrationClient, - datasourceCredentialId: string + datasourceCredentialId: string, ) { console.log("Retrieving datasourceCredential by id..."); const result = await client.getDataSourceCredential(datasourceCredentialId); @@ -100,7 +100,7 @@ async function getDataSourceCredential( async function updateDataSourceCredential( client: MetricsAdvisorAdministrationClient, - credentialId: string + credentialId: string, ) { const patch = { name: "update-credential-name", @@ -121,7 +121,7 @@ async function updateDataSourceCredential( async function deleteDataSourceCredential( client: MetricsAdvisorAdministrationClient, - credentialId: string + credentialId: string, ) { console.log(`Deleting datasource credential ${credentialId}...`); await client.deleteDataSourceCredential(credentialId); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/detectionConfig.ts b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/detectionConfig.ts index 7942263b3b63..3a63daba44fd 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/detectionConfig.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/detectionConfig.ts @@ -54,7 +54,7 @@ export async function main() { async function getDetectionConfig( adminClient: MetricsAdvisorAdministrationClient, - detectionConfigId: string + detectionConfigId: string, ) { console.log("Retrieving an existing detection configuration..."); const result = await adminClient.getDetectionConfig(detectionConfigId); @@ -65,7 +65,7 @@ async function getDetectionConfig( // create a new detection configuration async function createDetectionConfig( adminClient: MetricsAdvisorAdministrationClient, - metricId: string + metricId: string, ) { const wholeSeriesDetectionCondition: MetricDetectionCondition = { conditionOperator: "AND", @@ -130,7 +130,7 @@ async function createDetectionConfig( // updating an detection configuration async function updateDetectionConfig( adminClient: MetricsAdvisorAdministrationClient, - configId: string + configId: string, ) { const patch: Omit = { name: "new Name", @@ -183,7 +183,7 @@ async function updateDetectionConfig( async function deleteDetectionConfig( adminClient: MetricsAdvisorAdministrationClient, - detectionConfigId: string + detectionConfigId: string, ) { console.log(`Deleting detection configuration '${detectionConfigId}'`); await adminClient.deleteDetectionConfig(detectionConfigId); @@ -191,7 +191,7 @@ async function deleteDetectionConfig( async function listDetectionConfig( adminClient: MetricsAdvisorAdministrationClient, - metricId: string + metricId: string, ) { console.log(`Listing detection configurations for metric '${metricId}'...`); let i = 1; diff --git a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/incidentsAndAlerts.ts b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/incidentsAndAlerts.ts index 9d2bb6fd8701..0a3c99b90ad8 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/incidentsAndAlerts.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/incidentsAndAlerts.ts @@ -39,13 +39,13 @@ export async function main() { async function listAnomalyDimensionValues(client: MetricsAdvisorClient, detectionConfigId: string) { const dimensionName = "city"; console.log( - `Listing anomaly dimension values for detection config ${detectionConfigId} and dimension ${dimensionName}` + `Listing anomaly dimension values for detection config ${detectionConfigId} and dimension ${dimensionName}`, ); const listIterator = await client.listAnomalyDimensionValues( detectionConfigId, new Date("10/22/2020"), new Date("10/24/2020"), - dimensionName + dimensionName, ); for await (const dimensionValue of listIterator) { console.log(dimensionValue); @@ -57,7 +57,7 @@ async function listAnomalyDimensionValues(client: MetricsAdvisorClient, detectio detectionConfigId, new Date("10/22/2020"), new Date("10/24/2020"), - dimensionName + dimensionName, ) .byPage({ maxPageSize: 20 }); let result = await iterator.next(); @@ -72,7 +72,7 @@ async function listAnomalyDimensionValues(client: MetricsAdvisorClient, detectio async function listIncidentsForDetectionConfig( client: MetricsAdvisorClient, - detectionConfigId: string + detectionConfigId: string, ) { console.log(`Listing incidents for detection config '${detectionConfigId}'`); console.log(" using for-await-of syntax"); @@ -82,7 +82,7 @@ async function listIncidentsForDetectionConfig( new Date("10/24/2020"), { seriesGroupKeys: [{ city: "Manila", category: "Shoes Handbags & Sunglasses" }], - } + }, ); for await (const incident of listIterator) { console.log(" Incident"); @@ -100,7 +100,7 @@ async function listIncidentsForDetectionConfig( .listIncidentsForDetectionConfiguration( detectionConfigId, new Date("10/22/2020"), - new Date("10/24/2020") + new Date("10/24/2020"), ) .byPage({ maxPageSize: 20 }); let result = await iterator.next(); @@ -122,7 +122,7 @@ async function listIncidentsForDetectionConfig( async function listAnomaliesForDetectionConfig( client: MetricsAdvisorClient, - detectionConfigId: string + detectionConfigId: string, ) { console.log(`Listing anomalies for detection config '${detectionConfigId}'`); const listIterator = client.listAnomaliesForDetectionConfiguration( @@ -131,7 +131,7 @@ async function listAnomaliesForDetectionConfig( new Date("10/24/2020"), { severityFilter: { min: "Medium", max: "High" }, - } + }, ); console.log(" using for-await-of syntax"); for await (const anomaly of listIterator) { @@ -153,7 +153,7 @@ async function listAnomaliesForDetectionConfig( new Date("10/24/2020"), { severityFilter: { min: "Medium", max: "High" }, - } + }, ) .byPage({ maxPageSize: 20 }); let result = await iterator.next(); @@ -177,7 +177,7 @@ async function listAnomaliesForDetectionConfig( async function getRootCauses( client: MetricsAdvisorClient, detectionConfigId: string, - incidentId: string + incidentId: string, ) { console.log("Retrieving root causes..."); const result = await client.getIncidentRootCauses(detectionConfigId, incidentId); @@ -197,7 +197,7 @@ async function listAlerts(client: MetricsAdvisorClient, alertConfigId: string) { alertConfigId, new Date("11/01/2020"), new Date("11/05/2020"), - "AnomalyTime" + "AnomalyTime", ); for await (const alert of listIterator) { console.log(" Alert"); @@ -226,10 +226,10 @@ async function listAlerts(client: MetricsAdvisorClient, alertConfigId: string) { async function listIncidentsForAlert( client: MetricsAdvisorClient, alertConfigId: string, - alertId: string + alertId: string, ) { console.log( - `Listing incidents for alert configuration '${alertConfigId}' and alert '${alertId}'` + `Listing incidents for alert configuration '${alertConfigId}' and alert '${alertId}'`, ); console.log(" using for-await-of syntax"); const listIterator = client.listIncidentsForAlert({ alertConfigId, id: alertId }); @@ -268,10 +268,10 @@ async function listIncidentsForAlert( async function listAnomaliesForAlert( client: MetricsAdvisorClient, alertConfigId: string, - alertId: string + alertId: string, ) { console.log( - `Listing anomalies for alert configuration '${alertConfigId}' and alert '${alertId}'` + `Listing anomalies for alert configuration '${alertConfigId}' and alert '${alertId}'`, ); console.log(" using for-await-of syntax"); const listIterator = client.listAnomaliesForAlert({ alertConfigId, id: alertId }); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/ingestionStatus.ts b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/ingestionStatus.ts index 403af0c5246b..336d861fa89a 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/ingestionStatus.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/ingestionStatus.ts @@ -40,7 +40,7 @@ async function listIngestionStatus( adminClient: MetricsAdvisorAdministrationClient, dataFeedId: string, startTime: Date, - endTime: Date + endTime: Date, ) { console.log("Listing ingestion status..."); // iterate through all ingestions using for-await-of @@ -76,7 +76,7 @@ async function listIngestionStatus( async function getIngestionProgress( adminClient: MetricsAdvisorAdministrationClient, - dataFeedId: string + dataFeedId: string, ) { console.log("Getting ingestion progress..."); const result = await adminClient.getDataFeedIngestionProgress(dataFeedId); @@ -87,7 +87,7 @@ async function refreshIngestion( adminClient: MetricsAdvisorAdministrationClient, dataFeedId: string, startTime: Date, - endTime: Date + endTime: Date, ) { console.log("Resetting ingestion status..."); await adminClient.refreshDataFeedIngestion(dataFeedId, startTime, endTime); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/metricFeedback.ts b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/metricFeedback.ts index cfd3b0c97b9b..9c9df52e11e9 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/metricFeedback.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/metricFeedback.ts @@ -140,7 +140,7 @@ async function listFeedback(client: MetricsAdvisorClient, metricId: string) { if (feedback.feedbackType === "Anomaly") { console.log(` feedback value: ${feedback.value}`); console.log( - ` anomaly detection config id: ${feedback.anomalyDetectionConfigurationId}` + ` anomaly detection config id: ${feedback.anomalyDetectionConfigurationId}`, ); } else if (feedback.feedbackType === "ChangePoint") { console.log(` feedback value: ${feedback.value}`); @@ -162,7 +162,7 @@ async function listFeedback(client: MetricsAdvisorClient, metricId: string) { if (feedback.feedbackType === "Anomaly") { console.log(` feedback value: ${feedback.value}`); console.log( - ` anomaly detection config id: ${feedback.anomalyDetectionConfigurationId}` + ` anomaly detection config id: ${feedback.anomalyDetectionConfigurationId}`, ); } else if (feedback.feedbackType === "ChangePoint") { console.log(` feedback value: ${feedback.value}`); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/metricQueries.ts b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/metricQueries.ts index 814a23f789f7..d7075f93aa16 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/metricQueries.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/metricQueries.ts @@ -61,7 +61,7 @@ async function listEnrichmentStatus(client: MetricsAdvisorClient, metricId: stri const listIterator = client.listMetricEnrichmentStatus( metricId, new Date("10/22/2020"), - new Date("10/24/2020") + new Date("10/24/2020"), ); for await (const status of listIterator) { console.log(" Enrichment status"); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/quickstart.ts b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/quickstart.ts index 090f9d29829b..5f6850461aa6 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/quickstart.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/quickstart.ts @@ -52,7 +52,7 @@ export async function main() { adminClient, created.id, new Date(Date.UTC(2020, 8, 1)), - new Date(Date.UTC(2020, 8, 12)) + new Date(Date.UTC(2020, 8, 12)), ); const metricId = created.schema.metrics[0].id!; @@ -72,7 +72,7 @@ export async function main() { client, alertConfig.id!, new Date(Date.UTC(2020, 8, 1)), - new Date(Date.UTC(2020, 8, 12)) + new Date(Date.UTC(2020, 8, 12)), ); if (alerts.length > 1) { @@ -90,7 +90,7 @@ export async function main() { async function createDataFeed( adminClient: MetricsAdvisorAdministrationClient, sqlServerConnectionString: string, - sqlServerQuery: string + sqlServerQuery: string, ): Promise { console.log("Creating Datafeed..."); const dataFeed: DataFeedDescriptor = { @@ -150,7 +150,7 @@ async function checkIngestionStatus( adminClient: MetricsAdvisorAdministrationClient, datafeedId: string, startTime: Date, - endTime: Date + endTime: Date, ) { // This shows how to use for-await-of syntax to list status console.log("Checking ingestion status..."); @@ -162,7 +162,7 @@ async function checkIngestionStatus( async function configureAnomalyDetectionConfiguration( adminClient: MetricsAdvisorAdministrationClient, - metricId: string + metricId: string, ) { console.log(`Creating an anomaly detection configuration on metric '${metricId}'...`); const anomalyConfig: Omit = { @@ -204,7 +204,7 @@ async function createWebhookHook(adminClient: MetricsAdvisorAdministrationClient async function configureAlertConfiguration( adminClient: MetricsAdvisorAdministrationClient, detectionConfigId: string, - hookIds: string[] + hookIds: string[], ) { console.log("Creating a new alerting configuration..."); const anomalyAlert: Omit = { @@ -239,7 +239,7 @@ async function queryAlerts( client: MetricsAdvisorClient, alertConfigId: string, startTime: Date, - endTime: Date + endTime: Date, ) { console.log(`Listing alerts for alert configuration '${alertConfigId}'`); // This shows how to use `for-await-of` syntax to list alerts @@ -275,12 +275,12 @@ async function queryAlerts( async function queryAnomaliesByAlert(client: MetricsAdvisorClient, alert: AnomalyAlert) { console.log( - `Listing anomalies for alert configuration '${alert.alertConfigId}' and alert '${alert.id}'` + `Listing anomalies for alert configuration '${alert.alertConfigId}' and alert '${alert.id}'`, ); const listIterator = client.listAnomaliesForAlert(alert); for await (const anomaly of listIterator) { console.log( - ` Anomaly ${anomaly.severity} ${anomaly.status} ${anomaly.seriesKey.dimension} ${anomaly.timestamp}` + ` Anomaly ${anomaly.severity} ${anomaly.status} ${anomaly.seriesKey.dimension} ${anomaly.timestamp}`, ); } } diff --git a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/seriesData.ts b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/seriesData.ts index 3e88f76a920d..393ac787cd8d 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/seriesData.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/samples-dev/seriesData.ts @@ -41,7 +41,7 @@ async function getEnrichedSeriesData(client: MetricsAdvisorClient, detectionConf { city: "Shanghai", category: "Shoes Handbags & Sunglasses" }, ], new Date("09/01/2020"), - new Date("09/12/2020") + new Date("09/12/2020"), ); for (const enriched of result) { @@ -76,7 +76,7 @@ async function getMetricSeriesData(client: MetricsAdvisorClient, metricId: strin { city: "Shanghai", category: "Shoes Handbags & Sunglasses" }, ], new Date("09/01/2020"), - new Date("09/12/2020") + new Date("09/12/2020"), ); for (const series of result) { diff --git a/sdk/metricsadvisor/ai-metrics-advisor/src/metricsAdvisorAdministrationClient.ts b/sdk/metricsadvisor/ai-metrics-advisor/src/metricsAdvisorAdministrationClient.ts index 6c7fa1e61531..0ce08104d91f 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/src/metricsAdvisorAdministrationClient.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/src/metricsAdvisorAdministrationClient.ts @@ -179,7 +179,7 @@ export class MetricsAdvisorAdministrationClient { constructor( endpointUrl: string, credential: TokenCredential | MetricsAdvisorKeyCredential, - options: MetricsAdvisorAdministrationClientOptions = {} + options: MetricsAdvisorAdministrationClientOptions = {}, ) { this.endpointUrl = endpointUrl; const internalPipelineOptions: InternalPipelineOptions = { @@ -205,7 +205,7 @@ export class MetricsAdvisorAdministrationClient { */ public async createDataFeed( feed: DataFeedDescriptor, - operationOptions: CreateDataFeedOptions = {} + operationOptions: CreateDataFeedOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-createDataFeed", @@ -233,10 +233,10 @@ export class MetricsAdvisorAdministrationClient { rollupSettings?.rollupType === "AutoRollup" ? "NeedRollup" : rollupSettings?.rollupType === "AlreadyRollup" - ? "AlreadyRollup" - : rollupSettings?.rollupType === "NoRollup" - ? "NoRollup" - : undefined; + ? "AlreadyRollup" + : rollupSettings?.rollupType === "NoRollup" + ? "NoRollup" + : undefined; const rollUpColumns: string[] | undefined = rollupSettings?.rollupType === "AutoRollup" ? rollupSettings.autoRollupGroupByColumnNames @@ -285,7 +285,7 @@ export class MetricsAdvisorAdministrationClient { const lastSlashIndex = result.location.lastIndexOf("/"); const feedId = result.location.substring(lastSlashIndex + 1); return this.getDataFeed(feedId); - } + }, ); } @@ -296,7 +296,7 @@ export class MetricsAdvisorAdministrationClient { */ public async getDataFeed( id: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-getDataFeed", @@ -305,7 +305,7 @@ export class MetricsAdvisorAdministrationClient { const result = await this.client.getDataFeedById(id, finalOptions); const resultDataFeed: MetricsAdvisorDataFeed = fromServiceDataFeedDetailUnion(result); return resultDataFeed; - } + }, ); } @@ -362,7 +362,7 @@ export class MetricsAdvisorAdministrationClient { * @param options - The options parameter. */ public listDataFeeds( - options: ListDataFeedsOptions = {} + options: ListDataFeedsOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listItemsOfDataFeeds(options); return { @@ -384,14 +384,14 @@ export class MetricsAdvisorAdministrationClient { ...options, maxPageSize: settings.maxPageSize, }, - settings.continuationToken + settings.continuationToken, ); }, }; } private async *listItemsOfDataFeeds( - options: ListDataFeedsOptions + options: ListDataFeedsOptions, ): AsyncIterableIterator { for await (const segment of this.listSegmentsOfDataFeeds(options)) { if (segment) { @@ -402,7 +402,7 @@ export class MetricsAdvisorAdministrationClient { private async *listSegmentsOfDataFeeds( options: ListDataFeedsOptions & { maxPageSize?: number }, - continuationToken?: string + continuationToken?: string, ): AsyncIterableIterator { let segmentResponse; if (continuationToken === undefined) { @@ -454,7 +454,7 @@ export class MetricsAdvisorAdministrationClient { public async updateDataFeed( dataFeedId: string, patch: DataFeedPatch, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-updateDataFeed", @@ -496,7 +496,7 @@ export class MetricsAdvisorAdministrationClient { const result = await this.client.updateDataFeed(dataFeedId, patchBody, finalOptions); const resultDataFeed: MetricsAdvisorDataFeed = fromServiceDataFeedDetailUnion(result); return resultDataFeed; - } + }, ); } @@ -515,7 +515,7 @@ export class MetricsAdvisorAdministrationClient { ...options, }); return { _response: response.rawResponse }; - } + }, ); } @@ -527,7 +527,7 @@ export class MetricsAdvisorAdministrationClient { */ public async createDetectionConfig( config: Omit, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-createDetectionConfig", @@ -536,7 +536,7 @@ export class MetricsAdvisorAdministrationClient { const transformed = toServiceAnomalyDetectionConfiguration(config); const result = await this.client.createAnomalyDetectionConfiguration( transformed, - finalOptions + finalOptions, ); if (!result.location) { throw new Error("Expected a valid location to retrieve the created configuration"); @@ -544,7 +544,7 @@ export class MetricsAdvisorAdministrationClient { const lastSlashIndex = result.location.lastIndexOf("/"); const configId = result.location.substring(lastSlashIndex + 1); return this.getDetectionConfig(configId); - } + }, ); } @@ -556,7 +556,7 @@ export class MetricsAdvisorAdministrationClient { public async getDetectionConfig( id: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-getDetectionConfig", @@ -564,7 +564,7 @@ export class MetricsAdvisorAdministrationClient { async (finalOptions) => { const result = await this.client.getAnomalyDetectionConfiguration(id, finalOptions); return fromServiceAnomalyDetectionConfiguration(result); - } + }, ); } @@ -578,7 +578,7 @@ export class MetricsAdvisorAdministrationClient { public async updateDetectionConfig( id: string, patch: AnomalyDetectionConfigurationPatch, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-updateDetectionConfig", @@ -588,10 +588,10 @@ export class MetricsAdvisorAdministrationClient { const result = await this.client.updateAnomalyDetectionConfiguration( id, transformed, - finalOptions + finalOptions, ); return fromServiceAnomalyDetectionConfiguration(result); - } + }, ); } @@ -603,7 +603,7 @@ export class MetricsAdvisorAdministrationClient { public async deleteDetectionConfig( id: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-deleteDetectionConfig", @@ -613,10 +613,10 @@ export class MetricsAdvisorAdministrationClient { () => this.client.deleteAnomalyDetectionConfiguration(id, finalOptions), { ...options, - } + }, ); return { _response: response.rawResponse }; - } + }, ); } @@ -627,7 +627,7 @@ export class MetricsAdvisorAdministrationClient { */ public async createAlertConfig( config: Omit, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-createAlertConfig", @@ -636,7 +636,7 @@ export class MetricsAdvisorAdministrationClient { const transformed = toServiceAlertConfiguration(config); const result = await this.client.createAnomalyAlertingConfiguration( transformed, - finalOptions + finalOptions, ); if (!result.location) { throw new Error("Expected a valid location to retrieve the created configuration"); @@ -644,7 +644,7 @@ export class MetricsAdvisorAdministrationClient { const lastSlashIndex = result.location.lastIndexOf("/"); const configId = result.location.substring(lastSlashIndex + 1); return this.getAlertConfig(configId); - } + }, ); } @@ -657,7 +657,7 @@ export class MetricsAdvisorAdministrationClient { public async updateAlertConfig( id: string, patch: Partial>, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-updateAlertConfig", @@ -667,10 +667,10 @@ export class MetricsAdvisorAdministrationClient { const result = await this.client.updateAnomalyAlertingConfiguration( id, transformed, - finalOptions + finalOptions, ); return fromServiceAlertConfiguration(result); - } + }, ); } @@ -682,7 +682,7 @@ export class MetricsAdvisorAdministrationClient { public async getAlertConfig( id: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-getAlertConfig", @@ -690,7 +690,7 @@ export class MetricsAdvisorAdministrationClient { async (finalOptions) => { const result = await this.client.getAnomalyAlertingConfiguration(id, finalOptions); return fromServiceAlertConfiguration(result); - } + }, ); } @@ -702,7 +702,7 @@ export class MetricsAdvisorAdministrationClient { public async deleteAlertConfig( id: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-deleteAlertConfig", @@ -712,22 +712,22 @@ export class MetricsAdvisorAdministrationClient { () => this.client.deleteAnomalyAlertingConfiguration(id, finalOptions), { ...options, - } + }, ); return { _response: response.rawResponse }; - } + }, ); } private async *listSegmentsOfAlertingConfigurations( detectionConfigId: string, - options: OperationOptions & { maxPageSize?: number } = {} + options: OperationOptions & { maxPageSize?: number } = {}, ): AsyncIterableIterator { // Service doesn't support server-side paging now const segment = await this.client.getAnomalyAlertingConfigurationsByAnomalyDetectionConfiguration( detectionConfigId, - options + options, ); const alertConfigurations = segment.value?.map((c) => fromServiceAlertConfiguration(c)) ?? []; @@ -736,11 +736,11 @@ export class MetricsAdvisorAdministrationClient { private async *listItemsOfAlertingConfigurations( detectionConfigId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): AsyncIterableIterator { for await (const segment of this.listSegmentsOfAlertingConfigurations( detectionConfigId, - options + options, )) { if (segment) { yield* segment; @@ -801,7 +801,7 @@ export class MetricsAdvisorAdministrationClient { public listAlertConfigs( detectionConfigId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): PagedAsyncIterableIterator< AnomalyAlertConfiguration, AlertConfigurationsPageResponse, @@ -841,7 +841,7 @@ export class MetricsAdvisorAdministrationClient { */ public async createHook( hookInfo: EmailNotificationHook | WebNotificationHook, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-createHook", @@ -857,7 +857,7 @@ export class MetricsAdvisorAdministrationClient { admins, hookParameter, } as HookInfoUnion, - finalOptions + finalOptions, ); if (!result.location) { throw new Error("Expected a valid location to retrieve the created configuration"); @@ -865,7 +865,7 @@ export class MetricsAdvisorAdministrationClient { const lastSlashIndex = result.location.lastIndexOf("/"); const hookId = result.location.substring(lastSlashIndex + 1); return this.getHook(hookId); - } + }, ); } @@ -883,14 +883,14 @@ export class MetricsAdvisorAdministrationClient { const result = await this.client.getHook(id, finalOptions); const resultHookResponse: NotificationHookUnion = fromServiceHookInfoUnion(result); return resultHookResponse; - } + }, ); } private async *listSegmentOfHooks( continuationToken?: string, maxPageSize?: number, - options: ListHooksOptions = {} + options: ListHooksOptions = {}, ): AsyncIterableIterator { let segmentResponse; if (continuationToken === undefined) { @@ -922,7 +922,7 @@ export class MetricsAdvisorAdministrationClient { } private async *listItemsOfHooks( - options: ListHooksOptions = {} + options: ListHooksOptions = {}, ): AsyncIterableIterator { for await (const segment of this.listSegmentOfHooks(undefined, undefined, options)) { yield* segment; @@ -980,7 +980,7 @@ export class MetricsAdvisorAdministrationClient { */ public listHooks( - options: ListHooksOptions = {} + options: ListHooksOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listItemsOfHooks(options); return { @@ -1014,7 +1014,7 @@ export class MetricsAdvisorAdministrationClient { public async updateHook( id: string, patch: EmailNotificationHookPatch | WebNotificationHookPatch, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-updateHook", @@ -1023,7 +1023,7 @@ export class MetricsAdvisorAdministrationClient { const result = await this.client.updateHook(id, patch, finalOptions); const resultHookResponse: NotificationHookUnion = fromServiceHookInfoUnion(result); return resultHookResponse; - } + }, ); } @@ -1041,13 +1041,13 @@ export class MetricsAdvisorAdministrationClient { ...options, }); return { _response: response.rawResponse }; - } + }, ); } private async *listSegmentsOfDetectionConfigurations( metricId: string, - options: OperationOptions & { maxPageSize?: number } = {} + options: OperationOptions & { maxPageSize?: number } = {}, ): AsyncIterableIterator { // Service doesn't support server-side paging now const segment = await this.client.getAnomalyDetectionConfigurationsByMetric(metricId, options); @@ -1058,11 +1058,11 @@ export class MetricsAdvisorAdministrationClient { private async *listItemsOfDetectionConfigurations( detectionConfigId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): AsyncIterableIterator { for await (const segment of this.listSegmentsOfDetectionConfigurations( detectionConfigId, - options + options, )) { if (segment) { yield* segment; @@ -1124,7 +1124,7 @@ export class MetricsAdvisorAdministrationClient { public listDetectionConfigs( metricId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): PagedAsyncIterableIterator< AnomalyDetectionConfiguration, DetectionConfigurationsPageResponse, @@ -1164,7 +1164,7 @@ export class MetricsAdvisorAdministrationClient { public async getDataFeedIngestionProgress( dataFeedId: string, - options = {} + options = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-getDataFeedIngestionProgress", @@ -1175,7 +1175,7 @@ export class MetricsAdvisorAdministrationClient { latestActiveTimestamp: response.latestActiveTimestamp?.getTime(), latestSuccessTimestamp: response.latestSuccessTimestamp?.getTime(), }; - } + }, ); } @@ -1184,7 +1184,7 @@ export class MetricsAdvisorAdministrationClient { startTime: Date, endTime: Date, continuationToken?: string, - options: ListDataFeedIngestionStatusOptions & { maxPageSize?: number } = {} + options: ListDataFeedIngestionStatusOptions & { maxPageSize?: number } = {}, ): AsyncIterableIterator { let segmentResponse; if (continuationToken === undefined) { @@ -1197,7 +1197,7 @@ export class MetricsAdvisorAdministrationClient { { ...options, maxpagesize: options?.maxPageSize, - } + }, ); const resultArray = Object.defineProperty( segmentResponse.value?.map((s) => { @@ -1211,7 +1211,7 @@ export class MetricsAdvisorAdministrationClient { { enumerable: true, value: segmentResponse.nextLink, - } + }, ); yield resultArray; @@ -1227,7 +1227,7 @@ export class MetricsAdvisorAdministrationClient { startTime, endTime, }, - options + options, ); const resultArray = Object.defineProperty( @@ -1242,7 +1242,7 @@ export class MetricsAdvisorAdministrationClient { { enumerable: true, value: segmentResponse.nextLink, - } + }, ); yield resultArray; @@ -1254,14 +1254,14 @@ export class MetricsAdvisorAdministrationClient { dataFeedId: string, startTime: Date, endTime: Date, - options: OperationOptions = {} + options: OperationOptions = {}, ): AsyncIterableIterator { for await (const segment of this.listSegmentOfIngestionStatus( dataFeedId, startTime, endTime, undefined, - options + options, )) { if (segment) { yield* segment; @@ -1326,13 +1326,13 @@ export class MetricsAdvisorAdministrationClient { dataFeedId: string, startTime: Date | string, endTime: Date | string, - options: ListDataFeedIngestionStatusOptions = {} + options: ListDataFeedIngestionStatusOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listItemsOfIngestionStatus( dataFeedId, typeof startTime === "string" ? new Date(startTime) : startTime, typeof endTime === "string" ? new Date(endTime) : endTime, - options + options, ); return { /** @@ -1359,7 +1359,7 @@ export class MetricsAdvisorAdministrationClient { { ...options, maxPageSize: settings.maxPageSize, - } + }, ); }, }; @@ -1377,7 +1377,7 @@ export class MetricsAdvisorAdministrationClient { dataFeedId: string, startTime: Date | string, endTime: Date | string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-refreshDataFeedIngestion", @@ -1391,15 +1391,15 @@ export class MetricsAdvisorAdministrationClient { startTime: typeof startTime === "string" ? new Date(startTime) : startTime, endTime: typeof endTime === "string" ? new Date(endTime) : endTime, }, - finalOptions + finalOptions, ), { ...options, - } + }, ); logger.info(response); return { _response: response.rawResponse }; - } + }, ); } @@ -1410,7 +1410,7 @@ export class MetricsAdvisorAdministrationClient { */ public async createDataSourceCredential( dataSourceCredential: DataSourceCredentialEntityUnion, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-createDataSourceCredential", @@ -1425,7 +1425,7 @@ export class MetricsAdvisorAdministrationClient { const lastSlashIndex = result.location.lastIndexOf("/"); const credEntityId = result.location.substring(lastSlashIndex + 1); return this.getDataSourceCredential(credEntityId); - } + }, ); } @@ -1437,7 +1437,7 @@ export class MetricsAdvisorAdministrationClient { public async getDataSourceCredential( id: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-getDataSourceCredential", @@ -1446,7 +1446,7 @@ export class MetricsAdvisorAdministrationClient { const result = await this.client.getCredential(id, finalOptions); const resultCred = fromServiceCredential(result); return resultCred; - } + }, ); } @@ -1498,7 +1498,7 @@ export class MetricsAdvisorAdministrationClient { * ``` */ public listDataSourceCredential( - options: ListDataSourceCredentialsOptions = {} + options: ListDataSourceCredentialsOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listItemsOfDataSourceCredentials(options); return { @@ -1520,14 +1520,14 @@ export class MetricsAdvisorAdministrationClient { ...options, maxPageSize: settings.maxPageSize, }, - settings.continuationToken + settings.continuationToken, ); }, }; } private async *listItemsOfDataSourceCredentials( - options: ListDataSourceCredentialsOptions + options: ListDataSourceCredentialsOptions, ): AsyncIterableIterator { for await (const segment of this.listSegmentsOfCredentialEntities(options)) { if (segment) { @@ -1538,7 +1538,7 @@ export class MetricsAdvisorAdministrationClient { private async *listSegmentsOfCredentialEntities( options: ListDataSourceCredentialsOptions & { maxPageSize?: number }, - continuationToken?: string + continuationToken?: string, ): AsyncIterableIterator { let segmentResponse; if (continuationToken === undefined) { @@ -1586,7 +1586,7 @@ export class MetricsAdvisorAdministrationClient { public async updateDataSourceCredential( id: string, patch: DataSourceCredentialPatch, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-updateDataSourceCredential", @@ -1595,11 +1595,11 @@ export class MetricsAdvisorAdministrationClient { const result = await this.client.updateCredential( id, toServiceCredentialPatch(patch), - finalOptions + finalOptions, ); const resultCred = fromServiceCredential(result); return resultCred; - } + }, ); } @@ -1610,7 +1610,7 @@ export class MetricsAdvisorAdministrationClient { */ public async deleteDataSourceCredential( id: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorAdministrationClient-deleteDataSourceCredential", @@ -1620,10 +1620,10 @@ export class MetricsAdvisorAdministrationClient { () => this.client.deleteCredential(id, finalOptions), { ...options, - } + }, ); return { _response: response.rawResponse }; - } + }, ); } } @@ -1633,7 +1633,7 @@ interface ReturnType { } async function getRawResponse( f: (options: TOptions) => Promise, - options: TOptions + options: TOptions, ): Promise> { // renaming onResponse received from customer to customerProvidedCallback const { onResponse: customerProvidedCallback } = options || {}; diff --git a/sdk/metricsadvisor/ai-metrics-advisor/src/metricsAdvisorClient.ts b/sdk/metricsadvisor/ai-metrics-advisor/src/metricsAdvisorClient.ts index 9951d7ed95dd..aa123df931ea 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/src/metricsAdvisorClient.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/src/metricsAdvisorClient.ts @@ -210,7 +210,7 @@ export class MetricsAdvisorClient { constructor( endpointUrl: string, credential: TokenCredential | MetricsAdvisorKeyCredential, - options: MetricsAdvisorClientOptions = {} + options: MetricsAdvisorClientOptions = {}, ) { this.endpointUrl = endpointUrl; const internalPipelineOptions: InternalPipelineOptions = { @@ -238,7 +238,7 @@ export class MetricsAdvisorClient { timeMode: AlertQueryTimeMode, continuationToken?: string, maxPageSize?: number, - options: ListAlertsOptions = {} + options: ListAlertsOptions = {}, ): AsyncIterableIterator { let segmentResponse; const optionsBody = { @@ -253,7 +253,7 @@ export class MetricsAdvisorClient { { ...options, maxpagesize: maxPageSize, - } + }, ); const alerts = segmentResponse.value?.map((a) => { return { @@ -278,7 +278,7 @@ export class MetricsAdvisorClient { segmentResponse = await this.client.getAlertsByAnomalyAlertingConfigurationNext( continuationToken, optionsBody, - options + options, ); const alerts = segmentResponse.value?.map((a) => { return { @@ -306,7 +306,7 @@ export class MetricsAdvisorClient { startTime: Date, endTime: Date, timeMode: AlertQueryTimeMode, - options: ListAlertsOptions + options: ListAlertsOptions, ): AsyncIterableIterator { for await (const segment of this.listSegmentOfAlerts( alertConfigId, @@ -315,7 +315,7 @@ export class MetricsAdvisorClient { timeMode, undefined, undefined, - options + options, )) { if (segment) { yield* segment; @@ -384,14 +384,14 @@ export class MetricsAdvisorClient { startTime: Date | string, endTime: Date | string, timeMode: AlertQueryTimeMode, - options: ListAlertsOptions = {} + options: ListAlertsOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listItemsOfAlerts( alertConfigId, typeof startTime === "string" ? new Date(startTime) : startTime, typeof endTime === "string" ? new Date(endTime) : endTime, timeMode, - options + options, ); return { /** @@ -417,7 +417,7 @@ export class MetricsAdvisorClient { timeMode, settings.continuationToken, settings.maxPageSize, - options + options, ); }, }; @@ -431,7 +431,7 @@ export class MetricsAdvisorClient { alertId: string, continuationToken?: string, maxPageSize?: number, - options: ListAnomaliesForAlertConfigurationOptions = {} + options: ListAnomaliesForAlertConfigurationOptions = {}, ): AsyncIterableIterator { let segmentResponse; if (continuationToken === undefined) { @@ -441,7 +441,7 @@ export class MetricsAdvisorClient { { skip: options.skip, maxpagesize: maxPageSize, - } + }, ); const anomalies = segmentResponse.value?.map((a) => { return { @@ -473,7 +473,7 @@ export class MetricsAdvisorClient { { ...options, maxpagesize: maxPageSize, - } + }, ); const anomalies = segmentResponse.value?.map((a) => { return { @@ -502,14 +502,14 @@ export class MetricsAdvisorClient { private async *listItemsOfAnomaliesForAlert( alertConfigId: string, alertId: string, - options: ListAnomaliesForAlertConfigurationOptions & { maxPageSize?: number } = {} + options: ListAnomaliesForAlertConfigurationOptions & { maxPageSize?: number } = {}, ): AsyncIterableIterator { for await (const segment of this.listSegmentsOfAnomaliesForAlert( alertConfigId, alertId, undefined, undefined, - options + options, )) { if (segment) { yield* segment; @@ -569,7 +569,7 @@ export class MetricsAdvisorClient { public listAnomaliesForAlert( alert: AnomalyAlert, - options: ListAnomaliesForAlertConfigurationOptions = {} + options: ListAnomaliesForAlertConfigurationOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listItemsOfAnomaliesForAlert(alert.alertConfigId, alert.id, options); return { @@ -594,7 +594,7 @@ export class MetricsAdvisorClient { alert.id, settings.continuationToken, settings.maxPageSize, - options + options, ); }, }; @@ -608,7 +608,7 @@ export class MetricsAdvisorClient { alertId: string, continuationToken?: string, maxPageSize?: number, - options: ListIncidentsForAlertOptions = {} + options: ListIncidentsForAlertOptions = {}, ): AsyncIterableIterator { let segmentResponse; if (continuationToken === undefined) { @@ -618,7 +618,7 @@ export class MetricsAdvisorClient { { ...options, maxpagesize: maxPageSize, - } + }, ); const incidents = segmentResponse.value?.map((incident) => { return { @@ -650,7 +650,7 @@ export class MetricsAdvisorClient { { ...options, maxpagesize: maxPageSize, - } + }, ); const incidents = segmentResponse.value?.map((incident) => { return { @@ -680,14 +680,14 @@ export class MetricsAdvisorClient { private async *listItemsOfIncidentsForAlert( alertConfigId: string, alertId: string, - options: ListIncidentsForAlertOptions = {} + options: ListIncidentsForAlertOptions = {}, ): AsyncIterableIterator { for await (const segment of this.listSegmentsOfIncidentsForAlert( alertConfigId, alertId, undefined, undefined, - options + options, )) { if (segment) { yield* segment; @@ -746,7 +746,7 @@ export class MetricsAdvisorClient { */ public listIncidentsForAlert( alert: AnomalyAlert, - options: ListIncidentsForAlertOptions = {} + options: ListIncidentsForAlertOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listItemsOfIncidentsForAlert(alert.alertConfigId, alert.id, options); return { @@ -771,7 +771,7 @@ export class MetricsAdvisorClient { alert.id, settings.continuationToken, settings.maxPageSize, - options + options, ); }, }; @@ -791,7 +791,7 @@ export class MetricsAdvisorClient { seriesKey: DimensionKey[], startTime: Date | string, endTime: Date | string, - options: GetMetricEnrichedSeriesDataOptions = {} + options: GetMetricEnrichedSeriesDataOptions = {}, ): Promise { const optionsBody = { startTime: typeof startTime === "string" ? new Date(startTime) : startTime, @@ -803,7 +803,7 @@ export class MetricsAdvisorClient { const result = await this.client.getSeriesByAnomalyDetectionConfiguration( detectionConfigId, optionsBody, - options + options, ); const results = result.value.map((d) => { return { @@ -830,7 +830,7 @@ export class MetricsAdvisorClient { endTime: Date, maxPageSize?: number, continuationToken?: string, - options: ListAnomaliesForDetectionConfigurationOptions = {} + options: ListAnomaliesForDetectionConfigurationOptions = {}, ): AsyncIterableIterator { let segmentResponse; const optionsBody = { @@ -853,7 +853,7 @@ export class MetricsAdvisorClient { { ...options, maxpagesize: maxPageSize, - } + }, ); const anomalies = segmentResponse.value?.map((a) => { return { @@ -881,7 +881,7 @@ export class MetricsAdvisorClient { segmentResponse = await this.client.getAnomaliesByAnomalyDetectionConfigurationNext( continuationToken, optionsBody, - options + options, ); continuationToken = segmentResponse.nextLink; const anomalies = segmentResponse.value?.map((a) => { @@ -911,7 +911,7 @@ export class MetricsAdvisorClient { detectionConfigId: string, startTime: Date, endTime: Date, - options: ListAnomaliesForDetectionConfigurationOptions + options: ListAnomaliesForDetectionConfigurationOptions, ): AsyncIterableIterator { for await (const segment of this.listSegmentsOfAnomaliesForDetectionConfig( detectionConfigId, @@ -919,7 +919,7 @@ export class MetricsAdvisorClient { endTime, undefined, undefined, - options + options, )) { if (segment) { yield* segment; @@ -984,7 +984,7 @@ export class MetricsAdvisorClient { detectionConfigId: string, startTime: Date | string, endTime: Date | string, - options: ListAnomaliesForDetectionConfigurationOptions = {} + options: ListAnomaliesForDetectionConfigurationOptions = {}, ): PagedAsyncIterableIterator { const start: Date = typeof startTime === "string" ? new Date(startTime) : startTime; const end: Date = typeof endTime === "string" ? new Date(endTime) : endTime; @@ -992,7 +992,7 @@ export class MetricsAdvisorClient { detectionConfigId, start, end, - options + options, ); return { /** @@ -1017,7 +1017,7 @@ export class MetricsAdvisorClient { end, settings.maxPageSize, settings.continuationToken, - options + options, ); }, }; @@ -1031,7 +1031,7 @@ export class MetricsAdvisorClient { dimensionName: string, continuationToken?: string, maxPageSize?: number, - options: ListAnomalyDimensionValuesOptions = {} + options: ListAnomalyDimensionValuesOptions = {}, ): AsyncIterableIterator { let segmentResponse; const optionsBody = { @@ -1048,7 +1048,7 @@ export class MetricsAdvisorClient { { ...options, maxpagesize: maxPageSize, - } + }, ); const resultArray = Object.defineProperty(segmentResponse.value, "continuationToken", { enumerable: true, @@ -1066,7 +1066,7 @@ export class MetricsAdvisorClient { await this.client.getDimensionOfAnomaliesByAnomalyDetectionConfigurationNext( continuationToken, optionsBody, - options + options, ); const resultArray = Object.defineProperty(segmentResponse.value, "continuationToken", { enumerable: true, @@ -1084,7 +1084,7 @@ export class MetricsAdvisorClient { startTime: Date, endTime: Date, dimensionName: string, - options: ListAnomalyDimensionValuesOptions + options: ListAnomalyDimensionValuesOptions, ): AsyncIterableIterator { for await (const segment of this.listSegmentsOfAnomalyDimensionValues( detectionConfigId, @@ -1093,7 +1093,7 @@ export class MetricsAdvisorClient { dimensionName, undefined, undefined, - options + options, )) { if (segment) { yield* segment; @@ -1164,14 +1164,14 @@ export class MetricsAdvisorClient { startTime: Date | string, endTime: Date | string, dimensionName: string, - options: ListAnomalyDimensionValuesOptions = {} + options: ListAnomalyDimensionValuesOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listItemsOfAnomalyDimensionValues( detectionConfigId, typeof startTime === "string" ? new Date(startTime) : startTime, typeof endTime === "string" ? new Date(endTime) : endTime, dimensionName, - options + options, ); return { /** @@ -1197,7 +1197,7 @@ export class MetricsAdvisorClient { dimensionName, settings.continuationToken, settings.maxPageSize, - options + options, ); }, }; @@ -1210,7 +1210,7 @@ export class MetricsAdvisorClient { endTime: Date, continuationToken?: string, maxPageSize?: number, - options: ListIncidentsForDetectionConfigurationOptions = {} + options: ListIncidentsForDetectionConfigurationOptions = {}, ): AsyncIterableIterator { let segmentResponse; const optionsBody = { @@ -1229,7 +1229,7 @@ export class MetricsAdvisorClient { { ...options, maxpagesize: maxPageSize, - } + }, ); const incidents = segmentResponse.value?.map((incident) => { return { @@ -1260,7 +1260,7 @@ export class MetricsAdvisorClient { { ...options, maxpagesize: maxPageSize, - } + }, ); const incidents = segmentResponse.value?.map((incident) => { return { @@ -1289,7 +1289,7 @@ export class MetricsAdvisorClient { detectionConfigId: string, startTime: Date, endTime: Date, - options: ListIncidentsForDetectionConfigurationOptions + options: ListIncidentsForDetectionConfigurationOptions, ): AsyncIterableIterator { for await (const segment of this.listSegmentsOfIncidentsForDetectionConfig( detectionConfigId, @@ -1297,7 +1297,7 @@ export class MetricsAdvisorClient { endTime, undefined, undefined, - options + options, )) { if (segment) { yield* segment; @@ -1362,7 +1362,7 @@ export class MetricsAdvisorClient { detectionConfigId: string, startTime: Date | string, endTime: Date | string, - options: ListIncidentsForDetectionConfigurationOptions = {} + options: ListIncidentsForDetectionConfigurationOptions = {}, ): PagedAsyncIterableIterator { const start: Date = typeof startTime === "string" ? new Date(startTime) : startTime; const end: Date = typeof endTime === "string" ? new Date(endTime) : endTime; @@ -1370,7 +1370,7 @@ export class MetricsAdvisorClient { detectionConfigId, start, end, - options + options, ); return { /** @@ -1395,7 +1395,7 @@ export class MetricsAdvisorClient { end, settings.continuationToken, settings.maxPageSize, - options + options, ); }, }; @@ -1411,7 +1411,7 @@ export class MetricsAdvisorClient { public async getIncidentRootCauses( detectionConfigId: string, incidentId: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorClient-getIncidentRootCauses", @@ -1420,7 +1420,7 @@ export class MetricsAdvisorClient { const result = await this.client.getRootCauseOfIncidentByAnomalyDetectionConfiguration( detectionConfigId, incidentId, - finalOptions + finalOptions, ); const transformed = result.value?.map((r) => { return { @@ -1433,7 +1433,7 @@ export class MetricsAdvisorClient { return { rootCauses: transformed, }; - } + }, ); } @@ -1446,7 +1446,7 @@ export class MetricsAdvisorClient { */ public async addFeedback( feedback: MetricFeedbackUnion, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorClient-addFeedback", @@ -1460,7 +1460,7 @@ export class MetricsAdvisorClient { const lastSlashIndex = result.location.lastIndexOf("/"); const feedbackId = result.location.substring(lastSlashIndex + 1); return this.getFeedback(feedbackId); - } + }, ); } @@ -1471,7 +1471,7 @@ export class MetricsAdvisorClient { */ public async getFeedback( id: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "MetricsAdvisorClient-getFeedback", @@ -1479,7 +1479,7 @@ export class MetricsAdvisorClient { async (finalOptions) => { const result = await this.client.getMetricFeedback(id, finalOptions); return fromServiceMetricFeedbackUnion(result); - } + }, ); } @@ -1487,7 +1487,7 @@ export class MetricsAdvisorClient { metricId: string, continuationToken?: string, maxPageSize?: number, - options: ListFeedbackOptions = {} + options: ListFeedbackOptions = {}, ): AsyncIterableIterator { let segmentResponse; const startTime = @@ -1529,7 +1529,7 @@ export class MetricsAdvisorClient { segmentResponse = await this.client.listMetricFeedbacksNext( continuationToken, optionsBody, - options + options, ); const feedbacks = segmentResponse.value?.map((feedback) => { return fromServiceMetricFeedbackUnion(feedback); @@ -1546,13 +1546,13 @@ export class MetricsAdvisorClient { private async *listItemsOfFeedback( metricId: string, - options: ListFeedbackOptions = {} + options: ListFeedbackOptions = {}, ): AsyncIterableIterator { for await (const segment of this.listSegmentsOfFeedback( metricId, undefined, undefined, - options + options, )) { if (segment) { yield* segment; @@ -1612,7 +1612,7 @@ export class MetricsAdvisorClient { */ public listFeedback( metricId: string, - options: ListFeedbackOptions = {} + options: ListFeedbackOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listItemsOfFeedback(metricId, options); return { @@ -1636,7 +1636,7 @@ export class MetricsAdvisorClient { metricId, settings.continuationToken, settings.maxPageSize, - options + options, ); }, }; @@ -1657,7 +1657,7 @@ export class MetricsAdvisorClient { seriesKey: DimensionKey[], startTime: Date | string, endTime: Date | string, - options: GetMetricSeriesDataOptions = {} + options: GetMetricSeriesDataOptions = {}, ): Promise { const optionsBody = { startTime: typeof startTime === "string" ? new Date(startTime) : startTime, @@ -1682,7 +1682,7 @@ export class MetricsAdvisorClient { activeSince: Date, continuationToken?: string, maxPageSize?: number, - options: ListMetricSeriesDefinitionsOptions = {} + options: ListMetricSeriesDefinitionsOptions = {}, ): AsyncIterableIterator { let segmentResponse; const optionsBody = { @@ -1715,7 +1715,7 @@ export class MetricsAdvisorClient { segmentResponse = await this.client.getMetricSeriesNext( continuationToken, optionsBody, - options + options, ); const definitions = segmentResponse.value?.map((d) => { return { @@ -1736,14 +1736,14 @@ export class MetricsAdvisorClient { private async *listItemsOfMetricSeriesDefinitions( metricId: string, activeSince: Date, - options: ListMetricSeriesDefinitionsOptions + options: ListMetricSeriesDefinitionsOptions, ): AsyncIterableIterator { for await (const segment of this.listSegmentsOfMetricSeriesDefinitions( metricId, activeSince, undefined, undefined, - options + options, )) { if (segment) { yield* segment; @@ -1804,12 +1804,12 @@ export class MetricsAdvisorClient { public listMetricSeriesDefinitions( metricId: string, activeSince: Date | string, - options: ListMetricSeriesDefinitionsOptions = {} + options: ListMetricSeriesDefinitionsOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listItemsOfMetricSeriesDefinitions( metricId, typeof activeSince === "string" ? new Date(activeSince) : activeSince, - options + options, ); return { /** @@ -1833,7 +1833,7 @@ export class MetricsAdvisorClient { typeof activeSince === "string" ? new Date(activeSince) : activeSince, settings.continuationToken, settings.maxPageSize, - options + options, ); }, }; @@ -1844,7 +1844,7 @@ export class MetricsAdvisorClient { dimensionName: string, continuationToken?: string, maxPageSize?: number, - options: ListMetricDimensionValuesOptions = {} + options: ListMetricDimensionValuesOptions = {}, ): AsyncIterableIterator { let segmentResponse; const optionsBody = { @@ -1871,7 +1871,7 @@ export class MetricsAdvisorClient { segmentResponse = await this.client.getMetricDimensionNext( continuationToken, optionsBody, - options + options, ); const resultArray = Object.defineProperty(segmentResponse.value || [], "continuationToken", { enumerable: true, @@ -1886,14 +1886,14 @@ export class MetricsAdvisorClient { private async *listItemsOfMetricDimensionValues( metricId: string, dimensionName: string, - options: ListMetricDimensionValuesOptions + options: ListMetricDimensionValuesOptions, ): AsyncIterableIterator { for await (const segment of this.listSegmentsOfMetricDimensionValues( metricId, dimensionName, undefined, undefined, - options + options, )) { if (segment) { yield* segment; @@ -1953,7 +1953,7 @@ export class MetricsAdvisorClient { */ public listMetricDimensionValues( metricId: string, dimensionName: string, - options: ListMetricDimensionValuesOptions = {} + options: ListMetricDimensionValuesOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listItemsOfMetricDimensionValues(metricId, dimensionName, options); @@ -1979,7 +1979,7 @@ export class MetricsAdvisorClient { dimensionName, settings.continuationToken, settings.maxPageSize, - options + options, ); }, }; @@ -1991,7 +1991,7 @@ export class MetricsAdvisorClient { endTime: Date, continuationToken?: string, maxPageSize?: number, - options: ListMetricEnrichmentStatusOptions = {} + options: ListMetricEnrichmentStatusOptions = {}, ): AsyncIterableIterator { let segmentResponse; const optionsBody = { @@ -2015,7 +2015,7 @@ export class MetricsAdvisorClient { { enumerable: true, value: segmentResponse.nextLink, - } + }, ); yield resultArray; continuationToken = segmentResponse.nextLink; @@ -2027,7 +2027,7 @@ export class MetricsAdvisorClient { segmentResponse = await this.client.getEnrichmentStatusByMetricNext( continuationToken, optionsBody, - options + options, ); const resultArray = Object.defineProperty( segmentResponse.value?.map((s) => { @@ -2041,7 +2041,7 @@ export class MetricsAdvisorClient { { enumerable: true, value: segmentResponse.nextLink, - } + }, ); yield resultArray; @@ -2053,7 +2053,7 @@ export class MetricsAdvisorClient { metricId: string, startTime: Date, endTime: Date, - options: ListMetricEnrichmentStatusOptions + options: ListMetricEnrichmentStatusOptions, ): AsyncIterableIterator { for await (const segment of this.listSegmentsOfMetricEnrichmentStatus( metricId, @@ -2061,7 +2061,7 @@ export class MetricsAdvisorClient { endTime, undefined, undefined, - options + options, )) { if (segment) { yield* segment; @@ -2125,13 +2125,13 @@ export class MetricsAdvisorClient { metricId: string, startTime: Date | string, endTime: Date | string, - options: ListMetricEnrichmentStatusOptions = {} + options: ListMetricEnrichmentStatusOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listItemsOfMetricEnrichmentStatus( metricId, typeof startTime === "string" ? new Date(startTime) : startTime, typeof endTime === "string" ? new Date(endTime) : endTime, - options + options, ); return { /** @@ -2156,7 +2156,7 @@ export class MetricsAdvisorClient { typeof endTime === "string" ? new Date(endTime) : endTime, settings.continuationToken, settings.maxPageSize, - options + options, ); }, }; diff --git a/sdk/metricsadvisor/ai-metrics-advisor/src/metricsAdvisorKeyCredentialPolicy.ts b/sdk/metricsadvisor/ai-metrics-advisor/src/metricsAdvisorKeyCredentialPolicy.ts index 0b753f38825f..c624589a11ba 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/src/metricsAdvisorKeyCredentialPolicy.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/src/metricsAdvisorKeyCredentialPolicy.ts @@ -89,7 +89,7 @@ export class MetricsAdvisorKeyCredential { * using an `MetricsAdvisorKeyCredential` */ export function createMetricsAdvisorKeyCredentialPolicy( - credential: MetricsAdvisorKeyCredential + credential: MetricsAdvisorKeyCredential, ): PipelinePolicy { return { name: "metricsAdvisorKeyCredentialPolicy", diff --git a/sdk/metricsadvisor/ai-metrics-advisor/src/transforms.ts b/sdk/metricsadvisor/ai-metrics-advisor/src/transforms.ts index b8b79b7cd73c..a644aadbc1d2 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/src/transforms.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/src/transforms.ts @@ -89,7 +89,7 @@ import { // transform the protocol layer (codegen) service models into convenience layer models export function fromServiceAnomalyDetectionConfiguration( - original: ServiceAnomalyDetectionConfiguration + original: ServiceAnomalyDetectionConfiguration, ): AnomalyDetectionConfiguration { return { id: original.anomalyDetectionConfigurationId!, @@ -133,7 +133,7 @@ export function fromServiceAnomalyDetectionConfiguration( } export function toServiceAnomalyDetectionConfiguration( - from: Omit + from: Omit, ): ServiceAnomalyDetectionConfiguration { return { name: from.name, @@ -176,7 +176,7 @@ export function toServiceAnomalyDetectionConfiguration( } export function toServiceAnomalyDetectionConfigurationPatch( - from: AnomalyDetectionConfigurationPatch + from: AnomalyDetectionConfigurationPatch, ): ServiceAnomalyDetectionConfigurationPatch { return { name: from.name, @@ -218,7 +218,7 @@ export function toServiceAnomalyDetectionConfigurationPatch( } export function fromServiceMetricFeedbackUnion( - original: ServiceMetricFeedbackUnion + original: ServiceMetricFeedbackUnion, ): MetricFeedbackUnion { const common: MetricFeedbackCommon = { id: original.feedbackId, @@ -277,7 +277,7 @@ export function fromServiceMetricFeedbackUnion( } default: throw new Error( - `Unrecognized feedback type ${(original as ServiceMetricFeedbackUnion).feedbackType}` + `Unrecognized feedback type ${(original as ServiceMetricFeedbackUnion).feedbackType}`, ); } } @@ -872,7 +872,7 @@ export function toServiceDataFeedSourcePatch(source: DataFeedSourcePatch): { } export function fromServiceDataFeedDetailUnion( - original: ServiceDataFeedDetailUnion + original: ServiceDataFeedDetailUnion, ): MetricsAdvisorDataFeed { const metricMap: Record = {}; for (const metric of original.metrics) { @@ -1220,13 +1220,13 @@ export function fromServiceHookInfoUnion(original: ServiceHookInfoUnion): Notifi } default: throw new Error( - `Unrecognized hook union type ${(original as ServiceHookInfoUnion).hookType}` + `Unrecognized hook union type ${(original as ServiceHookInfoUnion).hookType}`, ); } } export function toServiceMetricFeedbackUnion( - from: MetricFeedbackUnion + from: MetricFeedbackUnion, ): ServiceMetricFeedbackUnion { const common = { feedbackId: from.id, @@ -1276,7 +1276,7 @@ export function toServiceMetricFeedbackUnion( } export function fromServiceAlertConfiguration( - result: ServiceAnomalyAlertingConfiguration + result: ServiceAnomalyAlertingConfiguration, ): AnomalyAlertConfiguration { return { id: result.anomalyAlertingConfigurationId!, @@ -1289,8 +1289,8 @@ export function fromServiceAlertConfiguration( c.anomalyScopeType === "All" ? { scopeType: "All" } : c.anomalyScopeType === "Dimension" - ? { scopeType: "Dimension", seriesGroupInScope: c.dimensionAnomalyScope!.dimension } - : { scopeType: "TopN", topNAnomalyScope: c.topNAnomalyScope! }; + ? { scopeType: "Dimension", seriesGroupInScope: c.dimensionAnomalyScope!.dimension } + : { scopeType: "TopN", topNAnomalyScope: c.topNAnomalyScope! }; return { detectionConfigurationId: c.anomalyDetectionConfigurationId, alertScope, @@ -1307,7 +1307,7 @@ export function fromServiceAlertConfiguration( } export function toServiceAlertConfiguration( - from: Omit + from: Omit, ): ServiceAnomalyAlertingConfiguration { return { name: from.name, @@ -1319,11 +1319,11 @@ export function toServiceAlertConfiguration( c.alertScope.scopeType === "All" ? { anomalyScopeType: "All" } : c.alertScope.scopeType === "Dimension" - ? { - anomalyScopeType: "Dimension", - dimensionAnomalyScope: { dimension: c.alertScope.seriesGroupInScope }, - } - : { anomalyScopeType: "TopN", topNAnomalyScope: c.alertScope.topNAnomalyScope }; + ? { + anomalyScopeType: "Dimension", + dimensionAnomalyScope: { dimension: c.alertScope.seriesGroupInScope }, + } + : { anomalyScopeType: "TopN", topNAnomalyScope: c.alertScope.topNAnomalyScope }; return { anomalyDetectionConfigurationId: c.detectionConfigurationId, anomalyScopeType: alertScope.anomalyScopeType as ServiceAnomalyScope, @@ -1340,7 +1340,7 @@ export function toServiceAlertConfiguration( } export function toServiceAlertConfigurationPatch( - from: Partial> + from: Partial>, ): Partial { return { name: from.name, @@ -1352,11 +1352,11 @@ export function toServiceAlertConfigurationPatch( c.alertScope.scopeType === "All" ? { anomalyScopeType: "All" } : c.alertScope.scopeType === "Dimension" - ? { - anomalyScopeType: "Dimension", - dimensionAnomalyScope: { dimension: c.alertScope.seriesGroupInScope }, - } - : { anomalyScopeType: "TopN", topNAnomalyScope: c.alertScope.topNAnomalyScope }; + ? { + anomalyScopeType: "Dimension", + dimensionAnomalyScope: { dimension: c.alertScope.seriesGroupInScope }, + } + : { anomalyScopeType: "TopN", topNAnomalyScope: c.alertScope.topNAnomalyScope }; return { anomalyDetectionConfigurationId: c.detectionConfigurationId, anomalyScopeType: alertScope.anomalyScopeType as ServiceAnomalyScope, @@ -1373,7 +1373,7 @@ export function toServiceAlertConfigurationPatch( } export function fromServiceCredential( - result: ServiceDataSourceCredentialUnion + result: ServiceDataSourceCredentialUnion, ): DataSourceCredentialEntityUnion { const common: DataSourceCredentialEntity = { description: result.dataSourceCredentialDescription, @@ -1417,7 +1417,7 @@ export function fromServiceCredential( } export function toServiceCredential( - from: DataSourceCredentialEntityUnion + from: DataSourceCredentialEntityUnion, ): ServiceDataSourceCredentialUnion { const common = { dataSourceCredentialName: from.name, @@ -1476,7 +1476,7 @@ export function toServiceCredential( } export function toServiceCredentialPatch( - from: DataSourceCredentialPatch + from: DataSourceCredentialPatch, ): ServiceDataSourceCredentialPatch { const common = { dataSourceCredentialName: from.name, diff --git a/sdk/metricsadvisor/ai-metrics-advisor/test/internal/transforms.spec.ts b/sdk/metricsadvisor/ai-metrics-advisor/test/internal/transforms.spec.ts index 0f69dd2059bf..20b487eb7065 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/test/internal/transforms.spec.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/test/internal/transforms.spec.ts @@ -71,7 +71,7 @@ describe("Transforms", () => { assert.equal(actual.id, original.anomalyDetectionConfigurationId); assert.deepStrictEqual( actual.wholeSeriesDetectionCondition, - original.wholeMetricConfiguration as MetricDetectionCondition + original.wholeMetricConfiguration as MetricDetectionCondition, ); }); @@ -190,7 +190,7 @@ describe("Transforms", () => { assert.strictEqual(actualSource.blobTemplate, serviceDataFeed.dataSourceParameter.blobTemplate); assert.strictEqual( actualSource.connectionString, - serviceDataFeed.dataSourceParameter.connectionString + serviceDataFeed.dataSourceParameter.connectionString, ); assert.strictEqual(actualSource.container, serviceDataFeed.dataSourceParameter.container); assert.strictEqual(actual.name, serviceDataFeed.dataFeedName); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/test/public/adminclient.spec.ts b/sdk/metricsadvisor/ai-metrics-advisor/test/public/adminclient.spec.ts index 44c2f3d17c8b..c416cad5b9cf 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/test/public/adminclient.spec.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/test/public/adminclient.spec.ts @@ -39,7 +39,7 @@ matrix([[true, false]] as const, async (useAad) => { const iterator = client.listDataFeedIngestionStatus( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DATAFEED_ID"), new Date(Date.UTC(2020, 9, 30)), - new Date(Date.UTC(2021, 10, 1)) + new Date(Date.UTC(2021, 10, 1)), ); let result = getYieldedValue(await iterator.next()); assert.ok(result.status, "Expecting first status"); @@ -51,7 +51,7 @@ matrix([[true, false]] as const, async (useAad) => { const iterator = client.listDataFeedIngestionStatus( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DATAFEED_ID"), "2020-08-30T00:00:00.000Z", - "2021-11-01T00:00:00.000Z" + "2021-11-01T00:00:00.000Z", ); let result = getYieldedValue(await iterator.next()); assert.ok(result.status, "Expecting first status"); @@ -64,7 +64,7 @@ matrix([[true, false]] as const, async (useAad) => { .listDataFeedIngestionStatus( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DATAFEED_ID"), new Date(Date.UTC(2020, 9, 30)), - new Date(Date.UTC(2021, 10, 1)) + new Date(Date.UTC(2021, 10, 1)), ) .byPage({ maxPageSize: 2 }); let result = await iterator.next(); @@ -75,7 +75,7 @@ matrix([[true, false]] as const, async (useAad) => { it("gets ingestion progress", async function () { const result = await client.getDataFeedIngestionProgress( - assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DATAFEED_ID") + assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DATAFEED_ID"), ); assert.ok(result.latestSuccessTimestamp, "Expecting valid latest success timestamp"); @@ -86,7 +86,7 @@ matrix([[true, false]] as const, async (useAad) => { const iterator = client.listDataFeedIngestionStatus( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DATAFEED_ID"), new Date(Date.UTC(2020, 9, 30)), - new Date(Date.UTC(2020, 10, 1)) + new Date(Date.UTC(2020, 10, 1)), ); const result = getYieldedValue(await iterator.next()); @@ -94,13 +94,13 @@ matrix([[true, false]] as const, async (useAad) => { await client.refreshDataFeedIngestion( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DATAFEED_ID"), new Date(Date.UTC(2020, 9, 30)), - new Date(Date.UTC(2020, 10, 1)) + new Date(Date.UTC(2020, 10, 1)), ); const iterator2 = client.listDataFeedIngestionStatus( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DATAFEED_ID"), new Date(Date.UTC(2020, 9, 30)), - new Date(Date.UTC(2020, 10, 1)) + new Date(Date.UTC(2020, 10, 1)), ); const result2 = getYieldedValue(await iterator2.next()); assert.notEqual(result2.status, "Succeeded"); @@ -150,15 +150,15 @@ matrix([[true, false]] as const, async (useAad) => { assert.equal(actual.metricId, expected.metricId); assert.deepStrictEqual( actual.wholeSeriesDetectionCondition, - expected.wholeSeriesDetectionCondition + expected.wholeSeriesDetectionCondition, ); assert.deepStrictEqual( actual.seriesGroupDetectionConditions, - expected.seriesGroupDetectionConditions + expected.seriesGroupDetectionConditions, ); assert.deepStrictEqual( actual.seriesDetectionConditions, - expected.seriesDetectionConditions + expected.seriesDetectionConditions, ); }); @@ -213,29 +213,29 @@ matrix([[true, false]] as const, async (useAad) => { assert.strictEqual(actual.description, expected.description); assert.deepStrictEqual( actual.wholeSeriesDetectionCondition, - expected.wholeSeriesDetectionCondition + expected.wholeSeriesDetectionCondition, ); assert.ok( actual.seriesGroupDetectionConditions, - "Expecting valid seriesGroupDetectionConditions" + "Expecting valid seriesGroupDetectionConditions", ); assert.deepStrictEqual( actual.seriesGroupDetectionConditions![0].groupKey, - expected.seriesGroupDetectionConditions![0].groupKey + expected.seriesGroupDetectionConditions![0].groupKey, ); assert.deepStrictEqual( actual.seriesGroupDetectionConditions![0].hardThresholdCondition, - expected.seriesGroupDetectionConditions![0].hardThresholdCondition + expected.seriesGroupDetectionConditions![0].hardThresholdCondition, ); assert.ok(actual.seriesDetectionConditions, "Expecting valid seriesDetectionConditions"); delete (actual.seriesDetectionConditions![0].seriesKey as any).seriesId; // workaround service issue assert.deepStrictEqual( actual.seriesDetectionConditions![0].seriesKey, - expected.seriesDetectionConditions![0].seriesKey + expected.seriesDetectionConditions![0].seriesKey, ); assert.deepStrictEqual( actual.seriesDetectionConditions![0].changeThresholdCondition, - expected.seriesDetectionConditions![0].changeThresholdCondition + expected.seriesDetectionConditions![0].changeThresholdCondition, ); }); @@ -248,7 +248,7 @@ matrix([[true, false]] as const, async (useAad) => { it("lists detection configurations", async function () { const iterator = client.listDetectionConfigs( - assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1") + assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1"), ); let result = getYieldedValue(await iterator.next()); assert.ok(result.id, "Expecting first detection config"); @@ -259,7 +259,7 @@ matrix([[true, false]] as const, async (useAad) => { it("lists detection configurations by page", async function () { const iterator = client .listDetectionConfigs( - assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1") + assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1"), ) .byPage(); const result = await iterator.next(); @@ -293,12 +293,12 @@ matrix([[true, false]] as const, async (useAad) => { assert.equal(actual.crossMetricsOperator, expectedAlertConfig.crossMetricsOperator); assert.deepStrictEqual( actual.metricAlertConfigurations[0].alertScope, - expectedAlertConfig.metricAlertConfigurations[0].alertScope + expectedAlertConfig.metricAlertConfigurations[0].alertScope, ); assert.deepStrictEqual(actual.hookIds, expectedAlertConfig.hookIds); assert.deepStrictEqual( actual.dimensionsToSplitAlert, - expectedAlertConfig.dimensionsToSplitAlert + expectedAlertConfig.dimensionsToSplitAlert, ); }); @@ -336,11 +336,11 @@ matrix([[true, false]] as const, async (useAad) => { assert.equal(actual.crossMetricsOperator, "OR"); assert.deepStrictEqual( actual.metricAlertConfigurations![0].alertScope, - metricAlertConfig.alertScope + metricAlertConfig.alertScope, ); assert.deepStrictEqual( actual.metricAlertConfigurations![1].alertScope, - metricAlertConfig.alertScope + metricAlertConfig.alertScope, ); }); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/test/public/advisorclient.spec.ts b/sdk/metricsadvisor/ai-metrics-advisor/test/public/advisorclient.spec.ts index b20951607015..0088386f1f3b 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/test/public/advisorclient.spec.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/test/public/advisorclient.spec.ts @@ -35,7 +35,7 @@ matrix([[true, false]] as const, async (useAad) => { const iterator = client.listAnomaliesForDetectionConfiguration( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DETECTION_CONFIG_ID"), new Date(Date.UTC(2021, 4, 5)), - new Date(Date.UTC(2021, 10, 1)) + new Date(Date.UTC(2021, 10, 1)), ); let result = getYieldedValue(await iterator.next()); assert.ok(result.seriesKey, "Expecting first anomaly"); @@ -48,7 +48,7 @@ matrix([[true, false]] as const, async (useAad) => { .listAnomaliesForDetectionConfiguration( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DETECTION_CONFIG_ID"), new Date(Date.UTC(2021, 4, 5)), - new Date(Date.UTC(2021, 10, 1)) + new Date(Date.UTC(2021, 10, 1)), ) .byPage({ maxPageSize: 2 }); let result = await iterator.next(); @@ -61,7 +61,7 @@ matrix([[true, false]] as const, async (useAad) => { const iterator = client.listAnomaliesForDetectionConfiguration( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DETECTION_CONFIG_ID"), "2021-05-05T00:00:00.000Z", - "2021-11-01T00:00:00.000Z" + "2021-11-01T00:00:00.000Z", ); let result = getYieldedValue(await iterator.next()); assert.ok(result.seriesKey, "Expecting first anomaly"); @@ -74,14 +74,14 @@ matrix([[true, false]] as const, async (useAad) => { const iterator = client.listAnomaliesForDetectionConfiguration( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DETECTION_CONFIG_ID"), "startTime", - "endTime" + "endTime", ); await iterator.next(); assert.fail("Error should have been thrown for invalid date strings"); } catch (err: any) { assert.equal( err.message, - 'Error "Invalid time value" occurred in serializing the payload - undefined.' + 'Error "Invalid time value" occurred in serializing the payload - undefined.', ); } }); @@ -90,7 +90,7 @@ matrix([[true, false]] as const, async (useAad) => { const iterator = client.listIncidentsForDetectionConfiguration( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DETECTION_CONFIG_ID"), new Date(Date.UTC(2021, 4, 5)), - new Date(Date.UTC(2021, 10, 1)) + new Date(Date.UTC(2021, 10, 1)), ); let result = getYieldedValue(await iterator.next()); assert.ok(result.rootDimensionKey, "Expecting first incident"); @@ -103,7 +103,7 @@ matrix([[true, false]] as const, async (useAad) => { .listIncidentsForDetectionConfiguration( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DETECTION_CONFIG_ID"), new Date(Date.UTC(2021, 4, 5)), - new Date(Date.UTC(2021, 10, 1)) + new Date(Date.UTC(2021, 10, 1)), ) .byPage({ maxPageSize: 2 }); let result = await iterator.next(); @@ -116,7 +116,7 @@ matrix([[true, false]] as const, async (useAad) => { const iterator = client.listIncidentsForDetectionConfiguration( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DETECTION_CONFIG_ID"), "2021-05-05T00:00:00.000Z", - "2021-11-01T00:00:00.000Z" + "2021-11-01T00:00:00.000Z", ); let result = getYieldedValue(await iterator.next()); assert.ok(result.rootDimensionKey, "Expecting first incident"); @@ -129,7 +129,7 @@ matrix([[true, false]] as const, async (useAad) => { const iterator = client.listIncidentsForDetectionConfiguration( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DETECTION_CONFIG_ID"), "startTime", - "endTime" + "endTime", ); await iterator.next(); assert.fail("Error should have been thrown for invalid date strings"); @@ -143,7 +143,7 @@ matrix([[true, false]] as const, async (useAad) => { assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DETECTION_CONFIG_ID"), new Date(Date.UTC(2021, 4, 5)), new Date(Date.UTC(2021, 10, 1)), - "category" + "category", ); let result = await iterator.next(); assert.ok(result.value, "Expecting first dimension value"); @@ -156,7 +156,7 @@ matrix([[true, false]] as const, async (useAad) => { assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DETECTION_CONFIG_ID"), "2021-01-05T00:00:00.000Z", "2021-11-05T00:00:00.000Z", - "category" + "category", ); let result = await iterator.next(); assert.ok(result.value, "Expecting first dimension value"); @@ -170,7 +170,7 @@ matrix([[true, false]] as const, async (useAad) => { assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DETECTION_CONFIG_ID"), new Date(Date.UTC(2021, 4, 5)), new Date(Date.UTC(2021, 10, 1)), - "category" + "category", ) .byPage({ maxPageSize: 2 }); let result = await iterator.next(); @@ -184,7 +184,7 @@ matrix([[true, false]] as const, async (useAad) => { assertEnvironmentVariable("METRICS_ADVISOR_ALERT_CONFIG_ID"), new Date(Date.UTC(2021, 4, 5)), new Date(Date.UTC(2021, 10, 1)), - "AnomalyTime" + "AnomalyTime", ); let result = getYieldedValue(await iterator.next()); assert.ok(result.id, "Expecting first alert"); @@ -197,7 +197,7 @@ matrix([[true, false]] as const, async (useAad) => { assertEnvironmentVariable("METRICS_ADVISOR_ALERT_CONFIG_ID"), "2021-05-05T00:00:00.000Z", "2021-11-01T00:00:00.000Z", - "AnomalyTime" + "AnomalyTime", ); let result = getYieldedValue(await iterator.next()); assert.ok(result.id, "Expecting first alert"); @@ -211,7 +211,7 @@ matrix([[true, false]] as const, async (useAad) => { assertEnvironmentVariable("METRICS_ADVISOR_ALERT_CONFIG_ID"), new Date(Date.UTC(2021, 4, 5)), new Date(Date.UTC(2021, 10, 1)), - "AnomalyTime" + "AnomalyTime", ) .byPage({ maxPageSize: 1 }); let result = await iterator.next(); @@ -271,7 +271,7 @@ matrix([[true, false]] as const, async (useAad) => { it("listMetricSeriesDefinitions()", async function () { const iterator = client.listMetricSeriesDefinitions( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1"), - new Date(Date.UTC(2021, 7, 5)) + new Date(Date.UTC(2021, 7, 5)), ); let result = getYieldedValue(await iterator.next()); assert.ok(result.seriesKey, "Expecting first definition"); @@ -282,7 +282,7 @@ matrix([[true, false]] as const, async (useAad) => { it("listMetricSeriesDefinitions() with datetime string", async function () { const iterator = client.listMetricSeriesDefinitions( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1"), - "2021-08-05T00:00:00.000Z" + "2021-08-05T00:00:00.000Z", ); let result = getYieldedValue(await iterator.next()); assert.ok(result.seriesKey, "Expecting first definition"); @@ -294,7 +294,7 @@ matrix([[true, false]] as const, async (useAad) => { const iterator = client .listMetricSeriesDefinitions( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1"), - new Date(Date.UTC(2021, 7, 5)) + new Date(Date.UTC(2021, 7, 5)), ) .byPage({ maxPageSize: 2 }); let result = await iterator.next(); @@ -306,7 +306,7 @@ matrix([[true, false]] as const, async (useAad) => { it("listMetricDimensionValues()", async function () { const iterator = client.listMetricDimensionValues( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1"), - "category" + "category", ); let result = await iterator.next(); assert.ok(result.value, "Expecting first dimension value"); @@ -318,7 +318,7 @@ matrix([[true, false]] as const, async (useAad) => { const iterator = client .listMetricDimensionValues( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1"), - "category" + "category", ) .byPage({ maxPageSize: 2 }); let result = await iterator.next(); @@ -335,12 +335,12 @@ matrix([[true, false]] as const, async (useAad) => { { region: "Cairo", category: "Home & Garden" }, ], new Date(Date.UTC(2021, 7, 5)), - new Date(Date.UTC(2021, 11, 5)) + new Date(Date.UTC(2021, 11, 5)), ); assert.ok(data && data!.length === 2, "Expecting data for two time series"); assert.equal( data![0].definition.metricId, - assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1") + assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1"), ); assert.deepStrictEqual(data![0].definition.seriesKey, { region: "Delhi", @@ -352,12 +352,12 @@ matrix([[true, false]] as const, async (useAad) => { data![0].timestamps.length > 0 && data![0].values && data![0].values.length > 0, - "Expecting data for the first time series" + "Expecting data for the first time series", ); assert.equal( data![1].definition.metricId, - assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1") + assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1"), ); assert.deepStrictEqual(data![1].definition.seriesKey, { region: "Cairo", @@ -369,7 +369,7 @@ matrix([[true, false]] as const, async (useAad) => { data![1].timestamps.length > 0 && data![1].values && data![1].values.length > 0, - "Expecting data for the second time series" + "Expecting data for the second time series", ); }); @@ -381,12 +381,12 @@ matrix([[true, false]] as const, async (useAad) => { { category: "Shoes Handbags & Sunglasses", region: "Manila" }, ], "2021-08-05T00:00:00.000Z", - "2021-09-05T00:00:00.000Z" + "2021-09-05T00:00:00.000Z", ); assert.ok(data && data!.length === 2, "Expecting data for two time series"); assert.equal( data![0].definition.metricId, - assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1") + assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1"), ); assert.deepStrictEqual(data![0].definition.seriesKey, { region: "Cairo", @@ -398,7 +398,7 @@ matrix([[true, false]] as const, async (useAad) => { data![0].timestamps.length > 0 && data![0].values && data![0].values.length > 0, - "Expecting data for the first time series" + "Expecting data for the first time series", ); }); @@ -410,7 +410,7 @@ matrix([[true, false]] as const, async (useAad) => { { category: "Home & Garden", region: "Cairo" }, ], new Date(Date.UTC(2021, 7, 1)), - new Date(Date.UTC(2021, 7, 27)) + new Date(Date.UTC(2021, 7, 27)), ); assert.ok(data && data!.length === 2, "Expecting data for two time series"); @@ -426,7 +426,7 @@ matrix([[true, false]] as const, async (useAad) => { data![0].values.length > 0 && data![0].isAnomaly && data![0].isAnomaly.length > 0, - "Expecting enriched data for the first time series" + "Expecting enriched data for the first time series", ); assert.deepStrictEqual(data![1].seriesKey, { @@ -441,7 +441,7 @@ matrix([[true, false]] as const, async (useAad) => { data![1].values.length > 0 && data![0].isAnomaly && data![0].isAnomaly.length > 0, - "Expecting enriched data for the second time series" + "Expecting enriched data for the second time series", ); }); @@ -453,7 +453,7 @@ matrix([[true, false]] as const, async (useAad) => { { category: "Home & Garden", region: "Cairo" }, ], "2021-08-01T00:00:00.000Z", - "2021-08-27T00:00:00.000Z" + "2021-08-27T00:00:00.000Z", ); assert.ok(data && data!.length === 2, "Expecting data for two time series"); @@ -467,7 +467,7 @@ matrix([[true, false]] as const, async (useAad) => { const iterator = client.listMetricEnrichmentStatus( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1"), new Date(Date.UTC(2021, 0, 1)), - new Date(Date.UTC(2021, 8, 18)) + new Date(Date.UTC(2021, 8, 18)), ); let result = getYieldedValue(await iterator.next()); assert.ok(result.status, "Expecting first status"); @@ -479,7 +479,7 @@ matrix([[true, false]] as const, async (useAad) => { const iterator = client.listMetricEnrichmentStatus( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1"), "2021-01-01T00:00:00.000Z", - "2021-09-18T00:00:00.000Z" + "2021-09-18T00:00:00.000Z", ); let result = getYieldedValue(await iterator.next()); assert.ok(result.status, "Expecting first status"); @@ -492,7 +492,7 @@ matrix([[true, false]] as const, async (useAad) => { .listMetricEnrichmentStatus( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_METRIC_ID_1"), new Date(Date.UTC(2021, 0, 1)), - new Date(Date.UTC(2021, 10, 5)) + new Date(Date.UTC(2021, 10, 5)), ) .byPage({ maxPageSize: 2 }); let result = await iterator.next(); @@ -504,19 +504,19 @@ matrix([[true, false]] as const, async (useAad) => { it("gets root causes of an incident", async function () { const result = await client.getIncidentRootCauses( assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_DETECTION_CONFIG_ID"), - assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_INCIDENT_ID") + assertEnvironmentVariable("METRICS_ADVISOR_AZURE_SQLSERVER_INCIDENT_ID"), ); assert.ok( result.rootCauses && result.rootCauses.length > 0, - "Expecting non empty root cause list" + "Expecting non empty root cause list", ); const first = result.rootCauses[0]; assert.deepStrictEqual(first.path, ["category"]); assert.ok(first.score, "Expecting score"); assert.equal( first.description, - "Increase on region = Beijing | category = Handmade contributes the most to current incident." + "Increase on region = Beijing | category = Handmade contributes the most to current incident.", ); }); @@ -619,7 +619,7 @@ matrix([[true, false]] as const, async (useAad) => { endTime: new Date(Date.UTC(2021, 10, 5)), timeMode: "FeedbackCreatedTime", }, - } + }, ); let result = getYieldedValue(await iterator.next()); assert.ok(result.id, "Expecting first status"); @@ -636,7 +636,7 @@ matrix([[true, false]] as const, async (useAad) => { endTime: "2021-11-05T00:00:00.000Z", timeMode: "FeedbackCreatedTime", }, - } + }, ); let result = getYieldedValue(await iterator.next()); assert.ok(result.id, "Expecting first status"); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/test/public/dataSourceCred.spec.ts b/sdk/metricsadvisor/ai-metrics-advisor/test/public/dataSourceCred.spec.ts index c41f2b9311ce..0a5e1d00fa4d 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/test/public/dataSourceCred.spec.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/test/public/dataSourceCred.spec.ts @@ -42,13 +42,13 @@ describe("DataSourceCredential", () => { if (recorder && !servicePrincipalCredName) { servicePrincipalCredName = getRecorderUniqueVariable( recorder, - "js-test-servicePrincipalCred-" + "js-test-servicePrincipalCred-", ); } if (recorder && !servicePrincipalInKVCredName) { servicePrincipalInKVCredName = getRecorderUniqueVariable( recorder, - "js-test-servicePrincipalInKVCred-" + "js-test-servicePrincipalInKVCred-", ); } }); @@ -95,7 +95,7 @@ describe("DataSourceCredential", () => { }; const updated = await client.updateDataSourceCredential( createdSqlServerCredId, - sqlServerCredentialPatch + sqlServerCredentialPatch, ); assert.ok(updated.id, "Expecting valid dataSource credential"); assert.equal(updated.description, sqlServerCredentialPatch.description); @@ -131,7 +131,7 @@ describe("DataSourceCredential", () => { }; const updated = await client.updateDataSourceCredential( createdDatalakeCredId, - dataLakeCredentialPatch + dataLakeCredentialPatch, ); assert.ok(updated.id, "Expecting valid dataSource credential"); assert.equal(updated.description, dataLakeCredentialPatch.description); @@ -149,9 +149,8 @@ describe("DataSourceCredential", () => { tenantId: "tenant-id", }; - const createdServicePrincipalCred = await client.createDataSourceCredential( - servicePrincipalCred - ); + const createdServicePrincipalCred = + await client.createDataSourceCredential(servicePrincipalCred); assert.ok(createdServicePrincipalCred.id, "Expecting valid sql server dataSource credential"); createdServicePrincipalCredId = createdServicePrincipalCred.id!; assert.equal(createdServicePrincipalCred.name, servicePrincipalCred.name); @@ -173,7 +172,7 @@ describe("DataSourceCredential", () => { }; const updated = await client.updateDataSourceCredential( createdServicePrincipalCredId, - servicePrincipalCredentialPatch + servicePrincipalCredentialPatch, ); assert.ok(updated.id, "Expecting valid dataSource credential"); assert.equal(updated.description, servicePrincipalCredentialPatch.description); @@ -181,7 +180,7 @@ describe("DataSourceCredential", () => { assert.equal(updated.name, servicePrincipalCredentialPatch.name); assert.equal( (updated as DataSourceServicePrincipalPatch).clientId, - servicePrincipalCredentialPatch.clientId + servicePrincipalCredentialPatch.clientId, ); }); @@ -198,15 +197,14 @@ describe("DataSourceCredential", () => { servicePrincipalSecretNameInKV: "service-principal-secret-name-in-kv", }; - const createdServicePrincipalInKVCred = await client.createDataSourceCredential( - servicePrincipalInKVCred - ); + const createdServicePrincipalInKVCred = + await client.createDataSourceCredential(servicePrincipalInKVCred); assert.ok(createdServicePrincipalInKVCred.id, "Expecting valid dataSource credential"); createdServicePrincipalInKVCredId = createdServicePrincipalInKVCred.id!; assert.equal(createdServicePrincipalInKVCred.name, servicePrincipalInKVCred.name); assert.equal( createdServicePrincipalInKVCred.description, - servicePrincipalInKVCred.description + servicePrincipalInKVCred.description, ); assert.equal(createdServicePrincipalInKVCred.type, servicePrincipalInKVCred.type); }); @@ -229,7 +227,7 @@ describe("DataSourceCredential", () => { const updated = await client.updateDataSourceCredential( createdServicePrincipalInKVCredId, - servicePrincipalInKVCredentialPatch + servicePrincipalInKVCredentialPatch, ); assert.ok(updated.id, "Expecting valid dataSource credential"); assert.equal(updated.description, servicePrincipalInKVCredentialPatch.description); @@ -237,15 +235,15 @@ describe("DataSourceCredential", () => { assert.equal(updated.name, servicePrincipalInKVCredentialPatch.name); assert.equal( (updated as DataSourceServicePrincipalPatch).tenantId, - servicePrincipalInKVCredentialPatch.tenantId + servicePrincipalInKVCredentialPatch.tenantId, ); assert.equal( (updated as DataSourceServicePrincipalInKeyVaultPatch).keyVaultClientId, - servicePrincipalInKVCredentialPatch.keyVaultClientId + servicePrincipalInKVCredentialPatch.keyVaultClientId, ); assert.equal( (updated as DataSourceServicePrincipalInKeyVaultPatch).servicePrincipalIdNameInKV, - servicePrincipalInKVCredentialPatch.servicePrincipalIdNameInKV + servicePrincipalInKVCredentialPatch.servicePrincipalIdNameInKV, ); }); @@ -297,7 +295,7 @@ describe("DataSourceCredential", () => { export async function verifyDataSourceCredentialDeletion( context: Context, client: MetricsAdvisorAdministrationClient, - createdDataSourceCredentialId: string + createdDataSourceCredentialId: string, ): Promise { if (!createdDataSourceCredentialId) { context.skip(); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/test/public/datafeed.spec.ts b/sdk/metricsadvisor/ai-metrics-advisor/test/public/datafeed.spec.ts index 9aab47daa06b..fce6e2014bad 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/test/public/datafeed.spec.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/test/public/datafeed.spec.ts @@ -163,7 +163,7 @@ matrix([[true, false]] as const, async (useAad) => { const expectedSource: DataFeedSource = { dataSourceType: "AzureBlob", connectionString: assertEnvironmentVariable( - "METRICS_ADVISOR_AZURE_BLOB_CONNECTION_STRING" + "METRICS_ADVISOR_AZURE_BLOB_CONNECTION_STRING", ), container: "adsample", blobTemplate: assertEnvironmentVariable("METRICS_ADVISOR_AZURE_BLOB_TEMPLATE"), @@ -198,72 +198,72 @@ matrix([[true, false]] as const, async (useAad) => { assert.equal( actual.schema.metrics[0].name, dataFeedSchema.metrics[0].name, - "Schema metric 1 name mismatch!" + "Schema metric 1 name mismatch!", ); assert.equal( actual.schema.metrics[1].name, dataFeedSchema.metrics[1].name, - "Schema metric 2 name mismatch!" + "Schema metric 2 name mismatch!", ); assert.strictEqual(actual.schema.timestampColumn, "", "Schema timestampColumn mismatch!"); assert.equal( actual.schema.dimensions![0].displayName, dataFeedSchema.dimensions![0].displayName, - "Schema dimension 1 display name mismatch!" + "Schema dimension 1 display name mismatch!", ); assert.deepStrictEqual( actual.ingestionSettings, dataFeedIngestion, - "Ingesting settings mismatch!" + "Ingesting settings mismatch!", ); assert.equal( actual.metricIds[dataFeedSchema.metrics[0].name], - actual.schema.metrics[0].id + actual.schema.metrics[0].id, ); assert.equal(actual.description, options.description, "options.description mismatch"); assert.equal( actual.accessMode, options.accessMode as DataFeedAccessMode, - "options.accessMode mismatch" + "options.accessMode mismatch", ); assert.ok( actual.missingDataPointFillSettings, - "Expecting valid options.missingDataPointFillSettings" + "Expecting valid options.missingDataPointFillSettings", ); assert.equal( actual.missingDataPointFillSettings!.fillType, options.missingDataPointFillSettings!.fillType, - "options.missingDataPointFillSettings.fillType mismatch" + "options.missingDataPointFillSettings.fillType mismatch", ); assert.ok( actual.missingDataPointFillSettings!.fillType, - "Expecting valid options.missingDataPointFillSettings.fillType" + "Expecting valid options.missingDataPointFillSettings.fillType", ); if (actual.missingDataPointFillSettings!.fillType! === "CustomValue") { // not sure why TS didn't narrow down the union type for us...so casting to any assert.equal( (actual.missingDataPointFillSettings! as any).customFillValue, (options.missingDataPointFillSettings! as any).customFillValue, - "options.missingDataPointFillSettings.customFillValue mismatch" + "options.missingDataPointFillSettings.customFillValue mismatch", ); } assert.ok(actual.rollupSettings, "Expecting valid options.rollupSettings"); assert.equal( actual.rollupSettings!.rollupType, options.rollupSettings!.rollupType, - "options.missingDataPointFillSettings.rollupType mismatch" + "options.missingDataPointFillSettings.rollupType mismatch", ); assert.ok( actual.rollupSettings!.rollupType, - "Expecting valid options.missingDataPointFillSettings.fillType" + "Expecting valid options.missingDataPointFillSettings.fillType", ); if (actual.rollupSettings!.rollupType! === "AutoRollup") { // not sure why TS didn't narrow down the union type for us...so casting to any assert.equal( (actual.rollupSettings! as any).rollupIdentificationValue, (options.rollupSettings! as any).rollupIdentificationValue, - "options.missingDataPointFillSettings.fillType mismatch" + "options.missingDataPointFillSettings.fillType mismatch", ); } }); @@ -291,18 +291,18 @@ matrix([[true, false]] as const, async (useAad) => { assert.equal( actual.schema.metrics[0].name, dataFeedSchema.metrics[0].name, - "Schema metric 1 name mismatch!" + "Schema metric 1 name mismatch!", ); assert.equal( actual.schema.metrics[1].name, dataFeedSchema.metrics[1].name, - "Schema metric 2 name mismatch!" + "Schema metric 2 name mismatch!", ); assert.strictEqual(actual.schema.timestampColumn, "", "Schema timestampColumn mismatch!"); assert.equal( actual.schema.dimensions![0].displayName, dataFeedSchema.dimensions![0].displayName, - "Schema dimension 1 display name mismatch!" + "Schema dimension 1 display name mismatch!", ); }); @@ -357,11 +357,11 @@ matrix([[true, false]] as const, async (useAad) => { assert.equal(updated.source.dataSourceType, "AzureBlob"); assert.deepStrictEqual( updated.source, - expectedServerParameter as unknown as AzureBlobDataFeedSource + expectedServerParameter as unknown as AzureBlobDataFeedSource, ); assert.equal( updated.source.authenticationType, - expectedSourceParameter.authenticationType + expectedSourceParameter.authenticationType, ); assert.deepStrictEqual(updated.ingestionSettings, expectedIngestionSettings); assert.equal(updated.description, "Updated Azure Blob description"); @@ -381,7 +381,7 @@ matrix([[true, false]] as const, async (useAad) => { azureCloud: "Azure", authenticationType: "Basic", applicationId: assertEnvironmentVariable( - "METRICS_ADVISOR_AZURE_APPINSIGHTS_APPLICATION_ID" + "METRICS_ADVISOR_AZURE_APPINSIGHTS_APPLICATION_ID", ), apiKey: assertEnvironmentVariable("METRICS_ADVISOR_AZURE_APPINSIGHTS_API_KEY"), query: @@ -403,12 +403,12 @@ matrix([[true, false]] as const, async (useAad) => { assert.equal(actual.source.azureCloud, "Azure"); assert.equal( actual.source.applicationId, - assertEnvironmentVariable("METRICS_ADVISOR_AZURE_APPINSIGHTS_APPLICATION_ID") + assertEnvironmentVariable("METRICS_ADVISOR_AZURE_APPINSIGHTS_APPLICATION_ID"), ); assert.equal(actual.source.apiKey, undefined); assert.equal( actual.source.query, - "let gran=60m; let starttime=datetime(@StartTime); let endtime=starttime + gran; requests | where timestamp >= starttime and timestamp < endtime | summarize request_count = count(), duration_avg_ms = avg(duration), duration_95th_ms = percentile(duration, 95), duration_max_ms = max(duration) by resultCode" + "let gran=60m; let starttime=datetime(@StartTime); let endtime=starttime + gran; requests | where timestamp >= starttime and timestamp < endtime | summarize request_count = count(), duration_avg_ms = avg(duration), duration_95th_ms = percentile(duration, 95), duration_max_ms = max(duration) by resultCode", ); } }); @@ -417,7 +417,7 @@ matrix([[true, false]] as const, async (useAad) => { const expectedSource: DataFeedSource = { dataSourceType: "SqlServer", connectionString: assertEnvironmentVariable( - "METRICS_ADVISOR_AZURE_SQL_SERVER_CONNECTION_STRING" + "METRICS_ADVISOR_AZURE_SQL_SERVER_CONNECTION_STRING", ), query: "select * from adsample2 where Timestamp = @StartTime", authenticationType: "Basic", @@ -439,7 +439,7 @@ matrix([[true, false]] as const, async (useAad) => { assert.equal((actual.source as any).connectionString, undefined); assert.equal( actual.source.query, - "select * from adsample2 where Timestamp = @StartTime" + "select * from adsample2 where Timestamp = @StartTime", ); } }); @@ -507,7 +507,7 @@ matrix([[true, false]] as const, async (useAad) => { assert.equal(actual.source.connectionString, undefined); assert.equal( actual.source.sqlQuery, - "let starttime=datetime(@StartTime); let endtime=starttime" + "let starttime=datetime(@StartTime); let endtime=starttime", ); assert.equal(actual.source.database, "sample"); assert.equal(actual.source.collectionId, "sample"); @@ -542,7 +542,7 @@ matrix([[true, false]] as const, async (useAad) => { assert.equal(actual.source.connectionString, undefined); assert.equal( actual.source.query, - "let starttime=datetime(@StartTime); let endtime=starttime" + "let starttime=datetime(@StartTime); let endtime=starttime", ); assert.equal(actual.source.authenticationType, "ManagedIdentity"); } @@ -644,7 +644,7 @@ matrix([[true, false]] as const, async (useAad) => { assert.equal(actual.source.database, "data-feed-mongodb"); assert.equal( actual.source.command, - "{ find: mongodb,filter: { Time: @StartTime },batch: 200 }" + "{ find: mongodb,filter: { Time: @StartTime },batch: 200 }", ); assert.equal(actual.source.authenticationType, "Basic"); } @@ -677,7 +677,7 @@ matrix([[true, false]] as const, async (useAad) => { assert.equal(actual.source.connectionString, undefined); assert.equal( actual.source.query, - "{ find: mongodb,filter: { Time: @StartTime },batch: 200 }" + "{ find: mongodb,filter: { Time: @StartTime },batch: 200 }", ); assert.equal(actual.source.authenticationType, "Basic"); } @@ -813,7 +813,7 @@ matrix([[true, false]] as const, async (useAad) => { assert.equal(actual.source.connectionString, undefined); assert.equal( actual.source.query, - "{ find: postgresql,filter: { Time: @StartTime },batch: 200 }" + "{ find: postgresql,filter: { Time: @StartTime },batch: 200 }", ); assert.equal(actual.source.authenticationType, "Basic"); } @@ -844,7 +844,7 @@ matrix([[true, false]] as const, async (useAad) => { assert.deepStrictEqual( updated.source, - patchServer.source as unknown as MongoDbDataFeedSource + patchServer.source as unknown as MongoDbDataFeedSource, ); }); @@ -871,7 +871,7 @@ matrix([[true, false]] as const, async (useAad) => { } catch (error: any) { assert.equal( (error as any).message, - "Cannot create a data feed with the Unknown source type." + "Cannot create a data feed with the Unknown source type.", ); } }); @@ -888,7 +888,7 @@ matrix([[true, false]] as const, async (useAad) => { } catch (error: any) { assert.equal( (error as any).message, - "Cannot update a data feed to have the Unknown source type." + "Cannot update a data feed to have the Unknown source type.", ); } }); @@ -900,7 +900,7 @@ matrix([[true, false]] as const, async (useAad) => { export async function verifyDataFeedDeletion( context: Context, client: MetricsAdvisorAdministrationClient, - createdDataFeedId: string + createdDataFeedId: string, ): Promise { if (!createdDataFeedId) { context.skip(); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/test/public/util/recordedClients.ts b/sdk/metricsadvisor/ai-metrics-advisor/test/public/util/recordedClients.ts index 4a200306d723..eefed5808f90 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/test/public/util/recordedClients.ts +++ b/sdk/metricsadvisor/ai-metrics-advisor/test/public/util/recordedClients.ts @@ -51,7 +51,7 @@ const replaceableVariables: { [k: string]: string } = { export async function createRecordedAdminClient( context: Context, - apiKey: TokenCredential | MetricsAdvisorKeyCredential + apiKey: TokenCredential | MetricsAdvisorKeyCredential, ): Promise { const recorder = new Recorder(context.currentTest); await recorder.start({ @@ -61,7 +61,7 @@ export async function createRecordedAdminClient( client: new MetricsAdvisorAdministrationClient( assertEnvironmentVariable("METRICS_ADVISOR_ENDPOINT"), apiKey, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ), recorder, }; @@ -69,7 +69,7 @@ export async function createRecordedAdminClient( export async function createRecordedAdvisorClient( context: Context, - apiKey: TokenCredential | MetricsAdvisorKeyCredential + apiKey: TokenCredential | MetricsAdvisorKeyCredential, ): Promise { const recorder = new Recorder(context.currentTest); await recorder.start({ @@ -79,7 +79,7 @@ export async function createRecordedAdvisorClient( client: new MetricsAdvisorClient( assertEnvironmentVariable("METRICS_ADVISOR_ENDPOINT"), apiKey, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ), recorder, }; @@ -93,7 +93,7 @@ export function makeCredential(useAad: boolean): TokenCredential | MetricsAdviso ? createTestCredential() : new MetricsAdvisorKeyCredential( assertEnvironmentVariable("METRICS_ADVISOR_SUBSCRIPTION_KEY"), - assertEnvironmentVariable("METRICS_ADVISOR_API_KEY") + assertEnvironmentVariable("METRICS_ADVISOR_API_KEY"), ); } diff --git a/sdk/metricsadvisor/perf-tests/ai-metrics-advisor/package.json b/sdk/metricsadvisor/perf-tests/ai-metrics-advisor/package.json index cfb5de81849b..2f6a5c392eac 100644 --- a/sdk/metricsadvisor/perf-tests/ai-metrics-advisor/package.json +++ b/sdk/metricsadvisor/perf-tests/ai-metrics-advisor/package.json @@ -15,11 +15,11 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -28,9 +28,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm test-dist types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/metricsadvisor/perf-tests/ai-metrics-advisor/test/metricsAdvisor.spec.ts b/sdk/metricsadvisor/perf-tests/ai-metrics-advisor/test/metricsAdvisor.spec.ts index c17519df8c5f..b422104a60c1 100644 --- a/sdk/metricsadvisor/perf-tests/ai-metrics-advisor/test/metricsAdvisor.spec.ts +++ b/sdk/metricsadvisor/perf-tests/ai-metrics-advisor/test/metricsAdvisor.spec.ts @@ -17,8 +17,8 @@ export abstract class MetricsAdvisorTest extends PerfTest { getEnvVar("METRICS_ADVISOR_ENDPOINT"), new MetricsAdvisorKeyCredential( getEnvVar("METRICS_ADVISOR_SUBSCRIPTION_KEY"), - getEnvVar("METRICS_ADVISOR_API_KEY") - ) + getEnvVar("METRICS_ADVISOR_API_KEY"), + ), ); } } diff --git a/sdk/mixedreality/mixed-reality-authentication/package.json b/sdk/mixedreality/mixed-reality-authentication/package.json index c94c6799d8a2..8873da7e0653 100644 --- a/sdk/mixedreality/mixed-reality-authentication/package.json +++ b/sdk/mixedreality/mixed-reality-authentication/package.json @@ -16,11 +16,11 @@ "build:samples": "echo Obsolete.", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -96,7 +96,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "typescript": "~5.2.0", "util": "^0.12.1", diff --git a/sdk/mixedreality/mixed-reality-authentication/src/mixedRealityStsClient.ts b/sdk/mixedreality/mixed-reality-authentication/src/mixedRealityStsClient.ts index c76879e64125..11e76bd740c6 100644 --- a/sdk/mixedreality/mixed-reality-authentication/src/mixedRealityStsClient.ts +++ b/sdk/mixedreality/mixed-reality-authentication/src/mixedRealityStsClient.ts @@ -44,7 +44,7 @@ export class MixedRealityStsClient { accountId: string, accountDomain: string, keyCredential: AzureKeyCredential, - options?: MixedRealityStsClientOptions + options?: MixedRealityStsClientOptions, ); /** @@ -58,7 +58,7 @@ export class MixedRealityStsClient { accountId: string, accountDomain: string, credential: TokenCredential, - options?: MixedRealityStsClientOptions + options?: MixedRealityStsClientOptions, ); /** @@ -72,7 +72,7 @@ export class MixedRealityStsClient { accountId: string, accountDomain: string, credential: TokenCredential | AzureKeyCredential, - options: MixedRealityStsClientOptions = {} + options: MixedRealityStsClientOptions = {}, ) { if (!accountId) { throw new Error("Argument cannot be null or empty: 'accountId'."); @@ -140,7 +140,7 @@ export class MixedRealityStsClient { const tokenResponse = await this.restClient.getToken(this.accountId, updatedOptions); return mapToAccessToken(tokenResponse); - } + }, ); } } diff --git a/sdk/mixedreality/mixed-reality-authentication/src/models/auth.ts b/sdk/mixedreality/mixed-reality-authentication/src/models/auth.ts index 1ae194373d55..3f71d595ae2e 100644 --- a/sdk/mixedreality/mixed-reality-authentication/src/models/auth.ts +++ b/sdk/mixedreality/mixed-reality-authentication/src/models/auth.ts @@ -22,7 +22,10 @@ export class MixedRealityAccountKeyCredential implements TokenCredential { * @param accountId - The Mixed Reality service account identifier. * @param accountKey - The Mixed Reality service account primary or secondary key. */ - constructor(public readonly accountId: string, accountKey: string | AzureKeyCredential) { + constructor( + public readonly accountId: string, + accountKey: string | AzureKeyCredential, + ) { if (typeof accountKey === "string") { this.accountKey = new AzureKeyCredential(accountKey); } else { diff --git a/sdk/mixedreality/mixed-reality-authentication/test/authenticationEndpoint.spec.ts b/sdk/mixedreality/mixed-reality-authentication/test/authenticationEndpoint.spec.ts index c34f9ff4b147..6201c57c55e5 100644 --- a/sdk/mixedreality/mixed-reality-authentication/test/authenticationEndpoint.spec.ts +++ b/sdk/mixedreality/mixed-reality-authentication/test/authenticationEndpoint.spec.ts @@ -8,15 +8,15 @@ describe("authenticationEndpoint", () => { it("construct with invalid argument", () => { assert.throws( () => constructAuthenticationEndpointFromDomain(undefined!), - "Argument cannot be null or empty: 'accountDomain'." + "Argument cannot be null or empty: 'accountDomain'.", ); assert.throws( () => constructAuthenticationEndpointFromDomain(null!), - "Argument cannot be null or empty: 'accountDomain'." + "Argument cannot be null or empty: 'accountDomain'.", ); assert.throws( () => constructAuthenticationEndpointFromDomain(""), - "Argument cannot be null or empty: 'accountDomain'." + "Argument cannot be null or empty: 'accountDomain'.", ); }); diff --git a/sdk/mixedreality/mixed-reality-authentication/test/jwt.spec.ts b/sdk/mixedreality/mixed-reality-authentication/test/jwt.spec.ts index 32065e1a4f91..2e625fd6dd6d 100644 --- a/sdk/mixedreality/mixed-reality-authentication/test/jwt.spec.ts +++ b/sdk/mixedreality/mixed-reality-authentication/test/jwt.spec.ts @@ -19,15 +19,15 @@ describe("jwt", () => { it("parse with invalid argument", () => { assert.throws( () => retrieveJwtExpirationTimestamp(undefined!), - "Argument cannot be null or empty: 'jwt'." + "Argument cannot be null or empty: 'jwt'.", ); assert.throws( () => retrieveJwtExpirationTimestamp(null!), - "Argument cannot be null or empty: 'jwt'." + "Argument cannot be null or empty: 'jwt'.", ); assert.throws( () => retrieveJwtExpirationTimestamp(""), - "Argument cannot be null or empty: 'jwt'." + "Argument cannot be null or empty: 'jwt'.", ); }); @@ -53,7 +53,7 @@ describe("jwt", () => { assert.throws( () => retrieveJwtExpirationTimestamp(jwtValue), - "Invalid JWT payload structure. No expiration." + "Invalid JWT payload structure. No expiration.", ); }); }); diff --git a/sdk/mixedreality/mixed-reality-authentication/test/mixedRealityStsClient.spec.ts b/sdk/mixedreality/mixed-reality-authentication/test/mixedRealityStsClient.spec.ts index f14873cba54b..5cbc59425355 100644 --- a/sdk/mixedreality/mixed-reality-authentication/test/mixedRealityStsClient.spec.ts +++ b/sdk/mixedreality/mixed-reality-authentication/test/mixedRealityStsClient.spec.ts @@ -26,28 +26,28 @@ describe("MixedRealityStsClient", () => { it("can create with invalid arguments", () => { assert.throws( () => new MixedRealityStsClient(undefined!, accountDomain, keyCredential), - "Argument cannot be null or empty: 'accountId'." + "Argument cannot be null or empty: 'accountId'.", ); assert.throws( () => new MixedRealityStsClient(null!, accountDomain, keyCredential), - "Argument cannot be null or empty: 'accountId'." + "Argument cannot be null or empty: 'accountId'.", ); assert.throws( () => new MixedRealityStsClient("", accountDomain, keyCredential), - "Argument cannot be null or empty: 'accountId'." + "Argument cannot be null or empty: 'accountId'.", ); assert.throws( () => new MixedRealityStsClient(accountId, undefined!, keyCredential), - "Argument cannot be null or empty: 'accountDomain'." + "Argument cannot be null or empty: 'accountDomain'.", ); assert.throws( () => new MixedRealityStsClient(accountId, null!, keyCredential), - "Argument cannot be null or empty: 'accountDomain'." + "Argument cannot be null or empty: 'accountDomain'.", ); assert.throws( () => new MixedRealityStsClient(accountId, "", keyCredential), - "Argument cannot be null or empty: 'accountDomain'." + "Argument cannot be null or empty: 'accountDomain'.", ); }); diff --git a/sdk/mixedreality/mixed-reality-authentication/test/utils/recordedClient.ts b/sdk/mixedreality/mixed-reality-authentication/test/utils/recordedClient.ts index 0c08cabd835e..fbf9d0f6c973 100644 --- a/sdk/mixedreality/mixed-reality-authentication/test/utils/recordedClient.ts +++ b/sdk/mixedreality/mixed-reality-authentication/test/utils/recordedClient.ts @@ -39,7 +39,7 @@ export async function createRecorder(context: Context): Promise { headersForRemoval: ["X-MRC-CV", "x-mrc-cv"], }, }, - ["record", "playback"] + ["record", "playback"], ); return recorder; } diff --git a/sdk/mixedreality/mixed-reality-authentication/test/utils/tokenCredentialHelper.ts b/sdk/mixedreality/mixed-reality-authentication/test/utils/tokenCredentialHelper.ts index 39e8b0678e63..0253621df9a1 100644 --- a/sdk/mixedreality/mixed-reality-authentication/test/utils/tokenCredentialHelper.ts +++ b/sdk/mixedreality/mixed-reality-authentication/test/utils/tokenCredentialHelper.ts @@ -6,7 +6,7 @@ import { MixedRealityAccountKeyCredential } from "../../src/models/auth"; export function createTokenCredentialFromMRKeyCredential( accountId: string, - accountKey: string | AzureKeyCredential + accountKey: string | AzureKeyCredential, ): MixedRealityAccountKeyCredential { return new MixedRealityAccountKeyCredential(accountId, accountKey); } diff --git a/sdk/monitor/monitor-ingestion/package.json b/sdk/monitor/monitor-ingestion/package.json index 2953bc7ca933..5aaa74eb08d1 100644 --- a/sdk/monitor/monitor-ingestion/package.json +++ b/sdk/monitor/monitor-ingestion/package.json @@ -37,11 +37,11 @@ "build:samples": "dev-tool samples run samples-dev", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && npm run build:nodebrowser && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "echo Obsolete", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/**/*.spec.ts'", @@ -123,7 +123,6 @@ "karma-mocha-reporter": "^2.2.5", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "source-map-support": "^0.5.9", diff --git a/sdk/monitor/monitor-ingestion/samples-dev/defaultConcurrency.ts b/sdk/monitor/monitor-ingestion/samples-dev/defaultConcurrency.ts index 3a7aa2675a72..bbe3a9ac82cb 100644 --- a/sdk/monitor/monitor-ingestion/samples-dev/defaultConcurrency.ts +++ b/sdk/monitor/monitor-ingestion/samples-dev/defaultConcurrency.ts @@ -38,7 +38,7 @@ async function main() { if (aggregateErrors.length > 0) { console.log( "Some logs have failed to complete ingestion. Number of error batches=", - aggregateErrors.length + aggregateErrors.length, ); for (const errors of aggregateErrors) { console.log(`Error - ${JSON.stringify(errors.cause)}`); diff --git a/sdk/monitor/monitor-ingestion/samples-dev/earlyAborting.ts b/sdk/monitor/monitor-ingestion/samples-dev/earlyAborting.ts index 0ca6bba17654..6e90e09582f5 100644 --- a/sdk/monitor/monitor-ingestion/samples-dev/earlyAborting.ts +++ b/sdk/monitor/monitor-ingestion/samples-dev/earlyAborting.ts @@ -53,7 +53,7 @@ async function main() { if (aggregateErrors.length > 0) { console.log( "Some logs have failed to complete ingestion. Number of error batches=", - aggregateErrors.length + aggregateErrors.length, ); for (const errors of aggregateErrors) { console.log(`Error - ${JSON.stringify(errors.cause)}`); diff --git a/sdk/monitor/monitor-ingestion/samples-dev/uploadCustomLogs.ts b/sdk/monitor/monitor-ingestion/samples-dev/uploadCustomLogs.ts index 7ef5780070fd..c3d797c0ba06 100644 --- a/sdk/monitor/monitor-ingestion/samples-dev/uploadCustomLogs.ts +++ b/sdk/monitor/monitor-ingestion/samples-dev/uploadCustomLogs.ts @@ -35,7 +35,7 @@ export async function main() { let aggregateErrors = isAggregateLogsUploadError(e) ? e.errors : []; console.log( "Some logs have failed to complete ingestion. Length of errors =", - aggregateErrors.length + aggregateErrors.length, ); for (const errors of aggregateErrors) { console.log(`Error - ${JSON.stringify(errors.cause)}`); diff --git a/sdk/monitor/monitor-ingestion/samples-dev/userDefinedConcurrency.ts b/sdk/monitor/monitor-ingestion/samples-dev/userDefinedConcurrency.ts index 30280287b364..022ca32eb455 100644 --- a/sdk/monitor/monitor-ingestion/samples-dev/userDefinedConcurrency.ts +++ b/sdk/monitor/monitor-ingestion/samples-dev/userDefinedConcurrency.ts @@ -35,7 +35,7 @@ async function main() { let aggregateErrors = e.errors; console.log( "Some logs have failed to complete ingestion. Length of errors =", - aggregateErrors.length + aggregateErrors.length, ); for (const errors of aggregateErrors) { console.log(`Error - ${JSON.stringify(errors.cause)}`); diff --git a/sdk/monitor/monitor-ingestion/samples-dev/userErrorHandling.ts b/sdk/monitor/monitor-ingestion/samples-dev/userErrorHandling.ts index 1fe4bfc15182..77432c7902c7 100644 --- a/sdk/monitor/monitor-ingestion/samples-dev/userErrorHandling.ts +++ b/sdk/monitor/monitor-ingestion/samples-dev/userErrorHandling.ts @@ -53,7 +53,7 @@ async function main() { if (aggregateErrors.length > 0) { console.log( "Some logs have failed to complete ingestion. Number of error batches=", - aggregateErrors.length + aggregateErrors.length, ); for (const errors of aggregateErrors) { console.log(`Error - ${JSON.stringify(errors.cause)}`); diff --git a/sdk/monitor/monitor-ingestion/src/logsIngestionClient.ts b/sdk/monitor/monitor-ingestion/src/logsIngestionClient.ts index 50d7423a6812..da668219beba 100644 --- a/sdk/monitor/monitor-ingestion/src/logsIngestionClient.ts +++ b/sdk/monitor/monitor-ingestion/src/logsIngestionClient.ts @@ -37,7 +37,7 @@ export class LogsIngestionClient { constructor( endpoint: string, tokenCredential: TokenCredential, - options?: LogsIngestionClientOptions + options?: LogsIngestionClientOptions, ) { this.endpoint = endpoint; this._dataClient = new GeneratedMonitorIngestionClient(tokenCredential, this.endpoint, { @@ -61,7 +61,7 @@ export class LogsIngestionClient { streamName: string, logs: Record[], // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: LogsUploadOptions + options?: LogsUploadOptions, ): Promise { // TODO: Do we need to worry about memory issues when loading data for 100GB ?? JS max allocation is 1 or 2GB @@ -89,7 +89,7 @@ export class LogsIngestionClient { }); } }, - options?.abortSignal + options?.abortSignal, ); if (uploadResultErrors.length > 0) { throw new AggregateLogsUploadError(uploadResultErrors); diff --git a/sdk/monitor/monitor-ingestion/src/utils/concurrentPoolHelper.ts b/sdk/monitor/monitor-ingestion/src/utils/concurrentPoolHelper.ts index d1473086c909..2ce6d03ff04f 100644 --- a/sdk/monitor/monitor-ingestion/src/utils/concurrentPoolHelper.ts +++ b/sdk/monitor/monitor-ingestion/src/utils/concurrentPoolHelper.ts @@ -7,7 +7,7 @@ export async function concurrentRun( maxConcurrency: number, inputData: Array, callback: (args: T) => Promise, - abortSignal?: AbortSignalLike + abortSignal?: AbortSignalLike, ): Promise { const dataQueue = [...inputData].reverse(); const promises: Array> = []; diff --git a/sdk/monitor/monitor-ingestion/src/utils/getBinarySize.ts b/sdk/monitor/monitor-ingestion/src/utils/getBinarySize.ts index 6275145eb594..14579ae700f3 100644 --- a/sdk/monitor/monitor-ingestion/src/utils/getBinarySize.ts +++ b/sdk/monitor/monitor-ingestion/src/utils/getBinarySize.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. export function getBinarySize( - text: string | ArrayBuffer | NodeJS.ArrayBufferView | SharedArrayBuffer + text: string | ArrayBuffer | NodeJS.ArrayBufferView | SharedArrayBuffer, ): number { return Buffer.byteLength(text, "utf8"); } diff --git a/sdk/monitor/monitor-ingestion/test/public/logsIngestionClient.spec.ts b/sdk/monitor/monitor-ingestion/test/public/logsIngestionClient.spec.ts index 4ab4ea4c62f8..6e75666ecfc3 100644 --- a/sdk/monitor/monitor-ingestion/test/public/logsIngestionClient.spec.ts +++ b/sdk/monitor/monitor-ingestion/test/public/logsIngestionClient.spec.ts @@ -91,7 +91,7 @@ describe("LogsIngestionClient live tests", function () { createTestCredential(), recorder.configureClientOptions({ additionalPolicies, - }) + }), ); recordedClient.client = client; try { @@ -104,7 +104,7 @@ describe("LogsIngestionClient live tests", function () { result.forEach((err) => { assert.equal( err.cause.message, - `Data collection rule with immutable Id 'fake-id' not found.` + `Data collection rule with immutable Id 'fake-id' not found.`, ); }); @@ -133,7 +133,7 @@ describe("LogsIngestionClient live tests", function () { result.forEach((err) => { assert.equal( err.cause.message, - `Data collection rule with immutable Id 'immutable-id-123' not found.` + `Data collection rule with immutable Id 'immutable-id-123' not found.`, ); }); const chunkArraySize = getChunkArraylength(noOfElements); @@ -171,7 +171,7 @@ describe("LogsIngestionClient live tests", function () { result.forEach((err) => { assert.equal( err.cause.message, - `Data collection rule with immutable Id 'immutable-id-123' not found.` + `Data collection rule with immutable Id 'immutable-id-123' not found.`, ); }); } @@ -213,7 +213,7 @@ describe("LogsIngestionClient live tests", function () { assert.equal(error?.cause.name, "RestError"); assert.equal( error?.cause.message, - "Data collection rule with immutable Id 'immutable-id-123' not found." + "Data collection rule with immutable Id 'immutable-id-123' not found.", ); while (result.length > 0) { error = result.shift(); diff --git a/sdk/monitor/monitor-ingestion/test/public/shared/testShared.ts b/sdk/monitor/monitor-ingestion/test/public/shared/testShared.ts index 6a43cd49e9e9..f68b9b18e34c 100644 --- a/sdk/monitor/monitor-ingestion/test/public/shared/testShared.ts +++ b/sdk/monitor/monitor-ingestion/test/public/shared/testShared.ts @@ -36,7 +36,7 @@ export const testEnv = new Proxy(envSetupForPlayback, { export async function createClientAndStartRecorder( recorder: Recorder, additionalPolicies?: AdditionalPolicyConfig[], - retryOptions?: ExponentialRetryPolicyOptions + retryOptions?: ExponentialRetryPolicyOptions, ): Promise { await recorder.start(recorderOptions); const client = new LogsIngestionClient( @@ -45,7 +45,7 @@ export async function createClientAndStartRecorder( recorder.configureClientOptions({ retryOptions, additionalPolicies, - }) + }), ); return { client, diff --git a/sdk/monitor/monitor-opentelemetry-exporter/package.json b/sdk/monitor/monitor-opentelemetry-exporter/package.json index e247f6353a50..2dafda47a448 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/package.json +++ b/sdk/monitor/monitor-opentelemetry-exporter/package.json @@ -14,10 +14,10 @@ "build:node": "tsc -p . && dev-tool run bundle --browser-test=false", "build:samples": "dev-tool samples publish --force", "build": "npm run build:node && npm run build:browser && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md", "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src test --ext .ts -f html -o telemetry-exporter-lintReport.html || exit 0", @@ -97,7 +97,6 @@ "mocha": "^10.0.0", "nock": "^12.0.3", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "ts-node": "^10.0.0", diff --git a/sdk/monitor/monitor-opentelemetry-exporter/samples-dev/httpSample.ts b/sdk/monitor/monitor-opentelemetry-exporter/samples-dev/httpSample.ts index 885353196d2d..a5863236341e 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/samples-dev/httpSample.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/samples-dev/httpSample.ts @@ -107,7 +107,7 @@ function makeRequest() { console.log(body.toString()); span.end(); }); - } + }, ); }); } diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/export/log.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/export/log.ts index 100a499860de..56285109c8fb 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/export/log.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/export/log.ts @@ -44,7 +44,7 @@ export class AzureMonitorLogExporter extends AzureMonitorBaseExporter implements */ public async export( logs: ReadableLogRecord[], - resultCallback: (result: ExportResult) => void + resultCallback: (result: ExportResult) => void, ): Promise { if (this._isShutdown) { diag.info("Exporter shut down. Failed to export spans."); diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/export/metric.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/export/metric.ts index 3bb21720c0c0..ab06a2b8e15a 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/export/metric.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/export/metric.ts @@ -51,7 +51,7 @@ export class AzureMonitorMetricExporter */ async export( metrics: ResourceMetrics, - resultCallback: (result: ExportResult) => void + resultCallback: (result: ExportResult) => void, ): Promise { if (this._isShutdown) { diag.info("Exporter shut down. Failed to export spans."); diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/export/statsbeat/longIntervalStatsbeatMetrics.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/export/statsbeat/longIntervalStatsbeatMetrics.ts index b2474d025d81..bb095c1e87a6 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/export/statsbeat/longIntervalStatsbeatMetrics.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/export/statsbeat/longIntervalStatsbeatMetrics.ts @@ -76,7 +76,7 @@ class LongIntervalStatsbeatMetrics extends StatsbeatMetrics { this.instrumentation = JSON.parse(this.AZURE_MONITOR_STATSBEAT_FEATURES).instrumentation; } catch (error: any) { diag.error( - `LongIntervalStatsbeat: Failed to parse features/instrumentations (error ${error})` + `LongIntervalStatsbeat: Failed to parse features/instrumentations (error ${error})`, ); } } @@ -92,11 +92,11 @@ class LongIntervalStatsbeatMetrics extends StatsbeatMetrics { }; this.longIntervalMetricReader = new PeriodicExportingMetricReader( - longIntervalMetricReaderOptions + longIntervalMetricReaderOptions, ); this.longIntervalStatsbeatMeterProvider.addMetricReader(this.longIntervalMetricReader); this.longIntervalStatsbeatMeter = this.longIntervalStatsbeatMeterProvider.getMeter( - "Azure Monitor Long Interval Statsbeat" + "Azure Monitor Long Interval Statsbeat", ); // Assign Common Properties @@ -106,10 +106,10 @@ class LongIntervalStatsbeatMetrics extends StatsbeatMetrics { this.cikey = options.instrumentationKey; this.featureStatsbeatGauge = this.longIntervalStatsbeatMeter.createObservableGauge( - StatsbeatCounter.FEATURE + StatsbeatCounter.FEATURE, ); this.attachStatsbeatGauge = this.longIntervalStatsbeatMeter.createObservableGauge( - StatsbeatCounter.ATTACH + StatsbeatCounter.ATTACH, ); this.commonProperties = { @@ -147,7 +147,7 @@ class LongIntervalStatsbeatMetrics extends StatsbeatMetrics { if (result.code !== ExportResultCode.SUCCESS) { diag.error(`LongIntervalStatsbeat: metrics export failed (error ${result.error})`); } - } + }, ); } catch (error) { diag.debug("Call to get the resource provider failed."); diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/export/statsbeat/networkStatsbeatMetrics.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/export/statsbeat/networkStatsbeatMetrics.ts index 89c15fe6d8a1..f25af58fd1ef 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/export/statsbeat/networkStatsbeatMetrics.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/export/statsbeat/networkStatsbeatMetrics.ts @@ -78,7 +78,7 @@ export class NetworkStatsbeatMetrics extends StatsbeatMetrics { this.networkMetricReader = new PeriodicExportingMetricReader(networkMetricReaderOptions); this.networkStatsbeatMeterProvider.addMetricReader(this.networkMetricReader); this.networkStatsbeatMeter = this.networkStatsbeatMeterProvider.getMeter( - "Azure Monitor Network Statsbeat" + "Azure Monitor Network Statsbeat", ); this.endpointUrl = options.endpointUrl; @@ -89,22 +89,22 @@ export class NetworkStatsbeatMetrics extends StatsbeatMetrics { this.cikey = options.instrumentationKey; this.successCountGauge = this.networkStatsbeatMeter.createObservableGauge( - StatsbeatCounter.SUCCESS_COUNT + StatsbeatCounter.SUCCESS_COUNT, ); this.failureCountGauge = this.networkStatsbeatMeter.createObservableGauge( - StatsbeatCounter.FAILURE_COUNT + StatsbeatCounter.FAILURE_COUNT, ); this.retryCountGauge = this.networkStatsbeatMeter.createObservableGauge( - StatsbeatCounter.RETRY_COUNT + StatsbeatCounter.RETRY_COUNT, ); this.throttleCountGauge = this.networkStatsbeatMeter.createObservableGauge( - StatsbeatCounter.THROTTLE_COUNT + StatsbeatCounter.THROTTLE_COUNT, ); this.exceptionCountGauge = this.networkStatsbeatMeter.createObservableGauge( - StatsbeatCounter.EXCEPTION_COUNT + StatsbeatCounter.EXCEPTION_COUNT, ); this.averageDurationGauge = this.networkStatsbeatMeter.createObservableGauge( - StatsbeatCounter.AVERAGE_DURATION + StatsbeatCounter.AVERAGE_DURATION, ); this.commonProperties = { @@ -260,7 +260,7 @@ export class NetworkStatsbeatMetrics extends StatsbeatMetrics { } const counter: NetworkStatsbeat = this.getNetworkStatsbeatCounter(this.endpointUrl, this.host); const currentStatusCounter = counter.totalFailedRequestCount.find( - (statusCounter) => statusCode === statusCounter.statusCode + (statusCounter) => statusCode === statusCounter.statusCode, ); if (currentStatusCounter) { @@ -279,7 +279,7 @@ export class NetworkStatsbeatMetrics extends StatsbeatMetrics { } const counter: NetworkStatsbeat = this.getNetworkStatsbeatCounter(this.endpointUrl, this.host); const currentStatusCounter = counter.retryCount.find( - (statusCounter) => statusCode === statusCounter.statusCode + (statusCounter) => statusCode === statusCounter.statusCode, ); if (currentStatusCounter) { @@ -295,7 +295,7 @@ export class NetworkStatsbeatMetrics extends StatsbeatMetrics { } const counter: NetworkStatsbeat = this.getNetworkStatsbeatCounter(this.endpointUrl, this.host); const currentStatusCounter = counter.throttleCount.find( - (statusCounter) => statusCode === statusCounter.statusCode + (statusCounter) => statusCode === statusCounter.statusCode, ); if (currentStatusCounter) { @@ -311,7 +311,7 @@ export class NetworkStatsbeatMetrics extends StatsbeatMetrics { } const counter: NetworkStatsbeat = this.getNetworkStatsbeatCounter(this.endpointUrl, this.host); const currentErrorCounter = counter.exceptionCount.find( - (exceptionCounter) => exceptionType.name === exceptionCounter.exceptionType + (exceptionCounter) => exceptionType.name === exceptionCounter.exceptionType, ); if (currentErrorCounter) { currentErrorCounter.count++; diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/export/statsbeat/statsbeatExporter.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/export/statsbeat/statsbeatExporter.ts index fc0515a40370..a2021ce3b10d 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/export/statsbeat/statsbeatExporter.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/export/statsbeat/statsbeatExporter.ts @@ -41,7 +41,7 @@ export class AzureMonitorStatsbeatExporter */ async export( metrics: ResourceMetrics, - resultCallback: (result: ExportResult) => void + resultCallback: (result: ExportResult) => void, ): Promise { if (this._isShutdown) { setTimeout(() => resultCallback({ code: ExportResultCode.FAILED }), 0); @@ -51,7 +51,7 @@ export class AzureMonitorStatsbeatExporter const envelopes: Envelope[] = resourceMetricsToEnvelope( metrics, this.instrumentationKey, - true // isStatsbeat flag passed to create a Statsbeat envelope. + true, // isStatsbeat flag passed to create a Statsbeat envelope. ); // Supress tracing until OpenTelemetry Metrics SDK support it context.with(suppressTracing(context.active()), async () => { diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/export/trace.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/export/trace.ts index a06924c7fd1e..8a7a892ff112 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/export/trace.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/export/trace.ts @@ -44,7 +44,7 @@ export class AzureMonitorTraceExporter extends AzureMonitorBaseExporter implemen */ async export( spans: ReadableSpan[], - resultCallback: (result: ExportResult) => void + resultCallback: (result: ExportResult) => void, ): Promise { if (this.isShutdown) { diag.info("Exporter shut down. Failed to export spans."); @@ -58,7 +58,7 @@ export class AzureMonitorTraceExporter extends AzureMonitorBaseExporter implemen const envelopes: Envelope[] = []; const resourceMetricEnvelope = createResourceMetricEnvelope( spans[0].resource, - this.instrumentationKey + this.instrumentationKey, ); if (resourceMetricEnvelope) { envelopes.push(resourceMetricEnvelope); diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/platform/nodejs/baseSender.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/platform/nodejs/baseSender.ts index 8b4f0df3942c..6b944fae4ddb 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/platform/nodejs/baseSender.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/platform/nodejs/baseSender.ts @@ -169,14 +169,14 @@ export abstract class BaseSender { } diag.error( "Retrying due to transient client side error. Error message:", - restError.message + restError.message, ); return this.persist(envelopes); } this.networkStatsbeatMetrics?.countException(restError); diag.error( "Envelopes could not be exported and are not retriable. Error message:", - restError.message + restError.message, ); return { code: ExportResultCode.FAILED, error: restError }; } diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/platform/nodejs/persist/fileAccessControl.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/platform/nodejs/persist/fileAccessControl.ts index 28b2d46726ff..a09a172c69a6 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/platform/nodejs/persist/fileAccessControl.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/platform/nodejs/persist/fileAccessControl.ts @@ -30,14 +30,14 @@ export class FileAccessControl { // This guarantees we can immediately fail setDiskRetryMode if we need to try { FileAccessControl.OS_PROVIDES_FILE_PROTECTION = fs.existsSync( - FileAccessControl.ICACLS_PATH + FileAccessControl.ICACLS_PATH, ); } catch (e: any) { // Ignore error } if (!FileAccessControl.OS_PROVIDES_FILE_PROTECTION) { diag.warn( - "Could not find ICACLS in expected location! This is necessary to use disk retry mode on Windows." + "Could not find ICACLS in expected location! This is necessary to use disk retry mode on Windows.", ); } } else { @@ -96,7 +96,7 @@ export class FileAccessControl { resolve(); } else { reject( - new Error(`Setting ACL restrictions did not succeed (ICACLS returned code ${code})`) + new Error(`Setting ACL restrictions did not succeed (ICACLS returned code ${code})`), ); } }); @@ -113,7 +113,7 @@ export class FileAccessControl { throw aclProc.error; } else if (aclProc.status !== 0) { throw new Error( - `Setting ACL restrictions did not succeed (ICACLS returned code ${aclProc.status})` + `Setting ACL restrictions did not succeed (ICACLS returned code ${aclProc.status})`, ); } } else { @@ -132,7 +132,7 @@ export class FileAccessControl { { windowsHide: true, stdio: ["ignore", "pipe", "pipe"], // Needed to prevent hanging on Win 7 - } + }, ); let data = ""; psProc.stdout.on("data", (d: string) => (data += d)); @@ -160,7 +160,7 @@ export class FileAccessControl { { windowsHide: true, stdio: ["ignore", "pipe", "pipe"], // Needed to prevent hanging on Win 7 - } + }, ); if (psProc.error) { throw psProc.error; diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/platform/nodejs/persist/fileSystemPersist.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/platform/nodejs/persist/fileSystemPersist.ts index ee3daaa24a69..0f5b596b5a5d 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/platform/nodejs/persist/fileSystemPersist.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/platform/nodejs/persist/fileSystemPersist.ts @@ -34,7 +34,10 @@ export class FileSystemPersist implements PersistentStorage { private _fileCleanupTimer: NodeJS.Timeout | null = null; private _instrumentationKey: string; - constructor(instrumentationKey: string, private _options?: AzureMonitorExporterOptions) { + constructor( + instrumentationKey: string, + private _options?: AzureMonitorExporterOptions, + ) { this._instrumentationKey = instrumentationKey; if (this._options?.disableOfflineStorage) { this._enabled = false; @@ -46,14 +49,14 @@ export class FileSystemPersist implements PersistentStorage { if (!FileAccessControl.OS_PROVIDES_FILE_PROTECTION) { this._enabled = false; diag.error( - "Sufficient file protection capabilities were not detected. Files will not be persisted" + "Sufficient file protection capabilities were not detected. Files will not be persisted", ); } if (!this._instrumentationKey) { this._enabled = false; diag.error( - `No instrumentation key was provided to FileSystemPersister. Files will not be persisted` + `No instrumentation key was provided to FileSystemPersister. Files will not be persisted`, ); } if (this._enabled) { @@ -61,7 +64,7 @@ export class FileSystemPersist implements PersistentStorage { this._options?.storageDirectory || os.tmpdir(), "Microsoft", "AzureMonitor", - FileSystemPersist.TEMPDIR_PREFIX + this._instrumentationKey + FileSystemPersist.TEMPDIR_PREFIX + this._instrumentationKey, ); // Starts file cleanup task @@ -112,7 +115,7 @@ export class FileSystemPersist implements PersistentStorage { if (stats.isDirectory()) { const origFiles = await readdirAsync(this._tempDirectory); const files = origFiles.filter((f) => - path.basename(f).includes(FileSystemPersist.FILENAME_SUFFIX) + path.basename(f).includes(FileSystemPersist.FILENAME_SUFFIX), ); if (files.length === 0) { return null; @@ -148,7 +151,7 @@ export class FileSystemPersist implements PersistentStorage { const size = await getShallowDirectorySize(this._tempDirectory); if (size > this.maxBytesOnDisk) { diag.warn( - `Not saving data due to max size limit being met. Directory size in bytes is: ${size}` + `Not saving data due to max size limit being met. Directory size in bytes is: ${size}`, ); return false; } @@ -177,7 +180,7 @@ export class FileSystemPersist implements PersistentStorage { if (stats.isDirectory()) { const origFiles = await readdirAsync(this._tempDirectory); const files = origFiles.filter((f) => - path.basename(f).includes(FileSystemPersist.FILENAME_SUFFIX) + path.basename(f).includes(FileSystemPersist.FILENAME_SUFFIX), ); if (files.length === 0) { return false; @@ -185,7 +188,7 @@ export class FileSystemPersist implements PersistentStorage { files.forEach(async (file) => { // Check expiration const fileCreationDate: Date = new Date( - parseInt(file.split(FileSystemPersist.FILENAME_SUFFIX)[0]) + parseInt(file.split(FileSystemPersist.FILENAME_SUFFIX)[0]), ); const expired = new Date(+new Date() - this.fileRetemptionPeriod) > fileCreationDate; if (expired) { diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/sampling.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/sampling.ts index 6432a5d55ee8..70858125805c 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/sampling.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/sampling.ts @@ -50,7 +50,7 @@ export class ApplicationInsightsSampler implements Sampler { spanKind: SpanKind, attributes: Attributes, // @ts-ignore - links: Link[] + links: Link[], ): SamplingResult { let isSampledIn = false; if (this._sampleRate === 100) { diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/common.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/common.ts index 97220021f778..9e2ca4b3e7a4 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/common.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/common.ts @@ -171,7 +171,7 @@ export function getDependencyTarget(attributes: Attributes): string { export function createResourceMetricEnvelope( resource: Resource, - instrumentationKey: string + instrumentationKey: string, ): Envelope | undefined { if (resource && resource.attributes) { const tags = createTagsFromResource(resource); diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/connectionStringParser.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/connectionStringParser.ts index 03f5091484a3..591de8d582d1 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/connectionStringParser.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/connectionStringParser.ts @@ -35,7 +35,7 @@ export class ConnectionStringParser { diag.error( `Connection string key-value pair is invalid: ${kv}`, `Entire connection string will be discarded`, - connectionString + connectionString, ); isValid = false; return fields; @@ -61,13 +61,13 @@ export class ConnectionStringParser { : Constants.DEFAULT_LIVEMETRICS_ENDPOINT; if (result.authorization && result.authorization.toLowerCase() !== "ikey") { diag.warn( - `Connection String contains an unsupported 'Authorization' value: ${result.authorization!}. Defaulting to 'Authorization=ikey'. Instrumentation Key ${result.instrumentationkey!}` + `Connection String contains an unsupported 'Authorization' value: ${result.authorization!}. Defaulting to 'Authorization=ikey'. Instrumentation Key ${result.instrumentationkey!}`, ); } } else { diag.error( "An invalid connection string was passed in. There may be telemetry loss", - connectionString + connectionString, ); } diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/eventhub.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/eventhub.ts index adf2698b08bb..0cd8424446a1 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/eventhub.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/eventhub.ts @@ -40,7 +40,7 @@ const getTimeSinceEnqueued = (span: ReadableSpan) => { */ export const parseEventHubSpan = ( span: ReadableSpan, - baseData: RequestData | RemoteDependencyData + baseData: RequestData | RemoteDependencyData, ): void => { const namespace = span.attributes[AzNamespace] as typeof MicrosoftEventHub; const peerAddress = ( diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/metricUtils.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/metricUtils.ts index 82ce69977784..a7605beec151 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/metricUtils.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/metricUtils.ts @@ -25,7 +25,7 @@ function createPropertiesFromMetricAttributes(attributes?: Attributes): { export function resourceMetricsToEnvelope( metrics: ResourceMetrics, ikey: string, - isStatsbeat?: boolean + isStatsbeat?: boolean, ): Envelope[] { const envelopes: Envelope[] = []; const time = new Date(); diff --git a/sdk/monitor/monitor-opentelemetry-exporter/test-opentelemetry-versions.js b/sdk/monitor/monitor-opentelemetry-exporter/test-opentelemetry-versions.js index d3b7205582c0..b06130ad297c 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/test-opentelemetry-versions.js +++ b/sdk/monitor/monitor-opentelemetry-exporter/test-opentelemetry-versions.js @@ -38,7 +38,7 @@ function runProcess(cmd, callback) { process.exit(0); }); }); - } + }, ); } } catch (error) { diff --git a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/context.test.ts b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/context.test.ts index 9f0ebdffe02c..e3f2ab5225c4 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/context.test.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/context.test.ts @@ -19,15 +19,15 @@ describe("context.ts", () => { context["_loadInternalContext"](); assert.ok( context.tags["ai.internal.sdkVersion"].startsWith("node"), - "Wrong ai.internal.sdkVersion" + "Wrong ai.internal.sdkVersion", ); assert.ok( context.tags["ai.internal.sdkVersion"].indexOf(":otel") > 0, - "Wrong ai.internal.sdkVersion" + "Wrong ai.internal.sdkVersion", ); assert.ok( context.tags["ai.internal.sdkVersion"].indexOf(":ext") > 0, - "Wrong ai.internal.sdkVersion" + "Wrong ai.internal.sdkVersion", ); process.env["AZURE_MONITOR_AGENT_PREFIX"] = "testPrefix_"; @@ -35,15 +35,15 @@ describe("context.ts", () => { context["_loadInternalContext"](); assert.ok( context.tags["ai.internal.sdkVersion"].startsWith("testPrefix_node"), - "Wrong ai.internal.sdkVersion" + "Wrong ai.internal.sdkVersion", ); assert.ok( context.tags["ai.internal.sdkVersion"].indexOf(":otel") > 0, - "Wrong ai.internal.sdkVersion" + "Wrong ai.internal.sdkVersion", ); assert.ok( context.tags["ai.internal.sdkVersion"].endsWith(":dst_testDistroVersion"), - "Wrong ai.internal.sdkVersion" + "Wrong ai.internal.sdkVersion", ); }); }); diff --git a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/eventhub.test.ts b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/eventhub.test.ts index e17c362555bc..a682b6b19289 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/eventhub.test.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/eventhub.test.ts @@ -32,7 +32,7 @@ describe("#parseEventHubSpan(...)", () => { ROOT_CONTEXT, "test span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, - SpanKind.CLIENT + SpanKind.CLIENT, ); span.setAttributes(attributes); @@ -53,7 +53,7 @@ describe("#parseEventHubSpan(...)", () => { ROOT_CONTEXT, "test span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, - SpanKind.PRODUCER + SpanKind.PRODUCER, ); span.setAttributes(attributes); @@ -90,7 +90,7 @@ describe("#parseEventHubSpan(...)", () => { context: null as unknown as SpanContext, attributes: { [ENQUEUED_TIME]: startTime - 111 }, }, - ] + ], ); // cast since startTime is readonly diff --git a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/fileSystemPersist.test.ts b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/fileSystemPersist.test.ts index 24668fe400c5..6f82d4183bee 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/fileSystemPersist.test.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/fileSystemPersist.test.ts @@ -20,7 +20,7 @@ const tempDir = path.join( os.tmpdir(), "Microsoft", "AzureMonitor", - `${FileSystemPersist.TEMPDIR_PREFIX}${instrumentationKey}` + `${FileSystemPersist.TEMPDIR_PREFIX}${instrumentationKey}`, ); const deleteFolderRecursive = (dirPath: string): void => { @@ -97,7 +97,7 @@ describe("FileSystemPersist", () => { customPath, "Microsoft", "AzureMonitor", - `${FileSystemPersist.TEMPDIR_PREFIX}${instrumentationKey}` + `${FileSystemPersist.TEMPDIR_PREFIX}${instrumentationKey}`, ); deleteFolderRecursive(tempDir); const envelope: Envelope = { diff --git a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/httpSender.test.ts b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/httpSender.test.ts index 668e96c7bbfe..fdeedd7628a0 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/httpSender.test.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/httpSender.test.ts @@ -424,7 +424,7 @@ describe("HttpSender", () => { assert.ok( sender["appInsightsClient"].pipeline.getOrderedPolicies().find((policy: PipelinePolicy) => { return policy.name === "bearerTokenAuthenticationPolicy"; - }) + }), ); }); @@ -458,7 +458,7 @@ describe("HttpSender", () => { assert.ok( sender["appInsightsClient"].pipeline.getOrderedPolicies().find((policy: PipelinePolicy) => { return policy.name === "proxyPolicy"; - }) + }), ); }); }); diff --git a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/logUtils.test.ts b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/logUtils.test.ts index 37fc8859dce5..01914f261c60 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/logUtils.test.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/logUtils.test.ts @@ -36,7 +36,7 @@ function assertEnvelope( expectedProperties?: Properties, expectedMeasurements?: Measurements | undefined, expectedBaseData?: Partial, - expectedTime?: Date + expectedTime?: Date, ): void { assert.ok(envelope); assert.strictEqual(envelope.name, name); @@ -126,7 +126,7 @@ describe("logUtils.ts", () => { expectedProperties, emptyMeasurements, expectedBaseData, - expectedTime + expectedTime, ); }); @@ -168,7 +168,7 @@ describe("logUtils.ts", () => { expectedProperties, emptyMeasurements, expectedBaseData, - expectedTime + expectedTime, ); }); }); @@ -209,7 +209,7 @@ describe("logUtils.ts", () => { expectedProperties, emptyMeasurements, expectedBaseData, - expectedTime + expectedTime, ); }); @@ -261,7 +261,7 @@ describe("logUtils.ts", () => { expectedProperties, emptyMeasurements, expectedBaseData, - expectedTime + expectedTime, ); }); @@ -307,7 +307,7 @@ describe("logUtils.ts", () => { expectedProperties, emptyMeasurements, expectedBaseData, - expectedTime + expectedTime, ); }); @@ -351,7 +351,7 @@ describe("logUtils.ts", () => { expectedProperties, emptyMeasurements, expectedBaseData, - expectedTime + expectedTime, ); }); @@ -387,7 +387,7 @@ describe("logUtils.ts", () => { expectedProperties, emptyMeasurements, expectedBaseData, - expectedTime + expectedTime, ); }); }); @@ -422,7 +422,7 @@ describe("logUtils.ts", () => { expectedProperties, emptyMeasurements, expectedBaseData, - expectedTime + expectedTime, ); }); }); diff --git a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/metricUtil.test.ts b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/metricUtil.test.ts index 4b433bf05644..386d2667b8c1 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/metricUtil.test.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/metricUtil.test.ts @@ -51,7 +51,7 @@ function assertEnvelope( baseType: string, expectedTags: Tags, expectedBaseData: Partial, - expectedTime?: Date + expectedTime?: Date, ): void { assert.strictEqual(Context.sdkVersion, packageJson.version); assert.ok(envelope); @@ -125,7 +125,7 @@ describe("metricUtil.ts", () => { 100, "MetricData", expectedTags, - expectedBaseData + expectedBaseData, ); }); }); diff --git a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/sampling.test.ts b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/sampling.test.ts index 0d444587b332..c259d0eb1c1d 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/sampling.test.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/sampling.test.ts @@ -28,7 +28,7 @@ describe("Library/ApplicationInsightsSampler", () => { "", SpanKind.INTERNAL, {}, - [] + [], ); if (result.decision === SamplingDecision.RECORD_AND_SAMPLED) accepted++; } @@ -49,7 +49,7 @@ describe("Library/ApplicationInsightsSampler", () => { "", SpanKind.INTERNAL, {}, - [] + [], ); if (result.decision === SamplingDecision.RECORD_AND_SAMPLED) accepted++; } @@ -70,7 +70,7 @@ describe("Library/ApplicationInsightsSampler", () => { "", SpanKind.INTERNAL, {}, - [] + [], ); if (result.decision === SamplingDecision.RECORD_AND_SAMPLED) accepted++; } diff --git a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/spanUtils.test.ts b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/spanUtils.test.ts index 626a3bba70b9..2fe5d5813f34 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/spanUtils.test.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/spanUtils.test.ts @@ -44,7 +44,7 @@ function assertEnvelope( expectedProperties: Properties, expectedMeasurements: Measurements | undefined, expectedBaseData: Partial, - expectedTime?: Date + expectedTime?: Date, ): void { assert.strictEqual(Context.sdkVersion, packageJson.version); assert.ok(envelope); @@ -73,7 +73,7 @@ function assertEnvelope( assert.deepStrictEqual((envelope?.data?.baseData as RequestData).properties, expectedProperties); assert.deepStrictEqual( (envelope?.data?.baseData as RequestData).measurements, - expectedMeasurements + expectedMeasurements, ); assert.deepStrictEqual(envelope.data?.baseData, expectedBaseData); } @@ -90,7 +90,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.SERVER, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ "extra.attribute": "foo", @@ -131,7 +131,7 @@ describe("spanUtils.ts", () => { expectedTags, expectedProperties, emptyMeasurements, - expectedBaseData + expectedBaseData, ); }); it("should create a Dependency Envelope for Client Spans", () => { @@ -141,7 +141,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.CLIENT, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ "extra.attribute": "foo", @@ -182,7 +182,7 @@ describe("spanUtils.ts", () => { expectedTags, expectedProperties, emptyMeasurements, - expectedBaseData + expectedBaseData, ); }); it("should create a Dependency Envelope for Client Spans with an updated dependency target", () => { @@ -192,7 +192,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.CLIENT, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ "extra.attribute": "foo", @@ -234,7 +234,7 @@ describe("spanUtils.ts", () => { expectedTags, expectedProperties, emptyMeasurements, - expectedBaseData + expectedBaseData, ); }); }); @@ -246,7 +246,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.SERVER, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ "_MS.sampleRate": "50", @@ -283,7 +283,7 @@ describe("spanUtils.ts", () => { {}, emptyMeasurements, expectedBaseData, - expectedTime + expectedTime, ); }); @@ -294,7 +294,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.INTERNAL, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ "az.namespace": "Microsoft.EventHub", @@ -333,7 +333,7 @@ describe("spanUtils.ts", () => { expectedProperties, emptyMeasurements, expectedBaseData, - expectedTime + expectedTime, ); }); @@ -344,7 +344,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.CLIENT, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ "extra.attribute": "foo", @@ -382,7 +382,7 @@ describe("spanUtils.ts", () => { expectedTags, expectedProperties, emptyMeasurements, - expectedBaseData + expectedBaseData, ); }); }); @@ -396,7 +396,7 @@ describe("spanUtils.ts", () => { { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.SERVER, "parentSpanId", - [{ context: { traceId: "traceid", spanId: "spanId", traceFlags: 0 } }] + [{ context: { traceId: "traceid", spanId: "spanId", traceFlags: 0 } }], ); span.setAttributes({ [SemanticAttributes.HTTP_METHOD]: "GET", @@ -440,7 +440,7 @@ describe("spanUtils.ts", () => { expectedTags, expectedProperties, emptyMeasurements, - expectedBaseData + expectedBaseData, ); }); it("should set AiOperationName when only httpUrl is set", () => { @@ -450,7 +450,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.SERVER, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ [SemanticAttributes.HTTP_METHOD]: "GET", @@ -495,7 +495,7 @@ describe("spanUtils.ts", () => { expectedTags, expectedProperties, emptyMeasurements, - expectedBaseData + expectedBaseData, ); }); it("should set AiLocationIp when httpMethod not set and netPeerIp is", () => { @@ -505,7 +505,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.SERVER, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ [SemanticAttributes.HTTP_URL]: "https://example.com/api/example", @@ -548,7 +548,7 @@ describe("spanUtils.ts", () => { expectedTags, expectedProperties, emptyMeasurements, - expectedBaseData + expectedBaseData, ); }); it("should create a Dependency Envelope for Client Spans", () => { @@ -558,7 +558,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.CLIENT, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ [SemanticAttributes.HTTP_METHOD]: "GET", @@ -601,7 +601,7 @@ describe("spanUtils.ts", () => { expectedTags, expectedProperties, emptyMeasurements, - expectedBaseData + expectedBaseData, ); }); }); @@ -614,7 +614,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.PRODUCER, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ "extra.attribute": "foo", @@ -648,7 +648,7 @@ describe("spanUtils.ts", () => { expectedTags, expectedProperties, emptyMeasurements, - expectedBaseData + expectedBaseData, ); }); it("should create a Dependency Envelope for Internal Spans", () => { @@ -658,7 +658,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.INTERNAL, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ "extra.attribute": "foo", @@ -692,7 +692,7 @@ describe("spanUtils.ts", () => { expectedTags, expectedProperties, emptyMeasurements, - expectedBaseData + expectedBaseData, ); }); it("should remove default port if target is defined", () => { @@ -702,7 +702,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.INTERNAL, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ [SemanticAttributes.HTTP_METHOD]: "GET", @@ -740,7 +740,7 @@ describe("spanUtils.ts", () => { expectedTags, expectedProperties, emptyMeasurements, - expectedBaseData + expectedBaseData, ); }); }); @@ -753,7 +753,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.CLIENT, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ [SemanticAttributes.DB_SYSTEM]: DbSystemValues.MYSQL, @@ -794,7 +794,7 @@ describe("spanUtils.ts", () => { expectedTags, expectedProperties, emptyMeasurements, - expectedBaseData + expectedBaseData, ); }); it("should create a Dependency Envelope for PostgreSQL spans", () => { @@ -804,7 +804,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.CLIENT, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ [SemanticAttributes.DB_SYSTEM]: DbSystemValues.POSTGRESQL, @@ -845,7 +845,7 @@ describe("spanUtils.ts", () => { expectedTags, expectedProperties, emptyMeasurements, - expectedBaseData + expectedBaseData, ); }); it("should create a Dependency Envelope for MongoDB spans", () => { @@ -855,7 +855,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.CLIENT, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ [SemanticAttributes.DB_SYSTEM]: DbSystemValues.MONGODB, @@ -896,7 +896,7 @@ describe("spanUtils.ts", () => { expectedTags, expectedProperties, emptyMeasurements, - expectedBaseData + expectedBaseData, ); }); it("should create a Dependency Envelope for Redis spans", () => { @@ -906,7 +906,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.CLIENT, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ [SemanticAttributes.DB_SYSTEM]: DbSystemValues.REDIS, @@ -947,7 +947,7 @@ describe("spanUtils.ts", () => { expectedTags, expectedProperties, emptyMeasurements, - expectedBaseData + expectedBaseData, ); }); it("should create a Dependency Envelope for SQL spans", () => { @@ -957,7 +957,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.CLIENT, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ [SemanticAttributes.DB_SYSTEM]: DbSystemValues.SQLITE, @@ -998,7 +998,7 @@ describe("spanUtils.ts", () => { expectedTags, expectedProperties, emptyMeasurements, - expectedBaseData + expectedBaseData, ); }); it("should create a Dependency Envelope for other database spans", () => { @@ -1008,7 +1008,7 @@ describe("spanUtils.ts", () => { "parent span", { traceId: "traceid", spanId: "spanId", traceFlags: 0 }, SpanKind.CLIENT, - "parentSpanId" + "parentSpanId", ); span.setAttributes({ [SemanticAttributes.DB_SYSTEM]: DbSystemValues.HIVE, @@ -1051,7 +1051,7 @@ describe("spanUtils.ts", () => { expectedTags, expectedProperties, emptyMeasurements, - expectedBaseData + expectedBaseData, ); }); }); diff --git a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/statsbeat.test.ts b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/statsbeat.test.ts index aa1c01946f35..d67119e71c1a 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/test/internal/statsbeat.test.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/test/internal/statsbeat.test.ts @@ -80,11 +80,11 @@ describe("#AzureMonitorStatsbeatExporter", () => { const statsbeat = new NetworkStatsbeatMetrics(options); assert.strictEqual( statsbeat["getShortHost"]("http://westus02-1.in.applicationinsights.azure.com"), - "westus02" + "westus02", ); assert.strictEqual( statsbeat["getShortHost"]("https://westus02-1.in.applicationinsights.azure.com"), - "westus02" + "westus02", ); assert.strictEqual(statsbeat["getShortHost"]("https://dc.services.visualstudio.com"), "dc"); assert.strictEqual(statsbeat["getShortHost"]("https://www.test.com"), "test"); @@ -101,13 +101,13 @@ describe("#AzureMonitorStatsbeatExporter", () => { assert.strictEqual(statsbeat["attach"], "Manual"); assert.strictEqual( statsbeat["cikey"], - "InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333;" + "InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333;", ); assert.strictEqual(statsbeat["language"], "node"); assert.strictEqual(statsbeat["resourceProvider"], "unknown"); assert.strictEqual( statsbeat["endpointUrl"], - "IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com" + "IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com", ); assert.ok(statsbeat["os"]); assert.ok(statsbeat["runtimeVersion"]); @@ -377,7 +377,7 @@ describe("#AzureMonitorStatsbeatExporter", () => { const longIntervalStatsbeat = getInstance(options); const mockExport = sandbox.stub( longIntervalStatsbeat["longIntervalAzureExporter"], - "export" + "export", ); await new Promise((resolve) => setTimeout(resolve, 120)); diff --git a/sdk/monitor/monitor-opentelemetry-exporter/test/utils/assert.ts b/sdk/monitor/monitor-opentelemetry-exporter/test/utils/assert.ts index 14b4885713f9..14d940078a86 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/test/utils/assert.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/test/utils/assert.ts @@ -22,7 +22,7 @@ export const assertData = (actual: MonitorBase, expected: MonitorBase): void => assert.deepStrictEqual( actual.baseData[serializedKey], value, - `baseData.${serializedKey} should be equal\nActual: ${actual.baseData[serializedKey]}\nExpected: ${value}` + `baseData.${serializedKey} should be equal\nActual: ${actual.baseData[serializedKey]}\nExpected: ${value}`, ); } }; @@ -68,7 +68,7 @@ export const assertTrace = (actual: Envelope[], expectation: Expectation): void assert.strictEqual( childEnvelopes.length, 1, - `Envelope ${(envelope[0].data!.baseData as RequestData).name} found ${childEnvelopes.length}` + `Envelope ${(envelope[0].data!.baseData as RequestData).name} found ${childEnvelopes.length}`, ); } }; @@ -104,7 +104,7 @@ export const assertTraceExpectation = (actual: Envelope[], expectations: Expecta false, `assertExpectation: could not find exported envelope: ${ (expectation.data?.baseData as MonitorDomain).name - }` + }`, ); } @@ -127,7 +127,7 @@ export const assertTraceExpectation = (actual: Envelope[], expectations: Expecta assert.strictEqual( envelope[0][serializedKey as keyof Envelope], // as keyof Serialized(Envelope) value, - `envelope.${serializedKey} should be equal\nActual: ${envelope[0][key]}\nExpected: ${value}` + `envelope.${serializedKey} should be equal\nActual: ${envelope[0][key]}\nExpected: ${value}`, ); } } @@ -154,7 +154,7 @@ export const assertMetricExpectation = (actual: Envelope[], expectations: Expect false, `assertExpectation: Envelope ${ (expectation.data?.baseData as MetricsData).metrics[0].name - } found ${envelope.length} times.` + } found ${envelope.length} times.`, ); } @@ -174,7 +174,7 @@ export const assertMetricExpectation = (actual: Envelope[], expectations: Expect assert.strictEqual( envelope[0][serializedKey as keyof Envelope], // as keyof Serialized(Envelope) value, - `envelope.${serializedKey} should be equal\nActual: ${envelope[0][key]}\nExpected: ${value}` + `envelope.${serializedKey} should be equal\nActual: ${envelope[0][key]}\nExpected: ${value}`, ); } } @@ -198,7 +198,7 @@ export const assertLogExpectation = (actual: Envelope[], expectations: Expectati false, `assertExpectation: could not find exported envelope: ${ (expectation.data?.baseData as any).name - }` + }`, ); } @@ -218,7 +218,7 @@ export const assertLogExpectation = (actual: Envelope[], expectations: Expectati assert.strictEqual( envelope[0][serializedKey as keyof Envelope], // as keyof Serialized(Envelope) value, - `envelope.${serializedKey} should be equal\nActual: ${envelope[0][key]}\nExpected: ${value}` + `envelope.${serializedKey} should be equal\nActual: ${envelope[0][key]}\nExpected: ${value}`, ); } } diff --git a/sdk/monitor/monitor-opentelemetry-exporter/test/utils/basic.ts b/sdk/monitor/monitor-opentelemetry-exporter/test/utils/basic.ts index 4304c3bf349a..4d483f5e5105 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/test/utils/basic.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/test/utils/basic.ts @@ -80,7 +80,7 @@ export class TraceBasicScenario implements Scenario { numbers: "123", }, }, - ctx + ctx, ); const eventAttributes: any = {}; eventAttributes["SomeAttribute"] = "Test"; diff --git a/sdk/monitor/monitor-opentelemetry/package.json b/sdk/monitor/monitor-opentelemetry/package.json index 126f73a196bc..b7b9d0722d82 100644 --- a/sdk/monitor/monitor-opentelemetry/package.json +++ b/sdk/monitor/monitor-opentelemetry/package.json @@ -14,10 +14,10 @@ "build:node": "tsc -p . && dev-tool run bundle --browser-test=false", "build:samples": "dev-tool samples publish --force", "build": "npm run build:node && npm run build:browser && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md", "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src test --ext .ts -f html -o telemetry-lintReport.html || exit 0", @@ -78,7 +78,6 @@ "mocha": "^10.0.0", "nock": "^12.0.3", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "ts-node": "^10.0.0", diff --git a/sdk/monitor/monitor-opentelemetry/src/browserSdkLoader/browserSdkLoader.ts b/sdk/monitor/monitor-opentelemetry/src/browserSdkLoader/browserSdkLoader.ts index 0f0cf1fed8ce..daa2763178b6 100644 --- a/sdk/monitor/monitor-opentelemetry/src/browserSdkLoader/browserSdkLoader.ts +++ b/sdk/monitor/monitor-opentelemetry/src/browserSdkLoader/browserSdkLoader.ts @@ -25,7 +25,7 @@ export class BrowserSdkLoader { constructor(config: InternalConfig) { if (!!BrowserSdkLoader._instance) { throw new Error( - "Browser SDK Loader should be configured from the applicationInsights object" + "Browser SDK Loader should be configured from the applicationInsights object", ); } @@ -35,7 +35,7 @@ export class BrowserSdkLoader { let clientWebIkey; if (config.browserSdkLoaderOptions?.connectionString) { clientWebIkey = this._getBrowserSdkLoaderIkey( - config?.browserSdkLoaderOptions?.connectionString + config?.browserSdkLoaderOptions?.connectionString, ); } this._browserSdkLoaderIkey = @@ -66,7 +66,7 @@ export class BrowserSdkLoader { if (!ConnectionStringParser.validateInstrumentationKey(iKeyCode)) { this._isIkeyValid = false; Logger.getInstance().info( - "Invalid browser SDK loader connection string, browser SDK loader is not enabled." + "Invalid browser SDK loader connection string, browser SDK loader is not enabled.", ); } else { this._isIkeyValid = true; @@ -91,7 +91,7 @@ export class BrowserSdkLoader { if (this._clientBrowserSdkLoaderSrc) { return replacedSdkLoader.replace( `${BROWSER_SDK_LOADER_DEFAULT_SOURCE}.2.min.js`, - this._clientBrowserSdkLoaderSrc + this._clientBrowserSdkLoaderSrc, ); } return replacedSdkLoader; @@ -124,7 +124,7 @@ export class BrowserSdkLoader { // if has any errors here, web Instrumentation will be disabled. this.dispose(); Logger.getInstance().info( - "Parse client web instrumentation error. Browser SDK Loader is disabled" + "Parse client web instrumentation error. Browser SDK Loader is disabled", ); } return configStr; @@ -137,7 +137,7 @@ export class BrowserSdkLoader { const originalHttpsServer = https.createServer; (http.createServer as any) = ( - requestListener?: (request: IncomingMessage, response: ServerResponse) => void + requestListener?: (request: IncomingMessage, response: ServerResponse) => void, ) => { const originalRequestListener = requestListener; if (originalRequestListener) { @@ -160,7 +160,7 @@ export class BrowserSdkLoader { response, a, undefined, - writeBufferType + writeBufferType, ); } } else if (headers.length) { @@ -168,7 +168,7 @@ export class BrowserSdkLoader { arguments[0] = BrowserSdkLoader._instance?.InjectSdkLoader( response, a, - encodeType + encodeType, ); } } @@ -196,7 +196,7 @@ export class BrowserSdkLoader { response, a, undefined, - endBufferType + endBufferType, ); } } else if (headers.length) { @@ -204,7 +204,7 @@ export class BrowserSdkLoader { arguments[0] = BrowserSdkLoader._instance?.InjectSdkLoader( response, a, - encodeType + encodeType, ); } } @@ -265,7 +265,7 @@ export class BrowserSdkLoader { res, a, undefined, - endBufferType + endBufferType, ); } } else if (headers.length) { @@ -313,7 +313,7 @@ export class BrowserSdkLoader { response: any, input: string | Buffer, encodeType?: browserSdkLoaderHelper.contentEncodingMethod, - bufferEncodeType?: string + bufferEncodeType?: string, ): string | Buffer { try { let isCompressedBuffer = !!encodeType; @@ -325,7 +325,7 @@ export class BrowserSdkLoader { let newHtml = browserSdkLoaderHelper.insertBrowserSdkLoaderByIndex( index, html, - BrowserSdkLoader._sdkLoader + BrowserSdkLoader._sdkLoader, ); if (typeof input === "string") { response.removeHeader("Content-Length"); @@ -348,13 +348,13 @@ export class BrowserSdkLoader { input = this._getInjectedCompressBuffer( response, input as Buffer, - encodeType as browserSdkLoaderHelper.contentEncodingMethod + encodeType as browserSdkLoaderHelper.contentEncodingMethod, ); response.setHeader("Content-Length", input.length); } } catch (ex) { Logger.getInstance().warn( - "Failed to inject browser sdk loader and change content-length headers. Exception:" + ex + "Failed to inject browser sdk loader and change content-length headers. Exception:" + ex, ); } return input; @@ -368,7 +368,7 @@ export class BrowserSdkLoader { private _getInjectedCompressBuffer( response: any, input: Buffer, - encodeType: browserSdkLoaderHelper.contentEncodingMethod + encodeType: browserSdkLoaderHelper.contentEncodingMethod, ): Buffer { try { switch (encodeType) { diff --git a/sdk/monitor/monitor-opentelemetry/src/browserSdkLoader/browserSdkLoaderHelper.ts b/sdk/monitor/monitor-opentelemetry/src/browserSdkLoader/browserSdkLoaderHelper.ts index 2df7a2b4532d..9f3a182fafae 100644 --- a/sdk/monitor/monitor-opentelemetry/src/browserSdkLoader/browserSdkLoaderHelper.ts +++ b/sdk/monitor/monitor-opentelemetry/src/browserSdkLoader/browserSdkLoaderHelper.ts @@ -88,7 +88,7 @@ export const findBufferEncodingType = (buffer: Buffer): string | null => { }; export const isSupportedContentEncoding = ( - encodingMethod: string + encodingMethod: string, ): contentEncodingMethod | null => { let encodingType = null; switch (encodingMethod) { @@ -109,7 +109,7 @@ export const isSupportedContentEncoding = ( // mutiple content-encoding is not supported // for mutiple content-encoding, this method will return any empty array export const getContentEncodingFromHeaders = ( - response: http.ServerResponse + response: http.ServerResponse, ): contentEncodingMethod[] | null => { let headers: contentEncodingMethod[] = []; let contentEncodingHeaders = response.getHeader("Content-Encoding"); @@ -126,7 +126,7 @@ export const getContentEncodingFromHeaders = ( export const insertBrowserSdkLoaderByIndex = ( index: number, html: string, - snippet: string + snippet: string, ): string | null => { if (index < 0) return null; let newHtml = null; diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/exporter.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/exporter.ts index bbfa13555e2b..60f264f9dcf8 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/exporter.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/exporter.ts @@ -53,14 +53,14 @@ export class QuickpulseMetricExporter implements PushMetricExporter { */ async export( metrics: ResourceMetrics, - resultCallback: (result: ExportResult) => void + resultCallback: (result: ExportResult) => void, ): Promise { diag.info(`Exporting Live metrics(s). Converting to envelopes...`); let optionalParams: PostOptionalParams = { monitoringDataPoints: resourceMetricsToQuickpulseDataPoint( metrics, this.baseMonitoringDataPoint, - this.getDocumentsFn() + this.getDocumentsFn(), ), xMsQpsTransmissionTime: Date.now(), }; diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts index 7e458112d2b3..4ce05aa6dab8 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts @@ -120,7 +120,7 @@ export class LiveMetrics { streamId: streamId, }; const parsedConnectionString = ConnectionStringParser.parse( - this.config.azureMonitorExporterOptions.connectionString + this.config.azureMonitorExporterOptions.connectionString, ); this.pingSender = new QuickpulseSender({ endpointUrl: parsedConnectionString.liveendpoint || DEFAULT_LIVEMETRICS_ENDPOINT, @@ -240,13 +240,13 @@ export class LiveMetrics { QuickPulseMetricNames.REQUEST_DURATION, { valueType: ValueType.DOUBLE, - } + }, ); this.dependencyDurationHistogram = this.meter.createHistogram( QuickPulseMetricNames.DEPENDENCY_DURATION, { valueType: ValueType.DOUBLE, - } + }, ); this.requestRateGauge = this.meter.createObservableGauge(QuickPulseMetricNames.REQUEST_RATE, { @@ -256,39 +256,39 @@ export class LiveMetrics { QuickPulseMetricNames.REQUEST_FAILURE_RATE, { valueType: ValueType.DOUBLE, - } + }, ); this.dependencyRateGauge = this.meter.createObservableGauge( QuickPulseMetricNames.DEPENDENCY_RATE, { valueType: ValueType.DOUBLE, - } + }, ); this.dependencyFailedRateGauge = this.meter.createObservableGauge( QuickPulseMetricNames.DEPENDENCY_FAILURE_RATE, { valueType: ValueType.DOUBLE, - } + }, ); this.memoryCommitedGauge = this.meter.createObservableGauge( QuickPulseMetricNames.COMMITTED_BYTES, { valueType: ValueType.INT, - } + }, ); this.processorTimeGauge = this.meter.createObservableGauge( QuickPulseMetricNames.PROCESSOR_TIME, { valueType: ValueType.DOUBLE, - } + }, ); this.exceptionsRateGauge = this.meter.createObservableGauge( QuickPulseMetricNames.EXCEPTION_RATE, { valueType: ValueType.DOUBLE, - } + }, ); this.requestRateGauge.addCallback(this.getRequestRate.bind(this)); diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts index edbaa97c4d4e..ab2f3eacc335 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts @@ -108,7 +108,7 @@ export function getCloudRoleInstance(resource: Resource): string { export function resourceMetricsToQuickpulseDataPoint( metrics: ResourceMetrics, baseMonitoringDataPoint: MonitoringDataPoint, - documents: DocumentIngress[] + documents: DocumentIngress[], ): MonitoringDataPoint[] { let metricPoints: MetricPoint[] = []; metrics.scopeMetrics.forEach((scopeMetric) => { @@ -141,7 +141,7 @@ export function resourceMetricsToQuickpulseDataPoint( } export function getSpanDocument( - span: ReadableSpan + span: ReadableSpan, ): RequestDocumentIngress | RemoteDependencyDocumentIngress { let document: RequestDocumentIngress | RemoteDependencyDocumentIngress = {}; const httpMethod = span.attributes[SemanticAttributes.HTTP_METHOD]; @@ -185,7 +185,7 @@ export function getSpanDocument( } export function getLogDocument( - logRecord: LogRecord + logRecord: LogRecord, ): TraceDocumentIngress | ExceptionDocumentIngress { let document: TraceDocumentIngress | ExceptionDocumentIngress = {}; const exceptionType = String(logRecord.attributes[SemanticAttributes.EXCEPTION_TYPE]); diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/standardMetrics.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/standardMetrics.ts index ddae156c5278..e30fc73c6434 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/standardMetrics.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/standardMetrics.ts @@ -60,13 +60,13 @@ export class StandardMetrics { "azureMonitor.http.requestDuration", { valueType: ValueType.DOUBLE, - } + }, ); this._outgoingRequestDurationHistogram = this._meter.createHistogram( "azureMonitor.http.dependencyDuration", { valueType: ValueType.DOUBLE, - } + }, ); this._exceptionsCounter = this._meter.createCounter("azureMonitor.exceptionCount", { diff --git a/sdk/monitor/monitor-opentelemetry/src/shared/config.ts b/sdk/monitor/monitor-opentelemetry/src/shared/config.ts index c21dff298938..7756a6e2e4ef 100644 --- a/sdk/monitor/monitor-opentelemetry/src/shared/config.ts +++ b/sdk/monitor/monitor-opentelemetry/src/shared/config.ts @@ -83,17 +83,17 @@ export class InternalConfig implements AzureMonitorOpenTelemetryOptions { // Merge default with provided options this.azureMonitorExporterOptions = Object.assign( this.azureMonitorExporterOptions, - options.azureMonitorExporterOptions + options.azureMonitorExporterOptions, ); this.instrumentationOptions = Object.assign( this.instrumentationOptions, - options.instrumentationOptions + options.instrumentationOptions, ); this.resource = Object.assign(this.resource, options.resource); this.samplingRatio = options.samplingRatio || this.samplingRatio; this.browserSdkLoaderOptions = Object.assign( this.browserSdkLoaderOptions, - options.browserSdkLoaderOptions + options.browserSdkLoaderOptions, ); this.enableLiveMetrics = options.enableLiveMetrics || this.enableLiveMetrics; this.enableStandardMetrics = options.enableStandardMetrics || this.enableStandardMetrics; @@ -109,7 +109,7 @@ export class InternalConfig implements AzureMonitorOpenTelemetryOptions { jsonConfig.samplingRatio !== undefined ? jsonConfig.samplingRatio : this.samplingRatio; this.browserSdkLoaderOptions = Object.assign( this.browserSdkLoaderOptions, - jsonConfig.browserSdkLoaderOptions + jsonConfig.browserSdkLoaderOptions, ); this.enableLiveMetrics = jsonConfig.enableLiveMetrics !== undefined @@ -121,11 +121,11 @@ export class InternalConfig implements AzureMonitorOpenTelemetryOptions { : this.enableStandardMetrics; this.azureMonitorExporterOptions = Object.assign( this.azureMonitorExporterOptions, - jsonConfig.azureMonitorExporterOptions + jsonConfig.azureMonitorExporterOptions, ); this.instrumentationOptions = Object.assign( this.instrumentationOptions, - jsonConfig.instrumentationOptions + jsonConfig.instrumentationOptions, ); } catch (error) { Logger.getInstance().error("Failed to load JSON config file values.", error); diff --git a/sdk/monitor/monitor-opentelemetry/src/shared/logging/diagFileConsoleLogger.ts b/sdk/monitor/monitor-opentelemetry/src/shared/logging/diagFileConsoleLogger.ts index 188d761a1a52..5f4de9b56438 100644 --- a/sdk/monitor/monitor-opentelemetry/src/shared/logging/diagFileConsoleLogger.ts +++ b/sdk/monitor/monitor-opentelemetry/src/shared/logging/diagFileConsoleLogger.ts @@ -123,7 +123,7 @@ export class DiagFileConsoleLogger implements DiagLogger { // eslint-disable-next-line no-console console.log( this._TAG, - `Failed to put log into file: ${appendError && appendError.message}` + `Failed to put log into file: ${appendError && appendError.message}`, ); return; } diff --git a/sdk/monitor/monitor-opentelemetry/src/traces/azureFnHook.ts b/sdk/monitor/monitor-opentelemetry/src/traces/azureFnHook.ts index 9ff2c71581a3..e6b4f8d74569 100644 --- a/sdk/monitor/monitor-opentelemetry/src/traces/azureFnHook.ts +++ b/sdk/monitor/monitor-opentelemetry/src/traces/azureFnHook.ts @@ -21,7 +21,7 @@ export class AzureFunctionsHook { this._addPreInvocationHook(); } catch (error) { Logger.getInstance().debug( - "@azure/functions-core failed to load, not running in Azure Functions" + "@azure/functions-core failed to load, not running in Azure Functions", ); } } @@ -49,12 +49,12 @@ export class AzureFunctionsHook { const currentContext = extractedContext || context.active(); preInvocationContext.functionCallback = context.bind( currentContext, - preInvocationContext.functionCallback + preInvocationContext.functionCallback, ); } catch (err) { Logger.getInstance().error("Failed to propagate context in Azure Functions", err); } - } + }, ); } } diff --git a/sdk/monitor/monitor-opentelemetry/src/traces/handler.ts b/sdk/monitor/monitor-opentelemetry/src/traces/handler.ts index 9f41cb6fde5c..b40124b6a0ec 100644 --- a/sdk/monitor/monitor-opentelemetry/src/traces/handler.ts +++ b/sdk/monitor/monitor-opentelemetry/src/traces/handler.ts @@ -98,7 +98,7 @@ export class TraceHandler { const providedIgnoreOutgoingRequestHook = httpinstrumentationOptions.ignoreOutgoingRequestHook; const mergedIgnoreOutgoingRequestHook: IgnoreOutgoingRequestFunction = ( - request: RequestOptions + request: RequestOptions, ) => { const result = ignoreOutgoingRequestHook(request); if (!result) { @@ -112,37 +112,37 @@ export class TraceHandler { }; httpinstrumentationOptions.ignoreOutgoingRequestHook = mergedIgnoreOutgoingRequestHook; this._instrumentations.push( - new HttpInstrumentation(this._config.instrumentationOptions.http) + new HttpInstrumentation(this._config.instrumentationOptions.http), ); } if (this._config.instrumentationOptions.azureSdk?.enabled) { this._instrumentations.push( - createAzureSdkInstrumentation(this._config.instrumentationOptions.azureSdk) + createAzureSdkInstrumentation(this._config.instrumentationOptions.azureSdk), ); } if (this._config.instrumentationOptions.mongoDb?.enabled) { this._instrumentations.push( - new MongoDBInstrumentation(this._config.instrumentationOptions.mongoDb) + new MongoDBInstrumentation(this._config.instrumentationOptions.mongoDb), ); } if (this._config.instrumentationOptions.mySql?.enabled) { this._instrumentations.push( - new MySQLInstrumentation(this._config.instrumentationOptions.mySql) + new MySQLInstrumentation(this._config.instrumentationOptions.mySql), ); } if (this._config.instrumentationOptions.postgreSql?.enabled) { this._instrumentations.push( - new PgInstrumentation(this._config.instrumentationOptions.postgreSql) + new PgInstrumentation(this._config.instrumentationOptions.postgreSql), ); } if (this._config.instrumentationOptions.redis?.enabled) { this._instrumentations.push( - new RedisInstrumentation(this._config.instrumentationOptions.redis) + new RedisInstrumentation(this._config.instrumentationOptions.redis), ); } if (this._config.instrumentationOptions.redis4?.enabled) { this._instrumentations.push( - new Redis4Instrumentation(this._config.instrumentationOptions.redis4) + new Redis4Instrumentation(this._config.instrumentationOptions.redis4), ); } } diff --git a/sdk/monitor/monitor-opentelemetry/src/traces/sampler.ts b/sdk/monitor/monitor-opentelemetry/src/traces/sampler.ts index b56de4038de9..030000a098ff 100644 --- a/sdk/monitor/monitor-opentelemetry/src/traces/sampler.ts +++ b/sdk/monitor/monitor-opentelemetry/src/traces/sampler.ts @@ -49,7 +49,7 @@ export class ApplicationInsightsSampler implements Sampler { spanKind: SpanKind, attributes: Attributes, // @ts-ignore - links: Link[] + links: Link[], ): SamplingResult { let isSampledIn = false; if (this._sampleRate == 100) { diff --git a/sdk/monitor/monitor-opentelemetry/src/utils/connectionStringParser.ts b/sdk/monitor/monitor-opentelemetry/src/utils/connectionStringParser.ts index 096bec09475f..95e04b098b87 100644 --- a/sdk/monitor/monitor-opentelemetry/src/utils/connectionStringParser.ts +++ b/sdk/monitor/monitor-opentelemetry/src/utils/connectionStringParser.ts @@ -34,7 +34,7 @@ export class ConnectionStringParser { diag.error( `Connection string key-value pair is invalid: ${kv}`, `Entire connection string will be discarded`, - connectionString + connectionString, ); isValid = false; return fields; @@ -60,13 +60,13 @@ export class ConnectionStringParser { : DEFAULT_LIVEMETRICS_ENDPOINT; if (result.authorization && result.authorization.toLowerCase() !== "ikey") { diag.warn( - `Connection String contains an unsupported 'Authorization' value: ${result.authorization!}. Defaulting to 'Authorization=ikey'. Instrumentation Key ${result.instrumentationkey!}` + `Connection String contains an unsupported 'Authorization' value: ${result.authorization!}. Defaulting to 'Authorization=ikey'. Instrumentation Key ${result.instrumentationkey!}`, ); } } else { diag.error( "An invalid connection string was passed in. There may be telemetry loss", - connectionString + connectionString, ); } diff --git a/sdk/monitor/monitor-opentelemetry/test-opentelemetry-versions.js b/sdk/monitor/monitor-opentelemetry/test-opentelemetry-versions.js index d3b7205582c0..b06130ad297c 100644 --- a/sdk/monitor/monitor-opentelemetry/test-opentelemetry-versions.js +++ b/sdk/monitor/monitor-opentelemetry/test-opentelemetry-versions.js @@ -38,7 +38,7 @@ function runProcess(cmd, callback) { process.exit(0); }); }); - } + }, ); } } catch (error) { diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/logs/logHandler.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/logs/logHandler.test.ts index 00165235833e..99b4717ef801 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/logs/logHandler.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/logs/logHandler.test.ts @@ -34,7 +34,7 @@ describe("LogHandler", () => { code: ExportResultCode.SUCCESS, }); resolve(logs); - }) + }), ); const loggerProvider: LoggerProvider = new LoggerProvider(); loggerProvider.addLogRecordProcessor(handler.getLogRecordProcessor()); @@ -117,7 +117,7 @@ describe("LogHandler", () => { assert.strictEqual(result.length, 1); assert.strictEqual( result[0][0][0].attributes["_MS.ProcessedByMetricExtractors"], - "(Name:'Exceptions', Ver:'1.1')" + "(Name:'Exceptions', Ver:'1.1')", ); done(); }) @@ -140,7 +140,7 @@ describe("LogHandler", () => { assert.strictEqual(result.length, 1); assert.strictEqual( result[0][0][0].attributes["_MS.ProcessedByMetricExtractors"], - "(Name:'Traces', Ver:'1.1')" + "(Name:'Traces', Ver:'1.1')", ); done(); }) diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/main.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/main.test.ts index fa3145808856..89aca967868f 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/main.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/main.test.ts @@ -86,7 +86,7 @@ describe("Main functions", () => { assert.ok(features & StatsbeatFeature.DISTRO, "DISTRO is not set"); assert.ok( instrumentations & StatsbeatInstrumentation.AZURE_CORE_TRACING, - "AZURE_CORE_TRACING not set" + "AZURE_CORE_TRACING not set", ); assert.ok(instrumentations & StatsbeatInstrumentation.MONGODB, "MONGODB not set"); assert.ok(instrumentations & StatsbeatInstrumentation.MYSQL, "MYSQL not set"); diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/liveMetrics.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/liveMetrics.test.ts index ca6ac44fbb8d..9f0aaddf78f4 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/liveMetrics.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/liveMetrics.test.ts @@ -27,7 +27,7 @@ describe("#LiveMetrics", () => { code: ExportResultCode.SUCCESS, }); resolve(spans); - }) + }), ); }); @@ -53,7 +53,7 @@ describe("#LiveMetrics", () => { { body: "testMessage", timestamp: 1234567890, - } + }, ); autoCollect.recordLog(traceLog as any); traceLog.attributes["exception.type"] = "testExceptionType"; @@ -108,44 +108,44 @@ describe("#LiveMetrics", () => { assert.strictEqual( (metrics[0].dataPoints[0].value as Histogram).count, 6, - "REQUEST_DURATION dataPoint count" + "REQUEST_DURATION dataPoint count", ); assert.strictEqual( (metrics[0].dataPoints[0].value as Histogram).min, 100000, - "REQUEST_DURATION dataPoint min" + "REQUEST_DURATION dataPoint min", ); assert.strictEqual( (metrics[0].dataPoints[0].value as Histogram).max, 98765432, - "REQUEST_DURATION dataPoint max" + "REQUEST_DURATION dataPoint max", ); assert.strictEqual( (metrics[0].dataPoints[0].value as Histogram).sum, 197930864, - "REQUEST_DURATION dataPoint sum" + "REQUEST_DURATION dataPoint sum", ); assert.strictEqual(metrics[1].descriptor.name, QuickPulseMetricNames.DEPENDENCY_DURATION); assert.strictEqual(metrics[1].dataPoints.length, 1, "dataPoints count"); assert.strictEqual( (metrics[1].dataPoints[0].value as Histogram).count, 4, - "DEPENDENCY_DURATION dataPoint count" + "DEPENDENCY_DURATION dataPoint count", ); assert.strictEqual( (metrics[1].dataPoints[0].value as Histogram).min, 900000, - "DEPENDENCY_DURATION dataPoint min" + "DEPENDENCY_DURATION dataPoint min", ); assert.strictEqual( (metrics[1].dataPoints[0].value as Histogram).max, 12345678, - "DEPENDENCY_DURATION dataPoint max" + "DEPENDENCY_DURATION dataPoint max", ); assert.strictEqual( (metrics[1].dataPoints[0].value as Histogram).sum, 15045678, - "DEPENDENCY_DURATION dataPoint sum" + "DEPENDENCY_DURATION dataPoint sum", ); assert.strictEqual(metrics[2].descriptor.name, QuickPulseMetricNames.REQUEST_RATE); assert.strictEqual(metrics[2].dataPoints.length, 1, "dataPoints count"); diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/metricHandler.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/metricHandler.test.ts index bdee3c2ac800..3a53afce01f8 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/metricHandler.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/metricHandler.test.ts @@ -46,7 +46,7 @@ describe("MetricHandler", () => { code: ExportResultCode.SUCCESS, }); resolve(result); - }) + }), ); const meterProvider = new MeterProvider({ views: handler.getViews(), diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/standardMetrics.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/standardMetrics.test.ts index 49a8ad0424ba..bd874e970e61 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/standardMetrics.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/standardMetrics.test.ts @@ -32,7 +32,7 @@ describe("#StandardMetricsHandler", () => { code: ExportResultCode.SUCCESS, }); resolve(spans); - }) + }), ); }); @@ -59,7 +59,7 @@ describe("#StandardMetricsHandler", () => { { body: "testMessage", timestamp: 123, - } + }, ); autoCollect.recordLog(traceLog as any); traceLog.attributes["exception.type"] = "testExceptionType"; @@ -117,7 +117,7 @@ describe("#StandardMetricsHandler", () => { assert.strictEqual((metrics[0].dataPoints[0].value as Histogram).sum, 654321, "dataPoint sum"); assert.strictEqual( metrics[0].dataPoints[0].attributes["cloudRoleInstance"], - "testcloudRoleInstance" + "testcloudRoleInstance", ); assert.strictEqual(metrics[0].dataPoints[0].attributes["cloudRoleName"], "testcloudRoleName"); assert.strictEqual(metrics[0].dataPoints[0].attributes["IsAutocollected"], "True"); @@ -131,7 +131,7 @@ describe("#StandardMetricsHandler", () => { assert.strictEqual((metrics[0].dataPoints[1].value as Histogram).sum, 4500000, "dataPoint sum"); assert.strictEqual( metrics[0].dataPoints[1].attributes["cloudRoleInstance"], - "testcloudRoleInstance" + "testcloudRoleInstance", ); assert.strictEqual(metrics[0].dataPoints[1].attributes["cloudRoleName"], "testcloudRoleName"); assert.strictEqual(metrics[0].dataPoints[1].attributes["IsAutocollected"], "True"); @@ -166,7 +166,7 @@ describe("#StandardMetricsHandler", () => { assert.strictEqual(metrics[2].dataPoints[0].value, 1, "dataPoint value"); assert.strictEqual( metrics[2].dataPoints[0].attributes["cloudRoleInstance"], - "testcloudRoleInstance" + "testcloudRoleInstance", ); assert.strictEqual(metrics[2].dataPoints[0].attributes["cloudRoleName"], "testcloudRoleName"); @@ -175,7 +175,7 @@ describe("#StandardMetricsHandler", () => { assert.strictEqual(metrics[3].dataPoints[0].value, 1, "dataPoint value"); assert.strictEqual( metrics[3].dataPoints[0].attributes["cloudRoleInstance"], - "testcloudRoleInstance" + "testcloudRoleInstance", ); assert.strictEqual(metrics[3].dataPoints[0].attributes["cloudRoleName"], "testcloudRoleName"); }); @@ -195,7 +195,7 @@ describe("#StandardMetricsHandler", () => { { body: "testMessage", timestamp: 123, - } + }, ); autoCollect.recordLog(traceLog as any); traceLog.attributes["exception.type"] = "testExceptionType"; @@ -221,7 +221,7 @@ describe("#StandardMetricsHandler", () => { const metrics = scopeMetrics[0].metrics; assert.strictEqual( metrics[2].dataPoints[0].attributes["cloudRoleName"], - "testcloudRoleName.serviceTestName" + "testcloudRoleName.serviceTestName", ); }); diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/config.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/config.test.ts index 148c9f0721f3..a61a3ce24467 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/config.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/config.test.ts @@ -37,37 +37,37 @@ describe("Library/Config", () => { const env = <{ [id: string]: string }>{}; const customConfigJSONPath = path.resolve( __dirname, - "../../../../../test/internal/unit/shared/config.json" + "../../../../../test/internal/unit/shared/config.json", ); env["APPLICATIONINSIGHTS_CONFIGURATION_FILE"] = customConfigJSONPath; // Load JSON config process.env = env; const config = new InternalConfig(); assert.deepStrictEqual( config.azureMonitorExporterOptions.connectionString, - "InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333;IngestionEndpoint=https://centralus-0.in.applicationinsights.azure.com/" + "InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333;IngestionEndpoint=https://centralus-0.in.applicationinsights.azure.com/", ); assert.deepStrictEqual(config.samplingRatio, 0.3, "Wrong samplingRatio"); assert.deepStrictEqual( config.azureMonitorExporterOptions?.disableOfflineStorage, true, - "Wrong disableOfflineStorage" + "Wrong disableOfflineStorage", ); assert.deepStrictEqual( config.azureMonitorExporterOptions?.storageDirectory, "testPath", - "Wrong storageDirectory" + "Wrong storageDirectory", ); assert.deepStrictEqual( config.instrumentationOptions.azureSdk?.enabled, true, - "Wrong azureSdk" + "Wrong azureSdk", ); assert.deepStrictEqual(config.instrumentationOptions.mongoDb?.enabled, true, "Wrong mongoDb"); assert.deepStrictEqual(config.instrumentationOptions.mySql?.enabled, true, "Wrong mySql"); assert.deepStrictEqual( config.instrumentationOptions.postgreSql?.enabled, true, - "Wrong postgreSql" + "Wrong postgreSql", ); assert.deepStrictEqual(config.instrumentationOptions.redis?.enabled, true, "Wrong redis"); assert.deepStrictEqual(config.instrumentationOptions.redis4?.enabled, true, "Wrong redis4"); @@ -118,43 +118,43 @@ describe("Library/Config", () => { assert.strictEqual(config.samplingRatio, jsonOptions.samplingRatio); assert.strictEqual( config.instrumentationOptions?.http?.enabled, - jsonOptions.instrumentationOptions.http.enabled + jsonOptions.instrumentationOptions.http.enabled, ); assert.strictEqual( config.instrumentationOptions?.azureSdk?.enabled, - jsonOptions.instrumentationOptions.azureSdk.enabled + jsonOptions.instrumentationOptions.azureSdk.enabled, ); assert.strictEqual( config.instrumentationOptions?.mongoDb?.enabled, - jsonOptions.instrumentationOptions.mongoDb.enabled + jsonOptions.instrumentationOptions.mongoDb.enabled, ); assert.strictEqual( config.instrumentationOptions?.mySql?.enabled, - jsonOptions.instrumentationOptions.mySql.enabled + jsonOptions.instrumentationOptions.mySql.enabled, ); assert.strictEqual( config.instrumentationOptions?.postgreSql?.enabled, - jsonOptions.instrumentationOptions.postgreSql.enabled + jsonOptions.instrumentationOptions.postgreSql.enabled, ); assert.strictEqual( config.instrumentationOptions?.redis?.enabled, - jsonOptions.instrumentationOptions.redis.enabled + jsonOptions.instrumentationOptions.redis.enabled, ); assert.strictEqual( config.instrumentationOptions?.redis4?.enabled, - jsonOptions.instrumentationOptions.redis4.enabled + jsonOptions.instrumentationOptions.redis4.enabled, ); assert.strictEqual( config.azureMonitorExporterOptions?.connectionString, - jsonOptions.azureMonitorExporterOptions.connectionString + jsonOptions.azureMonitorExporterOptions.connectionString, ); assert.strictEqual( config.azureMonitorExporterOptions?.storageDirectory, - jsonOptions.azureMonitorExporterOptions.storageDirectory + jsonOptions.azureMonitorExporterOptions.storageDirectory, ); assert.strictEqual( config.azureMonitorExporterOptions?.disableOfflineStorage, - jsonOptions.azureMonitorExporterOptions.disableOfflineStorage + jsonOptions.azureMonitorExporterOptions.disableOfflineStorage, ); }); @@ -164,30 +164,30 @@ describe("Library/Config", () => { assert.deepStrictEqual( config.instrumentationOptions.azureSdk?.enabled, false, - "Wrong azureSdk" + "Wrong azureSdk", ); assert.deepStrictEqual( config.instrumentationOptions.mongoDb?.enabled, false, - "Wrong mongoDb" + "Wrong mongoDb", ); assert.deepStrictEqual(config.instrumentationOptions.mySql?.enabled, false, "Wrong mySql"); assert.deepStrictEqual( config.instrumentationOptions.postgreSql?.enabled, false, - "Wrong postgreSql" + "Wrong postgreSql", ); assert.deepStrictEqual(config.instrumentationOptions.redis?.enabled, false, "Wrong redis"); assert.deepStrictEqual(config.instrumentationOptions.redis4?.enabled, false, "Wrong redis4"); assert.deepStrictEqual( config.azureMonitorExporterOptions?.disableOfflineStorage, undefined, - "Wrong disableOfflineStorage" + "Wrong disableOfflineStorage", ); assert.deepStrictEqual( config.azureMonitorExporterOptions?.storageDirectory, undefined, - "Wrong storageDirectory" + "Wrong storageDirectory", ); }); @@ -220,12 +220,12 @@ describe("Library/Config", () => { assert.deepStrictEqual( config.azureMonitorExporterOptions?.storageDirectory, "teststorageDirectory", - "Wrong storageDirectory" + "Wrong storageDirectory", ); assert.deepStrictEqual( config.azureMonitorExporterOptions?.connectionString, "testConnectionString", - "Wrong connectionString" + "Wrong connectionString", ); assert.deepStrictEqual(config.instrumentationOptions.http?.enabled, false, "Wrong http"); assert.deepStrictEqual(config.instrumentationOptions.redis4?.enabled, true, "Wrong redis4"); @@ -234,18 +234,18 @@ describe("Library/Config", () => { assert.deepStrictEqual( config.instrumentationOptions.azureSdk?.enabled, false, - "Wrong azureSdk" + "Wrong azureSdk", ); assert.deepStrictEqual( config.instrumentationOptions.mongoDb?.enabled, false, - "Wrong mongoDb" + "Wrong mongoDb", ); assert.deepStrictEqual(config.instrumentationOptions.mySql?.enabled, false, "Wrong mySql"); assert.deepStrictEqual( config.instrumentationOptions.postgreSql?.enabled, false, - "Wrong postgreSql" + "Wrong postgreSql", ); assert.deepStrictEqual(config.instrumentationOptions.redis?.enabled, false, "Wrong redis"); }); @@ -305,15 +305,15 @@ describe("OpenTelemetry Resource", () => { config.resource = customResource; assert.deepStrictEqual( config.resource.attributes[SemanticResourceAttributes.SERVICE_NAME], - "testServiceName" + "testServiceName", ); assert.deepStrictEqual( config.resource.attributes[SemanticResourceAttributes.SERVICE_INSTANCE_ID], - "testServiceInstanceId" + "testServiceInstanceId", ); assert.deepStrictEqual( config.resource.attributes[SemanticResourceAttributes.CONTAINER_ID], - "testContainerId" + "testContainerId", ); }); @@ -321,22 +321,22 @@ describe("OpenTelemetry Resource", () => { const config = new InternalConfig(); assert.deepStrictEqual( config.resource.attributes[SemanticResourceAttributes.TELEMETRY_SDK_NAME], - "opentelemetry" + "opentelemetry", ); assert.ok( String(config.resource.attributes[SemanticResourceAttributes.SERVICE_NAME]).startsWith( - "unknown_service:" + "unknown_service:", ), - "Wrong SERVICE_NAME" + "Wrong SERVICE_NAME", ); assert.ok( String(config.resource.attributes[SemanticResourceAttributes.TELEMETRY_SDK_VERSION]).length > 0, - "Wrong TELEMETRY_SDK_VERSION" + "Wrong TELEMETRY_SDK_VERSION", ); assert.deepStrictEqual( config.resource.attributes[SemanticResourceAttributes.SERVICE_INSTANCE_ID], - undefined + undefined, ); }); @@ -355,31 +355,31 @@ describe("OpenTelemetry Resource", () => { process.env = originalEnv; assert.deepStrictEqual( config.resource.attributes[SemanticResourceAttributes.TELEMETRY_SDK_NAME], - "opentelemetry" + "opentelemetry", ); assert.deepStrictEqual( config.resource.attributes[SemanticResourceAttributes.SERVICE_NAME], - "test-site" + "test-site", ); assert.deepStrictEqual( config.resource.attributes[SemanticResourceAttributes.SERVICE_INSTANCE_ID], - "test-instance-id" + "test-instance-id", ); assert.strictEqual( config.resource.attributes[SemanticResourceAttributes.CLOUD_PROVIDER], - "azure" + "azure", ); assert.strictEqual( config.resource.attributes[SemanticResourceAttributes.CLOUD_REGION], - "test-region" + "test-region", ); assert.strictEqual( config.resource.attributes[SemanticResourceAttributes.DEPLOYMENT_ENVIRONMENT], - "test-slot" + "test-slot", ); assert.strictEqual( config.resource.attributes[SemanticResourceAttributes.HOST_ID], - "test-hostname" + "test-hostname", ); assert.strictEqual(config.resource.attributes["azure.app.service.stamp"], "test-home-stamp"); }); @@ -396,23 +396,23 @@ describe("OpenTelemetry Resource", () => { process.env = originalEnv; assert.deepStrictEqual( config.resource.attributes[SemanticResourceAttributes.TELEMETRY_SDK_NAME], - "opentelemetry" + "opentelemetry", ); assert.strictEqual( config.resource.attributes[SemanticResourceAttributes.CLOUD_PROVIDER], - "azure" + "azure", ); assert.strictEqual( config.resource.attributes[SemanticResourceAttributes.CLOUD_REGION], - "test-region" + "test-region", ); assert.strictEqual( config.resource.attributes[SemanticResourceAttributes.FAAS_NAME], - "test-site" + "test-site", ); assert.strictEqual( config.resource.attributes[SemanticResourceAttributes.FAAS_MAX_MEMORY], - "512" + "512", ); assert.strictEqual(config.resource.attributes[SemanticResourceAttributes.FAAS_VERSION], "~3"); }); @@ -434,12 +434,12 @@ describe("OpenTelemetry Resource", () => { } assert.strictEqual( azureResource.attributes[SemanticResourceAttributes.CLOUD_PROVIDER], - "azure" + "azure", ); assert.strictEqual(azureResource.attributes[SemanticResourceAttributes.CLOUD_REGION], "westus"); assert.strictEqual( azureResource.attributes[SemanticResourceAttributes.CLOUD_PLATFORM], - CloudPlatformValues.AZURE_VM + CloudPlatformValues.AZURE_VM, ); scope.done(); }); @@ -454,19 +454,19 @@ describe("OpenTelemetry Resource", () => { process.env = originalEnv; assert.deepStrictEqual( config.resource.attributes[SemanticResourceAttributes.SERVICE_NAME], - "testServiceName" + "testServiceName", ); assert.deepStrictEqual( config.resource.attributes[SemanticResourceAttributes.SERVICE_INSTANCE_ID], - "testServiceInstance" + "testServiceInstance", ); assert.deepStrictEqual( config.resource.attributes[SemanticResourceAttributes.K8S_CLUSTER_NAME], - "testClusterName" + "testClusterName", ); assert.deepStrictEqual( config.resource.attributes[SemanticResourceAttributes.K8S_NODE_NAME], - "testNodeName" + "testNodeName", ); }); }); diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/jsonConfig.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/jsonConfig.test.ts index d27b1b0a9cff..1f9bc414e054 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/jsonConfig.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/jsonConfig.test.ts @@ -40,14 +40,14 @@ describe("Json Config", () => { const env = <{ [id: string]: string }>{}; const customConfigJSONPath = path.resolve( __dirname, - "../../../../../test/internal/unit/shared/config.json" + "../../../../../test/internal/unit/shared/config.json", ); env["APPLICATIONINSIGHTS_CONFIGURATION_FILE"] = customConfigJSONPath; process.env = env; const config = JsonConfig.getInstance(); assert.deepStrictEqual( config.azureMonitorExporterOptions?.connectionString, - "InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333;IngestionEndpoint=https://centralus-0.in.applicationinsights.azure.com/" + "InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333;IngestionEndpoint=https://centralus-0.in.applicationinsights.azure.com/", ); }); @@ -59,7 +59,7 @@ describe("Json Config", () => { const config = JsonConfig.getInstance(); assert.deepStrictEqual( config.azureMonitorExporterOptions?.connectionString, - "InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333;IngestionEndpoint=https://centralus-0.in.applicationinsights.azure.com/" + "InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333;IngestionEndpoint=https://centralus-0.in.applicationinsights.azure.com/", ); }); }); @@ -69,14 +69,14 @@ describe("Json Config", () => { const env = <{ [id: string]: string }>{}; const customConfigJSONPath = path.resolve( __dirname, - "../../../../../test/internal/unit/shared/config.json" + "../../../../../test/internal/unit/shared/config.json", ); env["APPLICATIONINSIGHTS_CONFIGURATION_FILE"] = customConfigJSONPath; process.env = env; const config = JsonConfig.getInstance(); assert.deepStrictEqual( config.azureMonitorExporterOptions?.connectionString, - "InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333;IngestionEndpoint=https://centralus-0.in.applicationinsights.azure.com/" + "InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333;IngestionEndpoint=https://centralus-0.in.applicationinsights.azure.com/", ); assert.deepStrictEqual(config.azureMonitorExporterOptions?.disableOfflineStorage, true); assert.deepStrictEqual(config.azureMonitorExporterOptions?.storageDirectory, "testPath"); @@ -84,18 +84,18 @@ describe("Json Config", () => { assert.deepStrictEqual( config.instrumentationOptions?.azureSdk?.enabled, true, - "Wrong azureSdk" + "Wrong azureSdk", ); assert.deepStrictEqual( config.instrumentationOptions?.mongoDb?.enabled, true, - "Wrong mongoDb" + "Wrong mongoDb", ); assert.deepStrictEqual(config.instrumentationOptions?.mySql?.enabled, true, "Wrong mySql"); assert.deepStrictEqual( config.instrumentationOptions?.postgreSql?.enabled, true, - "Wrong postgreSql" + "Wrong postgreSql", ); assert.deepStrictEqual(config.instrumentationOptions?.redis?.enabled, true, "Wrong redis"); assert.deepStrictEqual(config.instrumentationOptions?.redis4?.enabled, true, "Wrong redis4"); @@ -105,7 +105,7 @@ describe("Json Config", () => { const env = <{ [id: string]: string }>{}; const customConfigJSONPath = path.resolve( __dirname, - "../../../../../test/internal/unit/shared/config.json" + "../../../../../test/internal/unit/shared/config.json", ); env["APPLICATIONINSIGHTS_CONFIGURATION_FILE"] = customConfigJSONPath; env["APPLICATIONINSIGHTS_CONNECTION_STRING"] = "TestConnectionString"; @@ -113,7 +113,7 @@ describe("Json Config", () => { const config = JsonConfig.getInstance(); assert.deepStrictEqual( config.azureMonitorExporterOptions?.connectionString, - "InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333;IngestionEndpoint=https://centralus-0.in.applicationinsights.azure.com/" + "InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333;IngestionEndpoint=https://centralus-0.in.applicationinsights.azure.com/", ); }); @@ -152,7 +152,7 @@ describe("Json Config", () => { assert.strictEqual(config.azureMonitorExporterOptions?.connectionString, "testConnString"); assert.strictEqual( config.azureMonitorExporterOptions?.storageDirectory, - "teststorageDirectory" + "teststorageDirectory", ); assert.strictEqual(config.azureMonitorExporterOptions?.disableOfflineStorage, true); }); diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/logging/diagFileConsoleLogger.tests.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/logging/diagFileConsoleLogger.tests.ts index f325425fd0ae..f928dfbeae9e 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/logging/diagFileConsoleLogger.tests.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/logging/diagFileConsoleLogger.tests.ts @@ -71,7 +71,7 @@ describe("Library/DiagFileConsoleLogger", () => { assert.ok(confirmDirStub.called, "confirmDirStub called"); assert.ok(appendFileAsyncStub.called, "writeStub called"); // File creation was called assert.ok( - appendFileAsyncStub.lastCall.args[0].toString().indexOf("applicationinsights.log") > 0 + appendFileAsyncStub.lastCall.args[0].toString().indexOf("applicationinsights.log") > 0, ); assert.equal(appendFileAsyncStub.lastCall.args[1], "testMessage\r\n"); done(); @@ -87,7 +87,7 @@ describe("Library/DiagFileConsoleLogger", () => { sandbox.stub(fileHelper, "getShallowFileSize").callsFake( async () => // Fake file size check - 123 + 123, ); logger["_maxSizeBytes"] = 122; @@ -104,7 +104,7 @@ describe("Library/DiagFileConsoleLogger", () => { //assert.equal(writeSpy.args[0][0], "C:\Users\hectorh\AppData\Local\Temp\appInsights-node\1636481017787.applicationinsights.log"); // Backup file format assert.ok( writeStub.args[0][0].toString().indexOf(".applicationinsights.log") > 0, - ".applicationinsights.log present in backup file name" + ".applicationinsights.log present in backup file name", ); // First call is for backup file //assert.equal(writeSpy.args[1][1], "C:\Users\hectorh\AppData\Local\Temp\appInsights-node\applicationinsights.log"); // Main file format assert.equal(writeStub.args[1][1], "backupTestMessage\r\n"); @@ -121,7 +121,7 @@ describe("Library/DiagFileConsoleLogger", () => { sandbox.stub(fileHelper, "getShallowFileSize").callsFake( async () => // Fake file size check - 123 + 123, ); const writeStub = sandbox.stub(fileHelper, "writeFileAsync"); const readStub = sandbox.stub(fileHelper, "readFileAsync"); @@ -165,7 +165,7 @@ describe("Library/DiagFileConsoleLogger", () => { "applicationinsights.log", "123.applicationinsights.log", "456.applicationinsights.log", - ] as any + ] as any, ); logger["_maxHistory"] = 0; const unlinkStub = sandbox.stub(fileHelper, "unlinkAsync"); @@ -188,7 +188,7 @@ describe("Library/DiagFileConsoleLogger", () => { "applicationinsights.log", "123.applicationinsights.log", "456.applicationinsights.log", - ] as any + ] as any, ); logger["_maxHistory"] = 1; const unlinkStub = sandbox.stub(fileHelper, "unlinkAsync"); @@ -197,7 +197,7 @@ describe("Library/DiagFileConsoleLogger", () => { assert.ok(unlinkStub.calledOnce, "unlinkStub calledOnce"); assert.ok( unlinkStub.args[0][0].toString().indexOf("123.applicationinsights.log") > 0, - "Oldest file is deleted" + "Oldest file is deleted", ); done(); }) diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/traces/azureFnHook.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/traces/azureFnHook.test.ts index c24aadda1dbb..96f535e95575 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/traces/azureFnHook.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/traces/azureFnHook.test.ts @@ -38,7 +38,7 @@ describe("Library/AzureFunctionsHook", () => { assert.ok(spy.called); assert.equal( spy.args[0][0], - "@azure/functions-core failed to load, not running in Azure Functions" + "@azure/functions-core failed to load, not running in Azure Functions", ); }); @@ -86,7 +86,7 @@ describe("Library/AzureFunctionsHook", () => { // Context should be propagated here assert.equal( (span as any)["_spanContext"]["traceId"], - "0af7651916cd43dd8448eb211c80319c" + "0af7651916cd43dd8448eb211c80319c", ); assert.ok((span as any)["_spanContext"]["spanId"]); }, diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/traces/sampler.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/traces/sampler.test.ts index 754b2c95f5ee..618f7526ab2a 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/traces/sampler.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/traces/sampler.test.ts @@ -16,7 +16,7 @@ describe("Library/ApplicationInsightsSampler", () => { assert.equal( result.decision, SamplingDecision.RECORD, - "data should not pass but Span needs to be available for standard metrics" + "data should not pass but Span needs to be available for standard metrics", ); }); @@ -32,7 +32,7 @@ describe("Library/ApplicationInsightsSampler", () => { "", SpanKind.INTERNAL, {}, - [] + [], ); if (result.decision === SamplingDecision.RECORD_AND_SAMPLED) accepted++; } @@ -53,7 +53,7 @@ describe("Library/ApplicationInsightsSampler", () => { "", SpanKind.INTERNAL, {}, - [] + [], ); if (result.decision === SamplingDecision.RECORD_AND_SAMPLED) accepted++; } @@ -74,7 +74,7 @@ describe("Library/ApplicationInsightsSampler", () => { "", SpanKind.INTERNAL, {}, - [] + [], ); if (result.decision === SamplingDecision.RECORD_AND_SAMPLED) accepted++; } diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/traces/traceHandler.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/traces/traceHandler.test.ts index 618839ec7727..cf6871d0aaa7 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/traces/traceHandler.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/traces/traceHandler.test.ts @@ -55,7 +55,7 @@ describe("Library/TraceHandler", () => { code: ExportResultCode.SUCCESS, }); resolve(spans); - }) + }), ); const tracerProvider = new NodeTracerProvider(); tracerProvider.addSpanProcessor(handler.getSpanProcessor()); @@ -78,7 +78,7 @@ describe("Library/TraceHandler", () => { res.write( JSON.stringify({ success: true, - }) + }), ); res.end(); } @@ -122,7 +122,7 @@ describe("Library/TraceHandler", () => { assert.deepStrictEqual(spans[0].name, "GET"); assert.deepStrictEqual( spans[0].instrumentationLibrary.name, - "@opentelemetry/instrumentation-http" + "@opentelemetry/instrumentation-http", ); assert.deepStrictEqual(spans[0].kind, 1, "Span Kind"); assert.deepStrictEqual(spans[0].status.code, 0, "Span Success"); // Success @@ -130,7 +130,7 @@ describe("Library/TraceHandler", () => { assert.ok(spans[0].endTime); assert.deepStrictEqual( spans[0].attributes["http.host"], - `localhost:${mockHttpServerPort}` + `localhost:${mockHttpServerPort}`, ); assert.deepStrictEqual(spans[0].attributes["http.method"], "GET"); assert.deepStrictEqual(spans[0].attributes["http.status_code"], 200); @@ -138,7 +138,7 @@ describe("Library/TraceHandler", () => { assert.deepStrictEqual(spans[0].attributes["http.target"], "/test"); assert.deepStrictEqual( spans[0].attributes["http.url"], - `http://localhost:${mockHttpServerPort}/test` + `http://localhost:${mockHttpServerPort}/test`, ); assert.deepStrictEqual(spans[0].attributes["net.host.name"], "localhost"); assert.deepStrictEqual(spans[0].attributes["net.host.port"], mockHttpServerPort); @@ -146,7 +146,7 @@ describe("Library/TraceHandler", () => { assert.deepStrictEqual(spans[1].name, "GET"); assert.deepStrictEqual( spans[1].instrumentationLibrary.name, - "@opentelemetry/instrumentation-http" + "@opentelemetry/instrumentation-http", ); assert.deepStrictEqual(spans[1].kind, 2, "Span Kind"); assert.deepStrictEqual(spans[1].status.code, 0, "Span Success"); // Success @@ -154,7 +154,7 @@ describe("Library/TraceHandler", () => { assert.ok(spans[1].endTime); assert.deepStrictEqual( spans[1].attributes["http.host"], - `localhost:${mockHttpServerPort}` + `localhost:${mockHttpServerPort}`, ); assert.deepStrictEqual(spans[1].attributes["http.method"], "GET"); assert.deepStrictEqual(spans[1].attributes["http.status_code"], 200); @@ -162,18 +162,18 @@ describe("Library/TraceHandler", () => { assert.deepStrictEqual(spans[1].attributes["http.target"], "/test"); assert.deepStrictEqual( spans[1].attributes["http.url"], - `http://localhost:${mockHttpServerPort}/test` + `http://localhost:${mockHttpServerPort}/test`, ); assert.deepStrictEqual(spans[1].attributes["net.peer.name"], "localhost"); assert.deepStrictEqual(spans[1].attributes["net.peer.port"], mockHttpServerPort); assert.deepStrictEqual( spans[0]["_spanContext"]["traceId"], - spans[1]["_spanContext"]["traceId"] + spans[1]["_spanContext"]["traceId"], ); assert.notDeepStrictEqual( spans[0]["_spanContext"]["spanId"], - spans[1]["_spanContext"]["spanId"] + spans[1]["_spanContext"]["spanId"], ); done(); }) @@ -243,12 +243,12 @@ describe("Library/TraceHandler", () => { // Incoming request assert.deepStrictEqual( spans[0].attributes["_MS.ProcessedByMetricExtractors"], - "(Name:'Requests', Ver:'1.1')" + "(Name:'Requests', Ver:'1.1')", ); // Outgoing request assert.deepStrictEqual( spans[1].attributes["_MS.ProcessedByMetricExtractors"], - "(Name:'Dependencies', Ver:'1.1')" + "(Name:'Dependencies', Ver:'1.1')", ); done(); }) diff --git a/sdk/monitor/monitor-opentelemetry/test/utils/assert.ts b/sdk/monitor/monitor-opentelemetry/test/utils/assert.ts index 55c4b159de66..13f5d8385389 100644 --- a/sdk/monitor/monitor-opentelemetry/test/utils/assert.ts +++ b/sdk/monitor/monitor-opentelemetry/test/utils/assert.ts @@ -22,7 +22,7 @@ export const assertData = (actual: MonitorBase, expected: MonitorBase): void => assert.deepStrictEqual( actual.baseData[serializedKey], value, - `baseData.${serializedKey} should be equal\nActual: ${actual.baseData[serializedKey]}\nExpected: ${value}` + `baseData.${serializedKey} should be equal\nActual: ${actual.baseData[serializedKey]}\nExpected: ${value}`, ); } }; @@ -68,7 +68,7 @@ export const assertTrace = (actual: Envelope[], expectation: Expectation): void assert.strictEqual( childEnvelopes.length, 1, - `Envelope ${(envelope[0].data!.baseData as RequestData).name} found ${childEnvelopes.length}` + `Envelope ${(envelope[0].data!.baseData as RequestData).name} found ${childEnvelopes.length}`, ); } }; @@ -104,7 +104,7 @@ export const assertTraceExpectation = (actual: Envelope[], expectations: Expecta false, `assertExpectation: could not find exported envelope: ${ (expectation.data?.baseData as MonitorDomain).name - }` + }`, ); } @@ -128,7 +128,7 @@ export const assertTraceExpectation = (actual: Envelope[], expectations: Expecta assert.strictEqual( envelope[0][serializedKey as keyof Envelope], // as keyof Serialized(Envelope) value, - `envelope.${serializedKey} should be equal\nActual: ${envelope[0][key]}\nExpected: ${value}` + `envelope.${serializedKey} should be equal\nActual: ${envelope[0][key]}\nExpected: ${value}`, ); } } @@ -155,7 +155,7 @@ export const assertMetricExpectation = (actual: Envelope[], expectations: Expect false, `assertExpectation: Envelope ${ (expectation.data?.baseData as MetricsData).metrics[0].name - } found ${envelope.length} times.` + } found ${envelope.length} times.`, ); } @@ -176,7 +176,7 @@ export const assertMetricExpectation = (actual: Envelope[], expectations: Expect assert.strictEqual( envelope[0][serializedKey as keyof Envelope], // as keyof Serialized(Envelope) value, - `envelope.${serializedKey} should be equal\nActual: ${envelope[0][key]}\nExpected: ${value}` + `envelope.${serializedKey} should be equal\nActual: ${envelope[0][key]}\nExpected: ${value}`, ); } } @@ -200,7 +200,7 @@ export const assertLogExpectation = (actual: Envelope[], expectations: Expectati false, `assertExpectation: could not find exported envelope: ${ (expectation.data?.baseData as any).name - }` + }`, ); } @@ -221,7 +221,7 @@ export const assertLogExpectation = (actual: Envelope[], expectations: Expectati assert.strictEqual( envelope[0][serializedKey as keyof Envelope], // as keyof Serialized(Envelope) value, - `envelope.${serializedKey} should be equal\nActual: ${envelope[0][key]}\nExpected: ${value}` + `envelope.${serializedKey} should be equal\nActual: ${envelope[0][key]}\nExpected: ${value}`, ); } } diff --git a/sdk/monitor/monitor-opentelemetry/test/utils/basic.ts b/sdk/monitor/monitor-opentelemetry/test/utils/basic.ts index cc58eee51e1c..490c456b06dd 100644 --- a/sdk/monitor/monitor-opentelemetry/test/utils/basic.ts +++ b/sdk/monitor/monitor-opentelemetry/test/utils/basic.ts @@ -73,7 +73,7 @@ export class TraceBasicScenario implements Scenario { numbers: "123", }, }, - ctx + ctx, ); let eventAttributes: any = {}; eventAttributes["SomeAttribute"] = "Test"; diff --git a/sdk/monitor/monitor-query/package.json b/sdk/monitor/monitor-query/package.json index 74fd4968f082..b4345c94ff39 100644 --- a/sdk/monitor/monitor-query/package.json +++ b/sdk/monitor/monitor-query/package.json @@ -39,11 +39,11 @@ "build:samples": "dev-tool samples publish --force", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && npm run build:nodebrowser && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log coverage coverage-browser", "execute:samples": "echo Obsolete", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "npm run generate:client:logquery && npm run generate:client:metrics && npm run generate:client:metrics-namespaces && npm run generate:client:metrics-definitions", "generate:client:logquery": "autorest --typescript swagger/logquery.md", "generate:client:metrics": "autorest --typescript swagger/metrics.md", @@ -129,7 +129,6 @@ "karma": "^6.2.0", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/monitor/monitor-query/samples-dev/logsQuery.ts b/sdk/monitor/monitor-query/samples-dev/logsQuery.ts index d63644f6753e..9a47e0456cfa 100644 --- a/sdk/monitor/monitor-query/samples-dev/logsQuery.ts +++ b/sdk/monitor/monitor-query/samples-dev/logsQuery.ts @@ -45,7 +45,7 @@ export async function main() { // are available (like OneDay, OneHour, FoutyEightHours, etc..) but any properly formatted ISO8601 // value is valid. { duration: Durations.oneHour }, - queryLogsOptions + queryLogsOptions, ); const executionTime = result.statistics && result.statistics.query && (result.statistics.query as any).executionTime; @@ -53,7 +53,7 @@ export async function main() { console.log( `Results for query '${kustoQuery}', execution time: ${ executionTime == null ? "unknown" : executionTime - }` + }`, ); if (result.status === LogsQueryResultStatus.Success) { diff --git a/sdk/monitor/monitor-query/samples-dev/logsQueryBatch.ts b/sdk/monitor/monitor-query/samples-dev/logsQueryBatch.ts index ce7bf5277471..958e87ac2e58 100644 --- a/sdk/monitor/monitor-query/samples-dev/logsQueryBatch.ts +++ b/sdk/monitor/monitor-query/samples-dev/logsQueryBatch.ts @@ -56,16 +56,16 @@ export async function main() { console.log(`Results for query with query: ${queriesBatch[i]}`); if (response.status === LogsQueryResultStatus.Success) { console.log( - `Printing results from query '${queriesBatch[i].query}' for '${queriesBatch[i].timespan}'` + `Printing results from query '${queriesBatch[i].query}' for '${queriesBatch[i].timespan}'`, ); processTables(response.tables); } else if (response.status === LogsQueryResultStatus.PartialFailure) { console.log( - `Printing partial results from query '${queriesBatch[i].query}' for '${queriesBatch[i].timespan}'` + `Printing partial results from query '${queriesBatch[i].query}' for '${queriesBatch[i].timespan}'`, ); processTables(response.partialTables); console.log( - ` Query had errors:${response.partialError.message} with code ${response.partialError.code}` + ` Query had errors:${response.partialError.message} with code ${response.partialError.code}`, ); } else { console.log(`Printing errors from query '${queriesBatch[i].query}'`); diff --git a/sdk/monitor/monitor-query/samples-dev/logsQueryMultipleWorkspaces.ts b/sdk/monitor/monitor-query/samples-dev/logsQueryMultipleWorkspaces.ts index 0ef7fcd7ac19..4356b05dc3e0 100644 --- a/sdk/monitor/monitor-query/samples-dev/logsQueryMultipleWorkspaces.ts +++ b/sdk/monitor/monitor-query/samples-dev/logsQueryMultipleWorkspaces.ts @@ -48,7 +48,7 @@ export async function main() { // are available (like durationOf1Day, durationOf1Hour, durationOf48Hours, etc..) but any properly formatted ISO8601 // value is valid. { duration: Durations.oneHour }, - queryLogsOptions + queryLogsOptions, ); const executionTime = result.statistics && result.statistics.query && (result.statistics.query as any).executionTime; @@ -56,7 +56,7 @@ export async function main() { console.log( `Results for query '${kustoQuery}', execution time: ${ executionTime == null ? "unknown" : executionTime - }` + }`, ); if (result.status === LogsQueryResultStatus.Success) { diff --git a/sdk/monitor/monitor-query/samples-dev/logsResourceCentricQuery.ts b/sdk/monitor/monitor-query/samples-dev/logsResourceCentricQuery.ts index 200e96d32bb8..5f094067c110 100644 --- a/sdk/monitor/monitor-query/samples-dev/logsResourceCentricQuery.ts +++ b/sdk/monitor/monitor-query/samples-dev/logsResourceCentricQuery.ts @@ -41,7 +41,7 @@ export async function main() { logsResourceId, kustoQuery, { duration: Durations.sevenDays }, - queryLogsOptions + queryLogsOptions, ); const executionTime = @@ -50,7 +50,7 @@ export async function main() { console.log( `Results for query '${kustoQuery}', execution time: ${ executionTime == null ? "unknown" : executionTime - }` + }`, ); if (result.status === LogsQueryResultStatus.Success) { diff --git a/sdk/monitor/monitor-query/samples-dev/metricsQuery.ts b/sdk/monitor/monitor-query/samples-dev/metricsQuery.ts index 7392cdd56b8b..7639e40c4d19 100644 --- a/sdk/monitor/monitor-query/samples-dev/metricsQuery.ts +++ b/sdk/monitor/monitor-query/samples-dev/metricsQuery.ts @@ -38,7 +38,7 @@ export async function main() { }); console.log( - `Query cost: ${metricsResponse.cost}, interval: ${metricsResponse.granularity}, time span: ${metricsResponse.timespan}` + `Query cost: ${metricsResponse.cost}, interval: ${metricsResponse.granularity}, time span: ${metricsResponse.timespan}`, ); const metrics: Metric[] = metricsResponse.metrics; diff --git a/sdk/monitor/monitor-query/src/internal/modelConverters.ts b/sdk/monitor/monitor-query/src/internal/modelConverters.ts index 9ad4b1a37bf6..4447deee21c4 100644 --- a/sdk/monitor/monitor-query/src/internal/modelConverters.ts +++ b/sdk/monitor/monitor-query/src/internal/modelConverters.ts @@ -120,7 +120,7 @@ export function convertRequestForQueryBatch(batch: QueryBatch[]): GeneratedBatch */ export function convertResponseForQueryBatch( generatedResponse: GeneratedQueryBatchResponse, - rawResponse: FullOperationResponse + rawResponse: FullOperationResponse, ): LogsQueryBatchResult { const fixApplied = fixInvalidBatchQueryResponse(generatedResponse, rawResponse); /* Sort the ids that are passed in with the queries, as numbers instead of strings @@ -162,7 +162,7 @@ export function convertResponseForQueryBatch( */ export function fixInvalidBatchQueryResponse( generatedResponse: GeneratedQueryBatchResponse, - rawResponse: FullOperationResponse + rawResponse: FullOperationResponse, ): boolean { if (generatedResponse.responses == null) { return false; @@ -193,7 +193,7 @@ export function fixInvalidBatchQueryResponse( * @internal */ export function convertRequestForMetricsBatchQuery( - metricsBatchQueryOptions: MetricsBatchOptionalParams | undefined + metricsBatchQueryOptions: MetricsBatchOptionalParams | undefined, ): GeneratedMetricsBatchOptionalParams { if (!metricsBatchQueryOptions) { return {}; @@ -211,7 +211,7 @@ export function convertRequestForMetricsBatchQuery( */ export function convertRequestForMetrics( metricNames: string[], - queryMetricsOptions: MetricsQueryOptions | undefined + queryMetricsOptions: MetricsQueryOptions | undefined, ): GeneratedMetricsListOptionalParams { if (!queryMetricsOptions) { return {}; @@ -250,7 +250,7 @@ export function convertRequestForMetrics( * @internal */ export function convertResponseForMetrics( - generatedResponse: GeneratedMetricsListResponse + generatedResponse: GeneratedMetricsListResponse, ): MetricsQueryResult { const metrics: Metric[] = generatedResponse.value.map((metric: GeneratedMetric) => { const metricObject = { @@ -265,7 +265,7 @@ export function convertResponseForMetrics( ...mv, name: mv.name?.value, })), - } + }, ), }; delete metricObject.displayDescription; @@ -295,7 +295,7 @@ export function convertResponseForMetrics( * @internal */ export function convertRequestOptionsForMetricsDefinitions( - options: ListMetricDefinitionsOptions | undefined + options: ListMetricDefinitionsOptions | undefined, ): GeneratedMetricDefinitionsListOptionalParams { if (!options) { return {}; @@ -315,7 +315,7 @@ export function convertRequestOptionsForMetricsDefinitions( } export function convertResponseForMetricBatch( - generatedResponse?: GeneratedMetricsBatchResponse + generatedResponse?: GeneratedMetricsBatchResponse, ): Array { if (!generatedResponse) return []; @@ -337,7 +337,7 @@ export function convertResponseForMetricBatch( }; return response; - } + }, ); if (!batch) return []; @@ -349,7 +349,7 @@ export function convertResponseForMetricBatch( * @internal */ export function convertResponseForMetricsDefinitions( - generatedResponse: Array + generatedResponse: Array, ): Array { const definitions: Array = generatedResponse?.map((genDef) => { const { name, dimensions, displayDescription, metricAvailabilities, ...rest } = genDef; @@ -390,7 +390,7 @@ export function convertResponseForMetricsDefinitions( * @internal */ export function convertResponseForMetricNamespaces( - generatedResponse: Array + generatedResponse: Array, ): Array { const namespaces: Array = generatedResponse?.map((genDef) => { const { properties, ...rest } = genDef; @@ -450,11 +450,11 @@ export function convertGeneratedTable(table: GeneratedTable): LogsTable { * @internal */ export function convertBatchQueryResponseHelper( - response: GeneratedBatchQueryResponse + response: GeneratedBatchQueryResponse, ): LogsQueryPartialResult | LogsQuerySuccessfulResult | LogsQueryError { try { const parsedResponseBody: GeneratedBatchQueryResults = JSON.parse( - response.body as any + response.body as any, ) as GeneratedBatchQueryResults; return computeResultType(parsedResponseBody); @@ -465,7 +465,7 @@ export function convertBatchQueryResponseHelper( } export function computeResultType( - generatedResponse: GeneratedBatchQueryResults + generatedResponse: GeneratedBatchQueryResults, ): LogsQueryPartialResult | LogsQuerySuccessfulResult | LogsQueryError { if (!generatedResponse.error) { const result: LogsQuerySuccessfulResult = { @@ -484,7 +484,7 @@ export function computeResultType( status: LogsQueryResultStatus.PartialFailure, statistics: generatedResponse.statistics, partialTables: generatedResponse.tables?.map((table: GeneratedTable) => - convertGeneratedTable(table) + convertGeneratedTable(table), ), partialError: mapError(generatedResponse.error), }; diff --git a/sdk/monitor/monitor-query/src/internal/util.ts b/sdk/monitor/monitor-query/src/internal/util.ts index 449e6e7f2664..58ae1bc46692 100644 --- a/sdk/monitor/monitor-query/src/internal/util.ts +++ b/sdk/monitor/monitor-query/src/internal/util.ts @@ -12,7 +12,7 @@ export function formatPreferHeader( LogsQueryOptions, "serverTimeoutInSeconds" | "includeQueryStatistics" | "includeVisualization" > - | undefined + | undefined, ): { Prefer: string } | undefined { if (!args) { return undefined; diff --git a/sdk/monitor/monitor-query/src/logsQueryClient.ts b/sdk/monitor/monitor-query/src/logsQueryClient.ts index 867b268070b8..6f3eaca4e099 100644 --- a/sdk/monitor/monitor-query/src/logsQueryClient.ts +++ b/sdk/monitor/monitor-query/src/logsQueryClient.ts @@ -97,7 +97,7 @@ export class LogsQueryClient { query: string, timespan: QueryTimeInterval, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options: LogsQueryOptions = {} + options: LogsQueryOptions = {}, ): Promise { let timeInterval: string = ""; return tracingClient.withSpan( @@ -116,7 +116,7 @@ export class LogsQueryClient { timespan: timeInterval, workspaces: options?.additionalWorkspaces, }, - paramOptions + paramOptions, ), { ...updatedOptions, @@ -125,7 +125,7 @@ export class LogsQueryClient { ...formatPreferHeader(options), }, }, - } + }, ); const parsedBody = JSON.parse(rawResponse.bodyAsText!); @@ -156,7 +156,7 @@ export class LogsQueryClient { }; return result; } - } + }, ); } @@ -168,13 +168,13 @@ export class LogsQueryClient { */ async queryBatch( batch: QueryBatch[], - options: LogsQueryBatchOptions = {} + options: LogsQueryBatchOptions = {}, ): Promise { return tracingClient.withSpan("LogsQueryClient.queryBatch", options, async (updatedOptions) => { const generatedRequest = convertRequestForQueryBatch(batch); const { flatResponse, rawResponse } = await getRawResponse( (paramOptions) => this._logAnalytics.query.batch(generatedRequest, paramOptions), - updatedOptions || {} + updatedOptions || {}, ); const result: LogsQueryBatchResult = convertResponseForQueryBatch(flatResponse, rawResponse); return result; @@ -197,7 +197,7 @@ export class LogsQueryClient { query: string, timespan: QueryTimeInterval, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options: LogsQueryOptions = {} + options: LogsQueryOptions = {}, ): Promise { let timeInterval: string = ""; return tracingClient.withSpan( @@ -218,7 +218,7 @@ export class LogsQueryClient { timespan: timeInterval, workspaces: options?.additionalWorkspaces, }, - paramOptions + paramOptions, ), { ...updatedOptions, @@ -227,7 +227,7 @@ export class LogsQueryClient { ...formatPreferHeader(options), }, }, - } + }, ); const parsedBody = JSON.parse(rawResponse.bodyAsText!); @@ -258,7 +258,7 @@ export class LogsQueryClient { }; return result; } - } + }, ); } } @@ -270,7 +270,7 @@ interface ReturnType { async function getRawResponse( f: (options: TOptions) => Promise, - options: TOptions + options: TOptions, ): Promise> { // renaming onResponse received from customer to customerProvidedCallback const { onResponse: customerProvidedCallback } = options || {}; diff --git a/sdk/monitor/monitor-query/src/metricsBatchQueryClient.ts b/sdk/monitor/monitor-query/src/metricsBatchQueryClient.ts index 60d2e9e6f7ce..aa53e1097adc 100644 --- a/sdk/monitor/monitor-query/src/metricsBatchQueryClient.ts +++ b/sdk/monitor/monitor-query/src/metricsBatchQueryClient.ts @@ -43,7 +43,7 @@ export class MetricsBatchQueryClient { constructor( batchEndPoint: string, tokenCredential: TokenCredential, - options?: MetricsBatchQueryClientOptions + options?: MetricsBatchQueryClientOptions, ) { let scope; if (options?.batchMetricsAuthScope) { @@ -73,7 +73,7 @@ export class MetricsBatchQueryClient { this._metricBatchClient = new GeneratedMonitorMetricBatchClient( this._baseUrl, MonitorMetricBatchApiVersion.TwoThousandTwentyThree0501Preview, - serviceClientOptions + serviceClientOptions, ); } @@ -84,7 +84,7 @@ export class MetricsBatchQueryClient { resourceIds: string[], metricNamespace: string, metricNames: string[], - options: MetricsBatchOptionalParams = {} + options: MetricsBatchOptionalParams = {}, ): Promise { if (resourceIds.length === 0) { throw new Error("Resource IDs can not be empty"); @@ -103,11 +103,11 @@ export class MetricsBatchQueryClient { { resourceids: resourceIds, }, - convertRequestForMetricsBatchQuery(updatedOptions) + convertRequestForMetricsBatchQuery(updatedOptions), ); return convertResponseForMetricBatch(response); - } + }, ); } } diff --git a/sdk/monitor/monitor-query/src/metricsQueryClient.ts b/sdk/monitor/monitor-query/src/metricsQueryClient.ts index e109d76f8167..65a7e0021084 100644 --- a/sdk/monitor/monitor-query/src/metricsQueryClient.ts +++ b/sdk/monitor/monitor-query/src/metricsQueryClient.ts @@ -84,17 +84,17 @@ export class MetricsQueryClient { this._metricsClient = new GeneratedMetricsClient( MetricsApiVersion.TwoThousandEighteen0101, - serviceClientOptions + serviceClientOptions, ); this._definitionsClient = new GeneratedMetricsDefinitionsClient( MetricDefinitionsApiVersion.TwoThousandEighteen0101, - serviceClientOptions + serviceClientOptions, ); this._namespacesClient = new GeneratedMetricsNamespacesClient( MetricNamespacesApiVersion.TwoThousandSeventeen1201Preview, - serviceClientOptions + serviceClientOptions, ); } @@ -108,7 +108,7 @@ export class MetricsQueryClient { async queryResource( resourceUri: string, metricNames: string[], - options: MetricsQueryOptions = {} // eslint-disable-line @azure/azure-sdk/ts-naming-options + options: MetricsQueryOptions = {}, // eslint-disable-line @azure/azure-sdk/ts-naming-options ): Promise { return tracingClient.withSpan( "MetricsQueryClient.queryResource", @@ -116,11 +116,11 @@ export class MetricsQueryClient { async (updatedOptions) => { const response = await this._metricsClient.metrics.list( resourceUri, - convertRequestForMetrics(metricNames, updatedOptions) + convertRequestForMetrics(metricNames, updatedOptions), ); return convertResponseForMetrics(response); - } + }, ); } @@ -129,7 +129,7 @@ export class MetricsQueryClient { */ private async *listSegmentOfMetricDefinitions( resourceUri: string, - options: ListMetricDefinitionsOptions = {} + options: ListMetricDefinitionsOptions = {}, ): AsyncIterableIterator> { const segmentResponse = await tracingClient.withSpan( "MetricsQueryClient.listSegmentOfMetricDefinitions", @@ -137,8 +137,8 @@ export class MetricsQueryClient { async (updatedOptions) => this._definitionsClient.metricDefinitions.list( resourceUri, - convertRequestOptionsForMetricsDefinitions(updatedOptions) - ) + convertRequestOptionsForMetricsDefinitions(updatedOptions), + ), ); yield convertResponseForMetricsDefinitions(segmentResponse.value); } @@ -148,7 +148,7 @@ export class MetricsQueryClient { */ private async *listItemsOfMetricDefinitions( resourceUri: string, - options?: ListMetricDefinitionsOptions + options?: ListMetricDefinitionsOptions, ): AsyncIterableIterator { for await (const segment of this.listSegmentOfMetricDefinitions(resourceUri, options)) { if (segment) { @@ -192,7 +192,7 @@ export class MetricsQueryClient { */ listMetricDefinitions( resourceUri: string, - options?: ListMetricDefinitionsOptions + options?: ListMetricDefinitionsOptions, ): PagedAsyncIterableIterator { const iter = this.listItemsOfMetricDefinitions(resourceUri, options); return { @@ -222,13 +222,13 @@ export class MetricsQueryClient { */ private async *listSegmentOfMetricNamespaces( resourceUri: string, - options: ListMetricNamespacesOptions = {} + options: ListMetricNamespacesOptions = {}, ): AsyncIterableIterator> { const segmentResponse = await tracingClient.withSpan( "MetricsQueryClient.listSegmentOfMetricNamespaces", options, async (updatedOptions: MetricNamespacesListOptionalParams | undefined) => - this._namespacesClient.metricNamespaces.list(resourceUri, updatedOptions) + this._namespacesClient.metricNamespaces.list(resourceUri, updatedOptions), ); yield convertResponseForMetricNamespaces(segmentResponse.value); } @@ -237,7 +237,7 @@ export class MetricsQueryClient { */ private async *listItemsOfMetricNamespaces( resourceUri: string, - options?: ListMetricNamespacesOptions + options?: ListMetricNamespacesOptions, ): AsyncIterableIterator { for await (const segment of this.listSegmentOfMetricNamespaces(resourceUri, options)) { if (segment) { @@ -278,7 +278,7 @@ export class MetricsQueryClient { */ listMetricNamespaces( resourceUri: string, - options?: ListMetricNamespacesOptions + options?: ListMetricNamespacesOptions, ): PagedAsyncIterableIterator { const iter = this.listItemsOfMetricNamespaces(resourceUri, options); return { diff --git a/sdk/monitor/monitor-query/src/models/publicMetricsModels.ts b/sdk/monitor/monitor-query/src/models/publicMetricsModels.ts index 9043361644d8..6c1800476755 100644 --- a/sdk/monitor/monitor-query/src/models/publicMetricsModels.ts +++ b/sdk/monitor/monitor-query/src/models/publicMetricsModels.ts @@ -119,7 +119,7 @@ export function getMetricByName(this: MetricsQueryResult, metricName: string): M } export function createMetricsQueryResult( - metricsQueryResultData: Omit + metricsQueryResultData: Omit, ): MetricsQueryResult { return { ...metricsQueryResultData, getMetricByName }; } diff --git a/sdk/monitor/monitor-query/src/timespanConversion.ts b/sdk/monitor/monitor-query/src/timespanConversion.ts index 0230165dcdac..7e4bb09c430b 100644 --- a/sdk/monitor/monitor-query/src/timespanConversion.ts +++ b/sdk/monitor/monitor-query/src/timespanConversion.ts @@ -49,7 +49,7 @@ export function convertIntervalToTimeIntervalObject(timespan: string): QueryTime */ export function objectHasProperty( thing: Thing, - property: PropertyName + property: PropertyName, ): thing is Extract> { return typeof thing === "object" && property in (thing as Record); } diff --git a/sdk/monitor/monitor-query/test/internal/unit/logsQueryClient.unittest.spec.ts b/sdk/monitor/monitor-query/test/internal/unit/logsQueryClient.unittest.spec.ts index 7b2925d1cd59..3ebcf8254b3f 100644 --- a/sdk/monitor/monitor-query/test/internal/unit/logsQueryClient.unittest.spec.ts +++ b/sdk/monitor/monitor-query/test/internal/unit/logsQueryClient.unittest.spec.ts @@ -15,7 +15,7 @@ describe("LogsQueryClient unit tests", () => { const tokenCredential: TokenCredential = { async getToken( scopes: string | string[], - _options?: GetTokenOptions + _options?: GetTokenOptions, ): Promise { if (Array.isArray(scopes)) { scopesPassed.push(...scopes); @@ -56,7 +56,7 @@ describe("LogsQueryClient unit tests", () => { "workspaceId", "query", { duration: Durations.fiveMinutes }, - options + options, ), client.queryBatch( [ @@ -66,13 +66,13 @@ describe("LogsQueryClient unit tests", () => { timespan: { duration: "P1D" }, }, ], - options + options, ), ]; // We don't care about errors, only that we created (and closed) the appropriate spans. await Promise.all(promises.map((p) => p.catch(() => undefined))); }, - ["LogsQueryClient.queryWorkspace", "LogsQueryClient.queryBatch"] + ["LogsQueryClient.queryWorkspace", "LogsQueryClient.queryBatch"], ); }); }); diff --git a/sdk/monitor/monitor-query/test/internal/unit/metricsQueryClient.unittest.spec.ts b/sdk/monitor/monitor-query/test/internal/unit/metricsQueryClient.unittest.spec.ts index f9ea9f8c3f85..72cc0a47a5b6 100644 --- a/sdk/monitor/monitor-query/test/internal/unit/metricsQueryClient.unittest.spec.ts +++ b/sdk/monitor/monitor-query/test/internal/unit/metricsQueryClient.unittest.spec.ts @@ -11,7 +11,7 @@ it("verify tracing", async () => { const tokenCredential: TokenCredential = { async getToken( scopes: string | string[], - _options?: GetTokenOptions + _options?: GetTokenOptions, ): Promise { if (Array.isArray(scopes)) { scopesPassed.push(...scopes); @@ -43,6 +43,6 @@ it("verify tracing", async () => { "MetricsQueryClient.queryResource", "MetricsQueryClient.listSegmentOfMetricNamespaces", "MetricsQueryClient.listSegmentOfMetricDefinitions", - ] + ], ); }); diff --git a/sdk/monitor/monitor-query/test/internal/unit/modelConverters.unittest.spec.ts b/sdk/monitor/monitor-query/test/internal/unit/modelConverters.unittest.spec.ts index bbe979d642c4..7dcdc5456790 100644 --- a/sdk/monitor/monitor-query/test/internal/unit/modelConverters.unittest.spec.ts +++ b/sdk/monitor/monitor-query/test/internal/unit/modelConverters.unittest.spec.ts @@ -122,7 +122,7 @@ describe("Model unit tests", () => { const actualMetricsRequest: GeneratedMetricsListOptionalParams = convertRequestForMetrics( ["name1", "name2"], - track2Model + track2Model, ); const expectedMetricsRequest: GeneratedMetricsListOptionalParams = { @@ -245,7 +245,7 @@ describe("Model unit tests", () => { const { getMetricByName, ...rest } = actualConvertedResponse; assert.deepEqual( { ...rest } as Omit, - expectedResponse + expectedResponse, ); }); @@ -307,7 +307,7 @@ describe("Model unit tests", () => { dimensions: ["the value"], }, ], - actualResponse + actualResponse, ); }); @@ -326,7 +326,7 @@ describe("Model unit tests", () => { id: "anything", }, ], - actualResponse + actualResponse, ); }); diff --git a/sdk/monitor/monitor-query/test/public/logsQueryClient.spec.ts b/sdk/monitor/monitor-query/test/public/logsQueryClient.spec.ts index 3fa6ec91c3b7..82c5c0bba0b3 100644 --- a/sdk/monitor/monitor-query/test/public/logsQueryClient.spec.ts +++ b/sdk/monitor/monitor-query/test/public/logsQueryClient.spec.ts @@ -70,7 +70,7 @@ describe("LogsQueryClient live tests", function () { name: "RestError", statusCode: 400, }, - `Query should throw a RestError. Message: ${JSON.stringify(stringizableError)}` + `Query should throw a RestError. Message: ${JSON.stringify(stringizableError)}`, ); assert.deepNestedInclude( @@ -81,8 +81,8 @@ describe("LogsQueryClient live tests", function () { // message: "Query could not be parsed at 'invalid' on line [1,11]", }, `Query should indicate a syntax error in innermost error. Innermost error: ${JSON.stringify( - innermostError - )}` + innermostError, + )}`, ); } }); @@ -96,7 +96,7 @@ describe("LogsQueryClient live tests", function () { }, { includeQueryStatistics: true, - } + }, ); // TODO: statistics are not currently modeled in the generated code but @@ -114,7 +114,7 @@ describe("LogsQueryClient live tests", function () { }, { includeVisualization: true, - } + }, ); // TODO: render/visualizations are not currently modeled in the generated @@ -177,7 +177,7 @@ describe("LogsQueryClient live tests", function () { type: "dynamic", }, ], - table.columnDescriptors + table.columnDescriptors, ); table.rows.map((rowValues) => { @@ -268,7 +268,7 @@ describe("LogsQueryClient live tests", function () { type: "dynamic", }, ], - table.columnDescriptors + table.columnDescriptors, ); table.rows.map((rowValues) => { @@ -341,7 +341,7 @@ describe("LogsQueryClient live tests", function () { name: "RestError", statusCode: 400, }, - `Query should throw a RestError. Message: ${JSON.stringify(stringizableError)}` + `Query should throw a RestError. Message: ${JSON.stringify(stringizableError)}`, ); assert.deepNestedInclude( @@ -352,8 +352,8 @@ describe("LogsQueryClient live tests", function () { "'summarize' operator: Failed to resolve table or column expression named 'resource'", }, `Query should indicate a syntax error in innermost error. Innermost error: ${JSON.stringify( - innermostError - )}` + innermostError, + )}`, ); } }); @@ -397,7 +397,7 @@ describe("LogsQueryClient live tests", function () { kustoQuery, { duration: Durations.oneDay, - } + }, ); // TODO: the actual types aren't being deserialized (everything is coming back as 'string') @@ -410,7 +410,7 @@ describe("LogsQueryClient live tests", function () { columns: ["Kind", "Name", "Target", "TestRunId"], rows: [["now", "testSpan", "testSpan", testRunId.toString()]], }, - "Query for the last day" + "Query for the last day", ); } }); @@ -444,7 +444,7 @@ describe("LogsQueryClient live tests", function () { columns: ["Kind", "Name", "Target", "TestRunId"], rows: [["now", "testSpan", "testSpan", testRunId.toString()]], }, - "Standard results" + "Standard results", ); } if (result[1].status === LogsQueryResultStatus.Success) { @@ -455,7 +455,7 @@ describe("LogsQueryClient live tests", function () { columns: ["Count"], rows: [["1"]], }, - "count table" + "count table", ); } }); @@ -469,7 +469,7 @@ describe("LogsQueryClient live tests", function () { const startTime = Date.now(); loggerForTest.verbose( - `Polling for results to make sure our telemetry has been ingested....\n${query}` + `Polling for results to make sure our telemetry has been ingested....\n${query}`, ); for (let i = 0; i < args.maxTries; ++i) { @@ -482,7 +482,7 @@ describe("LogsQueryClient live tests", function () { if (numRows != null && numRows > 0) { loggerForTest.verbose( - `[Attempt: ${i}/${args.maxTries}] Results came back, done waiting.` + `[Attempt: ${i}/${args.maxTries}] Results came back, done waiting.`, ); return; } @@ -491,7 +491,7 @@ describe("LogsQueryClient live tests", function () { if (numRows != null && numRows > 0) { loggerForTest.verbose( - `[Attempt: ${i}/${args.maxTries}] Partial Results came back, done waiting.` + `[Attempt: ${i}/${args.maxTries}] Partial Results came back, done waiting.`, ); return; } @@ -500,7 +500,7 @@ describe("LogsQueryClient live tests", function () { loggerForTest.verbose( `[Attempt: ${i}/${args.maxTries}, elapsed: ${ Date.now() - startTime - } ms] No rows, will poll again.` + } ms] No rows, will poll again.`, ); await new Promise((resolve) => setTimeout(resolve, args.secondsBetweenQueries * 1000)); @@ -548,7 +548,7 @@ describe("LogsQueryClient live tests - server timeout", function () { { // the query above easily takes longer than 1 second. serverTimeoutInSeconds: 1, - } + }, ); assert.fail("Should have thrown a RestError for a GatewayTimeout"); } catch (err: any) { @@ -562,7 +562,7 @@ describe("LogsQueryClient live tests - server timeout", function () { name: "RestError", statusCode: 504, }, - `Query should throw a RestError. Message: ${JSON.stringify(stringizableError)}` + `Query should throw a RestError. Message: ${JSON.stringify(stringizableError)}`, ); assert.deepNestedInclude( @@ -573,8 +573,8 @@ describe("LogsQueryClient live tests - server timeout", function () { // "message":"Kusto query timed out" }, `Should get a code indicating the query timed out. Innermost error: ${JSON.stringify( - innermostError - )}` + innermostError, + )}`, ); } }); diff --git a/sdk/monitor/monitor-query/test/public/metricsBatchClient.spec.ts b/sdk/monitor/monitor-query/test/public/metricsBatchClient.spec.ts index 12415fe20d93..90dedd38ef80 100644 --- a/sdk/monitor/monitor-query/test/public/metricsBatchClient.spec.ts +++ b/sdk/monitor/monitor-query/test/public/metricsBatchClient.spec.ts @@ -45,7 +45,7 @@ describe.skip("MetricsBatchClient live tests", function () { const result: MetricResultsResponseValuesItem[] = await metricsBatchQueryClient.queryBatch( resourceIds, metricsNamespace, - metricNames + metricNames, ); assert.equal(result.length, 2); }); @@ -54,7 +54,7 @@ describe.skip("MetricsBatchClient live tests", function () { const result: MetricResultsResponseValuesItem[] = await metricsBatchQueryClient.queryBatch( [resourceIds[0]], metricsNamespace, - metricNames + metricNames, ); assert.equal(result.length, 1); }); diff --git a/sdk/monitor/monitor-query/test/public/metricsQueryClient.spec.ts b/sdk/monitor/monitor-query/test/public/metricsQueryClient.spec.ts index 156cb2e395b9..a8e11ec43366 100644 --- a/sdk/monitor/monitor-query/test/public/metricsQueryClient.spec.ts +++ b/sdk/monitor/monitor-query/test/public/metricsQueryClient.spec.ts @@ -43,7 +43,7 @@ describe("MetricsClient live tests", function () { const resultQuery = await metricsQueryClient.queryResource( resourceId, [result.value.name || ""], - {} + {}, ); assert(resultQuery); assert(resultQuery.granularity); @@ -89,7 +89,7 @@ describe("MetricsClient live tests", function () { { timespan: { duration: Durations.oneDay }, metricNamespace: firstResult.namespace, - } + }, ); assert.ok(individualMetricWithNamespace); diff --git a/sdk/monitor/monitor-query/test/public/shared/testShared.ts b/sdk/monitor/monitor-query/test/public/shared/testShared.ts index 078583053bfa..fd2e64a856c3 100644 --- a/sdk/monitor/monitor-query/test/public/shared/testShared.ts +++ b/sdk/monitor/monitor-query/test/public/shared/testShared.ts @@ -86,12 +86,12 @@ export const testEnv = new Proxy(envSetupForPlayback, { }); export async function createRecorderAndMetricsClient( - recorder: Recorder + recorder: Recorder, ): Promise { await recorder.start(recorderOptions); const client = new MetricsQueryClient( createTestCredential(), - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); return { @@ -102,7 +102,7 @@ export async function createRecorderAndMetricsClient( export async function createRecorderAndLogsClient( recorder: Recorder, - retryOptions?: ExponentialRetryPolicyOptions + retryOptions?: ExponentialRetryPolicyOptions, ): Promise { await recorder.start(recorderOptions); await recorder.addSanitizers( @@ -116,12 +116,12 @@ export async function createRecorderAndLogsClient( }, ], }, - ["playback", "record"] + ["playback", "record"], ); const client = new LogsQueryClient( createTestCredential(), - recorder.configureClientOptions({ retryOptions }) + recorder.configureClientOptions({ retryOptions }), ); return { @@ -143,14 +143,14 @@ export function getLogsArmResourceId(): string { } export function getAppInsightsConnectionString(): string { let appInsightsConnectionString = assertEnvironmentVariable( - "MQ_APPLICATIONINSIGHTS_CONNECTION_STRING" + "MQ_APPLICATIONINSIGHTS_CONNECTION_STRING", ); // TODO: this is a workaround for now - adding in an endpoint causes the Monitor endpoint to return a 308 (ie: permanent redirect) // Removing for now until we get fix the exporter. appInsightsConnectionString = appInsightsConnectionString.replace( /IngestionEndpoint=.+?(;|$)/, - "" + "", ); return appInsightsConnectionString; @@ -177,7 +177,7 @@ export function assertQueryTable( columns: string[]; rows: LogsTable["rows"]; }, - message: string + message: string, ): void { if (table == null) { throw new Error(`${message}: Table was null/undefined`); @@ -190,6 +190,6 @@ export function assertQueryTable( columns: table.columnDescriptors.map((c) => c.name), }, expectedTable, - `${message}: tables weren't equal` + `${message}: tables weren't equal`, ); } diff --git a/sdk/monitor/perf-tests/monitor-ingestion/package.json b/sdk/monitor/perf-tests/monitor-ingestion/package.json index f7cf5e677e82..ba68e5ee5873 100644 --- a/sdk/monitor/perf-tests/monitor-ingestion/package.json +++ b/sdk/monitor/perf-tests/monitor-ingestion/package.json @@ -16,11 +16,11 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -29,9 +29,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm test-dist types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/monitor/perf-tests/monitor-opentelemetry/package.json b/sdk/monitor/perf-tests/monitor-opentelemetry/package.json index e8b22f83bfbf..771b431ec79c 100644 --- a/sdk/monitor/perf-tests/monitor-opentelemetry/package.json +++ b/sdk/monitor/perf-tests/monitor-opentelemetry/package.json @@ -20,11 +20,11 @@ "@types/uuid": "^8.0.0", "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -33,9 +33,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/monitor/perf-tests/monitor-query/package.json b/sdk/monitor/perf-tests/monitor-query/package.json index 2c9290a80919..9663c38a398c 100644 --- a/sdk/monitor/perf-tests/monitor-query/package.json +++ b/sdk/monitor/perf-tests/monitor-query/package.json @@ -16,11 +16,11 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -29,9 +29,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm test-dist types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/network/arm-network-rest/package.json b/sdk/network/arm-network-rest/package.json index 206b223cbc39..da64ed42205c 100644 --- a/sdk/network/arm-network-rest/package.json +++ b/sdk/network/arm-network-rest/package.json @@ -38,11 +38,11 @@ "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -76,7 +76,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^1.0.4", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/network/arm-network-rest/samples-dev/adminRuleCollectionsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/adminRuleCollectionsCreateOrUpdateSample.ts index 8a3bb7d0029f..61d7557f9872 100644 --- a/sdk/network/arm-network-rest/samples-dev/adminRuleCollectionsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/adminRuleCollectionsCreateOrUpdateSample.ts @@ -46,7 +46,7 @@ async function createOrUpdateAnAdminRuleCollection() { resourceGroupName, networkManagerName, configurationName, - ruleCollectionName + ruleCollectionName, ) .put(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/adminRuleCollectionsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/adminRuleCollectionsDeleteSample.ts index 95428908007c..bb8349514d08 100644 --- a/sdk/network/arm-network-rest/samples-dev/adminRuleCollectionsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/adminRuleCollectionsDeleteSample.ts @@ -36,7 +36,7 @@ async function deletesAnAdminRuleCollection() { resourceGroupName, networkManagerName, configurationName, - ruleCollectionName + ruleCollectionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/adminRuleCollectionsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/adminRuleCollectionsGetSample.ts index d9191c976d7f..f27db7d2d724 100644 --- a/sdk/network/arm-network-rest/samples-dev/adminRuleCollectionsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/adminRuleCollectionsGetSample.ts @@ -35,7 +35,7 @@ async function getsSecurityAdminRuleCollection() { resourceGroupName, networkManagerName, configurationName, - ruleCollectionName + ruleCollectionName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/adminRuleCollectionsListSample.ts b/sdk/network/arm-network-rest/samples-dev/adminRuleCollectionsListSample.ts index 7b6d1274a0a4..83828846ec1e 100644 --- a/sdk/network/arm-network-rest/samples-dev/adminRuleCollectionsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/adminRuleCollectionsListSample.ts @@ -34,7 +34,7 @@ async function listSecurityAdminRuleCollections() { subscriptionId, resourceGroupName, networkManagerName, - configurationName + configurationName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/adminRulesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/adminRulesCreateOrUpdateSample.ts index 2253d6949dd9..248af78ab602 100644 --- a/sdk/network/arm-network-rest/samples-dev/adminRulesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/adminRulesCreateOrUpdateSample.ts @@ -38,7 +38,7 @@ async function createADefaultAdminRule() { networkManagerName, configurationName, ruleCollectionName, - ruleName + ruleName, ) .put(options); console.log(result); @@ -85,7 +85,7 @@ async function createAnAdminRule() { networkManagerName, configurationName, ruleCollectionName, - ruleName + ruleName, ) .put(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/adminRulesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/adminRulesDeleteSample.ts index 5d39f9d4415e..13dda33d75d1 100644 --- a/sdk/network/arm-network-rest/samples-dev/adminRulesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/adminRulesDeleteSample.ts @@ -38,7 +38,7 @@ async function deletesAnAdminRule() { networkManagerName, configurationName, ruleCollectionName, - ruleName + ruleName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/adminRulesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/adminRulesGetSample.ts index bd5728acab78..29a876529ef7 100644 --- a/sdk/network/arm-network-rest/samples-dev/adminRulesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/adminRulesGetSample.ts @@ -35,7 +35,7 @@ async function getsSecurityAdminRule() { networkManagerName, configurationName, ruleCollectionName, - ruleName + ruleName, ) .get(options); console.log(result); @@ -68,7 +68,7 @@ async function getsSecurityDefaultAdminRule() { networkManagerName, configurationName, ruleCollectionName, - ruleName + ruleName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/adminRulesListSample.ts b/sdk/network/arm-network-rest/samples-dev/adminRulesListSample.ts index 5171fa934429..0ae527e3ca15 100644 --- a/sdk/network/arm-network-rest/samples-dev/adminRulesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/adminRulesListSample.ts @@ -36,7 +36,7 @@ async function listSecurityAdminRules() { resourceGroupName, networkManagerName, configurationName, - ruleCollectionName + ruleCollectionName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateEndpointConnectionsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateEndpointConnectionsDeleteSample.ts index 3c06927c3de1..94f45748b414 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateEndpointConnectionsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateEndpointConnectionsDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteApplicationGatewayPrivateEndpointConnection() { subscriptionId, resourceGroupName, applicationGatewayName, - connectionName + connectionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateEndpointConnectionsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateEndpointConnectionsGetSample.ts index 68f286014c12..4bfb4c758862 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateEndpointConnectionsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateEndpointConnectionsGetSample.ts @@ -33,7 +33,7 @@ async function getApplicationGatewayPrivateEndpointConnection() { subscriptionId, resourceGroupName, applicationGatewayName, - connectionName + connectionName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateEndpointConnectionsListSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateEndpointConnectionsListSample.ts index 41e3bdbc8fc8..9d989a5aa836 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateEndpointConnectionsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateEndpointConnectionsListSample.ts @@ -32,7 +32,7 @@ async function listsAllPrivateEndpointConnectionsOnApplicationGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateEndpointConnections", subscriptionId, resourceGroupName, - applicationGatewayName + applicationGatewayName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateEndpointConnectionsUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateEndpointConnectionsUpdateSample.ts index d9e36f9cc61e..095d77cc4e37 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateEndpointConnectionsUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateEndpointConnectionsUpdateSample.ts @@ -46,7 +46,7 @@ async function updateApplicationGatewayPrivateEndpointConnection() { subscriptionId, resourceGroupName, applicationGatewayName, - connectionName + connectionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateLinkResourcesListSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateLinkResourcesListSample.ts index 870662f2f799..1a007ff5807d 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateLinkResourcesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewayPrivateLinkResourcesListSample.ts @@ -32,7 +32,7 @@ async function listsAllPrivateLinkResourcesOnApplicationGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateLinkResources", subscriptionId, resourceGroupName, - applicationGatewayName + applicationGatewayName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewayWafDynamicManifestsDefaultGetSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewayWafDynamicManifestsDefaultGetSample.ts index 6111ae812f72..8250d199f60f 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewayWafDynamicManifestsDefaultGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewayWafDynamicManifestsDefaultGetSample.ts @@ -29,7 +29,7 @@ async function getsWafDefaultManifest() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/applicationGatewayWafDynamicManifests/dafault", subscriptionId, - location + location, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewayWafDynamicManifestsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewayWafDynamicManifestsGetSample.ts index 9450fcff8205..84a02c1c13fb 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewayWafDynamicManifestsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewayWafDynamicManifestsGetSample.ts @@ -30,7 +30,7 @@ async function getsWafManifests() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/applicationGatewayWafDynamicManifests", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysBackendHealthOnDemandSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysBackendHealthOnDemandSample.ts index 8cbba87d6d6f..d76601bab9d2 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysBackendHealthOnDemandSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysBackendHealthOnDemandSample.ts @@ -44,7 +44,7 @@ async function testBackendHealth() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/getBackendHealthOnDemand", subscriptionId, resourceGroupName, - applicationGatewayName + applicationGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysBackendHealthSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysBackendHealthSample.ts index 2a4fca006978..a48e92d61d77 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysBackendHealthSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysBackendHealthSample.ts @@ -32,7 +32,7 @@ async function getBackendHealth() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendhealth", subscriptionId, resourceGroupName, - applicationGatewayName + applicationGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysCreateOrUpdateSample.ts index 93e9343efea6..3750246ff4eb 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysCreateOrUpdateSample.ts @@ -303,7 +303,7 @@ async function createApplicationGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}", subscriptionId, resourceGroupName, - applicationGatewayName + applicationGatewayName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysDeleteSample.ts index 71bde167d94d..addaf304abf6 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteApplicationGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}", subscriptionId, resourceGroupName, - applicationGatewayName + applicationGatewayName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysGetSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysGetSample.ts index 6e27146b158d..39540277d5f8 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysGetSample.ts @@ -31,7 +31,7 @@ async function getApplicationGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}", subscriptionId, resourceGroupName, - applicationGatewayName + applicationGatewayName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysGetSslPredefinedPolicySample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysGetSslPredefinedPolicySample.ts index c749671705be..6b59985427f5 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysGetSslPredefinedPolicySample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysGetSslPredefinedPolicySample.ts @@ -29,7 +29,7 @@ async function getAvailableSslPredefinedPolicyByName() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/{predefinedPolicyName}", subscriptionId, - predefinedPolicyName + predefinedPolicyName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAllSample.ts index 06d56e1e3eeb..b477c1577569 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAllSample.ts @@ -28,7 +28,7 @@ async function listsAllApplicationGatewaysInASubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableRequestHeadersSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableRequestHeadersSample.ts index 346933c30108..f3e00e5251f8 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableRequestHeadersSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableRequestHeadersSample.ts @@ -27,7 +27,7 @@ async function getAvailableRequestHeaders() { const result = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableRequestHeaders", - subscriptionId + subscriptionId, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableResponseHeadersSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableResponseHeadersSample.ts index a9be5234c197..457d51b3d9b4 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableResponseHeadersSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableResponseHeadersSample.ts @@ -27,7 +27,7 @@ async function getAvailableResponseHeaders() { const result = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableResponseHeaders", - subscriptionId + subscriptionId, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableServerVariablesSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableServerVariablesSample.ts index 08eb4e37147b..6b83e8027fb1 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableServerVariablesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableServerVariablesSample.ts @@ -27,7 +27,7 @@ async function getAvailableServerVariables() { const result = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableServerVariables", - subscriptionId + subscriptionId, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableSslOptionsSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableSslOptionsSample.ts index 4e581b274632..3c518c90b424 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableSslOptionsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableSslOptionsSample.ts @@ -27,7 +27,7 @@ async function getAvailableSslOptions() { const result = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default", - subscriptionId + subscriptionId, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableSslPredefinedPoliciesSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableSslPredefinedPoliciesSample.ts index 6e2824a688c7..5f378143d8a6 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableSslPredefinedPoliciesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableSslPredefinedPoliciesSample.ts @@ -28,7 +28,7 @@ async function getAvailableSslPredefinedPolicies() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableWafRuleSetsSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableWafRuleSetsSample.ts index f875321b5756..9c8f0d7704a1 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableWafRuleSetsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListAvailableWafRuleSetsSample.ts @@ -27,7 +27,7 @@ async function getAvailableWafRuleSets() { const result = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets", - subscriptionId + subscriptionId, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListSample.ts index cc1a557e6c71..2ed00ba7ec09 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysListSample.ts @@ -30,7 +30,7 @@ async function listsAllApplicationGatewaysInAResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysStartSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysStartSample.ts index 26c9c273d6bb..a0e8a62e3e48 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysStartSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysStartSample.ts @@ -32,7 +32,7 @@ async function startApplicationGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/start", subscriptionId, resourceGroupName, - applicationGatewayName + applicationGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysStopSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysStopSample.ts index 323da6153dc6..3a49b525dc2c 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysStopSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysStopSample.ts @@ -32,7 +32,7 @@ async function stopApplicationGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop", subscriptionId, resourceGroupName, - applicationGatewayName + applicationGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysUpdateTagsSample.ts index 5e81d1cc6d02..40cd54adec4b 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationGatewaysUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationGatewaysUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateApplicationGatewayTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}", subscriptionId, resourceGroupName, - applicationGatewayName + applicationGatewayName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsCreateOrUpdateSample.ts index 20fd524377d0..446614a23a2a 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsCreateOrUpdateSample.ts @@ -33,7 +33,7 @@ async function createApplicationSecurityGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", subscriptionId, resourceGroupName, - applicationSecurityGroupName + applicationSecurityGroupName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsDeleteSample.ts index c7be22855a6c..3bf39b69c37e 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteApplicationSecurityGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", subscriptionId, resourceGroupName, - applicationSecurityGroupName + applicationSecurityGroupName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsGetSample.ts index 070655a00aea..b61be2fbfdee 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsGetSample.ts @@ -31,7 +31,7 @@ async function getApplicationSecurityGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", subscriptionId, resourceGroupName, - applicationSecurityGroupName + applicationSecurityGroupName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsListAllSample.ts index b58d5ee1458a..582ae3bc8d21 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsListAllSample.ts @@ -28,7 +28,7 @@ async function listAllApplicationSecurityGroups() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationSecurityGroups", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsListSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsListSample.ts index 6da05e957807..3d44ed5ea31c 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsListSample.ts @@ -30,7 +30,7 @@ async function listLoadBalancersInResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsUpdateTagsSample.ts index da967fa63ebf..f40ad16770ff 100644 --- a/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/applicationSecurityGroupsUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateApplicationSecurityGroupTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", subscriptionId, resourceGroupName, - applicationSecurityGroupName + applicationSecurityGroupName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/availableDelegationsListSample.ts b/sdk/network/arm-network-rest/samples-dev/availableDelegationsListSample.ts index e5fb050be4f8..1324b870b715 100644 --- a/sdk/network/arm-network-rest/samples-dev/availableDelegationsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/availableDelegationsListSample.ts @@ -30,7 +30,7 @@ async function getAvailableDelegations() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availableDelegations", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/availableEndpointServicesListSample.ts b/sdk/network/arm-network-rest/samples-dev/availableEndpointServicesListSample.ts index c68434a1cd7b..b99ec079f8e6 100644 --- a/sdk/network/arm-network-rest/samples-dev/availableEndpointServicesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/availableEndpointServicesListSample.ts @@ -30,7 +30,7 @@ async function endpointServicesList() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/virtualNetworkAvailableEndpointServices", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/availablePrivateEndpointTypesListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/availablePrivateEndpointTypesListByResourceGroupSample.ts index 7c0bd0336951..7d59d6422621 100644 --- a/sdk/network/arm-network-rest/samples-dev/availablePrivateEndpointTypesListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/availablePrivateEndpointTypesListByResourceGroupSample.ts @@ -32,7 +32,7 @@ async function getAvailablePrivateEndpointTypesInTheResourceGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availablePrivateEndpointTypes", subscriptionId, resourceGroupName, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/availablePrivateEndpointTypesListSample.ts b/sdk/network/arm-network-rest/samples-dev/availablePrivateEndpointTypesListSample.ts index 7f3b3d4132b0..d9162d99551b 100644 --- a/sdk/network/arm-network-rest/samples-dev/availablePrivateEndpointTypesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/availablePrivateEndpointTypesListSample.ts @@ -30,7 +30,7 @@ async function getAvailablePrivateEndpointTypes() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availablePrivateEndpointTypes", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/availableResourceGroupDelegationsListSample.ts b/sdk/network/arm-network-rest/samples-dev/availableResourceGroupDelegationsListSample.ts index 3b939ee11bac..df26e0d7cbb5 100644 --- a/sdk/network/arm-network-rest/samples-dev/availableResourceGroupDelegationsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/availableResourceGroupDelegationsListSample.ts @@ -32,7 +32,7 @@ async function getAvailableDelegationsInTheResourceGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availableDelegations", subscriptionId, resourceGroupName, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/availableServiceAliasesListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/availableServiceAliasesListByResourceGroupSample.ts index 4b6401089d35..e9645612c213 100644 --- a/sdk/network/arm-network-rest/samples-dev/availableServiceAliasesListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/availableServiceAliasesListByResourceGroupSample.ts @@ -32,7 +32,7 @@ async function getAvailableServiceAliasesInTheResourceGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availableServiceAliases", subscriptionId, resourceGroupName, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/availableServiceAliasesListSample.ts b/sdk/network/arm-network-rest/samples-dev/availableServiceAliasesListSample.ts index 9360bc1a5355..72cf95863064 100644 --- a/sdk/network/arm-network-rest/samples-dev/availableServiceAliasesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/availableServiceAliasesListSample.ts @@ -30,7 +30,7 @@ async function getAvailableServiceAliases() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availableServiceAliases", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/azureFirewallFqdnTagsListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/azureFirewallFqdnTagsListAllSample.ts index c035643ffab9..0ae755d4c773 100644 --- a/sdk/network/arm-network-rest/samples-dev/azureFirewallFqdnTagsListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/azureFirewallFqdnTagsListAllSample.ts @@ -28,7 +28,7 @@ async function listAllAzureFirewallFqdnTagsForAGivenSubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureFirewallFqdnTags", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/azureFirewallsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/azureFirewallsCreateOrUpdateSample.ts index 461548f7c889..b7980144d0f2 100644 --- a/sdk/network/arm-network-rest/samples-dev/azureFirewallsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/azureFirewallsCreateOrUpdateSample.ts @@ -130,7 +130,7 @@ async function createAzureFirewall() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", subscriptionId, resourceGroupName, - azureFirewallName + azureFirewallName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -259,7 +259,7 @@ async function createAzureFirewallWithAdditionalProperties() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", subscriptionId, resourceGroupName, - azureFirewallName + azureFirewallName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -386,7 +386,7 @@ async function createAzureFirewallWithIPGroups() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", subscriptionId, resourceGroupName, - azureFirewallName + azureFirewallName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -513,7 +513,7 @@ async function createAzureFirewallWithZones() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", subscriptionId, resourceGroupName, - azureFirewallName + azureFirewallName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -651,7 +651,7 @@ async function createAzureFirewallWithManagementSubnet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", subscriptionId, resourceGroupName, - azureFirewallName + azureFirewallName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -696,7 +696,7 @@ async function createAzureFirewallInVirtualHub() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", subscriptionId, resourceGroupName, - azureFirewallName + azureFirewallName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/azureFirewallsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/azureFirewallsDeleteSample.ts index 40ee5fcf1533..e448faa6878c 100644 --- a/sdk/network/arm-network-rest/samples-dev/azureFirewallsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/azureFirewallsDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteAzureFirewall() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", subscriptionId, resourceGroupName, - azureFirewallName + azureFirewallName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/azureFirewallsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/azureFirewallsGetSample.ts index 87efb64064a8..a415e5cf7374 100644 --- a/sdk/network/arm-network-rest/samples-dev/azureFirewallsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/azureFirewallsGetSample.ts @@ -31,7 +31,7 @@ async function getAzureFirewall() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", subscriptionId, resourceGroupName, - azureFirewallName + azureFirewallName, ) .get(options); console.log(result); @@ -58,7 +58,7 @@ async function getAzureFirewallWithAdditionalProperties() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", subscriptionId, resourceGroupName, - azureFirewallName + azureFirewallName, ) .get(options); console.log(result); @@ -85,7 +85,7 @@ async function getAzureFirewallWithIPGroups() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", subscriptionId, resourceGroupName, - azureFirewallName + azureFirewallName, ) .get(options); console.log(result); @@ -112,7 +112,7 @@ async function getAzureFirewallWithZones() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", subscriptionId, resourceGroupName, - azureFirewallName + azureFirewallName, ) .get(options); console.log(result); @@ -139,7 +139,7 @@ async function getAzureFirewallWithManagementSubnet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", subscriptionId, resourceGroupName, - azureFirewallName + azureFirewallName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/azureFirewallsListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/azureFirewallsListAllSample.ts index 440692695ee9..2c3927545964 100644 --- a/sdk/network/arm-network-rest/samples-dev/azureFirewallsListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/azureFirewallsListAllSample.ts @@ -28,7 +28,7 @@ async function listAllAzureFirewallsForAGivenSubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureFirewalls", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/azureFirewallsListLearnedPrefixesSample.ts b/sdk/network/arm-network-rest/samples-dev/azureFirewallsListLearnedPrefixesSample.ts index ab232112d395..912f3d9c9e0c 100644 --- a/sdk/network/arm-network-rest/samples-dev/azureFirewallsListLearnedPrefixesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/azureFirewallsListLearnedPrefixesSample.ts @@ -32,7 +32,7 @@ async function azureFirewallListLearnedPrefixes() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}/learnedIPPrefixes", subscriptionId, resourceGroupName, - azureFirewallName + azureFirewallName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/azureFirewallsListSample.ts b/sdk/network/arm-network-rest/samples-dev/azureFirewallsListSample.ts index 544c6772b208..269544042fb0 100644 --- a/sdk/network/arm-network-rest/samples-dev/azureFirewallsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/azureFirewallsListSample.ts @@ -30,7 +30,7 @@ async function listAllAzureFirewallsForAGivenResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/azureFirewallsUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/azureFirewallsUpdateTagsSample.ts index 8a9dbf674421..3e84804a39fa 100644 --- a/sdk/network/arm-network-rest/samples-dev/azureFirewallsUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/azureFirewallsUpdateTagsSample.ts @@ -33,7 +33,7 @@ async function updateAzureFirewallTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", subscriptionId, resourceGroupName, - azureFirewallName + azureFirewallName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/bastionHostsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/bastionHostsCreateOrUpdateSample.ts index 421363e8691c..9c49265e5a4c 100644 --- a/sdk/network/arm-network-rest/samples-dev/bastionHostsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/bastionHostsCreateOrUpdateSample.ts @@ -49,7 +49,7 @@ async function createBastionHost() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}", subscriptionId, resourceGroupName, - bastionHostName + bastionHostName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/bastionHostsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/bastionHostsDeleteSample.ts index 037d7021f01d..4ef9e14a11aa 100644 --- a/sdk/network/arm-network-rest/samples-dev/bastionHostsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/bastionHostsDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteBastionHost() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}", subscriptionId, resourceGroupName, - bastionHostName + bastionHostName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/bastionHostsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/bastionHostsGetSample.ts index ad80d7389354..20ca7f0d8b58 100644 --- a/sdk/network/arm-network-rest/samples-dev/bastionHostsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/bastionHostsGetSample.ts @@ -29,7 +29,7 @@ async function getBastionHost() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}", subscriptionId, resourceGroupName, - bastionHostName + bastionHostName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/bastionHostsListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/bastionHostsListByResourceGroupSample.ts index 76df41488b45..2dc8946e1bea 100644 --- a/sdk/network/arm-network-rest/samples-dev/bastionHostsListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/bastionHostsListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function listAllBastionHostsForAGivenResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/bastionHostsListSample.ts b/sdk/network/arm-network-rest/samples-dev/bastionHostsListSample.ts index 77906c1365b3..7370640b7206 100644 --- a/sdk/network/arm-network-rest/samples-dev/bastionHostsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/bastionHostsListSample.ts @@ -28,7 +28,7 @@ async function listAllBastionHostsForAGivenSubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/bastionHosts", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/bastionHostsUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/bastionHostsUpdateTagsSample.ts index d049df3a433a..1424e7882e1e 100644 --- a/sdk/network/arm-network-rest/samples-dev/bastionHostsUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/bastionHostsUpdateTagsSample.ts @@ -33,7 +33,7 @@ async function patchBastionHost() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}", subscriptionId, resourceGroupName, - bastionHostName + bastionHostName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/bgpServiceCommunitiesListSample.ts b/sdk/network/arm-network-rest/samples-dev/bgpServiceCommunitiesListSample.ts index ed7ce920ddc5..8b4fb30c1969 100644 --- a/sdk/network/arm-network-rest/samples-dev/bgpServiceCommunitiesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/bgpServiceCommunitiesListSample.ts @@ -28,7 +28,7 @@ async function serviceCommunityList() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/bgpServiceCommunities", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/checkDnsNameAvailabilitySample.ts b/sdk/network/arm-network-rest/samples-dev/checkDnsNameAvailabilitySample.ts index 568f5451467d..d43e934fa37c 100644 --- a/sdk/network/arm-network-rest/samples-dev/checkDnsNameAvailabilitySample.ts +++ b/sdk/network/arm-network-rest/samples-dev/checkDnsNameAvailabilitySample.ts @@ -29,7 +29,7 @@ async function checkDnsNameAvailability() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability", subscriptionId, - location + location, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/configurationPolicyGroupsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/configurationPolicyGroupsCreateOrUpdateSample.ts index 5355f0e8051c..64dcd69cb770 100644 --- a/sdk/network/arm-network-rest/samples-dev/configurationPolicyGroupsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/configurationPolicyGroupsCreateOrUpdateSample.ts @@ -52,7 +52,7 @@ async function configurationPolicyGroupPut() { subscriptionId, resourceGroupName, vpnServerConfigurationName, - configurationPolicyGroupName + configurationPolicyGroupName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/configurationPolicyGroupsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/configurationPolicyGroupsDeleteSample.ts index db32b26f9ccb..fb6334dde6b0 100644 --- a/sdk/network/arm-network-rest/samples-dev/configurationPolicyGroupsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/configurationPolicyGroupsDeleteSample.ts @@ -34,7 +34,7 @@ async function configurationPolicyGroupDelete() { subscriptionId, resourceGroupName, vpnServerConfigurationName, - configurationPolicyGroupName + configurationPolicyGroupName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/configurationPolicyGroupsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/configurationPolicyGroupsGetSample.ts index 20cae9a9f7ed..a65cd10893fd 100644 --- a/sdk/network/arm-network-rest/samples-dev/configurationPolicyGroupsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/configurationPolicyGroupsGetSample.ts @@ -33,7 +33,7 @@ async function configurationPolicyGroupGet() { subscriptionId, resourceGroupName, vpnServerConfigurationName, - configurationPolicyGroupName + configurationPolicyGroupName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/configurationPolicyGroupsListByVpnServerConfigurationSample.ts b/sdk/network/arm-network-rest/samples-dev/configurationPolicyGroupsListByVpnServerConfigurationSample.ts index 87f541b82d51..48a34ad38f0e 100644 --- a/sdk/network/arm-network-rest/samples-dev/configurationPolicyGroupsListByVpnServerConfigurationSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/configurationPolicyGroupsListByVpnServerConfigurationSample.ts @@ -32,7 +32,7 @@ async function configurationPolicyGroupListByVpnServerConfiguration() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/configurationPolicyGroups", subscriptionId, resourceGroupName, - vpnServerConfigurationName + vpnServerConfigurationName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/connectionMonitorsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/connectionMonitorsCreateOrUpdateSample.ts index 28e6594ed216..38835ddd792d 100644 --- a/sdk/network/arm-network-rest/samples-dev/connectionMonitorsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/connectionMonitorsCreateOrUpdateSample.ts @@ -63,7 +63,7 @@ async function createConnectionMonitorV1() { subscriptionId, resourceGroupName, networkWatcherName, - connectionMonitorName + connectionMonitorName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -134,7 +134,7 @@ async function createConnectionMonitorV2() { subscriptionId, resourceGroupName, networkWatcherName, - connectionMonitorName + connectionMonitorName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/connectionMonitorsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/connectionMonitorsDeleteSample.ts index d558987ab879..5f15695b9b3d 100644 --- a/sdk/network/arm-network-rest/samples-dev/connectionMonitorsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/connectionMonitorsDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteConnectionMonitor() { subscriptionId, resourceGroupName, networkWatcherName, - connectionMonitorName + connectionMonitorName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/connectionMonitorsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/connectionMonitorsGetSample.ts index afd50304d7f6..ff1e9caca8d0 100644 --- a/sdk/network/arm-network-rest/samples-dev/connectionMonitorsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/connectionMonitorsGetSample.ts @@ -33,7 +33,7 @@ async function getConnectionMonitor() { subscriptionId, resourceGroupName, networkWatcherName, - connectionMonitorName + connectionMonitorName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/connectionMonitorsListSample.ts b/sdk/network/arm-network-rest/samples-dev/connectionMonitorsListSample.ts index f3d3f1165bff..adfd8c3a2b50 100644 --- a/sdk/network/arm-network-rest/samples-dev/connectionMonitorsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/connectionMonitorsListSample.ts @@ -32,7 +32,7 @@ async function listConnectionMonitors() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/connectionMonitorsQuerySample.ts b/sdk/network/arm-network-rest/samples-dev/connectionMonitorsQuerySample.ts index c04b42650a94..5f51a50cf7cd 100644 --- a/sdk/network/arm-network-rest/samples-dev/connectionMonitorsQuerySample.ts +++ b/sdk/network/arm-network-rest/samples-dev/connectionMonitorsQuerySample.ts @@ -34,7 +34,7 @@ async function queryConnectionMonitor() { subscriptionId, resourceGroupName, networkWatcherName, - connectionMonitorName + connectionMonitorName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/connectionMonitorsStartSample.ts b/sdk/network/arm-network-rest/samples-dev/connectionMonitorsStartSample.ts index ae7eab83a12c..e1c8017cc903 100644 --- a/sdk/network/arm-network-rest/samples-dev/connectionMonitorsStartSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/connectionMonitorsStartSample.ts @@ -34,7 +34,7 @@ async function startConnectionMonitor() { subscriptionId, resourceGroupName, networkWatcherName, - connectionMonitorName + connectionMonitorName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/connectionMonitorsStopSample.ts b/sdk/network/arm-network-rest/samples-dev/connectionMonitorsStopSample.ts index 34773b010bbc..e1525841e163 100644 --- a/sdk/network/arm-network-rest/samples-dev/connectionMonitorsStopSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/connectionMonitorsStopSample.ts @@ -34,7 +34,7 @@ async function stopConnectionMonitor() { subscriptionId, resourceGroupName, networkWatcherName, - connectionMonitorName + connectionMonitorName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/connectionMonitorsUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/connectionMonitorsUpdateTagsSample.ts index dd37921f5cbb..82be7062be77 100644 --- a/sdk/network/arm-network-rest/samples-dev/connectionMonitorsUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/connectionMonitorsUpdateTagsSample.ts @@ -34,7 +34,7 @@ async function updateConnectionMonitorTags() { subscriptionId, resourceGroupName, networkWatcherName, - connectionMonitorName + connectionMonitorName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/connectivityConfigurationsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/connectivityConfigurationsCreateOrUpdateSample.ts index c016e5697b4e..8805138b00c1 100644 --- a/sdk/network/arm-network-rest/samples-dev/connectivityConfigurationsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/connectivityConfigurationsCreateOrUpdateSample.ts @@ -57,7 +57,7 @@ async function connectivityConfigurationsPut() { subscriptionId, resourceGroupName, networkManagerName, - configurationName + configurationName, ) .put(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/connectivityConfigurationsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/connectivityConfigurationsDeleteSample.ts index e301aaf2ec5c..295971bee1f4 100644 --- a/sdk/network/arm-network-rest/samples-dev/connectivityConfigurationsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/connectivityConfigurationsDeleteSample.ts @@ -34,7 +34,7 @@ async function connectivityConfigurationsDelete() { subscriptionId, resourceGroupName, networkManagerName, - configurationName + configurationName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/connectivityConfigurationsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/connectivityConfigurationsGetSample.ts index 0f9672b49b7b..fe9d2478555f 100644 --- a/sdk/network/arm-network-rest/samples-dev/connectivityConfigurationsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/connectivityConfigurationsGetSample.ts @@ -33,7 +33,7 @@ async function connectivityConfigurationsGet() { subscriptionId, resourceGroupName, networkManagerName, - configurationName + configurationName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/connectivityConfigurationsListSample.ts b/sdk/network/arm-network-rest/samples-dev/connectivityConfigurationsListSample.ts index 3442c4f1a0e6..7e3cbaa901c1 100644 --- a/sdk/network/arm-network-rest/samples-dev/connectivityConfigurationsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/connectivityConfigurationsListSample.ts @@ -32,7 +32,7 @@ async function connectivityConfigurationsList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/connectivityConfigurations", subscriptionId, resourceGroupName, - networkManagerName + networkManagerName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/customIPPrefixesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/customIPPrefixesCreateOrUpdateSample.ts index c835464b2872..25259fa444bb 100644 --- a/sdk/network/arm-network-rest/samples-dev/customIPPrefixesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/customIPPrefixesCreateOrUpdateSample.ts @@ -33,7 +33,7 @@ async function createCustomIPPrefixAllocationMethod() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes/{customIpPrefixName}", subscriptionId, resourceGroupName, - customIpPrefixName + customIpPrefixName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/customIPPrefixesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/customIPPrefixesDeleteSample.ts index ea2a91354bf5..2face47019cb 100644 --- a/sdk/network/arm-network-rest/samples-dev/customIPPrefixesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/customIPPrefixesDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteCustomIPPrefix() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes/{customIpPrefixName}", subscriptionId, resourceGroupName, - customIpPrefixName + customIpPrefixName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/customIPPrefixesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/customIPPrefixesGetSample.ts index edbfbaae06b2..b9a806f5af9c 100644 --- a/sdk/network/arm-network-rest/samples-dev/customIPPrefixesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/customIPPrefixesGetSample.ts @@ -31,7 +31,7 @@ async function getCustomIPPrefix() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes/{customIpPrefixName}", subscriptionId, resourceGroupName, - customIpPrefixName + customIpPrefixName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/customIPPrefixesListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/customIPPrefixesListAllSample.ts index aa62e5d7deb2..969d4fa2f3e0 100644 --- a/sdk/network/arm-network-rest/samples-dev/customIPPrefixesListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/customIPPrefixesListAllSample.ts @@ -28,7 +28,7 @@ async function listAllCustomIPPrefixes() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/customIpPrefixes", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/customIPPrefixesListSample.ts b/sdk/network/arm-network-rest/samples-dev/customIPPrefixesListSample.ts index 575be6490b8d..24a74b263e0c 100644 --- a/sdk/network/arm-network-rest/samples-dev/customIPPrefixesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/customIPPrefixesListSample.ts @@ -30,7 +30,7 @@ async function listResourceGroupCustomIPPrefixes() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/customIPPrefixesUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/customIPPrefixesUpdateTagsSample.ts index 60e28868b62d..2ab50bf68d5c 100644 --- a/sdk/network/arm-network-rest/samples-dev/customIPPrefixesUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/customIPPrefixesUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updatePublicIPAddressTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes/{customIpPrefixName}", subscriptionId, resourceGroupName, - customIpPrefixName + customIpPrefixName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/ddosCustomPoliciesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/ddosCustomPoliciesCreateOrUpdateSample.ts index fda871b4fa36..2beebef946be 100644 --- a/sdk/network/arm-network-rest/samples-dev/ddosCustomPoliciesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ddosCustomPoliciesCreateOrUpdateSample.ts @@ -33,7 +33,7 @@ async function createDDoSCustomPolicy() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", subscriptionId, resourceGroupName, - ddosCustomPolicyName + ddosCustomPolicyName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/ddosCustomPoliciesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/ddosCustomPoliciesDeleteSample.ts index 410aacafe817..93e36fc240d1 100644 --- a/sdk/network/arm-network-rest/samples-dev/ddosCustomPoliciesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ddosCustomPoliciesDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteDDoSCustomPolicy() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", subscriptionId, resourceGroupName, - ddosCustomPolicyName + ddosCustomPolicyName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/ddosCustomPoliciesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/ddosCustomPoliciesGetSample.ts index 669ad027b851..eccbc041529e 100644 --- a/sdk/network/arm-network-rest/samples-dev/ddosCustomPoliciesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ddosCustomPoliciesGetSample.ts @@ -31,7 +31,7 @@ async function getDDoSCustomPolicy() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", subscriptionId, resourceGroupName, - ddosCustomPolicyName + ddosCustomPolicyName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/ddosCustomPoliciesUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/ddosCustomPoliciesUpdateTagsSample.ts index c96a1d5b6b5f..35eefed4578e 100644 --- a/sdk/network/arm-network-rest/samples-dev/ddosCustomPoliciesUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ddosCustomPoliciesUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function dDoSCustomPolicyUpdateTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", subscriptionId, resourceGroupName, - ddosCustomPolicyName + ddosCustomPolicyName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansCreateOrUpdateSample.ts index 14d0018e73a8..9303181e7bb0 100644 --- a/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansCreateOrUpdateSample.ts @@ -33,7 +33,7 @@ async function createDDoSProtectionPlan() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}", subscriptionId, resourceGroupName, - ddosProtectionPlanName + ddosProtectionPlanName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansDeleteSample.ts index 1abf235bd951..c41b89c04995 100644 --- a/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteDDoSProtectionPlan() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}", subscriptionId, resourceGroupName, - ddosProtectionPlanName + ddosProtectionPlanName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansGetSample.ts b/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansGetSample.ts index 7972c9a8ef50..5464afd0022a 100644 --- a/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansGetSample.ts @@ -31,7 +31,7 @@ async function getDDoSProtectionPlan() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}", subscriptionId, resourceGroupName, - ddosProtectionPlanName + ddosProtectionPlanName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansListByResourceGroupSample.ts index ff1b5d738698..eac6171ee9fd 100644 --- a/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function listDDoSProtectionPlansInResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansListSample.ts b/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansListSample.ts index 2dc5490c0f6e..679a25853dab 100644 --- a/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansListSample.ts @@ -28,7 +28,7 @@ async function listAllDDoSProtectionPlans() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansUpdateTagsSample.ts index c24cc29ce044..94516053e25b 100644 --- a/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ddosProtectionPlansUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function dDoSProtectionPlanUpdateTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}", subscriptionId, resourceGroupName, - ddosProtectionPlanName + ddosProtectionPlanName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/defaultSecurityRulesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/defaultSecurityRulesGetSample.ts index c3aafb46a041..0e84bb11b650 100644 --- a/sdk/network/arm-network-rest/samples-dev/defaultSecurityRulesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/defaultSecurityRulesGetSample.ts @@ -33,7 +33,7 @@ async function defaultSecurityRuleGet() { subscriptionId, resourceGroupName, networkSecurityGroupName, - defaultSecurityRuleName + defaultSecurityRuleName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/defaultSecurityRulesListSample.ts b/sdk/network/arm-network-rest/samples-dev/defaultSecurityRulesListSample.ts index 40323770d105..5369af294216 100644 --- a/sdk/network/arm-network-rest/samples-dev/defaultSecurityRulesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/defaultSecurityRulesListSample.ts @@ -32,7 +32,7 @@ async function defaultSecurityRuleList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules", subscriptionId, resourceGroupName, - networkSecurityGroupName + networkSecurityGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/deleteBastionShareableLinkSample.ts b/sdk/network/arm-network-rest/samples-dev/deleteBastionShareableLinkSample.ts index 4d3c3071fc7e..3f93a3549bdc 100644 --- a/sdk/network/arm-network-rest/samples-dev/deleteBastionShareableLinkSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/deleteBastionShareableLinkSample.ts @@ -46,7 +46,7 @@ async function deleteBastionShareableLinksForTheRequestVMS() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinks", subscriptionId, resourceGroupName, - bastionHostName + bastionHostName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/disconnectActiveSessionsSample.ts b/sdk/network/arm-network-rest/samples-dev/disconnectActiveSessionsSample.ts index 774da4345c45..1c845c9c6406 100644 --- a/sdk/network/arm-network-rest/samples-dev/disconnectActiveSessionsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/disconnectActiveSessionsSample.ts @@ -33,7 +33,7 @@ async function deletesTheSpecifiedActiveSession() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/disconnectActiveSessions", subscriptionId, resourceGroupName, - bastionHostName + bastionHostName, ) .post(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/dscpConfigurationCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/dscpConfigurationCreateOrUpdateSample.ts index 4fd98870813f..0f7c7fcc1f54 100644 --- a/sdk/network/arm-network-rest/samples-dev/dscpConfigurationCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/dscpConfigurationCreateOrUpdateSample.ts @@ -58,7 +58,7 @@ async function createDscpConfiguration() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations/{dscpConfigurationName}", subscriptionId, resourceGroupName, - dscpConfigurationName + dscpConfigurationName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/dscpConfigurationDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/dscpConfigurationDeleteSample.ts index 8aecc25d65c6..1136d6497a0d 100644 --- a/sdk/network/arm-network-rest/samples-dev/dscpConfigurationDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/dscpConfigurationDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteDscpConfiguration() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations/{dscpConfigurationName}", subscriptionId, resourceGroupName, - dscpConfigurationName + dscpConfigurationName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/dscpConfigurationGetSample.ts b/sdk/network/arm-network-rest/samples-dev/dscpConfigurationGetSample.ts index f37db0290e4f..03d74a2042bd 100644 --- a/sdk/network/arm-network-rest/samples-dev/dscpConfigurationGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/dscpConfigurationGetSample.ts @@ -31,7 +31,7 @@ async function getDscpConfiguration() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations/{dscpConfigurationName}", subscriptionId, resourceGroupName, - dscpConfigurationName + dscpConfigurationName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/dscpConfigurationListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/dscpConfigurationListAllSample.ts index 27c5b411b7fa..e66979aa15b9 100644 --- a/sdk/network/arm-network-rest/samples-dev/dscpConfigurationListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/dscpConfigurationListAllSample.ts @@ -28,7 +28,7 @@ async function listAllNetworkInterfaces() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dscpConfigurations", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/dscpConfigurationListSample.ts b/sdk/network/arm-network-rest/samples-dev/dscpConfigurationListSample.ts index f03d84758d06..f013cc01f2f5 100644 --- a/sdk/network/arm-network-rest/samples-dev/dscpConfigurationListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/dscpConfigurationListSample.ts @@ -30,7 +30,7 @@ async function getDscpConfiguration() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitAuthorizationsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitAuthorizationsCreateOrUpdateSample.ts index c3246f1d90aa..a97fc55b3f8a 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitAuthorizationsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitAuthorizationsCreateOrUpdateSample.ts @@ -35,7 +35,7 @@ async function createExpressRouteCircuitAuthorization() { subscriptionId, resourceGroupName, circuitName, - authorizationName + authorizationName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitAuthorizationsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitAuthorizationsDeleteSample.ts index 8661717f7be1..bb68274b0d0c 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitAuthorizationsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitAuthorizationsDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteExpressRouteCircuitAuthorization() { subscriptionId, resourceGroupName, circuitName, - authorizationName + authorizationName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitAuthorizationsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitAuthorizationsGetSample.ts index 601eaec12f85..e19977d6bf90 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitAuthorizationsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitAuthorizationsGetSample.ts @@ -33,7 +33,7 @@ async function getExpressRouteCircuitAuthorization() { subscriptionId, resourceGroupName, circuitName, - authorizationName + authorizationName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitAuthorizationsListSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitAuthorizationsListSample.ts index edeca9524694..c0984e0bb8bc 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitAuthorizationsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitAuthorizationsListSample.ts @@ -32,7 +32,7 @@ async function listExpressRouteCircuitAuthorization() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations", subscriptionId, resourceGroupName, - circuitName + circuitName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitConnectionsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitConnectionsCreateOrUpdateSample.ts index 2818ec7b003c..d7976e3266c0 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitConnectionsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitConnectionsCreateOrUpdateSample.ts @@ -49,7 +49,7 @@ async function expressRouteCircuitConnectionCreate() { resourceGroupName, circuitName, peeringName, - connectionName + connectionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitConnectionsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitConnectionsDeleteSample.ts index b8067d53e49e..ac7e7bd0186d 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitConnectionsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitConnectionsDeleteSample.ts @@ -36,7 +36,7 @@ async function deleteExpressRouteCircuit() { resourceGroupName, circuitName, peeringName, - connectionName + connectionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitConnectionsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitConnectionsGetSample.ts index b0ef6340b110..98dacbf8a9b1 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitConnectionsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitConnectionsGetSample.ts @@ -35,7 +35,7 @@ async function expressRouteCircuitConnectionGet() { resourceGroupName, circuitName, peeringName, - connectionName + connectionName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitConnectionsListSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitConnectionsListSample.ts index 4c71a4407846..970dd8c3d695 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitConnectionsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitConnectionsListSample.ts @@ -34,7 +34,7 @@ async function listExpressRouteCircuitConnection() { subscriptionId, resourceGroupName, circuitName, - peeringName + peeringName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitPeeringsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitPeeringsCreateOrUpdateSample.ts index dc5e246fbbc6..93fcc08bf50c 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitPeeringsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitPeeringsCreateOrUpdateSample.ts @@ -42,7 +42,7 @@ async function createExpressRouteCircuitPeerings() { subscriptionId, resourceGroupName, circuitName, - peeringName + peeringName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitPeeringsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitPeeringsDeleteSample.ts index c49555f8b65a..e793f4fec25c 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitPeeringsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitPeeringsDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteExpressRouteCircuitPeerings() { subscriptionId, resourceGroupName, circuitName, - peeringName + peeringName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitPeeringsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitPeeringsGetSample.ts index 38ba1083d305..f6319f1ced54 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitPeeringsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitPeeringsGetSample.ts @@ -33,7 +33,7 @@ async function getExpressRouteCircuitPeering() { subscriptionId, resourceGroupName, circuitName, - peeringName + peeringName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitPeeringsListSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitPeeringsListSample.ts index d17c03f9b356..6b5394345f31 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitPeeringsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitPeeringsListSample.ts @@ -32,7 +32,7 @@ async function listExpressRouteCircuitPeerings() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings", subscriptionId, resourceGroupName, - circuitName + circuitName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsCreateOrUpdateSample.ts index b17721537388..a271e37b4e1b 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsCreateOrUpdateSample.ts @@ -50,7 +50,7 @@ async function createExpressRouteCircuit() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}", subscriptionId, resourceGroupName, - circuitName + circuitName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -94,7 +94,7 @@ async function createExpressRouteCircuitOnExpressRoutePort() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}", subscriptionId, resourceGroupName, - circuitName + circuitName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsDeleteSample.ts index 8ab658ea8d94..97ab4bfe17e3 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteExpressRouteCircuit() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}", subscriptionId, resourceGroupName, - circuitName + circuitName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsGetPeeringStatsSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsGetPeeringStatsSample.ts index 1e215c96553f..fbccac806774 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsGetPeeringStatsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsGetPeeringStatsSample.ts @@ -33,7 +33,7 @@ async function getExpressRouteCircuitPeeringTrafficStats() { subscriptionId, resourceGroupName, circuitName, - peeringName + peeringName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsGetSample.ts index 7061315f9c86..2c301576271f 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsGetSample.ts @@ -31,7 +31,7 @@ async function getExpressRouteCircuit() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}", subscriptionId, resourceGroupName, - circuitName + circuitName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsGetStatsSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsGetStatsSample.ts index 498e6fda8d3f..5933f64e29e0 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsGetStatsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsGetStatsSample.ts @@ -31,7 +31,7 @@ async function getExpressRouteCircuitTrafficStats() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/stats", subscriptionId, resourceGroupName, - circuitName + circuitName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListAllSample.ts index 6870f699d515..138a485b9aa4 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListAllSample.ts @@ -28,7 +28,7 @@ async function listExpressRouteCircuitsInASubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCircuits", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListArpTableSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListArpTableSample.ts index 4430ede4e204..490e37a64d4e 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListArpTableSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListArpTableSample.ts @@ -36,7 +36,7 @@ async function listArpTable() { resourceGroupName, circuitName, peeringName, - devicePath + devicePath, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListRoutesTableSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListRoutesTableSample.ts index 78900cd00f2b..b3c07e693b66 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListRoutesTableSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListRoutesTableSample.ts @@ -36,7 +36,7 @@ async function listRouteTables() { resourceGroupName, circuitName, peeringName, - devicePath + devicePath, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListRoutesTableSummarySample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListRoutesTableSummarySample.ts index a0596641fa62..92639d0faf87 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListRoutesTableSummarySample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListRoutesTableSummarySample.ts @@ -36,7 +36,7 @@ async function listRouteTableSummary() { resourceGroupName, circuitName, peeringName, - devicePath + devicePath, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListSample.ts index 07c879f1a5b7..4adc44909165 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsListSample.ts @@ -30,7 +30,7 @@ async function listExpressRouteCircuitsInAResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsUpdateTagsSample.ts index 6bcbc5113eec..c22518e76b03 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCircuitsUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateExpressRouteCircuitTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}", subscriptionId, resourceGroupName, - circuitName + circuitName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteConnectionsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteConnectionsCreateOrUpdateSample.ts index 861f4ce81559..99829f6632b0 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteConnectionsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteConnectionsCreateOrUpdateSample.ts @@ -70,7 +70,7 @@ async function expressRouteConnectionCreate() { subscriptionId, resourceGroupName, expressRouteGatewayName, - connectionName + connectionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteConnectionsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteConnectionsDeleteSample.ts index 6c6a7d995f4c..1d1a7d1d7bf9 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteConnectionsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteConnectionsDeleteSample.ts @@ -34,7 +34,7 @@ async function expressRouteConnectionDelete() { subscriptionId, resourceGroupName, expressRouteGatewayName, - connectionName + connectionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteConnectionsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteConnectionsGetSample.ts index 49144826ada0..113760bd3a75 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteConnectionsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteConnectionsGetSample.ts @@ -33,7 +33,7 @@ async function expressRouteConnectionGet() { subscriptionId, resourceGroupName, expressRouteGatewayName, - connectionName + connectionName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteConnectionsListSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteConnectionsListSample.ts index 1d10fc4e02bc..dbd5adc85a2a 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteConnectionsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteConnectionsListSample.ts @@ -31,7 +31,7 @@ async function expressRouteConnectionList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections", subscriptionId, resourceGroupName, - expressRouteGatewayName + expressRouteGatewayName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionPeeringsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionPeeringsCreateOrUpdateSample.ts index 300f7da44d0c..95e16306bd36 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionPeeringsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionPeeringsCreateOrUpdateSample.ts @@ -46,7 +46,7 @@ async function expressRouteCrossConnectionBgpPeeringCreate() { subscriptionId, resourceGroupName, crossConnectionName, - peeringName + peeringName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionPeeringsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionPeeringsDeleteSample.ts index 40fcf2a3af16..27a77c91fa4e 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionPeeringsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionPeeringsDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteExpressRouteCrossConnectionBgpPeering() { subscriptionId, resourceGroupName, crossConnectionName, - peeringName + peeringName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionPeeringsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionPeeringsGetSample.ts index c1713c2dd6ca..4d903c26c94d 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionPeeringsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionPeeringsGetSample.ts @@ -33,7 +33,7 @@ async function getExpressRouteCrossConnectionBgpPeering() { subscriptionId, resourceGroupName, crossConnectionName, - peeringName + peeringName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionPeeringsListSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionPeeringsListSample.ts index b4e91d20984e..6b73ea299ff5 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionPeeringsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionPeeringsListSample.ts @@ -32,7 +32,7 @@ async function expressRouteCrossConnectionBgpPeeringList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings", subscriptionId, resourceGroupName, - crossConnectionName + crossConnectionName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsCreateOrUpdateSample.ts index 51f1d005633b..862797c45f32 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsCreateOrUpdateSample.ts @@ -35,7 +35,7 @@ async function updateExpressRouteCrossConnection() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}", subscriptionId, resourceGroupName, - crossConnectionName + crossConnectionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsGetSample.ts index 13abe7935d1f..bea56b0639f0 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsGetSample.ts @@ -31,7 +31,7 @@ async function getExpressRouteCrossConnection() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}", subscriptionId, resourceGroupName, - crossConnectionName + crossConnectionName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListArpTableSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListArpTableSample.ts index 634f096c70ef..4d503f50f9f7 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListArpTableSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListArpTableSample.ts @@ -36,7 +36,7 @@ async function getExpressRouteCrossConnectionsArpTable() { resourceGroupName, crossConnectionName, peeringName, - devicePath + devicePath, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListByResourceGroupSample.ts index 1575655774e7..c663d1c4fb5e 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function expressRouteCrossConnectionListByResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListRoutesTableSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListRoutesTableSample.ts index fa11f87e6ece..9c04caa5d80f 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListRoutesTableSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListRoutesTableSample.ts @@ -36,7 +36,7 @@ async function getExpressRouteCrossConnectionsRouteTable() { resourceGroupName, crossConnectionName, peeringName, - devicePath + devicePath, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListRoutesTableSummarySample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListRoutesTableSummarySample.ts index 1008b25f8233..a88d21465af3 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListRoutesTableSummarySample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListRoutesTableSummarySample.ts @@ -36,7 +36,7 @@ async function getExpressRouteCrossConnectionsRouteTableSummary() { resourceGroupName, crossConnectionName, peeringName, - devicePath + devicePath, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListSample.ts index ed18fd348d22..8e374bfc6cc5 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsListSample.ts @@ -28,7 +28,7 @@ async function expressRouteCrossConnectionList() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCrossConnections", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsUpdateTagsSample.ts index 8f6613764ffe..903d99f1fc2a 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteCrossConnectionsUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateExpressRouteCrossConnectionTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}", subscriptionId, resourceGroupName, - crossConnectionName + crossConnectionName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysCreateOrUpdateSample.ts index 13f0891c9a3a..12b2145d92bb 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysCreateOrUpdateSample.ts @@ -41,7 +41,7 @@ async function expressRouteGatewayCreate() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}", subscriptionId, resourceGroupName, - expressRouteGatewayName + expressRouteGatewayName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysDeleteSample.ts index 8a64a2f550c8..7a532d789f1e 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysDeleteSample.ts @@ -32,7 +32,7 @@ async function expressRouteGatewayDelete() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}", subscriptionId, resourceGroupName, - expressRouteGatewayName + expressRouteGatewayName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysGetSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysGetSample.ts index 69a21dfa9548..900720ad3661 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysGetSample.ts @@ -31,7 +31,7 @@ async function expressRouteGatewayGet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}", subscriptionId, resourceGroupName, - expressRouteGatewayName + expressRouteGatewayName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysListByResourceGroupSample.ts index cf05d05b4f34..c6058983c13c 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function expressRouteGatewayListByResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysListBySubscriptionSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysListBySubscriptionSample.ts index 9cbf7c2ef94b..5c8e7539f082 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysListBySubscriptionSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysListBySubscriptionSample.ts @@ -27,7 +27,7 @@ async function expressRouteGatewayListBySubscription() { const result = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteGateways", - subscriptionId + subscriptionId, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysUpdateTagsSample.ts index 608ef8427295..2fd1f744def0 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteGatewaysUpdateTagsSample.ts @@ -33,7 +33,7 @@ async function expressRouteGatewayUpdate() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}", subscriptionId, resourceGroupName, - expressRouteGatewayName + expressRouteGatewayName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteLinksGetSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteLinksGetSample.ts index 4ade21203206..d9b7f1491e15 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteLinksGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteLinksGetSample.ts @@ -33,7 +33,7 @@ async function expressRouteLinkGet() { subscriptionId, resourceGroupName, expressRoutePortName, - linkName + linkName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteLinksListSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteLinksListSample.ts index d2dd556549f2..bee52ad49701 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteLinksListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteLinksListSample.ts @@ -32,7 +32,7 @@ async function expressRouteLinkGet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}/links", subscriptionId, resourceGroupName, - expressRoutePortName + expressRoutePortName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRoutePortAuthorizationsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRoutePortAuthorizationsCreateOrUpdateSample.ts index 9d36033b8566..523e69bc915d 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRoutePortAuthorizationsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRoutePortAuthorizationsCreateOrUpdateSample.ts @@ -35,7 +35,7 @@ async function createExpressRoutePortAuthorization() { subscriptionId, resourceGroupName, expressRoutePortName, - authorizationName + authorizationName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRoutePortAuthorizationsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRoutePortAuthorizationsDeleteSample.ts index 2355b310a4be..c0f99840873c 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRoutePortAuthorizationsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRoutePortAuthorizationsDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteExpressRoutePortAuthorization() { subscriptionId, resourceGroupName, expressRoutePortName, - authorizationName + authorizationName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRoutePortAuthorizationsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRoutePortAuthorizationsGetSample.ts index d0c4798e970e..126f3896a19b 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRoutePortAuthorizationsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRoutePortAuthorizationsGetSample.ts @@ -33,7 +33,7 @@ async function getExpressRoutePortAuthorization() { subscriptionId, resourceGroupName, expressRoutePortName, - authorizationName + authorizationName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRoutePortAuthorizationsListSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRoutePortAuthorizationsListSample.ts index dbed70310927..714d2a32ab11 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRoutePortAuthorizationsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRoutePortAuthorizationsListSample.ts @@ -32,7 +32,7 @@ async function listExpressRoutePortAuthorization() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/authorizations", subscriptionId, resourceGroupName, - expressRoutePortName + expressRoutePortName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsCreateOrUpdateSample.ts index 7914db84c3ce..e26611b2d6b4 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsCreateOrUpdateSample.ts @@ -41,7 +41,7 @@ async function expressRoutePortCreate() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}", subscriptionId, resourceGroupName, - expressRoutePortName + expressRoutePortName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -80,7 +80,7 @@ async function expressRoutePortUpdateLink() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}", subscriptionId, resourceGroupName, - expressRoutePortName + expressRoutePortName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsDeleteSample.ts index 9753c05c8df8..15513999ef00 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsDeleteSample.ts @@ -32,7 +32,7 @@ async function expressRoutePortDelete() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}", subscriptionId, resourceGroupName, - expressRoutePortName + expressRoutePortName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsGenerateLoaSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsGenerateLoaSample.ts index cc9b18e7fe48..226dd3233dce 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsGenerateLoaSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsGenerateLoaSample.ts @@ -32,7 +32,7 @@ async function generateExpressRoutePortLoa() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/generateLoa", subscriptionId, resourceGroupName, - expressRoutePortName + expressRoutePortName, ) .post(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsGetSample.ts index edd705144430..bfee1faef2b6 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsGetSample.ts @@ -31,7 +31,7 @@ async function expressRoutePortGet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}", subscriptionId, resourceGroupName, - expressRoutePortName + expressRoutePortName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsListByResourceGroupSample.ts index f209f6b18e78..272244f0b65e 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function expressRoutePortListByResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsListSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsListSample.ts index ce60de4748d5..cc6ee04d5ff3 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsListSample.ts @@ -28,7 +28,7 @@ async function expressRoutePortList() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePorts", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsLocationsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsLocationsGetSample.ts index 7b7f9778bdca..48cbda6d8545 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsLocationsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsLocationsGetSample.ts @@ -29,7 +29,7 @@ async function expressRoutePortsLocationGet() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations/{locationName}", subscriptionId, - locationName + locationName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsLocationsListSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsLocationsListSample.ts index 27ecc78d738b..2aa70dbd9987 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsLocationsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsLocationsListSample.ts @@ -28,7 +28,7 @@ async function expressRoutePortsLocationList() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsUpdateTagsSample.ts index b86228aabce2..ee6c319d90a2 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRoutePortsUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRoutePortsUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function expressRoutePortUpdateTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}", subscriptionId, resourceGroupName, - expressRoutePortName + expressRoutePortName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteProviderPortsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteProviderPortsGetSample.ts index a354371c54e4..e0b258dc213d 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteProviderPortsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteProviderPortsGetSample.ts @@ -29,7 +29,7 @@ async function expressRouteProviderPort() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteProviderPorts/{providerport}", subscriptionId, - providerport + providerport, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteProviderPortsLocationListSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteProviderPortsLocationListSample.ts index 41fc40af3d9b..fb63885906ca 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteProviderPortsLocationListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteProviderPortsLocationListSample.ts @@ -27,7 +27,7 @@ async function expressRouteProviderPortList() { const result = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteProviderPorts", - subscriptionId + subscriptionId, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/expressRouteServiceProvidersListSample.ts b/sdk/network/arm-network-rest/samples-dev/expressRouteServiceProvidersListSample.ts index 91f172edcd5d..1e4619b0e683 100644 --- a/sdk/network/arm-network-rest/samples-dev/expressRouteServiceProvidersListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/expressRouteServiceProvidersListSample.ts @@ -28,7 +28,7 @@ async function listExpressRouteProviders() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteServiceProviders", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/firewallPoliciesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/firewallPoliciesCreateOrUpdateSample.ts index 025ec15562fd..1afb23ac8a1d 100644 --- a/sdk/network/arm-network-rest/samples-dev/firewallPoliciesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/firewallPoliciesCreateOrUpdateSample.ts @@ -105,7 +105,7 @@ async function createFirewallPolicy() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}", subscriptionId, resourceGroupName, - firewallPolicyName + firewallPolicyName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/firewallPoliciesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/firewallPoliciesDeleteSample.ts index a902f1548077..a55ccfaa521e 100644 --- a/sdk/network/arm-network-rest/samples-dev/firewallPoliciesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/firewallPoliciesDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteFirewallPolicy() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}", subscriptionId, resourceGroupName, - firewallPolicyName + firewallPolicyName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/firewallPoliciesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/firewallPoliciesGetSample.ts index 51258e83036d..6805feed5eed 100644 --- a/sdk/network/arm-network-rest/samples-dev/firewallPoliciesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/firewallPoliciesGetSample.ts @@ -31,7 +31,7 @@ async function getFirewallPolicy() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}", subscriptionId, resourceGroupName, - firewallPolicyName + firewallPolicyName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/firewallPoliciesListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/firewallPoliciesListAllSample.ts index 1093c731de03..43e86012ad65 100644 --- a/sdk/network/arm-network-rest/samples-dev/firewallPoliciesListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/firewallPoliciesListAllSample.ts @@ -28,7 +28,7 @@ async function listAllFirewallPoliciesForAGivenSubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/firewallPolicies", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/firewallPoliciesListSample.ts b/sdk/network/arm-network-rest/samples-dev/firewallPoliciesListSample.ts index 819ff8be0079..43f2c194ea42 100644 --- a/sdk/network/arm-network-rest/samples-dev/firewallPoliciesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/firewallPoliciesListSample.ts @@ -30,7 +30,7 @@ async function listAllFirewallPoliciesForAGivenResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/firewallPoliciesUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/firewallPoliciesUpdateTagsSample.ts index 50ecc98089b2..5fd7bd4a53e8 100644 --- a/sdk/network/arm-network-rest/samples-dev/firewallPoliciesUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/firewallPoliciesUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateFirewallPolicyTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}", subscriptionId, resourceGroupName, - firewallPolicyName + firewallPolicyName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesFilterValuesListSample.ts b/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesFilterValuesListSample.ts index 3d9d35a25e4a..40dd99f45db9 100644 --- a/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesFilterValuesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesFilterValuesListSample.ts @@ -32,7 +32,7 @@ async function querySignatureOverrides() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/listIdpsFilterOptions", subscriptionId, resourceGroupName, - firewallPolicyName + firewallPolicyName, ) .post(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesListSample.ts b/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesListSample.ts index 16a639921268..90860d13d896 100644 --- a/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesListSample.ts @@ -38,7 +38,7 @@ async function querySignatureOverrides() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/listIdpsSignatures", subscriptionId, resourceGroupName, - firewallPolicyName + firewallPolicyName, ) .post(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesOverridesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesOverridesGetSample.ts index b26634b8eb70..4ca2d1b05b2b 100644 --- a/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesOverridesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesOverridesGetSample.ts @@ -31,7 +31,7 @@ async function getSignatureOverrides() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides/default", subscriptionId, resourceGroupName, - firewallPolicyName + firewallPolicyName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesOverridesListSample.ts b/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesOverridesListSample.ts index a291380b829c..9fd71ceacd1f 100644 --- a/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesOverridesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesOverridesListSample.ts @@ -31,7 +31,7 @@ async function getSignatureOverrides() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides", subscriptionId, resourceGroupName, - firewallPolicyName + firewallPolicyName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesOverridesPatchSample.ts b/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesOverridesPatchSample.ts index c32ec40d011c..b9b9334701a4 100644 --- a/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesOverridesPatchSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesOverridesPatchSample.ts @@ -37,7 +37,7 @@ async function patchSignatureOverrides() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides/default", subscriptionId, resourceGroupName, - firewallPolicyName + firewallPolicyName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesOverridesPutSample.ts b/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesOverridesPutSample.ts index fb09eaea8466..4ca75a5e442b 100644 --- a/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesOverridesPutSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/firewallPolicyIdpsSignaturesOverridesPutSample.ts @@ -37,7 +37,7 @@ async function putSignatureOverrides() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides/default", subscriptionId, resourceGroupName, - firewallPolicyName + firewallPolicyName, ) .put(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/firewallPolicyRuleCollectionGroupsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/firewallPolicyRuleCollectionGroupsCreateOrUpdateSample.ts index be4bc0893440..1e3d82c0d827 100644 --- a/sdk/network/arm-network-rest/samples-dev/firewallPolicyRuleCollectionGroupsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/firewallPolicyRuleCollectionGroupsCreateOrUpdateSample.ts @@ -60,7 +60,7 @@ async function createFirewallPolicyNatRuleCollectionGroup() { subscriptionId, resourceGroupName, firewallPolicyName, - ruleCollectionGroupName + ruleCollectionGroupName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -114,7 +114,7 @@ async function createFirewallPolicyRuleCollectionGroup() { subscriptionId, resourceGroupName, firewallPolicyName, - ruleCollectionGroupName + ruleCollectionGroupName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -171,7 +171,7 @@ async function createFirewallPolicyRuleCollectionGroupWithIPGroups() { subscriptionId, resourceGroupName, firewallPolicyName, - ruleCollectionGroupName + ruleCollectionGroupName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -224,7 +224,7 @@ async function createFirewallPolicyRuleCollectionGroupWithWebCategories() { subscriptionId, resourceGroupName, firewallPolicyName, - ruleCollectionGroupName + ruleCollectionGroupName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/firewallPolicyRuleCollectionGroupsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/firewallPolicyRuleCollectionGroupsDeleteSample.ts index 1d90ea6050e6..055de2c6d1f9 100644 --- a/sdk/network/arm-network-rest/samples-dev/firewallPolicyRuleCollectionGroupsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/firewallPolicyRuleCollectionGroupsDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteFirewallPolicyRuleCollectionGroup() { subscriptionId, resourceGroupName, firewallPolicyName, - ruleCollectionGroupName + ruleCollectionGroupName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/firewallPolicyRuleCollectionGroupsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/firewallPolicyRuleCollectionGroupsGetSample.ts index 0758c39abc6d..0ade86d6cb00 100644 --- a/sdk/network/arm-network-rest/samples-dev/firewallPolicyRuleCollectionGroupsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/firewallPolicyRuleCollectionGroupsGetSample.ts @@ -33,7 +33,7 @@ async function getFirewallPolicyNatRuleCollectionGroup() { subscriptionId, resourceGroupName, firewallPolicyName, - ruleCollectionGroupName + ruleCollectionGroupName, ) .get(options); console.log(result); @@ -62,7 +62,7 @@ async function getFirewallPolicyRuleCollectionGroup() { subscriptionId, resourceGroupName, firewallPolicyName, - ruleCollectionGroupName + ruleCollectionGroupName, ) .get(options); console.log(result); @@ -91,7 +91,7 @@ async function getFirewallPolicyRuleCollectionGroupWithIPGroups() { subscriptionId, resourceGroupName, firewallPolicyName, - ruleCollectionGroupName + ruleCollectionGroupName, ) .get(options); console.log(result); @@ -120,7 +120,7 @@ async function getFirewallPolicyRuleCollectionGroupWithWebCategories() { subscriptionId, resourceGroupName, firewallPolicyName, - ruleCollectionGroupName + ruleCollectionGroupName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/firewallPolicyRuleCollectionGroupsListSample.ts b/sdk/network/arm-network-rest/samples-dev/firewallPolicyRuleCollectionGroupsListSample.ts index 5ce5fe31424e..c32aa16e1bc0 100644 --- a/sdk/network/arm-network-rest/samples-dev/firewallPolicyRuleCollectionGroupsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/firewallPolicyRuleCollectionGroupsListSample.ts @@ -32,7 +32,7 @@ async function listAllFirewallPolicyRuleCollectionGroupWithWebCategories() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups", subscriptionId, resourceGroupName, - firewallPolicyName + firewallPolicyName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -64,7 +64,7 @@ async function listAllFirewallPolicyRuleCollectionGroupsForAGivenFirewallPolicy( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups", subscriptionId, resourceGroupName, - firewallPolicyName + firewallPolicyName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -96,7 +96,7 @@ async function listAllFirewallPolicyRuleCollectionGroupsWithIPGroupsForAGivenFir "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups", subscriptionId, resourceGroupName, - firewallPolicyName + firewallPolicyName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/flowLogsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/flowLogsCreateOrUpdateSample.ts index cbc63eabcec3..3888b411ee4d 100644 --- a/sdk/network/arm-network-rest/samples-dev/flowLogsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/flowLogsCreateOrUpdateSample.ts @@ -45,7 +45,7 @@ async function createOrUpdateFlowLog() { subscriptionId, resourceGroupName, networkWatcherName, - flowLogName + flowLogName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/flowLogsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/flowLogsDeleteSample.ts index cb7dfd5c741a..bd6b20871634 100644 --- a/sdk/network/arm-network-rest/samples-dev/flowLogsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/flowLogsDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteFlowLog() { subscriptionId, resourceGroupName, networkWatcherName, - flowLogName + flowLogName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/flowLogsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/flowLogsGetSample.ts index c9d1f70d17b3..e6beaee08895 100644 --- a/sdk/network/arm-network-rest/samples-dev/flowLogsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/flowLogsGetSample.ts @@ -31,7 +31,7 @@ async function getFlowLog() { subscriptionId, resourceGroupName, networkWatcherName, - flowLogName + flowLogName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/flowLogsListSample.ts b/sdk/network/arm-network-rest/samples-dev/flowLogsListSample.ts index d6e865b0c6c8..429db608694e 100644 --- a/sdk/network/arm-network-rest/samples-dev/flowLogsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/flowLogsListSample.ts @@ -32,7 +32,7 @@ async function listConnectionMonitors() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/flowLogsUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/flowLogsUpdateTagsSample.ts index b23f6ee628f0..383e544eff2e 100644 --- a/sdk/network/arm-network-rest/samples-dev/flowLogsUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/flowLogsUpdateTagsSample.ts @@ -34,7 +34,7 @@ async function updateFlowLogTags() { subscriptionId, resourceGroupName, networkWatcherName, - flowLogName + flowLogName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/generatevirtualwanvpnserverconfigurationvpnprofileSample.ts b/sdk/network/arm-network-rest/samples-dev/generatevirtualwanvpnserverconfigurationvpnprofileSample.ts index 29f877b669a8..d427477358fc 100644 --- a/sdk/network/arm-network-rest/samples-dev/generatevirtualwanvpnserverconfigurationvpnprofileSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/generatevirtualwanvpnserverconfigurationvpnprofileSample.ts @@ -37,7 +37,7 @@ async function generateVirtualWanVpnServerConfigurationVpnProfile() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/GenerateVpnProfile", subscriptionId, resourceGroupName, - virtualWANName + virtualWANName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/getActiveSessionsSample.ts b/sdk/network/arm-network-rest/samples-dev/getActiveSessionsSample.ts index 53147bf6713f..b9b47d6b2ed3 100644 --- a/sdk/network/arm-network-rest/samples-dev/getActiveSessionsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/getActiveSessionsSample.ts @@ -33,7 +33,7 @@ async function returnsAListOfCurrentlyActiveSessionsOnTheBastion() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getActiveSessions", subscriptionId, resourceGroupName, - bastionHostName + bastionHostName, ) .post(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/getBastionShareableLinkSample.ts b/sdk/network/arm-network-rest/samples-dev/getBastionShareableLinkSample.ts index 720ddb1002ec..699363c5cbfe 100644 --- a/sdk/network/arm-network-rest/samples-dev/getBastionShareableLinkSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/getBastionShareableLinkSample.ts @@ -46,7 +46,7 @@ async function returnsTheBastionShareableLinksForTheRequestVMS() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getShareableLinks", subscriptionId, resourceGroupName, - bastionHostName + bastionHostName, ) .post(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/hubRouteTablesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/hubRouteTablesCreateOrUpdateSample.ts index cad4a7adb114..260d7a0db8e0 100644 --- a/sdk/network/arm-network-rest/samples-dev/hubRouteTablesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/hubRouteTablesCreateOrUpdateSample.ts @@ -49,7 +49,7 @@ async function routeTablePut() { subscriptionId, resourceGroupName, virtualHubName, - routeTableName + routeTableName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/hubRouteTablesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/hubRouteTablesDeleteSample.ts index 2e261da2e577..d2532b8178ac 100644 --- a/sdk/network/arm-network-rest/samples-dev/hubRouteTablesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/hubRouteTablesDeleteSample.ts @@ -34,7 +34,7 @@ async function routeTableDelete() { subscriptionId, resourceGroupName, virtualHubName, - routeTableName + routeTableName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/hubRouteTablesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/hubRouteTablesGetSample.ts index 60e82b5985b9..46a4ee95bb3c 100644 --- a/sdk/network/arm-network-rest/samples-dev/hubRouteTablesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/hubRouteTablesGetSample.ts @@ -33,7 +33,7 @@ async function routeTableGet() { subscriptionId, resourceGroupName, virtualHubName, - routeTableName + routeTableName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/hubRouteTablesListSample.ts b/sdk/network/arm-network-rest/samples-dev/hubRouteTablesListSample.ts index 8b561415d2bd..edf1c3cd41d7 100644 --- a/sdk/network/arm-network-rest/samples-dev/hubRouteTablesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/hubRouteTablesListSample.ts @@ -32,7 +32,7 @@ async function routeTableList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubRouteTables", subscriptionId, resourceGroupName, - virtualHubName + virtualHubName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/hubVirtualNetworkConnectionsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/hubVirtualNetworkConnectionsCreateOrUpdateSample.ts index 86410ddbc154..2a45997c9cfe 100644 --- a/sdk/network/arm-network-rest/samples-dev/hubVirtualNetworkConnectionsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/hubVirtualNetworkConnectionsCreateOrUpdateSample.ts @@ -76,7 +76,7 @@ async function hubVirtualNetworkConnectionPut() { subscriptionId, resourceGroupName, virtualHubName, - connectionName + connectionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/hubVirtualNetworkConnectionsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/hubVirtualNetworkConnectionsDeleteSample.ts index aea8e0030c7d..79ab15363333 100644 --- a/sdk/network/arm-network-rest/samples-dev/hubVirtualNetworkConnectionsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/hubVirtualNetworkConnectionsDeleteSample.ts @@ -34,7 +34,7 @@ async function hubVirtualNetworkConnectionDelete() { subscriptionId, resourceGroupName, virtualHubName, - connectionName + connectionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/hubVirtualNetworkConnectionsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/hubVirtualNetworkConnectionsGetSample.ts index 5d0a40a2eb7d..cdfc564df6c5 100644 --- a/sdk/network/arm-network-rest/samples-dev/hubVirtualNetworkConnectionsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/hubVirtualNetworkConnectionsGetSample.ts @@ -33,7 +33,7 @@ async function hubVirtualNetworkConnectionGet() { subscriptionId, resourceGroupName, virtualHubName, - connectionName + connectionName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/hubVirtualNetworkConnectionsListSample.ts b/sdk/network/arm-network-rest/samples-dev/hubVirtualNetworkConnectionsListSample.ts index e9c66e9411b2..1a39b7af8084 100644 --- a/sdk/network/arm-network-rest/samples-dev/hubVirtualNetworkConnectionsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/hubVirtualNetworkConnectionsListSample.ts @@ -32,7 +32,7 @@ async function hubVirtualNetworkConnectionList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections", subscriptionId, resourceGroupName, - virtualHubName + virtualHubName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/inboundNatRulesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/inboundNatRulesCreateOrUpdateSample.ts index 8f70daffd7f5..4a7b3c12811a 100644 --- a/sdk/network/arm-network-rest/samples-dev/inboundNatRulesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/inboundNatRulesCreateOrUpdateSample.ts @@ -47,7 +47,7 @@ async function inboundNatRuleCreate() { subscriptionId, resourceGroupName, loadBalancerName, - inboundNatRuleName + inboundNatRuleName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/inboundNatRulesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/inboundNatRulesDeleteSample.ts index 5402b796f8f1..6e706830888c 100644 --- a/sdk/network/arm-network-rest/samples-dev/inboundNatRulesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/inboundNatRulesDeleteSample.ts @@ -34,7 +34,7 @@ async function inboundNatRuleDelete() { subscriptionId, resourceGroupName, loadBalancerName, - inboundNatRuleName + inboundNatRuleName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/inboundNatRulesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/inboundNatRulesGetSample.ts index 2644a480bbf2..ebc981aa8fc0 100644 --- a/sdk/network/arm-network-rest/samples-dev/inboundNatRulesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/inboundNatRulesGetSample.ts @@ -33,7 +33,7 @@ async function inboundNatRuleGet() { subscriptionId, resourceGroupName, loadBalancerName, - inboundNatRuleName + inboundNatRuleName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/inboundNatRulesListSample.ts b/sdk/network/arm-network-rest/samples-dev/inboundNatRulesListSample.ts index f6739cebc164..e0caf5f7e083 100644 --- a/sdk/network/arm-network-rest/samples-dev/inboundNatRulesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/inboundNatRulesListSample.ts @@ -32,7 +32,7 @@ async function inboundNatRuleList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/inboundSecurityRuleCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/inboundSecurityRuleCreateOrUpdateSample.ts index f2b13285d874..351925d4f249 100644 --- a/sdk/network/arm-network-rest/samples-dev/inboundSecurityRuleCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/inboundSecurityRuleCreateOrUpdateSample.ts @@ -45,7 +45,7 @@ async function createNetworkVirtualApplianceInboundSecurityRules() { subscriptionId, resourceGroupName, networkVirtualApplianceName, - ruleCollectionName + ruleCollectionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/ipAllocationsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/ipAllocationsCreateOrUpdateSample.ts index 510e3b536b91..69a9d5a7e1e8 100644 --- a/sdk/network/arm-network-rest/samples-dev/ipAllocationsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ipAllocationsCreateOrUpdateSample.ts @@ -43,7 +43,7 @@ async function createIPAllocation() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}", subscriptionId, resourceGroupName, - ipAllocationName + ipAllocationName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/ipAllocationsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/ipAllocationsDeleteSample.ts index 67fba8f1efb5..c5869807ea94 100644 --- a/sdk/network/arm-network-rest/samples-dev/ipAllocationsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ipAllocationsDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteIPAllocation() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}", subscriptionId, resourceGroupName, - ipAllocationName + ipAllocationName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/ipAllocationsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/ipAllocationsGetSample.ts index a81bc19ef59b..dbeac2f8fc9b 100644 --- a/sdk/network/arm-network-rest/samples-dev/ipAllocationsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ipAllocationsGetSample.ts @@ -29,7 +29,7 @@ async function getIPAllocation() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}", subscriptionId, resourceGroupName, - ipAllocationName + ipAllocationName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/ipAllocationsListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/ipAllocationsListByResourceGroupSample.ts index 2f4632d11f12..57a943b8fcaf 100644 --- a/sdk/network/arm-network-rest/samples-dev/ipAllocationsListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ipAllocationsListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function listIPAllocationsInResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/ipAllocationsListSample.ts b/sdk/network/arm-network-rest/samples-dev/ipAllocationsListSample.ts index 9a39cb4a51ab..3a3424a23218 100644 --- a/sdk/network/arm-network-rest/samples-dev/ipAllocationsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ipAllocationsListSample.ts @@ -28,7 +28,7 @@ async function listAllIPAllocations() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/IpAllocations", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/ipAllocationsUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/ipAllocationsUpdateTagsSample.ts index a5d51046bd51..ceefe6f61ca3 100644 --- a/sdk/network/arm-network-rest/samples-dev/ipAllocationsUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ipAllocationsUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateVirtualNetworkTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}", subscriptionId, resourceGroupName, - ipAllocationName + ipAllocationName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/ipGroupsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/ipGroupsCreateOrUpdateSample.ts index 8bc10fad5980..f2022d85ca02 100644 --- a/sdk/network/arm-network-rest/samples-dev/ipGroupsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ipGroupsCreateOrUpdateSample.ts @@ -39,7 +39,7 @@ async function createOrUpdateIPGroups() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}", subscriptionId, resourceGroupName, - ipGroupsName + ipGroupsName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/ipGroupsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/ipGroupsDeleteSample.ts index 1525c627c478..134e001fab8d 100644 --- a/sdk/network/arm-network-rest/samples-dev/ipGroupsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ipGroupsDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteIPGroups() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}", subscriptionId, resourceGroupName, - ipGroupsName + ipGroupsName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/ipGroupsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/ipGroupsGetSample.ts index 197aa5e81a2d..c561a4ee2bd9 100644 --- a/sdk/network/arm-network-rest/samples-dev/ipGroupsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ipGroupsGetSample.ts @@ -29,7 +29,7 @@ async function getIPGroups() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}", subscriptionId, resourceGroupName, - ipGroupsName + ipGroupsName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/ipGroupsListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/ipGroupsListByResourceGroupSample.ts index 3982e79fcc90..9289d59d03ef 100644 --- a/sdk/network/arm-network-rest/samples-dev/ipGroupsListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ipGroupsListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function listByResourceGroupIPGroups() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/ipGroupsUpdateGroupsSample.ts b/sdk/network/arm-network-rest/samples-dev/ipGroupsUpdateGroupsSample.ts index 908d619096ca..810ea07e87d0 100644 --- a/sdk/network/arm-network-rest/samples-dev/ipGroupsUpdateGroupsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/ipGroupsUpdateGroupsSample.ts @@ -32,7 +32,7 @@ async function updateIPGroups() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}", subscriptionId, resourceGroupName, - ipGroupsName + ipGroupsName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/listActiveConnectivityConfigurationsSample.ts b/sdk/network/arm-network-rest/samples-dev/listActiveConnectivityConfigurationsSample.ts index 5140a46b0374..dfd1445531e8 100644 --- a/sdk/network/arm-network-rest/samples-dev/listActiveConnectivityConfigurationsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/listActiveConnectivityConfigurationsSample.ts @@ -32,7 +32,7 @@ async function listActiveConnectivityConfigurations() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listActiveConnectivityConfigurations", subscriptionId, resourceGroupName, - networkManagerName + networkManagerName, ) .post(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/listActiveSecurityAdminRulesSample.ts b/sdk/network/arm-network-rest/samples-dev/listActiveSecurityAdminRulesSample.ts index c29cb1828564..5d760d6c6164 100644 --- a/sdk/network/arm-network-rest/samples-dev/listActiveSecurityAdminRulesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/listActiveSecurityAdminRulesSample.ts @@ -32,7 +32,7 @@ async function listActiveSecurityAdminRules() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listActiveSecurityAdminRules", subscriptionId, resourceGroupName, - networkManagerName + networkManagerName, ) .post(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/listNetworkManagerEffectiveConnectivityConfigurationsSample.ts b/sdk/network/arm-network-rest/samples-dev/listNetworkManagerEffectiveConnectivityConfigurationsSample.ts index 107360f75ef2..518a67340bcb 100644 --- a/sdk/network/arm-network-rest/samples-dev/listNetworkManagerEffectiveConnectivityConfigurationsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/listNetworkManagerEffectiveConnectivityConfigurationsSample.ts @@ -32,7 +32,7 @@ async function listEffectiveConnectivityConfiguration() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listNetworkManagerEffectiveConnectivityConfigurations", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .post(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/listNetworkManagerEffectiveSecurityAdminRulesSample.ts b/sdk/network/arm-network-rest/samples-dev/listNetworkManagerEffectiveSecurityAdminRulesSample.ts index c1d1b23c7ebd..516134d3b4e4 100644 --- a/sdk/network/arm-network-rest/samples-dev/listNetworkManagerEffectiveSecurityAdminRulesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/listNetworkManagerEffectiveSecurityAdminRulesSample.ts @@ -32,7 +32,7 @@ async function listEffectiveSecurityAdminRules() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listNetworkManagerEffectiveSecurityAdminRules", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .post(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancerBackendAddressPoolsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancerBackendAddressPoolsCreateOrUpdateSample.ts index b07b24eec277..54c253fd6fbf 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancerBackendAddressPoolsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancerBackendAddressPoolsCreateOrUpdateSample.ts @@ -58,7 +58,7 @@ async function updateLoadBalancerBackendPoolWithBackendAddressesContainingVirtua subscriptionId, resourceGroupName, loadBalancerName, - backendAddressPoolName + backendAddressPoolName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -67,5 +67,5 @@ async function updateLoadBalancerBackendPoolWithBackendAddressesContainingVirtua } updateLoadBalancerBackendPoolWithBackendAddressesContainingVirtualNetworkAndIPAddress().catch( - console.error + console.error, ); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancerBackendAddressPoolsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancerBackendAddressPoolsDeleteSample.ts index 625af8ddefcb..af3bf2f960b6 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancerBackendAddressPoolsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancerBackendAddressPoolsDeleteSample.ts @@ -34,7 +34,7 @@ async function backendAddressPoolDelete() { subscriptionId, resourceGroupName, loadBalancerName, - backendAddressPoolName + backendAddressPoolName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancerBackendAddressPoolsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancerBackendAddressPoolsGetSample.ts index e08611720a9d..c2e98cf00e5a 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancerBackendAddressPoolsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancerBackendAddressPoolsGetSample.ts @@ -33,7 +33,7 @@ async function loadBalancerWithBackendAddressPoolWithBackendAddresses() { subscriptionId, resourceGroupName, loadBalancerName, - backendAddressPoolName + backendAddressPoolName, ) .get(options); console.log(result); @@ -62,7 +62,7 @@ async function loadBalancerBackendAddressPoolGet() { subscriptionId, resourceGroupName, loadBalancerName, - backendAddressPoolName + backendAddressPoolName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancerBackendAddressPoolsListSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancerBackendAddressPoolsListSample.ts index e566e69c2f67..e86dae077f38 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancerBackendAddressPoolsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancerBackendAddressPoolsListSample.ts @@ -32,7 +32,7 @@ async function loadBalancerWithBackendAddressPoolContainingBackendAddresses() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -64,7 +64,7 @@ async function loadBalancerBackendAddressPoolList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancerFrontendIPConfigurationsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancerFrontendIPConfigurationsGetSample.ts index f2e5e9cb0598..27ec68b44dae 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancerFrontendIPConfigurationsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancerFrontendIPConfigurationsGetSample.ts @@ -33,7 +33,7 @@ async function loadBalancerFrontendIPConfigurationGet() { subscriptionId, resourceGroupName, loadBalancerName, - frontendIPConfigurationName + frontendIPConfigurationName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancerFrontendIPConfigurationsListSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancerFrontendIPConfigurationsListSample.ts index 0a0029fef67f..23c92192859c 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancerFrontendIPConfigurationsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancerFrontendIPConfigurationsListSample.ts @@ -32,7 +32,7 @@ async function loadBalancerFrontendIPConfigurationList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancerLoadBalancingRulesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancerLoadBalancingRulesGetSample.ts index 08b05da3d8e4..b4d9fab07181 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancerLoadBalancingRulesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancerLoadBalancingRulesGetSample.ts @@ -33,7 +33,7 @@ async function loadBalancerLoadBalancingRuleGet() { subscriptionId, resourceGroupName, loadBalancerName, - loadBalancingRuleName + loadBalancingRuleName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancerLoadBalancingRulesListSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancerLoadBalancingRulesListSample.ts index 07025a9bad4a..61447b71028e 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancerLoadBalancingRulesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancerLoadBalancingRulesListSample.ts @@ -32,7 +32,7 @@ async function loadBalancerLoadBalancingRuleList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancerNetworkInterfacesListSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancerNetworkInterfacesListSample.ts index c27c8ced002b..01cf7b749516 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancerNetworkInterfacesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancerNetworkInterfacesListSample.ts @@ -32,7 +32,7 @@ async function loadBalancerNetworkInterfaceListSimple() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/networkInterfaces", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -64,7 +64,7 @@ async function loadBalancerNetworkInterfaceListVmss() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/networkInterfaces", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancerOutboundRulesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancerOutboundRulesGetSample.ts index fdc32eb09bcd..77673cb4bd16 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancerOutboundRulesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancerOutboundRulesGetSample.ts @@ -33,7 +33,7 @@ async function loadBalancerOutboundRuleGet() { subscriptionId, resourceGroupName, loadBalancerName, - outboundRuleName + outboundRuleName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancerOutboundRulesListSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancerOutboundRulesListSample.ts index ff8537964990..f1bbff8fe91d 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancerOutboundRulesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancerOutboundRulesListSample.ts @@ -32,7 +32,7 @@ async function loadBalancerOutboundRuleList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancerProbesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancerProbesGetSample.ts index b8fe65758633..3186c4409377 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancerProbesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancerProbesGetSample.ts @@ -33,7 +33,7 @@ async function loadBalancerProbeGet() { subscriptionId, resourceGroupName, loadBalancerName, - probeName + probeName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancerProbesListSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancerProbesListSample.ts index 6db3a7767f8d..cb91d645def7 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancerProbesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancerProbesListSample.ts @@ -32,7 +32,7 @@ async function loadBalancerProbeList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancersCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancersCreateOrUpdateSample.ts index e2bd74124d44..6a896c8f78c6 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancersCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancersCreateOrUpdateSample.ts @@ -101,7 +101,7 @@ async function createLoadBalancer() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -200,7 +200,7 @@ async function createLoadBalancerWithFrontendIPInZone1() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -301,7 +301,7 @@ async function createLoadBalancerWithGatewayLoadBalancerConsumerConfigured() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -406,7 +406,7 @@ async function createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithOn "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -415,7 +415,7 @@ async function createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithOn } createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithOneBackendPool().catch( - console.error + console.error, ); /** * This sample demonstrates how to Creates or updates a load balancer. @@ -500,7 +500,7 @@ async function createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithTw "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -509,7 +509,7 @@ async function createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithTw } createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithTwoBackendPool().catch( - console.error + console.error, ); /** * This sample demonstrates how to Creates or updates a load balancer. @@ -599,7 +599,7 @@ async function createLoadBalancerWithGlobalTierAndOneRegionalLoadBalancerInItsBa "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -697,7 +697,7 @@ async function createLoadBalancerWithStandardSku() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -768,7 +768,7 @@ async function createLoadBalancerWithInboundNatPool() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -882,7 +882,7 @@ async function createLoadBalancerWithOutboundRules() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancersDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancersDeleteSample.ts index 537d0adda5e5..068e74e2086d 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancersDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancersDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteLoadBalancer() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancersGetSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancersGetSample.ts index aa67f425c522..1f8bc5c410d1 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancersGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancersGetSample.ts @@ -29,7 +29,7 @@ async function getLoadBalancer() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .get(options); console.log(result); @@ -56,7 +56,7 @@ async function getLoadBalancerWithInboundNatRulePortMapping() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancersListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancersListAllSample.ts index 6c23e3236408..014a74370049 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancersListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancersListAllSample.ts @@ -28,7 +28,7 @@ async function listAllLoadBalancers() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/loadBalancers", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancersListInboundNatRulePortMappingsSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancersListInboundNatRulePortMappingsSample.ts index 140cb463462a..12ac4a0d80fb 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancersListInboundNatRulePortMappingsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancersListInboundNatRulePortMappingsSample.ts @@ -35,7 +35,7 @@ async function queryInboundNatRulePortMapping() { subscriptionId, groupName, loadBalancerName, - backendPoolName + backendPoolName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancersListSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancersListSample.ts index 2c11942c68a4..08a57b94ac64 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancersListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancersListSample.ts @@ -30,7 +30,7 @@ async function listLoadBalancersInResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancersSwapPublicIPAddressesSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancersSwapPublicIPAddressesSample.ts index 09200f4baf56..db6a94f4cc27 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancersSwapPublicIPAddressesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancersSwapPublicIPAddressesSample.ts @@ -50,7 +50,7 @@ async function swapViPsBetweenTwoLoadBalancers() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/setLoadBalancerFrontendPublicIpAddresses", subscriptionId, - location + location, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/loadBalancersUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/loadBalancersUpdateTagsSample.ts index c9d1cad48930..446bd10d6660 100644 --- a/sdk/network/arm-network-rest/samples-dev/loadBalancersUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/loadBalancersUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateLoadBalancerTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", subscriptionId, resourceGroupName, - loadBalancerName + loadBalancerName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysCreateOrUpdateSample.ts index c1a0c9b4afa9..b613243d4fbb 100644 --- a/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysCreateOrUpdateSample.ts @@ -40,7 +40,7 @@ async function createLocalNetworkGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}", subscriptionId, resourceGroupName, - localNetworkGatewayName + localNetworkGatewayName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysDeleteSample.ts index 9657d32e2f73..e5292985ea50 100644 --- a/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteLocalNetworkGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}", subscriptionId, resourceGroupName, - localNetworkGatewayName + localNetworkGatewayName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysGetSample.ts b/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysGetSample.ts index 34fef81aeaaf..4089aaf85d84 100644 --- a/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysGetSample.ts @@ -31,7 +31,7 @@ async function getLocalNetworkGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}", subscriptionId, resourceGroupName, - localNetworkGatewayName + localNetworkGatewayName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysListSample.ts b/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysListSample.ts index 6d2ffe7d42c8..dbbf6b259996 100644 --- a/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysListSample.ts @@ -30,7 +30,7 @@ async function listLocalNetworkGateways() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysUpdateTagsSample.ts index 192a98837d74..cdade7882cad 100644 --- a/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/localNetworkGatewaysUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateLocalNetworkGatewayTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}", subscriptionId, resourceGroupName, - localNetworkGatewayName + localNetworkGatewayName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/managementGroupNetworkManagerConnectionsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/managementGroupNetworkManagerConnectionsCreateOrUpdateSample.ts index 0be3be1fa671..d584a4cf3400 100644 --- a/sdk/network/arm-network-rest/samples-dev/managementGroupNetworkManagerConnectionsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/managementGroupNetworkManagerConnectionsCreateOrUpdateSample.ts @@ -35,7 +35,7 @@ async function createOrUpdateManagementGroupNetworkManagerConnection() { .path( "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}", managementGroupId, - networkManagerConnectionName + networkManagerConnectionName, ) .put(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/managementGroupNetworkManagerConnectionsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/managementGroupNetworkManagerConnectionsDeleteSample.ts index 47630ced05c1..947f04861898 100644 --- a/sdk/network/arm-network-rest/samples-dev/managementGroupNetworkManagerConnectionsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/managementGroupNetworkManagerConnectionsDeleteSample.ts @@ -29,7 +29,7 @@ async function deleteManagementGroupNetworkManagerConnection() { .path( "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}", managementGroupId, - networkManagerConnectionName + networkManagerConnectionName, ) .delete(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/managementGroupNetworkManagerConnectionsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/managementGroupNetworkManagerConnectionsGetSample.ts index 179101109c26..ef4afb6a6efd 100644 --- a/sdk/network/arm-network-rest/samples-dev/managementGroupNetworkManagerConnectionsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/managementGroupNetworkManagerConnectionsGetSample.ts @@ -29,7 +29,7 @@ async function getManagementGroupNetworkManagerConnection() { .path( "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}", managementGroupId, - networkManagerConnectionName + networkManagerConnectionName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/managementGroupNetworkManagerConnectionsListSample.ts b/sdk/network/arm-network-rest/samples-dev/managementGroupNetworkManagerConnectionsListSample.ts index 1fdb76955fdd..2488a1513d97 100644 --- a/sdk/network/arm-network-rest/samples-dev/managementGroupNetworkManagerConnectionsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/managementGroupNetworkManagerConnectionsListSample.ts @@ -28,7 +28,7 @@ async function listManagementGroupNetworkManagerConnection() { const initialResponse = await client .path( "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections", - managementGroupId + managementGroupId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/natGatewaysCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/natGatewaysCreateOrUpdateSample.ts index c282eff93d42..9e5437a67798 100644 --- a/sdk/network/arm-network-rest/samples-dev/natGatewaysCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/natGatewaysCreateOrUpdateSample.ts @@ -48,7 +48,7 @@ async function createNatGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}", subscriptionId, resourceGroupName, - natGatewayName + natGatewayName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/natGatewaysDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/natGatewaysDeleteSample.ts index 5bb98d2636ac..19e7950e948f 100644 --- a/sdk/network/arm-network-rest/samples-dev/natGatewaysDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/natGatewaysDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteNatGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}", subscriptionId, resourceGroupName, - natGatewayName + natGatewayName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/natGatewaysGetSample.ts b/sdk/network/arm-network-rest/samples-dev/natGatewaysGetSample.ts index 0e2392a64446..19f0d368ff6e 100644 --- a/sdk/network/arm-network-rest/samples-dev/natGatewaysGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/natGatewaysGetSample.ts @@ -29,7 +29,7 @@ async function getNatGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}", subscriptionId, resourceGroupName, - natGatewayName + natGatewayName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/natGatewaysListSample.ts b/sdk/network/arm-network-rest/samples-dev/natGatewaysListSample.ts index 151695d4ae7d..5c478bcbcf1e 100644 --- a/sdk/network/arm-network-rest/samples-dev/natGatewaysListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/natGatewaysListSample.ts @@ -30,7 +30,7 @@ async function listNatGatewaysInResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/natGatewaysUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/natGatewaysUpdateTagsSample.ts index 44eee652a2be..a58f67284826 100644 --- a/sdk/network/arm-network-rest/samples-dev/natGatewaysUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/natGatewaysUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateNatGatewayTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}", subscriptionId, resourceGroupName, - natGatewayName + natGatewayName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/natRulesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/natRulesCreateOrUpdateSample.ts index cb6224f5268d..4f4322bbeb64 100644 --- a/sdk/network/arm-network-rest/samples-dev/natRulesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/natRulesCreateOrUpdateSample.ts @@ -44,7 +44,7 @@ async function natRulePut() { subscriptionId, resourceGroupName, gatewayName, - natRuleName + natRuleName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/natRulesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/natRulesDeleteSample.ts index 8608c2929f96..759a1e08e4cb 100644 --- a/sdk/network/arm-network-rest/samples-dev/natRulesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/natRulesDeleteSample.ts @@ -34,7 +34,7 @@ async function natRuleDelete() { subscriptionId, resourceGroupName, gatewayName, - natRuleName + natRuleName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/natRulesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/natRulesGetSample.ts index 2c1ab3b77929..7cdc99ee4423 100644 --- a/sdk/network/arm-network-rest/samples-dev/natRulesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/natRulesGetSample.ts @@ -31,7 +31,7 @@ async function natRuleGet() { subscriptionId, resourceGroupName, gatewayName, - natRuleName + natRuleName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/natRulesListByVpnGatewaySample.ts b/sdk/network/arm-network-rest/samples-dev/natRulesListByVpnGatewaySample.ts index 537c10d92272..9d986db9c2c7 100644 --- a/sdk/network/arm-network-rest/samples-dev/natRulesListByVpnGatewaySample.ts +++ b/sdk/network/arm-network-rest/samples-dev/natRulesListByVpnGatewaySample.ts @@ -32,7 +32,7 @@ async function natRuleList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/natRules", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkGroupsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/networkGroupsCreateOrUpdateSample.ts index 34e45c8954ce..bc89513a39ec 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkGroupsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkGroupsCreateOrUpdateSample.ts @@ -35,7 +35,7 @@ async function networkGroupsPut() { subscriptionId, resourceGroupName, networkManagerName, - networkGroupName + networkGroupName, ) .put(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkGroupsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/networkGroupsDeleteSample.ts index f21f866d4389..58527ecadfef 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkGroupsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkGroupsDeleteSample.ts @@ -34,7 +34,7 @@ async function networkGroupsDelete() { subscriptionId, resourceGroupName, networkManagerName, - networkGroupName + networkGroupName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkGroupsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/networkGroupsGetSample.ts index 526a9f841c57..26b58e038a0c 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkGroupsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkGroupsGetSample.ts @@ -31,7 +31,7 @@ async function networkGroupsGet() { subscriptionId, resourceGroupName, networkManagerName, - networkGroupName + networkGroupName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkGroupsListSample.ts b/sdk/network/arm-network-rest/samples-dev/networkGroupsListSample.ts index 09c1de08414b..3e936e27d9f5 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkGroupsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkGroupsListSample.ts @@ -32,7 +32,7 @@ async function networkGroupsList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups", subscriptionId, resourceGroupName, - networkManagerName + networkManagerName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfaceIPConfigurationsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfaceIPConfigurationsGetSample.ts index fc71b9b4672b..b38b80412cfb 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfaceIPConfigurationsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfaceIPConfigurationsGetSample.ts @@ -33,7 +33,7 @@ async function networkInterfaceIPConfigurationGet() { subscriptionId, resourceGroupName, networkInterfaceName, - ipConfigurationName + ipConfigurationName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfaceIPConfigurationsListSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfaceIPConfigurationsListSample.ts index e09975fe6a60..3f59104d5ffd 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfaceIPConfigurationsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfaceIPConfigurationsListSample.ts @@ -32,7 +32,7 @@ async function networkInterfaceIPConfigurationList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations", subscriptionId, resourceGroupName, - networkInterfaceName + networkInterfaceName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfaceLoadBalancersListSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfaceLoadBalancersListSample.ts index b1d5c6224d8e..bafcdca82e9d 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfaceLoadBalancersListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfaceLoadBalancersListSample.ts @@ -32,7 +32,7 @@ async function networkInterfaceLoadBalancerList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/loadBalancers", subscriptionId, resourceGroupName, - networkInterfaceName + networkInterfaceName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfaceTapConfigurationsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfaceTapConfigurationsCreateOrUpdateSample.ts index bf1313022e90..6d98be4d9127 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfaceTapConfigurationsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfaceTapConfigurationsCreateOrUpdateSample.ts @@ -41,7 +41,7 @@ async function createNetworkInterfaceTapConfigurations() { subscriptionId, resourceGroupName, networkInterfaceName, - tapConfigurationName + tapConfigurationName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfaceTapConfigurationsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfaceTapConfigurationsDeleteSample.ts index e17d3ff1dc33..41b78f9296bb 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfaceTapConfigurationsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfaceTapConfigurationsDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteTapConfiguration() { subscriptionId, resourceGroupName, networkInterfaceName, - tapConfigurationName + tapConfigurationName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfaceTapConfigurationsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfaceTapConfigurationsGetSample.ts index 9ef54e5b7ccf..3cac350d2152 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfaceTapConfigurationsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfaceTapConfigurationsGetSample.ts @@ -33,7 +33,7 @@ async function getNetworkInterfaceTapConfigurations() { subscriptionId, resourceGroupName, networkInterfaceName, - tapConfigurationName + tapConfigurationName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfaceTapConfigurationsListSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfaceTapConfigurationsListSample.ts index 4adbcc26fa81..cb9a774ab520 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfaceTapConfigurationsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfaceTapConfigurationsListSample.ts @@ -32,7 +32,7 @@ async function listVirtualNetworkTapConfigurations() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations", subscriptionId, resourceGroupName, - networkInterfaceName + networkInterfaceName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfacesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfacesCreateOrUpdateSample.ts index 28c082a23b3f..3788b23e7594 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfacesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfacesCreateOrUpdateSample.ts @@ -52,7 +52,7 @@ async function createNetworkInterface() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", subscriptionId, resourceGroupName, - networkInterfaceName + networkInterfaceName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -103,7 +103,7 @@ async function createNetworkInterfaceWithGatewayLoadBalancerConsumerConfigured() "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", subscriptionId, resourceGroupName, - networkInterfaceName + networkInterfaceName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfacesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfacesDeleteSample.ts index fd6cab68e5d9..c37873293f30 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfacesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfacesDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteNetworkInterface() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", subscriptionId, resourceGroupName, - networkInterfaceName + networkInterfaceName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetCloudServiceNetworkInterfaceSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetCloudServiceNetworkInterfaceSample.ts index 2cb617a66d71..8b9afe31abcf 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetCloudServiceNetworkInterfaceSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetCloudServiceNetworkInterfaceSample.ts @@ -35,7 +35,7 @@ async function getCloudServiceNetworkInterface() { resourceGroupName, cloudServiceName, roleInstanceName, - networkInterfaceName + networkInterfaceName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetEffectiveRouteTableSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetEffectiveRouteTableSample.ts index bf4d91216397..670bbdc7b21e 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetEffectiveRouteTableSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetEffectiveRouteTableSample.ts @@ -32,7 +32,7 @@ async function showNetworkInterfaceEffectiveRouteTables() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveRouteTable", subscriptionId, resourceGroupName, - networkInterfaceName + networkInterfaceName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetSample.ts index 3526078a76de..cc4890afc953 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetSample.ts @@ -31,7 +31,7 @@ async function getNetworkInterface() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", subscriptionId, resourceGroupName, - networkInterfaceName + networkInterfaceName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetVirtualMachineScaleSetIPConfigurationSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetVirtualMachineScaleSetIPConfigurationSample.ts index 4047c12ae0b5..ca01838388e4 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetVirtualMachineScaleSetIPConfigurationSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetVirtualMachineScaleSetIPConfigurationSample.ts @@ -37,7 +37,7 @@ async function getVirtualMachineScaleSetNetworkInterface() { virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, - ipConfigurationName + ipConfigurationName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetVirtualMachineScaleSetNetworkInterfaceSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetVirtualMachineScaleSetNetworkInterfaceSample.ts index 2ff768bc96a3..47b03b8a78e4 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetVirtualMachineScaleSetNetworkInterfaceSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfacesGetVirtualMachineScaleSetNetworkInterfaceSample.ts @@ -35,7 +35,7 @@ async function getVirtualMachineScaleSetNetworkInterface() { resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, - networkInterfaceName + networkInterfaceName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfacesListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfacesListAllSample.ts index 38a0fb1dc80d..a35d80e40567 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfacesListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfacesListAllSample.ts @@ -28,7 +28,7 @@ async function listAllNetworkInterfaces() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfacesListCloudServiceNetworkInterfacesSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfacesListCloudServiceNetworkInterfacesSample.ts index 3555e891e463..631e532b23f0 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfacesListCloudServiceNetworkInterfacesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfacesListCloudServiceNetworkInterfacesSample.ts @@ -32,7 +32,7 @@ async function listCloudServiceNetworkInterfaces() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/networkInterfaces", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfacesListCloudServiceRoleInstanceNetworkInterfacesSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfacesListCloudServiceRoleInstanceNetworkInterfacesSample.ts index 8ff76584de9d..1473a96d022b 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfacesListCloudServiceRoleInstanceNetworkInterfacesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfacesListCloudServiceRoleInstanceNetworkInterfacesSample.ts @@ -34,7 +34,7 @@ async function listCloudServiceRoleInstanceNetworkInterfaces() { subscriptionId, resourceGroupName, cloudServiceName, - roleInstanceName + roleInstanceName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfacesListEffectiveNetworkSecurityGroupsSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfacesListEffectiveNetworkSecurityGroupsSample.ts index eb456f461bbe..8d03da4635ab 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfacesListEffectiveNetworkSecurityGroupsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfacesListEffectiveNetworkSecurityGroupsSample.ts @@ -32,7 +32,7 @@ async function listNetworkInterfaceEffectiveNetworkSecurityGroups() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveNetworkSecurityGroups", subscriptionId, resourceGroupName, - networkInterfaceName + networkInterfaceName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfacesListSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfacesListSample.ts index fa7d718c8c4e..a19e90970c61 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfacesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfacesListSample.ts @@ -30,7 +30,7 @@ async function listNetworkInterfacesInResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfacesListVirtualMachineScaleSetIPConfigurationsSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfacesListVirtualMachineScaleSetIPConfigurationsSample.ts index d875c9f81343..27868525f012 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfacesListVirtualMachineScaleSetIPConfigurationsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfacesListVirtualMachineScaleSetIPConfigurationsSample.ts @@ -36,7 +36,7 @@ async function listVirtualMachineScaleSetNetworkInterfaceIPConfigurations() { resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, - networkInterfaceName + networkInterfaceName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfacesListVirtualMachineScaleSetNetworkInterfacesSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfacesListVirtualMachineScaleSetNetworkInterfacesSample.ts index 68c1c275a6bb..5583fedb1fed 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfacesListVirtualMachineScaleSetNetworkInterfacesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfacesListVirtualMachineScaleSetNetworkInterfacesSample.ts @@ -32,7 +32,7 @@ async function listVirtualMachineScaleSetNetworkInterfaces() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/networkInterfaces", subscriptionId, resourceGroupName, - virtualMachineScaleSetName + virtualMachineScaleSetName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesSample.ts index 358cd861005f..c4433bb5a528 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesSample.ts @@ -34,7 +34,7 @@ async function listVirtualMachineScaleSetVMNetworkInterfaces() { subscriptionId, resourceGroupName, virtualMachineScaleSetName, - virtualmachineIndex + virtualmachineIndex, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkInterfacesUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/networkInterfacesUpdateTagsSample.ts index 020f58d31fb7..c3ab662f884f 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkInterfacesUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkInterfacesUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateNetworkInterfaceTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", subscriptionId, resourceGroupName, - networkInterfaceName + networkInterfaceName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkManagerCommitsPostSample.ts b/sdk/network/arm-network-rest/samples-dev/networkManagerCommitsPostSample.ts index 2440ccd1ecaa..907aab4d0284 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkManagerCommitsPostSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkManagerCommitsPostSample.ts @@ -39,7 +39,7 @@ async function networkManageCommitPost() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/commit", subscriptionId, resourceGroupName, - networkManagerName + networkManagerName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkManagerDeploymentStatusListSample.ts b/sdk/network/arm-network-rest/samples-dev/networkManagerDeploymentStatusListSample.ts index 414bdf1f98aa..4ccbfc2cd3b7 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkManagerDeploymentStatusListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkManagerDeploymentStatusListSample.ts @@ -36,7 +36,7 @@ async function networkManagerDeploymentStatusList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listDeploymentStatus", subscriptionId, resourceGroupName, - networkManagerName + networkManagerName, ) .post(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkManagersCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/networkManagersCreateOrUpdateSample.ts index d3c61b6b47fa..7fe0ad4bf15c 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkManagersCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkManagersCreateOrUpdateSample.ts @@ -41,7 +41,7 @@ async function putNetworkManager() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}", subscriptionId, resourceGroupName, - networkManagerName + networkManagerName, ) .put(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkManagersDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/networkManagersDeleteSample.ts index 64f3a1c72a14..a3fa7c36a193 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkManagersDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkManagersDeleteSample.ts @@ -32,7 +32,7 @@ async function networkManagersDelete() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}", subscriptionId, resourceGroupName, - networkManagerName + networkManagerName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkManagersGetSample.ts b/sdk/network/arm-network-rest/samples-dev/networkManagersGetSample.ts index 35dbbccdade8..2e083cc916b5 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkManagersGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkManagersGetSample.ts @@ -31,7 +31,7 @@ async function networkManagersGet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}", subscriptionId, resourceGroupName, - networkManagerName + networkManagerName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkManagersListBySubscriptionSample.ts b/sdk/network/arm-network-rest/samples-dev/networkManagersListBySubscriptionSample.ts index 6d1f882b46e4..24330371c4f4 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkManagersListBySubscriptionSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkManagersListBySubscriptionSample.ts @@ -28,7 +28,7 @@ async function networkManagersList() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagers", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkManagersListSample.ts b/sdk/network/arm-network-rest/samples-dev/networkManagersListSample.ts index 21a7c5f75e61..5c364b1bd648 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkManagersListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkManagersListSample.ts @@ -30,7 +30,7 @@ async function listNetworkManager() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkManagersPatchSample.ts b/sdk/network/arm-network-rest/samples-dev/networkManagersPatchSample.ts index fd8dd6431360..5ab69940d7dc 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkManagersPatchSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkManagersPatchSample.ts @@ -32,7 +32,7 @@ async function networkManagesPatch() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}", subscriptionId, resourceGroupName, - networkManagerName + networkManagerName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkProfilesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/networkProfilesCreateOrUpdateSample.ts index 0098bdaa27f1..ffacdd2ff8cf 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkProfilesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkProfilesCreateOrUpdateSample.ts @@ -53,7 +53,7 @@ async function createNetworkProfileDefaults() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}", subscriptionId, resourceGroupName, - networkProfileName + networkProfileName, ) .put(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkProfilesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/networkProfilesDeleteSample.ts index 69d7e0935d65..32b859d430d7 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkProfilesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkProfilesDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteNetworkProfile() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}", subscriptionId, resourceGroupName, - networkProfileName + networkProfileName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkProfilesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/networkProfilesGetSample.ts index d5d30b0eaf0f..8da5846a8b6d 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkProfilesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkProfilesGetSample.ts @@ -31,7 +31,7 @@ async function getNetworkProfile() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}", subscriptionId, resourceGroupName, - networkProfileName + networkProfileName, ) .get(options); console.log(result); @@ -58,7 +58,7 @@ async function getNetworkProfileWithContainerNetworkInterfaces() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}", subscriptionId, resourceGroupName, - networkProfileName + networkProfileName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkProfilesListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/networkProfilesListAllSample.ts index d806578035a8..609e5ab9d4cb 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkProfilesListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkProfilesListAllSample.ts @@ -28,7 +28,7 @@ async function listAllNetworkProfiles() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkProfiles", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkProfilesListSample.ts b/sdk/network/arm-network-rest/samples-dev/networkProfilesListSample.ts index f59366734bb4..87095ddb1a77 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkProfilesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkProfilesListSample.ts @@ -30,7 +30,7 @@ async function listResourceGroupNetworkProfiles() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkProfilesUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/networkProfilesUpdateTagsSample.ts index 6652a934071a..f4d43604b8b2 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkProfilesUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkProfilesUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateNetworkProfileTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}", subscriptionId, resourceGroupName, - networkProfileName + networkProfileName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsCreateOrUpdateSample.ts index 6e7fa61a73eb..2bc7b4852d73 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsCreateOrUpdateSample.ts @@ -33,7 +33,7 @@ async function createNetworkSecurityGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", subscriptionId, resourceGroupName, - networkSecurityGroupName + networkSecurityGroupName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -82,7 +82,7 @@ async function createNetworkSecurityGroupWithRule() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", subscriptionId, resourceGroupName, - networkSecurityGroupName + networkSecurityGroupName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsDeleteSample.ts index 1686de3f4f51..45c912673f66 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteNetworkSecurityGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", subscriptionId, resourceGroupName, - networkSecurityGroupName + networkSecurityGroupName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsGetSample.ts index 497aed6f7f48..74e91dd13073 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsGetSample.ts @@ -31,7 +31,7 @@ async function getNetworkSecurityGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", subscriptionId, resourceGroupName, - networkSecurityGroupName + networkSecurityGroupName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsListAllSample.ts index d6074d92648b..daf4bf2b6acb 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsListAllSample.ts @@ -28,7 +28,7 @@ async function listAllNetworkSecurityGroups() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsListSample.ts b/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsListSample.ts index c3c71014e03c..0954c61bede0 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsListSample.ts @@ -30,7 +30,7 @@ async function listNetworkSecurityGroupsInResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsUpdateTagsSample.ts index 04a57086a948..c3f2a7260b73 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkSecurityGroupsUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateNetworkSecurityGroupTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", subscriptionId, resourceGroupName, - networkSecurityGroupName + networkSecurityGroupName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesCreateOrUpdateSample.ts index f715a452041d..10498235f2e0 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesCreateOrUpdateSample.ts @@ -60,7 +60,7 @@ async function createNetworkVirtualAppliance() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}", subscriptionId, resourceGroupName, - networkVirtualApplianceName + networkVirtualApplianceName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesDeleteSample.ts index 78700af99814..c202100ed6f8 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteNetworkVirtualAppliance() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}", subscriptionId, resourceGroupName, - networkVirtualApplianceName + networkVirtualApplianceName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesGetSample.ts index 6e5bf6ba9611..db5972d51c93 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesGetSample.ts @@ -31,7 +31,7 @@ async function getNetworkVirtualAppliance() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}", subscriptionId, resourceGroupName, - networkVirtualApplianceName + networkVirtualApplianceName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesListByResourceGroupSample.ts index bab90d67f8ef..c6e528c562d7 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function listAllNetworkVirtualApplianceForAGivenResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesListSample.ts b/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesListSample.ts index 95716bac1ea6..d4f795bc926e 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesListSample.ts @@ -28,7 +28,7 @@ async function listAllNetworkVirtualAppliancesForAGivenSubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualAppliances", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesUpdateTagsSample.ts index e078edd1a809..c54cf1547b9b 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkVirtualAppliancesUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateNetworkVirtualAppliance() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}", subscriptionId, resourceGroupName, - networkVirtualApplianceName + networkVirtualApplianceName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersCheckConnectivitySample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersCheckConnectivitySample.ts index 1ccae44a7827..0bb27ec6e3dc 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersCheckConnectivitySample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersCheckConnectivitySample.ts @@ -40,7 +40,7 @@ async function checkConnectivity() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectivityCheck", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersCreateOrUpdateSample.ts index 84f4d9dfc7f8..dd8305aa1567 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersCreateOrUpdateSample.ts @@ -32,7 +32,7 @@ async function createNetworkWatcher() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .put(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersDeleteSample.ts index e27a60b142dc..18d3325fb77d 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteNetworkWatcher() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetAzureReachabilityReportSample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetAzureReachabilityReportSample.ts index 689f6491698c..60b988d46362 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetAzureReachabilityReportSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetAzureReachabilityReportSample.ts @@ -39,7 +39,7 @@ async function getAzureReachabilityReport() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/azureReachabilityReport", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetFlowLogStatusSample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetFlowLogStatusSample.ts index c8ff63629108..b29d636db052 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetFlowLogStatusSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetFlowLogStatusSample.ts @@ -36,7 +36,7 @@ async function getFlowLogStatus() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryFlowLogStatus", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetNetworkConfigurationDiagnosticSample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetNetworkConfigurationDiagnosticSample.ts index 3de17a534604..901bc4f72b94 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetNetworkConfigurationDiagnosticSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetNetworkConfigurationDiagnosticSample.ts @@ -45,7 +45,7 @@ async function networkConfigurationDiagnostic() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/networkConfigurationDiagnostic", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetNextHopSample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetNextHopSample.ts index 221510593532..21ce0e781055 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetNextHopSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetNextHopSample.ts @@ -40,7 +40,7 @@ async function getNextHop() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/nextHop", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetSample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetSample.ts index cd85c20a13b3..d736eae65dcd 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetSample.ts @@ -31,7 +31,7 @@ async function getNetworkWatcher() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetTopologySample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetTopologySample.ts index a20df236a9ff..90f28dc01c3e 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetTopologySample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetTopologySample.ts @@ -32,7 +32,7 @@ async function getTopology() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/topology", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .post(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetTroubleshootingResultSample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetTroubleshootingResultSample.ts index 42ee65c27b00..80c868759d84 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetTroubleshootingResultSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetTroubleshootingResultSample.ts @@ -36,7 +36,7 @@ async function getTroubleshootResult() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryTroubleshootResult", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetTroubleshootingSample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetTroubleshootingSample.ts index e2dffec33b47..0c271a1fc986 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetTroubleshootingSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetTroubleshootingSample.ts @@ -41,7 +41,7 @@ async function getTroubleshooting() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/troubleshoot", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetVMSecurityRulesSample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetVMSecurityRulesSample.ts index f3f1f19933e6..7f16e9c2dc29 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersGetVMSecurityRulesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersGetVMSecurityRulesSample.ts @@ -36,7 +36,7 @@ async function getSecurityGroupView() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/securityGroupView", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersListAllSample.ts index 040ae1b670d3..049c705e32c1 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersListAllSample.ts @@ -28,7 +28,7 @@ async function listAllNetworkWatchers() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkWatchers", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersListAvailableProvidersSample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersListAvailableProvidersSample.ts index 4179e2483b9e..b2f37cbfa66b 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersListAvailableProvidersSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersListAvailableProvidersSample.ts @@ -38,7 +38,7 @@ async function getAvailableProvidersList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/availableProvidersList", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersListSample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersListSample.ts index 1125f859ea2a..550656fdc573 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersListSample.ts @@ -30,7 +30,7 @@ async function listNetworkWatchers() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersSetFlowLogConfigurationSample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersSetFlowLogConfigurationSample.ts index de93cdfa5633..26a402dfd758 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersSetFlowLogConfigurationSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersSetFlowLogConfigurationSample.ts @@ -41,7 +41,7 @@ async function configureFlowLog() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/configureFlowLog", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersUpdateTagsSample.ts index a64661d49f7c..49660d95159d 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateNetworkWatcherTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/networkWatchersVerifyIPFlowSample.ts b/sdk/network/arm-network-rest/samples-dev/networkWatchersVerifyIPFlowSample.ts index a264807670b5..fd008e3f99f8 100644 --- a/sdk/network/arm-network-rest/samples-dev/networkWatchersVerifyIPFlowSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/networkWatchersVerifyIPFlowSample.ts @@ -42,7 +42,7 @@ async function ipFlowVerify() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/ipFlowVerify", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysCreateOrUpdateSample.ts index 4ce8008a78fb..2f9ad35f621c 100644 --- a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysCreateOrUpdateSample.ts @@ -76,7 +76,7 @@ async function p2SVpnGatewayPut() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysDeleteSample.ts index 5059b673836b..12f2f5e6871b 100644 --- a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysDeleteSample.ts @@ -32,7 +32,7 @@ async function p2SVpnGatewayDelete() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysDisconnectP2SvpnConnectionsSample.ts b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysDisconnectP2SvpnConnectionsSample.ts index accb9b480f5a..2f5004d84003 100644 --- a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysDisconnectP2SvpnConnectionsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysDisconnectP2SvpnConnectionsSample.ts @@ -33,7 +33,7 @@ async function disconnectVpnConnectionsFromP2SVpnGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{p2sVpnGatewayName}/disconnectP2sVpnConnections", subscriptionId, resourceGroupName, - p2sVpnGatewayName + p2sVpnGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysGenerateVpnProfileSample.ts b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysGenerateVpnProfileSample.ts index 913de8f50732..ca9b10ff43bd 100644 --- a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysGenerateVpnProfileSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysGenerateVpnProfileSample.ts @@ -33,7 +33,7 @@ async function generateP2SVpnGatewayVpnprofile() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/generatevpnprofile", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysGetP2SvpnConnectionHealthDetailedSample.ts b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysGetP2SvpnConnectionHealthDetailedSample.ts index b5e3b48319a9..2040fa0c3b29 100644 --- a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysGetP2SvpnConnectionHealthDetailedSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysGetP2SvpnConnectionHealthDetailedSample.ts @@ -37,7 +37,7 @@ async function p2SVpnGatewayGetConnectionHealthDetailed() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/getP2sVpnConnectionHealthDetailed", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysGetP2SvpnConnectionHealthSample.ts b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysGetP2SvpnConnectionHealthSample.ts index fe02412d33f1..39705762cd3a 100644 --- a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysGetP2SvpnConnectionHealthSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysGetP2SvpnConnectionHealthSample.ts @@ -32,7 +32,7 @@ async function p2SVpnGatewayGetConnectionHealth() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/getP2sVpnConnectionHealth", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysGetSample.ts b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysGetSample.ts index d8d2a7690074..fa5eb682e03e 100644 --- a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysGetSample.ts @@ -31,7 +31,7 @@ async function p2SVpnGatewayGet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysListByResourceGroupSample.ts index aa1fce849779..2e823b716e62 100644 --- a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function p2SVpnGatewayListByResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysListSample.ts b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysListSample.ts index ca8073f40387..a6ad21b9f136 100644 --- a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysListSample.ts @@ -28,7 +28,7 @@ async function p2SVpnGatewayListBySubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/p2svpnGateways", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysResetSample.ts b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysResetSample.ts index de9e021089d9..85e671e296a8 100644 --- a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysResetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysResetSample.ts @@ -32,7 +32,7 @@ async function resetP2SVpnGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/reset", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysUpdateTagsSample.ts index 6909768011c8..1e2c2c20ee11 100644 --- a/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/p2SVpnGatewaysUpdateTagsSample.ts @@ -33,7 +33,7 @@ async function p2SVpnGatewayUpdate() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/packetCapturesCreateSample.ts b/sdk/network/arm-network-rest/samples-dev/packetCapturesCreateSample.ts index e03b0807cfa8..da951ccc8747 100644 --- a/sdk/network/arm-network-rest/samples-dev/packetCapturesCreateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/packetCapturesCreateSample.ts @@ -50,7 +50,7 @@ async function createPacketCapture() { subscriptionId, resourceGroupName, networkWatcherName, - packetCaptureName + packetCaptureName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/packetCapturesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/packetCapturesDeleteSample.ts index bf36608c3f58..6438495df66d 100644 --- a/sdk/network/arm-network-rest/samples-dev/packetCapturesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/packetCapturesDeleteSample.ts @@ -34,7 +34,7 @@ async function deletePacketCapture() { subscriptionId, resourceGroupName, networkWatcherName, - packetCaptureName + packetCaptureName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/packetCapturesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/packetCapturesGetSample.ts index 980dcdd75f16..a2ff252c1147 100644 --- a/sdk/network/arm-network-rest/samples-dev/packetCapturesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/packetCapturesGetSample.ts @@ -33,7 +33,7 @@ async function getPacketCapture() { subscriptionId, resourceGroupName, networkWatcherName, - packetCaptureName + packetCaptureName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/packetCapturesGetStatusSample.ts b/sdk/network/arm-network-rest/samples-dev/packetCapturesGetStatusSample.ts index 44615683cda6..72b207ffc915 100644 --- a/sdk/network/arm-network-rest/samples-dev/packetCapturesGetStatusSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/packetCapturesGetStatusSample.ts @@ -34,7 +34,7 @@ async function queryPacketCaptureStatus() { subscriptionId, resourceGroupName, networkWatcherName, - packetCaptureName + packetCaptureName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/packetCapturesListSample.ts b/sdk/network/arm-network-rest/samples-dev/packetCapturesListSample.ts index 23d789620509..75c55d5f1953 100644 --- a/sdk/network/arm-network-rest/samples-dev/packetCapturesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/packetCapturesListSample.ts @@ -32,7 +32,7 @@ async function listPacketCaptures() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures", subscriptionId, resourceGroupName, - networkWatcherName + networkWatcherName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/packetCapturesStopSample.ts b/sdk/network/arm-network-rest/samples-dev/packetCapturesStopSample.ts index f52171420291..aa4ddba30d0a 100644 --- a/sdk/network/arm-network-rest/samples-dev/packetCapturesStopSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/packetCapturesStopSample.ts @@ -34,7 +34,7 @@ async function stopPacketCapture() { subscriptionId, resourceGroupName, networkWatcherName, - packetCaptureName + packetCaptureName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/peerExpressRouteCircuitConnectionsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/peerExpressRouteCircuitConnectionsGetSample.ts index 4437d59b78e8..f922496ee611 100644 --- a/sdk/network/arm-network-rest/samples-dev/peerExpressRouteCircuitConnectionsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/peerExpressRouteCircuitConnectionsGetSample.ts @@ -35,7 +35,7 @@ async function peerExpressRouteCircuitConnectionGet() { resourceGroupName, circuitName, peeringName, - connectionName + connectionName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/peerExpressRouteCircuitConnectionsListSample.ts b/sdk/network/arm-network-rest/samples-dev/peerExpressRouteCircuitConnectionsListSample.ts index b3a25a04fe13..1e7d960266f7 100644 --- a/sdk/network/arm-network-rest/samples-dev/peerExpressRouteCircuitConnectionsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/peerExpressRouteCircuitConnectionsListSample.ts @@ -34,7 +34,7 @@ async function listPeerExpressRouteCircuitConnection() { subscriptionId, resourceGroupName, circuitName, - peeringName + peeringName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/privateDnsZoneGroupsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/privateDnsZoneGroupsCreateOrUpdateSample.ts index 19ec22ee68ee..7d98028d12cd 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateDnsZoneGroupsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateDnsZoneGroupsCreateOrUpdateSample.ts @@ -46,7 +46,7 @@ async function createPrivateDnsZoneGroup() { subscriptionId, resourceGroupName, privateEndpointName, - privateDnsZoneGroupName + privateDnsZoneGroupName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/privateDnsZoneGroupsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/privateDnsZoneGroupsDeleteSample.ts index 69d22ea5e613..b8ee02fba2ff 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateDnsZoneGroupsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateDnsZoneGroupsDeleteSample.ts @@ -34,7 +34,7 @@ async function deletePrivateDnsZoneGroup() { subscriptionId, resourceGroupName, privateEndpointName, - privateDnsZoneGroupName + privateDnsZoneGroupName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/privateDnsZoneGroupsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/privateDnsZoneGroupsGetSample.ts index c36cd9c0acd2..df20e6c4fc94 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateDnsZoneGroupsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateDnsZoneGroupsGetSample.ts @@ -33,7 +33,7 @@ async function getPrivateDnsZoneGroup() { subscriptionId, resourceGroupName, privateEndpointName, - privateDnsZoneGroupName + privateDnsZoneGroupName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/privateDnsZoneGroupsListSample.ts b/sdk/network/arm-network-rest/samples-dev/privateDnsZoneGroupsListSample.ts index ef4eac009f5a..f82f3576f7ae 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateDnsZoneGroupsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateDnsZoneGroupsListSample.ts @@ -32,7 +32,7 @@ async function listPrivateEndpointsInResourceGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}/privateDnsZoneGroups", subscriptionId, resourceGroupName, - privateEndpointName + privateEndpointName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/privateEndpointsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/privateEndpointsCreateOrUpdateSample.ts index 552394865df4..9f404dcb3f0d 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateEndpointsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateEndpointsCreateOrUpdateSample.ts @@ -61,7 +61,7 @@ async function createPrivateEndpoint() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}", subscriptionId, resourceGroupName, - privateEndpointName + privateEndpointName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -113,7 +113,7 @@ async function createPrivateEndpointWithApplicationSecurityGroups() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}", subscriptionId, resourceGroupName, - privateEndpointName + privateEndpointName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -171,7 +171,7 @@ async function createPrivateEndpointWithManualApprovalConnection() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}", subscriptionId, resourceGroupName, - privateEndpointName + privateEndpointName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/privateEndpointsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/privateEndpointsDeleteSample.ts index 55c9dc89a1ff..e3f47f111c27 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateEndpointsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateEndpointsDeleteSample.ts @@ -32,7 +32,7 @@ async function deletePrivateEndpoint() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}", subscriptionId, resourceGroupName, - privateEndpointName + privateEndpointName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/privateEndpointsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/privateEndpointsGetSample.ts index 2b8bc4614e97..762fc51d6b50 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateEndpointsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateEndpointsGetSample.ts @@ -31,7 +31,7 @@ async function getPrivateEndpoint() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}", subscriptionId, resourceGroupName, - privateEndpointName + privateEndpointName, ) .get(options); console.log(result); @@ -58,7 +58,7 @@ async function getPrivateEndpointWithApplicationSecurityGroups() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}", subscriptionId, resourceGroupName, - privateEndpointName + privateEndpointName, ) .get(options); console.log(result); @@ -85,7 +85,7 @@ async function getPrivateEndpointWithManualApprovalConnection() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}", subscriptionId, resourceGroupName, - privateEndpointName + privateEndpointName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/privateEndpointsListBySubscriptionSample.ts b/sdk/network/arm-network-rest/samples-dev/privateEndpointsListBySubscriptionSample.ts index c06babaa317b..d7634b080ba2 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateEndpointsListBySubscriptionSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateEndpointsListBySubscriptionSample.ts @@ -28,7 +28,7 @@ async function listAllPrivateEndpoints() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateEndpoints", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/privateEndpointsListSample.ts b/sdk/network/arm-network-rest/samples-dev/privateEndpointsListSample.ts index 586b524801d1..24b640dd9891 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateEndpointsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateEndpointsListSample.ts @@ -30,7 +30,7 @@ async function listPrivateEndpointsInResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupSample.ts index 8dc87b060176..d4a4f9053566 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupSample.ts @@ -36,7 +36,7 @@ async function checkPrivateLinkServiceVisibility() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility", subscriptionId, resourceGroupName, - location + location, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesCheckPrivateLinkServiceVisibilitySample.ts b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesCheckPrivateLinkServiceVisibilitySample.ts index 03c9d8a4bd94..88d8a06f9957 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesCheckPrivateLinkServiceVisibilitySample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesCheckPrivateLinkServiceVisibilitySample.ts @@ -34,7 +34,7 @@ async function checkPrivateLinkServiceVisibility() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility", subscriptionId, - location + location, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesCreateOrUpdateSample.ts index e3333ab257a3..09ff921e7f2d 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesCreateOrUpdateSample.ts @@ -60,7 +60,7 @@ async function createPrivateLinkService() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}", subscriptionId, resourceGroupName, - serviceName + serviceName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesDeletePrivateEndpointConnectionSample.ts b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesDeletePrivateEndpointConnectionSample.ts index 30c7446f5e33..94465d53fbaa 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesDeletePrivateEndpointConnectionSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesDeletePrivateEndpointConnectionSample.ts @@ -34,7 +34,7 @@ async function deletePrivateEndPointConnectionForAPrivateLinkService() { subscriptionId, resourceGroupName, serviceName, - peConnectionName + peConnectionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesDeleteSample.ts index 6789b22e225f..325cef320329 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesDeleteSample.ts @@ -32,7 +32,7 @@ async function deletePrivateLinkService() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}", subscriptionId, resourceGroupName, - serviceName + serviceName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesGetPrivateEndpointConnectionSample.ts b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesGetPrivateEndpointConnectionSample.ts index d692a28cf060..79ee978630a0 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesGetPrivateEndpointConnectionSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesGetPrivateEndpointConnectionSample.ts @@ -33,7 +33,7 @@ async function getPrivateEndPointConnection() { subscriptionId, resourceGroupName, serviceName, - peConnectionName + peConnectionName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesGetSample.ts index b88de24a78d8..8c6ae6cc5a89 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesGetSample.ts @@ -31,7 +31,7 @@ async function getPrivateLinkService() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}", subscriptionId, resourceGroupName, - serviceName + serviceName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupSample.ts index e3f487dd117b..1c05a5743aef 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupSample.ts @@ -32,7 +32,7 @@ async function getListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWit "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices", subscriptionId, resourceGroupName, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); @@ -44,5 +44,5 @@ async function getListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWit } getListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWithAutoApproved().catch( - console.error + console.error, ); diff --git a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListAutoApprovedPrivateLinkServicesSample.ts b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListAutoApprovedPrivateLinkServicesSample.ts index 16d8ee84f669..03a006974e4f 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListAutoApprovedPrivateLinkServicesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListAutoApprovedPrivateLinkServicesSample.ts @@ -30,7 +30,7 @@ async function getListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWit .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); @@ -42,5 +42,5 @@ async function getListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWit } getListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWithAutoApproved().catch( - console.error + console.error, ); diff --git a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListBySubscriptionSample.ts b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListBySubscriptionSample.ts index ff6fee98e266..d3f163c656e3 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListBySubscriptionSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListBySubscriptionSample.ts @@ -28,7 +28,7 @@ async function listAllPrivateListService() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateLinkServices", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListPrivateEndpointConnectionsSample.ts b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListPrivateEndpointConnectionsSample.ts index 259d28515373..586b7272ccc6 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListPrivateEndpointConnectionsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListPrivateEndpointConnectionsSample.ts @@ -32,7 +32,7 @@ async function listPrivateLinkServiceInResourceGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections", subscriptionId, resourceGroupName, - serviceName + serviceName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListSample.ts b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListSample.ts index cace54a1edc5..5ca54f25312c 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesListSample.ts @@ -30,7 +30,7 @@ async function listPrivateLinkServiceInResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesUpdatePrivateEndpointConnectionSample.ts b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesUpdatePrivateEndpointConnectionSample.ts index 72c970bc8bb7..ccd70d7c0845 100644 --- a/sdk/network/arm-network-rest/samples-dev/privateLinkServicesUpdatePrivateEndpointConnectionSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/privateLinkServicesUpdatePrivateEndpointConnectionSample.ts @@ -45,7 +45,7 @@ async function approveOrRejectPrivateEndPointConnectionForAPrivateLinkService() subscriptionId, resourceGroupName, serviceName, - peConnectionName + peConnectionName, ) .put(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesCreateOrUpdateSample.ts index 90f4027afadf..7087946b69af 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesCreateOrUpdateSample.ts @@ -36,7 +36,7 @@ async function createPublicIPAddressDns() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}", subscriptionId, resourceGroupName, - publicIpAddressName + publicIpAddressName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -74,7 +74,7 @@ async function createPublicIPAddressAllocationMethod() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}", subscriptionId, resourceGroupName, - publicIpAddressName + publicIpAddressName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -104,7 +104,7 @@ async function createPublicIPAddressDefaults() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}", subscriptionId, resourceGroupName, - publicIpAddressName + publicIpAddressName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesDdosProtectionStatusSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesDdosProtectionStatusSample.ts index 134433450a2e..b95a27a32caf 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesDdosProtectionStatusSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesDdosProtectionStatusSample.ts @@ -32,7 +32,7 @@ async function getDdosProtectionStatusOfAPublicIPAddress() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}/ddosProtectionStatus", subscriptionId, resourceGroupName, - publicIpAddressName + publicIpAddressName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesDeleteSample.ts index a0685a73727d..d2c39b5af86a 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesDeleteSample.ts @@ -32,7 +32,7 @@ async function deletePublicIPAddress() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}", subscriptionId, resourceGroupName, - publicIpAddressName + publicIpAddressName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesGetCloudServicePublicIpaddressSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesGetCloudServicePublicIpaddressSample.ts index dc7140f9eff2..5b796d79bb4e 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesGetCloudServicePublicIpaddressSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesGetCloudServicePublicIpaddressSample.ts @@ -39,7 +39,7 @@ async function getVmssPublicIP() { roleInstanceName, networkInterfaceName, ipConfigurationName, - publicIpAddressName + publicIpAddressName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesGetSample.ts index d7bd9d9f026b..6604dd132da9 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesGetSample.ts @@ -31,7 +31,7 @@ async function getPublicIPAddress() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}", subscriptionId, resourceGroupName, - publicIpAddressName + publicIpAddressName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesGetVirtualMachineScaleSetPublicIpaddressSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesGetVirtualMachineScaleSetPublicIpaddressSample.ts index 16b171fa20c7..c2b451b4f502 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesGetVirtualMachineScaleSetPublicIpaddressSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesGetVirtualMachineScaleSetPublicIpaddressSample.ts @@ -39,7 +39,7 @@ async function getVmssPublicIP() { virtualmachineIndex, networkInterfaceName, ipConfigurationName, - publicIpAddressName + publicIpAddressName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListAllSample.ts index 082f42bf2e39..79c261b8cb43 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListAllSample.ts @@ -28,7 +28,7 @@ async function listAllPublicIPAddresses() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPAddresses", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListCloudServicePublicIpaddressesSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListCloudServicePublicIpaddressesSample.ts index 43bad5f3cc31..2bc671b4830b 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListCloudServicePublicIpaddressesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListCloudServicePublicIpaddressesSample.ts @@ -32,7 +32,7 @@ async function listVmssPublicIP() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/publicipaddresses", subscriptionId, resourceGroupName, - cloudServiceName + cloudServiceName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListCloudServiceRoleInstancePublicIpaddressesSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListCloudServiceRoleInstancePublicIpaddressesSample.ts index 69e88b7c240d..6d5ca0c0a937 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListCloudServiceRoleInstancePublicIpaddressesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListCloudServiceRoleInstancePublicIpaddressesSample.ts @@ -38,7 +38,7 @@ async function listVmssvmPublicIP() { cloudServiceName, roleInstanceName, networkInterfaceName, - ipConfigurationName + ipConfigurationName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListSample.ts index ba87f6731d17..8a6997a6218f 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListSample.ts @@ -30,7 +30,7 @@ async function listResourceGroupPublicIPAddresses() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListVirtualMachineScaleSetPublicIpaddressesSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListVirtualMachineScaleSetPublicIpaddressesSample.ts index 210ab74cf7c2..32adb5f516bb 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListVirtualMachineScaleSetPublicIpaddressesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListVirtualMachineScaleSetPublicIpaddressesSample.ts @@ -32,7 +32,7 @@ async function listVmssPublicIP() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/publicipaddresses", subscriptionId, resourceGroupName, - virtualMachineScaleSetName + virtualMachineScaleSetName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListVirtualMachineScaleSetVmpublicIpaddressesSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListVirtualMachineScaleSetVmpublicIpaddressesSample.ts index fad2a870ee2d..0e437d358d48 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListVirtualMachineScaleSetVmpublicIpaddressesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesListVirtualMachineScaleSetVmpublicIpaddressesSample.ts @@ -38,7 +38,7 @@ async function listVmssvmPublicIP() { virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, - ipConfigurationName + ipConfigurationName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesUpdateTagsSample.ts index 79ef83904b8c..fc3a744dcc19 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPAddressesUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPAddressesUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updatePublicIPAddressTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}", subscriptionId, resourceGroupName, - publicIpAddressName + publicIpAddressName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesCreateOrUpdateSample.ts index 8843fa4a7337..8fd20095d891 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesCreateOrUpdateSample.ts @@ -37,7 +37,7 @@ async function createPublicIPPrefixAllocationMethod() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}", subscriptionId, resourceGroupName, - publicIpPrefixName + publicIpPrefixName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -71,7 +71,7 @@ async function createPublicIPPrefixDefaults() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}", subscriptionId, resourceGroupName, - publicIpPrefixName + publicIpPrefixName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesDeleteSample.ts index ffb18f56e84e..ce1cef7062ce 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesDeleteSample.ts @@ -32,7 +32,7 @@ async function deletePublicIPPrefix() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}", subscriptionId, resourceGroupName, - publicIpPrefixName + publicIpPrefixName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesGetSample.ts index 271fae7297f5..569a9401447b 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesGetSample.ts @@ -31,7 +31,7 @@ async function getPublicIPPrefix() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}", subscriptionId, resourceGroupName, - publicIpPrefixName + publicIpPrefixName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesListAllSample.ts index 72da27c93c95..2ff8055e92b3 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesListAllSample.ts @@ -28,7 +28,7 @@ async function listAllPublicIPPrefixes() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPPrefixes", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesListSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesListSample.ts index da42a57fb158..dc7e001f3e9d 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesListSample.ts @@ -30,7 +30,7 @@ async function listResourceGroupPublicIPPrefixes() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesUpdateTagsSample.ts index 62d453b0a338..fba2710d28f5 100644 --- a/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/publicIPPrefixesUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updatePublicIPPrefixTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}", subscriptionId, resourceGroupName, - publicIpPrefixName + publicIpPrefixName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/putBastionShareableLinkSample.ts b/sdk/network/arm-network-rest/samples-dev/putBastionShareableLinkSample.ts index 641f495cc7c0..f99ecdafe88b 100644 --- a/sdk/network/arm-network-rest/samples-dev/putBastionShareableLinkSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/putBastionShareableLinkSample.ts @@ -47,7 +47,7 @@ async function createBastionShareableLinksForTheRequestVMS() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/createShareableLinks", subscriptionId, resourceGroupName, - bastionHostName + bastionHostName, ) .post(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/resourceNavigationLinksListSample.ts b/sdk/network/arm-network-rest/samples-dev/resourceNavigationLinksListSample.ts index 243f4244ed6a..d77a7b3ac7b1 100644 --- a/sdk/network/arm-network-rest/samples-dev/resourceNavigationLinksListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/resourceNavigationLinksListSample.ts @@ -33,7 +33,7 @@ async function getResourceNavigationLinks() { subscriptionId, resourceGroupName, virtualNetworkName, - subnetName + subnetName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/routeFilterRulesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/routeFilterRulesCreateOrUpdateSample.ts index 33a30d66b941..81f4b4b4733a 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeFilterRulesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeFilterRulesCreateOrUpdateSample.ts @@ -41,7 +41,7 @@ async function routeFilterRuleCreate() { subscriptionId, resourceGroupName, routeFilterName, - ruleName + ruleName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routeFilterRulesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/routeFilterRulesDeleteSample.ts index 362cee377f37..686eeec697b4 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeFilterRulesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeFilterRulesDeleteSample.ts @@ -34,7 +34,7 @@ async function routeFilterRuleDelete() { subscriptionId, resourceGroupName, routeFilterName, - ruleName + ruleName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routeFilterRulesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/routeFilterRulesGetSample.ts index 9fc89494956c..533dd75622a5 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeFilterRulesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeFilterRulesGetSample.ts @@ -33,7 +33,7 @@ async function routeFilterRuleGet() { subscriptionId, resourceGroupName, routeFilterName, - ruleName + ruleName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/routeFilterRulesListByRouteFilterSample.ts b/sdk/network/arm-network-rest/samples-dev/routeFilterRulesListByRouteFilterSample.ts index 0756461bfabd..94926336dddd 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeFilterRulesListByRouteFilterSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeFilterRulesListByRouteFilterSample.ts @@ -32,7 +32,7 @@ async function routeFilterRuleListByRouteFilter() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules", subscriptionId, resourceGroupName, - routeFilterName + routeFilterName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routeFiltersCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/routeFiltersCreateOrUpdateSample.ts index b077859f10be..70ebc0136aaf 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeFiltersCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeFiltersCreateOrUpdateSample.ts @@ -48,7 +48,7 @@ async function routeFilterCreate() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}", subscriptionId, resourceGroupName, - routeFilterName + routeFilterName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routeFiltersDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/routeFiltersDeleteSample.ts index 06cf388fc265..873d5aed58f2 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeFiltersDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeFiltersDeleteSample.ts @@ -32,7 +32,7 @@ async function routeFilterDelete() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}", subscriptionId, resourceGroupName, - routeFilterName + routeFilterName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routeFiltersGetSample.ts b/sdk/network/arm-network-rest/samples-dev/routeFiltersGetSample.ts index e248fcc7fb6c..4fa25edd54cd 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeFiltersGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeFiltersGetSample.ts @@ -29,7 +29,7 @@ async function routeFilterGet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}", subscriptionId, resourceGroupName, - routeFilterName + routeFilterName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/routeFiltersListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/routeFiltersListByResourceGroupSample.ts index c60a9961e103..ddfb90eac8e7 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeFiltersListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeFiltersListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function routeFilterListByResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routeFiltersListSample.ts b/sdk/network/arm-network-rest/samples-dev/routeFiltersListSample.ts index 04e58f678ca3..3535d7952f8f 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeFiltersListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeFiltersListSample.ts @@ -28,7 +28,7 @@ async function routeFilterList() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeFilters", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routeFiltersUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/routeFiltersUpdateTagsSample.ts index 2ccc122b2f32..3465ac1e4dc2 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeFiltersUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeFiltersUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateRouteFilterTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}", subscriptionId, resourceGroupName, - routeFilterName + routeFilterName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/routeMapsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/routeMapsCreateOrUpdateSample.ts index d3c9345b48f3..8f7bfe4cf041 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeMapsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeMapsCreateOrUpdateSample.ts @@ -62,7 +62,7 @@ async function routeMapPut() { subscriptionId, resourceGroupName, virtualHubName, - routeMapName + routeMapName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routeMapsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/routeMapsDeleteSample.ts index aec941bdaf94..5943ed7e37e6 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeMapsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeMapsDeleteSample.ts @@ -34,7 +34,7 @@ async function routeMapDelete() { subscriptionId, resourceGroupName, virtualHubName, - routeMapName + routeMapName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routeMapsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/routeMapsGetSample.ts index 65ec3d7cf913..38d7275aa2e8 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeMapsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeMapsGetSample.ts @@ -31,7 +31,7 @@ async function routeMapGet() { subscriptionId, resourceGroupName, virtualHubName, - routeMapName + routeMapName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/routeMapsListSample.ts b/sdk/network/arm-network-rest/samples-dev/routeMapsListSample.ts index b245ffa70d14..8dbc31e1c01c 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeMapsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeMapsListSample.ts @@ -32,7 +32,7 @@ async function routeMapList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeMaps", subscriptionId, resourceGroupName, - virtualHubName + virtualHubName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routeTablesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/routeTablesCreateOrUpdateSample.ts index 575b28284509..d9fdc2691a52 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeTablesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeTablesCreateOrUpdateSample.ts @@ -33,7 +33,7 @@ async function createRouteTable() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}", subscriptionId, resourceGroupName, - routeTableName + routeTableName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -77,7 +77,7 @@ async function createRouteTableWithRoute() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}", subscriptionId, resourceGroupName, - routeTableName + routeTableName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routeTablesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/routeTablesDeleteSample.ts index ee2a62ba9fc8..5fc399a79df7 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeTablesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeTablesDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteRouteTable() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}", subscriptionId, resourceGroupName, - routeTableName + routeTableName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routeTablesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/routeTablesGetSample.ts index 79806a14faea..35b2c3f32875 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeTablesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeTablesGetSample.ts @@ -29,7 +29,7 @@ async function getRouteTable() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}", subscriptionId, resourceGroupName, - routeTableName + routeTableName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/routeTablesListSample.ts b/sdk/network/arm-network-rest/samples-dev/routeTablesListSample.ts index 8fca65877fd3..0ff6de0a0898 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeTablesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeTablesListSample.ts @@ -30,7 +30,7 @@ async function listRouteTablesInResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routeTablesUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/routeTablesUpdateTagsSample.ts index 867e53b4638a..e105be7afef3 100644 --- a/sdk/network/arm-network-rest/samples-dev/routeTablesUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routeTablesUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateRouteTableTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}", subscriptionId, resourceGroupName, - routeTableName + routeTableName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/routesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/routesCreateOrUpdateSample.ts index 476ee2b85a6b..88c5adb1371a 100644 --- a/sdk/network/arm-network-rest/samples-dev/routesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routesCreateOrUpdateSample.ts @@ -40,7 +40,7 @@ async function createRoute() { subscriptionId, resourceGroupName, routeTableName, - routeName + routeName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/routesDeleteSample.ts index 6070ab61e04a..bdcd16f820b1 100644 --- a/sdk/network/arm-network-rest/samples-dev/routesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routesDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteRoute() { subscriptionId, resourceGroupName, routeTableName, - routeName + routeName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/routesGetSample.ts index 9e6ceb3fb73a..63f89ac3ec11 100644 --- a/sdk/network/arm-network-rest/samples-dev/routesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routesGetSample.ts @@ -31,7 +31,7 @@ async function getRoute() { subscriptionId, resourceGroupName, routeTableName, - routeName + routeName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/routesListSample.ts b/sdk/network/arm-network-rest/samples-dev/routesListSample.ts index 30ceac1ead4f..66842a2d86bf 100644 --- a/sdk/network/arm-network-rest/samples-dev/routesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routesListSample.ts @@ -32,7 +32,7 @@ async function listRoutes() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes", subscriptionId, resourceGroupName, - routeTableName + routeTableName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routingIntentCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/routingIntentCreateOrUpdateSample.ts index c4dd38472db4..9f3a12336d8f 100644 --- a/sdk/network/arm-network-rest/samples-dev/routingIntentCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routingIntentCreateOrUpdateSample.ts @@ -52,7 +52,7 @@ async function routeTablePut() { subscriptionId, resourceGroupName, virtualHubName, - routingIntentName + routingIntentName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routingIntentDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/routingIntentDeleteSample.ts index 5fcbfe7b5088..4b86044dfef7 100644 --- a/sdk/network/arm-network-rest/samples-dev/routingIntentDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routingIntentDeleteSample.ts @@ -34,7 +34,7 @@ async function routeTableDelete() { subscriptionId, resourceGroupName, virtualHubName, - routingIntentName + routingIntentName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/routingIntentGetSample.ts b/sdk/network/arm-network-rest/samples-dev/routingIntentGetSample.ts index 2e9882ec1a38..c62aacdd8c76 100644 --- a/sdk/network/arm-network-rest/samples-dev/routingIntentGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routingIntentGetSample.ts @@ -31,7 +31,7 @@ async function routeTableGet() { subscriptionId, resourceGroupName, virtualHubName, - routingIntentName + routingIntentName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/routingIntentListSample.ts b/sdk/network/arm-network-rest/samples-dev/routingIntentListSample.ts index a84a6041db53..5443b2b00e0b 100644 --- a/sdk/network/arm-network-rest/samples-dev/routingIntentListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/routingIntentListSample.ts @@ -32,7 +32,7 @@ async function routingIntentList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routingIntent", subscriptionId, resourceGroupName, - virtualHubName + virtualHubName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/scopeConnectionsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/scopeConnectionsCreateOrUpdateSample.ts index 42d4d31f02c9..fcf552e71456 100644 --- a/sdk/network/arm-network-rest/samples-dev/scopeConnectionsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/scopeConnectionsCreateOrUpdateSample.ts @@ -40,7 +40,7 @@ async function createOrUpdateNetworkManagerScopeConnection() { subscriptionId, resourceGroupName, networkManagerName, - scopeConnectionName + scopeConnectionName, ) .put(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/scopeConnectionsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/scopeConnectionsDeleteSample.ts index dc8c072abb49..8c89295104b5 100644 --- a/sdk/network/arm-network-rest/samples-dev/scopeConnectionsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/scopeConnectionsDeleteSample.ts @@ -33,7 +33,7 @@ async function deleteNetworkManagerScopeConnection() { subscriptionId, resourceGroupName, networkManagerName, - scopeConnectionName + scopeConnectionName, ) .delete(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/scopeConnectionsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/scopeConnectionsGetSample.ts index 887996d8b70d..20d83be1008a 100644 --- a/sdk/network/arm-network-rest/samples-dev/scopeConnectionsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/scopeConnectionsGetSample.ts @@ -33,7 +33,7 @@ async function getNetworkManagerScopeConnection() { subscriptionId, resourceGroupName, networkManagerName, - scopeConnectionName + scopeConnectionName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/scopeConnectionsListSample.ts b/sdk/network/arm-network-rest/samples-dev/scopeConnectionsListSample.ts index cdb24ac53875..71cce1f2dee0 100644 --- a/sdk/network/arm-network-rest/samples-dev/scopeConnectionsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/scopeConnectionsListSample.ts @@ -32,7 +32,7 @@ async function listNetworkManagerScopeConnection() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/scopeConnections", subscriptionId, resourceGroupName, - networkManagerName + networkManagerName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/securityAdminConfigurationsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/securityAdminConfigurationsCreateOrUpdateSample.ts index b978cd85a514..7e1141d0218f 100644 --- a/sdk/network/arm-network-rest/samples-dev/securityAdminConfigurationsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/securityAdminConfigurationsCreateOrUpdateSample.ts @@ -39,7 +39,7 @@ async function createNetworkManagerSecurityAdminConfiguration() { subscriptionId, resourceGroupName, networkManagerName, - configurationName + configurationName, ) .put(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/securityAdminConfigurationsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/securityAdminConfigurationsDeleteSample.ts index 79f78c3bddfc..5fbd5746a55f 100644 --- a/sdk/network/arm-network-rest/samples-dev/securityAdminConfigurationsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/securityAdminConfigurationsDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteNetworkManagerSecurityAdminConfiguration() { subscriptionId, resourceGroupName, networkManagerName, - configurationName + configurationName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/securityAdminConfigurationsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/securityAdminConfigurationsGetSample.ts index 112b37e0b2b4..b8bb153704b6 100644 --- a/sdk/network/arm-network-rest/samples-dev/securityAdminConfigurationsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/securityAdminConfigurationsGetSample.ts @@ -33,7 +33,7 @@ async function getSecurityAdminConfigurations() { subscriptionId, resourceGroupName, networkManagerName, - configurationName + configurationName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/securityAdminConfigurationsListSample.ts b/sdk/network/arm-network-rest/samples-dev/securityAdminConfigurationsListSample.ts index b6900820a769..cc412ccc5f46 100644 --- a/sdk/network/arm-network-rest/samples-dev/securityAdminConfigurationsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/securityAdminConfigurationsListSample.ts @@ -32,7 +32,7 @@ async function listSecurityAdminConfigurationsInANetworkManager() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations", subscriptionId, resourceGroupName, - networkManagerName + networkManagerName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersCreateOrUpdateSample.ts index a016f4e23580..9953afa72433 100644 --- a/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersCreateOrUpdateSample.ts @@ -42,7 +42,7 @@ async function createSecurityPartnerProvider() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}", subscriptionId, resourceGroupName, - securityPartnerProviderName + securityPartnerProviderName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersDeleteSample.ts index e2b4029d3b96..6423436bf897 100644 --- a/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteSecurityPartnerProvider() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}", subscriptionId, resourceGroupName, - securityPartnerProviderName + securityPartnerProviderName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersGetSample.ts b/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersGetSample.ts index e71751b86616..c4e4a685fe5a 100644 --- a/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersGetSample.ts @@ -31,7 +31,7 @@ async function getSecurityPartnerProvider() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}", subscriptionId, resourceGroupName, - securityPartnerProviderName + securityPartnerProviderName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersListByResourceGroupSample.ts index 5a90239de2ba..6c48caf32462 100644 --- a/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function listAllSecurityPartnerProvidersForAGivenResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersListSample.ts b/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersListSample.ts index f51cf2d1c2eb..fdb0fefbad08 100644 --- a/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersListSample.ts @@ -28,7 +28,7 @@ async function listAllSecurityPartnerProvidersForAGivenSubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/securityPartnerProviders", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersUpdateTagsSample.ts index d9fbce6bc61d..eb0e226ff82d 100644 --- a/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/securityPartnerProvidersUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateSecurityPartnerProviderTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}", subscriptionId, resourceGroupName, - securityPartnerProviderName + securityPartnerProviderName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/securityRulesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/securityRulesCreateOrUpdateSample.ts index f388d36bd270..426f3075d715 100644 --- a/sdk/network/arm-network-rest/samples-dev/securityRulesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/securityRulesCreateOrUpdateSample.ts @@ -46,7 +46,7 @@ async function createSecurityRule() { subscriptionId, resourceGroupName, networkSecurityGroupName, - securityRuleName + securityRuleName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/securityRulesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/securityRulesDeleteSample.ts index 109d663aa1b0..02ecdccbd17c 100644 --- a/sdk/network/arm-network-rest/samples-dev/securityRulesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/securityRulesDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteNetworkSecurityRuleFromNetworkSecurityGroup() { subscriptionId, resourceGroupName, networkSecurityGroupName, - securityRuleName + securityRuleName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/securityRulesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/securityRulesGetSample.ts index ec7265c675ea..eb3b7d86c061 100644 --- a/sdk/network/arm-network-rest/samples-dev/securityRulesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/securityRulesGetSample.ts @@ -31,7 +31,7 @@ async function getNetworkSecurityRuleInNetworkSecurityGroup() { subscriptionId, resourceGroupName, networkSecurityGroupName, - securityRuleName + securityRuleName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/securityRulesListSample.ts b/sdk/network/arm-network-rest/samples-dev/securityRulesListSample.ts index 70deadf3ba05..9d113dda2237 100644 --- a/sdk/network/arm-network-rest/samples-dev/securityRulesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/securityRulesListSample.ts @@ -32,7 +32,7 @@ async function listNetworkSecurityRulesInNetworkSecurityGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules", subscriptionId, resourceGroupName, - networkSecurityGroupName + networkSecurityGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/serviceAssociationLinksListSample.ts b/sdk/network/arm-network-rest/samples-dev/serviceAssociationLinksListSample.ts index d25942145408..7bb5f01f76b0 100644 --- a/sdk/network/arm-network-rest/samples-dev/serviceAssociationLinksListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/serviceAssociationLinksListSample.ts @@ -33,7 +33,7 @@ async function getServiceAssociationLinks() { subscriptionId, resourceGroupName, virtualNetworkName, - subnetName + subnetName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesCreateOrUpdateSample.ts index 8856dea19cf5..55a25da24eb0 100644 --- a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesCreateOrUpdateSample.ts @@ -33,7 +33,7 @@ async function createServiceEndpointPolicy() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}", subscriptionId, resourceGroupName, - serviceEndpointPolicyName + serviceEndpointPolicyName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -81,7 +81,7 @@ async function createServiceEndpointPolicyWithDefinition() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}", subscriptionId, resourceGroupName, - serviceEndpointPolicyName + serviceEndpointPolicyName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesDeleteSample.ts index 4fa7c4b2e819..8bb42aa17c5c 100644 --- a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteServiceEndpointPolicy() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}", subscriptionId, resourceGroupName, - serviceEndpointPolicyName + serviceEndpointPolicyName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesGetSample.ts index 094030187591..80294e2e83db 100644 --- a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesGetSample.ts @@ -31,7 +31,7 @@ async function getServiceEndPointPolicy() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}", subscriptionId, resourceGroupName, - serviceEndpointPolicyName + serviceEndpointPolicyName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesListByResourceGroupSample.ts index abeeeec802e9..5e7802a116e5 100644 --- a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function listResourceGroupServiceEndpointPolicies() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesListSample.ts b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesListSample.ts index 295a01f4e985..2020123de272 100644 --- a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesListSample.ts @@ -28,7 +28,7 @@ async function listAllServiceEndpointPolicy() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ServiceEndpointPolicies", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesUpdateTagsSample.ts index 514652cd6949..7887317adc36 100644 --- a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPoliciesUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateServiceEndpointPolicyTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}", subscriptionId, resourceGroupName, - serviceEndpointPolicyName + serviceEndpointPolicyName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPolicyDefinitionsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPolicyDefinitionsCreateOrUpdateSample.ts index a056eeda9715..f2c4a36d2c59 100644 --- a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPolicyDefinitionsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPolicyDefinitionsCreateOrUpdateSample.ts @@ -45,7 +45,7 @@ async function createServiceEndpointPolicyDefinition() { subscriptionId, resourceGroupName, serviceEndpointPolicyName, - serviceEndpointPolicyDefinitionName + serviceEndpointPolicyDefinitionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPolicyDefinitionsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPolicyDefinitionsDeleteSample.ts index 6c605e0ff9b5..3d1d251dbe18 100644 --- a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPolicyDefinitionsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPolicyDefinitionsDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteServiceEndpointPolicyDefinitionsFromServiceEndpointPolicy() subscriptionId, resourceGroupName, serviceEndpointPolicyName, - serviceEndpointPolicyDefinitionName + serviceEndpointPolicyDefinitionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPolicyDefinitionsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPolicyDefinitionsGetSample.ts index a48a56f0e18c..a51e37b4ee5c 100644 --- a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPolicyDefinitionsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPolicyDefinitionsGetSample.ts @@ -33,7 +33,7 @@ async function getServiceEndpointDefinitionInServiceEndpointPolicy() { subscriptionId, resourceGroupName, serviceEndpointPolicyName, - serviceEndpointPolicyDefinitionName + serviceEndpointPolicyDefinitionName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPolicyDefinitionsListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPolicyDefinitionsListByResourceGroupSample.ts index b2eec249b93b..fd04485988dd 100644 --- a/sdk/network/arm-network-rest/samples-dev/serviceEndpointPolicyDefinitionsListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/serviceEndpointPolicyDefinitionsListByResourceGroupSample.ts @@ -32,7 +32,7 @@ async function listServiceEndpointDefinitionsInServiceEndPointPolicy() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions", subscriptionId, resourceGroupName, - serviceEndpointPolicyName + serviceEndpointPolicyName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/serviceTagInformationListSample.ts b/sdk/network/arm-network-rest/samples-dev/serviceTagInformationListSample.ts index 5695cd8b274e..6530fcf39cfa 100644 --- a/sdk/network/arm-network-rest/samples-dev/serviceTagInformationListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/serviceTagInformationListSample.ts @@ -30,7 +30,7 @@ async function getListOfServiceTags() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/serviceTagDetails", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); @@ -60,7 +60,7 @@ async function getListOfServiceTagsWithNoAddressPrefixes() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/serviceTagDetails", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); @@ -90,7 +90,7 @@ async function getListOfServiceTagsWithTagName() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/serviceTagDetails", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/serviceTagsListSample.ts b/sdk/network/arm-network-rest/samples-dev/serviceTagsListSample.ts index 55b111422c5b..69af7d1d971a 100644 --- a/sdk/network/arm-network-rest/samples-dev/serviceTagsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/serviceTagsListSample.ts @@ -27,7 +27,7 @@ async function getListOfServiceTags() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/serviceTags", subscriptionId, - location + location, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/staticMembersCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/staticMembersCreateOrUpdateSample.ts index 13b1d6716e76..9e6b4f1de5bf 100644 --- a/sdk/network/arm-network-rest/samples-dev/staticMembersCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/staticMembersCreateOrUpdateSample.ts @@ -41,7 +41,7 @@ async function staticMemberPut() { resourceGroupName, networkManagerName, networkGroupName, - staticMemberName + staticMemberName, ) .put(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/staticMembersDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/staticMembersDeleteSample.ts index 9530936f91e3..165ad2d836fe 100644 --- a/sdk/network/arm-network-rest/samples-dev/staticMembersDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/staticMembersDeleteSample.ts @@ -35,7 +35,7 @@ async function staticMembersDelete() { resourceGroupName, networkManagerName, networkGroupName, - staticMemberName + staticMemberName, ) .delete(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/staticMembersGetSample.ts b/sdk/network/arm-network-rest/samples-dev/staticMembersGetSample.ts index 2182013cdc2d..a4fbe2576098 100644 --- a/sdk/network/arm-network-rest/samples-dev/staticMembersGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/staticMembersGetSample.ts @@ -33,7 +33,7 @@ async function staticMembersGet() { resourceGroupName, networkManagerName, networkGroupName, - staticMemberName + staticMemberName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/staticMembersListSample.ts b/sdk/network/arm-network-rest/samples-dev/staticMembersListSample.ts index 8066d76eae88..91f0df81b80a 100644 --- a/sdk/network/arm-network-rest/samples-dev/staticMembersListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/staticMembersListSample.ts @@ -34,7 +34,7 @@ async function staticMembersList() { subscriptionId, resourceGroupName, networkManagerName, - networkGroupName + networkGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/subnetsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/subnetsCreateOrUpdateSample.ts index 3a6297534c5c..396a0777963f 100644 --- a/sdk/network/arm-network-rest/samples-dev/subnetsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/subnetsCreateOrUpdateSample.ts @@ -35,7 +35,7 @@ async function createSubnet() { subscriptionId, resourceGroupName, virtualNetworkName, - subnetName + subnetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -67,7 +67,7 @@ async function createSubnetWithADelegation() { subscriptionId, resourceGroupName, virtualNetworkName, - subnetName + subnetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -104,7 +104,7 @@ async function createSubnetWithServiceEndpoints() { subscriptionId, resourceGroupName, virtualNetworkName, - subnetName + subnetName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/subnetsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/subnetsDeleteSample.ts index 627c54a8669f..5f449a1ff5ec 100644 --- a/sdk/network/arm-network-rest/samples-dev/subnetsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/subnetsDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteSubnet() { subscriptionId, resourceGroupName, virtualNetworkName, - subnetName + subnetName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/subnetsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/subnetsGetSample.ts index b55a24a13157..3d527fca568e 100644 --- a/sdk/network/arm-network-rest/samples-dev/subnetsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/subnetsGetSample.ts @@ -31,7 +31,7 @@ async function getSubnet() { subscriptionId, resourceGroupName, virtualNetworkName, - subnetName + subnetName, ) .get(options); console.log(result); @@ -60,7 +60,7 @@ async function getSubnetWithADelegation() { subscriptionId, resourceGroupName, virtualNetworkName, - subnetName + subnetName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/subnetsListSample.ts b/sdk/network/arm-network-rest/samples-dev/subnetsListSample.ts index ca9634446c2d..59c4eaf62344 100644 --- a/sdk/network/arm-network-rest/samples-dev/subnetsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/subnetsListSample.ts @@ -32,7 +32,7 @@ async function listSubnets() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/subnetsPrepareNetworkPoliciesSample.ts b/sdk/network/arm-network-rest/samples-dev/subnetsPrepareNetworkPoliciesSample.ts index be71001b3181..c5ffafaa3b52 100644 --- a/sdk/network/arm-network-rest/samples-dev/subnetsPrepareNetworkPoliciesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/subnetsPrepareNetworkPoliciesSample.ts @@ -35,7 +35,7 @@ async function prepareNetworkPolicies() { subscriptionId, resourceGroupName, virtualNetworkName, - subnetName + subnetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/subnetsUnprepareNetworkPoliciesSample.ts b/sdk/network/arm-network-rest/samples-dev/subnetsUnprepareNetworkPoliciesSample.ts index 1d600f249bdf..4ae5973dba35 100644 --- a/sdk/network/arm-network-rest/samples-dev/subnetsUnprepareNetworkPoliciesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/subnetsUnprepareNetworkPoliciesSample.ts @@ -35,7 +35,7 @@ async function unprepareNetworkPolicies() { subscriptionId, resourceGroupName, virtualNetworkName, - subnetName + subnetName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/subscriptionNetworkManagerConnectionsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/subscriptionNetworkManagerConnectionsCreateOrUpdateSample.ts index 08f8d3b24ee9..97f6ff4f3b54 100644 --- a/sdk/network/arm-network-rest/samples-dev/subscriptionNetworkManagerConnectionsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/subscriptionNetworkManagerConnectionsCreateOrUpdateSample.ts @@ -35,7 +35,7 @@ async function createOrUpdateSubscriptionNetworkManagerConnection() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}", subscriptionId, - networkManagerConnectionName + networkManagerConnectionName, ) .put(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/subscriptionNetworkManagerConnectionsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/subscriptionNetworkManagerConnectionsDeleteSample.ts index 8d58e71f8b2f..9cc0c9155e54 100644 --- a/sdk/network/arm-network-rest/samples-dev/subscriptionNetworkManagerConnectionsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/subscriptionNetworkManagerConnectionsDeleteSample.ts @@ -29,7 +29,7 @@ async function deleteSubscriptionNetworkManagerConnection() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}", subscriptionId, - networkManagerConnectionName + networkManagerConnectionName, ) .delete(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/subscriptionNetworkManagerConnectionsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/subscriptionNetworkManagerConnectionsGetSample.ts index 19bab9f1744c..0c43bf282142 100644 --- a/sdk/network/arm-network-rest/samples-dev/subscriptionNetworkManagerConnectionsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/subscriptionNetworkManagerConnectionsGetSample.ts @@ -29,7 +29,7 @@ async function getSubscriptionNetworkManagerConnection() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}", subscriptionId, - networkManagerConnectionName + networkManagerConnectionName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/subscriptionNetworkManagerConnectionsListSample.ts b/sdk/network/arm-network-rest/samples-dev/subscriptionNetworkManagerConnectionsListSample.ts index 7ad3585b5c46..19904480d925 100644 --- a/sdk/network/arm-network-rest/samples-dev/subscriptionNetworkManagerConnectionsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/subscriptionNetworkManagerConnectionsListSample.ts @@ -28,7 +28,7 @@ async function listSubscriptionNetworkManagerConnection() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/supportedSecurityProvidersSample.ts b/sdk/network/arm-network-rest/samples-dev/supportedSecurityProvidersSample.ts index 0da3e9f0093c..b264037720e8 100644 --- a/sdk/network/arm-network-rest/samples-dev/supportedSecurityProvidersSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/supportedSecurityProvidersSample.ts @@ -31,7 +31,7 @@ async function supportedSecurityProviders() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/supportedSecurityProviders", subscriptionId, resourceGroupName, - virtualWANName + virtualWANName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/usagesListSample.ts b/sdk/network/arm-network-rest/samples-dev/usagesListSample.ts index c1b01f30a8a3..020b9b997efc 100644 --- a/sdk/network/arm-network-rest/samples-dev/usagesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/usagesListSample.ts @@ -30,7 +30,7 @@ async function listUsages() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/usages", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); @@ -60,7 +60,7 @@ async function listUsagesSpacedLocation() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/usages", subscriptionId, - location + location, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vipSwapCreateSample.ts b/sdk/network/arm-network-rest/samples-dev/vipSwapCreateSample.ts index 4c560bd19a1d..dfab02803169 100644 --- a/sdk/network/arm-network-rest/samples-dev/vipSwapCreateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vipSwapCreateSample.ts @@ -35,7 +35,7 @@ async function putVipSwapOperation() { subscriptionId, groupName, resourceName, - singletonResource + singletonResource, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vipSwapGetSample.ts b/sdk/network/arm-network-rest/samples-dev/vipSwapGetSample.ts index fdf2fb85fc9a..edf0b732023c 100644 --- a/sdk/network/arm-network-rest/samples-dev/vipSwapGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vipSwapGetSample.ts @@ -31,7 +31,7 @@ async function getSwapResource() { subscriptionId, groupName, resourceName, - singletonResource + singletonResource, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/vipSwapListSample.ts b/sdk/network/arm-network-rest/samples-dev/vipSwapListSample.ts index 96a91010d867..05ebbadb6eb0 100644 --- a/sdk/network/arm-network-rest/samples-dev/vipSwapListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vipSwapListSample.ts @@ -29,7 +29,7 @@ async function getSwapResourceList() { "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Compute/cloudServices/{resourceName}/providers/Microsoft.Network/cloudServiceSlots", subscriptionId, groupName, - resourceName + resourceName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualApplianceSitesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualApplianceSitesCreateOrUpdateSample.ts index 94241885da01..737198737bc9 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualApplianceSitesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualApplianceSitesCreateOrUpdateSample.ts @@ -42,7 +42,7 @@ async function createNetworkVirtualApplianceSite() { subscriptionId, resourceGroupName, networkVirtualApplianceName, - siteName + siteName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualApplianceSitesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualApplianceSitesDeleteSample.ts index 0a8de0c17ddb..3ac344f3c662 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualApplianceSitesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualApplianceSitesDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteNetworkVirtualApplianceSite() { subscriptionId, resourceGroupName, networkVirtualApplianceName, - siteName + siteName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualApplianceSitesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualApplianceSitesGetSample.ts index 6257c3435e73..ca20179169cd 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualApplianceSitesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualApplianceSitesGetSample.ts @@ -33,7 +33,7 @@ async function getNetworkVirtualApplianceSite() { subscriptionId, resourceGroupName, networkVirtualApplianceName, - siteName + siteName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualApplianceSitesListSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualApplianceSitesListSample.ts index 8b4f6d1c0988..41f2e5dd7337 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualApplianceSitesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualApplianceSitesListSample.ts @@ -32,7 +32,7 @@ async function listAllNetworkVirtualApplianceSitesForAGivenNetworkVirtualApplian "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/virtualApplianceSites", subscriptionId, resourceGroupName, - networkVirtualApplianceName + networkVirtualApplianceName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualApplianceSkusGetSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualApplianceSkusGetSample.ts index 68928d6e9ca0..b64ef2421026 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualApplianceSkusGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualApplianceSkusGetSample.ts @@ -29,7 +29,7 @@ async function networkVirtualApplianceSkuGet() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualApplianceSkus/{skuName}", subscriptionId, - skuName + skuName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualApplianceSkusListSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualApplianceSkusListSample.ts index f2067185978c..016044e281f4 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualApplianceSkusListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualApplianceSkusListSample.ts @@ -28,7 +28,7 @@ async function networkVirtualApplianceSkuListResult() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualApplianceSkus", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionCreateOrUpdateSample.ts index b1f5cde64ebf..d5f994829a16 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionCreateOrUpdateSample.ts @@ -43,7 +43,7 @@ async function virtualHubRouteTableV2Put() { subscriptionId, resourceGroupName, virtualHubName, - connectionName + connectionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionDeleteSample.ts index a446a44e758c..5437d115e985 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionDeleteSample.ts @@ -34,7 +34,7 @@ async function virtualHubRouteTableV2Delete() { subscriptionId, resourceGroupName, virtualHubName, - connectionName + connectionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionGetSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionGetSample.ts index b7895bc6bf42..57f247885572 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionGetSample.ts @@ -33,7 +33,7 @@ async function virtualHubVirtualHubRouteTableV2Get() { subscriptionId, resourceGroupName, virtualHubName, - connectionName + connectionName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionsListAdvertisedRoutesSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionsListAdvertisedRoutesSample.ts index f3e74f5f0a8a..d92e5d5892cb 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionsListAdvertisedRoutesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionsListAdvertisedRoutesSample.ts @@ -34,7 +34,7 @@ async function virtualRouterPeerListAdvertisedRoutes() { subscriptionId, resourceGroupName, hubName, - connectionName + connectionName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionsListLearnedRoutesSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionsListLearnedRoutesSample.ts index d87275c11658..12913ead0e0c 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionsListLearnedRoutesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionsListLearnedRoutesSample.ts @@ -34,7 +34,7 @@ async function virtualRouterPeerListLearnedRoutes() { subscriptionId, resourceGroupName, hubName, - connectionName + connectionName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionsListSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionsListSample.ts index 124ea93fec61..a2ea29fa9f48 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubBgpConnectionsListSample.ts @@ -32,7 +32,7 @@ async function virtualHubRouteTableV2List() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/bgpConnections", subscriptionId, resourceGroupName, - virtualHubName + virtualHubName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubIPConfigurationCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubIPConfigurationCreateOrUpdateSample.ts index ac9387bff032..e1fda20a4454 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubIPConfigurationCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubIPConfigurationCreateOrUpdateSample.ts @@ -41,7 +41,7 @@ async function virtualHubIPConfigurationPut() { subscriptionId, resourceGroupName, virtualHubName, - ipConfigName + ipConfigName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubIPConfigurationDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubIPConfigurationDeleteSample.ts index 4edbb7527342..5246900c880b 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubIPConfigurationDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubIPConfigurationDeleteSample.ts @@ -34,7 +34,7 @@ async function virtualHubIPConfigurationDelete() { subscriptionId, resourceGroupName, virtualHubName, - ipConfigName + ipConfigName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubIPConfigurationGetSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubIPConfigurationGetSample.ts index 905d8348ac0f..5fc4ae78c7a2 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubIPConfigurationGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubIPConfigurationGetSample.ts @@ -33,7 +33,7 @@ async function virtualHubVirtualHubRouteTableV2Get() { subscriptionId, resourceGroupName, virtualHubName, - ipConfigName + ipConfigName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubIPConfigurationListSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubIPConfigurationListSample.ts index 6de419e59b2c..c92158d8247c 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubIPConfigurationListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubIPConfigurationListSample.ts @@ -32,7 +32,7 @@ async function virtualHubRouteTableV2List() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/ipConfigurations", subscriptionId, resourceGroupName, - virtualHubName + virtualHubName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubRouteTableV2SCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubRouteTableV2SCreateOrUpdateSample.ts index 97bbee13733a..9fd761ae4737 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubRouteTableV2SCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubRouteTableV2SCreateOrUpdateSample.ts @@ -53,7 +53,7 @@ async function virtualHubRouteTableV2Put() { subscriptionId, resourceGroupName, virtualHubName, - routeTableName + routeTableName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubRouteTableV2SDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubRouteTableV2SDeleteSample.ts index 8571eefc583f..11556f0242ea 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubRouteTableV2SDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubRouteTableV2SDeleteSample.ts @@ -34,7 +34,7 @@ async function virtualHubRouteTableV2Delete() { subscriptionId, resourceGroupName, virtualHubName, - routeTableName + routeTableName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubRouteTableV2SGetSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubRouteTableV2SGetSample.ts index bc89ae640144..20bda96f0b38 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubRouteTableV2SGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubRouteTableV2SGetSample.ts @@ -33,7 +33,7 @@ async function virtualHubVirtualHubRouteTableV2Get() { subscriptionId, resourceGroupName, virtualHubName, - routeTableName + routeTableName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubRouteTableV2SListSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubRouteTableV2SListSample.ts index d891e07295e5..4acfe3cdfc16 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubRouteTableV2SListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubRouteTableV2SListSample.ts @@ -32,7 +32,7 @@ async function virtualHubRouteTableV2List() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeTables", subscriptionId, resourceGroupName, - virtualHubName + virtualHubName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubsCreateOrUpdateSample.ts index 229bf33072db..39d55a4885bc 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubsCreateOrUpdateSample.ts @@ -43,7 +43,7 @@ async function virtualHubPut() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}", subscriptionId, resourceGroupName, - virtualHubName + virtualHubName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubsDeleteSample.ts index 20b1ff6d95de..426cf1a2b0a3 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubsDeleteSample.ts @@ -32,7 +32,7 @@ async function virtualHubDelete() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}", subscriptionId, resourceGroupName, - virtualHubName + virtualHubName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubsGetEffectiveVirtualHubRoutesSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubsGetEffectiveVirtualHubRoutesSample.ts index 74c51bfaf24d..427b5e558552 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubsGetEffectiveVirtualHubRoutesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubsGetEffectiveVirtualHubRoutesSample.ts @@ -37,7 +37,7 @@ async function effectiveRoutesForAConnectionResource() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/effectiveRoutes", subscriptionId, resourceGroupName, - virtualHubName + virtualHubName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -71,7 +71,7 @@ async function effectiveRoutesForARouteTableResource() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/effectiveRoutes", subscriptionId, resourceGroupName, - virtualHubName + virtualHubName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -101,7 +101,7 @@ async function effectiveRoutesForTheVirtualHub() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/effectiveRoutes", subscriptionId, resourceGroupName, - virtualHubName + virtualHubName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubsGetInboundRoutesSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubsGetInboundRoutesSample.ts index 1f52ae267792..7923c2a0997b 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubsGetInboundRoutesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubsGetInboundRoutesSample.ts @@ -37,7 +37,7 @@ async function inboundRoutesForTheVirtualHubOnAParticularConnection() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/inboundRoutes", subscriptionId, resourceGroupName, - virtualHubName + virtualHubName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubsGetOutboundRoutesSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubsGetOutboundRoutesSample.ts index 144b42f08a3b..55267050b513 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubsGetOutboundRoutesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubsGetOutboundRoutesSample.ts @@ -37,7 +37,7 @@ async function outboundRoutesForTheVirtualHubOnAParticularConnection() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/outboundRoutes", subscriptionId, resourceGroupName, - virtualHubName + virtualHubName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubsGetSample.ts index b3a6a649ba06..a93be42f16f0 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubsGetSample.ts @@ -29,7 +29,7 @@ async function virtualHubGet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}", subscriptionId, resourceGroupName, - virtualHubName + virtualHubName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubsListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubsListByResourceGroupSample.ts index 2551a3e0b151..605c2d75d7b2 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubsListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubsListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function virtualHubListByResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualHubsUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualHubsUpdateTagsSample.ts index 50bb3a266d9f..1d476dd1212b 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualHubsUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualHubsUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function virtualHubUpdate() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}", subscriptionId, resourceGroupName, - virtualHubName + virtualHubName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsCreateOrUpdateSample.ts index 8400b5ab239f..89a94f6e624f 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsCreateOrUpdateSample.ts @@ -110,7 +110,7 @@ async function createVirtualNetworkGatewayConnectionS2S() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}", subscriptionId, resourceGroupName, - virtualNetworkGatewayConnectionName + virtualNetworkGatewayConnectionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsDeleteSample.ts index 149454da4761..bdf45b05bf1d 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteVirtualNetworkGatewayConnection() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}", subscriptionId, resourceGroupName, - virtualNetworkGatewayConnectionName + virtualNetworkGatewayConnectionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsGetIkeSasSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsGetIkeSasSample.ts index 3605a6194fd9..cfc2502596c6 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsGetIkeSasSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsGetIkeSasSample.ts @@ -32,7 +32,7 @@ async function getVirtualNetworkGatewayConnectionIkeSa() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/getikesas", subscriptionId, resourceGroupName, - virtualNetworkGatewayConnectionName + virtualNetworkGatewayConnectionName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsGetSample.ts index ae67d3dc03c9..b69f2d2bf92a 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsGetSample.ts @@ -31,7 +31,7 @@ async function getVirtualNetworkGatewayConnection() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}", subscriptionId, resourceGroupName, - virtualNetworkGatewayConnectionName + virtualNetworkGatewayConnectionName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsGetSharedKeySample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsGetSharedKeySample.ts index 76cd24b53684..cfda8a284f1b 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsGetSharedKeySample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsGetSharedKeySample.ts @@ -31,7 +31,7 @@ async function getVirtualNetworkGatewayConnectionSharedKey() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey", subscriptionId, resourceGroupName, - virtualNetworkGatewayConnectionName + virtualNetworkGatewayConnectionName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsListSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsListSample.ts index acce15e90346..3826a6077ecd 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsListSample.ts @@ -30,7 +30,7 @@ async function listVirtualNetworkGatewayConnectionsinResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsResetConnectionSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsResetConnectionSample.ts index 6d07df49c96e..918579f15554 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsResetConnectionSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsResetConnectionSample.ts @@ -32,7 +32,7 @@ async function resetVirtualNetworkGatewayConnection() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/resetconnection", subscriptionId, resourceGroupName, - virtualNetworkGatewayConnectionName + virtualNetworkGatewayConnectionName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsResetSharedKeySample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsResetSharedKeySample.ts index cbb42eee5b8a..e0910a854356 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsResetSharedKeySample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsResetSharedKeySample.ts @@ -33,7 +33,7 @@ async function resetVirtualNetworkGatewayConnectionSharedKey() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey/reset", subscriptionId, resourceGroupName, - virtualNetworkGatewayConnectionName + virtualNetworkGatewayConnectionName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsSetSharedKeySample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsSetSharedKeySample.ts index c0c3913cd799..0828da5a1d62 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsSetSharedKeySample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsSetSharedKeySample.ts @@ -33,7 +33,7 @@ async function setVirtualNetworkGatewayConnectionSharedKey() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey", subscriptionId, resourceGroupName, - virtualNetworkGatewayConnectionName + virtualNetworkGatewayConnectionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsStartPacketCaptureSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsStartPacketCaptureSample.ts index 07c3f7c0a06f..3cc897623663 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsStartPacketCaptureSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsStartPacketCaptureSample.ts @@ -36,7 +36,7 @@ async function startPacketCaptureOnVirtualNetworkGatewayConnectionWithFilter() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/startPacketCapture", subscriptionId, resourceGroupName, - virtualNetworkGatewayConnectionName + virtualNetworkGatewayConnectionName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -65,7 +65,7 @@ async function startPacketCaptureOnVirtualNetworkGatewayConnectionWithoutFilter( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/startPacketCapture", subscriptionId, resourceGroupName, - virtualNetworkGatewayConnectionName + virtualNetworkGatewayConnectionName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsStopPacketCaptureSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsStopPacketCaptureSample.ts index cd1e76bc2277..8bdb26184bf5 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsStopPacketCaptureSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsStopPacketCaptureSample.ts @@ -36,7 +36,7 @@ async function stopPacketCaptureOnVirtualNetworkGatewayConnection() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/stopPacketCapture", subscriptionId, resourceGroupName, - virtualNetworkGatewayConnectionName + virtualNetworkGatewayConnectionName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsUpdateTagsSample.ts index 039815492b2f..4d6901730b74 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayConnectionsUpdateTagsSample.ts @@ -33,7 +33,7 @@ async function updateVirtualNetworkGatewayConnectionTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}", subscriptionId, resourceGroupName, - virtualNetworkGatewayConnectionName + virtualNetworkGatewayConnectionName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayNatRulesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayNatRulesCreateOrUpdateSample.ts index 8eb866aba629..e414e05228d0 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayNatRulesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayNatRulesCreateOrUpdateSample.ts @@ -44,7 +44,7 @@ async function virtualNetworkGatewayNatRulePut() { subscriptionId, resourceGroupName, virtualNetworkGatewayName, - natRuleName + natRuleName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayNatRulesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayNatRulesDeleteSample.ts index c679d582696f..983cb3a1a30f 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayNatRulesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayNatRulesDeleteSample.ts @@ -34,7 +34,7 @@ async function virtualNetworkGatewayNatRuleDelete() { subscriptionId, resourceGroupName, virtualNetworkGatewayName, - natRuleName + natRuleName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayNatRulesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayNatRulesGetSample.ts index a616b5e2bc73..ead3d9637bd0 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayNatRulesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayNatRulesGetSample.ts @@ -33,7 +33,7 @@ async function virtualNetworkGatewayNatRuleGet() { subscriptionId, resourceGroupName, virtualNetworkGatewayName, - natRuleName + natRuleName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySample.ts index 150c14b698db..40e8d66a4477 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySample.ts @@ -32,7 +32,7 @@ async function virtualNetworkGatewayNatRuleList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/natRules", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysCreateOrUpdateSample.ts index 1ece7d6886d5..ae5641f974fa 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysCreateOrUpdateSample.ts @@ -101,7 +101,7 @@ async function updateVirtualNetworkGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysDeleteSample.ts index 4f368dc0c05e..5cc8e4a822bb 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteVirtualNetworkGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsSample.ts index ace96b563671..e68aeb43e0fc 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsSample.ts @@ -33,7 +33,7 @@ async function disconnectVpnConnectionsFromVirtualNetworkGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/disconnectVirtualNetworkGatewayVpnConnections", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGenerateVpnProfileSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGenerateVpnProfileSample.ts index 0cc68b7c0268..6d49c0504732 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGenerateVpnProfileSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGenerateVpnProfileSample.ts @@ -33,7 +33,7 @@ async function generateVirtualNetworkGatewayVpnProfile() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnprofile", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGeneratevpnclientpackageSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGeneratevpnclientpackageSample.ts index b92a38c5cd85..bdd0d32d589c 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGeneratevpnclientpackageSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGeneratevpnclientpackageSample.ts @@ -33,7 +33,7 @@ async function generateVpnClientPackage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnclientpackage", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetAdvertisedRoutesSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetAdvertisedRoutesSample.ts index d887373a60ef..f9e5adbc442b 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetAdvertisedRoutesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetAdvertisedRoutesSample.ts @@ -32,7 +32,7 @@ async function getVirtualNetworkGatewayAdvertisedRoutes() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getAdvertisedRoutes", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetBgpPeerStatusSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetBgpPeerStatusSample.ts index 5a1318f07cb2..101a527ad13b 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetBgpPeerStatusSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetBgpPeerStatusSample.ts @@ -32,7 +32,7 @@ async function getVirtualNetworkGatewayBgpPeerStatus() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getBgpPeerStatus", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetLearnedRoutesSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetLearnedRoutesSample.ts index 16ea9e3bf2a6..72d3c5f48a52 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetLearnedRoutesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetLearnedRoutesSample.ts @@ -32,7 +32,7 @@ async function getVirtualNetworkGatewayLearnedRoutes() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetSample.ts index 6cf4747416c2..ef49de9116a2 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetSample.ts @@ -31,7 +31,7 @@ async function getVirtualNetworkGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetVpnProfilePackageUrlSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetVpnProfilePackageUrlSample.ts index 48987621f5f1..0d97799fa907 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetVpnProfilePackageUrlSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetVpnProfilePackageUrlSample.ts @@ -32,7 +32,7 @@ async function getVirtualNetworkGatewayVpnProfilePackageUrl() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnprofilepackageurl", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetVpnclientConnectionHealthSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetVpnclientConnectionHealthSample.ts index 36efaeefa9fd..196940ed04ca 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetVpnclientConnectionHealthSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetVpnclientConnectionHealthSample.ts @@ -32,7 +32,7 @@ async function getVirtualNetworkGatewayVpnclientConnectionHealth() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getVpnClientConnectionHealth", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetVpnclientIpsecParametersSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetVpnclientIpsecParametersSample.ts index 215d0504ffd0..79497ff9c27c 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetVpnclientIpsecParametersSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysGetVpnclientIpsecParametersSample.ts @@ -32,7 +32,7 @@ async function getVirtualNetworkGatewayVpnClientIpsecParameters() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnclientipsecparameters", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysListConnectionsSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysListConnectionsSample.ts index c96d3702aaf8..4454d4f11455 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysListConnectionsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysListConnectionsSample.ts @@ -32,7 +32,7 @@ async function virtualNetworkGatewaysListConnections() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/connections", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysListSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysListSample.ts index 9b567dfbf376..097a0efb7046 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysListSample.ts @@ -30,7 +30,7 @@ async function listVirtualNetworkGatewaysinResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysResetSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysResetSample.ts index 2ea47644e60b..4eaaf83ee526 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysResetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysResetSample.ts @@ -32,7 +32,7 @@ async function resetVirtualNetworkGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/reset", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysResetVpnClientSharedKeySample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysResetVpnClientSharedKeySample.ts index 5b1f2d778e51..bb3964e6f4a1 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysResetVpnClientSharedKeySample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysResetVpnClientSharedKeySample.ts @@ -32,7 +32,7 @@ async function resetVpnClientSharedKey() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/resetvpnclientsharedkey", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysSetVpnclientIpsecParametersSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysSetVpnclientIpsecParametersSample.ts index 412df7f466d4..55c52a3b5188 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysSetVpnclientIpsecParametersSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysSetVpnclientIpsecParametersSample.ts @@ -42,7 +42,7 @@ async function setVirtualNetworkGatewayVpnClientIpsecParameters() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/setvpnclientipsecparameters", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysStartPacketCaptureSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysStartPacketCaptureSample.ts index 51c33b13be1a..4df6514a1f23 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysStartPacketCaptureSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysStartPacketCaptureSample.ts @@ -36,7 +36,7 @@ async function startPacketCaptureOnVirtualNetworkGatewayWithFilter() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/startPacketCapture", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -65,7 +65,7 @@ async function startPacketCaptureOnVirtualNetworkGatewayWithoutFilter() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/startPacketCapture", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysStopPacketCaptureSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysStopPacketCaptureSample.ts index 00f39dd25ec1..61865379159d 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysStopPacketCaptureSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysStopPacketCaptureSample.ts @@ -36,7 +36,7 @@ async function stopPacketCaptureOnVirtualNetworkGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/stopPacketCapture", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysSupportedVpnDevicesSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysSupportedVpnDevicesSample.ts index 2c4d6302b3cc..cacf1a91c9fb 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysSupportedVpnDevicesSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysSupportedVpnDevicesSample.ts @@ -31,7 +31,7 @@ async function listVirtualNetworkGatewaySupportedVpnDevices() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/supportedvpndevices", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .post(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysUpdateTagsSample.ts index 9909c865fa11..8be303f10da4 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysUpdateTagsSample.ts @@ -33,7 +33,7 @@ async function updateVirtualNetworkGatewayTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}", subscriptionId, resourceGroupName, - virtualNetworkGatewayName + virtualNetworkGatewayName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysVpnDeviceConfigurationScriptSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysVpnDeviceConfigurationScriptSample.ts index 8ba4543708a5..cb9dc4fbe171 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysVpnDeviceConfigurationScriptSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkGatewaysVpnDeviceConfigurationScriptSample.ts @@ -36,7 +36,7 @@ async function getVpnDeviceConfigurationScript() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/vpndeviceconfigurationscript", subscriptionId, resourceGroupName, - virtualNetworkGatewayConnectionName + virtualNetworkGatewayConnectionName, ) .post(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkPeeringsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkPeeringsCreateOrUpdateSample.ts index ed2947674ef3..d8bce55f4733 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkPeeringsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkPeeringsCreateOrUpdateSample.ts @@ -45,7 +45,7 @@ async function createPeering() { subscriptionId, resourceGroupName, virtualNetworkName, - virtualNetworkPeeringName + virtualNetworkPeeringName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -87,7 +87,7 @@ async function createPeeringWithRemoteVirtualNetworkEncryption() { subscriptionId, resourceGroupName, virtualNetworkName, - virtualNetworkPeeringName + virtualNetworkPeeringName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -132,7 +132,7 @@ async function syncPeering() { subscriptionId, resourceGroupName, virtualNetworkName, - virtualNetworkPeeringName + virtualNetworkPeeringName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkPeeringsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkPeeringsDeleteSample.ts index f828812e7185..6c30def4ea36 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkPeeringsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkPeeringsDeleteSample.ts @@ -34,7 +34,7 @@ async function deletePeering() { subscriptionId, resourceGroupName, virtualNetworkName, - virtualNetworkPeeringName + virtualNetworkPeeringName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkPeeringsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkPeeringsGetSample.ts index ba6775bca11a..f5157f4bac27 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkPeeringsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkPeeringsGetSample.ts @@ -33,7 +33,7 @@ async function getPeering() { subscriptionId, resourceGroupName, virtualNetworkName, - virtualNetworkPeeringName + virtualNetworkPeeringName, ) .get(options); console.log(result); @@ -62,7 +62,7 @@ async function getPeeringWithRemoteVirtualNetworkEncryption() { subscriptionId, resourceGroupName, virtualNetworkName, - virtualNetworkPeeringName + virtualNetworkPeeringName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkPeeringsListSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkPeeringsListSample.ts index d85a5d8bb287..e6193b6418de 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkPeeringsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkPeeringsListSample.ts @@ -32,7 +32,7 @@ async function listPeerings() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .get(options); const pageData = paginate(client, initialResponse); @@ -64,7 +64,7 @@ async function listPeeringsWithRemoteVirtualNetworkEncryption() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsCreateOrUpdateSample.ts index 66d63bbe71c0..9f57d1209e20 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsCreateOrUpdateSample.ts @@ -40,7 +40,7 @@ async function createVirtualNetworkTap() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}", subscriptionId, resourceGroupName, - tapName + tapName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsDeleteSample.ts index 7c93f08acfc5..e652b92db6b0 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteVirtualNetworkTapResource() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}", subscriptionId, resourceGroupName, - tapName + tapName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsGetSample.ts index d173ad908a78..60319e9ce82b 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsGetSample.ts @@ -31,7 +31,7 @@ async function getVirtualNetworkTap() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}", subscriptionId, resourceGroupName, - tapName + tapName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsListAllSample.ts index 7bae04f864d2..7274d92241d7 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsListAllSample.ts @@ -28,7 +28,7 @@ async function listAllVirtualNetworkTaps() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworkTaps", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsListByResourceGroupSample.ts index 29a76dddfc90..377f7200e8d5 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function listVirtualNetworkTapsInResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsUpdateTagsSample.ts index c0f5a6e568bc..468399235e80 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworkTapsUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateVirtualNetworkTapTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}", subscriptionId, resourceGroupName, - tapName + tapName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworksCheckIPAddressAvailabilitySample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworksCheckIPAddressAvailabilitySample.ts index 792fa0b8c44e..feb99d386d96 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworksCheckIPAddressAvailabilitySample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworksCheckIPAddressAvailabilitySample.ts @@ -31,7 +31,7 @@ async function checkIPAddressAvailability() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/CheckIPAddressAvailability", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworksCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworksCreateOrUpdateSample.ts index 072ff6282e81..e959a8cabdda 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworksCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworksCreateOrUpdateSample.ts @@ -39,7 +39,7 @@ async function createVirtualNetwork() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -76,7 +76,7 @@ async function createVirtualNetworkWithBgpCommunities() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -125,7 +125,7 @@ async function createVirtualNetworkWithDelegatedSubnets() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -162,7 +162,7 @@ async function createVirtualNetworkWithEncryption() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -206,7 +206,7 @@ async function createVirtualNetworkWithServiceEndpoints() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -255,7 +255,7 @@ async function createVirtualNetworkWithServiceEndpointsAndServiceEndpointPolicy( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -291,7 +291,7 @@ async function createVirtualNetworkWithSubnet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); @@ -332,7 +332,7 @@ async function createVirtualNetworkWithSubnetContainingAddressPrefixes() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworksDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworksDeleteSample.ts index 5bed5e313e74..e4f54c50b153 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworksDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworksDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteVirtualNetwork() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworksGetSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworksGetSample.ts index 71e16dc5bce3..c1e88d8a6879 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworksGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworksGetSample.ts @@ -31,7 +31,7 @@ async function getVirtualNetwork() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .get(options); console.log(result); @@ -58,7 +58,7 @@ async function getVirtualNetworkWithADelegatedSubnet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .get(options); console.log(result); @@ -85,7 +85,7 @@ async function getVirtualNetworkWithServiceAssociationLinks() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworksListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworksListAllSample.ts index f973f5226401..c8620a54db0d 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworksListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworksListAllSample.ts @@ -28,7 +28,7 @@ async function listAllVirtualNetworks() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworksListDdosProtectionStatusSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworksListDdosProtectionStatusSample.ts index 0ff72b4bc41b..ddbef8679dc0 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworksListDdosProtectionStatusSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworksListDdosProtectionStatusSample.ts @@ -33,7 +33,7 @@ async function getDdosProtectionStatusOfAVirtualNetwork() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/ddosProtectionStatus", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .post(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworksListSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworksListSample.ts index 751d7cbb58a3..2185fa93d20e 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworksListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworksListSample.ts @@ -30,7 +30,7 @@ async function listVirtualNetworksInResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworksListUsageSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworksListUsageSample.ts index 30dcbb92f573..e10cfede4545 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworksListUsageSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworksListUsageSample.ts @@ -32,7 +32,7 @@ async function vnetGetUsage() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/usages", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualNetworksUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualNetworksUpdateTagsSample.ts index 19bf7e3908ee..467f61392154 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualNetworksUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualNetworksUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function updateVirtualNetworkTags() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualRouterPeeringsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualRouterPeeringsCreateOrUpdateSample.ts index 567536e94a2e..9f142c4b797c 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualRouterPeeringsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualRouterPeeringsCreateOrUpdateSample.ts @@ -35,7 +35,7 @@ async function createVirtualRouterPeering() { subscriptionId, resourceGroupName, virtualRouterName, - peeringName + peeringName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualRouterPeeringsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualRouterPeeringsDeleteSample.ts index bc549a6edc8a..4233c4544811 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualRouterPeeringsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualRouterPeeringsDeleteSample.ts @@ -34,7 +34,7 @@ async function deleteVirtualRouterPeering() { subscriptionId, resourceGroupName, virtualRouterName, - peeringName + peeringName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualRouterPeeringsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualRouterPeeringsGetSample.ts index 97772342d545..3f9d9e641bbe 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualRouterPeeringsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualRouterPeeringsGetSample.ts @@ -33,7 +33,7 @@ async function getVirtualRouterPeering() { subscriptionId, resourceGroupName, virtualRouterName, - peeringName + peeringName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualRouterPeeringsListSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualRouterPeeringsListSample.ts index d929c231d0bc..32cdc33a99f8 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualRouterPeeringsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualRouterPeeringsListSample.ts @@ -32,7 +32,7 @@ async function listAllVirtualRouterPeeringsForAGivenVirtualRouter() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings", subscriptionId, resourceGroupName, - virtualRouterName + virtualRouterName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualRoutersCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualRoutersCreateOrUpdateSample.ts index aef365d41288..667bf8ca6cb6 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualRoutersCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualRoutersCreateOrUpdateSample.ts @@ -41,7 +41,7 @@ async function createVirtualRouter() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}", subscriptionId, resourceGroupName, - virtualRouterName + virtualRouterName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualRoutersDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualRoutersDeleteSample.ts index df11b00d48a6..133d2ce460d9 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualRoutersDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualRoutersDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteVirtualRouter() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}", subscriptionId, resourceGroupName, - virtualRouterName + virtualRouterName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualRoutersGetSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualRoutersGetSample.ts index be611c74a718..7d4596cb2fd8 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualRoutersGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualRoutersGetSample.ts @@ -31,7 +31,7 @@ async function getVirtualRouter() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}", subscriptionId, resourceGroupName, - virtualRouterName + virtualRouterName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualRoutersListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualRoutersListByResourceGroupSample.ts index 73710b91177d..ff69e7c560f8 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualRoutersListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualRoutersListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function listAllVirtualRouterForAGivenResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualRoutersListSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualRoutersListSample.ts index 672dc978e666..2b914b34a32b 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualRoutersListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualRoutersListSample.ts @@ -28,7 +28,7 @@ async function listAllVirtualRoutersForAGivenSubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualRouters", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualWansCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualWansCreateOrUpdateSample.ts index 91ecaa219c70..8c264c70d4ea 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualWansCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualWansCreateOrUpdateSample.ts @@ -37,7 +37,7 @@ async function virtualWanCreate() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}", subscriptionId, resourceGroupName, - VirtualWANName + VirtualWANName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualWansDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualWansDeleteSample.ts index a133adf76377..a853283afe95 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualWansDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualWansDeleteSample.ts @@ -32,7 +32,7 @@ async function virtualWanDelete() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}", subscriptionId, resourceGroupName, - VirtualWANName + VirtualWANName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualWansGetSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualWansGetSample.ts index a94b8e64911d..b0cd3c4ba39e 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualWansGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualWansGetSample.ts @@ -29,7 +29,7 @@ async function virtualWanGet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}", subscriptionId, resourceGroupName, - VirtualWANName + VirtualWANName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualWansListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualWansListByResourceGroupSample.ts index d5f43a49a0ee..d5515811db23 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualWansListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualWansListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function virtualWanListByResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/virtualWansUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/virtualWansUpdateTagsSample.ts index 1b35663331bc..c428ec524759 100644 --- a/sdk/network/arm-network-rest/samples-dev/virtualWansUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/virtualWansUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function virtualWanUpdate() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}", subscriptionId, resourceGroupName, - VirtualWANName + VirtualWANName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnConnectionsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnConnectionsCreateOrUpdateSample.ts index cfe7c6350a55..c3ac28cec293 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnConnectionsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnConnectionsCreateOrUpdateSample.ts @@ -82,7 +82,7 @@ async function vpnConnectionPut() { subscriptionId, resourceGroupName, gatewayName, - connectionName + connectionName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnConnectionsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnConnectionsDeleteSample.ts index 8f9cd349cb62..3476d8696b65 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnConnectionsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnConnectionsDeleteSample.ts @@ -34,7 +34,7 @@ async function vpnConnectionDelete() { subscriptionId, resourceGroupName, gatewayName, - connectionName + connectionName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnConnectionsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnConnectionsGetSample.ts index 8cb78a5bbaf6..38c22e930e15 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnConnectionsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnConnectionsGetSample.ts @@ -33,7 +33,7 @@ async function vpnConnectionGet() { subscriptionId, resourceGroupName, gatewayName, - connectionName + connectionName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnConnectionsListByVpnGatewaySample.ts b/sdk/network/arm-network-rest/samples-dev/vpnConnectionsListByVpnGatewaySample.ts index 4dc31f23ff8d..6445326356a9 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnConnectionsListByVpnGatewaySample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnConnectionsListByVpnGatewaySample.ts @@ -32,7 +32,7 @@ async function vpnConnectionList() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnConnectionsStartPacketCaptureSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnConnectionsStartPacketCaptureSample.ts index 05e631256c08..26e8afd5252d 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnConnectionsStartPacketCaptureSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnConnectionsStartPacketCaptureSample.ts @@ -39,7 +39,7 @@ async function startPacketCaptureOnVpnConnectionWithFilter() { subscriptionId, resourceGroupName, gatewayName, - vpnConnectionName + vpnConnectionName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -71,7 +71,7 @@ async function startPacketCaptureOnVpnConnectionWithoutFilter() { subscriptionId, resourceGroupName, gatewayName, - vpnConnectionName + vpnConnectionName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnConnectionsStopPacketCaptureSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnConnectionsStopPacketCaptureSample.ts index b114144ff449..7f01af710e7e 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnConnectionsStopPacketCaptureSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnConnectionsStopPacketCaptureSample.ts @@ -39,7 +39,7 @@ async function startPacketCaptureOnVpnConnectionWithoutFilter() { subscriptionId, resourceGroupName, gatewayName, - vpnConnectionName + vpnConnectionName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnGatewaysCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnGatewaysCreateOrUpdateSample.ts index 1a43b42df509..3f5bf05ed910 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnGatewaysCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnGatewaysCreateOrUpdateSample.ts @@ -97,7 +97,7 @@ async function vpnGatewayPut() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnGatewaysDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnGatewaysDeleteSample.ts index 733a3f4f389a..fbed50548714 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnGatewaysDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnGatewaysDeleteSample.ts @@ -32,7 +32,7 @@ async function vpnGatewayDelete() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnGatewaysGetSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnGatewaysGetSample.ts index a6d7e7489f30..3c4beff8cdea 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnGatewaysGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnGatewaysGetSample.ts @@ -29,7 +29,7 @@ async function vpnGatewayGet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnGatewaysListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnGatewaysListByResourceGroupSample.ts index 1f4392c6186f..4bcd0ae5719c 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnGatewaysListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnGatewaysListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function vpnGatewayListByResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnGatewaysResetSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnGatewaysResetSample.ts index 1ff1b8660428..ecc7ba02ef80 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnGatewaysResetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnGatewaysResetSample.ts @@ -32,7 +32,7 @@ async function resetVpnGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/reset", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnGatewaysStartPacketCaptureSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnGatewaysStartPacketCaptureSample.ts index 86676a625bde..7ae906f8734a 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnGatewaysStartPacketCaptureSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnGatewaysStartPacketCaptureSample.ts @@ -36,7 +36,7 @@ async function startPacketCaptureOnVpnGatewayWithFilter() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/startpacketcapture", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); @@ -65,7 +65,7 @@ async function startPacketCaptureOnVpnGatewayWithoutFilter() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/startpacketcapture", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnGatewaysStopPacketCaptureSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnGatewaysStopPacketCaptureSample.ts index 7bd9bf77a78b..047e1ec891d7 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnGatewaysStopPacketCaptureSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnGatewaysStopPacketCaptureSample.ts @@ -36,7 +36,7 @@ async function stopPacketCaptureOnVpnGateway() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/stoppacketcapture", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnGatewaysUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnGatewaysUpdateTagsSample.ts index a700b9be706a..3563b8ca1f82 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnGatewaysUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnGatewaysUpdateTagsSample.ts @@ -33,7 +33,7 @@ async function vpnGatewayUpdate() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}", subscriptionId, resourceGroupName, - gatewayName + gatewayName, ) .patch(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnLinkConnectionsGetIkeSasSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnLinkConnectionsGetIkeSasSample.ts index 2c21bec8169c..29d71e75b8f7 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnLinkConnectionsGetIkeSasSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnLinkConnectionsGetIkeSasSample.ts @@ -36,7 +36,7 @@ async function getVpnLinkConnectionIkeSa() { resourceGroupName, gatewayName, connectionName, - linkConnectionName + linkConnectionName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnLinkConnectionsListByVpnConnectionSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnLinkConnectionsListByVpnConnectionSample.ts index f67e70ba2a2c..294d1696fb2d 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnLinkConnectionsListByVpnConnectionSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnLinkConnectionsListByVpnConnectionSample.ts @@ -34,7 +34,7 @@ async function vpnSiteLinkConnectionList() { subscriptionId, resourceGroupName, gatewayName, - connectionName + connectionName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnLinkConnectionsResetConnectionSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnLinkConnectionsResetConnectionSample.ts index 86d7e95dafc1..3fa810559f36 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnLinkConnectionsResetConnectionSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnLinkConnectionsResetConnectionSample.ts @@ -36,7 +36,7 @@ async function resetVpnLinkConnection() { resourceGroupName, gatewayName, connectionName, - linkConnectionName + linkConnectionName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsAssociatedWithVirtualWanListSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsAssociatedWithVirtualWanListSample.ts index b42bf961bb3e..82ee1b00f860 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsAssociatedWithVirtualWanListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsAssociatedWithVirtualWanListSample.ts @@ -32,7 +32,7 @@ async function getVirtualWanVpnServerConfigurations() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnServerConfigurations", subscriptionId, resourceGroupName, - virtualWANName + virtualWANName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsCreateOrUpdateSample.ts index 73b16f47486e..2dc54d6e76ab 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsCreateOrUpdateSample.ts @@ -116,7 +116,7 @@ async function vpnServerConfigurationCreate() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}", subscriptionId, resourceGroupName, - vpnServerConfigurationName + vpnServerConfigurationName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsDeleteSample.ts index 2de4bfc0b313..ce31a4ed644a 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsDeleteSample.ts @@ -32,7 +32,7 @@ async function vpnServerConfigurationDelete() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}", subscriptionId, resourceGroupName, - vpnServerConfigurationName + vpnServerConfigurationName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsGetSample.ts index c6c1f986d847..9ef031c0b608 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsGetSample.ts @@ -31,7 +31,7 @@ async function vpnServerConfigurationGet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}", subscriptionId, resourceGroupName, - vpnServerConfigurationName + vpnServerConfigurationName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsListByResourceGroupSample.ts index e631d985f104..693c637ca845 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function vpnServerConfigurationListByResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsListSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsListSample.ts index 93667d16dc28..c5b6ce3491c4 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsListSample.ts @@ -28,7 +28,7 @@ async function vpnServerConfigurationList() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnServerConfigurations", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsUpdateTagsSample.ts index c22a94303dd0..7a45452a3b09 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnServerConfigurationsUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function vpnServerConfigurationUpdate() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}", subscriptionId, resourceGroupName, - vpnServerConfigurationName + vpnServerConfigurationName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnSiteLinkConnectionsGetSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnSiteLinkConnectionsGetSample.ts index 941a238f5d8d..58b5efd81d52 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnSiteLinkConnectionsGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnSiteLinkConnectionsGetSample.ts @@ -35,7 +35,7 @@ async function vpnSiteLinkConnectionGet() { resourceGroupName, gatewayName, connectionName, - linkConnectionName + linkConnectionName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnSiteLinksGetSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnSiteLinksGetSample.ts index ea6165aaf06e..e40799512ea7 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnSiteLinksGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnSiteLinksGetSample.ts @@ -31,7 +31,7 @@ async function vpnSiteGet() { subscriptionId, resourceGroupName, vpnSiteName, - vpnSiteLinkName + vpnSiteLinkName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnSiteLinksListByVpnSiteSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnSiteLinksListByVpnSiteSample.ts index 930940a15618..40ebb51680c1 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnSiteLinksListByVpnSiteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnSiteLinksListByVpnSiteSample.ts @@ -32,7 +32,7 @@ async function vpnSiteLinkListByVpnSite() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}/vpnSiteLinks", subscriptionId, resourceGroupName, - vpnSiteName + vpnSiteName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnSitesConfigurationDownloadSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnSitesConfigurationDownloadSample.ts index 1b6b1205530c..b224c5f41e5b 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnSitesConfigurationDownloadSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnSitesConfigurationDownloadSample.ts @@ -39,7 +39,7 @@ async function vpnSitesConfigurationDownload() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnConfiguration", subscriptionId, resourceGroupName, - virtualWANName + virtualWANName, ) .post(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnSitesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnSitesCreateOrUpdateSample.ts index 5962a9544ade..d38a11e66333 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnSitesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnSitesCreateOrUpdateSample.ts @@ -60,7 +60,7 @@ async function vpnSiteCreate() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}", subscriptionId, resourceGroupName, - vpnSiteName + vpnSiteName, ) .put(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnSitesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnSitesDeleteSample.ts index 3ebf347c5e00..aa0a9d049cab 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnSitesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnSitesDeleteSample.ts @@ -32,7 +32,7 @@ async function vpnSiteDelete() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}", subscriptionId, resourceGroupName, - vpnSiteName + vpnSiteName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnSitesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnSitesGetSample.ts index 0465827302ba..dc88d5477dd2 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnSitesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnSitesGetSample.ts @@ -29,7 +29,7 @@ async function vpnSiteGet() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}", subscriptionId, resourceGroupName, - vpnSiteName + vpnSiteName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnSitesListByResourceGroupSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnSitesListByResourceGroupSample.ts index 210d092ec5bd..1900e6744787 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnSitesListByResourceGroupSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnSitesListByResourceGroupSample.ts @@ -30,7 +30,7 @@ async function vpnSiteListByResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/vpnSitesUpdateTagsSample.ts b/sdk/network/arm-network-rest/samples-dev/vpnSitesUpdateTagsSample.ts index d12af73a3527..d0d40e7dca57 100644 --- a/sdk/network/arm-network-rest/samples-dev/vpnSitesUpdateTagsSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/vpnSitesUpdateTagsSample.ts @@ -32,7 +32,7 @@ async function vpnSiteUpdate() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}", subscriptionId, resourceGroupName, - vpnSiteName + vpnSiteName, ) .patch(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesCreateOrUpdateSample.ts b/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesCreateOrUpdateSample.ts index f34217c9d786..3f577d719efd 100644 --- a/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesCreateOrUpdateSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesCreateOrUpdateSample.ts @@ -128,7 +128,7 @@ async function createsOrUpdatesAWafPolicyWithinAResourceGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}", subscriptionId, resourceGroupName, - policyName + policyName, ) .put(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesDeleteSample.ts b/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesDeleteSample.ts index 7333398b0a28..1fdaaa59386e 100644 --- a/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesDeleteSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesDeleteSample.ts @@ -32,7 +32,7 @@ async function deletesAWafPolicyWithinAResourceGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}", subscriptionId, resourceGroupName, - policyName + policyName, ) .delete(options); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesGetSample.ts index 6111684b9774..dda8ad70f219 100644 --- a/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesGetSample.ts @@ -31,7 +31,7 @@ async function getsAWafPolicyWithinAResourceGroup() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}", subscriptionId, resourceGroupName, - policyName + policyName, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesListAllSample.ts b/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesListAllSample.ts index 4eb74a264c7c..ebc70516706a 100644 --- a/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesListAllSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesListAllSample.ts @@ -28,7 +28,7 @@ async function listsAllWafPoliciesInASubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesListSample.ts b/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesListSample.ts index af2f430bed92..e0487ca4da49 100644 --- a/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesListSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/webApplicationFirewallPoliciesListSample.ts @@ -30,7 +30,7 @@ async function listsAllWafPoliciesInAResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/samples-dev/webCategoriesGetSample.ts b/sdk/network/arm-network-rest/samples-dev/webCategoriesGetSample.ts index 119350943b9c..9ec4b109c71d 100644 --- a/sdk/network/arm-network-rest/samples-dev/webCategoriesGetSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/webCategoriesGetSample.ts @@ -27,7 +27,7 @@ async function getAzureWebCategoryByName() { .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureWebCategories/{name}", subscriptionId, - name + name, ) .get(options); console.log(result); diff --git a/sdk/network/arm-network-rest/samples-dev/webCategoriesListBySubscriptionSample.ts b/sdk/network/arm-network-rest/samples-dev/webCategoriesListBySubscriptionSample.ts index b8ea49f565c7..c0444cee6503 100644 --- a/sdk/network/arm-network-rest/samples-dev/webCategoriesListBySubscriptionSample.ts +++ b/sdk/network/arm-network-rest/samples-dev/webCategoriesListBySubscriptionSample.ts @@ -28,7 +28,7 @@ async function listAllAzureWebCategoriesForAGivenSubscription() { const initialResponse = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureWebCategories", - subscriptionId + subscriptionId, ) .get(options); const pageData = paginate(client, initialResponse); diff --git a/sdk/network/arm-network-rest/src/clientDefinitions.ts b/sdk/network/arm-network-rest/src/clientDefinitions.ts index 1dbe3ba5935d..4d98a8414c6b 100644 --- a/sdk/network/arm-network-rest/src/clientDefinitions.ts +++ b/sdk/network/arm-network-rest/src/clientDefinitions.ts @@ -2188,7 +2188,7 @@ import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface ApplicationGatewaysDelete { /** Deletes the specified application gateway. */ delete( - options: ApplicationGatewaysDeleteParameters + options: ApplicationGatewaysDeleteParameters, ): StreamableMethod< | ApplicationGatewaysDelete200Response | ApplicationGatewaysDelete202Response @@ -2197,11 +2197,11 @@ export interface ApplicationGatewaysDelete { >; /** Gets the specified application gateway. */ get( - options: ApplicationGatewaysGetParameters + options: ApplicationGatewaysGetParameters, ): StreamableMethod; /** Creates or updates the specified application gateway. */ put( - options: ApplicationGatewaysCreateOrUpdateParameters + options: ApplicationGatewaysCreateOrUpdateParameters, ): StreamableMethod< | ApplicationGatewaysCreateOrUpdate200Response | ApplicationGatewaysCreateOrUpdate201Response @@ -2209,7 +2209,7 @@ export interface ApplicationGatewaysDelete { >; /** Updates the specified application gateway tags. */ patch( - options: ApplicationGatewaysUpdateTagsParameters + options: ApplicationGatewaysUpdateTagsParameters, ): StreamableMethod< ApplicationGatewaysUpdateTags200Response | ApplicationGatewaysUpdateTagsDefaultResponse >; @@ -2218,14 +2218,14 @@ export interface ApplicationGatewaysDelete { export interface ApplicationGatewaysList { /** Lists all application gateways in a resource group. */ get( - options: ApplicationGatewaysListParameters + options: ApplicationGatewaysListParameters, ): StreamableMethod; } export interface ApplicationGatewaysListAll { /** Gets all the application gateways in a subscription. */ get( - options: ApplicationGatewaysListAllParameters + options: ApplicationGatewaysListAllParameters, ): StreamableMethod< ApplicationGatewaysListAll200Response | ApplicationGatewaysListAllDefaultResponse >; @@ -2234,7 +2234,7 @@ export interface ApplicationGatewaysListAll { export interface ApplicationGatewaysStart { /** Starts the specified application gateway. */ post( - options: ApplicationGatewaysStartParameters + options: ApplicationGatewaysStartParameters, ): StreamableMethod< | ApplicationGatewaysStart200Response | ApplicationGatewaysStart202Response @@ -2245,7 +2245,7 @@ export interface ApplicationGatewaysStart { export interface ApplicationGatewaysStop { /** Stops the specified application gateway in a resource group. */ post( - options: ApplicationGatewaysStopParameters + options: ApplicationGatewaysStopParameters, ): StreamableMethod< | ApplicationGatewaysStop200Response | ApplicationGatewaysStop202Response @@ -2256,7 +2256,7 @@ export interface ApplicationGatewaysStop { export interface ApplicationGatewaysBackendHealth { /** Gets the backend health of the specified application gateway in a resource group. */ post( - options: ApplicationGatewaysBackendHealthParameters + options: ApplicationGatewaysBackendHealthParameters, ): StreamableMethod< | ApplicationGatewaysBackendHealth200Response | ApplicationGatewaysBackendHealth202Response @@ -2267,7 +2267,7 @@ export interface ApplicationGatewaysBackendHealth { export interface ApplicationGatewaysBackendHealthOnDemand { /** Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. */ post( - options: ApplicationGatewaysBackendHealthOnDemandParameters + options: ApplicationGatewaysBackendHealthOnDemandParameters, ): StreamableMethod< | ApplicationGatewaysBackendHealthOnDemand200Response | ApplicationGatewaysBackendHealthOnDemand202Response @@ -2278,7 +2278,7 @@ export interface ApplicationGatewaysBackendHealthOnDemand { export interface ApplicationGatewaysListAvailableServerVariables { /** Lists all available server variables. */ get( - options: ApplicationGatewaysListAvailableServerVariablesParameters + options: ApplicationGatewaysListAvailableServerVariablesParameters, ): StreamableMethod< | ApplicationGatewaysListAvailableServerVariables200Response | ApplicationGatewaysListAvailableServerVariablesDefaultResponse @@ -2288,7 +2288,7 @@ export interface ApplicationGatewaysListAvailableServerVariables { export interface ApplicationGatewaysListAvailableRequestHeaders { /** Lists all available request headers. */ get( - options: ApplicationGatewaysListAvailableRequestHeadersParameters + options: ApplicationGatewaysListAvailableRequestHeadersParameters, ): StreamableMethod< | ApplicationGatewaysListAvailableRequestHeaders200Response | ApplicationGatewaysListAvailableRequestHeadersDefaultResponse @@ -2298,7 +2298,7 @@ export interface ApplicationGatewaysListAvailableRequestHeaders { export interface ApplicationGatewaysListAvailableResponseHeaders { /** Lists all available response headers. */ get( - options: ApplicationGatewaysListAvailableResponseHeadersParameters + options: ApplicationGatewaysListAvailableResponseHeadersParameters, ): StreamableMethod< | ApplicationGatewaysListAvailableResponseHeaders200Response | ApplicationGatewaysListAvailableResponseHeadersDefaultResponse @@ -2308,7 +2308,7 @@ export interface ApplicationGatewaysListAvailableResponseHeaders { export interface ApplicationGatewaysListAvailableWafRuleSets { /** Lists all available web application firewall rule sets. */ get( - options: ApplicationGatewaysListAvailableWafRuleSetsParameters + options: ApplicationGatewaysListAvailableWafRuleSetsParameters, ): StreamableMethod< | ApplicationGatewaysListAvailableWafRuleSets200Response | ApplicationGatewaysListAvailableWafRuleSetsDefaultResponse @@ -2318,7 +2318,7 @@ export interface ApplicationGatewaysListAvailableWafRuleSets { export interface ApplicationGatewaysListAvailableSslOptions { /** Lists available Ssl options for configuring Ssl policy. */ get( - options: ApplicationGatewaysListAvailableSslOptionsParameters + options: ApplicationGatewaysListAvailableSslOptionsParameters, ): StreamableMethod< | ApplicationGatewaysListAvailableSslOptions200Response | ApplicationGatewaysListAvailableSslOptionsDefaultResponse @@ -2328,7 +2328,7 @@ export interface ApplicationGatewaysListAvailableSslOptions { export interface ApplicationGatewaysListAvailableSslPredefinedPolicies { /** Lists all SSL predefined policies for configuring Ssl policy. */ get( - options: ApplicationGatewaysListAvailableSslPredefinedPoliciesParameters + options: ApplicationGatewaysListAvailableSslPredefinedPoliciesParameters, ): StreamableMethod< | ApplicationGatewaysListAvailableSslPredefinedPolicies200Response | ApplicationGatewaysListAvailableSslPredefinedPoliciesDefaultResponse @@ -2338,7 +2338,7 @@ export interface ApplicationGatewaysListAvailableSslPredefinedPolicies { export interface ApplicationGatewaysGetSslPredefinedPolicy { /** Gets Ssl predefined policy with the specified policy name. */ get( - options: ApplicationGatewaysGetSslPredefinedPolicyParameters + options: ApplicationGatewaysGetSslPredefinedPolicyParameters, ): StreamableMethod< | ApplicationGatewaysGetSslPredefinedPolicy200Response | ApplicationGatewaysGetSslPredefinedPolicyDefaultResponse @@ -2348,7 +2348,7 @@ export interface ApplicationGatewaysGetSslPredefinedPolicy { export interface ApplicationGatewayPrivateLinkResourcesList { /** Lists all private link resources on an application gateway. */ get( - options: ApplicationGatewayPrivateLinkResourcesListParameters + options: ApplicationGatewayPrivateLinkResourcesListParameters, ): StreamableMethod< | ApplicationGatewayPrivateLinkResourcesList200Response | ApplicationGatewayPrivateLinkResourcesListDefaultResponse @@ -2358,7 +2358,7 @@ export interface ApplicationGatewayPrivateLinkResourcesList { export interface ApplicationGatewayPrivateEndpointConnectionsDelete { /** Deletes the specified private endpoint connection on application gateway. */ delete( - options: ApplicationGatewayPrivateEndpointConnectionsDeleteParameters + options: ApplicationGatewayPrivateEndpointConnectionsDeleteParameters, ): StreamableMethod< | ApplicationGatewayPrivateEndpointConnectionsDelete200Response | ApplicationGatewayPrivateEndpointConnectionsDelete202Response @@ -2367,7 +2367,7 @@ export interface ApplicationGatewayPrivateEndpointConnectionsDelete { >; /** Updates the specified private endpoint connection on application gateway. */ put( - options: ApplicationGatewayPrivateEndpointConnectionsUpdateParameters + options: ApplicationGatewayPrivateEndpointConnectionsUpdateParameters, ): StreamableMethod< | ApplicationGatewayPrivateEndpointConnectionsUpdate200Response | ApplicationGatewayPrivateEndpointConnectionsUpdate202Response @@ -2375,7 +2375,7 @@ export interface ApplicationGatewayPrivateEndpointConnectionsDelete { >; /** Gets the specified private endpoint connection on application gateway. */ get( - options: ApplicationGatewayPrivateEndpointConnectionsGetParameters + options: ApplicationGatewayPrivateEndpointConnectionsGetParameters, ): StreamableMethod< | ApplicationGatewayPrivateEndpointConnectionsGet200Response | ApplicationGatewayPrivateEndpointConnectionsGetDefaultResponse @@ -2385,7 +2385,7 @@ export interface ApplicationGatewayPrivateEndpointConnectionsDelete { export interface ApplicationGatewayPrivateEndpointConnectionsList { /** Lists all private endpoint connections on an application gateway. */ get( - options: ApplicationGatewayPrivateEndpointConnectionsListParameters + options: ApplicationGatewayPrivateEndpointConnectionsListParameters, ): StreamableMethod< | ApplicationGatewayPrivateEndpointConnectionsList200Response | ApplicationGatewayPrivateEndpointConnectionsListDefaultResponse @@ -2395,7 +2395,7 @@ export interface ApplicationGatewayPrivateEndpointConnectionsList { export interface ApplicationGatewayWafDynamicManifestsDefaultGet { /** Gets the regional application gateway waf manifest. */ get( - options: ApplicationGatewayWafDynamicManifestsDefaultGetParameters + options: ApplicationGatewayWafDynamicManifestsDefaultGetParameters, ): StreamableMethod< | ApplicationGatewayWafDynamicManifestsDefaultGet200Response | ApplicationGatewayWafDynamicManifestsDefaultGetDefaultResponse @@ -2405,7 +2405,7 @@ export interface ApplicationGatewayWafDynamicManifestsDefaultGet { export interface ApplicationGatewayWafDynamicManifestsGet { /** Gets the regional application gateway waf manifest. */ get( - options: ApplicationGatewayWafDynamicManifestsGetParameters + options: ApplicationGatewayWafDynamicManifestsGetParameters, ): StreamableMethod< | ApplicationGatewayWafDynamicManifestsGet200Response | ApplicationGatewayWafDynamicManifestsGetDefaultResponse @@ -2415,7 +2415,7 @@ export interface ApplicationGatewayWafDynamicManifestsGet { export interface ApplicationSecurityGroupsDelete { /** Deletes the specified application security group. */ delete( - options: ApplicationSecurityGroupsDeleteParameters + options: ApplicationSecurityGroupsDeleteParameters, ): StreamableMethod< | ApplicationSecurityGroupsDelete200Response | ApplicationSecurityGroupsDelete202Response @@ -2424,13 +2424,13 @@ export interface ApplicationSecurityGroupsDelete { >; /** Gets information about the specified application security group. */ get( - options: ApplicationSecurityGroupsGetParameters + options: ApplicationSecurityGroupsGetParameters, ): StreamableMethod< ApplicationSecurityGroupsGet200Response | ApplicationSecurityGroupsGetDefaultResponse >; /** Creates or updates an application security group. */ put( - options: ApplicationSecurityGroupsCreateOrUpdateParameters + options: ApplicationSecurityGroupsCreateOrUpdateParameters, ): StreamableMethod< | ApplicationSecurityGroupsCreateOrUpdate200Response | ApplicationSecurityGroupsCreateOrUpdate201Response @@ -2438,7 +2438,7 @@ export interface ApplicationSecurityGroupsDelete { >; /** Updates an application security group's tags. */ patch( - options: ApplicationSecurityGroupsUpdateTagsParameters + options: ApplicationSecurityGroupsUpdateTagsParameters, ): StreamableMethod< | ApplicationSecurityGroupsUpdateTags200Response | ApplicationSecurityGroupsUpdateTagsDefaultResponse @@ -2448,7 +2448,7 @@ export interface ApplicationSecurityGroupsDelete { export interface ApplicationSecurityGroupsListAll { /** Gets all application security groups in a subscription. */ get( - options: ApplicationSecurityGroupsListAllParameters + options: ApplicationSecurityGroupsListAllParameters, ): StreamableMethod< ApplicationSecurityGroupsListAll200Response | ApplicationSecurityGroupsListAllDefaultResponse >; @@ -2457,7 +2457,7 @@ export interface ApplicationSecurityGroupsListAll { export interface ApplicationSecurityGroupsList { /** Gets all the application security groups in a resource group. */ get( - options: ApplicationSecurityGroupsListParameters + options: ApplicationSecurityGroupsListParameters, ): StreamableMethod< ApplicationSecurityGroupsList200Response | ApplicationSecurityGroupsListDefaultResponse >; @@ -2466,7 +2466,7 @@ export interface ApplicationSecurityGroupsList { export interface AvailableDelegationsList { /** Gets all of the available subnet delegations for this subscription in this region. */ get( - options: AvailableDelegationsListParameters + options: AvailableDelegationsListParameters, ): StreamableMethod< AvailableDelegationsList200Response | AvailableDelegationsListDefaultResponse >; @@ -2475,7 +2475,7 @@ export interface AvailableDelegationsList { export interface AvailableResourceGroupDelegationsList { /** Gets all of the available subnet delegations for this resource group in this region. */ get( - options: AvailableResourceGroupDelegationsListParameters + options: AvailableResourceGroupDelegationsListParameters, ): StreamableMethod< | AvailableResourceGroupDelegationsList200Response | AvailableResourceGroupDelegationsListDefaultResponse @@ -2485,7 +2485,7 @@ export interface AvailableResourceGroupDelegationsList { export interface AvailableServiceAliasesList { /** Gets all available service aliases for this subscription in this region. */ get( - options: AvailableServiceAliasesListParameters + options: AvailableServiceAliasesListParameters, ): StreamableMethod< AvailableServiceAliasesList200Response | AvailableServiceAliasesListDefaultResponse >; @@ -2494,7 +2494,7 @@ export interface AvailableServiceAliasesList { export interface AvailableServiceAliasesListByResourceGroup { /** Gets all available service aliases for this resource group in this region. */ get( - options: AvailableServiceAliasesListByResourceGroupParameters + options: AvailableServiceAliasesListByResourceGroupParameters, ): StreamableMethod< | AvailableServiceAliasesListByResourceGroup200Response | AvailableServiceAliasesListByResourceGroupDefaultResponse @@ -2504,7 +2504,7 @@ export interface AvailableServiceAliasesListByResourceGroup { export interface AzureFirewallsDelete { /** Deletes the specified Azure Firewall. */ delete( - options: AzureFirewallsDeleteParameters + options: AzureFirewallsDeleteParameters, ): StreamableMethod< | AzureFirewallsDelete200Response | AzureFirewallsDelete202Response @@ -2513,11 +2513,11 @@ export interface AzureFirewallsDelete { >; /** Gets the specified Azure Firewall. */ get( - options: AzureFirewallsGetParameters + options: AzureFirewallsGetParameters, ): StreamableMethod; /** Creates or updates the specified Azure Firewall. */ put( - options: AzureFirewallsCreateOrUpdateParameters + options: AzureFirewallsCreateOrUpdateParameters, ): StreamableMethod< | AzureFirewallsCreateOrUpdate200Response | AzureFirewallsCreateOrUpdate201Response @@ -2525,7 +2525,7 @@ export interface AzureFirewallsDelete { >; /** Updates tags of an Azure Firewall resource. */ patch( - options: AzureFirewallsUpdateTagsParameters + options: AzureFirewallsUpdateTagsParameters, ): StreamableMethod< | AzureFirewallsUpdateTags200Response | AzureFirewallsUpdateTags202Response @@ -2536,21 +2536,21 @@ export interface AzureFirewallsDelete { export interface AzureFirewallsList { /** Lists all Azure Firewalls in a resource group. */ get( - options: AzureFirewallsListParameters + options: AzureFirewallsListParameters, ): StreamableMethod; } export interface AzureFirewallsListAll { /** Gets all the Azure Firewalls in a subscription. */ get( - options: AzureFirewallsListAllParameters + options: AzureFirewallsListAllParameters, ): StreamableMethod; } export interface AzureFirewallsListLearnedPrefixes { /** Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. */ post( - options: AzureFirewallsListLearnedPrefixesParameters + options: AzureFirewallsListLearnedPrefixesParameters, ): StreamableMethod< | AzureFirewallsListLearnedPrefixes200Response | AzureFirewallsListLearnedPrefixes202Response @@ -2561,7 +2561,7 @@ export interface AzureFirewallsListLearnedPrefixes { export interface AzureFirewallFqdnTagsListAll { /** Gets all the Azure Firewall FQDN Tags in a subscription. */ get( - options: AzureFirewallFqdnTagsListAllParameters + options: AzureFirewallFqdnTagsListAllParameters, ): StreamableMethod< AzureFirewallFqdnTagsListAll200Response | AzureFirewallFqdnTagsListAllDefaultResponse >; @@ -2570,14 +2570,14 @@ export interface AzureFirewallFqdnTagsListAll { export interface WebCategoriesGet { /** Gets the specified Azure Web Category. */ get( - options: WebCategoriesGetParameters + options: WebCategoriesGetParameters, ): StreamableMethod; } export interface WebCategoriesListBySubscription { /** Gets all the Azure Web Categories in a subscription. */ get( - options: WebCategoriesListBySubscriptionParameters + options: WebCategoriesListBySubscriptionParameters, ): StreamableMethod< WebCategoriesListBySubscription200Response | WebCategoriesListBySubscriptionDefaultResponse >; @@ -2586,7 +2586,7 @@ export interface WebCategoriesListBySubscription { export interface BastionHostsDelete { /** Deletes the specified Bastion Host. */ delete( - options: BastionHostsDeleteParameters + options: BastionHostsDeleteParameters, ): StreamableMethod< | BastionHostsDelete200Response | BastionHostsDelete202Response @@ -2595,11 +2595,11 @@ export interface BastionHostsDelete { >; /** Gets the specified Bastion Host. */ get( - options: BastionHostsGetParameters + options: BastionHostsGetParameters, ): StreamableMethod; /** Creates or updates the specified Bastion Host. */ put( - options: BastionHostsCreateOrUpdateParameters + options: BastionHostsCreateOrUpdateParameters, ): StreamableMethod< | BastionHostsCreateOrUpdate200Response | BastionHostsCreateOrUpdate201Response @@ -2607,7 +2607,7 @@ export interface BastionHostsDelete { >; /** Updates Tags for BastionHost resource */ patch( - options: BastionHostsUpdateTagsParameters + options: BastionHostsUpdateTagsParameters, ): StreamableMethod< | BastionHostsUpdateTags200Response | BastionHostsUpdateTags202Response @@ -2618,14 +2618,14 @@ export interface BastionHostsDelete { export interface BastionHostsList { /** Lists all Bastion Hosts in a subscription. */ get( - options: BastionHostsListParameters + options: BastionHostsListParameters, ): StreamableMethod; } export interface BastionHostsListByResourceGroup { /** Lists all Bastion Hosts in a resource group. */ get( - options: BastionHostsListByResourceGroupParameters + options: BastionHostsListByResourceGroupParameters, ): StreamableMethod< BastionHostsListByResourceGroup200Response | BastionHostsListByResourceGroupDefaultResponse >; @@ -2634,7 +2634,7 @@ export interface BastionHostsListByResourceGroup { export interface PutBastionShareableLink { /** Creates a Bastion Shareable Links for all the VMs specified in the request. */ post( - options: PutBastionShareableLinkParameters + options: PutBastionShareableLinkParameters, ): StreamableMethod< | PutBastionShareableLink200Response | PutBastionShareableLink202Response @@ -2645,7 +2645,7 @@ export interface PutBastionShareableLink { export interface DeleteBastionShareableLink { /** Deletes the Bastion Shareable Links for all the VMs specified in the request. */ post( - options: DeleteBastionShareableLinkParameters + options: DeleteBastionShareableLinkParameters, ): StreamableMethod< | DeleteBastionShareableLink200Response | DeleteBastionShareableLink202Response @@ -2656,14 +2656,14 @@ export interface DeleteBastionShareableLink { export interface GetBastionShareableLink { /** Return the Bastion Shareable Links for all the VMs specified in the request. */ post( - options: GetBastionShareableLinkParameters + options: GetBastionShareableLinkParameters, ): StreamableMethod; } export interface GetActiveSessions { /** Returns the list of currently active sessions on the Bastion. */ post( - options: GetActiveSessionsParameters + options: GetActiveSessionsParameters, ): StreamableMethod< GetActiveSessions200Response | GetActiveSessions202Response | GetActiveSessionsDefaultResponse >; @@ -2672,7 +2672,7 @@ export interface GetActiveSessions { export interface DisconnectActiveSessions { /** Returns the list of currently active sessions on the Bastion. */ post( - options: DisconnectActiveSessionsParameters + options: DisconnectActiveSessionsParameters, ): StreamableMethod< DisconnectActiveSessions200Response | DisconnectActiveSessionsDefaultResponse >; @@ -2681,7 +2681,7 @@ export interface DisconnectActiveSessions { export interface CheckDnsNameAvailability { /** Checks whether a domain name in the cloudapp.azure.com zone is available for use. */ get( - options: CheckDnsNameAvailabilityParameters + options: CheckDnsNameAvailabilityParameters, ): StreamableMethod< CheckDnsNameAvailability200Response | CheckDnsNameAvailabilityDefaultResponse >; @@ -2690,7 +2690,7 @@ export interface CheckDnsNameAvailability { export interface ListActiveConnectivityConfigurations { /** Lists active connectivity configurations in a network manager. */ post( - options: ListActiveConnectivityConfigurationsParameters + options: ListActiveConnectivityConfigurationsParameters, ): StreamableMethod< | ListActiveConnectivityConfigurations200Response | ListActiveConnectivityConfigurationsDefaultResponse @@ -2700,7 +2700,7 @@ export interface ListActiveConnectivityConfigurations { export interface ListActiveSecurityAdminRules { /** Lists active security admin rules in a network manager. */ post( - options: ListActiveSecurityAdminRulesParameters + options: ListActiveSecurityAdminRulesParameters, ): StreamableMethod< ListActiveSecurityAdminRules200Response | ListActiveSecurityAdminRulesDefaultResponse >; @@ -2709,7 +2709,7 @@ export interface ListActiveSecurityAdminRules { export interface ListNetworkManagerEffectiveConnectivityConfigurations { /** List all effective connectivity configurations applied on a virtual network. */ post( - options: ListNetworkManagerEffectiveConnectivityConfigurationsParameters + options: ListNetworkManagerEffectiveConnectivityConfigurationsParameters, ): StreamableMethod< | ListNetworkManagerEffectiveConnectivityConfigurations200Response | ListNetworkManagerEffectiveConnectivityConfigurationsDefaultResponse @@ -2719,7 +2719,7 @@ export interface ListNetworkManagerEffectiveConnectivityConfigurations { export interface ListNetworkManagerEffectiveSecurityAdminRules { /** List all effective security admin rules applied on a virtual network. */ post( - options: ListNetworkManagerEffectiveSecurityAdminRulesParameters + options: ListNetworkManagerEffectiveSecurityAdminRulesParameters, ): StreamableMethod< | ListNetworkManagerEffectiveSecurityAdminRules200Response | ListNetworkManagerEffectiveSecurityAdminRulesDefaultResponse @@ -2729,7 +2729,7 @@ export interface ListNetworkManagerEffectiveSecurityAdminRules { export interface SupportedSecurityProviders { /** Gives the supported security providers for the virtual wan. */ get( - options: SupportedSecurityProvidersParameters + options: SupportedSecurityProvidersParameters, ): StreamableMethod< SupportedSecurityProviders200Response | SupportedSecurityProvidersDefaultResponse >; @@ -2738,7 +2738,7 @@ export interface SupportedSecurityProviders { export interface Generatevirtualwanvpnserverconfigurationvpnprofile { /** Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination in the specified resource group. */ post( - options: GeneratevirtualwanvpnserverconfigurationvpnprofileParameters + options: GeneratevirtualwanvpnserverconfigurationvpnprofileParameters, ): StreamableMethod< | Generatevirtualwanvpnserverconfigurationvpnprofile200Response | Generatevirtualwanvpnserverconfigurationvpnprofile202Response @@ -2749,7 +2749,7 @@ export interface Generatevirtualwanvpnserverconfigurationvpnprofile { export interface NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfaces { /** Gets information about all network interfaces in a role instance in a cloud service. */ get( - options: NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesParameters + options: NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesParameters, ): StreamableMethod< | NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfaces200Response | NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesDefaultResponse @@ -2759,7 +2759,7 @@ export interface NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfaces export interface NetworkInterfacesListCloudServiceNetworkInterfaces { /** Gets all network interfaces in a cloud service. */ get( - options: NetworkInterfacesListCloudServiceNetworkInterfacesParameters + options: NetworkInterfacesListCloudServiceNetworkInterfacesParameters, ): StreamableMethod< | NetworkInterfacesListCloudServiceNetworkInterfaces200Response | NetworkInterfacesListCloudServiceNetworkInterfacesDefaultResponse @@ -2769,7 +2769,7 @@ export interface NetworkInterfacesListCloudServiceNetworkInterfaces { export interface NetworkInterfacesGetCloudServiceNetworkInterface { /** Get the specified network interface in a cloud service. */ get( - options: NetworkInterfacesGetCloudServiceNetworkInterfaceParameters + options: NetworkInterfacesGetCloudServiceNetworkInterfaceParameters, ): StreamableMethod< | NetworkInterfacesGetCloudServiceNetworkInterface200Response | NetworkInterfacesGetCloudServiceNetworkInterfaceDefaultResponse @@ -2779,7 +2779,7 @@ export interface NetworkInterfacesGetCloudServiceNetworkInterface { export interface NetworkInterfacesDelete { /** Deletes the specified network interface. */ delete( - options: NetworkInterfacesDeleteParameters + options: NetworkInterfacesDeleteParameters, ): StreamableMethod< | NetworkInterfacesDelete200Response | NetworkInterfacesDelete202Response @@ -2788,11 +2788,11 @@ export interface NetworkInterfacesDelete { >; /** Gets information about the specified network interface. */ get( - options: NetworkInterfacesGetParameters + options: NetworkInterfacesGetParameters, ): StreamableMethod; /** Creates or updates a network interface. */ put( - options: NetworkInterfacesCreateOrUpdateParameters + options: NetworkInterfacesCreateOrUpdateParameters, ): StreamableMethod< | NetworkInterfacesCreateOrUpdate200Response | NetworkInterfacesCreateOrUpdate201Response @@ -2800,7 +2800,7 @@ export interface NetworkInterfacesDelete { >; /** Updates a network interface tags. */ patch( - options: NetworkInterfacesUpdateTagsParameters + options: NetworkInterfacesUpdateTagsParameters, ): StreamableMethod< NetworkInterfacesUpdateTags200Response | NetworkInterfacesUpdateTagsDefaultResponse >; @@ -2809,7 +2809,7 @@ export interface NetworkInterfacesDelete { export interface NetworkInterfacesListAll { /** Gets all network interfaces in a subscription. */ get( - options: NetworkInterfacesListAllParameters + options: NetworkInterfacesListAllParameters, ): StreamableMethod< NetworkInterfacesListAll200Response | NetworkInterfacesListAllDefaultResponse >; @@ -2818,14 +2818,14 @@ export interface NetworkInterfacesListAll { export interface NetworkInterfacesList { /** Gets all network interfaces in a resource group. */ get( - options: NetworkInterfacesListParameters + options: NetworkInterfacesListParameters, ): StreamableMethod; } export interface NetworkInterfacesGetEffectiveRouteTable { /** Gets all route tables applied to a network interface. */ post( - options: NetworkInterfacesGetEffectiveRouteTableParameters + options: NetworkInterfacesGetEffectiveRouteTableParameters, ): StreamableMethod< | NetworkInterfacesGetEffectiveRouteTable200Response | NetworkInterfacesGetEffectiveRouteTable202Response @@ -2836,7 +2836,7 @@ export interface NetworkInterfacesGetEffectiveRouteTable { export interface NetworkInterfacesListEffectiveNetworkSecurityGroups { /** Gets all network security groups applied to a network interface. */ post( - options: NetworkInterfacesListEffectiveNetworkSecurityGroupsParameters + options: NetworkInterfacesListEffectiveNetworkSecurityGroupsParameters, ): StreamableMethod< | NetworkInterfacesListEffectiveNetworkSecurityGroups200Response | NetworkInterfacesListEffectiveNetworkSecurityGroups202Response @@ -2847,7 +2847,7 @@ export interface NetworkInterfacesListEffectiveNetworkSecurityGroups { export interface NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfaces { /** Gets information about all network interfaces in a virtual machine in a virtual machine scale set. */ get( - options: NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesParameters + options: NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesParameters, ): StreamableMethod< | NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfaces200Response | NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesDefaultResponse @@ -2857,7 +2857,7 @@ export interface NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfaces export interface NetworkInterfacesListVirtualMachineScaleSetNetworkInterfaces { /** Gets all network interfaces in a virtual machine scale set. */ get( - options: NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesParameters + options: NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesParameters, ): StreamableMethod< | NetworkInterfacesListVirtualMachineScaleSetNetworkInterfaces200Response | NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesDefaultResponse @@ -2867,7 +2867,7 @@ export interface NetworkInterfacesListVirtualMachineScaleSetNetworkInterfaces { export interface NetworkInterfacesGetVirtualMachineScaleSetNetworkInterface { /** Get the specified network interface in a virtual machine scale set. */ get( - options: NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceParameters + options: NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceParameters, ): StreamableMethod< | NetworkInterfacesGetVirtualMachineScaleSetNetworkInterface200Response | NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceDefaultResponse @@ -2877,7 +2877,7 @@ export interface NetworkInterfacesGetVirtualMachineScaleSetNetworkInterface { export interface NetworkInterfacesListVirtualMachineScaleSetIpConfigurations { /** Get the specified network interface ip configuration in a virtual machine scale set. */ get( - options: NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsParameters + options: NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsParameters, ): StreamableMethod< | NetworkInterfacesListVirtualMachineScaleSetIpConfigurations200Response | NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsDefaultResponse @@ -2887,7 +2887,7 @@ export interface NetworkInterfacesListVirtualMachineScaleSetIpConfigurations { export interface NetworkInterfacesGetVirtualMachineScaleSetIpConfiguration { /** Get the specified network interface ip configuration in a virtual machine scale set. */ get( - options: NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationParameters + options: NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationParameters, ): StreamableMethod< | NetworkInterfacesGetVirtualMachineScaleSetIpConfiguration200Response | NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationDefaultResponse @@ -2897,7 +2897,7 @@ export interface NetworkInterfacesGetVirtualMachineScaleSetIpConfiguration { export interface PublicIPAddressesListCloudServicePublicIPAddresses { /** Gets information about all public IP addresses on a cloud service level. */ get( - options: PublicIPAddressesListCloudServicePublicIPAddressesParameters + options: PublicIPAddressesListCloudServicePublicIPAddressesParameters, ): StreamableMethod< | PublicIPAddressesListCloudServicePublicIPAddresses200Response | PublicIPAddressesListCloudServicePublicIPAddressesDefaultResponse @@ -2907,7 +2907,7 @@ export interface PublicIPAddressesListCloudServicePublicIPAddresses { export interface PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses { /** Gets information about all public IP addresses in a role instance IP configuration in a cloud service. */ get( - options: PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesParameters + options: PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesParameters, ): StreamableMethod< | PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses200Response | PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesDefaultResponse @@ -2917,7 +2917,7 @@ export interface PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses export interface PublicIPAddressesGetCloudServicePublicIPAddress { /** Get the specified public IP address in a cloud service. */ get( - options: PublicIPAddressesGetCloudServicePublicIPAddressParameters + options: PublicIPAddressesGetCloudServicePublicIPAddressParameters, ): StreamableMethod< | PublicIPAddressesGetCloudServicePublicIPAddress200Response | PublicIPAddressesGetCloudServicePublicIPAddressDefaultResponse @@ -2927,7 +2927,7 @@ export interface PublicIPAddressesGetCloudServicePublicIPAddress { export interface PublicIPAddressesDelete { /** Deletes the specified public IP address. */ delete( - options: PublicIPAddressesDeleteParameters + options: PublicIPAddressesDeleteParameters, ): StreamableMethod< | PublicIPAddressesDelete200Response | PublicIPAddressesDelete202Response @@ -2936,11 +2936,11 @@ export interface PublicIPAddressesDelete { >; /** Gets the specified public IP address in a specified resource group. */ get( - options: PublicIPAddressesGetParameters + options: PublicIPAddressesGetParameters, ): StreamableMethod; /** Creates or updates a static or dynamic public IP address. */ put( - options: PublicIPAddressesCreateOrUpdateParameters + options: PublicIPAddressesCreateOrUpdateParameters, ): StreamableMethod< | PublicIPAddressesCreateOrUpdate200Response | PublicIPAddressesCreateOrUpdate201Response @@ -2948,7 +2948,7 @@ export interface PublicIPAddressesDelete { >; /** Updates public IP address tags. */ patch( - options: PublicIPAddressesUpdateTagsParameters + options: PublicIPAddressesUpdateTagsParameters, ): StreamableMethod< PublicIPAddressesUpdateTags200Response | PublicIPAddressesUpdateTagsDefaultResponse >; @@ -2957,7 +2957,7 @@ export interface PublicIPAddressesDelete { export interface PublicIPAddressesListAll { /** Gets all the public IP addresses in a subscription. */ get( - options: PublicIPAddressesListAllParameters + options: PublicIPAddressesListAllParameters, ): StreamableMethod< PublicIPAddressesListAll200Response | PublicIPAddressesListAllDefaultResponse >; @@ -2966,14 +2966,14 @@ export interface PublicIPAddressesListAll { export interface PublicIPAddressesList { /** Gets all public IP addresses in a resource group. */ get( - options: PublicIPAddressesListParameters + options: PublicIPAddressesListParameters, ): StreamableMethod; } export interface PublicIPAddressesDdosProtectionStatus { /** Gets the Ddos Protection Status of a Public IP Address */ post( - options: PublicIPAddressesDdosProtectionStatusParameters + options: PublicIPAddressesDdosProtectionStatusParameters, ): StreamableMethod< | PublicIPAddressesDdosProtectionStatus200Response | PublicIPAddressesDdosProtectionStatus202Response @@ -2984,7 +2984,7 @@ export interface PublicIPAddressesDdosProtectionStatus { export interface PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses { /** Gets information about all public IP addresses on a virtual machine scale set level. */ get( - options: PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesParameters + options: PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesParameters, ): StreamableMethod< | PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses200Response | PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesDefaultResponse @@ -2994,7 +2994,7 @@ export interface PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses { export interface PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses { /** Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale set. */ get( - options: PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesParameters + options: PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesParameters, ): StreamableMethod< | PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses200Response | PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesDefaultResponse @@ -3004,7 +3004,7 @@ export interface PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses export interface PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddress { /** Get the specified public IP address in a virtual machine scale set. */ get( - options: PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressParameters + options: PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressParameters, ): StreamableMethod< | PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddress200Response | PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressDefaultResponse @@ -3014,7 +3014,7 @@ export interface PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddress { export interface CustomIPPrefixesDelete { /** Deletes the specified custom IP prefix. */ delete( - options: CustomIPPrefixesDeleteParameters + options: CustomIPPrefixesDeleteParameters, ): StreamableMethod< | CustomIPPrefixesDelete200Response | CustomIPPrefixesDelete202Response @@ -3023,11 +3023,11 @@ export interface CustomIPPrefixesDelete { >; /** Gets the specified custom IP prefix in a specified resource group. */ get( - options: CustomIPPrefixesGetParameters + options: CustomIPPrefixesGetParameters, ): StreamableMethod; /** Creates or updates a custom IP prefix. */ put( - options: CustomIPPrefixesCreateOrUpdateParameters + options: CustomIPPrefixesCreateOrUpdateParameters, ): StreamableMethod< | CustomIPPrefixesCreateOrUpdate200Response | CustomIPPrefixesCreateOrUpdate201Response @@ -3035,7 +3035,7 @@ export interface CustomIPPrefixesDelete { >; /** Updates custom IP prefix tags. */ patch( - options: CustomIPPrefixesUpdateTagsParameters + options: CustomIPPrefixesUpdateTagsParameters, ): StreamableMethod< CustomIPPrefixesUpdateTags200Response | CustomIPPrefixesUpdateTagsDefaultResponse >; @@ -3044,21 +3044,21 @@ export interface CustomIPPrefixesDelete { export interface CustomIPPrefixesListAll { /** Gets all the custom IP prefixes in a subscription. */ get( - options: CustomIPPrefixesListAllParameters + options: CustomIPPrefixesListAllParameters, ): StreamableMethod; } export interface CustomIPPrefixesList { /** Gets all custom IP prefixes in a resource group. */ get( - options: CustomIPPrefixesListParameters + options: CustomIPPrefixesListParameters, ): StreamableMethod; } export interface DdosCustomPoliciesDelete { /** Deletes the specified DDoS custom policy. */ delete( - options: DdosCustomPoliciesDeleteParameters + options: DdosCustomPoliciesDeleteParameters, ): StreamableMethod< | DdosCustomPoliciesDelete200Response | DdosCustomPoliciesDelete202Response @@ -3067,11 +3067,11 @@ export interface DdosCustomPoliciesDelete { >; /** Gets information about the specified DDoS custom policy. */ get( - options: DdosCustomPoliciesGetParameters + options: DdosCustomPoliciesGetParameters, ): StreamableMethod; /** Creates or updates a DDoS custom policy. */ put( - options: DdosCustomPoliciesCreateOrUpdateParameters + options: DdosCustomPoliciesCreateOrUpdateParameters, ): StreamableMethod< | DdosCustomPoliciesCreateOrUpdate200Response | DdosCustomPoliciesCreateOrUpdate201Response @@ -3079,7 +3079,7 @@ export interface DdosCustomPoliciesDelete { >; /** Update a DDoS custom policy tags. */ patch( - options: DdosCustomPoliciesUpdateTagsParameters + options: DdosCustomPoliciesUpdateTagsParameters, ): StreamableMethod< DdosCustomPoliciesUpdateTags200Response | DdosCustomPoliciesUpdateTagsDefaultResponse >; @@ -3088,7 +3088,7 @@ export interface DdosCustomPoliciesDelete { export interface DdosProtectionPlansDelete { /** Deletes the specified DDoS protection plan. */ delete( - options: DdosProtectionPlansDeleteParameters + options: DdosProtectionPlansDeleteParameters, ): StreamableMethod< | DdosProtectionPlansDelete200Response | DdosProtectionPlansDelete202Response @@ -3097,11 +3097,11 @@ export interface DdosProtectionPlansDelete { >; /** Gets information about the specified DDoS protection plan. */ get( - options: DdosProtectionPlansGetParameters + options: DdosProtectionPlansGetParameters, ): StreamableMethod; /** Creates or updates a DDoS protection plan. */ put( - options: DdosProtectionPlansCreateOrUpdateParameters + options: DdosProtectionPlansCreateOrUpdateParameters, ): StreamableMethod< | DdosProtectionPlansCreateOrUpdate200Response | DdosProtectionPlansCreateOrUpdate201Response @@ -3109,7 +3109,7 @@ export interface DdosProtectionPlansDelete { >; /** Update a DDoS protection plan tags. */ patch( - options: DdosProtectionPlansUpdateTagsParameters + options: DdosProtectionPlansUpdateTagsParameters, ): StreamableMethod< DdosProtectionPlansUpdateTags200Response | DdosProtectionPlansUpdateTagsDefaultResponse >; @@ -3118,14 +3118,14 @@ export interface DdosProtectionPlansDelete { export interface DdosProtectionPlansList { /** Gets all DDoS protection plans in a subscription. */ get( - options: DdosProtectionPlansListParameters + options: DdosProtectionPlansListParameters, ): StreamableMethod; } export interface DdosProtectionPlansListByResourceGroup { /** Gets all the DDoS protection plans in a resource group. */ get( - options: DdosProtectionPlansListByResourceGroupParameters + options: DdosProtectionPlansListByResourceGroupParameters, ): StreamableMethod< | DdosProtectionPlansListByResourceGroup200Response | DdosProtectionPlansListByResourceGroupDefaultResponse @@ -3135,7 +3135,7 @@ export interface DdosProtectionPlansListByResourceGroup { export interface DscpConfigurationCreateOrUpdate { /** Creates or updates a DSCP Configuration. */ put( - options: DscpConfigurationCreateOrUpdateParameters + options: DscpConfigurationCreateOrUpdateParameters, ): StreamableMethod< | DscpConfigurationCreateOrUpdate200Response | DscpConfigurationCreateOrUpdate201Response @@ -3143,7 +3143,7 @@ export interface DscpConfigurationCreateOrUpdate { >; /** Deletes a DSCP Configuration. */ delete( - options: DscpConfigurationDeleteParameters + options: DscpConfigurationDeleteParameters, ): StreamableMethod< | DscpConfigurationDelete200Response | DscpConfigurationDelete202Response @@ -3152,21 +3152,21 @@ export interface DscpConfigurationCreateOrUpdate { >; /** Gets a DSCP Configuration. */ get( - options: DscpConfigurationGetParameters + options: DscpConfigurationGetParameters, ): StreamableMethod; } export interface DscpConfigurationList { /** Gets a DSCP Configuration. */ get( - options: DscpConfigurationListParameters + options: DscpConfigurationListParameters, ): StreamableMethod; } export interface DscpConfigurationListAll { /** Gets all dscp configurations in a subscription. */ get( - options: DscpConfigurationListAllParameters + options: DscpConfigurationListAllParameters, ): StreamableMethod< DscpConfigurationListAll200Response | DscpConfigurationListAllDefaultResponse >; @@ -3175,7 +3175,7 @@ export interface DscpConfigurationListAll { export interface AvailableEndpointServicesList { /** List what values of endpoint services are available for use. */ get( - options: AvailableEndpointServicesListParameters + options: AvailableEndpointServicesListParameters, ): StreamableMethod< AvailableEndpointServicesList200Response | AvailableEndpointServicesListDefaultResponse >; @@ -3184,7 +3184,7 @@ export interface AvailableEndpointServicesList { export interface ExpressRouteCircuitAuthorizationsDelete { /** Deletes the specified authorization from the specified express route circuit. */ delete( - options: ExpressRouteCircuitAuthorizationsDeleteParameters + options: ExpressRouteCircuitAuthorizationsDeleteParameters, ): StreamableMethod< | ExpressRouteCircuitAuthorizationsDelete200Response | ExpressRouteCircuitAuthorizationsDelete202Response @@ -3193,14 +3193,14 @@ export interface ExpressRouteCircuitAuthorizationsDelete { >; /** Gets the specified authorization from the specified express route circuit. */ get( - options: ExpressRouteCircuitAuthorizationsGetParameters + options: ExpressRouteCircuitAuthorizationsGetParameters, ): StreamableMethod< | ExpressRouteCircuitAuthorizationsGet200Response | ExpressRouteCircuitAuthorizationsGetDefaultResponse >; /** Creates or updates an authorization in the specified express route circuit. */ put( - options: ExpressRouteCircuitAuthorizationsCreateOrUpdateParameters + options: ExpressRouteCircuitAuthorizationsCreateOrUpdateParameters, ): StreamableMethod< | ExpressRouteCircuitAuthorizationsCreateOrUpdate200Response | ExpressRouteCircuitAuthorizationsCreateOrUpdate201Response @@ -3211,7 +3211,7 @@ export interface ExpressRouteCircuitAuthorizationsDelete { export interface ExpressRouteCircuitAuthorizationsList { /** Gets all authorizations in an express route circuit. */ get( - options: ExpressRouteCircuitAuthorizationsListParameters + options: ExpressRouteCircuitAuthorizationsListParameters, ): StreamableMethod< | ExpressRouteCircuitAuthorizationsList200Response | ExpressRouteCircuitAuthorizationsListDefaultResponse @@ -3221,7 +3221,7 @@ export interface ExpressRouteCircuitAuthorizationsList { export interface ExpressRouteCircuitPeeringsDelete { /** Deletes the specified peering from the specified express route circuit. */ delete( - options: ExpressRouteCircuitPeeringsDeleteParameters + options: ExpressRouteCircuitPeeringsDeleteParameters, ): StreamableMethod< | ExpressRouteCircuitPeeringsDelete200Response | ExpressRouteCircuitPeeringsDelete202Response @@ -3230,13 +3230,13 @@ export interface ExpressRouteCircuitPeeringsDelete { >; /** Gets the specified peering for the express route circuit. */ get( - options: ExpressRouteCircuitPeeringsGetParameters + options: ExpressRouteCircuitPeeringsGetParameters, ): StreamableMethod< ExpressRouteCircuitPeeringsGet200Response | ExpressRouteCircuitPeeringsGetDefaultResponse >; /** Creates or updates a peering in the specified express route circuits. */ put( - options: ExpressRouteCircuitPeeringsCreateOrUpdateParameters + options: ExpressRouteCircuitPeeringsCreateOrUpdateParameters, ): StreamableMethod< | ExpressRouteCircuitPeeringsCreateOrUpdate200Response | ExpressRouteCircuitPeeringsCreateOrUpdate201Response @@ -3247,7 +3247,7 @@ export interface ExpressRouteCircuitPeeringsDelete { export interface ExpressRouteCircuitPeeringsList { /** Gets all peerings in a specified express route circuit. */ get( - options: ExpressRouteCircuitPeeringsListParameters + options: ExpressRouteCircuitPeeringsListParameters, ): StreamableMethod< ExpressRouteCircuitPeeringsList200Response | ExpressRouteCircuitPeeringsListDefaultResponse >; @@ -3256,7 +3256,7 @@ export interface ExpressRouteCircuitPeeringsList { export interface ExpressRouteCircuitConnectionsDelete { /** Deletes the specified Express Route Circuit Connection from the specified express route circuit. */ delete( - options: ExpressRouteCircuitConnectionsDeleteParameters + options: ExpressRouteCircuitConnectionsDeleteParameters, ): StreamableMethod< | ExpressRouteCircuitConnectionsDelete200Response | ExpressRouteCircuitConnectionsDelete202Response @@ -3265,13 +3265,13 @@ export interface ExpressRouteCircuitConnectionsDelete { >; /** Gets the specified Express Route Circuit Connection from the specified express route circuit. */ get( - options: ExpressRouteCircuitConnectionsGetParameters + options: ExpressRouteCircuitConnectionsGetParameters, ): StreamableMethod< ExpressRouteCircuitConnectionsGet200Response | ExpressRouteCircuitConnectionsGetDefaultResponse >; /** Creates or updates a Express Route Circuit Connection in the specified express route circuits. */ put( - options: ExpressRouteCircuitConnectionsCreateOrUpdateParameters + options: ExpressRouteCircuitConnectionsCreateOrUpdateParameters, ): StreamableMethod< | ExpressRouteCircuitConnectionsCreateOrUpdate200Response | ExpressRouteCircuitConnectionsCreateOrUpdate201Response @@ -3282,7 +3282,7 @@ export interface ExpressRouteCircuitConnectionsDelete { export interface ExpressRouteCircuitConnectionsList { /** Gets all global reach connections associated with a private peering in an express route circuit. */ get( - options: ExpressRouteCircuitConnectionsListParameters + options: ExpressRouteCircuitConnectionsListParameters, ): StreamableMethod< | ExpressRouteCircuitConnectionsList200Response | ExpressRouteCircuitConnectionsListDefaultResponse @@ -3292,7 +3292,7 @@ export interface ExpressRouteCircuitConnectionsList { export interface PeerExpressRouteCircuitConnectionsGet { /** Gets the specified Peer Express Route Circuit Connection from the specified express route circuit. */ get( - options: PeerExpressRouteCircuitConnectionsGetParameters + options: PeerExpressRouteCircuitConnectionsGetParameters, ): StreamableMethod< | PeerExpressRouteCircuitConnectionsGet200Response | PeerExpressRouteCircuitConnectionsGetDefaultResponse @@ -3302,7 +3302,7 @@ export interface PeerExpressRouteCircuitConnectionsGet { export interface PeerExpressRouteCircuitConnectionsList { /** Gets all global reach peer connections associated with a private peering in an express route circuit. */ get( - options: PeerExpressRouteCircuitConnectionsListParameters + options: PeerExpressRouteCircuitConnectionsListParameters, ): StreamableMethod< | PeerExpressRouteCircuitConnectionsList200Response | PeerExpressRouteCircuitConnectionsListDefaultResponse @@ -3312,7 +3312,7 @@ export interface PeerExpressRouteCircuitConnectionsList { export interface ExpressRouteCircuitsDelete { /** Deletes the specified express route circuit. */ delete( - options: ExpressRouteCircuitsDeleteParameters + options: ExpressRouteCircuitsDeleteParameters, ): StreamableMethod< | ExpressRouteCircuitsDelete200Response | ExpressRouteCircuitsDelete202Response @@ -3321,11 +3321,11 @@ export interface ExpressRouteCircuitsDelete { >; /** Gets information about the specified express route circuit. */ get( - options: ExpressRouteCircuitsGetParameters + options: ExpressRouteCircuitsGetParameters, ): StreamableMethod; /** Creates or updates an express route circuit. */ put( - options: ExpressRouteCircuitsCreateOrUpdateParameters + options: ExpressRouteCircuitsCreateOrUpdateParameters, ): StreamableMethod< | ExpressRouteCircuitsCreateOrUpdate200Response | ExpressRouteCircuitsCreateOrUpdate201Response @@ -3333,7 +3333,7 @@ export interface ExpressRouteCircuitsDelete { >; /** Updates an express route circuit tags. */ patch( - options: ExpressRouteCircuitsUpdateTagsParameters + options: ExpressRouteCircuitsUpdateTagsParameters, ): StreamableMethod< ExpressRouteCircuitsUpdateTags200Response | ExpressRouteCircuitsUpdateTagsDefaultResponse >; @@ -3342,7 +3342,7 @@ export interface ExpressRouteCircuitsDelete { export interface ExpressRouteCircuitsListArpTable { /** Gets the currently advertised ARP table associated with the express route circuit in a resource group. */ post( - options: ExpressRouteCircuitsListArpTableParameters + options: ExpressRouteCircuitsListArpTableParameters, ): StreamableMethod< | ExpressRouteCircuitsListArpTable200Response | ExpressRouteCircuitsListArpTable202Response @@ -3353,7 +3353,7 @@ export interface ExpressRouteCircuitsListArpTable { export interface ExpressRouteCircuitsListRoutesTable { /** Gets the currently advertised routes table associated with the express route circuit in a resource group. */ post( - options: ExpressRouteCircuitsListRoutesTableParameters + options: ExpressRouteCircuitsListRoutesTableParameters, ): StreamableMethod< | ExpressRouteCircuitsListRoutesTable200Response | ExpressRouteCircuitsListRoutesTable202Response @@ -3364,7 +3364,7 @@ export interface ExpressRouteCircuitsListRoutesTable { export interface ExpressRouteCircuitsListRoutesTableSummary { /** Gets the currently advertised routes table summary associated with the express route circuit in a resource group. */ post( - options: ExpressRouteCircuitsListRoutesTableSummaryParameters + options: ExpressRouteCircuitsListRoutesTableSummaryParameters, ): StreamableMethod< | ExpressRouteCircuitsListRoutesTableSummary200Response | ExpressRouteCircuitsListRoutesTableSummary202Response @@ -3375,7 +3375,7 @@ export interface ExpressRouteCircuitsListRoutesTableSummary { export interface ExpressRouteCircuitsGetStats { /** Gets all the stats from an express route circuit in a resource group. */ get( - options: ExpressRouteCircuitsGetStatsParameters + options: ExpressRouteCircuitsGetStatsParameters, ): StreamableMethod< ExpressRouteCircuitsGetStats200Response | ExpressRouteCircuitsGetStatsDefaultResponse >; @@ -3384,7 +3384,7 @@ export interface ExpressRouteCircuitsGetStats { export interface ExpressRouteCircuitsGetPeeringStats { /** Gets all stats from an express route circuit in a resource group. */ get( - options: ExpressRouteCircuitsGetPeeringStatsParameters + options: ExpressRouteCircuitsGetPeeringStatsParameters, ): StreamableMethod< | ExpressRouteCircuitsGetPeeringStats200Response | ExpressRouteCircuitsGetPeeringStatsDefaultResponse @@ -3394,7 +3394,7 @@ export interface ExpressRouteCircuitsGetPeeringStats { export interface ExpressRouteCircuitsList { /** Gets all the express route circuits in a resource group. */ get( - options: ExpressRouteCircuitsListParameters + options: ExpressRouteCircuitsListParameters, ): StreamableMethod< ExpressRouteCircuitsList200Response | ExpressRouteCircuitsListDefaultResponse >; @@ -3403,7 +3403,7 @@ export interface ExpressRouteCircuitsList { export interface ExpressRouteCircuitsListAll { /** Gets all the express route circuits in a subscription. */ get( - options: ExpressRouteCircuitsListAllParameters + options: ExpressRouteCircuitsListAllParameters, ): StreamableMethod< ExpressRouteCircuitsListAll200Response | ExpressRouteCircuitsListAllDefaultResponse >; @@ -3412,7 +3412,7 @@ export interface ExpressRouteCircuitsListAll { export interface ExpressRouteServiceProvidersList { /** Gets all the available express route service providers. */ get( - options: ExpressRouteServiceProvidersListParameters + options: ExpressRouteServiceProvidersListParameters, ): StreamableMethod< ExpressRouteServiceProvidersList200Response | ExpressRouteServiceProvidersListDefaultResponse >; @@ -3421,7 +3421,7 @@ export interface ExpressRouteServiceProvidersList { export interface ExpressRouteCrossConnectionsList { /** Retrieves all the ExpressRouteCrossConnections in a subscription. */ get( - options: ExpressRouteCrossConnectionsListParameters + options: ExpressRouteCrossConnectionsListParameters, ): StreamableMethod< ExpressRouteCrossConnectionsList200Response | ExpressRouteCrossConnectionsListDefaultResponse >; @@ -3430,7 +3430,7 @@ export interface ExpressRouteCrossConnectionsList { export interface ExpressRouteCrossConnectionsListByResourceGroup { /** Retrieves all the ExpressRouteCrossConnections in a resource group. */ get( - options: ExpressRouteCrossConnectionsListByResourceGroupParameters + options: ExpressRouteCrossConnectionsListByResourceGroupParameters, ): StreamableMethod< | ExpressRouteCrossConnectionsListByResourceGroup200Response | ExpressRouteCrossConnectionsListByResourceGroupDefaultResponse @@ -3440,20 +3440,20 @@ export interface ExpressRouteCrossConnectionsListByResourceGroup { export interface ExpressRouteCrossConnectionsGet { /** Gets details about the specified ExpressRouteCrossConnection. */ get( - options: ExpressRouteCrossConnectionsGetParameters + options: ExpressRouteCrossConnectionsGetParameters, ): StreamableMethod< ExpressRouteCrossConnectionsGet200Response | ExpressRouteCrossConnectionsGetDefaultResponse >; /** Update the specified ExpressRouteCrossConnection. */ put( - options: ExpressRouteCrossConnectionsCreateOrUpdateParameters + options: ExpressRouteCrossConnectionsCreateOrUpdateParameters, ): StreamableMethod< | ExpressRouteCrossConnectionsCreateOrUpdate200Response | ExpressRouteCrossConnectionsCreateOrUpdateDefaultResponse >; /** Updates an express route cross connection tags. */ patch( - options: ExpressRouteCrossConnectionsUpdateTagsParameters + options: ExpressRouteCrossConnectionsUpdateTagsParameters, ): StreamableMethod< | ExpressRouteCrossConnectionsUpdateTags200Response | ExpressRouteCrossConnectionsUpdateTagsDefaultResponse @@ -3463,7 +3463,7 @@ export interface ExpressRouteCrossConnectionsGet { export interface ExpressRouteCrossConnectionsListArpTable { /** Gets the currently advertised ARP table associated with the express route cross connection in a resource group. */ post( - options: ExpressRouteCrossConnectionsListArpTableParameters + options: ExpressRouteCrossConnectionsListArpTableParameters, ): StreamableMethod< | ExpressRouteCrossConnectionsListArpTable200Response | ExpressRouteCrossConnectionsListArpTable202Response @@ -3474,7 +3474,7 @@ export interface ExpressRouteCrossConnectionsListArpTable { export interface ExpressRouteCrossConnectionsListRoutesTableSummary { /** Gets the route table summary associated with the express route cross connection in a resource group. */ post( - options: ExpressRouteCrossConnectionsListRoutesTableSummaryParameters + options: ExpressRouteCrossConnectionsListRoutesTableSummaryParameters, ): StreamableMethod< | ExpressRouteCrossConnectionsListRoutesTableSummary200Response | ExpressRouteCrossConnectionsListRoutesTableSummary202Response @@ -3485,7 +3485,7 @@ export interface ExpressRouteCrossConnectionsListRoutesTableSummary { export interface ExpressRouteCrossConnectionsListRoutesTable { /** Gets the currently advertised routes table associated with the express route cross connection in a resource group. */ post( - options: ExpressRouteCrossConnectionsListRoutesTableParameters + options: ExpressRouteCrossConnectionsListRoutesTableParameters, ): StreamableMethod< | ExpressRouteCrossConnectionsListRoutesTable200Response | ExpressRouteCrossConnectionsListRoutesTable202Response @@ -3496,7 +3496,7 @@ export interface ExpressRouteCrossConnectionsListRoutesTable { export interface ExpressRouteCrossConnectionPeeringsList { /** Gets all peerings in a specified ExpressRouteCrossConnection. */ get( - options: ExpressRouteCrossConnectionPeeringsListParameters + options: ExpressRouteCrossConnectionPeeringsListParameters, ): StreamableMethod< | ExpressRouteCrossConnectionPeeringsList200Response | ExpressRouteCrossConnectionPeeringsListDefaultResponse @@ -3506,7 +3506,7 @@ export interface ExpressRouteCrossConnectionPeeringsList { export interface ExpressRouteCrossConnectionPeeringsDelete { /** Deletes the specified peering from the ExpressRouteCrossConnection. */ delete( - options: ExpressRouteCrossConnectionPeeringsDeleteParameters + options: ExpressRouteCrossConnectionPeeringsDeleteParameters, ): StreamableMethod< | ExpressRouteCrossConnectionPeeringsDelete200Response | ExpressRouteCrossConnectionPeeringsDelete202Response @@ -3515,14 +3515,14 @@ export interface ExpressRouteCrossConnectionPeeringsDelete { >; /** Gets the specified peering for the ExpressRouteCrossConnection. */ get( - options: ExpressRouteCrossConnectionPeeringsGetParameters + options: ExpressRouteCrossConnectionPeeringsGetParameters, ): StreamableMethod< | ExpressRouteCrossConnectionPeeringsGet200Response | ExpressRouteCrossConnectionPeeringsGetDefaultResponse >; /** Creates or updates a peering in the specified ExpressRouteCrossConnection. */ put( - options: ExpressRouteCrossConnectionPeeringsCreateOrUpdateParameters + options: ExpressRouteCrossConnectionPeeringsCreateOrUpdateParameters, ): StreamableMethod< | ExpressRouteCrossConnectionPeeringsCreateOrUpdate200Response | ExpressRouteCrossConnectionPeeringsCreateOrUpdate201Response @@ -3533,7 +3533,7 @@ export interface ExpressRouteCrossConnectionPeeringsDelete { export interface ExpressRoutePortsLocationsList { /** Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. Available bandwidths can only be obtained when retrieving a specific peering location. */ get( - options: ExpressRoutePortsLocationsListParameters + options: ExpressRoutePortsLocationsListParameters, ): StreamableMethod< ExpressRoutePortsLocationsList200Response | ExpressRoutePortsLocationsListDefaultResponse >; @@ -3542,7 +3542,7 @@ export interface ExpressRoutePortsLocationsList { export interface ExpressRoutePortsLocationsGet { /** Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at said peering location. */ get( - options: ExpressRoutePortsLocationsGetParameters + options: ExpressRoutePortsLocationsGetParameters, ): StreamableMethod< ExpressRoutePortsLocationsGet200Response | ExpressRoutePortsLocationsGetDefaultResponse >; @@ -3551,7 +3551,7 @@ export interface ExpressRoutePortsLocationsGet { export interface ExpressRoutePortsDelete { /** Deletes the specified ExpressRoutePort resource. */ delete( - options: ExpressRoutePortsDeleteParameters + options: ExpressRoutePortsDeleteParameters, ): StreamableMethod< | ExpressRoutePortsDelete200Response | ExpressRoutePortsDelete202Response @@ -3560,11 +3560,11 @@ export interface ExpressRoutePortsDelete { >; /** Retrieves the requested ExpressRoutePort resource. */ get( - options: ExpressRoutePortsGetParameters + options: ExpressRoutePortsGetParameters, ): StreamableMethod; /** Creates or updates the specified ExpressRoutePort resource. */ put( - options: ExpressRoutePortsCreateOrUpdateParameters + options: ExpressRoutePortsCreateOrUpdateParameters, ): StreamableMethod< | ExpressRoutePortsCreateOrUpdate200Response | ExpressRoutePortsCreateOrUpdate201Response @@ -3572,7 +3572,7 @@ export interface ExpressRoutePortsDelete { >; /** Update ExpressRoutePort tags. */ patch( - options: ExpressRoutePortsUpdateTagsParameters + options: ExpressRoutePortsUpdateTagsParameters, ): StreamableMethod< ExpressRoutePortsUpdateTags200Response | ExpressRoutePortsUpdateTagsDefaultResponse >; @@ -3581,7 +3581,7 @@ export interface ExpressRoutePortsDelete { export interface ExpressRoutePortsListByResourceGroup { /** List all the ExpressRoutePort resources in the specified resource group. */ get( - options: ExpressRoutePortsListByResourceGroupParameters + options: ExpressRoutePortsListByResourceGroupParameters, ): StreamableMethod< | ExpressRoutePortsListByResourceGroup200Response | ExpressRoutePortsListByResourceGroupDefaultResponse @@ -3591,14 +3591,14 @@ export interface ExpressRoutePortsListByResourceGroup { export interface ExpressRoutePortsList { /** List all the ExpressRoutePort resources in the specified subscription. */ get( - options: ExpressRoutePortsListParameters + options: ExpressRoutePortsListParameters, ): StreamableMethod; } export interface ExpressRoutePortsGenerateLOA { /** Generate a letter of authorization for the requested ExpressRoutePort resource. */ post( - options: ExpressRoutePortsGenerateLOAParameters + options: ExpressRoutePortsGenerateLOAParameters, ): StreamableMethod< ExpressRoutePortsGenerateLOA200Response | ExpressRoutePortsGenerateLOADefaultResponse >; @@ -3607,21 +3607,21 @@ export interface ExpressRoutePortsGenerateLOA { export interface ExpressRouteLinksGet { /** Retrieves the specified ExpressRouteLink resource. */ get( - options: ExpressRouteLinksGetParameters + options: ExpressRouteLinksGetParameters, ): StreamableMethod; } export interface ExpressRouteLinksList { /** Retrieve the ExpressRouteLink sub-resources of the specified ExpressRoutePort resource. */ get( - options: ExpressRouteLinksListParameters + options: ExpressRouteLinksListParameters, ): StreamableMethod; } export interface ExpressRoutePortAuthorizationsDelete { /** Deletes the specified authorization from the specified express route port. */ delete( - options: ExpressRoutePortAuthorizationsDeleteParameters + options: ExpressRoutePortAuthorizationsDeleteParameters, ): StreamableMethod< | ExpressRoutePortAuthorizationsDelete200Response | ExpressRoutePortAuthorizationsDelete202Response @@ -3630,13 +3630,13 @@ export interface ExpressRoutePortAuthorizationsDelete { >; /** Gets the specified authorization from the specified express route port. */ get( - options: ExpressRoutePortAuthorizationsGetParameters + options: ExpressRoutePortAuthorizationsGetParameters, ): StreamableMethod< ExpressRoutePortAuthorizationsGet200Response | ExpressRoutePortAuthorizationsGetDefaultResponse >; /** Creates or updates an authorization in the specified express route port. */ put( - options: ExpressRoutePortAuthorizationsCreateOrUpdateParameters + options: ExpressRoutePortAuthorizationsCreateOrUpdateParameters, ): StreamableMethod< | ExpressRoutePortAuthorizationsCreateOrUpdate200Response | ExpressRoutePortAuthorizationsCreateOrUpdate201Response @@ -3647,7 +3647,7 @@ export interface ExpressRoutePortAuthorizationsDelete { export interface ExpressRoutePortAuthorizationsList { /** Gets all authorizations in an express route port. */ get( - options: ExpressRoutePortAuthorizationsListParameters + options: ExpressRoutePortAuthorizationsListParameters, ): StreamableMethod< | ExpressRoutePortAuthorizationsList200Response | ExpressRoutePortAuthorizationsListDefaultResponse @@ -3657,7 +3657,7 @@ export interface ExpressRoutePortAuthorizationsList { export interface ExpressRouteProviderPortsLocationList { /** Retrieves all the ExpressRouteProviderPorts in a subscription. */ get( - options: ExpressRouteProviderPortsLocationListParameters + options: ExpressRouteProviderPortsLocationListParameters, ): StreamableMethod< | ExpressRouteProviderPortsLocationList200Response | ExpressRouteProviderPortsLocationListDefaultResponse @@ -3667,7 +3667,7 @@ export interface ExpressRouteProviderPortsLocationList { export interface ExpressRouteProviderPortsGet { /** Retrieves detail of a provider port. */ get( - options: ExpressRouteProviderPortsGetParameters + options: ExpressRouteProviderPortsGetParameters, ): StreamableMethod< ExpressRouteProviderPortsGet200Response | ExpressRouteProviderPortsGetDefaultResponse >; @@ -3676,7 +3676,7 @@ export interface ExpressRouteProviderPortsGet { export interface FirewallPoliciesDelete { /** Deletes the specified Firewall Policy. */ delete( - options: FirewallPoliciesDeleteParameters + options: FirewallPoliciesDeleteParameters, ): StreamableMethod< | FirewallPoliciesDelete200Response | FirewallPoliciesDelete202Response @@ -3685,11 +3685,11 @@ export interface FirewallPoliciesDelete { >; /** Gets the specified Firewall Policy. */ get( - options: FirewallPoliciesGetParameters + options: FirewallPoliciesGetParameters, ): StreamableMethod; /** Creates or updates the specified Firewall Policy. */ put( - options: FirewallPoliciesCreateOrUpdateParameters + options: FirewallPoliciesCreateOrUpdateParameters, ): StreamableMethod< | FirewallPoliciesCreateOrUpdate200Response | FirewallPoliciesCreateOrUpdate201Response @@ -3697,7 +3697,7 @@ export interface FirewallPoliciesDelete { >; /** Updates tags of a Azure Firewall Policy resource. */ patch( - options: FirewallPoliciesUpdateTagsParameters + options: FirewallPoliciesUpdateTagsParameters, ): StreamableMethod< FirewallPoliciesUpdateTags200Response | FirewallPoliciesUpdateTagsDefaultResponse >; @@ -3706,21 +3706,21 @@ export interface FirewallPoliciesDelete { export interface FirewallPoliciesList { /** Lists all Firewall Policies in a resource group. */ get( - options: FirewallPoliciesListParameters + options: FirewallPoliciesListParameters, ): StreamableMethod; } export interface FirewallPoliciesListAll { /** Gets all the Firewall Policies in a subscription. */ get( - options: FirewallPoliciesListAllParameters + options: FirewallPoliciesListAllParameters, ): StreamableMethod; } export interface FirewallPolicyRuleCollectionGroupsDelete { /** Deletes the specified FirewallPolicyRuleCollectionGroup. */ delete( - options: FirewallPolicyRuleCollectionGroupsDeleteParameters + options: FirewallPolicyRuleCollectionGroupsDeleteParameters, ): StreamableMethod< | FirewallPolicyRuleCollectionGroupsDelete200Response | FirewallPolicyRuleCollectionGroupsDelete202Response @@ -3729,14 +3729,14 @@ export interface FirewallPolicyRuleCollectionGroupsDelete { >; /** Gets the specified FirewallPolicyRuleCollectionGroup. */ get( - options: FirewallPolicyRuleCollectionGroupsGetParameters + options: FirewallPolicyRuleCollectionGroupsGetParameters, ): StreamableMethod< | FirewallPolicyRuleCollectionGroupsGet200Response | FirewallPolicyRuleCollectionGroupsGetDefaultResponse >; /** Creates or updates the specified FirewallPolicyRuleCollectionGroup. */ put( - options: FirewallPolicyRuleCollectionGroupsCreateOrUpdateParameters + options: FirewallPolicyRuleCollectionGroupsCreateOrUpdateParameters, ): StreamableMethod< | FirewallPolicyRuleCollectionGroupsCreateOrUpdate200Response | FirewallPolicyRuleCollectionGroupsCreateOrUpdate201Response @@ -3747,7 +3747,7 @@ export interface FirewallPolicyRuleCollectionGroupsDelete { export interface FirewallPolicyRuleCollectionGroupsList { /** Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. */ get( - options: FirewallPolicyRuleCollectionGroupsListParameters + options: FirewallPolicyRuleCollectionGroupsListParameters, ): StreamableMethod< | FirewallPolicyRuleCollectionGroupsList200Response | FirewallPolicyRuleCollectionGroupsListDefaultResponse @@ -3757,7 +3757,7 @@ export interface FirewallPolicyRuleCollectionGroupsList { export interface FirewallPolicyIdpsSignaturesList { /** Retrieves the current status of IDPS signatures for the relevant policy */ post( - options: FirewallPolicyIdpsSignaturesListParameters + options: FirewallPolicyIdpsSignaturesListParameters, ): StreamableMethod< FirewallPolicyIdpsSignaturesList200Response | FirewallPolicyIdpsSignaturesListDefaultResponse >; @@ -3766,21 +3766,21 @@ export interface FirewallPolicyIdpsSignaturesList { export interface FirewallPolicyIdpsSignaturesOverridesPatch { /** Will update the status of policy's signature overrides for IDPS */ patch( - options: FirewallPolicyIdpsSignaturesOverridesPatchParameters + options: FirewallPolicyIdpsSignaturesOverridesPatchParameters, ): StreamableMethod< | FirewallPolicyIdpsSignaturesOverridesPatch200Response | FirewallPolicyIdpsSignaturesOverridesPatchDefaultResponse >; /** Will override/create a new signature overrides for the policy's IDPS */ put( - options: FirewallPolicyIdpsSignaturesOverridesPutParameters + options: FirewallPolicyIdpsSignaturesOverridesPutParameters, ): StreamableMethod< | FirewallPolicyIdpsSignaturesOverridesPut200Response | FirewallPolicyIdpsSignaturesOverridesPutDefaultResponse >; /** Returns all signatures overrides for a specific policy. */ get( - options: FirewallPolicyIdpsSignaturesOverridesGetParameters + options: FirewallPolicyIdpsSignaturesOverridesGetParameters, ): StreamableMethod< | FirewallPolicyIdpsSignaturesOverridesGet200Response | FirewallPolicyIdpsSignaturesOverridesGetDefaultResponse @@ -3790,7 +3790,7 @@ export interface FirewallPolicyIdpsSignaturesOverridesPatch { export interface FirewallPolicyIdpsSignaturesOverridesList { /** Returns all signatures overrides objects for a specific policy as a list containing a single value. */ get( - options: FirewallPolicyIdpsSignaturesOverridesListParameters + options: FirewallPolicyIdpsSignaturesOverridesListParameters, ): StreamableMethod< | FirewallPolicyIdpsSignaturesOverridesList200Response | FirewallPolicyIdpsSignaturesOverridesListDefaultResponse @@ -3800,7 +3800,7 @@ export interface FirewallPolicyIdpsSignaturesOverridesList { export interface FirewallPolicyIdpsSignaturesFilterValuesList { /** Retrieves the current filter values for the signatures overrides */ post( - options: FirewallPolicyIdpsSignaturesFilterValuesListParameters + options: FirewallPolicyIdpsSignaturesFilterValuesListParameters, ): StreamableMethod< | FirewallPolicyIdpsSignaturesFilterValuesList200Response | FirewallPolicyIdpsSignaturesFilterValuesListDefaultResponse @@ -3810,7 +3810,7 @@ export interface FirewallPolicyIdpsSignaturesFilterValuesList { export interface IpAllocationsDelete { /** Deletes the specified IpAllocation. */ delete( - options: IpAllocationsDeleteParameters + options: IpAllocationsDeleteParameters, ): StreamableMethod< | IpAllocationsDelete200Response | IpAllocationsDelete202Response @@ -3819,11 +3819,11 @@ export interface IpAllocationsDelete { >; /** Gets the specified IpAllocation by resource group. */ get( - options: IpAllocationsGetParameters + options: IpAllocationsGetParameters, ): StreamableMethod; /** Creates or updates an IpAllocation in the specified resource group. */ put( - options: IpAllocationsCreateOrUpdateParameters + options: IpAllocationsCreateOrUpdateParameters, ): StreamableMethod< | IpAllocationsCreateOrUpdate200Response | IpAllocationsCreateOrUpdate201Response @@ -3831,21 +3831,21 @@ export interface IpAllocationsDelete { >; /** Updates a IpAllocation tags. */ patch( - options: IpAllocationsUpdateTagsParameters + options: IpAllocationsUpdateTagsParameters, ): StreamableMethod; } export interface IpAllocationsList { /** Gets all IpAllocations in a subscription. */ get( - options: IpAllocationsListParameters + options: IpAllocationsListParameters, ): StreamableMethod; } export interface IpAllocationsListByResourceGroup { /** Gets all IpAllocations in a resource group. */ get( - options: IpAllocationsListByResourceGroupParameters + options: IpAllocationsListByResourceGroupParameters, ): StreamableMethod< IpAllocationsListByResourceGroup200Response | IpAllocationsListByResourceGroupDefaultResponse >; @@ -3854,11 +3854,11 @@ export interface IpAllocationsListByResourceGroup { export interface IpGroupsGet { /** Gets the specified ipGroups. */ get( - options: IpGroupsGetParameters + options: IpGroupsGetParameters, ): StreamableMethod; /** Creates or updates an ipGroups in a specified resource group. */ put( - options: IpGroupsCreateOrUpdateParameters + options: IpGroupsCreateOrUpdateParameters, ): StreamableMethod< | IpGroupsCreateOrUpdate200Response | IpGroupsCreateOrUpdate201Response @@ -3866,11 +3866,11 @@ export interface IpGroupsGet { >; /** Updates tags of an IpGroups resource. */ patch( - options: IpGroupsUpdateGroupsParameters + options: IpGroupsUpdateGroupsParameters, ): StreamableMethod; /** Deletes the specified ipGroups. */ delete( - options: IpGroupsDeleteParameters + options: IpGroupsDeleteParameters, ): StreamableMethod< | IpGroupsDelete200Response | IpGroupsDelete202Response @@ -3882,7 +3882,7 @@ export interface IpGroupsGet { export interface IpGroupsListByResourceGroup { /** Gets all IpGroups in a resource group. */ get( - options: IpGroupsListByResourceGroupParameters + options: IpGroupsListByResourceGroupParameters, ): StreamableMethod< IpGroupsListByResourceGroup200Response | IpGroupsListByResourceGroupDefaultResponse >; @@ -3891,14 +3891,14 @@ export interface IpGroupsListByResourceGroup { export interface IpGroupsList { /** Gets all IpGroups in a subscription. */ get( - options: IpGroupsListParameters + options: IpGroupsListParameters, ): StreamableMethod; } export interface LoadBalancersDelete { /** Deletes the specified load balancer. */ delete( - options: LoadBalancersDeleteParameters + options: LoadBalancersDeleteParameters, ): StreamableMethod< | LoadBalancersDelete200Response | LoadBalancersDelete202Response @@ -3907,11 +3907,11 @@ export interface LoadBalancersDelete { >; /** Gets the specified load balancer. */ get( - options: LoadBalancersGetParameters + options: LoadBalancersGetParameters, ): StreamableMethod; /** Creates or updates a load balancer. */ put( - options: LoadBalancersCreateOrUpdateParameters + options: LoadBalancersCreateOrUpdateParameters, ): StreamableMethod< | LoadBalancersCreateOrUpdate200Response | LoadBalancersCreateOrUpdate201Response @@ -3919,28 +3919,28 @@ export interface LoadBalancersDelete { >; /** Updates a load balancer tags. */ patch( - options: LoadBalancersUpdateTagsParameters + options: LoadBalancersUpdateTagsParameters, ): StreamableMethod; } export interface LoadBalancersListAll { /** Gets all the load balancers in a subscription. */ get( - options: LoadBalancersListAllParameters + options: LoadBalancersListAllParameters, ): StreamableMethod; } export interface LoadBalancersList { /** Gets all the load balancers in a resource group. */ get( - options: LoadBalancersListParameters + options: LoadBalancersListParameters, ): StreamableMethod; } export interface LoadBalancersSwapPublicIpAddresses { /** Swaps VIPs between two load balancers. */ post( - options: LoadBalancersSwapPublicIpAddressesParameters + options: LoadBalancersSwapPublicIpAddressesParameters, ): StreamableMethod< | LoadBalancersSwapPublicIpAddresses200Response | LoadBalancersSwapPublicIpAddresses202Response @@ -3951,7 +3951,7 @@ export interface LoadBalancersSwapPublicIpAddresses { export interface LoadBalancersListInboundNatRulePortMappings { /** List of inbound NAT rule port mappings. */ post( - options: LoadBalancersListInboundNatRulePortMappingsParameters + options: LoadBalancersListInboundNatRulePortMappingsParameters, ): StreamableMethod< | LoadBalancersListInboundNatRulePortMappings200Response | LoadBalancersListInboundNatRulePortMappings202Response @@ -3962,7 +3962,7 @@ export interface LoadBalancersListInboundNatRulePortMappings { export interface LoadBalancerBackendAddressPoolsList { /** Gets all the load balancer backed address pools. */ get( - options: LoadBalancerBackendAddressPoolsListParameters + options: LoadBalancerBackendAddressPoolsListParameters, ): StreamableMethod< | LoadBalancerBackendAddressPoolsList200Response | LoadBalancerBackendAddressPoolsListDefaultResponse @@ -3972,14 +3972,14 @@ export interface LoadBalancerBackendAddressPoolsList { export interface LoadBalancerBackendAddressPoolsGet { /** Gets load balancer backend address pool. */ get( - options: LoadBalancerBackendAddressPoolsGetParameters + options: LoadBalancerBackendAddressPoolsGetParameters, ): StreamableMethod< | LoadBalancerBackendAddressPoolsGet200Response | LoadBalancerBackendAddressPoolsGetDefaultResponse >; /** Creates or updates a load balancer backend address pool. */ put( - options: LoadBalancerBackendAddressPoolsCreateOrUpdateParameters + options: LoadBalancerBackendAddressPoolsCreateOrUpdateParameters, ): StreamableMethod< | LoadBalancerBackendAddressPoolsCreateOrUpdate200Response | LoadBalancerBackendAddressPoolsCreateOrUpdate201Response @@ -3987,7 +3987,7 @@ export interface LoadBalancerBackendAddressPoolsGet { >; /** Deletes the specified load balancer backend address pool. */ delete( - options: LoadBalancerBackendAddressPoolsDeleteParameters + options: LoadBalancerBackendAddressPoolsDeleteParameters, ): StreamableMethod< | LoadBalancerBackendAddressPoolsDelete200Response | LoadBalancerBackendAddressPoolsDelete202Response @@ -3999,7 +3999,7 @@ export interface LoadBalancerBackendAddressPoolsGet { export interface LoadBalancerFrontendIPConfigurationsList { /** Gets all the load balancer frontend IP configurations. */ get( - options: LoadBalancerFrontendIPConfigurationsListParameters + options: LoadBalancerFrontendIPConfigurationsListParameters, ): StreamableMethod< | LoadBalancerFrontendIPConfigurationsList200Response | LoadBalancerFrontendIPConfigurationsListDefaultResponse @@ -4009,7 +4009,7 @@ export interface LoadBalancerFrontendIPConfigurationsList { export interface LoadBalancerFrontendIPConfigurationsGet { /** Gets load balancer frontend IP configuration. */ get( - options: LoadBalancerFrontendIPConfigurationsGetParameters + options: LoadBalancerFrontendIPConfigurationsGetParameters, ): StreamableMethod< | LoadBalancerFrontendIPConfigurationsGet200Response | LoadBalancerFrontendIPConfigurationsGetDefaultResponse @@ -4019,14 +4019,14 @@ export interface LoadBalancerFrontendIPConfigurationsGet { export interface InboundNatRulesList { /** Gets all the inbound NAT rules in a load balancer. */ get( - options: InboundNatRulesListParameters + options: InboundNatRulesListParameters, ): StreamableMethod; } export interface InboundNatRulesDelete { /** Deletes the specified load balancer inbound NAT rule. */ delete( - options: InboundNatRulesDeleteParameters + options: InboundNatRulesDeleteParameters, ): StreamableMethod< | InboundNatRulesDelete200Response | InboundNatRulesDelete202Response @@ -4035,11 +4035,11 @@ export interface InboundNatRulesDelete { >; /** Gets the specified load balancer inbound NAT rule. */ get( - options: InboundNatRulesGetParameters + options: InboundNatRulesGetParameters, ): StreamableMethod; /** Creates or updates a load balancer inbound NAT rule. */ put( - options: InboundNatRulesCreateOrUpdateParameters + options: InboundNatRulesCreateOrUpdateParameters, ): StreamableMethod< | InboundNatRulesCreateOrUpdate200Response | InboundNatRulesCreateOrUpdate201Response @@ -4050,7 +4050,7 @@ export interface InboundNatRulesDelete { export interface LoadBalancerLoadBalancingRulesList { /** Gets all the load balancing rules in a load balancer. */ get( - options: LoadBalancerLoadBalancingRulesListParameters + options: LoadBalancerLoadBalancingRulesListParameters, ): StreamableMethod< | LoadBalancerLoadBalancingRulesList200Response | LoadBalancerLoadBalancingRulesListDefaultResponse @@ -4060,7 +4060,7 @@ export interface LoadBalancerLoadBalancingRulesList { export interface LoadBalancerLoadBalancingRulesGet { /** Gets the specified load balancer load balancing rule. */ get( - options: LoadBalancerLoadBalancingRulesGetParameters + options: LoadBalancerLoadBalancingRulesGetParameters, ): StreamableMethod< LoadBalancerLoadBalancingRulesGet200Response | LoadBalancerLoadBalancingRulesGetDefaultResponse >; @@ -4069,7 +4069,7 @@ export interface LoadBalancerLoadBalancingRulesGet { export interface LoadBalancerOutboundRulesList { /** Gets all the outbound rules in a load balancer. */ get( - options: LoadBalancerOutboundRulesListParameters + options: LoadBalancerOutboundRulesListParameters, ): StreamableMethod< LoadBalancerOutboundRulesList200Response | LoadBalancerOutboundRulesListDefaultResponse >; @@ -4078,7 +4078,7 @@ export interface LoadBalancerOutboundRulesList { export interface LoadBalancerOutboundRulesGet { /** Gets the specified load balancer outbound rule. */ get( - options: LoadBalancerOutboundRulesGetParameters + options: LoadBalancerOutboundRulesGetParameters, ): StreamableMethod< LoadBalancerOutboundRulesGet200Response | LoadBalancerOutboundRulesGetDefaultResponse >; @@ -4087,7 +4087,7 @@ export interface LoadBalancerOutboundRulesGet { export interface LoadBalancerNetworkInterfacesList { /** Gets associated load balancer network interfaces. */ get( - options: LoadBalancerNetworkInterfacesListParameters + options: LoadBalancerNetworkInterfacesListParameters, ): StreamableMethod< LoadBalancerNetworkInterfacesList200Response | LoadBalancerNetworkInterfacesListDefaultResponse >; @@ -4096,21 +4096,21 @@ export interface LoadBalancerNetworkInterfacesList { export interface LoadBalancerProbesList { /** Gets all the load balancer probes. */ get( - options: LoadBalancerProbesListParameters + options: LoadBalancerProbesListParameters, ): StreamableMethod; } export interface LoadBalancerProbesGet { /** Gets load balancer probe. */ get( - options: LoadBalancerProbesGetParameters + options: LoadBalancerProbesGetParameters, ): StreamableMethod; } export interface NatGatewaysDelete { /** Deletes the specified nat gateway. */ delete( - options: NatGatewaysDeleteParameters + options: NatGatewaysDeleteParameters, ): StreamableMethod< | NatGatewaysDelete200Response | NatGatewaysDelete202Response @@ -4119,11 +4119,11 @@ export interface NatGatewaysDelete { >; /** Gets the specified nat gateway in a specified resource group. */ get( - options: NatGatewaysGetParameters + options: NatGatewaysGetParameters, ): StreamableMethod; /** Creates or updates a nat gateway. */ put( - options: NatGatewaysCreateOrUpdateParameters + options: NatGatewaysCreateOrUpdateParameters, ): StreamableMethod< | NatGatewaysCreateOrUpdate200Response | NatGatewaysCreateOrUpdate201Response @@ -4132,28 +4132,28 @@ export interface NatGatewaysDelete { >; /** Updates nat gateway tags. */ patch( - options: NatGatewaysUpdateTagsParameters + options: NatGatewaysUpdateTagsParameters, ): StreamableMethod; } export interface NatGatewaysListAll { /** Gets all the Nat Gateways in a subscription. */ get( - options: NatGatewaysListAllParameters + options: NatGatewaysListAllParameters, ): StreamableMethod; } export interface NatGatewaysList { /** Gets all nat gateways in a resource group. */ get( - options: NatGatewaysListParameters + options: NatGatewaysListParameters, ): StreamableMethod; } export interface NetworkInterfaceIPConfigurationsList { /** Get all ip configurations in a network interface. */ get( - options: NetworkInterfaceIPConfigurationsListParameters + options: NetworkInterfaceIPConfigurationsListParameters, ): StreamableMethod< | NetworkInterfaceIPConfigurationsList200Response | NetworkInterfaceIPConfigurationsListDefaultResponse @@ -4163,7 +4163,7 @@ export interface NetworkInterfaceIPConfigurationsList { export interface NetworkInterfaceIPConfigurationsGet { /** Gets the specified network interface ip configuration. */ get( - options: NetworkInterfaceIPConfigurationsGetParameters + options: NetworkInterfaceIPConfigurationsGetParameters, ): StreamableMethod< | NetworkInterfaceIPConfigurationsGet200Response | NetworkInterfaceIPConfigurationsGetDefaultResponse @@ -4173,7 +4173,7 @@ export interface NetworkInterfaceIPConfigurationsGet { export interface NetworkInterfaceLoadBalancersList { /** List all load balancers in a network interface. */ get( - options: NetworkInterfaceLoadBalancersListParameters + options: NetworkInterfaceLoadBalancersListParameters, ): StreamableMethod< NetworkInterfaceLoadBalancersList200Response | NetworkInterfaceLoadBalancersListDefaultResponse >; @@ -4182,7 +4182,7 @@ export interface NetworkInterfaceLoadBalancersList { export interface NetworkInterfaceTapConfigurationsDelete { /** Deletes the specified tap configuration from the NetworkInterface. */ delete( - options: NetworkInterfaceTapConfigurationsDeleteParameters + options: NetworkInterfaceTapConfigurationsDeleteParameters, ): StreamableMethod< | NetworkInterfaceTapConfigurationsDelete200Response | NetworkInterfaceTapConfigurationsDelete202Response @@ -4191,14 +4191,14 @@ export interface NetworkInterfaceTapConfigurationsDelete { >; /** Get the specified tap configuration on a network interface. */ get( - options: NetworkInterfaceTapConfigurationsGetParameters + options: NetworkInterfaceTapConfigurationsGetParameters, ): StreamableMethod< | NetworkInterfaceTapConfigurationsGet200Response | NetworkInterfaceTapConfigurationsGetDefaultResponse >; /** Creates or updates a Tap configuration in the specified NetworkInterface. */ put( - options: NetworkInterfaceTapConfigurationsCreateOrUpdateParameters + options: NetworkInterfaceTapConfigurationsCreateOrUpdateParameters, ): StreamableMethod< | NetworkInterfaceTapConfigurationsCreateOrUpdate200Response | NetworkInterfaceTapConfigurationsCreateOrUpdate201Response @@ -4209,7 +4209,7 @@ export interface NetworkInterfaceTapConfigurationsDelete { export interface NetworkInterfaceTapConfigurationsList { /** Get all Tap configurations in a network interface. */ get( - options: NetworkInterfaceTapConfigurationsListParameters + options: NetworkInterfaceTapConfigurationsListParameters, ): StreamableMethod< | NetworkInterfaceTapConfigurationsList200Response | NetworkInterfaceTapConfigurationsListDefaultResponse @@ -4219,11 +4219,11 @@ export interface NetworkInterfaceTapConfigurationsList { export interface NetworkManagersGet { /** Gets the specified Network Manager. */ get( - options: NetworkManagersGetParameters + options: NetworkManagersGetParameters, ): StreamableMethod; /** Creates or updates a Network Manager. */ put( - options: NetworkManagersCreateOrUpdateParameters + options: NetworkManagersCreateOrUpdateParameters, ): StreamableMethod< | NetworkManagersCreateOrUpdate200Response | NetworkManagersCreateOrUpdate201Response @@ -4231,7 +4231,7 @@ export interface NetworkManagersGet { >; /** Deletes a network manager. */ delete( - options: NetworkManagersDeleteParameters + options: NetworkManagersDeleteParameters, ): StreamableMethod< | NetworkManagersDelete200Response | NetworkManagersDelete202Response @@ -4240,14 +4240,14 @@ export interface NetworkManagersGet { >; /** Patch NetworkManager. */ patch( - options: NetworkManagersPatchParameters + options: NetworkManagersPatchParameters, ): StreamableMethod; } export interface NetworkManagersListBySubscription { /** List all network managers in a subscription. */ get( - options: NetworkManagersListBySubscriptionParameters + options: NetworkManagersListBySubscriptionParameters, ): StreamableMethod< NetworkManagersListBySubscription200Response | NetworkManagersListBySubscriptionDefaultResponse >; @@ -4256,14 +4256,14 @@ export interface NetworkManagersListBySubscription { export interface NetworkManagersList { /** List network managers in a resource group. */ get( - options: NetworkManagersListParameters + options: NetworkManagersListParameters, ): StreamableMethod; } export interface NetworkManagerCommitsPost { /** Post a Network Manager Commit. */ post( - options: NetworkManagerCommitsPostParameters + options: NetworkManagerCommitsPostParameters, ): StreamableMethod< | NetworkManagerCommitsPost200Response | NetworkManagerCommitsPost202Response @@ -4274,7 +4274,7 @@ export interface NetworkManagerCommitsPost { export interface NetworkManagerDeploymentStatusList { /** Post to List of Network Manager Deployment Status. */ post( - options: NetworkManagerDeploymentStatusListParameters + options: NetworkManagerDeploymentStatusListParameters, ): StreamableMethod< | NetworkManagerDeploymentStatusList200Response | NetworkManagerDeploymentStatusListDefaultResponse @@ -4284,7 +4284,7 @@ export interface NetworkManagerDeploymentStatusList { export interface SubscriptionNetworkManagerConnectionsCreateOrUpdate { /** Create a network manager connection on this subscription. */ put( - options: SubscriptionNetworkManagerConnectionsCreateOrUpdateParameters + options: SubscriptionNetworkManagerConnectionsCreateOrUpdateParameters, ): StreamableMethod< | SubscriptionNetworkManagerConnectionsCreateOrUpdate200Response | SubscriptionNetworkManagerConnectionsCreateOrUpdate201Response @@ -4292,14 +4292,14 @@ export interface SubscriptionNetworkManagerConnectionsCreateOrUpdate { >; /** Get a specified connection created by this subscription. */ get( - options: SubscriptionNetworkManagerConnectionsGetParameters + options: SubscriptionNetworkManagerConnectionsGetParameters, ): StreamableMethod< | SubscriptionNetworkManagerConnectionsGet200Response | SubscriptionNetworkManagerConnectionsGetDefaultResponse >; /** Delete specified connection created by this subscription. */ delete( - options: SubscriptionNetworkManagerConnectionsDeleteParameters + options: SubscriptionNetworkManagerConnectionsDeleteParameters, ): StreamableMethod< | SubscriptionNetworkManagerConnectionsDelete200Response | SubscriptionNetworkManagerConnectionsDelete204Response @@ -4310,7 +4310,7 @@ export interface SubscriptionNetworkManagerConnectionsCreateOrUpdate { export interface SubscriptionNetworkManagerConnectionsList { /** List all network manager connections created by this subscription. */ get( - options: SubscriptionNetworkManagerConnectionsListParameters + options: SubscriptionNetworkManagerConnectionsListParameters, ): StreamableMethod< | SubscriptionNetworkManagerConnectionsList200Response | SubscriptionNetworkManagerConnectionsListDefaultResponse @@ -4320,7 +4320,7 @@ export interface SubscriptionNetworkManagerConnectionsList { export interface ManagementGroupNetworkManagerConnectionsCreateOrUpdate { /** Create a network manager connection on this management group. */ put( - options: ManagementGroupNetworkManagerConnectionsCreateOrUpdateParameters + options: ManagementGroupNetworkManagerConnectionsCreateOrUpdateParameters, ): StreamableMethod< | ManagementGroupNetworkManagerConnectionsCreateOrUpdate200Response | ManagementGroupNetworkManagerConnectionsCreateOrUpdate201Response @@ -4328,14 +4328,14 @@ export interface ManagementGroupNetworkManagerConnectionsCreateOrUpdate { >; /** Get a specified connection created by this management group. */ get( - options: ManagementGroupNetworkManagerConnectionsGetParameters + options: ManagementGroupNetworkManagerConnectionsGetParameters, ): StreamableMethod< | ManagementGroupNetworkManagerConnectionsGet200Response | ManagementGroupNetworkManagerConnectionsGetDefaultResponse >; /** Delete specified pending connection created by this management group. */ delete( - options: ManagementGroupNetworkManagerConnectionsDeleteParameters + options: ManagementGroupNetworkManagerConnectionsDeleteParameters, ): StreamableMethod< | ManagementGroupNetworkManagerConnectionsDelete200Response | ManagementGroupNetworkManagerConnectionsDelete204Response @@ -4346,7 +4346,7 @@ export interface ManagementGroupNetworkManagerConnectionsCreateOrUpdate { export interface ManagementGroupNetworkManagerConnectionsList { /** List all network manager connections created by this management group. */ get( - options: ManagementGroupNetworkManagerConnectionsListParameters + options: ManagementGroupNetworkManagerConnectionsListParameters, ): StreamableMethod< | ManagementGroupNetworkManagerConnectionsList200Response | ManagementGroupNetworkManagerConnectionsListDefaultResponse @@ -4356,13 +4356,13 @@ export interface ManagementGroupNetworkManagerConnectionsList { export interface ConnectivityConfigurationsGet { /** Gets a Network Connectivity Configuration, specified by the resource group, network manager name, and connectivity Configuration name */ get( - options: ConnectivityConfigurationsGetParameters + options: ConnectivityConfigurationsGetParameters, ): StreamableMethod< ConnectivityConfigurationsGet200Response | ConnectivityConfigurationsGetDefaultResponse >; /** Creates/Updates a new network manager connectivity configuration */ put( - options: ConnectivityConfigurationsCreateOrUpdateParameters + options: ConnectivityConfigurationsCreateOrUpdateParameters, ): StreamableMethod< | ConnectivityConfigurationsCreateOrUpdate200Response | ConnectivityConfigurationsCreateOrUpdate201Response @@ -4370,7 +4370,7 @@ export interface ConnectivityConfigurationsGet { >; /** Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and connectivity configuration name */ delete( - options: ConnectivityConfigurationsDeleteParameters + options: ConnectivityConfigurationsDeleteParameters, ): StreamableMethod< | ConnectivityConfigurationsDelete200Response | ConnectivityConfigurationsDelete202Response @@ -4382,7 +4382,7 @@ export interface ConnectivityConfigurationsGet { export interface ConnectivityConfigurationsList { /** Lists all the network manager connectivity configuration in a specified network manager. */ get( - options: ConnectivityConfigurationsListParameters + options: ConnectivityConfigurationsListParameters, ): StreamableMethod< ConnectivityConfigurationsList200Response | ConnectivityConfigurationsListDefaultResponse >; @@ -4391,11 +4391,11 @@ export interface ConnectivityConfigurationsList { export interface NetworkGroupsGet { /** Gets the specified network group. */ get( - options: NetworkGroupsGetParameters + options: NetworkGroupsGetParameters, ): StreamableMethod; /** Creates or updates a network group. */ put( - options: NetworkGroupsCreateOrUpdateParameters + options: NetworkGroupsCreateOrUpdateParameters, ): StreamableMethod< | NetworkGroupsCreateOrUpdate200Response | NetworkGroupsCreateOrUpdate201Response @@ -4403,7 +4403,7 @@ export interface NetworkGroupsGet { >; /** Deletes a network group. */ delete( - options: NetworkGroupsDeleteParameters + options: NetworkGroupsDeleteParameters, ): StreamableMethod< | NetworkGroupsDelete200Response | NetworkGroupsDelete202Response @@ -4415,18 +4415,18 @@ export interface NetworkGroupsGet { export interface NetworkGroupsList { /** Lists the specified network group. */ get( - options: NetworkGroupsListParameters + options: NetworkGroupsListParameters, ): StreamableMethod; } export interface StaticMembersGet { /** Gets the specified static member. */ get( - options: StaticMembersGetParameters + options: StaticMembersGetParameters, ): StreamableMethod; /** Creates or updates a static member. */ put( - options: StaticMembersCreateOrUpdateParameters + options: StaticMembersCreateOrUpdateParameters, ): StreamableMethod< | StaticMembersCreateOrUpdate200Response | StaticMembersCreateOrUpdate201Response @@ -4434,7 +4434,7 @@ export interface StaticMembersGet { >; /** Deletes a static member. */ delete( - options: StaticMembersDeleteParameters + options: StaticMembersDeleteParameters, ): StreamableMethod< | StaticMembersDelete200Response | StaticMembersDelete204Response @@ -4445,14 +4445,14 @@ export interface StaticMembersGet { export interface StaticMembersList { /** Lists the specified static member. */ get( - options: StaticMembersListParameters + options: StaticMembersListParameters, ): StreamableMethod; } export interface ScopeConnectionsCreateOrUpdate { /** Creates or updates scope connection from Network Manager */ put( - options: ScopeConnectionsCreateOrUpdateParameters + options: ScopeConnectionsCreateOrUpdateParameters, ): StreamableMethod< | ScopeConnectionsCreateOrUpdate200Response | ScopeConnectionsCreateOrUpdate201Response @@ -4460,11 +4460,11 @@ export interface ScopeConnectionsCreateOrUpdate { >; /** Get specified scope connection created by this Network Manager. */ get( - options: ScopeConnectionsGetParameters + options: ScopeConnectionsGetParameters, ): StreamableMethod; /** Delete the pending scope connection created by this network manager. */ delete( - options: ScopeConnectionsDeleteParameters + options: ScopeConnectionsDeleteParameters, ): StreamableMethod< | ScopeConnectionsDelete200Response | ScopeConnectionsDelete204Response @@ -4475,14 +4475,14 @@ export interface ScopeConnectionsCreateOrUpdate { export interface ScopeConnectionsList { /** List all scope connections created by this network manager. */ get( - options: ScopeConnectionsListParameters + options: ScopeConnectionsListParameters, ): StreamableMethod; } export interface SecurityAdminConfigurationsList { /** Lists all the network manager security admin configurations in a network manager, in a paginated format. */ get( - options: SecurityAdminConfigurationsListParameters + options: SecurityAdminConfigurationsListParameters, ): StreamableMethod< SecurityAdminConfigurationsList200Response | SecurityAdminConfigurationsListDefaultResponse >; @@ -4491,13 +4491,13 @@ export interface SecurityAdminConfigurationsList { export interface SecurityAdminConfigurationsGet { /** Retrieves a network manager security admin configuration. */ get( - options: SecurityAdminConfigurationsGetParameters + options: SecurityAdminConfigurationsGetParameters, ): StreamableMethod< SecurityAdminConfigurationsGet200Response | SecurityAdminConfigurationsGetDefaultResponse >; /** Creates or updates a network manager security admin configuration. */ put( - options: SecurityAdminConfigurationsCreateOrUpdateParameters + options: SecurityAdminConfigurationsCreateOrUpdateParameters, ): StreamableMethod< | SecurityAdminConfigurationsCreateOrUpdate200Response | SecurityAdminConfigurationsCreateOrUpdate201Response @@ -4505,7 +4505,7 @@ export interface SecurityAdminConfigurationsGet { >; /** Deletes a network manager security admin configuration. */ delete( - options: SecurityAdminConfigurationsDeleteParameters + options: SecurityAdminConfigurationsDeleteParameters, ): StreamableMethod< | SecurityAdminConfigurationsDelete200Response | SecurityAdminConfigurationsDelete202Response @@ -4517,7 +4517,7 @@ export interface SecurityAdminConfigurationsGet { export interface AdminRuleCollectionsList { /** Lists all the rule collections in a security admin configuration, in a paginated format. */ get( - options: AdminRuleCollectionsListParameters + options: AdminRuleCollectionsListParameters, ): StreamableMethod< AdminRuleCollectionsList200Response | AdminRuleCollectionsListDefaultResponse >; @@ -4526,11 +4526,11 @@ export interface AdminRuleCollectionsList { export interface AdminRuleCollectionsGet { /** Gets a network manager security admin configuration rule collection. */ get( - options: AdminRuleCollectionsGetParameters + options: AdminRuleCollectionsGetParameters, ): StreamableMethod; /** Creates or updates an admin rule collection. */ put( - options: AdminRuleCollectionsCreateOrUpdateParameters + options: AdminRuleCollectionsCreateOrUpdateParameters, ): StreamableMethod< | AdminRuleCollectionsCreateOrUpdate200Response | AdminRuleCollectionsCreateOrUpdate201Response @@ -4538,7 +4538,7 @@ export interface AdminRuleCollectionsGet { >; /** Deletes an admin rule collection. */ delete( - options: AdminRuleCollectionsDeleteParameters + options: AdminRuleCollectionsDeleteParameters, ): StreamableMethod< | AdminRuleCollectionsDelete200Response | AdminRuleCollectionsDelete202Response @@ -4550,18 +4550,18 @@ export interface AdminRuleCollectionsGet { export interface AdminRulesList { /** List all network manager security configuration admin rules. */ get( - options: AdminRulesListParameters + options: AdminRulesListParameters, ): StreamableMethod; } export interface AdminRulesGet { /** Gets a network manager security configuration admin rule. */ get( - options: AdminRulesGetParameters + options: AdminRulesGetParameters, ): StreamableMethod; /** Creates or updates an admin rule. */ put( - options: AdminRulesCreateOrUpdateParameters + options: AdminRulesCreateOrUpdateParameters, ): StreamableMethod< | AdminRulesCreateOrUpdate200Response | AdminRulesCreateOrUpdate201Response @@ -4569,7 +4569,7 @@ export interface AdminRulesGet { >; /** Deletes an admin rule. */ delete( - options: AdminRulesDeleteParameters + options: AdminRulesDeleteParameters, ): StreamableMethod< | AdminRulesDelete200Response | AdminRulesDelete202Response @@ -4581,7 +4581,7 @@ export interface AdminRulesGet { export interface NetworkProfilesDelete { /** Deletes the specified network profile. */ delete( - options: NetworkProfilesDeleteParameters + options: NetworkProfilesDeleteParameters, ): StreamableMethod< | NetworkProfilesDelete200Response | NetworkProfilesDelete202Response @@ -4590,11 +4590,11 @@ export interface NetworkProfilesDelete { >; /** Gets the specified network profile in a specified resource group. */ get( - options: NetworkProfilesGetParameters + options: NetworkProfilesGetParameters, ): StreamableMethod; /** Creates or updates a network profile. */ put( - options: NetworkProfilesCreateOrUpdateParameters + options: NetworkProfilesCreateOrUpdateParameters, ): StreamableMethod< | NetworkProfilesCreateOrUpdate200Response | NetworkProfilesCreateOrUpdate201Response @@ -4602,7 +4602,7 @@ export interface NetworkProfilesDelete { >; /** Updates network profile tags. */ patch( - options: NetworkProfilesUpdateTagsParameters + options: NetworkProfilesUpdateTagsParameters, ): StreamableMethod< NetworkProfilesUpdateTags200Response | NetworkProfilesUpdateTagsDefaultResponse >; @@ -4611,21 +4611,21 @@ export interface NetworkProfilesDelete { export interface NetworkProfilesListAll { /** Gets all the network profiles in a subscription. */ get( - options: NetworkProfilesListAllParameters + options: NetworkProfilesListAllParameters, ): StreamableMethod; } export interface NetworkProfilesList { /** Gets all network profiles in a resource group. */ get( - options: NetworkProfilesListParameters + options: NetworkProfilesListParameters, ): StreamableMethod; } export interface NetworkSecurityGroupsDelete { /** Deletes the specified network security group. */ delete( - options: NetworkSecurityGroupsDeleteParameters + options: NetworkSecurityGroupsDeleteParameters, ): StreamableMethod< | NetworkSecurityGroupsDelete200Response | NetworkSecurityGroupsDelete202Response @@ -4634,13 +4634,13 @@ export interface NetworkSecurityGroupsDelete { >; /** Gets the specified network security group. */ get( - options: NetworkSecurityGroupsGetParameters + options: NetworkSecurityGroupsGetParameters, ): StreamableMethod< NetworkSecurityGroupsGet200Response | NetworkSecurityGroupsGetDefaultResponse >; /** Creates or updates a network security group in the specified resource group. */ put( - options: NetworkSecurityGroupsCreateOrUpdateParameters + options: NetworkSecurityGroupsCreateOrUpdateParameters, ): StreamableMethod< | NetworkSecurityGroupsCreateOrUpdate200Response | NetworkSecurityGroupsCreateOrUpdate201Response @@ -4648,7 +4648,7 @@ export interface NetworkSecurityGroupsDelete { >; /** Updates a network security group tags. */ patch( - options: NetworkSecurityGroupsUpdateTagsParameters + options: NetworkSecurityGroupsUpdateTagsParameters, ): StreamableMethod< NetworkSecurityGroupsUpdateTags200Response | NetworkSecurityGroupsUpdateTagsDefaultResponse >; @@ -4657,7 +4657,7 @@ export interface NetworkSecurityGroupsDelete { export interface NetworkSecurityGroupsListAll { /** Gets all network security groups in a subscription. */ get( - options: NetworkSecurityGroupsListAllParameters + options: NetworkSecurityGroupsListAllParameters, ): StreamableMethod< NetworkSecurityGroupsListAll200Response | NetworkSecurityGroupsListAllDefaultResponse >; @@ -4666,7 +4666,7 @@ export interface NetworkSecurityGroupsListAll { export interface NetworkSecurityGroupsList { /** Gets all network security groups in a resource group. */ get( - options: NetworkSecurityGroupsListParameters + options: NetworkSecurityGroupsListParameters, ): StreamableMethod< NetworkSecurityGroupsList200Response | NetworkSecurityGroupsListDefaultResponse >; @@ -4675,7 +4675,7 @@ export interface NetworkSecurityGroupsList { export interface SecurityRulesDelete { /** Deletes the specified network security rule. */ delete( - options: SecurityRulesDeleteParameters + options: SecurityRulesDeleteParameters, ): StreamableMethod< | SecurityRulesDelete200Response | SecurityRulesDelete202Response @@ -4684,11 +4684,11 @@ export interface SecurityRulesDelete { >; /** Get the specified network security rule. */ get( - options: SecurityRulesGetParameters + options: SecurityRulesGetParameters, ): StreamableMethod; /** Creates or updates a security rule in the specified network security group. */ put( - options: SecurityRulesCreateOrUpdateParameters + options: SecurityRulesCreateOrUpdateParameters, ): StreamableMethod< | SecurityRulesCreateOrUpdate200Response | SecurityRulesCreateOrUpdate201Response @@ -4699,14 +4699,14 @@ export interface SecurityRulesDelete { export interface SecurityRulesList { /** Gets all security rules in a network security group. */ get( - options: SecurityRulesListParameters + options: SecurityRulesListParameters, ): StreamableMethod; } export interface DefaultSecurityRulesList { /** Gets all default security rules in a network security group. */ get( - options: DefaultSecurityRulesListParameters + options: DefaultSecurityRulesListParameters, ): StreamableMethod< DefaultSecurityRulesList200Response | DefaultSecurityRulesListDefaultResponse >; @@ -4715,14 +4715,14 @@ export interface DefaultSecurityRulesList { export interface DefaultSecurityRulesGet { /** Get the specified default network security rule. */ get( - options: DefaultSecurityRulesGetParameters + options: DefaultSecurityRulesGetParameters, ): StreamableMethod; } export interface NetworkVirtualAppliancesDelete { /** Deletes the specified Network Virtual Appliance. */ delete( - options: NetworkVirtualAppliancesDeleteParameters + options: NetworkVirtualAppliancesDeleteParameters, ): StreamableMethod< | NetworkVirtualAppliancesDelete200Response | NetworkVirtualAppliancesDelete202Response @@ -4731,20 +4731,20 @@ export interface NetworkVirtualAppliancesDelete { >; /** Gets the specified Network Virtual Appliance. */ get( - options: NetworkVirtualAppliancesGetParameters + options: NetworkVirtualAppliancesGetParameters, ): StreamableMethod< NetworkVirtualAppliancesGet200Response | NetworkVirtualAppliancesGetDefaultResponse >; /** Updates a Network Virtual Appliance. */ patch( - options: NetworkVirtualAppliancesUpdateTagsParameters + options: NetworkVirtualAppliancesUpdateTagsParameters, ): StreamableMethod< | NetworkVirtualAppliancesUpdateTags200Response | NetworkVirtualAppliancesUpdateTagsDefaultResponse >; /** Creates or updates the specified Network Virtual Appliance. */ put( - options: NetworkVirtualAppliancesCreateOrUpdateParameters + options: NetworkVirtualAppliancesCreateOrUpdateParameters, ): StreamableMethod< | NetworkVirtualAppliancesCreateOrUpdate200Response | NetworkVirtualAppliancesCreateOrUpdate201Response @@ -4755,7 +4755,7 @@ export interface NetworkVirtualAppliancesDelete { export interface NetworkVirtualAppliancesListByResourceGroup { /** Lists all Network Virtual Appliances in a resource group. */ get( - options: NetworkVirtualAppliancesListByResourceGroupParameters + options: NetworkVirtualAppliancesListByResourceGroupParameters, ): StreamableMethod< | NetworkVirtualAppliancesListByResourceGroup200Response | NetworkVirtualAppliancesListByResourceGroupDefaultResponse @@ -4765,7 +4765,7 @@ export interface NetworkVirtualAppliancesListByResourceGroup { export interface NetworkVirtualAppliancesList { /** Gets all Network Virtual Appliances in a subscription. */ get( - options: NetworkVirtualAppliancesListParameters + options: NetworkVirtualAppliancesListParameters, ): StreamableMethod< NetworkVirtualAppliancesList200Response | NetworkVirtualAppliancesListDefaultResponse >; @@ -4774,7 +4774,7 @@ export interface NetworkVirtualAppliancesList { export interface VirtualApplianceSitesDelete { /** Deletes the specified site from a Virtual Appliance. */ delete( - options: VirtualApplianceSitesDeleteParameters + options: VirtualApplianceSitesDeleteParameters, ): StreamableMethod< | VirtualApplianceSitesDelete200Response | VirtualApplianceSitesDelete202Response @@ -4783,13 +4783,13 @@ export interface VirtualApplianceSitesDelete { >; /** Gets the specified Virtual Appliance Site. */ get( - options: VirtualApplianceSitesGetParameters + options: VirtualApplianceSitesGetParameters, ): StreamableMethod< VirtualApplianceSitesGet200Response | VirtualApplianceSitesGetDefaultResponse >; /** Creates or updates the specified Network Virtual Appliance Site. */ put( - options: VirtualApplianceSitesCreateOrUpdateParameters + options: VirtualApplianceSitesCreateOrUpdateParameters, ): StreamableMethod< | VirtualApplianceSitesCreateOrUpdate200Response | VirtualApplianceSitesCreateOrUpdate201Response @@ -4800,7 +4800,7 @@ export interface VirtualApplianceSitesDelete { export interface VirtualApplianceSitesList { /** Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource. */ get( - options: VirtualApplianceSitesListParameters + options: VirtualApplianceSitesListParameters, ): StreamableMethod< VirtualApplianceSitesList200Response | VirtualApplianceSitesListDefaultResponse >; @@ -4809,7 +4809,7 @@ export interface VirtualApplianceSitesList { export interface VirtualApplianceSkusList { /** List all SKUs available for a virtual appliance. */ get( - options: VirtualApplianceSkusListParameters + options: VirtualApplianceSkusListParameters, ): StreamableMethod< VirtualApplianceSkusList200Response | VirtualApplianceSkusListDefaultResponse >; @@ -4818,14 +4818,14 @@ export interface VirtualApplianceSkusList { export interface VirtualApplianceSkusGet { /** Retrieves a single available sku for network virtual appliance. */ get( - options: VirtualApplianceSkusGetParameters + options: VirtualApplianceSkusGetParameters, ): StreamableMethod; } export interface InboundSecurityRuleCreateOrUpdate { /** Creates or updates the specified Network Virtual Appliance Inbound Security Rules. */ put( - options: InboundSecurityRuleCreateOrUpdateParameters + options: InboundSecurityRuleCreateOrUpdateParameters, ): StreamableMethod< | InboundSecurityRuleCreateOrUpdate200Response | InboundSecurityRuleCreateOrUpdate201Response @@ -4836,7 +4836,7 @@ export interface InboundSecurityRuleCreateOrUpdate { export interface NetworkWatchersCreateOrUpdate { /** Creates or updates a network watcher in the specified resource group. */ put( - options: NetworkWatchersCreateOrUpdateParameters + options: NetworkWatchersCreateOrUpdateParameters, ): StreamableMethod< | NetworkWatchersCreateOrUpdate200Response | NetworkWatchersCreateOrUpdate201Response @@ -4844,11 +4844,11 @@ export interface NetworkWatchersCreateOrUpdate { >; /** Gets the specified network watcher by resource group. */ get( - options: NetworkWatchersGetParameters + options: NetworkWatchersGetParameters, ): StreamableMethod; /** Deletes the specified network watcher resource. */ delete( - options: NetworkWatchersDeleteParameters + options: NetworkWatchersDeleteParameters, ): StreamableMethod< | NetworkWatchersDelete202Response | NetworkWatchersDelete204Response @@ -4856,7 +4856,7 @@ export interface NetworkWatchersCreateOrUpdate { >; /** Updates a network watcher tags. */ patch( - options: NetworkWatchersUpdateTagsParameters + options: NetworkWatchersUpdateTagsParameters, ): StreamableMethod< NetworkWatchersUpdateTags200Response | NetworkWatchersUpdateTagsDefaultResponse >; @@ -4865,21 +4865,21 @@ export interface NetworkWatchersCreateOrUpdate { export interface NetworkWatchersList { /** Gets all network watchers by resource group. */ get( - options: NetworkWatchersListParameters + options: NetworkWatchersListParameters, ): StreamableMethod; } export interface NetworkWatchersListAll { /** Gets all network watchers by subscription. */ get( - options: NetworkWatchersListAllParameters + options: NetworkWatchersListAllParameters, ): StreamableMethod; } export interface NetworkWatchersGetTopology { /** Gets the current network topology by resource group. */ post( - options: NetworkWatchersGetTopologyParameters + options: NetworkWatchersGetTopologyParameters, ): StreamableMethod< NetworkWatchersGetTopology200Response | NetworkWatchersGetTopologyDefaultResponse >; @@ -4888,7 +4888,7 @@ export interface NetworkWatchersGetTopology { export interface NetworkWatchersVerifyIPFlow { /** Verify IP flow from the specified VM to a location given the currently configured NSG rules. */ post( - options: NetworkWatchersVerifyIPFlowParameters + options: NetworkWatchersVerifyIPFlowParameters, ): StreamableMethod< | NetworkWatchersVerifyIPFlow200Response | NetworkWatchersVerifyIPFlow202Response @@ -4899,7 +4899,7 @@ export interface NetworkWatchersVerifyIPFlow { export interface NetworkWatchersGetNextHop { /** Gets the next hop from the specified VM. */ post( - options: NetworkWatchersGetNextHopParameters + options: NetworkWatchersGetNextHopParameters, ): StreamableMethod< | NetworkWatchersGetNextHop200Response | NetworkWatchersGetNextHop202Response @@ -4910,7 +4910,7 @@ export interface NetworkWatchersGetNextHop { export interface NetworkWatchersGetVMSecurityRules { /** Gets the configured and effective security group rules on the specified VM. */ post( - options: NetworkWatchersGetVMSecurityRulesParameters + options: NetworkWatchersGetVMSecurityRulesParameters, ): StreamableMethod< | NetworkWatchersGetVMSecurityRules200Response | NetworkWatchersGetVMSecurityRules202Response @@ -4921,7 +4921,7 @@ export interface NetworkWatchersGetVMSecurityRules { export interface NetworkWatchersGetTroubleshooting { /** Initiate troubleshooting on a specified resource. */ post( - options: NetworkWatchersGetTroubleshootingParameters + options: NetworkWatchersGetTroubleshootingParameters, ): StreamableMethod< | NetworkWatchersGetTroubleshooting200Response | NetworkWatchersGetTroubleshooting202Response @@ -4932,7 +4932,7 @@ export interface NetworkWatchersGetTroubleshooting { export interface NetworkWatchersGetTroubleshootingResult { /** Get the last completed troubleshooting result on a specified resource. */ post( - options: NetworkWatchersGetTroubleshootingResultParameters + options: NetworkWatchersGetTroubleshootingResultParameters, ): StreamableMethod< | NetworkWatchersGetTroubleshootingResult200Response | NetworkWatchersGetTroubleshootingResult202Response @@ -4943,7 +4943,7 @@ export interface NetworkWatchersGetTroubleshootingResult { export interface NetworkWatchersSetFlowLogConfiguration { /** Configures flow log and traffic analytics (optional) on a specified resource. */ post( - options: NetworkWatchersSetFlowLogConfigurationParameters + options: NetworkWatchersSetFlowLogConfigurationParameters, ): StreamableMethod< | NetworkWatchersSetFlowLogConfiguration200Response | NetworkWatchersSetFlowLogConfiguration202Response @@ -4954,7 +4954,7 @@ export interface NetworkWatchersSetFlowLogConfiguration { export interface NetworkWatchersGetFlowLogStatus { /** Queries status of flow log and traffic analytics (optional) on a specified resource. */ post( - options: NetworkWatchersGetFlowLogStatusParameters + options: NetworkWatchersGetFlowLogStatusParameters, ): StreamableMethod< | NetworkWatchersGetFlowLogStatus200Response | NetworkWatchersGetFlowLogStatus202Response @@ -4965,7 +4965,7 @@ export interface NetworkWatchersGetFlowLogStatus { export interface NetworkWatchersCheckConnectivity { /** Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint including another VM or an arbitrary remote server. */ post( - options: NetworkWatchersCheckConnectivityParameters + options: NetworkWatchersCheckConnectivityParameters, ): StreamableMethod< | NetworkWatchersCheckConnectivity200Response | NetworkWatchersCheckConnectivity202Response @@ -4976,7 +4976,7 @@ export interface NetworkWatchersCheckConnectivity { export interface NetworkWatchersGetAzureReachabilityReport { /** NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score for internet service providers from a specified location to Azure regions. */ post( - options: NetworkWatchersGetAzureReachabilityReportParameters + options: NetworkWatchersGetAzureReachabilityReportParameters, ): StreamableMethod< | NetworkWatchersGetAzureReachabilityReport200Response | NetworkWatchersGetAzureReachabilityReport202Response @@ -4987,7 +4987,7 @@ export interface NetworkWatchersGetAzureReachabilityReport { export interface NetworkWatchersListAvailableProviders { /** NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet service providers for a specified Azure region. */ post( - options: NetworkWatchersListAvailableProvidersParameters + options: NetworkWatchersListAvailableProvidersParameters, ): StreamableMethod< | NetworkWatchersListAvailableProviders200Response | NetworkWatchersListAvailableProviders202Response @@ -4998,7 +4998,7 @@ export interface NetworkWatchersListAvailableProviders { export interface NetworkWatchersGetNetworkConfigurationDiagnostic { /** Gets Network Configuration Diagnostic data to help customers understand and debug network behavior. It provides detailed information on what security rules were applied to a specified traffic flow and the result of evaluating these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. */ post( - options: NetworkWatchersGetNetworkConfigurationDiagnosticParameters + options: NetworkWatchersGetNetworkConfigurationDiagnosticParameters, ): StreamableMethod< | NetworkWatchersGetNetworkConfigurationDiagnostic200Response | NetworkWatchersGetNetworkConfigurationDiagnostic202Response @@ -5009,15 +5009,15 @@ export interface NetworkWatchersGetNetworkConfigurationDiagnostic { export interface PacketCapturesCreate { /** Create and start a packet capture on the specified VM. */ put( - options: PacketCapturesCreateParameters + options: PacketCapturesCreateParameters, ): StreamableMethod; /** Gets a packet capture session by name. */ get( - options: PacketCapturesGetParameters + options: PacketCapturesGetParameters, ): StreamableMethod; /** Deletes the specified packet capture session. */ delete( - options: PacketCapturesDeleteParameters + options: PacketCapturesDeleteParameters, ): StreamableMethod< | PacketCapturesDelete202Response | PacketCapturesDelete204Response @@ -5028,7 +5028,7 @@ export interface PacketCapturesCreate { export interface PacketCapturesStop { /** Stops a specified packet capture session. */ post( - options: PacketCapturesStopParameters + options: PacketCapturesStopParameters, ): StreamableMethod< | PacketCapturesStop200Response | PacketCapturesStop202Response @@ -5039,7 +5039,7 @@ export interface PacketCapturesStop { export interface PacketCapturesGetStatus { /** Query the status of a running packet capture session. */ post( - options: PacketCapturesGetStatusParameters + options: PacketCapturesGetStatusParameters, ): StreamableMethod< | PacketCapturesGetStatus200Response | PacketCapturesGetStatus202Response @@ -5050,14 +5050,14 @@ export interface PacketCapturesGetStatus { export interface PacketCapturesList { /** Lists all packet capture sessions within the specified resource group. */ get( - options: PacketCapturesListParameters + options: PacketCapturesListParameters, ): StreamableMethod; } export interface ConnectionMonitorsCreateOrUpdate { /** Create or update a connection monitor. */ put( - options: ConnectionMonitorsCreateOrUpdateParameters + options: ConnectionMonitorsCreateOrUpdateParameters, ): StreamableMethod< | ConnectionMonitorsCreateOrUpdate200Response | ConnectionMonitorsCreateOrUpdate201Response @@ -5065,11 +5065,11 @@ export interface ConnectionMonitorsCreateOrUpdate { >; /** Gets a connection monitor by name. */ get( - options: ConnectionMonitorsGetParameters + options: ConnectionMonitorsGetParameters, ): StreamableMethod; /** Deletes the specified connection monitor. */ delete( - options: ConnectionMonitorsDeleteParameters + options: ConnectionMonitorsDeleteParameters, ): StreamableMethod< | ConnectionMonitorsDelete202Response | ConnectionMonitorsDelete204Response @@ -5077,7 +5077,7 @@ export interface ConnectionMonitorsCreateOrUpdate { >; /** Update tags of the specified connection monitor. */ patch( - options: ConnectionMonitorsUpdateTagsParameters + options: ConnectionMonitorsUpdateTagsParameters, ): StreamableMethod< ConnectionMonitorsUpdateTags200Response | ConnectionMonitorsUpdateTagsDefaultResponse >; @@ -5086,7 +5086,7 @@ export interface ConnectionMonitorsCreateOrUpdate { export interface ConnectionMonitorsStop { /** Stops the specified connection monitor. */ post( - options: ConnectionMonitorsStopParameters + options: ConnectionMonitorsStopParameters, ): StreamableMethod< | ConnectionMonitorsStop200Response | ConnectionMonitorsStop202Response @@ -5097,7 +5097,7 @@ export interface ConnectionMonitorsStop { export interface ConnectionMonitorsStart { /** Starts the specified connection monitor. */ post( - options: ConnectionMonitorsStartParameters + options: ConnectionMonitorsStartParameters, ): StreamableMethod< | ConnectionMonitorsStart200Response | ConnectionMonitorsStart202Response @@ -5108,7 +5108,7 @@ export interface ConnectionMonitorsStart { export interface ConnectionMonitorsQuery { /** Query a snapshot of the most recent connection states. */ post( - options: ConnectionMonitorsQueryParameters + options: ConnectionMonitorsQueryParameters, ): StreamableMethod< | ConnectionMonitorsQuery200Response | ConnectionMonitorsQuery202Response @@ -5119,14 +5119,14 @@ export interface ConnectionMonitorsQuery { export interface ConnectionMonitorsList { /** Lists all connection monitors for the specified Network Watcher. */ get( - options: ConnectionMonitorsListParameters + options: ConnectionMonitorsListParameters, ): StreamableMethod; } export interface FlowLogsCreateOrUpdate { /** Create or update a flow log for the specified network security group. */ put( - options: FlowLogsCreateOrUpdateParameters + options: FlowLogsCreateOrUpdateParameters, ): StreamableMethod< | FlowLogsCreateOrUpdate200Response | FlowLogsCreateOrUpdate201Response @@ -5134,15 +5134,15 @@ export interface FlowLogsCreateOrUpdate { >; /** Update tags of the specified flow log. */ patch( - options: FlowLogsUpdateTagsParameters + options: FlowLogsUpdateTagsParameters, ): StreamableMethod; /** Gets a flow log resource by name. */ get( - options: FlowLogsGetParameters + options: FlowLogsGetParameters, ): StreamableMethod; /** Deletes the specified flow log resource. */ delete( - options: FlowLogsDeleteParameters + options: FlowLogsDeleteParameters, ): StreamableMethod< FlowLogsDelete202Response | FlowLogsDelete204Response | FlowLogsDeleteDefaultResponse >; @@ -5151,21 +5151,21 @@ export interface FlowLogsCreateOrUpdate { export interface FlowLogsList { /** Lists all flow log resources for the specified Network Watcher. */ get( - options: FlowLogsListParameters + options: FlowLogsListParameters, ): StreamableMethod; } export interface OperationsList { /** Lists all of the available Network Rest API operations. */ get( - options: OperationsListParameters + options: OperationsListParameters, ): StreamableMethod; } export interface PrivateEndpointsDelete { /** Deletes the specified private endpoint. */ delete( - options: PrivateEndpointsDeleteParameters + options: PrivateEndpointsDeleteParameters, ): StreamableMethod< | PrivateEndpointsDelete200Response | PrivateEndpointsDelete202Response @@ -5174,11 +5174,11 @@ export interface PrivateEndpointsDelete { >; /** Gets the specified private endpoint by resource group. */ get( - options: PrivateEndpointsGetParameters + options: PrivateEndpointsGetParameters, ): StreamableMethod; /** Creates or updates an private endpoint in the specified resource group. */ put( - options: PrivateEndpointsCreateOrUpdateParameters + options: PrivateEndpointsCreateOrUpdateParameters, ): StreamableMethod< | PrivateEndpointsCreateOrUpdate200Response | PrivateEndpointsCreateOrUpdate201Response @@ -5189,14 +5189,14 @@ export interface PrivateEndpointsDelete { export interface PrivateEndpointsList { /** Gets all private endpoints in a resource group. */ get( - options: PrivateEndpointsListParameters + options: PrivateEndpointsListParameters, ): StreamableMethod; } export interface PrivateEndpointsListBySubscription { /** Gets all private endpoints in a subscription. */ get( - options: PrivateEndpointsListBySubscriptionParameters + options: PrivateEndpointsListBySubscriptionParameters, ): StreamableMethod< | PrivateEndpointsListBySubscription200Response | PrivateEndpointsListBySubscriptionDefaultResponse @@ -5206,7 +5206,7 @@ export interface PrivateEndpointsListBySubscription { export interface AvailablePrivateEndpointTypesList { /** Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. */ get( - options: AvailablePrivateEndpointTypesListParameters + options: AvailablePrivateEndpointTypesListParameters, ): StreamableMethod< AvailablePrivateEndpointTypesList200Response | AvailablePrivateEndpointTypesListDefaultResponse >; @@ -5215,7 +5215,7 @@ export interface AvailablePrivateEndpointTypesList { export interface AvailablePrivateEndpointTypesListByResourceGroup { /** Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. */ get( - options: AvailablePrivateEndpointTypesListByResourceGroupParameters + options: AvailablePrivateEndpointTypesListByResourceGroupParameters, ): StreamableMethod< | AvailablePrivateEndpointTypesListByResourceGroup200Response | AvailablePrivateEndpointTypesListByResourceGroupDefaultResponse @@ -5225,7 +5225,7 @@ export interface AvailablePrivateEndpointTypesListByResourceGroup { export interface PrivateDnsZoneGroupsDelete { /** Deletes the specified private dns zone group. */ delete( - options: PrivateDnsZoneGroupsDeleteParameters + options: PrivateDnsZoneGroupsDeleteParameters, ): StreamableMethod< | PrivateDnsZoneGroupsDelete200Response | PrivateDnsZoneGroupsDelete202Response @@ -5234,11 +5234,11 @@ export interface PrivateDnsZoneGroupsDelete { >; /** Gets the private dns zone group resource by specified private dns zone group name. */ get( - options: PrivateDnsZoneGroupsGetParameters + options: PrivateDnsZoneGroupsGetParameters, ): StreamableMethod; /** Creates or updates a private dns zone group in the specified private endpoint. */ put( - options: PrivateDnsZoneGroupsCreateOrUpdateParameters + options: PrivateDnsZoneGroupsCreateOrUpdateParameters, ): StreamableMethod< | PrivateDnsZoneGroupsCreateOrUpdate200Response | PrivateDnsZoneGroupsCreateOrUpdate201Response @@ -5249,7 +5249,7 @@ export interface PrivateDnsZoneGroupsDelete { export interface PrivateDnsZoneGroupsList { /** Gets all private dns zone groups in a private endpoint. */ get( - options: PrivateDnsZoneGroupsListParameters + options: PrivateDnsZoneGroupsListParameters, ): StreamableMethod< PrivateDnsZoneGroupsList200Response | PrivateDnsZoneGroupsListDefaultResponse >; @@ -5258,7 +5258,7 @@ export interface PrivateDnsZoneGroupsList { export interface PrivateLinkServicesDelete { /** Deletes the specified private link service. */ delete( - options: PrivateLinkServicesDeleteParameters + options: PrivateLinkServicesDeleteParameters, ): StreamableMethod< | PrivateLinkServicesDelete200Response | PrivateLinkServicesDelete202Response @@ -5267,11 +5267,11 @@ export interface PrivateLinkServicesDelete { >; /** Gets the specified private link service by resource group. */ get( - options: PrivateLinkServicesGetParameters + options: PrivateLinkServicesGetParameters, ): StreamableMethod; /** Creates or updates an private link service in the specified resource group. */ put( - options: PrivateLinkServicesCreateOrUpdateParameters + options: PrivateLinkServicesCreateOrUpdateParameters, ): StreamableMethod< | PrivateLinkServicesCreateOrUpdate200Response | PrivateLinkServicesCreateOrUpdate201Response @@ -5282,14 +5282,14 @@ export interface PrivateLinkServicesDelete { export interface PrivateLinkServicesList { /** Gets all private link services in a resource group. */ get( - options: PrivateLinkServicesListParameters + options: PrivateLinkServicesListParameters, ): StreamableMethod; } export interface PrivateLinkServicesListBySubscription { /** Gets all private link service in a subscription. */ get( - options: PrivateLinkServicesListBySubscriptionParameters + options: PrivateLinkServicesListBySubscriptionParameters, ): StreamableMethod< | PrivateLinkServicesListBySubscription200Response | PrivateLinkServicesListBySubscriptionDefaultResponse @@ -5299,21 +5299,21 @@ export interface PrivateLinkServicesListBySubscription { export interface PrivateLinkServicesGetPrivateEndpointConnection { /** Get the specific private end point connection by specific private link service in the resource group. */ get( - options: PrivateLinkServicesGetPrivateEndpointConnectionParameters + options: PrivateLinkServicesGetPrivateEndpointConnectionParameters, ): StreamableMethod< | PrivateLinkServicesGetPrivateEndpointConnection200Response | PrivateLinkServicesGetPrivateEndpointConnectionDefaultResponse >; /** Approve or reject private end point connection for a private link service in a subscription. */ put( - options: PrivateLinkServicesUpdatePrivateEndpointConnectionParameters + options: PrivateLinkServicesUpdatePrivateEndpointConnectionParameters, ): StreamableMethod< | PrivateLinkServicesUpdatePrivateEndpointConnection200Response | PrivateLinkServicesUpdatePrivateEndpointConnectionDefaultResponse >; /** Delete private end point connection for a private link service in a subscription. */ delete( - options: PrivateLinkServicesDeletePrivateEndpointConnectionParameters + options: PrivateLinkServicesDeletePrivateEndpointConnectionParameters, ): StreamableMethod< | PrivateLinkServicesDeletePrivateEndpointConnection200Response | PrivateLinkServicesDeletePrivateEndpointConnection202Response @@ -5325,7 +5325,7 @@ export interface PrivateLinkServicesGetPrivateEndpointConnection { export interface PrivateLinkServicesListPrivateEndpointConnections { /** Gets all private end point connections for a specific private link service. */ get( - options: PrivateLinkServicesListPrivateEndpointConnectionsParameters + options: PrivateLinkServicesListPrivateEndpointConnectionsParameters, ): StreamableMethod< | PrivateLinkServicesListPrivateEndpointConnections200Response | PrivateLinkServicesListPrivateEndpointConnectionsDefaultResponse @@ -5335,7 +5335,7 @@ export interface PrivateLinkServicesListPrivateEndpointConnections { export interface PrivateLinkServicesCheckPrivateLinkServiceVisibility { /** Checks whether the subscription is visible to private link service. */ post( - options: PrivateLinkServicesCheckPrivateLinkServiceVisibilityParameters + options: PrivateLinkServicesCheckPrivateLinkServiceVisibilityParameters, ): StreamableMethod< | PrivateLinkServicesCheckPrivateLinkServiceVisibility200Response | PrivateLinkServicesCheckPrivateLinkServiceVisibility202Response @@ -5346,7 +5346,7 @@ export interface PrivateLinkServicesCheckPrivateLinkServiceVisibility { export interface PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroup { /** Checks whether the subscription is visible to private link service in the specified resource group. */ post( - options: PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupParameters + options: PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupParameters, ): StreamableMethod< | PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroup200Response | PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroup202Response @@ -5357,7 +5357,7 @@ export interface PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceG export interface PrivateLinkServicesListAutoApprovedPrivateLinkServices { /** Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region. */ get( - options: PrivateLinkServicesListAutoApprovedPrivateLinkServicesParameters + options: PrivateLinkServicesListAutoApprovedPrivateLinkServicesParameters, ): StreamableMethod< | PrivateLinkServicesListAutoApprovedPrivateLinkServices200Response | PrivateLinkServicesListAutoApprovedPrivateLinkServicesDefaultResponse @@ -5367,7 +5367,7 @@ export interface PrivateLinkServicesListAutoApprovedPrivateLinkServices { export interface PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroup { /** Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region. */ get( - options: PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupParameters + options: PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupParameters, ): StreamableMethod< | PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroup200Response | PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupDefaultResponse @@ -5377,7 +5377,7 @@ export interface PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourc export interface PublicIPPrefixesDelete { /** Deletes the specified public IP prefix. */ delete( - options: PublicIPPrefixesDeleteParameters + options: PublicIPPrefixesDeleteParameters, ): StreamableMethod< | PublicIPPrefixesDelete200Response | PublicIPPrefixesDelete202Response @@ -5386,11 +5386,11 @@ export interface PublicIPPrefixesDelete { >; /** Gets the specified public IP prefix in a specified resource group. */ get( - options: PublicIPPrefixesGetParameters + options: PublicIPPrefixesGetParameters, ): StreamableMethod; /** Creates or updates a static or dynamic public IP prefix. */ put( - options: PublicIPPrefixesCreateOrUpdateParameters + options: PublicIPPrefixesCreateOrUpdateParameters, ): StreamableMethod< | PublicIPPrefixesCreateOrUpdate200Response | PublicIPPrefixesCreateOrUpdate201Response @@ -5398,7 +5398,7 @@ export interface PublicIPPrefixesDelete { >; /** Updates public IP prefix tags. */ patch( - options: PublicIPPrefixesUpdateTagsParameters + options: PublicIPPrefixesUpdateTagsParameters, ): StreamableMethod< PublicIPPrefixesUpdateTags200Response | PublicIPPrefixesUpdateTagsDefaultResponse >; @@ -5407,21 +5407,21 @@ export interface PublicIPPrefixesDelete { export interface PublicIPPrefixesListAll { /** Gets all the public IP prefixes in a subscription. */ get( - options: PublicIPPrefixesListAllParameters + options: PublicIPPrefixesListAllParameters, ): StreamableMethod; } export interface PublicIPPrefixesList { /** Gets all public IP prefixes in a resource group. */ get( - options: PublicIPPrefixesListParameters + options: PublicIPPrefixesListParameters, ): StreamableMethod; } export interface RouteFiltersDelete { /** Deletes the specified route filter. */ delete( - options: RouteFiltersDeleteParameters + options: RouteFiltersDeleteParameters, ): StreamableMethod< | RouteFiltersDelete200Response | RouteFiltersDelete202Response @@ -5430,11 +5430,11 @@ export interface RouteFiltersDelete { >; /** Gets the specified route filter. */ get( - options: RouteFiltersGetParameters + options: RouteFiltersGetParameters, ): StreamableMethod; /** Creates or updates a route filter in a specified resource group. */ put( - options: RouteFiltersCreateOrUpdateParameters + options: RouteFiltersCreateOrUpdateParameters, ): StreamableMethod< | RouteFiltersCreateOrUpdate200Response | RouteFiltersCreateOrUpdate201Response @@ -5442,14 +5442,14 @@ export interface RouteFiltersDelete { >; /** Updates tags of a route filter. */ patch( - options: RouteFiltersUpdateTagsParameters + options: RouteFiltersUpdateTagsParameters, ): StreamableMethod; } export interface RouteFiltersListByResourceGroup { /** Gets all route filters in a resource group. */ get( - options: RouteFiltersListByResourceGroupParameters + options: RouteFiltersListByResourceGroupParameters, ): StreamableMethod< RouteFiltersListByResourceGroup200Response | RouteFiltersListByResourceGroupDefaultResponse >; @@ -5458,14 +5458,14 @@ export interface RouteFiltersListByResourceGroup { export interface RouteFiltersList { /** Gets all route filters in a subscription. */ get( - options: RouteFiltersListParameters + options: RouteFiltersListParameters, ): StreamableMethod; } export interface RouteFilterRulesDelete { /** Deletes the specified rule from a route filter. */ delete( - options: RouteFilterRulesDeleteParameters + options: RouteFilterRulesDeleteParameters, ): StreamableMethod< | RouteFilterRulesDelete200Response | RouteFilterRulesDelete202Response @@ -5474,11 +5474,11 @@ export interface RouteFilterRulesDelete { >; /** Gets the specified rule from a route filter. */ get( - options: RouteFilterRulesGetParameters + options: RouteFilterRulesGetParameters, ): StreamableMethod; /** Creates or updates a route in the specified route filter. */ put( - options: RouteFilterRulesCreateOrUpdateParameters + options: RouteFilterRulesCreateOrUpdateParameters, ): StreamableMethod< | RouteFilterRulesCreateOrUpdate200Response | RouteFilterRulesCreateOrUpdate201Response @@ -5489,7 +5489,7 @@ export interface RouteFilterRulesDelete { export interface RouteFilterRulesListByRouteFilter { /** Gets all RouteFilterRules in a route filter. */ get( - options: RouteFilterRulesListByRouteFilterParameters + options: RouteFilterRulesListByRouteFilterParameters, ): StreamableMethod< RouteFilterRulesListByRouteFilter200Response | RouteFilterRulesListByRouteFilterDefaultResponse >; @@ -5498,7 +5498,7 @@ export interface RouteFilterRulesListByRouteFilter { export interface RouteTablesDelete { /** Deletes the specified route table. */ delete( - options: RouteTablesDeleteParameters + options: RouteTablesDeleteParameters, ): StreamableMethod< | RouteTablesDelete200Response | RouteTablesDelete202Response @@ -5507,11 +5507,11 @@ export interface RouteTablesDelete { >; /** Gets the specified route table. */ get( - options: RouteTablesGetParameters + options: RouteTablesGetParameters, ): StreamableMethod; /** Create or updates a route table in a specified resource group. */ put( - options: RouteTablesCreateOrUpdateParameters + options: RouteTablesCreateOrUpdateParameters, ): StreamableMethod< | RouteTablesCreateOrUpdate200Response | RouteTablesCreateOrUpdate201Response @@ -5519,28 +5519,28 @@ export interface RouteTablesDelete { >; /** Updates a route table tags. */ patch( - options: RouteTablesUpdateTagsParameters + options: RouteTablesUpdateTagsParameters, ): StreamableMethod; } export interface RouteTablesList { /** Gets all route tables in a resource group. */ get( - options: RouteTablesListParameters + options: RouteTablesListParameters, ): StreamableMethod; } export interface RouteTablesListAll { /** Gets all route tables in a subscription. */ get( - options: RouteTablesListAllParameters + options: RouteTablesListAllParameters, ): StreamableMethod; } export interface RoutesDelete { /** Deletes the specified route from a route table. */ delete( - options: RoutesDeleteParameters + options: RoutesDeleteParameters, ): StreamableMethod< | RoutesDelete200Response | RoutesDelete202Response @@ -5549,11 +5549,11 @@ export interface RoutesDelete { >; /** Gets the specified route from a route table. */ get( - options: RoutesGetParameters + options: RoutesGetParameters, ): StreamableMethod; /** Creates or updates a route in the specified route table. */ put( - options: RoutesCreateOrUpdateParameters + options: RoutesCreateOrUpdateParameters, ): StreamableMethod< | RoutesCreateOrUpdate200Response | RoutesCreateOrUpdate201Response @@ -5564,14 +5564,14 @@ export interface RoutesDelete { export interface RoutesList { /** Gets all routes in a route table. */ get( - options: RoutesListParameters + options: RoutesListParameters, ): StreamableMethod; } export interface SecurityPartnerProvidersDelete { /** Deletes the specified Security Partner Provider. */ delete( - options: SecurityPartnerProvidersDeleteParameters + options: SecurityPartnerProvidersDeleteParameters, ): StreamableMethod< | SecurityPartnerProvidersDelete200Response | SecurityPartnerProvidersDelete202Response @@ -5580,13 +5580,13 @@ export interface SecurityPartnerProvidersDelete { >; /** Gets the specified Security Partner Provider. */ get( - options: SecurityPartnerProvidersGetParameters + options: SecurityPartnerProvidersGetParameters, ): StreamableMethod< SecurityPartnerProvidersGet200Response | SecurityPartnerProvidersGetDefaultResponse >; /** Creates or updates the specified Security Partner Provider. */ put( - options: SecurityPartnerProvidersCreateOrUpdateParameters + options: SecurityPartnerProvidersCreateOrUpdateParameters, ): StreamableMethod< | SecurityPartnerProvidersCreateOrUpdate200Response | SecurityPartnerProvidersCreateOrUpdate201Response @@ -5594,7 +5594,7 @@ export interface SecurityPartnerProvidersDelete { >; /** Updates tags of a Security Partner Provider resource. */ patch( - options: SecurityPartnerProvidersUpdateTagsParameters + options: SecurityPartnerProvidersUpdateTagsParameters, ): StreamableMethod< | SecurityPartnerProvidersUpdateTags200Response | SecurityPartnerProvidersUpdateTagsDefaultResponse @@ -5604,7 +5604,7 @@ export interface SecurityPartnerProvidersDelete { export interface SecurityPartnerProvidersListByResourceGroup { /** Lists all Security Partner Providers in a resource group. */ get( - options: SecurityPartnerProvidersListByResourceGroupParameters + options: SecurityPartnerProvidersListByResourceGroupParameters, ): StreamableMethod< | SecurityPartnerProvidersListByResourceGroup200Response | SecurityPartnerProvidersListByResourceGroupDefaultResponse @@ -5614,7 +5614,7 @@ export interface SecurityPartnerProvidersListByResourceGroup { export interface SecurityPartnerProvidersList { /** Gets all the Security Partner Providers in a subscription. */ get( - options: SecurityPartnerProvidersListParameters + options: SecurityPartnerProvidersListParameters, ): StreamableMethod< SecurityPartnerProvidersList200Response | SecurityPartnerProvidersListDefaultResponse >; @@ -5623,7 +5623,7 @@ export interface SecurityPartnerProvidersList { export interface BgpServiceCommunitiesList { /** Gets all the available bgp service communities. */ get( - options: BgpServiceCommunitiesListParameters + options: BgpServiceCommunitiesListParameters, ): StreamableMethod< BgpServiceCommunitiesList200Response | BgpServiceCommunitiesListDefaultResponse >; @@ -5632,7 +5632,7 @@ export interface BgpServiceCommunitiesList { export interface ServiceEndpointPoliciesDelete { /** Deletes the specified service endpoint policy. */ delete( - options: ServiceEndpointPoliciesDeleteParameters + options: ServiceEndpointPoliciesDeleteParameters, ): StreamableMethod< | ServiceEndpointPoliciesDelete200Response | ServiceEndpointPoliciesDelete202Response @@ -5641,13 +5641,13 @@ export interface ServiceEndpointPoliciesDelete { >; /** Gets the specified service Endpoint Policies in a specified resource group. */ get( - options: ServiceEndpointPoliciesGetParameters + options: ServiceEndpointPoliciesGetParameters, ): StreamableMethod< ServiceEndpointPoliciesGet200Response | ServiceEndpointPoliciesGetDefaultResponse >; /** Creates or updates a service Endpoint Policies. */ put( - options: ServiceEndpointPoliciesCreateOrUpdateParameters + options: ServiceEndpointPoliciesCreateOrUpdateParameters, ): StreamableMethod< | ServiceEndpointPoliciesCreateOrUpdate200Response | ServiceEndpointPoliciesCreateOrUpdate201Response @@ -5655,7 +5655,7 @@ export interface ServiceEndpointPoliciesDelete { >; /** Updates tags of a service endpoint policy. */ patch( - options: ServiceEndpointPoliciesUpdateTagsParameters + options: ServiceEndpointPoliciesUpdateTagsParameters, ): StreamableMethod< ServiceEndpointPoliciesUpdateTags200Response | ServiceEndpointPoliciesUpdateTagsDefaultResponse >; @@ -5664,7 +5664,7 @@ export interface ServiceEndpointPoliciesDelete { export interface ServiceEndpointPoliciesList { /** Gets all the service endpoint policies in a subscription. */ get( - options: ServiceEndpointPoliciesListParameters + options: ServiceEndpointPoliciesListParameters, ): StreamableMethod< ServiceEndpointPoliciesList200Response | ServiceEndpointPoliciesListDefaultResponse >; @@ -5673,7 +5673,7 @@ export interface ServiceEndpointPoliciesList { export interface ServiceEndpointPoliciesListByResourceGroup { /** Gets all service endpoint Policies in a resource group. */ get( - options: ServiceEndpointPoliciesListByResourceGroupParameters + options: ServiceEndpointPoliciesListByResourceGroupParameters, ): StreamableMethod< | ServiceEndpointPoliciesListByResourceGroup200Response | ServiceEndpointPoliciesListByResourceGroupDefaultResponse @@ -5683,7 +5683,7 @@ export interface ServiceEndpointPoliciesListByResourceGroup { export interface ServiceEndpointPolicyDefinitionsDelete { /** Deletes the specified ServiceEndpoint policy definitions. */ delete( - options: ServiceEndpointPolicyDefinitionsDeleteParameters + options: ServiceEndpointPolicyDefinitionsDeleteParameters, ): StreamableMethod< | ServiceEndpointPolicyDefinitionsDelete200Response | ServiceEndpointPolicyDefinitionsDelete202Response @@ -5692,14 +5692,14 @@ export interface ServiceEndpointPolicyDefinitionsDelete { >; /** Get the specified service endpoint policy definitions from service endpoint policy. */ get( - options: ServiceEndpointPolicyDefinitionsGetParameters + options: ServiceEndpointPolicyDefinitionsGetParameters, ): StreamableMethod< | ServiceEndpointPolicyDefinitionsGet200Response | ServiceEndpointPolicyDefinitionsGetDefaultResponse >; /** Creates or updates a service endpoint policy definition in the specified service endpoint policy. */ put( - options: ServiceEndpointPolicyDefinitionsCreateOrUpdateParameters + options: ServiceEndpointPolicyDefinitionsCreateOrUpdateParameters, ): StreamableMethod< | ServiceEndpointPolicyDefinitionsCreateOrUpdate200Response | ServiceEndpointPolicyDefinitionsCreateOrUpdate201Response @@ -5710,7 +5710,7 @@ export interface ServiceEndpointPolicyDefinitionsDelete { export interface ServiceEndpointPolicyDefinitionsListByResourceGroup { /** Gets all service endpoint policy definitions in a service end point policy. */ get( - options: ServiceEndpointPolicyDefinitionsListByResourceGroupParameters + options: ServiceEndpointPolicyDefinitionsListByResourceGroupParameters, ): StreamableMethod< | ServiceEndpointPolicyDefinitionsListByResourceGroup200Response | ServiceEndpointPolicyDefinitionsListByResourceGroupDefaultResponse @@ -5720,14 +5720,14 @@ export interface ServiceEndpointPolicyDefinitionsListByResourceGroup { export interface ServiceTagsList { /** Gets a list of service tag information resources. */ get( - options: ServiceTagsListParameters + options: ServiceTagsListParameters, ): StreamableMethod; } export interface ServiceTagInformationList { /** Gets a list of service tag information resources with pagination. */ get( - options: ServiceTagInformationListParameters + options: ServiceTagInformationListParameters, ): StreamableMethod< ServiceTagInformationList200Response | ServiceTagInformationListDefaultResponse >; @@ -5736,14 +5736,14 @@ export interface ServiceTagInformationList { export interface UsagesList { /** List network usages for a subscription. */ get( - options: UsagesListParameters + options: UsagesListParameters, ): StreamableMethod; } export interface VirtualNetworksDelete { /** Deletes the specified virtual network. */ delete( - options: VirtualNetworksDeleteParameters + options: VirtualNetworksDeleteParameters, ): StreamableMethod< | VirtualNetworksDelete200Response | VirtualNetworksDelete202Response @@ -5752,11 +5752,11 @@ export interface VirtualNetworksDelete { >; /** Gets the specified virtual network by resource group. */ get( - options: VirtualNetworksGetParameters + options: VirtualNetworksGetParameters, ): StreamableMethod; /** Creates or updates a virtual network in the specified resource group. */ put( - options: VirtualNetworksCreateOrUpdateParameters + options: VirtualNetworksCreateOrUpdateParameters, ): StreamableMethod< | VirtualNetworksCreateOrUpdate200Response | VirtualNetworksCreateOrUpdate201Response @@ -5764,7 +5764,7 @@ export interface VirtualNetworksDelete { >; /** Updates a virtual network tags. */ patch( - options: VirtualNetworksUpdateTagsParameters + options: VirtualNetworksUpdateTagsParameters, ): StreamableMethod< VirtualNetworksUpdateTags200Response | VirtualNetworksUpdateTagsDefaultResponse >; @@ -5773,21 +5773,21 @@ export interface VirtualNetworksDelete { export interface VirtualNetworksListAll { /** Gets all virtual networks in a subscription. */ get( - options: VirtualNetworksListAllParameters + options: VirtualNetworksListAllParameters, ): StreamableMethod; } export interface VirtualNetworksList { /** Gets all virtual networks in a resource group. */ get( - options: VirtualNetworksListParameters + options: VirtualNetworksListParameters, ): StreamableMethod; } export interface VirtualNetworksCheckIPAddressAvailability { /** Checks whether a private IP address is available for use. */ get( - options: VirtualNetworksCheckIPAddressAvailabilityParameters + options: VirtualNetworksCheckIPAddressAvailabilityParameters, ): StreamableMethod< | VirtualNetworksCheckIPAddressAvailability200Response | VirtualNetworksCheckIPAddressAvailabilityDefaultResponse @@ -5797,7 +5797,7 @@ export interface VirtualNetworksCheckIPAddressAvailability { export interface VirtualNetworksListUsage { /** Lists usage stats. */ get( - options: VirtualNetworksListUsageParameters + options: VirtualNetworksListUsageParameters, ): StreamableMethod< VirtualNetworksListUsage200Response | VirtualNetworksListUsageDefaultResponse >; @@ -5806,7 +5806,7 @@ export interface VirtualNetworksListUsage { export interface VirtualNetworksListDdosProtectionStatus { /** Gets the Ddos Protection Status of all IP Addresses under the Virtual Network */ post( - options: VirtualNetworksListDdosProtectionStatusParameters + options: VirtualNetworksListDdosProtectionStatusParameters, ): StreamableMethod< | VirtualNetworksListDdosProtectionStatus200Response | VirtualNetworksListDdosProtectionStatus202Response @@ -5817,7 +5817,7 @@ export interface VirtualNetworksListDdosProtectionStatus { export interface SubnetsDelete { /** Deletes the specified subnet. */ delete( - options: SubnetsDeleteParameters + options: SubnetsDeleteParameters, ): StreamableMethod< | SubnetsDelete200Response | SubnetsDelete202Response @@ -5826,11 +5826,11 @@ export interface SubnetsDelete { >; /** Gets the specified subnet by virtual network and resource group. */ get( - options: SubnetsGetParameters + options: SubnetsGetParameters, ): StreamableMethod; /** Creates or updates a subnet in the specified virtual network. */ put( - options: SubnetsCreateOrUpdateParameters + options: SubnetsCreateOrUpdateParameters, ): StreamableMethod< | SubnetsCreateOrUpdate200Response | SubnetsCreateOrUpdate201Response @@ -5841,7 +5841,7 @@ export interface SubnetsDelete { export interface SubnetsPrepareNetworkPolicies { /** Prepares a subnet by applying network intent policies. */ post( - options: SubnetsPrepareNetworkPoliciesParameters + options: SubnetsPrepareNetworkPoliciesParameters, ): StreamableMethod< | SubnetsPrepareNetworkPolicies200Response | SubnetsPrepareNetworkPolicies202Response @@ -5852,7 +5852,7 @@ export interface SubnetsPrepareNetworkPolicies { export interface SubnetsUnprepareNetworkPolicies { /** Unprepares a subnet by removing network intent policies. */ post( - options: SubnetsUnprepareNetworkPoliciesParameters + options: SubnetsUnprepareNetworkPoliciesParameters, ): StreamableMethod< | SubnetsUnprepareNetworkPolicies200Response | SubnetsUnprepareNetworkPolicies202Response @@ -5863,14 +5863,14 @@ export interface SubnetsUnprepareNetworkPolicies { export interface SubnetsList { /** Gets all subnets in a virtual network. */ get( - options: SubnetsListParameters + options: SubnetsListParameters, ): StreamableMethod; } export interface ResourceNavigationLinksList { /** Gets a list of resource navigation links for a subnet. */ get( - options: ResourceNavigationLinksListParameters + options: ResourceNavigationLinksListParameters, ): StreamableMethod< ResourceNavigationLinksList200Response | ResourceNavigationLinksListDefaultResponse >; @@ -5879,7 +5879,7 @@ export interface ResourceNavigationLinksList { export interface ServiceAssociationLinksList { /** Gets a list of service association links for a subnet. */ get( - options: ServiceAssociationLinksListParameters + options: ServiceAssociationLinksListParameters, ): StreamableMethod< ServiceAssociationLinksList200Response | ServiceAssociationLinksListDefaultResponse >; @@ -5888,7 +5888,7 @@ export interface ServiceAssociationLinksList { export interface VirtualNetworkPeeringsDelete { /** Deletes the specified virtual network peering. */ delete( - options: VirtualNetworkPeeringsDeleteParameters + options: VirtualNetworkPeeringsDeleteParameters, ): StreamableMethod< | VirtualNetworkPeeringsDelete200Response | VirtualNetworkPeeringsDelete202Response @@ -5897,13 +5897,13 @@ export interface VirtualNetworkPeeringsDelete { >; /** Gets the specified virtual network peering. */ get( - options: VirtualNetworkPeeringsGetParameters + options: VirtualNetworkPeeringsGetParameters, ): StreamableMethod< VirtualNetworkPeeringsGet200Response | VirtualNetworkPeeringsGetDefaultResponse >; /** Creates or updates a peering in the specified virtual network. */ put( - options: VirtualNetworkPeeringsCreateOrUpdateParameters + options: VirtualNetworkPeeringsCreateOrUpdateParameters, ): StreamableMethod< | VirtualNetworkPeeringsCreateOrUpdate200Response | VirtualNetworkPeeringsCreateOrUpdate201Response @@ -5914,7 +5914,7 @@ export interface VirtualNetworkPeeringsDelete { export interface VirtualNetworkPeeringsList { /** Gets all virtual network peerings in a virtual network. */ get( - options: VirtualNetworkPeeringsListParameters + options: VirtualNetworkPeeringsListParameters, ): StreamableMethod< VirtualNetworkPeeringsList200Response | VirtualNetworkPeeringsListDefaultResponse >; @@ -5923,7 +5923,7 @@ export interface VirtualNetworkPeeringsList { export interface VirtualNetworkGatewaysCreateOrUpdate { /** Creates or updates a virtual network gateway in the specified resource group. */ put( - options: VirtualNetworkGatewaysCreateOrUpdateParameters + options: VirtualNetworkGatewaysCreateOrUpdateParameters, ): StreamableMethod< | VirtualNetworkGatewaysCreateOrUpdate200Response | VirtualNetworkGatewaysCreateOrUpdate201Response @@ -5931,13 +5931,13 @@ export interface VirtualNetworkGatewaysCreateOrUpdate { >; /** Gets the specified virtual network gateway by resource group. */ get( - options: VirtualNetworkGatewaysGetParameters + options: VirtualNetworkGatewaysGetParameters, ): StreamableMethod< VirtualNetworkGatewaysGet200Response | VirtualNetworkGatewaysGetDefaultResponse >; /** Deletes the specified virtual network gateway. */ delete( - options: VirtualNetworkGatewaysDeleteParameters + options: VirtualNetworkGatewaysDeleteParameters, ): StreamableMethod< | VirtualNetworkGatewaysDelete200Response | VirtualNetworkGatewaysDelete202Response @@ -5946,7 +5946,7 @@ export interface VirtualNetworkGatewaysCreateOrUpdate { >; /** Updates a virtual network gateway tags. */ patch( - options: VirtualNetworkGatewaysUpdateTagsParameters + options: VirtualNetworkGatewaysUpdateTagsParameters, ): StreamableMethod< | VirtualNetworkGatewaysUpdateTags200Response | VirtualNetworkGatewaysUpdateTags202Response @@ -5957,7 +5957,7 @@ export interface VirtualNetworkGatewaysCreateOrUpdate { export interface VirtualNetworkGatewaysList { /** Gets all virtual network gateways by resource group. */ get( - options: VirtualNetworkGatewaysListParameters + options: VirtualNetworkGatewaysListParameters, ): StreamableMethod< VirtualNetworkGatewaysList200Response | VirtualNetworkGatewaysListDefaultResponse >; @@ -5966,7 +5966,7 @@ export interface VirtualNetworkGatewaysList { export interface VirtualNetworkGatewaysListConnections { /** Gets all the connections in a virtual network gateway. */ get( - options: VirtualNetworkGatewaysListConnectionsParameters + options: VirtualNetworkGatewaysListConnectionsParameters, ): StreamableMethod< | VirtualNetworkGatewaysListConnections200Response | VirtualNetworkGatewaysListConnectionsDefaultResponse @@ -5976,7 +5976,7 @@ export interface VirtualNetworkGatewaysListConnections { export interface VirtualNetworkGatewaysReset { /** Resets the primary of the virtual network gateway in the specified resource group. */ post( - options: VirtualNetworkGatewaysResetParameters + options: VirtualNetworkGatewaysResetParameters, ): StreamableMethod< | VirtualNetworkGatewaysReset200Response | VirtualNetworkGatewaysReset202Response @@ -5987,7 +5987,7 @@ export interface VirtualNetworkGatewaysReset { export interface VirtualNetworkGatewaysResetVpnClientSharedKey { /** Resets the VPN client shared key of the virtual network gateway in the specified resource group. */ post( - options: VirtualNetworkGatewaysResetVpnClientSharedKeyParameters + options: VirtualNetworkGatewaysResetVpnClientSharedKeyParameters, ): StreamableMethod< | VirtualNetworkGatewaysResetVpnClientSharedKey200Response | VirtualNetworkGatewaysResetVpnClientSharedKey202Response @@ -5998,7 +5998,7 @@ export interface VirtualNetworkGatewaysResetVpnClientSharedKey { export interface VirtualNetworkGatewaysGeneratevpnclientpackage { /** Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. */ post( - options: VirtualNetworkGatewaysGeneratevpnclientpackageParameters + options: VirtualNetworkGatewaysGeneratevpnclientpackageParameters, ): StreamableMethod< | VirtualNetworkGatewaysGeneratevpnclientpackage200Response | VirtualNetworkGatewaysGeneratevpnclientpackage202Response @@ -6009,7 +6009,7 @@ export interface VirtualNetworkGatewaysGeneratevpnclientpackage { export interface VirtualNetworkGatewaysGenerateVpnProfile { /** Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for IKEV2 and radius based authentication. */ post( - options: VirtualNetworkGatewaysGenerateVpnProfileParameters + options: VirtualNetworkGatewaysGenerateVpnProfileParameters, ): StreamableMethod< | VirtualNetworkGatewaysGenerateVpnProfile200Response | VirtualNetworkGatewaysGenerateVpnProfile202Response @@ -6020,7 +6020,7 @@ export interface VirtualNetworkGatewaysGenerateVpnProfile { export interface VirtualNetworkGatewaysGetVpnProfilePackageUrl { /** Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The profile needs to be generated first using generateVpnProfile. */ post( - options: VirtualNetworkGatewaysGetVpnProfilePackageUrlParameters + options: VirtualNetworkGatewaysGetVpnProfilePackageUrlParameters, ): StreamableMethod< | VirtualNetworkGatewaysGetVpnProfilePackageUrl200Response | VirtualNetworkGatewaysGetVpnProfilePackageUrl202Response @@ -6031,7 +6031,7 @@ export interface VirtualNetworkGatewaysGetVpnProfilePackageUrl { export interface VirtualNetworkGatewaysGetBgpPeerStatus { /** The GetBgpPeerStatus operation retrieves the status of all BGP peers. */ post( - options: VirtualNetworkGatewaysGetBgpPeerStatusParameters + options: VirtualNetworkGatewaysGetBgpPeerStatusParameters, ): StreamableMethod< | VirtualNetworkGatewaysGetBgpPeerStatus200Response | VirtualNetworkGatewaysGetBgpPeerStatus202Response @@ -6042,7 +6042,7 @@ export interface VirtualNetworkGatewaysGetBgpPeerStatus { export interface VirtualNetworkGatewaysSupportedVpnDevices { /** Gets a xml format representation for supported vpn devices. */ post( - options: VirtualNetworkGatewaysSupportedVpnDevicesParameters + options: VirtualNetworkGatewaysSupportedVpnDevicesParameters, ): StreamableMethod< | VirtualNetworkGatewaysSupportedVpnDevices200Response | VirtualNetworkGatewaysSupportedVpnDevicesDefaultResponse @@ -6052,7 +6052,7 @@ export interface VirtualNetworkGatewaysSupportedVpnDevices { export interface VirtualNetworkGatewaysGetLearnedRoutes { /** This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from BGP peers. */ post( - options: VirtualNetworkGatewaysGetLearnedRoutesParameters + options: VirtualNetworkGatewaysGetLearnedRoutesParameters, ): StreamableMethod< | VirtualNetworkGatewaysGetLearnedRoutes200Response | VirtualNetworkGatewaysGetLearnedRoutes202Response @@ -6063,7 +6063,7 @@ export interface VirtualNetworkGatewaysGetLearnedRoutes { export interface VirtualNetworkGatewaysGetAdvertisedRoutes { /** This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. */ post( - options: VirtualNetworkGatewaysGetAdvertisedRoutesParameters + options: VirtualNetworkGatewaysGetAdvertisedRoutesParameters, ): StreamableMethod< | VirtualNetworkGatewaysGetAdvertisedRoutes200Response | VirtualNetworkGatewaysGetAdvertisedRoutes202Response @@ -6074,7 +6074,7 @@ export interface VirtualNetworkGatewaysGetAdvertisedRoutes { export interface VirtualNetworkGatewaysSetVpnclientIpsecParameters { /** The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. */ post( - options: VirtualNetworkGatewaysSetVpnclientIpsecParametersParameters + options: VirtualNetworkGatewaysSetVpnclientIpsecParametersParameters, ): StreamableMethod< | VirtualNetworkGatewaysSetVpnclientIpsecParameters200Response | VirtualNetworkGatewaysSetVpnclientIpsecParameters202Response @@ -6085,7 +6085,7 @@ export interface VirtualNetworkGatewaysSetVpnclientIpsecParameters { export interface VirtualNetworkGatewaysGetVpnclientIpsecParameters { /** The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. */ post( - options: VirtualNetworkGatewaysGetVpnclientIpsecParametersParameters + options: VirtualNetworkGatewaysGetVpnclientIpsecParametersParameters, ): StreamableMethod< | VirtualNetworkGatewaysGetVpnclientIpsecParameters200Response | VirtualNetworkGatewaysGetVpnclientIpsecParametersDefaultResponse @@ -6095,7 +6095,7 @@ export interface VirtualNetworkGatewaysGetVpnclientIpsecParameters { export interface VirtualNetworkGatewaysVpnDeviceConfigurationScript { /** Gets a xml format representation for vpn device configuration script. */ post( - options: VirtualNetworkGatewaysVpnDeviceConfigurationScriptParameters + options: VirtualNetworkGatewaysVpnDeviceConfigurationScriptParameters, ): StreamableMethod< | VirtualNetworkGatewaysVpnDeviceConfigurationScript200Response | VirtualNetworkGatewaysVpnDeviceConfigurationScriptDefaultResponse @@ -6105,7 +6105,7 @@ export interface VirtualNetworkGatewaysVpnDeviceConfigurationScript { export interface VirtualNetworkGatewaysStartPacketCapture { /** Starts packet capture on virtual network gateway in the specified resource group. */ post( - options: VirtualNetworkGatewaysStartPacketCaptureParameters + options: VirtualNetworkGatewaysStartPacketCaptureParameters, ): StreamableMethod< | VirtualNetworkGatewaysStartPacketCapture200Response | VirtualNetworkGatewaysStartPacketCapture202Response @@ -6116,7 +6116,7 @@ export interface VirtualNetworkGatewaysStartPacketCapture { export interface VirtualNetworkGatewaysStopPacketCapture { /** Stops packet capture on virtual network gateway in the specified resource group. */ post( - options: VirtualNetworkGatewaysStopPacketCaptureParameters + options: VirtualNetworkGatewaysStopPacketCaptureParameters, ): StreamableMethod< | VirtualNetworkGatewaysStopPacketCapture200Response | VirtualNetworkGatewaysStopPacketCapture202Response @@ -6127,7 +6127,7 @@ export interface VirtualNetworkGatewaysStopPacketCapture { export interface VirtualNetworkGatewaysGetVpnclientConnectionHealth { /** Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified resource group. */ post( - options: VirtualNetworkGatewaysGetVpnclientConnectionHealthParameters + options: VirtualNetworkGatewaysGetVpnclientConnectionHealthParameters, ): StreamableMethod< | VirtualNetworkGatewaysGetVpnclientConnectionHealth200Response | VirtualNetworkGatewaysGetVpnclientConnectionHealth202Response @@ -6138,7 +6138,7 @@ export interface VirtualNetworkGatewaysGetVpnclientConnectionHealth { export interface VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnections { /** Disconnect vpn connections of virtual network gateway in the specified resource group. */ post( - options: VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsParameters + options: VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsParameters, ): StreamableMethod< | VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnections200Response | VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnections202Response @@ -6149,7 +6149,7 @@ export interface VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnect export interface VirtualNetworkGatewayConnectionsCreateOrUpdate { /** Creates or updates a virtual network gateway connection in the specified resource group. */ put( - options: VirtualNetworkGatewayConnectionsCreateOrUpdateParameters + options: VirtualNetworkGatewayConnectionsCreateOrUpdateParameters, ): StreamableMethod< | VirtualNetworkGatewayConnectionsCreateOrUpdate200Response | VirtualNetworkGatewayConnectionsCreateOrUpdate201Response @@ -6157,14 +6157,14 @@ export interface VirtualNetworkGatewayConnectionsCreateOrUpdate { >; /** Gets the specified virtual network gateway connection by resource group. */ get( - options: VirtualNetworkGatewayConnectionsGetParameters + options: VirtualNetworkGatewayConnectionsGetParameters, ): StreamableMethod< | VirtualNetworkGatewayConnectionsGet200Response | VirtualNetworkGatewayConnectionsGetDefaultResponse >; /** Deletes the specified virtual network Gateway connection. */ delete( - options: VirtualNetworkGatewayConnectionsDeleteParameters + options: VirtualNetworkGatewayConnectionsDeleteParameters, ): StreamableMethod< | VirtualNetworkGatewayConnectionsDelete200Response | VirtualNetworkGatewayConnectionsDelete202Response @@ -6173,7 +6173,7 @@ export interface VirtualNetworkGatewayConnectionsCreateOrUpdate { >; /** Updates a virtual network gateway connection tags. */ patch( - options: VirtualNetworkGatewayConnectionsUpdateTagsParameters + options: VirtualNetworkGatewayConnectionsUpdateTagsParameters, ): StreamableMethod< | VirtualNetworkGatewayConnectionsUpdateTags200Response | VirtualNetworkGatewayConnectionsUpdateTags202Response @@ -6184,7 +6184,7 @@ export interface VirtualNetworkGatewayConnectionsCreateOrUpdate { export interface VirtualNetworkGatewayConnectionsSetSharedKey { /** The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider. */ put( - options: VirtualNetworkGatewayConnectionsSetSharedKeyParameters + options: VirtualNetworkGatewayConnectionsSetSharedKeyParameters, ): StreamableMethod< | VirtualNetworkGatewayConnectionsSetSharedKey200Response | VirtualNetworkGatewayConnectionsSetSharedKey201Response @@ -6192,7 +6192,7 @@ export interface VirtualNetworkGatewayConnectionsSetSharedKey { >; /** The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual network gateway connection shared key through Network resource provider. */ get( - options: VirtualNetworkGatewayConnectionsGetSharedKeyParameters + options: VirtualNetworkGatewayConnectionsGetSharedKeyParameters, ): StreamableMethod< | VirtualNetworkGatewayConnectionsGetSharedKey200Response | VirtualNetworkGatewayConnectionsGetSharedKeyDefaultResponse @@ -6202,7 +6202,7 @@ export interface VirtualNetworkGatewayConnectionsSetSharedKey { export interface VirtualNetworkGatewayConnectionsList { /** The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections created. */ get( - options: VirtualNetworkGatewayConnectionsListParameters + options: VirtualNetworkGatewayConnectionsListParameters, ): StreamableMethod< | VirtualNetworkGatewayConnectionsList200Response | VirtualNetworkGatewayConnectionsListDefaultResponse @@ -6212,7 +6212,7 @@ export interface VirtualNetworkGatewayConnectionsList { export interface VirtualNetworkGatewayConnectionsResetSharedKey { /** The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider. */ post( - options: VirtualNetworkGatewayConnectionsResetSharedKeyParameters + options: VirtualNetworkGatewayConnectionsResetSharedKeyParameters, ): StreamableMethod< | VirtualNetworkGatewayConnectionsResetSharedKey200Response | VirtualNetworkGatewayConnectionsResetSharedKey202Response @@ -6223,7 +6223,7 @@ export interface VirtualNetworkGatewayConnectionsResetSharedKey { export interface VirtualNetworkGatewayConnectionsStartPacketCapture { /** Starts packet capture on virtual network gateway connection in the specified resource group. */ post( - options: VirtualNetworkGatewayConnectionsStartPacketCaptureParameters + options: VirtualNetworkGatewayConnectionsStartPacketCaptureParameters, ): StreamableMethod< | VirtualNetworkGatewayConnectionsStartPacketCapture200Response | VirtualNetworkGatewayConnectionsStartPacketCapture202Response @@ -6234,7 +6234,7 @@ export interface VirtualNetworkGatewayConnectionsStartPacketCapture { export interface VirtualNetworkGatewayConnectionsStopPacketCapture { /** Stops packet capture on virtual network gateway connection in the specified resource group. */ post( - options: VirtualNetworkGatewayConnectionsStopPacketCaptureParameters + options: VirtualNetworkGatewayConnectionsStopPacketCaptureParameters, ): StreamableMethod< | VirtualNetworkGatewayConnectionsStopPacketCapture200Response | VirtualNetworkGatewayConnectionsStopPacketCapture202Response @@ -6245,7 +6245,7 @@ export interface VirtualNetworkGatewayConnectionsStopPacketCapture { export interface VirtualNetworkGatewayConnectionsGetIkeSas { /** Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. */ post( - options: VirtualNetworkGatewayConnectionsGetIkeSasParameters + options: VirtualNetworkGatewayConnectionsGetIkeSasParameters, ): StreamableMethod< | VirtualNetworkGatewayConnectionsGetIkeSas200Response | VirtualNetworkGatewayConnectionsGetIkeSas202Response @@ -6256,7 +6256,7 @@ export interface VirtualNetworkGatewayConnectionsGetIkeSas { export interface VirtualNetworkGatewayConnectionsResetConnection { /** Resets the virtual network gateway connection specified. */ post( - options: VirtualNetworkGatewayConnectionsResetConnectionParameters + options: VirtualNetworkGatewayConnectionsResetConnectionParameters, ): StreamableMethod< | VirtualNetworkGatewayConnectionsResetConnection202Response | VirtualNetworkGatewayConnectionsResetConnectionDefaultResponse @@ -6266,7 +6266,7 @@ export interface VirtualNetworkGatewayConnectionsResetConnection { export interface LocalNetworkGatewaysCreateOrUpdate { /** Creates or updates a local network gateway in the specified resource group. */ put( - options: LocalNetworkGatewaysCreateOrUpdateParameters + options: LocalNetworkGatewaysCreateOrUpdateParameters, ): StreamableMethod< | LocalNetworkGatewaysCreateOrUpdate200Response | LocalNetworkGatewaysCreateOrUpdate201Response @@ -6274,11 +6274,11 @@ export interface LocalNetworkGatewaysCreateOrUpdate { >; /** Gets the specified local network gateway in a resource group. */ get( - options: LocalNetworkGatewaysGetParameters + options: LocalNetworkGatewaysGetParameters, ): StreamableMethod; /** Deletes the specified local network gateway. */ delete( - options: LocalNetworkGatewaysDeleteParameters + options: LocalNetworkGatewaysDeleteParameters, ): StreamableMethod< | LocalNetworkGatewaysDelete200Response | LocalNetworkGatewaysDelete202Response @@ -6287,7 +6287,7 @@ export interface LocalNetworkGatewaysCreateOrUpdate { >; /** Updates a local network gateway tags. */ patch( - options: LocalNetworkGatewaysUpdateTagsParameters + options: LocalNetworkGatewaysUpdateTagsParameters, ): StreamableMethod< LocalNetworkGatewaysUpdateTags200Response | LocalNetworkGatewaysUpdateTagsDefaultResponse >; @@ -6296,7 +6296,7 @@ export interface LocalNetworkGatewaysCreateOrUpdate { export interface LocalNetworkGatewaysList { /** Gets all the local network gateways in a resource group. */ get( - options: LocalNetworkGatewaysListParameters + options: LocalNetworkGatewaysListParameters, ): StreamableMethod< LocalNetworkGatewaysList200Response | LocalNetworkGatewaysListDefaultResponse >; @@ -6305,13 +6305,13 @@ export interface LocalNetworkGatewaysList { export interface VirtualNetworkGatewayNatRulesGet { /** Retrieves the details of a nat rule. */ get( - options: VirtualNetworkGatewayNatRulesGetParameters + options: VirtualNetworkGatewayNatRulesGetParameters, ): StreamableMethod< VirtualNetworkGatewayNatRulesGet200Response | VirtualNetworkGatewayNatRulesGetDefaultResponse >; /** Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. */ put( - options: VirtualNetworkGatewayNatRulesCreateOrUpdateParameters + options: VirtualNetworkGatewayNatRulesCreateOrUpdateParameters, ): StreamableMethod< | VirtualNetworkGatewayNatRulesCreateOrUpdate200Response | VirtualNetworkGatewayNatRulesCreateOrUpdate201Response @@ -6319,7 +6319,7 @@ export interface VirtualNetworkGatewayNatRulesGet { >; /** Deletes a nat rule. */ delete( - options: VirtualNetworkGatewayNatRulesDeleteParameters + options: VirtualNetworkGatewayNatRulesDeleteParameters, ): StreamableMethod< | VirtualNetworkGatewayNatRulesDelete200Response | VirtualNetworkGatewayNatRulesDelete202Response @@ -6331,7 +6331,7 @@ export interface VirtualNetworkGatewayNatRulesGet { export interface VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway { /** Retrieves all nat rules for a particular virtual network gateway. */ get( - options: VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayParameters + options: VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayParameters, ): StreamableMethod< | VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway200Response | VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayDefaultResponse @@ -6341,7 +6341,7 @@ export interface VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway { export interface VirtualNetworkTapsDelete { /** Deletes the specified virtual network tap. */ delete( - options: VirtualNetworkTapsDeleteParameters + options: VirtualNetworkTapsDeleteParameters, ): StreamableMethod< | VirtualNetworkTapsDelete200Response | VirtualNetworkTapsDelete202Response @@ -6350,11 +6350,11 @@ export interface VirtualNetworkTapsDelete { >; /** Gets information about the specified virtual network tap. */ get( - options: VirtualNetworkTapsGetParameters + options: VirtualNetworkTapsGetParameters, ): StreamableMethod; /** Creates or updates a Virtual Network Tap. */ put( - options: VirtualNetworkTapsCreateOrUpdateParameters + options: VirtualNetworkTapsCreateOrUpdateParameters, ): StreamableMethod< | VirtualNetworkTapsCreateOrUpdate200Response | VirtualNetworkTapsCreateOrUpdate201Response @@ -6362,7 +6362,7 @@ export interface VirtualNetworkTapsDelete { >; /** Updates an VirtualNetworkTap tags. */ patch( - options: VirtualNetworkTapsUpdateTagsParameters + options: VirtualNetworkTapsUpdateTagsParameters, ): StreamableMethod< VirtualNetworkTapsUpdateTags200Response | VirtualNetworkTapsUpdateTagsDefaultResponse >; @@ -6371,7 +6371,7 @@ export interface VirtualNetworkTapsDelete { export interface VirtualNetworkTapsListAll { /** Gets all the VirtualNetworkTaps in a subscription. */ get( - options: VirtualNetworkTapsListAllParameters + options: VirtualNetworkTapsListAllParameters, ): StreamableMethod< VirtualNetworkTapsListAll200Response | VirtualNetworkTapsListAllDefaultResponse >; @@ -6380,7 +6380,7 @@ export interface VirtualNetworkTapsListAll { export interface VirtualNetworkTapsListByResourceGroup { /** Gets all the VirtualNetworkTaps in a subscription. */ get( - options: VirtualNetworkTapsListByResourceGroupParameters + options: VirtualNetworkTapsListByResourceGroupParameters, ): StreamableMethod< | VirtualNetworkTapsListByResourceGroup200Response | VirtualNetworkTapsListByResourceGroupDefaultResponse @@ -6390,7 +6390,7 @@ export interface VirtualNetworkTapsListByResourceGroup { export interface VirtualRoutersDelete { /** Deletes the specified Virtual Router. */ delete( - options: VirtualRoutersDeleteParameters + options: VirtualRoutersDeleteParameters, ): StreamableMethod< | VirtualRoutersDelete200Response | VirtualRoutersDelete202Response @@ -6399,11 +6399,11 @@ export interface VirtualRoutersDelete { >; /** Gets the specified Virtual Router. */ get( - options: VirtualRoutersGetParameters + options: VirtualRoutersGetParameters, ): StreamableMethod; /** Creates or updates the specified Virtual Router. */ put( - options: VirtualRoutersCreateOrUpdateParameters + options: VirtualRoutersCreateOrUpdateParameters, ): StreamableMethod< | VirtualRoutersCreateOrUpdate200Response | VirtualRoutersCreateOrUpdate201Response @@ -6414,7 +6414,7 @@ export interface VirtualRoutersDelete { export interface VirtualRoutersListByResourceGroup { /** Lists all Virtual Routers in a resource group. */ get( - options: VirtualRoutersListByResourceGroupParameters + options: VirtualRoutersListByResourceGroupParameters, ): StreamableMethod< VirtualRoutersListByResourceGroup200Response | VirtualRoutersListByResourceGroupDefaultResponse >; @@ -6423,14 +6423,14 @@ export interface VirtualRoutersListByResourceGroup { export interface VirtualRoutersList { /** Gets all the Virtual Routers in a subscription. */ get( - options: VirtualRoutersListParameters + options: VirtualRoutersListParameters, ): StreamableMethod; } export interface VirtualRouterPeeringsDelete { /** Deletes the specified peering from a Virtual Router. */ delete( - options: VirtualRouterPeeringsDeleteParameters + options: VirtualRouterPeeringsDeleteParameters, ): StreamableMethod< | VirtualRouterPeeringsDelete200Response | VirtualRouterPeeringsDelete202Response @@ -6439,13 +6439,13 @@ export interface VirtualRouterPeeringsDelete { >; /** Gets the specified Virtual Router Peering. */ get( - options: VirtualRouterPeeringsGetParameters + options: VirtualRouterPeeringsGetParameters, ): StreamableMethod< VirtualRouterPeeringsGet200Response | VirtualRouterPeeringsGetDefaultResponse >; /** Creates or updates the specified Virtual Router Peering. */ put( - options: VirtualRouterPeeringsCreateOrUpdateParameters + options: VirtualRouterPeeringsCreateOrUpdateParameters, ): StreamableMethod< | VirtualRouterPeeringsCreateOrUpdate200Response | VirtualRouterPeeringsCreateOrUpdate201Response @@ -6456,7 +6456,7 @@ export interface VirtualRouterPeeringsDelete { export interface VirtualRouterPeeringsList { /** Lists all Virtual Router Peerings in a Virtual Router resource. */ get( - options: VirtualRouterPeeringsListParameters + options: VirtualRouterPeeringsListParameters, ): StreamableMethod< VirtualRouterPeeringsList200Response | VirtualRouterPeeringsListDefaultResponse >; @@ -6465,11 +6465,11 @@ export interface VirtualRouterPeeringsList { export interface VirtualWansGet { /** Retrieves the details of a VirtualWAN. */ get( - options: VirtualWansGetParameters + options: VirtualWansGetParameters, ): StreamableMethod; /** Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. */ put( - options: VirtualWansCreateOrUpdateParameters + options: VirtualWansCreateOrUpdateParameters, ): StreamableMethod< | VirtualWansCreateOrUpdate200Response | VirtualWansCreateOrUpdate201Response @@ -6477,11 +6477,11 @@ export interface VirtualWansGet { >; /** Updates a VirtualWAN tags. */ patch( - options: VirtualWansUpdateTagsParameters + options: VirtualWansUpdateTagsParameters, ): StreamableMethod; /** Deletes a VirtualWAN. */ delete( - options: VirtualWansDeleteParameters + options: VirtualWansDeleteParameters, ): StreamableMethod< | VirtualWansDelete200Response | VirtualWansDelete202Response @@ -6493,7 +6493,7 @@ export interface VirtualWansGet { export interface VirtualWansListByResourceGroup { /** Lists all the VirtualWANs in a resource group. */ get( - options: VirtualWansListByResourceGroupParameters + options: VirtualWansListByResourceGroupParameters, ): StreamableMethod< VirtualWansListByResourceGroup200Response | VirtualWansListByResourceGroupDefaultResponse >; @@ -6502,18 +6502,18 @@ export interface VirtualWansListByResourceGroup { export interface VirtualWansList { /** Lists all the VirtualWANs in a subscription. */ get( - options: VirtualWansListParameters + options: VirtualWansListParameters, ): StreamableMethod; } export interface VpnSitesGet { /** Retrieves the details of a VPN site. */ get( - options: VpnSitesGetParameters + options: VpnSitesGetParameters, ): StreamableMethod; /** Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. */ put( - options: VpnSitesCreateOrUpdateParameters + options: VpnSitesCreateOrUpdateParameters, ): StreamableMethod< | VpnSitesCreateOrUpdate200Response | VpnSitesCreateOrUpdate201Response @@ -6521,11 +6521,11 @@ export interface VpnSitesGet { >; /** Updates VpnSite tags. */ patch( - options: VpnSitesUpdateTagsParameters + options: VpnSitesUpdateTagsParameters, ): StreamableMethod; /** Deletes a VpnSite. */ delete( - options: VpnSitesDeleteParameters + options: VpnSitesDeleteParameters, ): StreamableMethod< | VpnSitesDelete200Response | VpnSitesDelete202Response @@ -6537,7 +6537,7 @@ export interface VpnSitesGet { export interface VpnSitesListByResourceGroup { /** Lists all the vpnSites in a resource group. */ get( - options: VpnSitesListByResourceGroupParameters + options: VpnSitesListByResourceGroupParameters, ): StreamableMethod< VpnSitesListByResourceGroup200Response | VpnSitesListByResourceGroupDefaultResponse >; @@ -6546,21 +6546,21 @@ export interface VpnSitesListByResourceGroup { export interface VpnSitesList { /** Lists all the VpnSites in a subscription. */ get( - options: VpnSitesListParameters + options: VpnSitesListParameters, ): StreamableMethod; } export interface VpnSiteLinksGet { /** Retrieves the details of a VPN site link. */ get( - options: VpnSiteLinksGetParameters + options: VpnSiteLinksGetParameters, ): StreamableMethod; } export interface VpnSiteLinksListByVpnSite { /** Lists all the vpnSiteLinks in a resource group for a vpn site. */ get( - options: VpnSiteLinksListByVpnSiteParameters + options: VpnSiteLinksListByVpnSiteParameters, ): StreamableMethod< VpnSiteLinksListByVpnSite200Response | VpnSiteLinksListByVpnSiteDefaultResponse >; @@ -6569,7 +6569,7 @@ export interface VpnSiteLinksListByVpnSite { export interface VpnSitesConfigurationDownload { /** Gives the sas-url to download the configurations for vpn-sites in a resource group. */ post( - options: VpnSitesConfigurationDownloadParameters + options: VpnSitesConfigurationDownloadParameters, ): StreamableMethod< | VpnSitesConfigurationDownload200Response | VpnSitesConfigurationDownload202Response @@ -6580,13 +6580,13 @@ export interface VpnSitesConfigurationDownload { export interface VpnServerConfigurationsGet { /** Retrieves the details of a VpnServerConfiguration. */ get( - options: VpnServerConfigurationsGetParameters + options: VpnServerConfigurationsGetParameters, ): StreamableMethod< VpnServerConfigurationsGet200Response | VpnServerConfigurationsGetDefaultResponse >; /** Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. */ put( - options: VpnServerConfigurationsCreateOrUpdateParameters + options: VpnServerConfigurationsCreateOrUpdateParameters, ): StreamableMethod< | VpnServerConfigurationsCreateOrUpdate200Response | VpnServerConfigurationsCreateOrUpdate201Response @@ -6594,13 +6594,13 @@ export interface VpnServerConfigurationsGet { >; /** Updates VpnServerConfiguration tags. */ patch( - options: VpnServerConfigurationsUpdateTagsParameters + options: VpnServerConfigurationsUpdateTagsParameters, ): StreamableMethod< VpnServerConfigurationsUpdateTags200Response | VpnServerConfigurationsUpdateTagsDefaultResponse >; /** Deletes a VpnServerConfiguration. */ delete( - options: VpnServerConfigurationsDeleteParameters + options: VpnServerConfigurationsDeleteParameters, ): StreamableMethod< | VpnServerConfigurationsDelete200Response | VpnServerConfigurationsDelete202Response @@ -6612,7 +6612,7 @@ export interface VpnServerConfigurationsGet { export interface VpnServerConfigurationsListByResourceGroup { /** Lists all the vpnServerConfigurations in a resource group. */ get( - options: VpnServerConfigurationsListByResourceGroupParameters + options: VpnServerConfigurationsListByResourceGroupParameters, ): StreamableMethod< | VpnServerConfigurationsListByResourceGroup200Response | VpnServerConfigurationsListByResourceGroupDefaultResponse @@ -6622,7 +6622,7 @@ export interface VpnServerConfigurationsListByResourceGroup { export interface VpnServerConfigurationsList { /** Lists all the VpnServerConfigurations in a subscription. */ get( - options: VpnServerConfigurationsListParameters + options: VpnServerConfigurationsListParameters, ): StreamableMethod< VpnServerConfigurationsList200Response | VpnServerConfigurationsListDefaultResponse >; @@ -6631,7 +6631,7 @@ export interface VpnServerConfigurationsList { export interface ConfigurationPolicyGroupsCreateOrUpdate { /** Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. */ put( - options: ConfigurationPolicyGroupsCreateOrUpdateParameters + options: ConfigurationPolicyGroupsCreateOrUpdateParameters, ): StreamableMethod< | ConfigurationPolicyGroupsCreateOrUpdate200Response | ConfigurationPolicyGroupsCreateOrUpdate201Response @@ -6639,7 +6639,7 @@ export interface ConfigurationPolicyGroupsCreateOrUpdate { >; /** Deletes a ConfigurationPolicyGroup. */ delete( - options: ConfigurationPolicyGroupsDeleteParameters + options: ConfigurationPolicyGroupsDeleteParameters, ): StreamableMethod< | ConfigurationPolicyGroupsDelete200Response | ConfigurationPolicyGroupsDelete202Response @@ -6648,7 +6648,7 @@ export interface ConfigurationPolicyGroupsCreateOrUpdate { >; /** Retrieves the details of a ConfigurationPolicyGroup. */ get( - options: ConfigurationPolicyGroupsGetParameters + options: ConfigurationPolicyGroupsGetParameters, ): StreamableMethod< ConfigurationPolicyGroupsGet200Response | ConfigurationPolicyGroupsGetDefaultResponse >; @@ -6657,7 +6657,7 @@ export interface ConfigurationPolicyGroupsCreateOrUpdate { export interface ConfigurationPolicyGroupsListByVpnServerConfiguration { /** Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration. */ get( - options: ConfigurationPolicyGroupsListByVpnServerConfigurationParameters + options: ConfigurationPolicyGroupsListByVpnServerConfigurationParameters, ): StreamableMethod< | ConfigurationPolicyGroupsListByVpnServerConfiguration200Response | ConfigurationPolicyGroupsListByVpnServerConfigurationDefaultResponse @@ -6667,11 +6667,11 @@ export interface ConfigurationPolicyGroupsListByVpnServerConfiguration { export interface VirtualHubsGet { /** Retrieves the details of a VirtualHub. */ get( - options: VirtualHubsGetParameters + options: VirtualHubsGetParameters, ): StreamableMethod; /** Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. */ put( - options: VirtualHubsCreateOrUpdateParameters + options: VirtualHubsCreateOrUpdateParameters, ): StreamableMethod< | VirtualHubsCreateOrUpdate200Response | VirtualHubsCreateOrUpdate201Response @@ -6679,11 +6679,11 @@ export interface VirtualHubsGet { >; /** Updates VirtualHub tags. */ patch( - options: VirtualHubsUpdateTagsParameters + options: VirtualHubsUpdateTagsParameters, ): StreamableMethod; /** Deletes a VirtualHub. */ delete( - options: VirtualHubsDeleteParameters + options: VirtualHubsDeleteParameters, ): StreamableMethod< | VirtualHubsDelete200Response | VirtualHubsDelete202Response @@ -6695,7 +6695,7 @@ export interface VirtualHubsGet { export interface VirtualHubsListByResourceGroup { /** Lists all the VirtualHubs in a resource group. */ get( - options: VirtualHubsListByResourceGroupParameters + options: VirtualHubsListByResourceGroupParameters, ): StreamableMethod< VirtualHubsListByResourceGroup200Response | VirtualHubsListByResourceGroupDefaultResponse >; @@ -6704,14 +6704,14 @@ export interface VirtualHubsListByResourceGroup { export interface VirtualHubsList { /** Lists all the VirtualHubs in a subscription. */ get( - options: VirtualHubsListParameters + options: VirtualHubsListParameters, ): StreamableMethod; } export interface VirtualHubsGetEffectiveVirtualHubRoutes { /** Gets the effective routes configured for the Virtual Hub resource or the specified resource . */ post( - options: VirtualHubsGetEffectiveVirtualHubRoutesParameters + options: VirtualHubsGetEffectiveVirtualHubRoutesParameters, ): StreamableMethod< | VirtualHubsGetEffectiveVirtualHubRoutes200Response | VirtualHubsGetEffectiveVirtualHubRoutes202Response @@ -6722,7 +6722,7 @@ export interface VirtualHubsGetEffectiveVirtualHubRoutes { export interface VirtualHubsGetInboundRoutes { /** Gets the inbound routes configured for the Virtual Hub on a particular connection. */ post( - options: VirtualHubsGetInboundRoutesParameters + options: VirtualHubsGetInboundRoutesParameters, ): StreamableMethod< | VirtualHubsGetInboundRoutes200Response | VirtualHubsGetInboundRoutes202Response @@ -6733,7 +6733,7 @@ export interface VirtualHubsGetInboundRoutes { export interface VirtualHubsGetOutboundRoutes { /** Gets the outbound routes configured for the Virtual Hub on a particular connection. */ post( - options: VirtualHubsGetOutboundRoutesParameters + options: VirtualHubsGetOutboundRoutesParameters, ): StreamableMethod< | VirtualHubsGetOutboundRoutes200Response | VirtualHubsGetOutboundRoutes202Response @@ -6744,11 +6744,11 @@ export interface VirtualHubsGetOutboundRoutes { export interface RouteMapsGet { /** Retrieves the details of a RouteMap. */ get( - options: RouteMapsGetParameters + options: RouteMapsGetParameters, ): StreamableMethod; /** Creates a RouteMap if it doesn't exist else updates the existing one. */ put( - options: RouteMapsCreateOrUpdateParameters + options: RouteMapsCreateOrUpdateParameters, ): StreamableMethod< | RouteMapsCreateOrUpdate200Response | RouteMapsCreateOrUpdate201Response @@ -6756,7 +6756,7 @@ export interface RouteMapsGet { >; /** Deletes a RouteMap. */ delete( - options: RouteMapsDeleteParameters + options: RouteMapsDeleteParameters, ): StreamableMethod< | RouteMapsDelete200Response | RouteMapsDelete202Response @@ -6768,14 +6768,14 @@ export interface RouteMapsGet { export interface RouteMapsList { /** Retrieves the details of all RouteMaps. */ get( - options: RouteMapsListParameters + options: RouteMapsListParameters, ): StreamableMethod; } export interface HubVirtualNetworkConnectionsCreateOrUpdate { /** Creates a hub virtual network connection if it doesn't exist else updates the existing one. */ put( - options: HubVirtualNetworkConnectionsCreateOrUpdateParameters + options: HubVirtualNetworkConnectionsCreateOrUpdateParameters, ): StreamableMethod< | HubVirtualNetworkConnectionsCreateOrUpdate200Response | HubVirtualNetworkConnectionsCreateOrUpdate201Response @@ -6783,7 +6783,7 @@ export interface HubVirtualNetworkConnectionsCreateOrUpdate { >; /** Deletes a HubVirtualNetworkConnection. */ delete( - options: HubVirtualNetworkConnectionsDeleteParameters + options: HubVirtualNetworkConnectionsDeleteParameters, ): StreamableMethod< | HubVirtualNetworkConnectionsDelete200Response | HubVirtualNetworkConnectionsDelete202Response @@ -6792,7 +6792,7 @@ export interface HubVirtualNetworkConnectionsCreateOrUpdate { >; /** Retrieves the details of a HubVirtualNetworkConnection. */ get( - options: HubVirtualNetworkConnectionsGetParameters + options: HubVirtualNetworkConnectionsGetParameters, ): StreamableMethod< HubVirtualNetworkConnectionsGet200Response | HubVirtualNetworkConnectionsGetDefaultResponse >; @@ -6801,7 +6801,7 @@ export interface HubVirtualNetworkConnectionsCreateOrUpdate { export interface HubVirtualNetworkConnectionsList { /** Retrieves the details of all HubVirtualNetworkConnections. */ get( - options: HubVirtualNetworkConnectionsListParameters + options: HubVirtualNetworkConnectionsListParameters, ): StreamableMethod< HubVirtualNetworkConnectionsList200Response | HubVirtualNetworkConnectionsListDefaultResponse >; @@ -6810,11 +6810,11 @@ export interface HubVirtualNetworkConnectionsList { export interface VpnGatewaysGet { /** Retrieves the details of a virtual wan vpn gateway. */ get( - options: VpnGatewaysGetParameters + options: VpnGatewaysGetParameters, ): StreamableMethod; /** Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. */ put( - options: VpnGatewaysCreateOrUpdateParameters + options: VpnGatewaysCreateOrUpdateParameters, ): StreamableMethod< | VpnGatewaysCreateOrUpdate200Response | VpnGatewaysCreateOrUpdate201Response @@ -6822,7 +6822,7 @@ export interface VpnGatewaysGet { >; /** Updates virtual wan vpn gateway tags. */ patch( - options: VpnGatewaysUpdateTagsParameters + options: VpnGatewaysUpdateTagsParameters, ): StreamableMethod< | VpnGatewaysUpdateTags200Response | VpnGatewaysUpdateTags202Response @@ -6830,7 +6830,7 @@ export interface VpnGatewaysGet { >; /** Deletes a virtual wan vpn gateway. */ delete( - options: VpnGatewaysDeleteParameters + options: VpnGatewaysDeleteParameters, ): StreamableMethod< | VpnGatewaysDelete200Response | VpnGatewaysDelete202Response @@ -6842,7 +6842,7 @@ export interface VpnGatewaysGet { export interface VpnGatewaysReset { /** Resets the primary of the vpn gateway in the specified resource group. */ post( - options: VpnGatewaysResetParameters + options: VpnGatewaysResetParameters, ): StreamableMethod< VpnGatewaysReset200Response | VpnGatewaysReset202Response | VpnGatewaysResetDefaultResponse >; @@ -6851,7 +6851,7 @@ export interface VpnGatewaysReset { export interface VpnGatewaysStartPacketCapture { /** Starts packet capture on vpn gateway in the specified resource group. */ post( - options: VpnGatewaysStartPacketCaptureParameters + options: VpnGatewaysStartPacketCaptureParameters, ): StreamableMethod< | VpnGatewaysStartPacketCapture200Response | VpnGatewaysStartPacketCapture202Response @@ -6862,7 +6862,7 @@ export interface VpnGatewaysStartPacketCapture { export interface VpnGatewaysStopPacketCapture { /** Stops packet capture on vpn gateway in the specified resource group. */ post( - options: VpnGatewaysStopPacketCaptureParameters + options: VpnGatewaysStopPacketCaptureParameters, ): StreamableMethod< | VpnGatewaysStopPacketCapture200Response | VpnGatewaysStopPacketCapture202Response @@ -6873,7 +6873,7 @@ export interface VpnGatewaysStopPacketCapture { export interface VpnGatewaysListByResourceGroup { /** Lists all the VpnGateways in a resource group. */ get( - options: VpnGatewaysListByResourceGroupParameters + options: VpnGatewaysListByResourceGroupParameters, ): StreamableMethod< VpnGatewaysListByResourceGroup200Response | VpnGatewaysListByResourceGroupDefaultResponse >; @@ -6882,14 +6882,14 @@ export interface VpnGatewaysListByResourceGroup { export interface VpnGatewaysList { /** Lists all the VpnGateways in a subscription. */ get( - options: VpnGatewaysListParameters + options: VpnGatewaysListParameters, ): StreamableMethod; } export interface VpnLinkConnectionsResetConnection { /** Resets the VpnLink connection specified. */ post( - options: VpnLinkConnectionsResetConnectionParameters + options: VpnLinkConnectionsResetConnectionParameters, ): StreamableMethod< VpnLinkConnectionsResetConnection202Response | VpnLinkConnectionsResetConnectionDefaultResponse >; @@ -6898,7 +6898,7 @@ export interface VpnLinkConnectionsResetConnection { export interface VpnLinkConnectionsGetIkeSas { /** Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. */ post( - options: VpnLinkConnectionsGetIkeSasParameters + options: VpnLinkConnectionsGetIkeSasParameters, ): StreamableMethod< | VpnLinkConnectionsGetIkeSas200Response | VpnLinkConnectionsGetIkeSas202Response @@ -6909,7 +6909,7 @@ export interface VpnLinkConnectionsGetIkeSas { export interface VpnLinkConnectionsListByVpnConnection { /** Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. */ get( - options: VpnLinkConnectionsListByVpnConnectionParameters + options: VpnLinkConnectionsListByVpnConnectionParameters, ): StreamableMethod< | VpnLinkConnectionsListByVpnConnection200Response | VpnLinkConnectionsListByVpnConnectionDefaultResponse @@ -6919,11 +6919,11 @@ export interface VpnLinkConnectionsListByVpnConnection { export interface VpnConnectionsGet { /** Retrieves the details of a vpn connection. */ get( - options: VpnConnectionsGetParameters + options: VpnConnectionsGetParameters, ): StreamableMethod; /** Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. */ put( - options: VpnConnectionsCreateOrUpdateParameters + options: VpnConnectionsCreateOrUpdateParameters, ): StreamableMethod< | VpnConnectionsCreateOrUpdate200Response | VpnConnectionsCreateOrUpdate201Response @@ -6931,7 +6931,7 @@ export interface VpnConnectionsGet { >; /** Deletes a vpn connection. */ delete( - options: VpnConnectionsDeleteParameters + options: VpnConnectionsDeleteParameters, ): StreamableMethod< | VpnConnectionsDelete200Response | VpnConnectionsDelete202Response @@ -6943,7 +6943,7 @@ export interface VpnConnectionsGet { export interface VpnConnectionsStartPacketCapture { /** Starts packet capture on Vpn connection in the specified resource group. */ post( - options: VpnConnectionsStartPacketCaptureParameters + options: VpnConnectionsStartPacketCaptureParameters, ): StreamableMethod< | VpnConnectionsStartPacketCapture200Response | VpnConnectionsStartPacketCapture202Response @@ -6954,7 +6954,7 @@ export interface VpnConnectionsStartPacketCapture { export interface VpnConnectionsStopPacketCapture { /** Stops packet capture on Vpn connection in the specified resource group. */ post( - options: VpnConnectionsStopPacketCaptureParameters + options: VpnConnectionsStopPacketCaptureParameters, ): StreamableMethod< | VpnConnectionsStopPacketCapture200Response | VpnConnectionsStopPacketCapture202Response @@ -6965,7 +6965,7 @@ export interface VpnConnectionsStopPacketCapture { export interface VpnConnectionsListByVpnGateway { /** Retrieves all vpn connections for a particular virtual wan vpn gateway. */ get( - options: VpnConnectionsListByVpnGatewayParameters + options: VpnConnectionsListByVpnGatewayParameters, ): StreamableMethod< VpnConnectionsListByVpnGateway200Response | VpnConnectionsListByVpnGatewayDefaultResponse >; @@ -6974,7 +6974,7 @@ export interface VpnConnectionsListByVpnGateway { export interface VpnSiteLinkConnectionsGet { /** Retrieves the details of a vpn site link connection. */ get( - options: VpnSiteLinkConnectionsGetParameters + options: VpnSiteLinkConnectionsGetParameters, ): StreamableMethod< VpnSiteLinkConnectionsGet200Response | VpnSiteLinkConnectionsGetDefaultResponse >; @@ -6983,11 +6983,11 @@ export interface VpnSiteLinkConnectionsGet { export interface NatRulesGet { /** Retrieves the details of a nat ruleGet. */ get( - options: NatRulesGetParameters + options: NatRulesGetParameters, ): StreamableMethod; /** Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. */ put( - options: NatRulesCreateOrUpdateParameters + options: NatRulesCreateOrUpdateParameters, ): StreamableMethod< | NatRulesCreateOrUpdate200Response | NatRulesCreateOrUpdate201Response @@ -6995,7 +6995,7 @@ export interface NatRulesGet { >; /** Deletes a nat rule. */ delete( - options: NatRulesDeleteParameters + options: NatRulesDeleteParameters, ): StreamableMethod< | NatRulesDelete200Response | NatRulesDelete202Response @@ -7007,7 +7007,7 @@ export interface NatRulesGet { export interface NatRulesListByVpnGateway { /** Retrieves all nat rules for a particular virtual wan vpn gateway. */ get( - options: NatRulesListByVpnGatewayParameters + options: NatRulesListByVpnGatewayParameters, ): StreamableMethod< NatRulesListByVpnGateway200Response | NatRulesListByVpnGatewayDefaultResponse >; @@ -7016,11 +7016,11 @@ export interface NatRulesListByVpnGateway { export interface P2SVpnGatewaysGet { /** Retrieves the details of a virtual wan p2s vpn gateway. */ get( - options: P2SVpnGatewaysGetParameters + options: P2SVpnGatewaysGetParameters, ): StreamableMethod; /** Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. */ put( - options: P2SVpnGatewaysCreateOrUpdateParameters + options: P2SVpnGatewaysCreateOrUpdateParameters, ): StreamableMethod< | P2SVpnGatewaysCreateOrUpdate200Response | P2SVpnGatewaysCreateOrUpdate201Response @@ -7028,7 +7028,7 @@ export interface P2SVpnGatewaysGet { >; /** Updates virtual wan p2s vpn gateway tags. */ patch( - options: P2SVpnGatewaysUpdateTagsParameters + options: P2SVpnGatewaysUpdateTagsParameters, ): StreamableMethod< | P2SVpnGatewaysUpdateTags200Response | P2SVpnGatewaysUpdateTags202Response @@ -7036,7 +7036,7 @@ export interface P2SVpnGatewaysGet { >; /** Deletes a virtual wan p2s vpn gateway. */ delete( - options: P2SVpnGatewaysDeleteParameters + options: P2SVpnGatewaysDeleteParameters, ): StreamableMethod< | P2SVpnGatewaysDelete200Response | P2SVpnGatewaysDelete202Response @@ -7048,7 +7048,7 @@ export interface P2SVpnGatewaysGet { export interface P2SVpnGatewaysListByResourceGroup { /** Lists all the P2SVpnGateways in a resource group. */ get( - options: P2SVpnGatewaysListByResourceGroupParameters + options: P2SVpnGatewaysListByResourceGroupParameters, ): StreamableMethod< P2SVpnGatewaysListByResourceGroup200Response | P2SVpnGatewaysListByResourceGroupDefaultResponse >; @@ -7057,14 +7057,14 @@ export interface P2SVpnGatewaysListByResourceGroup { export interface P2SVpnGatewaysList { /** Lists all the P2SVpnGateways in a subscription. */ get( - options: P2SVpnGatewaysListParameters + options: P2SVpnGatewaysListParameters, ): StreamableMethod; } export interface P2SVpnGatewaysReset { /** Resets the primary of the p2s vpn gateway in the specified resource group. */ post( - options: P2SVpnGatewaysResetParameters + options: P2SVpnGatewaysResetParameters, ): StreamableMethod< | P2SVpnGatewaysReset200Response | P2SVpnGatewaysReset202Response @@ -7075,7 +7075,7 @@ export interface P2SVpnGatewaysReset { export interface P2SVpnGatewaysGenerateVpnProfile { /** Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. */ post( - options: P2SVpnGatewaysGenerateVpnProfileParameters + options: P2SVpnGatewaysGenerateVpnProfileParameters, ): StreamableMethod< | P2SVpnGatewaysGenerateVpnProfile200Response | P2SVpnGatewaysGenerateVpnProfile202Response @@ -7086,7 +7086,7 @@ export interface P2SVpnGatewaysGenerateVpnProfile { export interface P2SVpnGatewaysGetP2SVpnConnectionHealth { /** Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. */ post( - options: P2SVpnGatewaysGetP2SVpnConnectionHealthParameters + options: P2SVpnGatewaysGetP2SVpnConnectionHealthParameters, ): StreamableMethod< | P2SVpnGatewaysGetP2SVpnConnectionHealth200Response | P2SVpnGatewaysGetP2SVpnConnectionHealth202Response @@ -7097,7 +7097,7 @@ export interface P2SVpnGatewaysGetP2SVpnConnectionHealth { export interface P2SVpnGatewaysGetP2SVpnConnectionHealthDetailed { /** Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. */ post( - options: P2SVpnGatewaysGetP2SVpnConnectionHealthDetailedParameters + options: P2SVpnGatewaysGetP2SVpnConnectionHealthDetailedParameters, ): StreamableMethod< | P2SVpnGatewaysGetP2SVpnConnectionHealthDetailed200Response | P2SVpnGatewaysGetP2SVpnConnectionHealthDetailed202Response @@ -7108,7 +7108,7 @@ export interface P2SVpnGatewaysGetP2SVpnConnectionHealthDetailed { export interface P2SVpnGatewaysDisconnectP2SVpnConnections { /** Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. */ post( - options: P2SVpnGatewaysDisconnectP2SVpnConnectionsParameters + options: P2SVpnGatewaysDisconnectP2SVpnConnectionsParameters, ): StreamableMethod< | P2SVpnGatewaysDisconnectP2SVpnConnections200Response | P2SVpnGatewaysDisconnectP2SVpnConnections202Response @@ -7119,7 +7119,7 @@ export interface P2SVpnGatewaysDisconnectP2SVpnConnections { export interface VpnServerConfigurationsAssociatedWithVirtualWanList { /** Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. */ post( - options: VpnServerConfigurationsAssociatedWithVirtualWanListParameters + options: VpnServerConfigurationsAssociatedWithVirtualWanListParameters, ): StreamableMethod< | VpnServerConfigurationsAssociatedWithVirtualWanList200Response | VpnServerConfigurationsAssociatedWithVirtualWanList202Response @@ -7130,13 +7130,13 @@ export interface VpnServerConfigurationsAssociatedWithVirtualWanList { export interface VirtualHubRouteTableV2SGet { /** Retrieves the details of a VirtualHubRouteTableV2. */ get( - options: VirtualHubRouteTableV2SGetParameters + options: VirtualHubRouteTableV2SGetParameters, ): StreamableMethod< VirtualHubRouteTableV2SGet200Response | VirtualHubRouteTableV2SGetDefaultResponse >; /** Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. */ put( - options: VirtualHubRouteTableV2SCreateOrUpdateParameters + options: VirtualHubRouteTableV2SCreateOrUpdateParameters, ): StreamableMethod< | VirtualHubRouteTableV2SCreateOrUpdate200Response | VirtualHubRouteTableV2SCreateOrUpdate201Response @@ -7144,7 +7144,7 @@ export interface VirtualHubRouteTableV2SGet { >; /** Deletes a VirtualHubRouteTableV2. */ delete( - options: VirtualHubRouteTableV2SDeleteParameters + options: VirtualHubRouteTableV2SDeleteParameters, ): StreamableMethod< | VirtualHubRouteTableV2SDelete200Response | VirtualHubRouteTableV2SDelete202Response @@ -7156,7 +7156,7 @@ export interface VirtualHubRouteTableV2SGet { export interface VirtualHubRouteTableV2SList { /** Retrieves the details of all VirtualHubRouteTableV2s. */ get( - options: VirtualHubRouteTableV2SListParameters + options: VirtualHubRouteTableV2SListParameters, ): StreamableMethod< VirtualHubRouteTableV2SList200Response | VirtualHubRouteTableV2SListDefaultResponse >; @@ -7165,7 +7165,7 @@ export interface VirtualHubRouteTableV2SList { export interface ExpressRouteGatewaysListBySubscription { /** Lists ExpressRoute gateways under a given subscription. */ get( - options: ExpressRouteGatewaysListBySubscriptionParameters + options: ExpressRouteGatewaysListBySubscriptionParameters, ): StreamableMethod< | ExpressRouteGatewaysListBySubscription200Response | ExpressRouteGatewaysListBySubscriptionDefaultResponse @@ -7175,7 +7175,7 @@ export interface ExpressRouteGatewaysListBySubscription { export interface ExpressRouteGatewaysListByResourceGroup { /** Lists ExpressRoute gateways in a given resource group. */ get( - options: ExpressRouteGatewaysListByResourceGroupParameters + options: ExpressRouteGatewaysListByResourceGroupParameters, ): StreamableMethod< | ExpressRouteGatewaysListByResourceGroup200Response | ExpressRouteGatewaysListByResourceGroupDefaultResponse @@ -7185,7 +7185,7 @@ export interface ExpressRouteGatewaysListByResourceGroup { export interface ExpressRouteGatewaysCreateOrUpdate { /** Creates or updates a ExpressRoute gateway in a specified resource group. */ put( - options: ExpressRouteGatewaysCreateOrUpdateParameters + options: ExpressRouteGatewaysCreateOrUpdateParameters, ): StreamableMethod< | ExpressRouteGatewaysCreateOrUpdate200Response | ExpressRouteGatewaysCreateOrUpdate201Response @@ -7193,7 +7193,7 @@ export interface ExpressRouteGatewaysCreateOrUpdate { >; /** Updates express route gateway tags. */ patch( - options: ExpressRouteGatewaysUpdateTagsParameters + options: ExpressRouteGatewaysUpdateTagsParameters, ): StreamableMethod< | ExpressRouteGatewaysUpdateTags200Response | ExpressRouteGatewaysUpdateTags202Response @@ -7201,11 +7201,11 @@ export interface ExpressRouteGatewaysCreateOrUpdate { >; /** Fetches the details of a ExpressRoute gateway in a resource group. */ get( - options: ExpressRouteGatewaysGetParameters + options: ExpressRouteGatewaysGetParameters, ): StreamableMethod; /** Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be deleted when there are no connection subresources. */ delete( - options: ExpressRouteGatewaysDeleteParameters + options: ExpressRouteGatewaysDeleteParameters, ): StreamableMethod< | ExpressRouteGatewaysDelete200Response | ExpressRouteGatewaysDelete202Response @@ -7217,7 +7217,7 @@ export interface ExpressRouteGatewaysCreateOrUpdate { export interface ExpressRouteConnectionsCreateOrUpdate { /** Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. */ put( - options: ExpressRouteConnectionsCreateOrUpdateParameters + options: ExpressRouteConnectionsCreateOrUpdateParameters, ): StreamableMethod< | ExpressRouteConnectionsCreateOrUpdate200Response | ExpressRouteConnectionsCreateOrUpdate201Response @@ -7225,13 +7225,13 @@ export interface ExpressRouteConnectionsCreateOrUpdate { >; /** Gets the specified ExpressRouteConnection. */ get( - options: ExpressRouteConnectionsGetParameters + options: ExpressRouteConnectionsGetParameters, ): StreamableMethod< ExpressRouteConnectionsGet200Response | ExpressRouteConnectionsGetDefaultResponse >; /** Deletes a connection to a ExpressRoute circuit. */ delete( - options: ExpressRouteConnectionsDeleteParameters + options: ExpressRouteConnectionsDeleteParameters, ): StreamableMethod< | ExpressRouteConnectionsDelete200Response | ExpressRouteConnectionsDelete202Response @@ -7243,7 +7243,7 @@ export interface ExpressRouteConnectionsCreateOrUpdate { export interface ExpressRouteConnectionsList { /** Lists ExpressRouteConnections. */ get( - options: ExpressRouteConnectionsListParameters + options: ExpressRouteConnectionsListParameters, ): StreamableMethod< ExpressRouteConnectionsList200Response | ExpressRouteConnectionsListDefaultResponse >; @@ -7252,13 +7252,13 @@ export interface ExpressRouteConnectionsList { export interface VirtualHubBgpConnectionGet { /** Retrieves the details of a Virtual Hub Bgp Connection. */ get( - options: VirtualHubBgpConnectionGetParameters + options: VirtualHubBgpConnectionGetParameters, ): StreamableMethod< VirtualHubBgpConnectionGet200Response | VirtualHubBgpConnectionGetDefaultResponse >; /** Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. */ put( - options: VirtualHubBgpConnectionCreateOrUpdateParameters + options: VirtualHubBgpConnectionCreateOrUpdateParameters, ): StreamableMethod< | VirtualHubBgpConnectionCreateOrUpdate200Response | VirtualHubBgpConnectionCreateOrUpdate201Response @@ -7266,7 +7266,7 @@ export interface VirtualHubBgpConnectionGet { >; /** Deletes a VirtualHubBgpConnection. */ delete( - options: VirtualHubBgpConnectionDeleteParameters + options: VirtualHubBgpConnectionDeleteParameters, ): StreamableMethod< | VirtualHubBgpConnectionDelete200Response | VirtualHubBgpConnectionDelete202Response @@ -7278,7 +7278,7 @@ export interface VirtualHubBgpConnectionGet { export interface VirtualHubBgpConnectionsList { /** Retrieves the details of all VirtualHubBgpConnections. */ get( - options: VirtualHubBgpConnectionsListParameters + options: VirtualHubBgpConnectionsListParameters, ): StreamableMethod< VirtualHubBgpConnectionsList200Response | VirtualHubBgpConnectionsListDefaultResponse >; @@ -7287,7 +7287,7 @@ export interface VirtualHubBgpConnectionsList { export interface VirtualHubBgpConnectionsListLearnedRoutes { /** Retrieves a list of routes the virtual hub bgp connection has learned. */ post( - options: VirtualHubBgpConnectionsListLearnedRoutesParameters + options: VirtualHubBgpConnectionsListLearnedRoutesParameters, ): StreamableMethod< | VirtualHubBgpConnectionsListLearnedRoutes200Response | VirtualHubBgpConnectionsListLearnedRoutes202Response @@ -7298,7 +7298,7 @@ export interface VirtualHubBgpConnectionsListLearnedRoutes { export interface VirtualHubBgpConnectionsListAdvertisedRoutes { /** Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. */ post( - options: VirtualHubBgpConnectionsListAdvertisedRoutesParameters + options: VirtualHubBgpConnectionsListAdvertisedRoutesParameters, ): StreamableMethod< | VirtualHubBgpConnectionsListAdvertisedRoutes200Response | VirtualHubBgpConnectionsListAdvertisedRoutes202Response @@ -7309,13 +7309,13 @@ export interface VirtualHubBgpConnectionsListAdvertisedRoutes { export interface VirtualHubIpConfigurationGet { /** Retrieves the details of a Virtual Hub Ip configuration. */ get( - options: VirtualHubIpConfigurationGetParameters + options: VirtualHubIpConfigurationGetParameters, ): StreamableMethod< VirtualHubIpConfigurationGet200Response | VirtualHubIpConfigurationGetDefaultResponse >; /** Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing VirtualHubIpConfiguration. */ put( - options: VirtualHubIpConfigurationCreateOrUpdateParameters + options: VirtualHubIpConfigurationCreateOrUpdateParameters, ): StreamableMethod< | VirtualHubIpConfigurationCreateOrUpdate200Response | VirtualHubIpConfigurationCreateOrUpdate201Response @@ -7323,7 +7323,7 @@ export interface VirtualHubIpConfigurationGet { >; /** Deletes a VirtualHubIpConfiguration. */ delete( - options: VirtualHubIpConfigurationDeleteParameters + options: VirtualHubIpConfigurationDeleteParameters, ): StreamableMethod< | VirtualHubIpConfigurationDelete200Response | VirtualHubIpConfigurationDelete202Response @@ -7335,7 +7335,7 @@ export interface VirtualHubIpConfigurationGet { export interface VirtualHubIpConfigurationList { /** Retrieves the details of all VirtualHubIpConfigurations. */ get( - options: VirtualHubIpConfigurationListParameters + options: VirtualHubIpConfigurationListParameters, ): StreamableMethod< VirtualHubIpConfigurationList200Response | VirtualHubIpConfigurationListDefaultResponse >; @@ -7344,7 +7344,7 @@ export interface VirtualHubIpConfigurationList { export interface HubRouteTablesCreateOrUpdate { /** Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. */ put( - options: HubRouteTablesCreateOrUpdateParameters + options: HubRouteTablesCreateOrUpdateParameters, ): StreamableMethod< | HubRouteTablesCreateOrUpdate200Response | HubRouteTablesCreateOrUpdate201Response @@ -7352,11 +7352,11 @@ export interface HubRouteTablesCreateOrUpdate { >; /** Retrieves the details of a RouteTable. */ get( - options: HubRouteTablesGetParameters + options: HubRouteTablesGetParameters, ): StreamableMethod; /** Deletes a RouteTable. */ delete( - options: HubRouteTablesDeleteParameters + options: HubRouteTablesDeleteParameters, ): StreamableMethod< | HubRouteTablesDelete200Response | HubRouteTablesDelete202Response @@ -7368,14 +7368,14 @@ export interface HubRouteTablesCreateOrUpdate { export interface HubRouteTablesList { /** Retrieves the details of all RouteTables. */ get( - options: HubRouteTablesListParameters + options: HubRouteTablesListParameters, ): StreamableMethod; } export interface RoutingIntentCreateOrUpdate { /** Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. */ put( - options: RoutingIntentCreateOrUpdateParameters + options: RoutingIntentCreateOrUpdateParameters, ): StreamableMethod< | RoutingIntentCreateOrUpdate200Response | RoutingIntentCreateOrUpdate201Response @@ -7383,11 +7383,11 @@ export interface RoutingIntentCreateOrUpdate { >; /** Retrieves the details of a RoutingIntent. */ get( - options: RoutingIntentGetParameters + options: RoutingIntentGetParameters, ): StreamableMethod; /** Deletes a RoutingIntent. */ delete( - options: RoutingIntentDeleteParameters + options: RoutingIntentDeleteParameters, ): StreamableMethod< | RoutingIntentDelete200Response | RoutingIntentDelete202Response @@ -7399,14 +7399,14 @@ export interface RoutingIntentCreateOrUpdate { export interface RoutingIntentList { /** Retrieves the details of all RoutingIntent child resources of the VirtualHub. */ get( - options: RoutingIntentListParameters + options: RoutingIntentListParameters, ): StreamableMethod; } export interface WebApplicationFirewallPoliciesList { /** Lists all of the protection policies within a resource group. */ get( - options: WebApplicationFirewallPoliciesListParameters + options: WebApplicationFirewallPoliciesListParameters, ): StreamableMethod< | WebApplicationFirewallPoliciesList200Response | WebApplicationFirewallPoliciesListDefaultResponse @@ -7416,7 +7416,7 @@ export interface WebApplicationFirewallPoliciesList { export interface WebApplicationFirewallPoliciesListAll { /** Gets all the WAF policies in a subscription. */ get( - options: WebApplicationFirewallPoliciesListAllParameters + options: WebApplicationFirewallPoliciesListAllParameters, ): StreamableMethod< | WebApplicationFirewallPoliciesListAll200Response | WebApplicationFirewallPoliciesListAllDefaultResponse @@ -7426,13 +7426,13 @@ export interface WebApplicationFirewallPoliciesListAll { export interface WebApplicationFirewallPoliciesGet { /** Retrieve protection policy with specified name within a resource group. */ get( - options: WebApplicationFirewallPoliciesGetParameters + options: WebApplicationFirewallPoliciesGetParameters, ): StreamableMethod< WebApplicationFirewallPoliciesGet200Response | WebApplicationFirewallPoliciesGetDefaultResponse >; /** Creates or update policy with specified rule set name within a resource group. */ put( - options: WebApplicationFirewallPoliciesCreateOrUpdateParameters + options: WebApplicationFirewallPoliciesCreateOrUpdateParameters, ): StreamableMethod< | WebApplicationFirewallPoliciesCreateOrUpdate200Response | WebApplicationFirewallPoliciesCreateOrUpdate201Response @@ -7440,7 +7440,7 @@ export interface WebApplicationFirewallPoliciesGet { >; /** Deletes Policy. */ delete( - options: WebApplicationFirewallPoliciesDeleteParameters + options: WebApplicationFirewallPoliciesDeleteParameters, ): StreamableMethod< | WebApplicationFirewallPoliciesDelete200Response | WebApplicationFirewallPoliciesDelete202Response @@ -7452,11 +7452,11 @@ export interface WebApplicationFirewallPoliciesGet { export interface VipSwapGet { /** Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production */ get( - options: VipSwapGetParameters + options: VipSwapGetParameters, ): StreamableMethod; /** Performs vip swap operation on swappable cloud services. */ put( - options: VipSwapCreateParameters + options: VipSwapCreateParameters, ): StreamableMethod< VipSwapCreate200Response | VipSwapCreate202Response | VipSwapCreateDefaultResponse >; @@ -7465,7 +7465,7 @@ export interface VipSwapGet { export interface VipSwapList { /** Gets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production */ get( - options: VipSwapListParameters + options: VipSwapListParameters, ): StreamableMethod; } @@ -7475,89 +7475,89 @@ export interface Routes { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}", subscriptionId: string, resourceGroupName: string, - applicationGatewayName: string + applicationGatewayName: string, ): ApplicationGatewaysDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/applicationGateways' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): ApplicationGatewaysList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/applicationGateways' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways", - subscriptionId: string + subscriptionId: string, ): ApplicationGatewaysListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/applicationGateways/\{applicationGatewayName\}/start' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/start", subscriptionId: string, resourceGroupName: string, - applicationGatewayName: string + applicationGatewayName: string, ): ApplicationGatewaysStart; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/applicationGateways/\{applicationGatewayName\}/stop' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop", subscriptionId: string, resourceGroupName: string, - applicationGatewayName: string + applicationGatewayName: string, ): ApplicationGatewaysStop; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/applicationGateways/\{applicationGatewayName\}/backendhealth' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendhealth", subscriptionId: string, resourceGroupName: string, - applicationGatewayName: string + applicationGatewayName: string, ): ApplicationGatewaysBackendHealth; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/applicationGateways/\{applicationGatewayName\}/getBackendHealthOnDemand' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/getBackendHealthOnDemand", subscriptionId: string, resourceGroupName: string, - applicationGatewayName: string + applicationGatewayName: string, ): ApplicationGatewaysBackendHealthOnDemand; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/applicationGatewayAvailableServerVariables' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableServerVariables", - subscriptionId: string + subscriptionId: string, ): ApplicationGatewaysListAvailableServerVariables; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/applicationGatewayAvailableRequestHeaders' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableRequestHeaders", - subscriptionId: string + subscriptionId: string, ): ApplicationGatewaysListAvailableRequestHeaders; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/applicationGatewayAvailableResponseHeaders' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableResponseHeaders", - subscriptionId: string + subscriptionId: string, ): ApplicationGatewaysListAvailableResponseHeaders; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets", - subscriptionId: string + subscriptionId: string, ): ApplicationGatewaysListAvailableWafRuleSets; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default", - subscriptionId: string + subscriptionId: string, ): ApplicationGatewaysListAvailableSslOptions; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies", - subscriptionId: string + subscriptionId: string, ): ApplicationGatewaysListAvailableSslPredefinedPolicies; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/\{predefinedPolicyName\}' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/{predefinedPolicyName}", subscriptionId: string, - predefinedPolicyName: string + predefinedPolicyName: string, ): ApplicationGatewaysGetSslPredefinedPolicy; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/applicationGateways/\{applicationGatewayName\}/privateLinkResources' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateLinkResources", subscriptionId: string, resourceGroupName: string, - applicationGatewayName: string + applicationGatewayName: string, ): ApplicationGatewayPrivateLinkResourcesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/applicationGateways/\{applicationGatewayName\}/privateEndpointConnections/\{connectionName\}' has methods for the following verbs: delete, put, get */ ( @@ -7565,212 +7565,212 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, applicationGatewayName: string, - connectionName: string + connectionName: string, ): ApplicationGatewayPrivateEndpointConnectionsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/applicationGateways/\{applicationGatewayName\}/privateEndpointConnections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateEndpointConnections", subscriptionId: string, resourceGroupName: string, - applicationGatewayName: string + applicationGatewayName: string, ): ApplicationGatewayPrivateEndpointConnectionsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/locations/\{location\}/applicationGatewayWafDynamicManifests/dafault' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/applicationGatewayWafDynamicManifests/dafault", subscriptionId: string, - location: string + location: string, ): ApplicationGatewayWafDynamicManifestsDefaultGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/locations/\{location\}/applicationGatewayWafDynamicManifests' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/applicationGatewayWafDynamicManifests", subscriptionId: string, - location: string + location: string, ): ApplicationGatewayWafDynamicManifestsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/applicationSecurityGroups/\{applicationSecurityGroupName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", subscriptionId: string, resourceGroupName: string, - applicationSecurityGroupName: string + applicationSecurityGroupName: string, ): ApplicationSecurityGroupsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/applicationSecurityGroups' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationSecurityGroups", - subscriptionId: string + subscriptionId: string, ): ApplicationSecurityGroupsListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/applicationSecurityGroups' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): ApplicationSecurityGroupsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/locations/\{location\}/availableDelegations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availableDelegations", subscriptionId: string, - location: string + location: string, ): AvailableDelegationsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/locations/\{location\}/availableDelegations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availableDelegations", subscriptionId: string, resourceGroupName: string, - location: string + location: string, ): AvailableResourceGroupDelegationsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/locations/\{location\}/availableServiceAliases' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availableServiceAliases", subscriptionId: string, - location: string + location: string, ): AvailableServiceAliasesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/locations/\{location\}/availableServiceAliases' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availableServiceAliases", subscriptionId: string, resourceGroupName: string, - location: string + location: string, ): AvailableServiceAliasesListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/azureFirewalls/\{azureFirewallName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}", subscriptionId: string, resourceGroupName: string, - azureFirewallName: string + azureFirewallName: string, ): AzureFirewallsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/azureFirewalls' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): AzureFirewallsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/azureFirewalls' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureFirewalls", - subscriptionId: string + subscriptionId: string, ): AzureFirewallsListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/azureFirewalls/\{azureFirewallName\}/learnedIPPrefixes' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}/learnedIPPrefixes", subscriptionId: string, resourceGroupName: string, - azureFirewallName: string + azureFirewallName: string, ): AzureFirewallsListLearnedPrefixes; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/azureFirewallFqdnTags' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureFirewallFqdnTags", - subscriptionId: string + subscriptionId: string, ): AzureFirewallFqdnTagsListAll; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/azureWebCategories/\{name\}' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureWebCategories/{name}", subscriptionId: string, - name: string + name: string, ): WebCategoriesGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/azureWebCategories' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureWebCategories", - subscriptionId: string + subscriptionId: string, ): WebCategoriesListBySubscription; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/bastionHosts/\{bastionHostName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}", subscriptionId: string, resourceGroupName: string, - bastionHostName: string + bastionHostName: string, ): BastionHostsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/bastionHosts' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/bastionHosts", - subscriptionId: string + subscriptionId: string, ): BastionHostsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/bastionHosts' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): BastionHostsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/bastionHosts/\{bastionHostName\}/createShareableLinks' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/createShareableLinks", subscriptionId: string, resourceGroupName: string, - bastionHostName: string + bastionHostName: string, ): PutBastionShareableLink; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/bastionHosts/\{bastionHostName\}/deleteShareableLinks' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinks", subscriptionId: string, resourceGroupName: string, - bastionHostName: string + bastionHostName: string, ): DeleteBastionShareableLink; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/bastionHosts/\{bastionHostName\}/getShareableLinks' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getShareableLinks", subscriptionId: string, resourceGroupName: string, - bastionHostName: string + bastionHostName: string, ): GetBastionShareableLink; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/bastionHosts/\{bastionHostName\}/getActiveSessions' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getActiveSessions", subscriptionId: string, resourceGroupName: string, - bastionHostName: string + bastionHostName: string, ): GetActiveSessions; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/bastionHosts/\{bastionHostName\}/disconnectActiveSessions' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/disconnectActiveSessions", subscriptionId: string, resourceGroupName: string, - bastionHostName: string + bastionHostName: string, ): DisconnectActiveSessions; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/locations/\{location\}/CheckDnsNameAvailability' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability", subscriptionId: string, - location: string + location: string, ): CheckDnsNameAvailability; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/listActiveConnectivityConfigurations' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listActiveConnectivityConfigurations", subscriptionId: string, resourceGroupName: string, - networkManagerName: string + networkManagerName: string, ): ListActiveConnectivityConfigurations; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/listActiveSecurityAdminRules' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listActiveSecurityAdminRules", subscriptionId: string, resourceGroupName: string, - networkManagerName: string + networkManagerName: string, ): ListActiveSecurityAdminRules; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworks/\{virtualNetworkName\}/listNetworkManagerEffectiveConnectivityConfigurations' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listNetworkManagerEffectiveConnectivityConfigurations", subscriptionId: string, resourceGroupName: string, - virtualNetworkName: string + virtualNetworkName: string, ): ListNetworkManagerEffectiveConnectivityConfigurations; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworks/\{virtualNetworkName\}/listNetworkManagerEffectiveSecurityAdminRules' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listNetworkManagerEffectiveSecurityAdminRules", subscriptionId: string, resourceGroupName: string, - virtualNetworkName: string + virtualNetworkName: string, ): ListNetworkManagerEffectiveSecurityAdminRules; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualWans/\{virtualWANName\}/supportedSecurityProviders' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/supportedSecurityProviders", subscriptionId: string, resourceGroupName: string, - virtualWANName: string + virtualWANName: string, ): SupportedSecurityProviders; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualWans/\{virtualWANName\}/GenerateVpnProfile' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/GenerateVpnProfile", subscriptionId: string, resourceGroupName: string, - virtualWANName: string + virtualWANName: string, ): Generatevirtualwanvpnserverconfigurationvpnprofile; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/roleInstances/\{roleInstanceName\}/networkInterfaces' has methods for the following verbs: get */ ( @@ -7778,14 +7778,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, cloudServiceName: string, - roleInstanceName: string + roleInstanceName: string, ): NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfaces; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/networkInterfaces' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/networkInterfaces", subscriptionId: string, resourceGroupName: string, - cloudServiceName: string + cloudServiceName: string, ): NetworkInterfacesListCloudServiceNetworkInterfaces; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/roleInstances/\{roleInstanceName\}/networkInterfaces/\{networkInterfaceName\}' has methods for the following verbs: get */ ( @@ -7794,39 +7794,39 @@ export interface Routes { resourceGroupName: string, cloudServiceName: string, roleInstanceName: string, - networkInterfaceName: string + networkInterfaceName: string, ): NetworkInterfacesGetCloudServiceNetworkInterface; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkInterfaces/\{networkInterfaceName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", subscriptionId: string, resourceGroupName: string, - networkInterfaceName: string + networkInterfaceName: string, ): NetworkInterfacesDelete; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/networkInterfaces' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces", - subscriptionId: string + subscriptionId: string, ): NetworkInterfacesListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkInterfaces' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): NetworkInterfacesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkInterfaces/\{networkInterfaceName\}/effectiveRouteTable' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveRouteTable", subscriptionId: string, resourceGroupName: string, - networkInterfaceName: string + networkInterfaceName: string, ): NetworkInterfacesGetEffectiveRouteTable; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkInterfaces/\{networkInterfaceName\}/effectiveNetworkSecurityGroups' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveNetworkSecurityGroups", subscriptionId: string, resourceGroupName: string, - networkInterfaceName: string + networkInterfaceName: string, ): NetworkInterfacesListEffectiveNetworkSecurityGroups; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/microsoft.Compute/virtualMachineScaleSets/\{virtualMachineScaleSetName\}/virtualMachines/\{virtualmachineIndex\}/networkInterfaces' has methods for the following verbs: get */ ( @@ -7834,14 +7834,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, virtualMachineScaleSetName: string, - virtualmachineIndex: string + virtualmachineIndex: string, ): NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfaces; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/microsoft.Compute/virtualMachineScaleSets/\{virtualMachineScaleSetName\}/networkInterfaces' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/networkInterfaces", subscriptionId: string, resourceGroupName: string, - virtualMachineScaleSetName: string + virtualMachineScaleSetName: string, ): NetworkInterfacesListVirtualMachineScaleSetNetworkInterfaces; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/microsoft.Compute/virtualMachineScaleSets/\{virtualMachineScaleSetName\}/virtualMachines/\{virtualmachineIndex\}/networkInterfaces/\{networkInterfaceName\}' has methods for the following verbs: get */ ( @@ -7850,7 +7850,7 @@ export interface Routes { resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, - networkInterfaceName: string + networkInterfaceName: string, ): NetworkInterfacesGetVirtualMachineScaleSetNetworkInterface; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/microsoft.Compute/virtualMachineScaleSets/\{virtualMachineScaleSetName\}/virtualMachines/\{virtualmachineIndex\}/networkInterfaces/\{networkInterfaceName\}/ipConfigurations' has methods for the following verbs: get */ ( @@ -7859,7 +7859,7 @@ export interface Routes { resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, - networkInterfaceName: string + networkInterfaceName: string, ): NetworkInterfacesListVirtualMachineScaleSetIpConfigurations; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/microsoft.Compute/virtualMachineScaleSets/\{virtualMachineScaleSetName\}/virtualMachines/\{virtualmachineIndex\}/networkInterfaces/\{networkInterfaceName\}/ipConfigurations/\{ipConfigurationName\}' has methods for the following verbs: get */ ( @@ -7869,14 +7869,14 @@ export interface Routes { virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, - ipConfigurationName: string + ipConfigurationName: string, ): NetworkInterfacesGetVirtualMachineScaleSetIpConfiguration; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/publicipaddresses' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/publicipaddresses", subscriptionId: string, resourceGroupName: string, - cloudServiceName: string + cloudServiceName: string, ): PublicIPAddressesListCloudServicePublicIPAddresses; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/roleInstances/\{roleInstanceName\}/networkInterfaces/\{networkInterfaceName\}/ipconfigurations/\{ipConfigurationName\}/publicipaddresses' has methods for the following verbs: get */ ( @@ -7886,7 +7886,7 @@ export interface Routes { cloudServiceName: string, roleInstanceName: string, networkInterfaceName: string, - ipConfigurationName: string + ipConfigurationName: string, ): PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/cloudServices/\{cloudServiceName\}/roleInstances/\{roleInstanceName\}/networkInterfaces/\{networkInterfaceName\}/ipconfigurations/\{ipConfigurationName\}/publicipaddresses/\{publicIpAddressName\}' has methods for the following verbs: get */ ( @@ -7897,39 +7897,39 @@ export interface Routes { roleInstanceName: string, networkInterfaceName: string, ipConfigurationName: string, - publicIpAddressName: string + publicIpAddressName: string, ): PublicIPAddressesGetCloudServicePublicIPAddress; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/publicIPAddresses/\{publicIpAddressName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}", subscriptionId: string, resourceGroupName: string, - publicIpAddressName: string + publicIpAddressName: string, ): PublicIPAddressesDelete; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/publicIPAddresses' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPAddresses", - subscriptionId: string + subscriptionId: string, ): PublicIPAddressesListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/publicIPAddresses' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): PublicIPAddressesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/publicIPAddresses/\{publicIpAddressName\}/ddosProtectionStatus' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}/ddosProtectionStatus", subscriptionId: string, resourceGroupName: string, - publicIpAddressName: string + publicIpAddressName: string, ): PublicIPAddressesDdosProtectionStatus; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{virtualMachineScaleSetName\}/publicipaddresses' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/publicipaddresses", subscriptionId: string, resourceGroupName: string, - virtualMachineScaleSetName: string + virtualMachineScaleSetName: string, ): PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{virtualMachineScaleSetName\}/virtualMachines/\{virtualmachineIndex\}/networkInterfaces/\{networkInterfaceName\}/ipconfigurations/\{ipConfigurationName\}/publicipaddresses' has methods for the following verbs: get */ ( @@ -7939,7 +7939,7 @@ export interface Routes { virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, - ipConfigurationName: string + ipConfigurationName: string, ): PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Compute/virtualMachineScaleSets/\{virtualMachineScaleSetName\}/virtualMachines/\{virtualmachineIndex\}/networkInterfaces/\{networkInterfaceName\}/ipconfigurations/\{ipConfigurationName\}/publicipaddresses/\{publicIpAddressName\}' has methods for the following verbs: get */ ( @@ -7950,74 +7950,74 @@ export interface Routes { virtualmachineIndex: string, networkInterfaceName: string, ipConfigurationName: string, - publicIpAddressName: string + publicIpAddressName: string, ): PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddress; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/customIpPrefixes/\{customIpPrefixName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes/{customIpPrefixName}", subscriptionId: string, resourceGroupName: string, - customIpPrefixName: string + customIpPrefixName: string, ): CustomIPPrefixesDelete; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/customIpPrefixes' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/customIpPrefixes", - subscriptionId: string + subscriptionId: string, ): CustomIPPrefixesListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/customIpPrefixes' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): CustomIPPrefixesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/ddosCustomPolicies/\{ddosCustomPolicyName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", subscriptionId: string, resourceGroupName: string, - ddosCustomPolicyName: string + ddosCustomPolicyName: string, ): DdosCustomPoliciesDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/ddosProtectionPlans/\{ddosProtectionPlanName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}", subscriptionId: string, resourceGroupName: string, - ddosProtectionPlanName: string + ddosProtectionPlanName: string, ): DdosProtectionPlansDelete; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/ddosProtectionPlans' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans", - subscriptionId: string + subscriptionId: string, ): DdosProtectionPlansList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/ddosProtectionPlans' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): DdosProtectionPlansListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/dscpConfigurations/\{dscpConfigurationName\}' has methods for the following verbs: put, delete, get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations/{dscpConfigurationName}", subscriptionId: string, resourceGroupName: string, - dscpConfigurationName: string + dscpConfigurationName: string, ): DscpConfigurationCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/dscpConfigurations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): DscpConfigurationList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/dscpConfigurations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dscpConfigurations", - subscriptionId: string + subscriptionId: string, ): DscpConfigurationListAll; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/locations/\{location\}/virtualNetworkAvailableEndpointServices' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/virtualNetworkAvailableEndpointServices", subscriptionId: string, - location: string + location: string, ): AvailableEndpointServicesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCircuits/\{circuitName\}/authorizations/\{authorizationName\}' has methods for the following verbs: delete, get, put */ ( @@ -8025,14 +8025,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, circuitName: string, - authorizationName: string + authorizationName: string, ): ExpressRouteCircuitAuthorizationsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCircuits/\{circuitName\}/authorizations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations", subscriptionId: string, resourceGroupName: string, - circuitName: string + circuitName: string, ): ExpressRouteCircuitAuthorizationsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCircuits/\{circuitName\}/peerings/\{peeringName\}' has methods for the following verbs: delete, get, put */ ( @@ -8040,14 +8040,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, circuitName: string, - peeringName: string + peeringName: string, ): ExpressRouteCircuitPeeringsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCircuits/\{circuitName\}/peerings' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings", subscriptionId: string, resourceGroupName: string, - circuitName: string + circuitName: string, ): ExpressRouteCircuitPeeringsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCircuits/\{circuitName\}/peerings/\{peeringName\}/connections/\{connectionName\}' has methods for the following verbs: delete, get, put */ ( @@ -8056,7 +8056,7 @@ export interface Routes { resourceGroupName: string, circuitName: string, peeringName: string, - connectionName: string + connectionName: string, ): ExpressRouteCircuitConnectionsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCircuits/\{circuitName\}/peerings/\{peeringName\}/connections' has methods for the following verbs: get */ ( @@ -8064,7 +8064,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, circuitName: string, - peeringName: string + peeringName: string, ): ExpressRouteCircuitConnectionsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCircuits/\{circuitName\}/peerings/\{peeringName\}/peerConnections/\{connectionName\}' has methods for the following verbs: get */ ( @@ -8073,7 +8073,7 @@ export interface Routes { resourceGroupName: string, circuitName: string, peeringName: string, - connectionName: string + connectionName: string, ): PeerExpressRouteCircuitConnectionsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCircuits/\{circuitName\}/peerings/\{peeringName\}/peerConnections' has methods for the following verbs: get */ ( @@ -8081,14 +8081,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, circuitName: string, - peeringName: string + peeringName: string, ): PeerExpressRouteCircuitConnectionsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCircuits/\{circuitName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}", subscriptionId: string, resourceGroupName: string, - circuitName: string + circuitName: string, ): ExpressRouteCircuitsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCircuits/\{circuitName\}/peerings/\{peeringName\}/arpTables/\{devicePath\}' has methods for the following verbs: post */ ( @@ -8097,7 +8097,7 @@ export interface Routes { resourceGroupName: string, circuitName: string, peeringName: string, - devicePath: string + devicePath: string, ): ExpressRouteCircuitsListArpTable; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCircuits/\{circuitName\}/peerings/\{peeringName\}/routeTables/\{devicePath\}' has methods for the following verbs: post */ ( @@ -8106,7 +8106,7 @@ export interface Routes { resourceGroupName: string, circuitName: string, peeringName: string, - devicePath: string + devicePath: string, ): ExpressRouteCircuitsListRoutesTable; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCircuits/\{circuitName\}/peerings/\{peeringName\}/routeTablesSummary/\{devicePath\}' has methods for the following verbs: post */ ( @@ -8115,14 +8115,14 @@ export interface Routes { resourceGroupName: string, circuitName: string, peeringName: string, - devicePath: string + devicePath: string, ): ExpressRouteCircuitsListRoutesTableSummary; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCircuits/\{circuitName\}/stats' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/stats", subscriptionId: string, resourceGroupName: string, - circuitName: string + circuitName: string, ): ExpressRouteCircuitsGetStats; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCircuits/\{circuitName\}/peerings/\{peeringName\}/stats' has methods for the following verbs: get */ ( @@ -8130,41 +8130,41 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, circuitName: string, - peeringName: string + peeringName: string, ): ExpressRouteCircuitsGetPeeringStats; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCircuits' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): ExpressRouteCircuitsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/expressRouteCircuits' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCircuits", - subscriptionId: string + subscriptionId: string, ): ExpressRouteCircuitsListAll; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/expressRouteServiceProviders' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteServiceProviders", - subscriptionId: string + subscriptionId: string, ): ExpressRouteServiceProvidersList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/expressRouteCrossConnections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCrossConnections", - subscriptionId: string + subscriptionId: string, ): ExpressRouteCrossConnectionsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCrossConnections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): ExpressRouteCrossConnectionsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCrossConnections/\{crossConnectionName\}' has methods for the following verbs: get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}", subscriptionId: string, resourceGroupName: string, - crossConnectionName: string + crossConnectionName: string, ): ExpressRouteCrossConnectionsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCrossConnections/\{crossConnectionName\}/peerings/\{peeringName\}/arpTables/\{devicePath\}' has methods for the following verbs: post */ ( @@ -8173,7 +8173,7 @@ export interface Routes { resourceGroupName: string, crossConnectionName: string, peeringName: string, - devicePath: string + devicePath: string, ): ExpressRouteCrossConnectionsListArpTable; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCrossConnections/\{crossConnectionName\}/peerings/\{peeringName\}/routeTablesSummary/\{devicePath\}' has methods for the following verbs: post */ ( @@ -8182,7 +8182,7 @@ export interface Routes { resourceGroupName: string, crossConnectionName: string, peeringName: string, - devicePath: string + devicePath: string, ): ExpressRouteCrossConnectionsListRoutesTableSummary; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCrossConnections/\{crossConnectionName\}/peerings/\{peeringName\}/routeTables/\{devicePath\}' has methods for the following verbs: post */ ( @@ -8191,14 +8191,14 @@ export interface Routes { resourceGroupName: string, crossConnectionName: string, peeringName: string, - devicePath: string + devicePath: string, ): ExpressRouteCrossConnectionsListRoutesTable; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCrossConnections/\{crossConnectionName\}/peerings' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings", subscriptionId: string, resourceGroupName: string, - crossConnectionName: string + crossConnectionName: string, ): ExpressRouteCrossConnectionPeeringsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteCrossConnections/\{crossConnectionName\}/peerings/\{peeringName\}' has methods for the following verbs: delete, get, put */ ( @@ -8206,43 +8206,43 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, crossConnectionName: string, - peeringName: string + peeringName: string, ): ExpressRouteCrossConnectionPeeringsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/ExpressRoutePortsLocations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations", - subscriptionId: string + subscriptionId: string, ): ExpressRoutePortsLocationsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/ExpressRoutePortsLocations/\{locationName\}' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations/{locationName}", subscriptionId: string, - locationName: string + locationName: string, ): ExpressRoutePortsLocationsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/ExpressRoutePorts/\{expressRoutePortName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}", subscriptionId: string, resourceGroupName: string, - expressRoutePortName: string + expressRoutePortName: string, ): ExpressRoutePortsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/ExpressRoutePorts' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): ExpressRoutePortsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/ExpressRoutePorts' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePorts", - subscriptionId: string + subscriptionId: string, ): ExpressRoutePortsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRoutePorts/\{expressRoutePortName\}/generateLoa' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/generateLoa", subscriptionId: string, resourceGroupName: string, - expressRoutePortName: string + expressRoutePortName: string, ): ExpressRoutePortsGenerateLOA; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/ExpressRoutePorts/\{expressRoutePortName\}/links/\{linkName\}' has methods for the following verbs: get */ ( @@ -8250,14 +8250,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, expressRoutePortName: string, - linkName: string + linkName: string, ): ExpressRouteLinksGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/ExpressRoutePorts/\{expressRoutePortName\}/links' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}/links", subscriptionId: string, resourceGroupName: string, - expressRoutePortName: string + expressRoutePortName: string, ): ExpressRouteLinksList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRoutePorts/\{expressRoutePortName\}/authorizations/\{authorizationName\}' has methods for the following verbs: delete, get, put */ ( @@ -8265,43 +8265,43 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, expressRoutePortName: string, - authorizationName: string + authorizationName: string, ): ExpressRoutePortAuthorizationsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRoutePorts/\{expressRoutePortName\}/authorizations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/authorizations", subscriptionId: string, resourceGroupName: string, - expressRoutePortName: string + expressRoutePortName: string, ): ExpressRoutePortAuthorizationsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/expressRouteProviderPorts' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteProviderPorts", - subscriptionId: string + subscriptionId: string, ): ExpressRouteProviderPortsLocationList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/expressRouteProviderPorts/\{providerport\}' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteProviderPorts/{providerport}", subscriptionId: string, - providerport: string + providerport: string, ): ExpressRouteProviderPortsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/firewallPolicies/\{firewallPolicyName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}", subscriptionId: string, resourceGroupName: string, - firewallPolicyName: string + firewallPolicyName: string, ): FirewallPoliciesDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/firewallPolicies' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): FirewallPoliciesList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/firewallPolicies' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/firewallPolicies", - subscriptionId: string + subscriptionId: string, ): FirewallPoliciesListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/firewallPolicies/\{firewallPolicyName\}/ruleCollectionGroups/\{ruleCollectionGroupName\}' has methods for the following verbs: delete, get, put */ ( @@ -8309,102 +8309,102 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, firewallPolicyName: string, - ruleCollectionGroupName: string + ruleCollectionGroupName: string, ): FirewallPolicyRuleCollectionGroupsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/firewallPolicies/\{firewallPolicyName\}/ruleCollectionGroups' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups", subscriptionId: string, resourceGroupName: string, - firewallPolicyName: string + firewallPolicyName: string, ): FirewallPolicyRuleCollectionGroupsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/firewallPolicies/\{firewallPolicyName\}/listIdpsSignatures' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/listIdpsSignatures", subscriptionId: string, resourceGroupName: string, - firewallPolicyName: string + firewallPolicyName: string, ): FirewallPolicyIdpsSignaturesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/firewallPolicies/\{firewallPolicyName\}/signatureOverrides/default' has methods for the following verbs: patch, put, get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides/default", subscriptionId: string, resourceGroupName: string, - firewallPolicyName: string + firewallPolicyName: string, ): FirewallPolicyIdpsSignaturesOverridesPatch; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/firewallPolicies/\{firewallPolicyName\}/signatureOverrides' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides", subscriptionId: string, resourceGroupName: string, - firewallPolicyName: string + firewallPolicyName: string, ): FirewallPolicyIdpsSignaturesOverridesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/firewallPolicies/\{firewallPolicyName\}/listIdpsFilterOptions' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/listIdpsFilterOptions", subscriptionId: string, resourceGroupName: string, - firewallPolicyName: string + firewallPolicyName: string, ): FirewallPolicyIdpsSignaturesFilterValuesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/IpAllocations/\{ipAllocationName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}", subscriptionId: string, resourceGroupName: string, - ipAllocationName: string + ipAllocationName: string, ): IpAllocationsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/IpAllocations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/IpAllocations", - subscriptionId: string + subscriptionId: string, ): IpAllocationsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/IpAllocations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): IpAllocationsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/ipGroups/\{ipGroupsName\}' has methods for the following verbs: get, put, patch, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}", subscriptionId: string, resourceGroupName: string, - ipGroupsName: string + ipGroupsName: string, ): IpGroupsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/ipGroups' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): IpGroupsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/ipGroups' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ipGroups", - subscriptionId: string + subscriptionId: string, ): IpGroupsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/loadBalancers/\{loadBalancerName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", subscriptionId: string, resourceGroupName: string, - loadBalancerName: string + loadBalancerName: string, ): LoadBalancersDelete; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/loadBalancers' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/loadBalancers", - subscriptionId: string + subscriptionId: string, ): LoadBalancersListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/loadBalancers' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): LoadBalancersList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/locations/\{location\}/setLoadBalancerFrontendPublicIpAddresses' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/setLoadBalancerFrontendPublicIpAddresses", subscriptionId: string, - location: string + location: string, ): LoadBalancersSwapPublicIpAddresses; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{groupName\}/providers/Microsoft.Network/loadBalancers/\{loadBalancerName\}/backendAddressPools/\{backendPoolName\}/queryInboundNatRulePortMapping' has methods for the following verbs: post */ ( @@ -8412,14 +8412,14 @@ export interface Routes { subscriptionId: string, groupName: string, loadBalancerName: string, - backendPoolName: string + backendPoolName: string, ): LoadBalancersListInboundNatRulePortMappings; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/loadBalancers/\{loadBalancerName\}/backendAddressPools' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools", subscriptionId: string, resourceGroupName: string, - loadBalancerName: string + loadBalancerName: string, ): LoadBalancerBackendAddressPoolsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/loadBalancers/\{loadBalancerName\}/backendAddressPools/\{backendAddressPoolName\}' has methods for the following verbs: get, put, delete */ ( @@ -8427,14 +8427,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, loadBalancerName: string, - backendAddressPoolName: string + backendAddressPoolName: string, ): LoadBalancerBackendAddressPoolsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/loadBalancers/\{loadBalancerName\}/frontendIPConfigurations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations", subscriptionId: string, resourceGroupName: string, - loadBalancerName: string + loadBalancerName: string, ): LoadBalancerFrontendIPConfigurationsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/loadBalancers/\{loadBalancerName\}/frontendIPConfigurations/\{frontendIPConfigurationName\}' has methods for the following verbs: get */ ( @@ -8442,14 +8442,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, loadBalancerName: string, - frontendIPConfigurationName: string + frontendIPConfigurationName: string, ): LoadBalancerFrontendIPConfigurationsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/loadBalancers/\{loadBalancerName\}/inboundNatRules' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules", subscriptionId: string, resourceGroupName: string, - loadBalancerName: string + loadBalancerName: string, ): InboundNatRulesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/loadBalancers/\{loadBalancerName\}/inboundNatRules/\{inboundNatRuleName\}' has methods for the following verbs: delete, get, put */ ( @@ -8457,14 +8457,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, loadBalancerName: string, - inboundNatRuleName: string + inboundNatRuleName: string, ): InboundNatRulesDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/loadBalancers/\{loadBalancerName\}/loadBalancingRules' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules", subscriptionId: string, resourceGroupName: string, - loadBalancerName: string + loadBalancerName: string, ): LoadBalancerLoadBalancingRulesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/loadBalancers/\{loadBalancerName\}/loadBalancingRules/\{loadBalancingRuleName\}' has methods for the following verbs: get */ ( @@ -8472,14 +8472,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, loadBalancerName: string, - loadBalancingRuleName: string + loadBalancingRuleName: string, ): LoadBalancerLoadBalancingRulesGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/loadBalancers/\{loadBalancerName\}/outboundRules' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules", subscriptionId: string, resourceGroupName: string, - loadBalancerName: string + loadBalancerName: string, ): LoadBalancerOutboundRulesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/loadBalancers/\{loadBalancerName\}/outboundRules/\{outboundRuleName\}' has methods for the following verbs: get */ ( @@ -8487,21 +8487,21 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, loadBalancerName: string, - outboundRuleName: string + outboundRuleName: string, ): LoadBalancerOutboundRulesGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/loadBalancers/\{loadBalancerName\}/networkInterfaces' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/networkInterfaces", subscriptionId: string, resourceGroupName: string, - loadBalancerName: string + loadBalancerName: string, ): LoadBalancerNetworkInterfacesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/loadBalancers/\{loadBalancerName\}/probes' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes", subscriptionId: string, resourceGroupName: string, - loadBalancerName: string + loadBalancerName: string, ): LoadBalancerProbesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/loadBalancers/\{loadBalancerName\}/probes/\{probeName\}' has methods for the following verbs: get */ ( @@ -8509,32 +8509,32 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, loadBalancerName: string, - probeName: string + probeName: string, ): LoadBalancerProbesGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/natGateways/\{natGatewayName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}", subscriptionId: string, resourceGroupName: string, - natGatewayName: string + natGatewayName: string, ): NatGatewaysDelete; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/natGateways' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/natGateways", - subscriptionId: string + subscriptionId: string, ): NatGatewaysListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/natGateways' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): NatGatewaysList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkInterfaces/\{networkInterfaceName\}/ipConfigurations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations", subscriptionId: string, resourceGroupName: string, - networkInterfaceName: string + networkInterfaceName: string, ): NetworkInterfaceIPConfigurationsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkInterfaces/\{networkInterfaceName\}/ipConfigurations/\{ipConfigurationName\}' has methods for the following verbs: get */ ( @@ -8542,14 +8542,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkInterfaceName: string, - ipConfigurationName: string + ipConfigurationName: string, ): NetworkInterfaceIPConfigurationsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkInterfaces/\{networkInterfaceName\}/loadBalancers' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/loadBalancers", subscriptionId: string, resourceGroupName: string, - networkInterfaceName: string + networkInterfaceName: string, ): NetworkInterfaceLoadBalancersList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkInterfaces/\{networkInterfaceName\}/tapConfigurations/\{tapConfigurationName\}' has methods for the following verbs: delete, get, put */ ( @@ -8557,68 +8557,68 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkInterfaceName: string, - tapConfigurationName: string + tapConfigurationName: string, ): NetworkInterfaceTapConfigurationsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkInterfaces/\{networkInterfaceName\}/tapConfigurations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations", subscriptionId: string, resourceGroupName: string, - networkInterfaceName: string + networkInterfaceName: string, ): NetworkInterfaceTapConfigurationsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}' has methods for the following verbs: get, put, delete, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}", subscriptionId: string, resourceGroupName: string, - networkManagerName: string + networkManagerName: string, ): NetworkManagersGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/networkManagers' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagers", - subscriptionId: string + subscriptionId: string, ): NetworkManagersListBySubscription; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): NetworkManagersList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/commit' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/commit", subscriptionId: string, resourceGroupName: string, - networkManagerName: string + networkManagerName: string, ): NetworkManagerCommitsPost; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/listDeploymentStatus' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listDeploymentStatus", subscriptionId: string, resourceGroupName: string, - networkManagerName: string + networkManagerName: string, ): NetworkManagerDeploymentStatusList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/networkManagerConnections/\{networkManagerConnectionName\}' has methods for the following verbs: put, get, delete */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}", subscriptionId: string, - networkManagerConnectionName: string + networkManagerConnectionName: string, ): SubscriptionNetworkManagerConnectionsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/networkManagerConnections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections", - subscriptionId: string + subscriptionId: string, ): SubscriptionNetworkManagerConnectionsList; /** Resource for '/providers/Microsoft.Management/managementGroups/\{managementGroupId\}/providers/Microsoft.Network/networkManagerConnections/\{networkManagerConnectionName\}' has methods for the following verbs: put, get, delete */ ( path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}", managementGroupId: string, - networkManagerConnectionName: string + networkManagerConnectionName: string, ): ManagementGroupNetworkManagerConnectionsCreateOrUpdate; /** Resource for '/providers/Microsoft.Management/managementGroups/\{managementGroupId\}/providers/Microsoft.Network/networkManagerConnections' has methods for the following verbs: get */ ( path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections", - managementGroupId: string + managementGroupId: string, ): ManagementGroupNetworkManagerConnectionsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/connectivityConfigurations/\{configurationName\}' has methods for the following verbs: get, put, delete */ ( @@ -8626,14 +8626,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkManagerName: string, - configurationName: string + configurationName: string, ): ConnectivityConfigurationsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/connectivityConfigurations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/connectivityConfigurations", subscriptionId: string, resourceGroupName: string, - networkManagerName: string + networkManagerName: string, ): ConnectivityConfigurationsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/networkGroups/\{networkGroupName\}' has methods for the following verbs: get, put, delete */ ( @@ -8641,14 +8641,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkManagerName: string, - networkGroupName: string + networkGroupName: string, ): NetworkGroupsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/networkGroups' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups", subscriptionId: string, resourceGroupName: string, - networkManagerName: string + networkManagerName: string, ): NetworkGroupsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/networkGroups/\{networkGroupName\}/staticMembers/\{staticMemberName\}' has methods for the following verbs: get, put, delete */ ( @@ -8657,7 +8657,7 @@ export interface Routes { resourceGroupName: string, networkManagerName: string, networkGroupName: string, - staticMemberName: string + staticMemberName: string, ): StaticMembersGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/networkGroups/\{networkGroupName\}/staticMembers' has methods for the following verbs: get */ ( @@ -8665,7 +8665,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkManagerName: string, - networkGroupName: string + networkGroupName: string, ): StaticMembersList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/scopeConnections/\{scopeConnectionName\}' has methods for the following verbs: put, get, delete */ ( @@ -8673,21 +8673,21 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkManagerName: string, - scopeConnectionName: string + scopeConnectionName: string, ): ScopeConnectionsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/scopeConnections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/scopeConnections", subscriptionId: string, resourceGroupName: string, - networkManagerName: string + networkManagerName: string, ): ScopeConnectionsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/securityAdminConfigurations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations", subscriptionId: string, resourceGroupName: string, - networkManagerName: string + networkManagerName: string, ): SecurityAdminConfigurationsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/securityAdminConfigurations/\{configurationName\}' has methods for the following verbs: get, put, delete */ ( @@ -8695,7 +8695,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkManagerName: string, - configurationName: string + configurationName: string, ): SecurityAdminConfigurationsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/securityAdminConfigurations/\{configurationName\}/ruleCollections' has methods for the following verbs: get */ ( @@ -8703,7 +8703,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkManagerName: string, - configurationName: string + configurationName: string, ): AdminRuleCollectionsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/securityAdminConfigurations/\{configurationName\}/ruleCollections/\{ruleCollectionName\}' has methods for the following verbs: get, put, delete */ ( @@ -8712,7 +8712,7 @@ export interface Routes { resourceGroupName: string, networkManagerName: string, configurationName: string, - ruleCollectionName: string + ruleCollectionName: string, ): AdminRuleCollectionsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/securityAdminConfigurations/\{configurationName\}/ruleCollections/\{ruleCollectionName\}/rules' has methods for the following verbs: get */ ( @@ -8721,7 +8721,7 @@ export interface Routes { resourceGroupName: string, networkManagerName: string, configurationName: string, - ruleCollectionName: string + ruleCollectionName: string, ): AdminRulesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkManagers/\{networkManagerName\}/securityAdminConfigurations/\{configurationName\}/ruleCollections/\{ruleCollectionName\}/rules/\{ruleName\}' has methods for the following verbs: get, put, delete */ ( @@ -8731,43 +8731,43 @@ export interface Routes { networkManagerName: string, configurationName: string, ruleCollectionName: string, - ruleName: string + ruleName: string, ): AdminRulesGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkProfiles/\{networkProfileName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}", subscriptionId: string, resourceGroupName: string, - networkProfileName: string + networkProfileName: string, ): NetworkProfilesDelete; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/networkProfiles' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkProfiles", - subscriptionId: string + subscriptionId: string, ): NetworkProfilesListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkProfiles' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): NetworkProfilesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkSecurityGroups/\{networkSecurityGroupName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", subscriptionId: string, resourceGroupName: string, - networkSecurityGroupName: string + networkSecurityGroupName: string, ): NetworkSecurityGroupsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/networkSecurityGroups' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups", - subscriptionId: string + subscriptionId: string, ): NetworkSecurityGroupsListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkSecurityGroups' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): NetworkSecurityGroupsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkSecurityGroups/\{networkSecurityGroupName\}/securityRules/\{securityRuleName\}' has methods for the following verbs: delete, get, put */ ( @@ -8775,21 +8775,21 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkSecurityGroupName: string, - securityRuleName: string + securityRuleName: string, ): SecurityRulesDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkSecurityGroups/\{networkSecurityGroupName\}/securityRules' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules", subscriptionId: string, resourceGroupName: string, - networkSecurityGroupName: string + networkSecurityGroupName: string, ): SecurityRulesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkSecurityGroups/\{networkSecurityGroupName\}/defaultSecurityRules' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules", subscriptionId: string, resourceGroupName: string, - networkSecurityGroupName: string + networkSecurityGroupName: string, ): DefaultSecurityRulesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkSecurityGroups/\{networkSecurityGroupName\}/defaultSecurityRules/\{defaultSecurityRuleName\}' has methods for the following verbs: get */ ( @@ -8797,25 +8797,25 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkSecurityGroupName: string, - defaultSecurityRuleName: string + defaultSecurityRuleName: string, ): DefaultSecurityRulesGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkVirtualAppliances/\{networkVirtualApplianceName\}' has methods for the following verbs: delete, get, patch, put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}", subscriptionId: string, resourceGroupName: string, - networkVirtualApplianceName: string + networkVirtualApplianceName: string, ): NetworkVirtualAppliancesDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkVirtualAppliances' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): NetworkVirtualAppliancesListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/networkVirtualAppliances' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualAppliances", - subscriptionId: string + subscriptionId: string, ): NetworkVirtualAppliancesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkVirtualAppliances/\{networkVirtualApplianceName\}/virtualApplianceSites/\{siteName\}' has methods for the following verbs: delete, get, put */ ( @@ -8823,25 +8823,25 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkVirtualApplianceName: string, - siteName: string + siteName: string, ): VirtualApplianceSitesDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkVirtualAppliances/\{networkVirtualApplianceName\}/virtualApplianceSites' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/virtualApplianceSites", subscriptionId: string, resourceGroupName: string, - networkVirtualApplianceName: string + networkVirtualApplianceName: string, ): VirtualApplianceSitesList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/networkVirtualApplianceSkus' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualApplianceSkus", - subscriptionId: string + subscriptionId: string, ): VirtualApplianceSkusList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/networkVirtualApplianceSkus/\{skuName\}' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualApplianceSkus/{skuName}", subscriptionId: string, - skuName: string + skuName: string, ): VirtualApplianceSkusGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkVirtualAppliances/\{networkVirtualApplianceName\}/inboundSecurityRules/\{ruleCollectionName\}' has methods for the following verbs: put */ ( @@ -8849,109 +8849,109 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkVirtualApplianceName: string, - ruleCollectionName: string + ruleCollectionName: string, ): InboundSecurityRuleCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}' has methods for the following verbs: put, get, delete, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}", subscriptionId: string, resourceGroupName: string, - networkWatcherName: string + networkWatcherName: string, ): NetworkWatchersCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): NetworkWatchersList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/networkWatchers' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkWatchers", - subscriptionId: string + subscriptionId: string, ): NetworkWatchersListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/topology' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/topology", subscriptionId: string, resourceGroupName: string, - networkWatcherName: string + networkWatcherName: string, ): NetworkWatchersGetTopology; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/ipFlowVerify' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/ipFlowVerify", subscriptionId: string, resourceGroupName: string, - networkWatcherName: string + networkWatcherName: string, ): NetworkWatchersVerifyIPFlow; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/nextHop' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/nextHop", subscriptionId: string, resourceGroupName: string, - networkWatcherName: string + networkWatcherName: string, ): NetworkWatchersGetNextHop; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/securityGroupView' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/securityGroupView", subscriptionId: string, resourceGroupName: string, - networkWatcherName: string + networkWatcherName: string, ): NetworkWatchersGetVMSecurityRules; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/troubleshoot' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/troubleshoot", subscriptionId: string, resourceGroupName: string, - networkWatcherName: string + networkWatcherName: string, ): NetworkWatchersGetTroubleshooting; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/queryTroubleshootResult' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryTroubleshootResult", subscriptionId: string, resourceGroupName: string, - networkWatcherName: string + networkWatcherName: string, ): NetworkWatchersGetTroubleshootingResult; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/configureFlowLog' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/configureFlowLog", subscriptionId: string, resourceGroupName: string, - networkWatcherName: string + networkWatcherName: string, ): NetworkWatchersSetFlowLogConfiguration; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/queryFlowLogStatus' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryFlowLogStatus", subscriptionId: string, resourceGroupName: string, - networkWatcherName: string + networkWatcherName: string, ): NetworkWatchersGetFlowLogStatus; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/connectivityCheck' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectivityCheck", subscriptionId: string, resourceGroupName: string, - networkWatcherName: string + networkWatcherName: string, ): NetworkWatchersCheckConnectivity; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/azureReachabilityReport' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/azureReachabilityReport", subscriptionId: string, resourceGroupName: string, - networkWatcherName: string + networkWatcherName: string, ): NetworkWatchersGetAzureReachabilityReport; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/availableProvidersList' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/availableProvidersList", subscriptionId: string, resourceGroupName: string, - networkWatcherName: string + networkWatcherName: string, ): NetworkWatchersListAvailableProviders; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/networkConfigurationDiagnostic' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/networkConfigurationDiagnostic", subscriptionId: string, resourceGroupName: string, - networkWatcherName: string + networkWatcherName: string, ): NetworkWatchersGetNetworkConfigurationDiagnostic; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/packetCaptures/\{packetCaptureName\}' has methods for the following verbs: put, get, delete */ ( @@ -8959,7 +8959,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkWatcherName: string, - packetCaptureName: string + packetCaptureName: string, ): PacketCapturesCreate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/packetCaptures/\{packetCaptureName\}/stop' has methods for the following verbs: post */ ( @@ -8967,7 +8967,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkWatcherName: string, - packetCaptureName: string + packetCaptureName: string, ): PacketCapturesStop; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/packetCaptures/\{packetCaptureName\}/queryStatus' has methods for the following verbs: post */ ( @@ -8975,14 +8975,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkWatcherName: string, - packetCaptureName: string + packetCaptureName: string, ): PacketCapturesGetStatus; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/packetCaptures' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures", subscriptionId: string, resourceGroupName: string, - networkWatcherName: string + networkWatcherName: string, ): PacketCapturesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/connectionMonitors/\{connectionMonitorName\}' has methods for the following verbs: put, get, delete, patch */ ( @@ -8990,7 +8990,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkWatcherName: string, - connectionMonitorName: string + connectionMonitorName: string, ): ConnectionMonitorsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/connectionMonitors/\{connectionMonitorName\}/stop' has methods for the following verbs: post */ ( @@ -8998,7 +8998,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkWatcherName: string, - connectionMonitorName: string + connectionMonitorName: string, ): ConnectionMonitorsStop; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/connectionMonitors/\{connectionMonitorName\}/start' has methods for the following verbs: post */ ( @@ -9006,7 +9006,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkWatcherName: string, - connectionMonitorName: string + connectionMonitorName: string, ): ConnectionMonitorsStart; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/connectionMonitors/\{connectionMonitorName\}/query' has methods for the following verbs: post */ ( @@ -9014,14 +9014,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkWatcherName: string, - connectionMonitorName: string + connectionMonitorName: string, ): ConnectionMonitorsQuery; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/connectionMonitors' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors", subscriptionId: string, resourceGroupName: string, - networkWatcherName: string + networkWatcherName: string, ): ConnectionMonitorsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/flowLogs/\{flowLogName\}' has methods for the following verbs: put, patch, get, delete */ ( @@ -9029,14 +9029,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, networkWatcherName: string, - flowLogName: string + flowLogName: string, ): FlowLogsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/networkWatchers/\{networkWatcherName\}/flowLogs' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs", subscriptionId: string, resourceGroupName: string, - networkWatcherName: string + networkWatcherName: string, ): FlowLogsList; /** Resource for '/providers/Microsoft.Network/operations' has methods for the following verbs: get */ (path: "/providers/Microsoft.Network/operations"): OperationsList; @@ -9045,31 +9045,31 @@ export interface Routes { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}", subscriptionId: string, resourceGroupName: string, - privateEndpointName: string + privateEndpointName: string, ): PrivateEndpointsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/privateEndpoints' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): PrivateEndpointsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/privateEndpoints' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateEndpoints", - subscriptionId: string + subscriptionId: string, ): PrivateEndpointsListBySubscription; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/locations/\{location\}/availablePrivateEndpointTypes' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availablePrivateEndpointTypes", subscriptionId: string, - location: string + location: string, ): AvailablePrivateEndpointTypesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/locations/\{location\}/availablePrivateEndpointTypes' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availablePrivateEndpointTypes", subscriptionId: string, resourceGroupName: string, - location: string + location: string, ): AvailablePrivateEndpointTypesListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/privateEndpoints/\{privateEndpointName\}/privateDnsZoneGroups/\{privateDnsZoneGroupName\}' has methods for the following verbs: delete, get, put */ ( @@ -9077,32 +9077,32 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, privateEndpointName: string, - privateDnsZoneGroupName: string + privateDnsZoneGroupName: string, ): PrivateDnsZoneGroupsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/privateEndpoints/\{privateEndpointName\}/privateDnsZoneGroups' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}/privateDnsZoneGroups", subscriptionId: string, resourceGroupName: string, - privateEndpointName: string + privateEndpointName: string, ): PrivateDnsZoneGroupsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/privateLinkServices/\{serviceName\}' has methods for the following verbs: delete, get, put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}", subscriptionId: string, resourceGroupName: string, - serviceName: string + serviceName: string, ): PrivateLinkServicesDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/privateLinkServices' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): PrivateLinkServicesList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/privateLinkServices' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateLinkServices", - subscriptionId: string + subscriptionId: string, ): PrivateLinkServicesListBySubscription; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/privateLinkServices/\{serviceName\}/privateEndpointConnections/\{peConnectionName\}' has methods for the following verbs: get, put, delete */ ( @@ -9110,76 +9110,76 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, serviceName: string, - peConnectionName: string + peConnectionName: string, ): PrivateLinkServicesGetPrivateEndpointConnection; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/privateLinkServices/\{serviceName\}/privateEndpointConnections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections", subscriptionId: string, resourceGroupName: string, - serviceName: string + serviceName: string, ): PrivateLinkServicesListPrivateEndpointConnections; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/locations/\{location\}/checkPrivateLinkServiceVisibility' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility", subscriptionId: string, - location: string + location: string, ): PrivateLinkServicesCheckPrivateLinkServiceVisibility; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/locations/\{location\}/checkPrivateLinkServiceVisibility' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility", subscriptionId: string, resourceGroupName: string, - location: string + location: string, ): PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/locations/\{location\}/autoApprovedPrivateLinkServices' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices", subscriptionId: string, - location: string + location: string, ): PrivateLinkServicesListAutoApprovedPrivateLinkServices; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/locations/\{location\}/autoApprovedPrivateLinkServices' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices", subscriptionId: string, resourceGroupName: string, - location: string + location: string, ): PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/publicIPPrefixes/\{publicIpPrefixName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}", subscriptionId: string, resourceGroupName: string, - publicIpPrefixName: string + publicIpPrefixName: string, ): PublicIPPrefixesDelete; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/publicIPPrefixes' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPPrefixes", - subscriptionId: string + subscriptionId: string, ): PublicIPPrefixesListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/publicIPPrefixes' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): PublicIPPrefixesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/routeFilters/\{routeFilterName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}", subscriptionId: string, resourceGroupName: string, - routeFilterName: string + routeFilterName: string, ): RouteFiltersDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/routeFilters' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): RouteFiltersListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/routeFilters' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeFilters", - subscriptionId: string + subscriptionId: string, ): RouteFiltersList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/routeFilters/\{routeFilterName\}/routeFilterRules/\{ruleName\}' has methods for the following verbs: delete, get, put */ ( @@ -9187,32 +9187,32 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, routeFilterName: string, - ruleName: string + ruleName: string, ): RouteFilterRulesDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/routeFilters/\{routeFilterName\}/routeFilterRules' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules", subscriptionId: string, resourceGroupName: string, - routeFilterName: string + routeFilterName: string, ): RouteFilterRulesListByRouteFilter; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/routeTables/\{routeTableName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}", subscriptionId: string, resourceGroupName: string, - routeTableName: string + routeTableName: string, ): RouteTablesDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/routeTables' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): RouteTablesList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/routeTables' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeTables", - subscriptionId: string + subscriptionId: string, ): RouteTablesListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/routeTables/\{routeTableName\}/routes/\{routeName\}' has methods for the following verbs: delete, get, put */ ( @@ -9220,55 +9220,55 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, routeTableName: string, - routeName: string + routeName: string, ): RoutesDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/routeTables/\{routeTableName\}/routes' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes", subscriptionId: string, resourceGroupName: string, - routeTableName: string + routeTableName: string, ): RoutesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/securityPartnerProviders/\{securityPartnerProviderName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}", subscriptionId: string, resourceGroupName: string, - securityPartnerProviderName: string + securityPartnerProviderName: string, ): SecurityPartnerProvidersDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/securityPartnerProviders' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): SecurityPartnerProvidersListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/securityPartnerProviders' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/securityPartnerProviders", - subscriptionId: string + subscriptionId: string, ): SecurityPartnerProvidersList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/bgpServiceCommunities' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/bgpServiceCommunities", - subscriptionId: string + subscriptionId: string, ): BgpServiceCommunitiesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/serviceEndpointPolicies/\{serviceEndpointPolicyName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}", subscriptionId: string, resourceGroupName: string, - serviceEndpointPolicyName: string + serviceEndpointPolicyName: string, ): ServiceEndpointPoliciesDelete; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/ServiceEndpointPolicies' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ServiceEndpointPolicies", - subscriptionId: string + subscriptionId: string, ): ServiceEndpointPoliciesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/serviceEndpointPolicies' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): ServiceEndpointPoliciesListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/serviceEndpointPolicies/\{serviceEndpointPolicyName\}/serviceEndpointPolicyDefinitions/\{serviceEndpointPolicyDefinitionName\}' has methods for the following verbs: delete, get, put */ ( @@ -9276,71 +9276,71 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, serviceEndpointPolicyName: string, - serviceEndpointPolicyDefinitionName: string + serviceEndpointPolicyDefinitionName: string, ): ServiceEndpointPolicyDefinitionsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/serviceEndpointPolicies/\{serviceEndpointPolicyName\}/serviceEndpointPolicyDefinitions' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions", subscriptionId: string, resourceGroupName: string, - serviceEndpointPolicyName: string + serviceEndpointPolicyName: string, ): ServiceEndpointPolicyDefinitionsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/locations/\{location\}/serviceTags' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/serviceTags", subscriptionId: string, - location: string + location: string, ): ServiceTagsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/locations/\{location\}/serviceTagDetails' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/serviceTagDetails", subscriptionId: string, - location: string + location: string, ): ServiceTagInformationList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/locations/\{location\}/usages' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/usages", subscriptionId: string, - location: string + location: string, ): UsagesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworks/\{virtualNetworkName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId: string, resourceGroupName: string, - virtualNetworkName: string + virtualNetworkName: string, ): VirtualNetworksDelete; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/virtualNetworks' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks", - subscriptionId: string + subscriptionId: string, ): VirtualNetworksListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworks' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): VirtualNetworksList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworks/\{virtualNetworkName\}/CheckIPAddressAvailability' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/CheckIPAddressAvailability", subscriptionId: string, resourceGroupName: string, - virtualNetworkName: string + virtualNetworkName: string, ): VirtualNetworksCheckIPAddressAvailability; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworks/\{virtualNetworkName\}/usages' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/usages", subscriptionId: string, resourceGroupName: string, - virtualNetworkName: string + virtualNetworkName: string, ): VirtualNetworksListUsage; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworks/\{virtualNetworkName\}/ddosProtectionStatus' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/ddosProtectionStatus", subscriptionId: string, resourceGroupName: string, - virtualNetworkName: string + virtualNetworkName: string, ): VirtualNetworksListDdosProtectionStatus; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworks/\{virtualNetworkName\}/subnets/\{subnetName\}' has methods for the following verbs: delete, get, put */ ( @@ -9348,7 +9348,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, virtualNetworkName: string, - subnetName: string + subnetName: string, ): SubnetsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworks/\{virtualNetworkName\}/subnets/\{subnetName\}/PrepareNetworkPolicies' has methods for the following verbs: post */ ( @@ -9356,7 +9356,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, virtualNetworkName: string, - subnetName: string + subnetName: string, ): SubnetsPrepareNetworkPolicies; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworks/\{virtualNetworkName\}/subnets/\{subnetName\}/UnprepareNetworkPolicies' has methods for the following verbs: post */ ( @@ -9364,14 +9364,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, virtualNetworkName: string, - subnetName: string + subnetName: string, ): SubnetsUnprepareNetworkPolicies; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworks/\{virtualNetworkName\}/subnets' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets", subscriptionId: string, resourceGroupName: string, - virtualNetworkName: string + virtualNetworkName: string, ): SubnetsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworks/\{virtualNetworkName\}/subnets/\{subnetName\}/ResourceNavigationLinks' has methods for the following verbs: get */ ( @@ -9379,7 +9379,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, virtualNetworkName: string, - subnetName: string + subnetName: string, ): ResourceNavigationLinksList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworks/\{virtualNetworkName\}/subnets/\{subnetName\}/ServiceAssociationLinks' has methods for the following verbs: get */ ( @@ -9387,7 +9387,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, virtualNetworkName: string, - subnetName: string + subnetName: string, ): ServiceAssociationLinksList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworks/\{virtualNetworkName\}/virtualNetworkPeerings/\{virtualNetworkPeeringName\}' has methods for the following verbs: delete, get, put */ ( @@ -9395,214 +9395,214 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, virtualNetworkName: string, - virtualNetworkPeeringName: string + virtualNetworkPeeringName: string, ): VirtualNetworkPeeringsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworks/\{virtualNetworkName\}/virtualNetworkPeerings' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings", subscriptionId: string, resourceGroupName: string, - virtualNetworkName: string + virtualNetworkName: string, ): VirtualNetworkPeeringsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}' has methods for the following verbs: put, get, delete, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewaysCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): VirtualNetworkGatewaysList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/connections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/connections", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewaysListConnections; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/reset' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/reset", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewaysReset; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/resetvpnclientsharedkey' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/resetvpnclientsharedkey", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewaysResetVpnClientSharedKey; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/generatevpnclientpackage' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnclientpackage", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewaysGeneratevpnclientpackage; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/generatevpnprofile' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnprofile", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewaysGenerateVpnProfile; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/getvpnprofilepackageurl' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnprofilepackageurl", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewaysGetVpnProfilePackageUrl; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/getBgpPeerStatus' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getBgpPeerStatus", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewaysGetBgpPeerStatus; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/supportedvpndevices' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/supportedvpndevices", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewaysSupportedVpnDevices; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/getLearnedRoutes' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewaysGetLearnedRoutes; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/getAdvertisedRoutes' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getAdvertisedRoutes", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewaysGetAdvertisedRoutes; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/setvpnclientipsecparameters' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/setvpnclientipsecparameters", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewaysSetVpnclientIpsecParameters; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/getvpnclientipsecparameters' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnclientipsecparameters", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewaysGetVpnclientIpsecParameters; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/connections/\{virtualNetworkGatewayConnectionName\}/vpndeviceconfigurationscript' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/vpndeviceconfigurationscript", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayConnectionName: string + virtualNetworkGatewayConnectionName: string, ): VirtualNetworkGatewaysVpnDeviceConfigurationScript; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/startPacketCapture' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/startPacketCapture", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewaysStartPacketCapture; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/stopPacketCapture' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/stopPacketCapture", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewaysStopPacketCapture; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/getVpnClientConnectionHealth' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getVpnClientConnectionHealth", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewaysGetVpnclientConnectionHealth; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/disconnectVirtualNetworkGatewayVpnConnections' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/disconnectVirtualNetworkGatewayVpnConnections", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnections; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/connections/\{virtualNetworkGatewayConnectionName\}' has methods for the following verbs: put, get, delete, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayConnectionName: string + virtualNetworkGatewayConnectionName: string, ): VirtualNetworkGatewayConnectionsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/connections/\{virtualNetworkGatewayConnectionName\}/sharedkey' has methods for the following verbs: put, get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayConnectionName: string + virtualNetworkGatewayConnectionName: string, ): VirtualNetworkGatewayConnectionsSetSharedKey; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/connections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): VirtualNetworkGatewayConnectionsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/connections/\{virtualNetworkGatewayConnectionName\}/sharedkey/reset' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey/reset", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayConnectionName: string + virtualNetworkGatewayConnectionName: string, ): VirtualNetworkGatewayConnectionsResetSharedKey; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/connections/\{virtualNetworkGatewayConnectionName\}/startPacketCapture' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/startPacketCapture", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayConnectionName: string + virtualNetworkGatewayConnectionName: string, ): VirtualNetworkGatewayConnectionsStartPacketCapture; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/connections/\{virtualNetworkGatewayConnectionName\}/stopPacketCapture' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/stopPacketCapture", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayConnectionName: string + virtualNetworkGatewayConnectionName: string, ): VirtualNetworkGatewayConnectionsStopPacketCapture; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/connections/\{virtualNetworkGatewayConnectionName\}/getikesas' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/getikesas", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayConnectionName: string + virtualNetworkGatewayConnectionName: string, ): VirtualNetworkGatewayConnectionsGetIkeSas; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/connections/\{virtualNetworkGatewayConnectionName\}/resetconnection' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/resetconnection", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayConnectionName: string + virtualNetworkGatewayConnectionName: string, ): VirtualNetworkGatewayConnectionsResetConnection; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/localNetworkGateways/\{localNetworkGatewayName\}' has methods for the following verbs: put, get, delete, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}", subscriptionId: string, resourceGroupName: string, - localNetworkGatewayName: string + localNetworkGatewayName: string, ): LocalNetworkGatewaysCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/localNetworkGateways' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): LocalNetworkGatewaysList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/natRules/\{natRuleName\}' has methods for the following verbs: get, put, delete */ ( @@ -9610,50 +9610,50 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, virtualNetworkGatewayName: string, - natRuleName: string + natRuleName: string, ): VirtualNetworkGatewayNatRulesGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkGateways/\{virtualNetworkGatewayName\}/natRules' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/natRules", subscriptionId: string, resourceGroupName: string, - virtualNetworkGatewayName: string + virtualNetworkGatewayName: string, ): VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkTaps/\{tapName\}' has methods for the following verbs: delete, get, put, patch */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}", subscriptionId: string, resourceGroupName: string, - tapName: string + tapName: string, ): VirtualNetworkTapsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/virtualNetworkTaps' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworkTaps", - subscriptionId: string + subscriptionId: string, ): VirtualNetworkTapsListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualNetworkTaps' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): VirtualNetworkTapsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualRouters/\{virtualRouterName\}' has methods for the following verbs: delete, get, put */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}", subscriptionId: string, resourceGroupName: string, - virtualRouterName: string + virtualRouterName: string, ): VirtualRoutersDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualRouters' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): VirtualRoutersListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/virtualRouters' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualRouters", - subscriptionId: string + subscriptionId: string, ): VirtualRoutersList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualRouters/\{virtualRouterName\}/peerings/\{peeringName\}' has methods for the following verbs: delete, get, put */ ( @@ -9661,50 +9661,50 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, virtualRouterName: string, - peeringName: string + peeringName: string, ): VirtualRouterPeeringsDelete; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualRouters/\{virtualRouterName\}/peerings' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings", subscriptionId: string, resourceGroupName: string, - virtualRouterName: string + virtualRouterName: string, ): VirtualRouterPeeringsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualWans/\{VirtualWANName\}' has methods for the following verbs: get, put, patch, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}", subscriptionId: string, resourceGroupName: string, - VirtualWANName: string + VirtualWANName: string, ): VirtualWansGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualWans' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): VirtualWansListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/virtualWans' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualWans", - subscriptionId: string + subscriptionId: string, ): VirtualWansList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnSites/\{vpnSiteName\}' has methods for the following verbs: get, put, patch, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}", subscriptionId: string, resourceGroupName: string, - vpnSiteName: string + vpnSiteName: string, ): VpnSitesGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnSites' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): VpnSitesListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/vpnSites' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnSites", - subscriptionId: string + subscriptionId: string, ): VpnSitesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnSites/\{vpnSiteName\}/vpnSiteLinks/\{vpnSiteLinkName\}' has methods for the following verbs: get */ ( @@ -9712,39 +9712,39 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vpnSiteName: string, - vpnSiteLinkName: string + vpnSiteLinkName: string, ): VpnSiteLinksGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnSites/\{vpnSiteName\}/vpnSiteLinks' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}/vpnSiteLinks", subscriptionId: string, resourceGroupName: string, - vpnSiteName: string + vpnSiteName: string, ): VpnSiteLinksListByVpnSite; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualWans/\{virtualWANName\}/vpnConfiguration' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnConfiguration", subscriptionId: string, resourceGroupName: string, - virtualWANName: string + virtualWANName: string, ): VpnSitesConfigurationDownload; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnServerConfigurations/\{vpnServerConfigurationName\}' has methods for the following verbs: get, put, patch, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}", subscriptionId: string, resourceGroupName: string, - vpnServerConfigurationName: string + vpnServerConfigurationName: string, ): VpnServerConfigurationsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnServerConfigurations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): VpnServerConfigurationsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/vpnServerConfigurations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnServerConfigurations", - subscriptionId: string + subscriptionId: string, ): VpnServerConfigurationsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnServerConfigurations/\{vpnServerConfigurationName\}/configurationPolicyGroups/\{configurationPolicyGroupName\}' has methods for the following verbs: put, delete, get */ ( @@ -9752,53 +9752,53 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, vpnServerConfigurationName: string, - configurationPolicyGroupName: string + configurationPolicyGroupName: string, ): ConfigurationPolicyGroupsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnServerConfigurations/\{vpnServerConfigurationName\}/configurationPolicyGroups' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/configurationPolicyGroups", subscriptionId: string, resourceGroupName: string, - vpnServerConfigurationName: string + vpnServerConfigurationName: string, ): ConfigurationPolicyGroupsListByVpnServerConfiguration; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}' has methods for the following verbs: get, put, patch, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}", subscriptionId: string, resourceGroupName: string, - virtualHubName: string + virtualHubName: string, ): VirtualHubsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): VirtualHubsListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/virtualHubs' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualHubs", - subscriptionId: string + subscriptionId: string, ): VirtualHubsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}/effectiveRoutes' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/effectiveRoutes", subscriptionId: string, resourceGroupName: string, - virtualHubName: string + virtualHubName: string, ): VirtualHubsGetEffectiveVirtualHubRoutes; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}/inboundRoutes' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/inboundRoutes", subscriptionId: string, resourceGroupName: string, - virtualHubName: string + virtualHubName: string, ): VirtualHubsGetInboundRoutes; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}/outboundRoutes' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/outboundRoutes", subscriptionId: string, resourceGroupName: string, - virtualHubName: string + virtualHubName: string, ): VirtualHubsGetOutboundRoutes; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}/routeMaps/\{routeMapName\}' has methods for the following verbs: get, put, delete */ ( @@ -9806,14 +9806,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, virtualHubName: string, - routeMapName: string + routeMapName: string, ): RouteMapsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}/routeMaps' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeMaps", subscriptionId: string, resourceGroupName: string, - virtualHubName: string + virtualHubName: string, ): RouteMapsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}/hubVirtualNetworkConnections/\{connectionName\}' has methods for the following verbs: put, delete, get */ ( @@ -9821,53 +9821,53 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, virtualHubName: string, - connectionName: string + connectionName: string, ): HubVirtualNetworkConnectionsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}/hubVirtualNetworkConnections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections", subscriptionId: string, resourceGroupName: string, - virtualHubName: string + virtualHubName: string, ): HubVirtualNetworkConnectionsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnGateways/\{gatewayName\}' has methods for the following verbs: get, put, patch, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}", subscriptionId: string, resourceGroupName: string, - gatewayName: string + gatewayName: string, ): VpnGatewaysGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnGateways/\{gatewayName\}/reset' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/reset", subscriptionId: string, resourceGroupName: string, - gatewayName: string + gatewayName: string, ): VpnGatewaysReset; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnGateways/\{gatewayName\}/startpacketcapture' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/startpacketcapture", subscriptionId: string, resourceGroupName: string, - gatewayName: string + gatewayName: string, ): VpnGatewaysStartPacketCapture; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnGateways/\{gatewayName\}/stoppacketcapture' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/stoppacketcapture", subscriptionId: string, resourceGroupName: string, - gatewayName: string + gatewayName: string, ): VpnGatewaysStopPacketCapture; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnGateways' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): VpnGatewaysListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/vpnGateways' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnGateways", - subscriptionId: string + subscriptionId: string, ): VpnGatewaysList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnGateways/\{gatewayName\}/vpnConnections/\{connectionName\}/vpnLinkConnections/\{linkConnectionName\}/resetconnection' has methods for the following verbs: post */ ( @@ -9876,7 +9876,7 @@ export interface Routes { resourceGroupName: string, gatewayName: string, connectionName: string, - linkConnectionName: string + linkConnectionName: string, ): VpnLinkConnectionsResetConnection; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnGateways/\{gatewayName\}/vpnConnections/\{connectionName\}/vpnLinkConnections/\{linkConnectionName\}/getikesas' has methods for the following verbs: post */ ( @@ -9885,7 +9885,7 @@ export interface Routes { resourceGroupName: string, gatewayName: string, connectionName: string, - linkConnectionName: string + linkConnectionName: string, ): VpnLinkConnectionsGetIkeSas; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnGateways/\{gatewayName\}/vpnConnections/\{connectionName\}/vpnLinkConnections' has methods for the following verbs: get */ ( @@ -9893,7 +9893,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, gatewayName: string, - connectionName: string + connectionName: string, ): VpnLinkConnectionsListByVpnConnection; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnGateways/\{gatewayName\}/vpnConnections/\{connectionName\}' has methods for the following verbs: get, put, delete */ ( @@ -9901,7 +9901,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, gatewayName: string, - connectionName: string + connectionName: string, ): VpnConnectionsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnGateways/\{gatewayName\}/vpnConnections/\{vpnConnectionName\}/startpacketcapture' has methods for the following verbs: post */ ( @@ -9909,7 +9909,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, gatewayName: string, - vpnConnectionName: string + vpnConnectionName: string, ): VpnConnectionsStartPacketCapture; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnGateways/\{gatewayName\}/vpnConnections/\{vpnConnectionName\}/stoppacketcapture' has methods for the following verbs: post */ ( @@ -9917,14 +9917,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, gatewayName: string, - vpnConnectionName: string + vpnConnectionName: string, ): VpnConnectionsStopPacketCapture; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnGateways/\{gatewayName\}/vpnConnections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections", subscriptionId: string, resourceGroupName: string, - gatewayName: string + gatewayName: string, ): VpnConnectionsListByVpnGateway; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnGateways/\{gatewayName\}/vpnConnections/\{connectionName\}/vpnLinkConnections/\{linkConnectionName\}' has methods for the following verbs: get */ ( @@ -9933,7 +9933,7 @@ export interface Routes { resourceGroupName: string, gatewayName: string, connectionName: string, - linkConnectionName: string + linkConnectionName: string, ): VpnSiteLinkConnectionsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnGateways/\{gatewayName\}/natRules/\{natRuleName\}' has methods for the following verbs: get, put, delete */ ( @@ -9941,74 +9941,74 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, gatewayName: string, - natRuleName: string + natRuleName: string, ): NatRulesGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/vpnGateways/\{gatewayName\}/natRules' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/natRules", subscriptionId: string, resourceGroupName: string, - gatewayName: string + gatewayName: string, ): NatRulesListByVpnGateway; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/p2svpnGateways/\{gatewayName\}' has methods for the following verbs: get, put, patch, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}", subscriptionId: string, resourceGroupName: string, - gatewayName: string + gatewayName: string, ): P2SVpnGatewaysGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/p2svpnGateways' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): P2SVpnGatewaysListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/p2svpnGateways' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/p2svpnGateways", - subscriptionId: string + subscriptionId: string, ): P2SVpnGatewaysList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/p2svpnGateways/\{gatewayName\}/reset' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/reset", subscriptionId: string, resourceGroupName: string, - gatewayName: string + gatewayName: string, ): P2SVpnGatewaysReset; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/p2svpnGateways/\{gatewayName\}/generatevpnprofile' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/generatevpnprofile", subscriptionId: string, resourceGroupName: string, - gatewayName: string + gatewayName: string, ): P2SVpnGatewaysGenerateVpnProfile; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/p2svpnGateways/\{gatewayName\}/getP2sVpnConnectionHealth' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/getP2sVpnConnectionHealth", subscriptionId: string, resourceGroupName: string, - gatewayName: string + gatewayName: string, ): P2SVpnGatewaysGetP2SVpnConnectionHealth; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/p2svpnGateways/\{gatewayName\}/getP2sVpnConnectionHealthDetailed' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/getP2sVpnConnectionHealthDetailed", subscriptionId: string, resourceGroupName: string, - gatewayName: string + gatewayName: string, ): P2SVpnGatewaysGetP2SVpnConnectionHealthDetailed; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/p2svpnGateways/\{p2sVpnGatewayName\}/disconnectP2sVpnConnections' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{p2sVpnGatewayName}/disconnectP2sVpnConnections", subscriptionId: string, resourceGroupName: string, - p2sVpnGatewayName: string + p2sVpnGatewayName: string, ): P2SVpnGatewaysDisconnectP2SVpnConnections; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualWans/\{virtualWANName\}/vpnServerConfigurations' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnServerConfigurations", subscriptionId: string, resourceGroupName: string, - virtualWANName: string + virtualWANName: string, ): VpnServerConfigurationsAssociatedWithVirtualWanList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}/routeTables/\{routeTableName\}' has methods for the following verbs: get, put, delete */ ( @@ -10016,32 +10016,32 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, virtualHubName: string, - routeTableName: string + routeTableName: string, ): VirtualHubRouteTableV2SGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}/routeTables' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeTables", subscriptionId: string, resourceGroupName: string, - virtualHubName: string + virtualHubName: string, ): VirtualHubRouteTableV2SList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/expressRouteGateways' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteGateways", - subscriptionId: string + subscriptionId: string, ): ExpressRouteGatewaysListBySubscription; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteGateways' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): ExpressRouteGatewaysListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteGateways/\{expressRouteGatewayName\}' has methods for the following verbs: put, patch, get, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}", subscriptionId: string, resourceGroupName: string, - expressRouteGatewayName: string + expressRouteGatewayName: string, ): ExpressRouteGatewaysCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteGateways/\{expressRouteGatewayName\}/expressRouteConnections/\{connectionName\}' has methods for the following verbs: put, get, delete */ ( @@ -10049,14 +10049,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, expressRouteGatewayName: string, - connectionName: string + connectionName: string, ): ExpressRouteConnectionsCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/expressRouteGateways/\{expressRouteGatewayName\}/expressRouteConnections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections", subscriptionId: string, resourceGroupName: string, - expressRouteGatewayName: string + expressRouteGatewayName: string, ): ExpressRouteConnectionsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}/bgpConnections/\{connectionName\}' has methods for the following verbs: get, put, delete */ ( @@ -10064,14 +10064,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, virtualHubName: string, - connectionName: string + connectionName: string, ): VirtualHubBgpConnectionGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}/bgpConnections' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/bgpConnections", subscriptionId: string, resourceGroupName: string, - virtualHubName: string + virtualHubName: string, ): VirtualHubBgpConnectionsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{hubName\}/bgpConnections/\{connectionName\}/learnedRoutes' has methods for the following verbs: post */ ( @@ -10079,7 +10079,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, hubName: string, - connectionName: string + connectionName: string, ): VirtualHubBgpConnectionsListLearnedRoutes; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{hubName\}/bgpConnections/\{connectionName\}/advertisedRoutes' has methods for the following verbs: post */ ( @@ -10087,7 +10087,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, hubName: string, - connectionName: string + connectionName: string, ): VirtualHubBgpConnectionsListAdvertisedRoutes; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}/ipConfigurations/\{ipConfigName\}' has methods for the following verbs: get, put, delete */ ( @@ -10095,14 +10095,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, virtualHubName: string, - ipConfigName: string + ipConfigName: string, ): VirtualHubIpConfigurationGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}/ipConfigurations' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/ipConfigurations", subscriptionId: string, resourceGroupName: string, - virtualHubName: string + virtualHubName: string, ): VirtualHubIpConfigurationList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}/hubRouteTables/\{routeTableName\}' has methods for the following verbs: put, get, delete */ ( @@ -10110,14 +10110,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, virtualHubName: string, - routeTableName: string + routeTableName: string, ): HubRouteTablesCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}/hubRouteTables' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubRouteTables", subscriptionId: string, resourceGroupName: string, - virtualHubName: string + virtualHubName: string, ): HubRouteTablesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}/routingIntent/\{routingIntentName\}' has methods for the following verbs: put, get, delete */ ( @@ -10125,32 +10125,32 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, virtualHubName: string, - routingIntentName: string + routingIntentName: string, ): RoutingIntentCreateOrUpdate; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/virtualHubs/\{virtualHubName\}/routingIntent' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routingIntent", subscriptionId: string, resourceGroupName: string, - virtualHubName: string + virtualHubName: string, ): RoutingIntentList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): WebApplicationFirewallPoliciesList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies", - subscriptionId: string + subscriptionId: string, ): WebApplicationFirewallPoliciesListAll; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/\{policyName\}' has methods for the following verbs: get, put, delete */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}", subscriptionId: string, resourceGroupName: string, - policyName: string + policyName: string, ): WebApplicationFirewallPoliciesGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{groupName\}/providers/Microsoft.Compute/cloudServices/\{resourceName\}/providers/Microsoft.Network/cloudServiceSlots/\{singletonResource\}' has methods for the following verbs: get, put */ ( @@ -10158,14 +10158,14 @@ export interface Routes { subscriptionId: string, groupName: string, resourceName: string, - singletonResource: "swap" + singletonResource: "swap", ): VipSwapGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{groupName\}/providers/Microsoft.Compute/cloudServices/\{resourceName\}/providers/Microsoft.Network/cloudServiceSlots' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Compute/cloudServices/{resourceName}/providers/Microsoft.Network/cloudServiceSlots", subscriptionId: string, groupName: string, - resourceName: string + resourceName: string, ): VipSwapList; } diff --git a/sdk/network/arm-network-rest/src/isUnexpected.ts b/sdk/network/arm-network-rest/src/isUnexpected.ts index 953dc7b59ccc..665d0234635d 100644 --- a/sdk/network/arm-network-rest/src/isUnexpected.ts +++ b/sdk/network/arm-network-rest/src/isUnexpected.ts @@ -2941,2970 +2941,2970 @@ export function isUnexpected( | ApplicationGatewaysDelete200Response | ApplicationGatewaysDelete202Response | ApplicationGatewaysDelete204Response - | ApplicationGatewaysDeleteDefaultResponse + | ApplicationGatewaysDeleteDefaultResponse, ): response is ApplicationGatewaysDeleteDefaultResponse; export function isUnexpected( - response: ApplicationGatewaysGet200Response | ApplicationGatewaysGetDefaultResponse + response: ApplicationGatewaysGet200Response | ApplicationGatewaysGetDefaultResponse, ): response is ApplicationGatewaysGetDefaultResponse; export function isUnexpected( response: | ApplicationGatewaysCreateOrUpdate200Response | ApplicationGatewaysCreateOrUpdate201Response - | ApplicationGatewaysCreateOrUpdateDefaultResponse + | ApplicationGatewaysCreateOrUpdateDefaultResponse, ): response is ApplicationGatewaysCreateOrUpdateDefaultResponse; export function isUnexpected( - response: ApplicationGatewaysUpdateTags200Response | ApplicationGatewaysUpdateTagsDefaultResponse + response: ApplicationGatewaysUpdateTags200Response | ApplicationGatewaysUpdateTagsDefaultResponse, ): response is ApplicationGatewaysUpdateTagsDefaultResponse; export function isUnexpected( - response: ApplicationGatewaysList200Response | ApplicationGatewaysListDefaultResponse + response: ApplicationGatewaysList200Response | ApplicationGatewaysListDefaultResponse, ): response is ApplicationGatewaysListDefaultResponse; export function isUnexpected( - response: ApplicationGatewaysListAll200Response | ApplicationGatewaysListAllDefaultResponse + response: ApplicationGatewaysListAll200Response | ApplicationGatewaysListAllDefaultResponse, ): response is ApplicationGatewaysListAllDefaultResponse; export function isUnexpected( response: | ApplicationGatewaysStart200Response | ApplicationGatewaysStart202Response - | ApplicationGatewaysStartDefaultResponse + | ApplicationGatewaysStartDefaultResponse, ): response is ApplicationGatewaysStartDefaultResponse; export function isUnexpected( response: | ApplicationGatewaysStop200Response | ApplicationGatewaysStop202Response - | ApplicationGatewaysStopDefaultResponse + | ApplicationGatewaysStopDefaultResponse, ): response is ApplicationGatewaysStopDefaultResponse; export function isUnexpected( response: | ApplicationGatewaysBackendHealth200Response | ApplicationGatewaysBackendHealth202Response - | ApplicationGatewaysBackendHealthDefaultResponse + | ApplicationGatewaysBackendHealthDefaultResponse, ): response is ApplicationGatewaysBackendHealthDefaultResponse; export function isUnexpected( response: | ApplicationGatewaysBackendHealthOnDemand200Response | ApplicationGatewaysBackendHealthOnDemand202Response - | ApplicationGatewaysBackendHealthOnDemandDefaultResponse + | ApplicationGatewaysBackendHealthOnDemandDefaultResponse, ): response is ApplicationGatewaysBackendHealthOnDemandDefaultResponse; export function isUnexpected( response: | ApplicationGatewaysListAvailableServerVariables200Response - | ApplicationGatewaysListAvailableServerVariablesDefaultResponse + | ApplicationGatewaysListAvailableServerVariablesDefaultResponse, ): response is ApplicationGatewaysListAvailableServerVariablesDefaultResponse; export function isUnexpected( response: | ApplicationGatewaysListAvailableRequestHeaders200Response - | ApplicationGatewaysListAvailableRequestHeadersDefaultResponse + | ApplicationGatewaysListAvailableRequestHeadersDefaultResponse, ): response is ApplicationGatewaysListAvailableRequestHeadersDefaultResponse; export function isUnexpected( response: | ApplicationGatewaysListAvailableResponseHeaders200Response - | ApplicationGatewaysListAvailableResponseHeadersDefaultResponse + | ApplicationGatewaysListAvailableResponseHeadersDefaultResponse, ): response is ApplicationGatewaysListAvailableResponseHeadersDefaultResponse; export function isUnexpected( response: | ApplicationGatewaysListAvailableWafRuleSets200Response - | ApplicationGatewaysListAvailableWafRuleSetsDefaultResponse + | ApplicationGatewaysListAvailableWafRuleSetsDefaultResponse, ): response is ApplicationGatewaysListAvailableWafRuleSetsDefaultResponse; export function isUnexpected( response: | ApplicationGatewaysListAvailableSslOptions200Response - | ApplicationGatewaysListAvailableSslOptionsDefaultResponse + | ApplicationGatewaysListAvailableSslOptionsDefaultResponse, ): response is ApplicationGatewaysListAvailableSslOptionsDefaultResponse; export function isUnexpected( response: | ApplicationGatewaysListAvailableSslPredefinedPolicies200Response - | ApplicationGatewaysListAvailableSslPredefinedPoliciesDefaultResponse + | ApplicationGatewaysListAvailableSslPredefinedPoliciesDefaultResponse, ): response is ApplicationGatewaysListAvailableSslPredefinedPoliciesDefaultResponse; export function isUnexpected( response: | ApplicationGatewaysGetSslPredefinedPolicy200Response - | ApplicationGatewaysGetSslPredefinedPolicyDefaultResponse + | ApplicationGatewaysGetSslPredefinedPolicyDefaultResponse, ): response is ApplicationGatewaysGetSslPredefinedPolicyDefaultResponse; export function isUnexpected( response: | ApplicationGatewayPrivateLinkResourcesList200Response - | ApplicationGatewayPrivateLinkResourcesListDefaultResponse + | ApplicationGatewayPrivateLinkResourcesListDefaultResponse, ): response is ApplicationGatewayPrivateLinkResourcesListDefaultResponse; export function isUnexpected( response: | ApplicationGatewayPrivateEndpointConnectionsDelete200Response | ApplicationGatewayPrivateEndpointConnectionsDelete202Response | ApplicationGatewayPrivateEndpointConnectionsDelete204Response - | ApplicationGatewayPrivateEndpointConnectionsDeleteDefaultResponse + | ApplicationGatewayPrivateEndpointConnectionsDeleteDefaultResponse, ): response is ApplicationGatewayPrivateEndpointConnectionsDeleteDefaultResponse; export function isUnexpected( response: | ApplicationGatewayPrivateEndpointConnectionsUpdate200Response | ApplicationGatewayPrivateEndpointConnectionsUpdate202Response - | ApplicationGatewayPrivateEndpointConnectionsUpdateDefaultResponse + | ApplicationGatewayPrivateEndpointConnectionsUpdateDefaultResponse, ): response is ApplicationGatewayPrivateEndpointConnectionsUpdateDefaultResponse; export function isUnexpected( response: | ApplicationGatewayPrivateEndpointConnectionsGet200Response - | ApplicationGatewayPrivateEndpointConnectionsGetDefaultResponse + | ApplicationGatewayPrivateEndpointConnectionsGetDefaultResponse, ): response is ApplicationGatewayPrivateEndpointConnectionsGetDefaultResponse; export function isUnexpected( response: | ApplicationGatewayPrivateEndpointConnectionsList200Response - | ApplicationGatewayPrivateEndpointConnectionsListDefaultResponse + | ApplicationGatewayPrivateEndpointConnectionsListDefaultResponse, ): response is ApplicationGatewayPrivateEndpointConnectionsListDefaultResponse; export function isUnexpected( response: | ApplicationGatewayWafDynamicManifestsDefaultGet200Response - | ApplicationGatewayWafDynamicManifestsDefaultGetDefaultResponse + | ApplicationGatewayWafDynamicManifestsDefaultGetDefaultResponse, ): response is ApplicationGatewayWafDynamicManifestsDefaultGetDefaultResponse; export function isUnexpected( response: | ApplicationGatewayWafDynamicManifestsGet200Response - | ApplicationGatewayWafDynamicManifestsGetDefaultResponse + | ApplicationGatewayWafDynamicManifestsGetDefaultResponse, ): response is ApplicationGatewayWafDynamicManifestsGetDefaultResponse; export function isUnexpected( response: | ApplicationSecurityGroupsDelete200Response | ApplicationSecurityGroupsDelete202Response | ApplicationSecurityGroupsDelete204Response - | ApplicationSecurityGroupsDeleteDefaultResponse + | ApplicationSecurityGroupsDeleteDefaultResponse, ): response is ApplicationSecurityGroupsDeleteDefaultResponse; export function isUnexpected( - response: ApplicationSecurityGroupsGet200Response | ApplicationSecurityGroupsGetDefaultResponse + response: ApplicationSecurityGroupsGet200Response | ApplicationSecurityGroupsGetDefaultResponse, ): response is ApplicationSecurityGroupsGetDefaultResponse; export function isUnexpected( response: | ApplicationSecurityGroupsCreateOrUpdate200Response | ApplicationSecurityGroupsCreateOrUpdate201Response - | ApplicationSecurityGroupsCreateOrUpdateDefaultResponse + | ApplicationSecurityGroupsCreateOrUpdateDefaultResponse, ): response is ApplicationSecurityGroupsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | ApplicationSecurityGroupsUpdateTags200Response - | ApplicationSecurityGroupsUpdateTagsDefaultResponse + | ApplicationSecurityGroupsUpdateTagsDefaultResponse, ): response is ApplicationSecurityGroupsUpdateTagsDefaultResponse; export function isUnexpected( response: | ApplicationSecurityGroupsListAll200Response - | ApplicationSecurityGroupsListAllDefaultResponse + | ApplicationSecurityGroupsListAllDefaultResponse, ): response is ApplicationSecurityGroupsListAllDefaultResponse; export function isUnexpected( - response: ApplicationSecurityGroupsList200Response | ApplicationSecurityGroupsListDefaultResponse + response: ApplicationSecurityGroupsList200Response | ApplicationSecurityGroupsListDefaultResponse, ): response is ApplicationSecurityGroupsListDefaultResponse; export function isUnexpected( - response: AvailableDelegationsList200Response | AvailableDelegationsListDefaultResponse + response: AvailableDelegationsList200Response | AvailableDelegationsListDefaultResponse, ): response is AvailableDelegationsListDefaultResponse; export function isUnexpected( response: | AvailableResourceGroupDelegationsList200Response - | AvailableResourceGroupDelegationsListDefaultResponse + | AvailableResourceGroupDelegationsListDefaultResponse, ): response is AvailableResourceGroupDelegationsListDefaultResponse; export function isUnexpected( - response: AvailableServiceAliasesList200Response | AvailableServiceAliasesListDefaultResponse + response: AvailableServiceAliasesList200Response | AvailableServiceAliasesListDefaultResponse, ): response is AvailableServiceAliasesListDefaultResponse; export function isUnexpected( response: | AvailableServiceAliasesListByResourceGroup200Response - | AvailableServiceAliasesListByResourceGroupDefaultResponse + | AvailableServiceAliasesListByResourceGroupDefaultResponse, ): response is AvailableServiceAliasesListByResourceGroupDefaultResponse; export function isUnexpected( response: | AzureFirewallsDelete200Response | AzureFirewallsDelete202Response | AzureFirewallsDelete204Response - | AzureFirewallsDeleteDefaultResponse + | AzureFirewallsDeleteDefaultResponse, ): response is AzureFirewallsDeleteDefaultResponse; export function isUnexpected( - response: AzureFirewallsGet200Response | AzureFirewallsGetDefaultResponse + response: AzureFirewallsGet200Response | AzureFirewallsGetDefaultResponse, ): response is AzureFirewallsGetDefaultResponse; export function isUnexpected( response: | AzureFirewallsCreateOrUpdate200Response | AzureFirewallsCreateOrUpdate201Response - | AzureFirewallsCreateOrUpdateDefaultResponse + | AzureFirewallsCreateOrUpdateDefaultResponse, ): response is AzureFirewallsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | AzureFirewallsUpdateTags200Response | AzureFirewallsUpdateTags202Response - | AzureFirewallsUpdateTagsDefaultResponse + | AzureFirewallsUpdateTagsDefaultResponse, ): response is AzureFirewallsUpdateTagsDefaultResponse; export function isUnexpected( - response: AzureFirewallsList200Response | AzureFirewallsListDefaultResponse + response: AzureFirewallsList200Response | AzureFirewallsListDefaultResponse, ): response is AzureFirewallsListDefaultResponse; export function isUnexpected( - response: AzureFirewallsListAll200Response | AzureFirewallsListAllDefaultResponse + response: AzureFirewallsListAll200Response | AzureFirewallsListAllDefaultResponse, ): response is AzureFirewallsListAllDefaultResponse; export function isUnexpected( response: | AzureFirewallsListLearnedPrefixes200Response | AzureFirewallsListLearnedPrefixes202Response - | AzureFirewallsListLearnedPrefixesDefaultResponse + | AzureFirewallsListLearnedPrefixesDefaultResponse, ): response is AzureFirewallsListLearnedPrefixesDefaultResponse; export function isUnexpected( - response: AzureFirewallFqdnTagsListAll200Response | AzureFirewallFqdnTagsListAllDefaultResponse + response: AzureFirewallFqdnTagsListAll200Response | AzureFirewallFqdnTagsListAllDefaultResponse, ): response is AzureFirewallFqdnTagsListAllDefaultResponse; export function isUnexpected( - response: WebCategoriesGet200Response | WebCategoriesGetDefaultResponse + response: WebCategoriesGet200Response | WebCategoriesGetDefaultResponse, ): response is WebCategoriesGetDefaultResponse; export function isUnexpected( response: | WebCategoriesListBySubscription200Response - | WebCategoriesListBySubscriptionDefaultResponse + | WebCategoriesListBySubscriptionDefaultResponse, ): response is WebCategoriesListBySubscriptionDefaultResponse; export function isUnexpected( response: | BastionHostsDelete200Response | BastionHostsDelete202Response | BastionHostsDelete204Response - | BastionHostsDeleteDefaultResponse + | BastionHostsDeleteDefaultResponse, ): response is BastionHostsDeleteDefaultResponse; export function isUnexpected( - response: BastionHostsGet200Response | BastionHostsGetDefaultResponse + response: BastionHostsGet200Response | BastionHostsGetDefaultResponse, ): response is BastionHostsGetDefaultResponse; export function isUnexpected( response: | BastionHostsCreateOrUpdate200Response | BastionHostsCreateOrUpdate201Response - | BastionHostsCreateOrUpdateDefaultResponse + | BastionHostsCreateOrUpdateDefaultResponse, ): response is BastionHostsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | BastionHostsUpdateTags200Response | BastionHostsUpdateTags202Response - | BastionHostsUpdateTagsDefaultResponse + | BastionHostsUpdateTagsDefaultResponse, ): response is BastionHostsUpdateTagsDefaultResponse; export function isUnexpected( - response: BastionHostsList200Response | BastionHostsListDefaultResponse + response: BastionHostsList200Response | BastionHostsListDefaultResponse, ): response is BastionHostsListDefaultResponse; export function isUnexpected( response: | BastionHostsListByResourceGroup200Response - | BastionHostsListByResourceGroupDefaultResponse + | BastionHostsListByResourceGroupDefaultResponse, ): response is BastionHostsListByResourceGroupDefaultResponse; export function isUnexpected( response: | PutBastionShareableLink200Response | PutBastionShareableLink202Response - | PutBastionShareableLinkDefaultResponse + | PutBastionShareableLinkDefaultResponse, ): response is PutBastionShareableLinkDefaultResponse; export function isUnexpected( response: | DeleteBastionShareableLink200Response | DeleteBastionShareableLink202Response - | DeleteBastionShareableLinkDefaultResponse + | DeleteBastionShareableLinkDefaultResponse, ): response is DeleteBastionShareableLinkDefaultResponse; export function isUnexpected( - response: GetBastionShareableLink200Response | GetBastionShareableLinkDefaultResponse + response: GetBastionShareableLink200Response | GetBastionShareableLinkDefaultResponse, ): response is GetBastionShareableLinkDefaultResponse; export function isUnexpected( response: | GetActiveSessions200Response | GetActiveSessions202Response - | GetActiveSessionsDefaultResponse + | GetActiveSessionsDefaultResponse, ): response is GetActiveSessionsDefaultResponse; export function isUnexpected( - response: DisconnectActiveSessions200Response | DisconnectActiveSessionsDefaultResponse + response: DisconnectActiveSessions200Response | DisconnectActiveSessionsDefaultResponse, ): response is DisconnectActiveSessionsDefaultResponse; export function isUnexpected( - response: CheckDnsNameAvailability200Response | CheckDnsNameAvailabilityDefaultResponse + response: CheckDnsNameAvailability200Response | CheckDnsNameAvailabilityDefaultResponse, ): response is CheckDnsNameAvailabilityDefaultResponse; export function isUnexpected( response: | ListActiveConnectivityConfigurations200Response - | ListActiveConnectivityConfigurationsDefaultResponse + | ListActiveConnectivityConfigurationsDefaultResponse, ): response is ListActiveConnectivityConfigurationsDefaultResponse; export function isUnexpected( - response: ListActiveSecurityAdminRules200Response | ListActiveSecurityAdminRulesDefaultResponse + response: ListActiveSecurityAdminRules200Response | ListActiveSecurityAdminRulesDefaultResponse, ): response is ListActiveSecurityAdminRulesDefaultResponse; export function isUnexpected( response: | ListNetworkManagerEffectiveConnectivityConfigurations200Response - | ListNetworkManagerEffectiveConnectivityConfigurationsDefaultResponse + | ListNetworkManagerEffectiveConnectivityConfigurationsDefaultResponse, ): response is ListNetworkManagerEffectiveConnectivityConfigurationsDefaultResponse; export function isUnexpected( response: | ListNetworkManagerEffectiveSecurityAdminRules200Response - | ListNetworkManagerEffectiveSecurityAdminRulesDefaultResponse + | ListNetworkManagerEffectiveSecurityAdminRulesDefaultResponse, ): response is ListNetworkManagerEffectiveSecurityAdminRulesDefaultResponse; export function isUnexpected( - response: SupportedSecurityProviders200Response | SupportedSecurityProvidersDefaultResponse + response: SupportedSecurityProviders200Response | SupportedSecurityProvidersDefaultResponse, ): response is SupportedSecurityProvidersDefaultResponse; export function isUnexpected( response: | Generatevirtualwanvpnserverconfigurationvpnprofile200Response | Generatevirtualwanvpnserverconfigurationvpnprofile202Response - | GeneratevirtualwanvpnserverconfigurationvpnprofileDefaultResponse + | GeneratevirtualwanvpnserverconfigurationvpnprofileDefaultResponse, ): response is GeneratevirtualwanvpnserverconfigurationvpnprofileDefaultResponse; export function isUnexpected( response: | NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfaces200Response - | NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesDefaultResponse + | NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesDefaultResponse, ): response is NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesDefaultResponse; export function isUnexpected( response: | NetworkInterfacesListCloudServiceNetworkInterfaces200Response - | NetworkInterfacesListCloudServiceNetworkInterfacesDefaultResponse + | NetworkInterfacesListCloudServiceNetworkInterfacesDefaultResponse, ): response is NetworkInterfacesListCloudServiceNetworkInterfacesDefaultResponse; export function isUnexpected( response: | NetworkInterfacesGetCloudServiceNetworkInterface200Response - | NetworkInterfacesGetCloudServiceNetworkInterfaceDefaultResponse + | NetworkInterfacesGetCloudServiceNetworkInterfaceDefaultResponse, ): response is NetworkInterfacesGetCloudServiceNetworkInterfaceDefaultResponse; export function isUnexpected( response: | NetworkInterfacesDelete200Response | NetworkInterfacesDelete202Response | NetworkInterfacesDelete204Response - | NetworkInterfacesDeleteDefaultResponse + | NetworkInterfacesDeleteDefaultResponse, ): response is NetworkInterfacesDeleteDefaultResponse; export function isUnexpected( - response: NetworkInterfacesGet200Response | NetworkInterfacesGetDefaultResponse + response: NetworkInterfacesGet200Response | NetworkInterfacesGetDefaultResponse, ): response is NetworkInterfacesGetDefaultResponse; export function isUnexpected( response: | NetworkInterfacesCreateOrUpdate200Response | NetworkInterfacesCreateOrUpdate201Response - | NetworkInterfacesCreateOrUpdateDefaultResponse + | NetworkInterfacesCreateOrUpdateDefaultResponse, ): response is NetworkInterfacesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: NetworkInterfacesUpdateTags200Response | NetworkInterfacesUpdateTagsDefaultResponse + response: NetworkInterfacesUpdateTags200Response | NetworkInterfacesUpdateTagsDefaultResponse, ): response is NetworkInterfacesUpdateTagsDefaultResponse; export function isUnexpected( - response: NetworkInterfacesListAll200Response | NetworkInterfacesListAllDefaultResponse + response: NetworkInterfacesListAll200Response | NetworkInterfacesListAllDefaultResponse, ): response is NetworkInterfacesListAllDefaultResponse; export function isUnexpected( - response: NetworkInterfacesList200Response | NetworkInterfacesListDefaultResponse + response: NetworkInterfacesList200Response | NetworkInterfacesListDefaultResponse, ): response is NetworkInterfacesListDefaultResponse; export function isUnexpected( response: | NetworkInterfacesGetEffectiveRouteTable200Response | NetworkInterfacesGetEffectiveRouteTable202Response - | NetworkInterfacesGetEffectiveRouteTableDefaultResponse + | NetworkInterfacesGetEffectiveRouteTableDefaultResponse, ): response is NetworkInterfacesGetEffectiveRouteTableDefaultResponse; export function isUnexpected( response: | NetworkInterfacesListEffectiveNetworkSecurityGroups200Response | NetworkInterfacesListEffectiveNetworkSecurityGroups202Response - | NetworkInterfacesListEffectiveNetworkSecurityGroupsDefaultResponse + | NetworkInterfacesListEffectiveNetworkSecurityGroupsDefaultResponse, ): response is NetworkInterfacesListEffectiveNetworkSecurityGroupsDefaultResponse; export function isUnexpected( response: | NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfaces200Response - | NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesDefaultResponse + | NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesDefaultResponse, ): response is NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesDefaultResponse; export function isUnexpected( response: | NetworkInterfacesListVirtualMachineScaleSetNetworkInterfaces200Response - | NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesDefaultResponse + | NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesDefaultResponse, ): response is NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesDefaultResponse; export function isUnexpected( response: | NetworkInterfacesGetVirtualMachineScaleSetNetworkInterface200Response - | NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceDefaultResponse + | NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceDefaultResponse, ): response is NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceDefaultResponse; export function isUnexpected( response: | NetworkInterfacesListVirtualMachineScaleSetIpConfigurations200Response - | NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsDefaultResponse + | NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsDefaultResponse, ): response is NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsDefaultResponse; export function isUnexpected( response: | NetworkInterfacesGetVirtualMachineScaleSetIpConfiguration200Response - | NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationDefaultResponse + | NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationDefaultResponse, ): response is NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationDefaultResponse; export function isUnexpected( response: | PublicIPAddressesListCloudServicePublicIPAddresses200Response - | PublicIPAddressesListCloudServicePublicIPAddressesDefaultResponse + | PublicIPAddressesListCloudServicePublicIPAddressesDefaultResponse, ): response is PublicIPAddressesListCloudServicePublicIPAddressesDefaultResponse; export function isUnexpected( response: | PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses200Response - | PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesDefaultResponse + | PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesDefaultResponse, ): response is PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesDefaultResponse; export function isUnexpected( response: | PublicIPAddressesGetCloudServicePublicIPAddress200Response - | PublicIPAddressesGetCloudServicePublicIPAddressDefaultResponse + | PublicIPAddressesGetCloudServicePublicIPAddressDefaultResponse, ): response is PublicIPAddressesGetCloudServicePublicIPAddressDefaultResponse; export function isUnexpected( response: | PublicIPAddressesDelete200Response | PublicIPAddressesDelete202Response | PublicIPAddressesDelete204Response - | PublicIPAddressesDeleteDefaultResponse + | PublicIPAddressesDeleteDefaultResponse, ): response is PublicIPAddressesDeleteDefaultResponse; export function isUnexpected( - response: PublicIPAddressesGet200Response | PublicIPAddressesGetDefaultResponse + response: PublicIPAddressesGet200Response | PublicIPAddressesGetDefaultResponse, ): response is PublicIPAddressesGetDefaultResponse; export function isUnexpected( response: | PublicIPAddressesCreateOrUpdate200Response | PublicIPAddressesCreateOrUpdate201Response - | PublicIPAddressesCreateOrUpdateDefaultResponse + | PublicIPAddressesCreateOrUpdateDefaultResponse, ): response is PublicIPAddressesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: PublicIPAddressesUpdateTags200Response | PublicIPAddressesUpdateTagsDefaultResponse + response: PublicIPAddressesUpdateTags200Response | PublicIPAddressesUpdateTagsDefaultResponse, ): response is PublicIPAddressesUpdateTagsDefaultResponse; export function isUnexpected( - response: PublicIPAddressesListAll200Response | PublicIPAddressesListAllDefaultResponse + response: PublicIPAddressesListAll200Response | PublicIPAddressesListAllDefaultResponse, ): response is PublicIPAddressesListAllDefaultResponse; export function isUnexpected( - response: PublicIPAddressesList200Response | PublicIPAddressesListDefaultResponse + response: PublicIPAddressesList200Response | PublicIPAddressesListDefaultResponse, ): response is PublicIPAddressesListDefaultResponse; export function isUnexpected( response: | PublicIPAddressesDdosProtectionStatus200Response | PublicIPAddressesDdosProtectionStatus202Response - | PublicIPAddressesDdosProtectionStatusDefaultResponse + | PublicIPAddressesDdosProtectionStatusDefaultResponse, ): response is PublicIPAddressesDdosProtectionStatusDefaultResponse; export function isUnexpected( response: | PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses200Response - | PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesDefaultResponse + | PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesDefaultResponse, ): response is PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesDefaultResponse; export function isUnexpected( response: | PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses200Response - | PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesDefaultResponse + | PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesDefaultResponse, ): response is PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesDefaultResponse; export function isUnexpected( response: | PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddress200Response - | PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressDefaultResponse + | PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressDefaultResponse, ): response is PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressDefaultResponse; export function isUnexpected( response: | CustomIPPrefixesDelete200Response | CustomIPPrefixesDelete202Response | CustomIPPrefixesDelete204Response - | CustomIPPrefixesDeleteDefaultResponse + | CustomIPPrefixesDeleteDefaultResponse, ): response is CustomIPPrefixesDeleteDefaultResponse; export function isUnexpected( - response: CustomIPPrefixesGet200Response | CustomIPPrefixesGetDefaultResponse + response: CustomIPPrefixesGet200Response | CustomIPPrefixesGetDefaultResponse, ): response is CustomIPPrefixesGetDefaultResponse; export function isUnexpected( response: | CustomIPPrefixesCreateOrUpdate200Response | CustomIPPrefixesCreateOrUpdate201Response - | CustomIPPrefixesCreateOrUpdateDefaultResponse + | CustomIPPrefixesCreateOrUpdateDefaultResponse, ): response is CustomIPPrefixesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: CustomIPPrefixesUpdateTags200Response | CustomIPPrefixesUpdateTagsDefaultResponse + response: CustomIPPrefixesUpdateTags200Response | CustomIPPrefixesUpdateTagsDefaultResponse, ): response is CustomIPPrefixesUpdateTagsDefaultResponse; export function isUnexpected( - response: CustomIPPrefixesListAll200Response | CustomIPPrefixesListAllDefaultResponse + response: CustomIPPrefixesListAll200Response | CustomIPPrefixesListAllDefaultResponse, ): response is CustomIPPrefixesListAllDefaultResponse; export function isUnexpected( - response: CustomIPPrefixesList200Response | CustomIPPrefixesListDefaultResponse + response: CustomIPPrefixesList200Response | CustomIPPrefixesListDefaultResponse, ): response is CustomIPPrefixesListDefaultResponse; export function isUnexpected( response: | DdosCustomPoliciesDelete200Response | DdosCustomPoliciesDelete202Response | DdosCustomPoliciesDelete204Response - | DdosCustomPoliciesDeleteDefaultResponse + | DdosCustomPoliciesDeleteDefaultResponse, ): response is DdosCustomPoliciesDeleteDefaultResponse; export function isUnexpected( - response: DdosCustomPoliciesGet200Response | DdosCustomPoliciesGetDefaultResponse + response: DdosCustomPoliciesGet200Response | DdosCustomPoliciesGetDefaultResponse, ): response is DdosCustomPoliciesGetDefaultResponse; export function isUnexpected( response: | DdosCustomPoliciesCreateOrUpdate200Response | DdosCustomPoliciesCreateOrUpdate201Response - | DdosCustomPoliciesCreateOrUpdateDefaultResponse + | DdosCustomPoliciesCreateOrUpdateDefaultResponse, ): response is DdosCustomPoliciesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: DdosCustomPoliciesUpdateTags200Response | DdosCustomPoliciesUpdateTagsDefaultResponse + response: DdosCustomPoliciesUpdateTags200Response | DdosCustomPoliciesUpdateTagsDefaultResponse, ): response is DdosCustomPoliciesUpdateTagsDefaultResponse; export function isUnexpected( response: | DdosProtectionPlansDelete200Response | DdosProtectionPlansDelete202Response | DdosProtectionPlansDelete204Response - | DdosProtectionPlansDeleteDefaultResponse + | DdosProtectionPlansDeleteDefaultResponse, ): response is DdosProtectionPlansDeleteDefaultResponse; export function isUnexpected( - response: DdosProtectionPlansGet200Response | DdosProtectionPlansGetDefaultResponse + response: DdosProtectionPlansGet200Response | DdosProtectionPlansGetDefaultResponse, ): response is DdosProtectionPlansGetDefaultResponse; export function isUnexpected( response: | DdosProtectionPlansCreateOrUpdate200Response | DdosProtectionPlansCreateOrUpdate201Response - | DdosProtectionPlansCreateOrUpdateDefaultResponse + | DdosProtectionPlansCreateOrUpdateDefaultResponse, ): response is DdosProtectionPlansCreateOrUpdateDefaultResponse; export function isUnexpected( - response: DdosProtectionPlansUpdateTags200Response | DdosProtectionPlansUpdateTagsDefaultResponse + response: DdosProtectionPlansUpdateTags200Response | DdosProtectionPlansUpdateTagsDefaultResponse, ): response is DdosProtectionPlansUpdateTagsDefaultResponse; export function isUnexpected( - response: DdosProtectionPlansList200Response | DdosProtectionPlansListDefaultResponse + response: DdosProtectionPlansList200Response | DdosProtectionPlansListDefaultResponse, ): response is DdosProtectionPlansListDefaultResponse; export function isUnexpected( response: | DdosProtectionPlansListByResourceGroup200Response - | DdosProtectionPlansListByResourceGroupDefaultResponse + | DdosProtectionPlansListByResourceGroupDefaultResponse, ): response is DdosProtectionPlansListByResourceGroupDefaultResponse; export function isUnexpected( response: | DscpConfigurationCreateOrUpdate200Response | DscpConfigurationCreateOrUpdate201Response - | DscpConfigurationCreateOrUpdateDefaultResponse + | DscpConfigurationCreateOrUpdateDefaultResponse, ): response is DscpConfigurationCreateOrUpdateDefaultResponse; export function isUnexpected( response: | DscpConfigurationDelete200Response | DscpConfigurationDelete202Response | DscpConfigurationDelete204Response - | DscpConfigurationDeleteDefaultResponse + | DscpConfigurationDeleteDefaultResponse, ): response is DscpConfigurationDeleteDefaultResponse; export function isUnexpected( - response: DscpConfigurationGet200Response | DscpConfigurationGetDefaultResponse + response: DscpConfigurationGet200Response | DscpConfigurationGetDefaultResponse, ): response is DscpConfigurationGetDefaultResponse; export function isUnexpected( - response: DscpConfigurationList200Response | DscpConfigurationListDefaultResponse + response: DscpConfigurationList200Response | DscpConfigurationListDefaultResponse, ): response is DscpConfigurationListDefaultResponse; export function isUnexpected( - response: DscpConfigurationListAll200Response | DscpConfigurationListAllDefaultResponse + response: DscpConfigurationListAll200Response | DscpConfigurationListAllDefaultResponse, ): response is DscpConfigurationListAllDefaultResponse; export function isUnexpected( - response: AvailableEndpointServicesList200Response | AvailableEndpointServicesListDefaultResponse + response: AvailableEndpointServicesList200Response | AvailableEndpointServicesListDefaultResponse, ): response is AvailableEndpointServicesListDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitAuthorizationsDelete200Response | ExpressRouteCircuitAuthorizationsDelete202Response | ExpressRouteCircuitAuthorizationsDelete204Response - | ExpressRouteCircuitAuthorizationsDeleteDefaultResponse + | ExpressRouteCircuitAuthorizationsDeleteDefaultResponse, ): response is ExpressRouteCircuitAuthorizationsDeleteDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitAuthorizationsGet200Response - | ExpressRouteCircuitAuthorizationsGetDefaultResponse + | ExpressRouteCircuitAuthorizationsGetDefaultResponse, ): response is ExpressRouteCircuitAuthorizationsGetDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitAuthorizationsCreateOrUpdate200Response | ExpressRouteCircuitAuthorizationsCreateOrUpdate201Response - | ExpressRouteCircuitAuthorizationsCreateOrUpdateDefaultResponse + | ExpressRouteCircuitAuthorizationsCreateOrUpdateDefaultResponse, ): response is ExpressRouteCircuitAuthorizationsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitAuthorizationsList200Response - | ExpressRouteCircuitAuthorizationsListDefaultResponse + | ExpressRouteCircuitAuthorizationsListDefaultResponse, ): response is ExpressRouteCircuitAuthorizationsListDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitPeeringsDelete200Response | ExpressRouteCircuitPeeringsDelete202Response | ExpressRouteCircuitPeeringsDelete204Response - | ExpressRouteCircuitPeeringsDeleteDefaultResponse + | ExpressRouteCircuitPeeringsDeleteDefaultResponse, ): response is ExpressRouteCircuitPeeringsDeleteDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitPeeringsGet200Response - | ExpressRouteCircuitPeeringsGetDefaultResponse + | ExpressRouteCircuitPeeringsGetDefaultResponse, ): response is ExpressRouteCircuitPeeringsGetDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitPeeringsCreateOrUpdate200Response | ExpressRouteCircuitPeeringsCreateOrUpdate201Response - | ExpressRouteCircuitPeeringsCreateOrUpdateDefaultResponse + | ExpressRouteCircuitPeeringsCreateOrUpdateDefaultResponse, ): response is ExpressRouteCircuitPeeringsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitPeeringsList200Response - | ExpressRouteCircuitPeeringsListDefaultResponse + | ExpressRouteCircuitPeeringsListDefaultResponse, ): response is ExpressRouteCircuitPeeringsListDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitConnectionsDelete200Response | ExpressRouteCircuitConnectionsDelete202Response | ExpressRouteCircuitConnectionsDelete204Response - | ExpressRouteCircuitConnectionsDeleteDefaultResponse + | ExpressRouteCircuitConnectionsDeleteDefaultResponse, ): response is ExpressRouteCircuitConnectionsDeleteDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitConnectionsGet200Response - | ExpressRouteCircuitConnectionsGetDefaultResponse + | ExpressRouteCircuitConnectionsGetDefaultResponse, ): response is ExpressRouteCircuitConnectionsGetDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitConnectionsCreateOrUpdate200Response | ExpressRouteCircuitConnectionsCreateOrUpdate201Response - | ExpressRouteCircuitConnectionsCreateOrUpdateDefaultResponse + | ExpressRouteCircuitConnectionsCreateOrUpdateDefaultResponse, ): response is ExpressRouteCircuitConnectionsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitConnectionsList200Response - | ExpressRouteCircuitConnectionsListDefaultResponse + | ExpressRouteCircuitConnectionsListDefaultResponse, ): response is ExpressRouteCircuitConnectionsListDefaultResponse; export function isUnexpected( response: | PeerExpressRouteCircuitConnectionsGet200Response - | PeerExpressRouteCircuitConnectionsGetDefaultResponse + | PeerExpressRouteCircuitConnectionsGetDefaultResponse, ): response is PeerExpressRouteCircuitConnectionsGetDefaultResponse; export function isUnexpected( response: | PeerExpressRouteCircuitConnectionsList200Response - | PeerExpressRouteCircuitConnectionsListDefaultResponse + | PeerExpressRouteCircuitConnectionsListDefaultResponse, ): response is PeerExpressRouteCircuitConnectionsListDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitsDelete200Response | ExpressRouteCircuitsDelete202Response | ExpressRouteCircuitsDelete204Response - | ExpressRouteCircuitsDeleteDefaultResponse + | ExpressRouteCircuitsDeleteDefaultResponse, ): response is ExpressRouteCircuitsDeleteDefaultResponse; export function isUnexpected( - response: ExpressRouteCircuitsGet200Response | ExpressRouteCircuitsGetDefaultResponse + response: ExpressRouteCircuitsGet200Response | ExpressRouteCircuitsGetDefaultResponse, ): response is ExpressRouteCircuitsGetDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitsCreateOrUpdate200Response | ExpressRouteCircuitsCreateOrUpdate201Response - | ExpressRouteCircuitsCreateOrUpdateDefaultResponse + | ExpressRouteCircuitsCreateOrUpdateDefaultResponse, ): response is ExpressRouteCircuitsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitsUpdateTags200Response - | ExpressRouteCircuitsUpdateTagsDefaultResponse + | ExpressRouteCircuitsUpdateTagsDefaultResponse, ): response is ExpressRouteCircuitsUpdateTagsDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitsListArpTable200Response | ExpressRouteCircuitsListArpTable202Response - | ExpressRouteCircuitsListArpTableDefaultResponse + | ExpressRouteCircuitsListArpTableDefaultResponse, ): response is ExpressRouteCircuitsListArpTableDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitsListRoutesTable200Response | ExpressRouteCircuitsListRoutesTable202Response - | ExpressRouteCircuitsListRoutesTableDefaultResponse + | ExpressRouteCircuitsListRoutesTableDefaultResponse, ): response is ExpressRouteCircuitsListRoutesTableDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitsListRoutesTableSummary200Response | ExpressRouteCircuitsListRoutesTableSummary202Response - | ExpressRouteCircuitsListRoutesTableSummaryDefaultResponse + | ExpressRouteCircuitsListRoutesTableSummaryDefaultResponse, ): response is ExpressRouteCircuitsListRoutesTableSummaryDefaultResponse; export function isUnexpected( - response: ExpressRouteCircuitsGetStats200Response | ExpressRouteCircuitsGetStatsDefaultResponse + response: ExpressRouteCircuitsGetStats200Response | ExpressRouteCircuitsGetStatsDefaultResponse, ): response is ExpressRouteCircuitsGetStatsDefaultResponse; export function isUnexpected( response: | ExpressRouteCircuitsGetPeeringStats200Response - | ExpressRouteCircuitsGetPeeringStatsDefaultResponse + | ExpressRouteCircuitsGetPeeringStatsDefaultResponse, ): response is ExpressRouteCircuitsGetPeeringStatsDefaultResponse; export function isUnexpected( - response: ExpressRouteCircuitsList200Response | ExpressRouteCircuitsListDefaultResponse + response: ExpressRouteCircuitsList200Response | ExpressRouteCircuitsListDefaultResponse, ): response is ExpressRouteCircuitsListDefaultResponse; export function isUnexpected( - response: ExpressRouteCircuitsListAll200Response | ExpressRouteCircuitsListAllDefaultResponse + response: ExpressRouteCircuitsListAll200Response | ExpressRouteCircuitsListAllDefaultResponse, ): response is ExpressRouteCircuitsListAllDefaultResponse; export function isUnexpected( response: | ExpressRouteServiceProvidersList200Response - | ExpressRouteServiceProvidersListDefaultResponse + | ExpressRouteServiceProvidersListDefaultResponse, ): response is ExpressRouteServiceProvidersListDefaultResponse; export function isUnexpected( response: | ExpressRouteCrossConnectionsList200Response - | ExpressRouteCrossConnectionsListDefaultResponse + | ExpressRouteCrossConnectionsListDefaultResponse, ): response is ExpressRouteCrossConnectionsListDefaultResponse; export function isUnexpected( response: | ExpressRouteCrossConnectionsListByResourceGroup200Response - | ExpressRouteCrossConnectionsListByResourceGroupDefaultResponse + | ExpressRouteCrossConnectionsListByResourceGroupDefaultResponse, ): response is ExpressRouteCrossConnectionsListByResourceGroupDefaultResponse; export function isUnexpected( response: | ExpressRouteCrossConnectionsGet200Response - | ExpressRouteCrossConnectionsGetDefaultResponse + | ExpressRouteCrossConnectionsGetDefaultResponse, ): response is ExpressRouteCrossConnectionsGetDefaultResponse; export function isUnexpected( response: | ExpressRouteCrossConnectionsCreateOrUpdate200Response - | ExpressRouteCrossConnectionsCreateOrUpdateDefaultResponse + | ExpressRouteCrossConnectionsCreateOrUpdateDefaultResponse, ): response is ExpressRouteCrossConnectionsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | ExpressRouteCrossConnectionsUpdateTags200Response - | ExpressRouteCrossConnectionsUpdateTagsDefaultResponse + | ExpressRouteCrossConnectionsUpdateTagsDefaultResponse, ): response is ExpressRouteCrossConnectionsUpdateTagsDefaultResponse; export function isUnexpected( response: | ExpressRouteCrossConnectionsListArpTable200Response | ExpressRouteCrossConnectionsListArpTable202Response - | ExpressRouteCrossConnectionsListArpTableDefaultResponse + | ExpressRouteCrossConnectionsListArpTableDefaultResponse, ): response is ExpressRouteCrossConnectionsListArpTableDefaultResponse; export function isUnexpected( response: | ExpressRouteCrossConnectionsListRoutesTableSummary200Response | ExpressRouteCrossConnectionsListRoutesTableSummary202Response - | ExpressRouteCrossConnectionsListRoutesTableSummaryDefaultResponse + | ExpressRouteCrossConnectionsListRoutesTableSummaryDefaultResponse, ): response is ExpressRouteCrossConnectionsListRoutesTableSummaryDefaultResponse; export function isUnexpected( response: | ExpressRouteCrossConnectionsListRoutesTable200Response | ExpressRouteCrossConnectionsListRoutesTable202Response - | ExpressRouteCrossConnectionsListRoutesTableDefaultResponse + | ExpressRouteCrossConnectionsListRoutesTableDefaultResponse, ): response is ExpressRouteCrossConnectionsListRoutesTableDefaultResponse; export function isUnexpected( response: | ExpressRouteCrossConnectionPeeringsList200Response - | ExpressRouteCrossConnectionPeeringsListDefaultResponse + | ExpressRouteCrossConnectionPeeringsListDefaultResponse, ): response is ExpressRouteCrossConnectionPeeringsListDefaultResponse; export function isUnexpected( response: | ExpressRouteCrossConnectionPeeringsDelete200Response | ExpressRouteCrossConnectionPeeringsDelete202Response | ExpressRouteCrossConnectionPeeringsDelete204Response - | ExpressRouteCrossConnectionPeeringsDeleteDefaultResponse + | ExpressRouteCrossConnectionPeeringsDeleteDefaultResponse, ): response is ExpressRouteCrossConnectionPeeringsDeleteDefaultResponse; export function isUnexpected( response: | ExpressRouteCrossConnectionPeeringsGet200Response - | ExpressRouteCrossConnectionPeeringsGetDefaultResponse + | ExpressRouteCrossConnectionPeeringsGetDefaultResponse, ): response is ExpressRouteCrossConnectionPeeringsGetDefaultResponse; export function isUnexpected( response: | ExpressRouteCrossConnectionPeeringsCreateOrUpdate200Response | ExpressRouteCrossConnectionPeeringsCreateOrUpdate201Response - | ExpressRouteCrossConnectionPeeringsCreateOrUpdateDefaultResponse + | ExpressRouteCrossConnectionPeeringsCreateOrUpdateDefaultResponse, ): response is ExpressRouteCrossConnectionPeeringsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | ExpressRoutePortsLocationsList200Response - | ExpressRoutePortsLocationsListDefaultResponse + | ExpressRoutePortsLocationsListDefaultResponse, ): response is ExpressRoutePortsLocationsListDefaultResponse; export function isUnexpected( - response: ExpressRoutePortsLocationsGet200Response | ExpressRoutePortsLocationsGetDefaultResponse + response: ExpressRoutePortsLocationsGet200Response | ExpressRoutePortsLocationsGetDefaultResponse, ): response is ExpressRoutePortsLocationsGetDefaultResponse; export function isUnexpected( response: | ExpressRoutePortsDelete200Response | ExpressRoutePortsDelete202Response | ExpressRoutePortsDelete204Response - | ExpressRoutePortsDeleteDefaultResponse + | ExpressRoutePortsDeleteDefaultResponse, ): response is ExpressRoutePortsDeleteDefaultResponse; export function isUnexpected( - response: ExpressRoutePortsGet200Response | ExpressRoutePortsGetDefaultResponse + response: ExpressRoutePortsGet200Response | ExpressRoutePortsGetDefaultResponse, ): response is ExpressRoutePortsGetDefaultResponse; export function isUnexpected( response: | ExpressRoutePortsCreateOrUpdate200Response | ExpressRoutePortsCreateOrUpdate201Response - | ExpressRoutePortsCreateOrUpdateDefaultResponse + | ExpressRoutePortsCreateOrUpdateDefaultResponse, ): response is ExpressRoutePortsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: ExpressRoutePortsUpdateTags200Response | ExpressRoutePortsUpdateTagsDefaultResponse + response: ExpressRoutePortsUpdateTags200Response | ExpressRoutePortsUpdateTagsDefaultResponse, ): response is ExpressRoutePortsUpdateTagsDefaultResponse; export function isUnexpected( response: | ExpressRoutePortsListByResourceGroup200Response - | ExpressRoutePortsListByResourceGroupDefaultResponse + | ExpressRoutePortsListByResourceGroupDefaultResponse, ): response is ExpressRoutePortsListByResourceGroupDefaultResponse; export function isUnexpected( - response: ExpressRoutePortsList200Response | ExpressRoutePortsListDefaultResponse + response: ExpressRoutePortsList200Response | ExpressRoutePortsListDefaultResponse, ): response is ExpressRoutePortsListDefaultResponse; export function isUnexpected( - response: ExpressRoutePortsGenerateLOA200Response | ExpressRoutePortsGenerateLOADefaultResponse + response: ExpressRoutePortsGenerateLOA200Response | ExpressRoutePortsGenerateLOADefaultResponse, ): response is ExpressRoutePortsGenerateLOADefaultResponse; export function isUnexpected( - response: ExpressRouteLinksGet200Response | ExpressRouteLinksGetDefaultResponse + response: ExpressRouteLinksGet200Response | ExpressRouteLinksGetDefaultResponse, ): response is ExpressRouteLinksGetDefaultResponse; export function isUnexpected( - response: ExpressRouteLinksList200Response | ExpressRouteLinksListDefaultResponse + response: ExpressRouteLinksList200Response | ExpressRouteLinksListDefaultResponse, ): response is ExpressRouteLinksListDefaultResponse; export function isUnexpected( response: | ExpressRoutePortAuthorizationsDelete200Response | ExpressRoutePortAuthorizationsDelete202Response | ExpressRoutePortAuthorizationsDelete204Response - | ExpressRoutePortAuthorizationsDeleteDefaultResponse + | ExpressRoutePortAuthorizationsDeleteDefaultResponse, ): response is ExpressRoutePortAuthorizationsDeleteDefaultResponse; export function isUnexpected( response: | ExpressRoutePortAuthorizationsGet200Response - | ExpressRoutePortAuthorizationsGetDefaultResponse + | ExpressRoutePortAuthorizationsGetDefaultResponse, ): response is ExpressRoutePortAuthorizationsGetDefaultResponse; export function isUnexpected( response: | ExpressRoutePortAuthorizationsCreateOrUpdate200Response | ExpressRoutePortAuthorizationsCreateOrUpdate201Response - | ExpressRoutePortAuthorizationsCreateOrUpdateDefaultResponse + | ExpressRoutePortAuthorizationsCreateOrUpdateDefaultResponse, ): response is ExpressRoutePortAuthorizationsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | ExpressRoutePortAuthorizationsList200Response - | ExpressRoutePortAuthorizationsListDefaultResponse + | ExpressRoutePortAuthorizationsListDefaultResponse, ): response is ExpressRoutePortAuthorizationsListDefaultResponse; export function isUnexpected( response: | ExpressRouteProviderPortsLocationList200Response - | ExpressRouteProviderPortsLocationListDefaultResponse + | ExpressRouteProviderPortsLocationListDefaultResponse, ): response is ExpressRouteProviderPortsLocationListDefaultResponse; export function isUnexpected( - response: ExpressRouteProviderPortsGet200Response | ExpressRouteProviderPortsGetDefaultResponse + response: ExpressRouteProviderPortsGet200Response | ExpressRouteProviderPortsGetDefaultResponse, ): response is ExpressRouteProviderPortsGetDefaultResponse; export function isUnexpected( response: | FirewallPoliciesDelete200Response | FirewallPoliciesDelete202Response | FirewallPoliciesDelete204Response - | FirewallPoliciesDeleteDefaultResponse + | FirewallPoliciesDeleteDefaultResponse, ): response is FirewallPoliciesDeleteDefaultResponse; export function isUnexpected( - response: FirewallPoliciesGet200Response | FirewallPoliciesGetDefaultResponse + response: FirewallPoliciesGet200Response | FirewallPoliciesGetDefaultResponse, ): response is FirewallPoliciesGetDefaultResponse; export function isUnexpected( response: | FirewallPoliciesCreateOrUpdate200Response | FirewallPoliciesCreateOrUpdate201Response - | FirewallPoliciesCreateOrUpdateDefaultResponse + | FirewallPoliciesCreateOrUpdateDefaultResponse, ): response is FirewallPoliciesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: FirewallPoliciesUpdateTags200Response | FirewallPoliciesUpdateTagsDefaultResponse + response: FirewallPoliciesUpdateTags200Response | FirewallPoliciesUpdateTagsDefaultResponse, ): response is FirewallPoliciesUpdateTagsDefaultResponse; export function isUnexpected( - response: FirewallPoliciesList200Response | FirewallPoliciesListDefaultResponse + response: FirewallPoliciesList200Response | FirewallPoliciesListDefaultResponse, ): response is FirewallPoliciesListDefaultResponse; export function isUnexpected( - response: FirewallPoliciesListAll200Response | FirewallPoliciesListAllDefaultResponse + response: FirewallPoliciesListAll200Response | FirewallPoliciesListAllDefaultResponse, ): response is FirewallPoliciesListAllDefaultResponse; export function isUnexpected( response: | FirewallPolicyRuleCollectionGroupsDelete200Response | FirewallPolicyRuleCollectionGroupsDelete202Response | FirewallPolicyRuleCollectionGroupsDelete204Response - | FirewallPolicyRuleCollectionGroupsDeleteDefaultResponse + | FirewallPolicyRuleCollectionGroupsDeleteDefaultResponse, ): response is FirewallPolicyRuleCollectionGroupsDeleteDefaultResponse; export function isUnexpected( response: | FirewallPolicyRuleCollectionGroupsGet200Response - | FirewallPolicyRuleCollectionGroupsGetDefaultResponse + | FirewallPolicyRuleCollectionGroupsGetDefaultResponse, ): response is FirewallPolicyRuleCollectionGroupsGetDefaultResponse; export function isUnexpected( response: | FirewallPolicyRuleCollectionGroupsCreateOrUpdate200Response | FirewallPolicyRuleCollectionGroupsCreateOrUpdate201Response - | FirewallPolicyRuleCollectionGroupsCreateOrUpdateDefaultResponse + | FirewallPolicyRuleCollectionGroupsCreateOrUpdateDefaultResponse, ): response is FirewallPolicyRuleCollectionGroupsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | FirewallPolicyRuleCollectionGroupsList200Response - | FirewallPolicyRuleCollectionGroupsListDefaultResponse + | FirewallPolicyRuleCollectionGroupsListDefaultResponse, ): response is FirewallPolicyRuleCollectionGroupsListDefaultResponse; export function isUnexpected( response: | FirewallPolicyIdpsSignaturesList200Response - | FirewallPolicyIdpsSignaturesListDefaultResponse + | FirewallPolicyIdpsSignaturesListDefaultResponse, ): response is FirewallPolicyIdpsSignaturesListDefaultResponse; export function isUnexpected( response: | FirewallPolicyIdpsSignaturesOverridesPatch200Response - | FirewallPolicyIdpsSignaturesOverridesPatchDefaultResponse + | FirewallPolicyIdpsSignaturesOverridesPatchDefaultResponse, ): response is FirewallPolicyIdpsSignaturesOverridesPatchDefaultResponse; export function isUnexpected( response: | FirewallPolicyIdpsSignaturesOverridesPut200Response - | FirewallPolicyIdpsSignaturesOverridesPutDefaultResponse + | FirewallPolicyIdpsSignaturesOverridesPutDefaultResponse, ): response is FirewallPolicyIdpsSignaturesOverridesPutDefaultResponse; export function isUnexpected( response: | FirewallPolicyIdpsSignaturesOverridesGet200Response - | FirewallPolicyIdpsSignaturesOverridesGetDefaultResponse + | FirewallPolicyIdpsSignaturesOverridesGetDefaultResponse, ): response is FirewallPolicyIdpsSignaturesOverridesGetDefaultResponse; export function isUnexpected( response: | FirewallPolicyIdpsSignaturesOverridesList200Response - | FirewallPolicyIdpsSignaturesOverridesListDefaultResponse + | FirewallPolicyIdpsSignaturesOverridesListDefaultResponse, ): response is FirewallPolicyIdpsSignaturesOverridesListDefaultResponse; export function isUnexpected( response: | FirewallPolicyIdpsSignaturesFilterValuesList200Response - | FirewallPolicyIdpsSignaturesFilterValuesListDefaultResponse + | FirewallPolicyIdpsSignaturesFilterValuesListDefaultResponse, ): response is FirewallPolicyIdpsSignaturesFilterValuesListDefaultResponse; export function isUnexpected( response: | IpAllocationsDelete200Response | IpAllocationsDelete202Response | IpAllocationsDelete204Response - | IpAllocationsDeleteDefaultResponse + | IpAllocationsDeleteDefaultResponse, ): response is IpAllocationsDeleteDefaultResponse; export function isUnexpected( - response: IpAllocationsGet200Response | IpAllocationsGetDefaultResponse + response: IpAllocationsGet200Response | IpAllocationsGetDefaultResponse, ): response is IpAllocationsGetDefaultResponse; export function isUnexpected( response: | IpAllocationsCreateOrUpdate200Response | IpAllocationsCreateOrUpdate201Response - | IpAllocationsCreateOrUpdateDefaultResponse + | IpAllocationsCreateOrUpdateDefaultResponse, ): response is IpAllocationsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: IpAllocationsUpdateTags200Response | IpAllocationsUpdateTagsDefaultResponse + response: IpAllocationsUpdateTags200Response | IpAllocationsUpdateTagsDefaultResponse, ): response is IpAllocationsUpdateTagsDefaultResponse; export function isUnexpected( - response: IpAllocationsList200Response | IpAllocationsListDefaultResponse + response: IpAllocationsList200Response | IpAllocationsListDefaultResponse, ): response is IpAllocationsListDefaultResponse; export function isUnexpected( response: | IpAllocationsListByResourceGroup200Response - | IpAllocationsListByResourceGroupDefaultResponse + | IpAllocationsListByResourceGroupDefaultResponse, ): response is IpAllocationsListByResourceGroupDefaultResponse; export function isUnexpected( - response: IpGroupsGet200Response | IpGroupsGetDefaultResponse + response: IpGroupsGet200Response | IpGroupsGetDefaultResponse, ): response is IpGroupsGetDefaultResponse; export function isUnexpected( response: | IpGroupsCreateOrUpdate200Response | IpGroupsCreateOrUpdate201Response - | IpGroupsCreateOrUpdateDefaultResponse + | IpGroupsCreateOrUpdateDefaultResponse, ): response is IpGroupsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: IpGroupsUpdateGroups200Response | IpGroupsUpdateGroupsDefaultResponse + response: IpGroupsUpdateGroups200Response | IpGroupsUpdateGroupsDefaultResponse, ): response is IpGroupsUpdateGroupsDefaultResponse; export function isUnexpected( response: | IpGroupsDelete200Response | IpGroupsDelete202Response | IpGroupsDelete204Response - | IpGroupsDeleteDefaultResponse + | IpGroupsDeleteDefaultResponse, ): response is IpGroupsDeleteDefaultResponse; export function isUnexpected( - response: IpGroupsListByResourceGroup200Response | IpGroupsListByResourceGroupDefaultResponse + response: IpGroupsListByResourceGroup200Response | IpGroupsListByResourceGroupDefaultResponse, ): response is IpGroupsListByResourceGroupDefaultResponse; export function isUnexpected( - response: IpGroupsList200Response | IpGroupsListDefaultResponse + response: IpGroupsList200Response | IpGroupsListDefaultResponse, ): response is IpGroupsListDefaultResponse; export function isUnexpected( response: | LoadBalancersDelete200Response | LoadBalancersDelete202Response | LoadBalancersDelete204Response - | LoadBalancersDeleteDefaultResponse + | LoadBalancersDeleteDefaultResponse, ): response is LoadBalancersDeleteDefaultResponse; export function isUnexpected( - response: LoadBalancersGet200Response | LoadBalancersGetDefaultResponse + response: LoadBalancersGet200Response | LoadBalancersGetDefaultResponse, ): response is LoadBalancersGetDefaultResponse; export function isUnexpected( response: | LoadBalancersCreateOrUpdate200Response | LoadBalancersCreateOrUpdate201Response - | LoadBalancersCreateOrUpdateDefaultResponse + | LoadBalancersCreateOrUpdateDefaultResponse, ): response is LoadBalancersCreateOrUpdateDefaultResponse; export function isUnexpected( - response: LoadBalancersUpdateTags200Response | LoadBalancersUpdateTagsDefaultResponse + response: LoadBalancersUpdateTags200Response | LoadBalancersUpdateTagsDefaultResponse, ): response is LoadBalancersUpdateTagsDefaultResponse; export function isUnexpected( - response: LoadBalancersListAll200Response | LoadBalancersListAllDefaultResponse + response: LoadBalancersListAll200Response | LoadBalancersListAllDefaultResponse, ): response is LoadBalancersListAllDefaultResponse; export function isUnexpected( - response: LoadBalancersList200Response | LoadBalancersListDefaultResponse + response: LoadBalancersList200Response | LoadBalancersListDefaultResponse, ): response is LoadBalancersListDefaultResponse; export function isUnexpected( response: | LoadBalancersSwapPublicIpAddresses200Response | LoadBalancersSwapPublicIpAddresses202Response - | LoadBalancersSwapPublicIpAddressesDefaultResponse + | LoadBalancersSwapPublicIpAddressesDefaultResponse, ): response is LoadBalancersSwapPublicIpAddressesDefaultResponse; export function isUnexpected( response: | LoadBalancersListInboundNatRulePortMappings200Response | LoadBalancersListInboundNatRulePortMappings202Response - | LoadBalancersListInboundNatRulePortMappingsDefaultResponse + | LoadBalancersListInboundNatRulePortMappingsDefaultResponse, ): response is LoadBalancersListInboundNatRulePortMappingsDefaultResponse; export function isUnexpected( response: | LoadBalancerBackendAddressPoolsList200Response - | LoadBalancerBackendAddressPoolsListDefaultResponse + | LoadBalancerBackendAddressPoolsListDefaultResponse, ): response is LoadBalancerBackendAddressPoolsListDefaultResponse; export function isUnexpected( response: | LoadBalancerBackendAddressPoolsGet200Response - | LoadBalancerBackendAddressPoolsGetDefaultResponse + | LoadBalancerBackendAddressPoolsGetDefaultResponse, ): response is LoadBalancerBackendAddressPoolsGetDefaultResponse; export function isUnexpected( response: | LoadBalancerBackendAddressPoolsCreateOrUpdate200Response | LoadBalancerBackendAddressPoolsCreateOrUpdate201Response - | LoadBalancerBackendAddressPoolsCreateOrUpdateDefaultResponse + | LoadBalancerBackendAddressPoolsCreateOrUpdateDefaultResponse, ): response is LoadBalancerBackendAddressPoolsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | LoadBalancerBackendAddressPoolsDelete200Response | LoadBalancerBackendAddressPoolsDelete202Response | LoadBalancerBackendAddressPoolsDelete204Response - | LoadBalancerBackendAddressPoolsDeleteDefaultResponse + | LoadBalancerBackendAddressPoolsDeleteDefaultResponse, ): response is LoadBalancerBackendAddressPoolsDeleteDefaultResponse; export function isUnexpected( response: | LoadBalancerFrontendIPConfigurationsList200Response - | LoadBalancerFrontendIPConfigurationsListDefaultResponse + | LoadBalancerFrontendIPConfigurationsListDefaultResponse, ): response is LoadBalancerFrontendIPConfigurationsListDefaultResponse; export function isUnexpected( response: | LoadBalancerFrontendIPConfigurationsGet200Response - | LoadBalancerFrontendIPConfigurationsGetDefaultResponse + | LoadBalancerFrontendIPConfigurationsGetDefaultResponse, ): response is LoadBalancerFrontendIPConfigurationsGetDefaultResponse; export function isUnexpected( - response: InboundNatRulesList200Response | InboundNatRulesListDefaultResponse + response: InboundNatRulesList200Response | InboundNatRulesListDefaultResponse, ): response is InboundNatRulesListDefaultResponse; export function isUnexpected( response: | InboundNatRulesDelete200Response | InboundNatRulesDelete202Response | InboundNatRulesDelete204Response - | InboundNatRulesDeleteDefaultResponse + | InboundNatRulesDeleteDefaultResponse, ): response is InboundNatRulesDeleteDefaultResponse; export function isUnexpected( - response: InboundNatRulesGet200Response | InboundNatRulesGetDefaultResponse + response: InboundNatRulesGet200Response | InboundNatRulesGetDefaultResponse, ): response is InboundNatRulesGetDefaultResponse; export function isUnexpected( response: | InboundNatRulesCreateOrUpdate200Response | InboundNatRulesCreateOrUpdate201Response - | InboundNatRulesCreateOrUpdateDefaultResponse + | InboundNatRulesCreateOrUpdateDefaultResponse, ): response is InboundNatRulesCreateOrUpdateDefaultResponse; export function isUnexpected( response: | LoadBalancerLoadBalancingRulesList200Response - | LoadBalancerLoadBalancingRulesListDefaultResponse + | LoadBalancerLoadBalancingRulesListDefaultResponse, ): response is LoadBalancerLoadBalancingRulesListDefaultResponse; export function isUnexpected( response: | LoadBalancerLoadBalancingRulesGet200Response - | LoadBalancerLoadBalancingRulesGetDefaultResponse + | LoadBalancerLoadBalancingRulesGetDefaultResponse, ): response is LoadBalancerLoadBalancingRulesGetDefaultResponse; export function isUnexpected( - response: LoadBalancerOutboundRulesList200Response | LoadBalancerOutboundRulesListDefaultResponse + response: LoadBalancerOutboundRulesList200Response | LoadBalancerOutboundRulesListDefaultResponse, ): response is LoadBalancerOutboundRulesListDefaultResponse; export function isUnexpected( - response: LoadBalancerOutboundRulesGet200Response | LoadBalancerOutboundRulesGetDefaultResponse + response: LoadBalancerOutboundRulesGet200Response | LoadBalancerOutboundRulesGetDefaultResponse, ): response is LoadBalancerOutboundRulesGetDefaultResponse; export function isUnexpected( response: | LoadBalancerNetworkInterfacesList200Response - | LoadBalancerNetworkInterfacesListDefaultResponse + | LoadBalancerNetworkInterfacesListDefaultResponse, ): response is LoadBalancerNetworkInterfacesListDefaultResponse; export function isUnexpected( - response: LoadBalancerProbesList200Response | LoadBalancerProbesListDefaultResponse + response: LoadBalancerProbesList200Response | LoadBalancerProbesListDefaultResponse, ): response is LoadBalancerProbesListDefaultResponse; export function isUnexpected( - response: LoadBalancerProbesGet200Response | LoadBalancerProbesGetDefaultResponse + response: LoadBalancerProbesGet200Response | LoadBalancerProbesGetDefaultResponse, ): response is LoadBalancerProbesGetDefaultResponse; export function isUnexpected( response: | NatGatewaysDelete200Response | NatGatewaysDelete202Response | NatGatewaysDelete204Response - | NatGatewaysDeleteDefaultResponse + | NatGatewaysDeleteDefaultResponse, ): response is NatGatewaysDeleteDefaultResponse; export function isUnexpected( - response: NatGatewaysGet200Response | NatGatewaysGetDefaultResponse + response: NatGatewaysGet200Response | NatGatewaysGetDefaultResponse, ): response is NatGatewaysGetDefaultResponse; export function isUnexpected( response: | NatGatewaysCreateOrUpdate200Response | NatGatewaysCreateOrUpdate201Response | NatGatewaysCreateOrUpdate202Response - | NatGatewaysCreateOrUpdateDefaultResponse + | NatGatewaysCreateOrUpdateDefaultResponse, ): response is NatGatewaysCreateOrUpdateDefaultResponse; export function isUnexpected( - response: NatGatewaysUpdateTags200Response | NatGatewaysUpdateTagsDefaultResponse + response: NatGatewaysUpdateTags200Response | NatGatewaysUpdateTagsDefaultResponse, ): response is NatGatewaysUpdateTagsDefaultResponse; export function isUnexpected( - response: NatGatewaysListAll200Response | NatGatewaysListAllDefaultResponse + response: NatGatewaysListAll200Response | NatGatewaysListAllDefaultResponse, ): response is NatGatewaysListAllDefaultResponse; export function isUnexpected( - response: NatGatewaysList200Response | NatGatewaysListDefaultResponse + response: NatGatewaysList200Response | NatGatewaysListDefaultResponse, ): response is NatGatewaysListDefaultResponse; export function isUnexpected( response: | NetworkInterfaceIPConfigurationsList200Response - | NetworkInterfaceIPConfigurationsListDefaultResponse + | NetworkInterfaceIPConfigurationsListDefaultResponse, ): response is NetworkInterfaceIPConfigurationsListDefaultResponse; export function isUnexpected( response: | NetworkInterfaceIPConfigurationsGet200Response - | NetworkInterfaceIPConfigurationsGetDefaultResponse + | NetworkInterfaceIPConfigurationsGetDefaultResponse, ): response is NetworkInterfaceIPConfigurationsGetDefaultResponse; export function isUnexpected( response: | NetworkInterfaceLoadBalancersList200Response - | NetworkInterfaceLoadBalancersListDefaultResponse + | NetworkInterfaceLoadBalancersListDefaultResponse, ): response is NetworkInterfaceLoadBalancersListDefaultResponse; export function isUnexpected( response: | NetworkInterfaceTapConfigurationsDelete200Response | NetworkInterfaceTapConfigurationsDelete202Response | NetworkInterfaceTapConfigurationsDelete204Response - | NetworkInterfaceTapConfigurationsDeleteDefaultResponse + | NetworkInterfaceTapConfigurationsDeleteDefaultResponse, ): response is NetworkInterfaceTapConfigurationsDeleteDefaultResponse; export function isUnexpected( response: | NetworkInterfaceTapConfigurationsGet200Response - | NetworkInterfaceTapConfigurationsGetDefaultResponse + | NetworkInterfaceTapConfigurationsGetDefaultResponse, ): response is NetworkInterfaceTapConfigurationsGetDefaultResponse; export function isUnexpected( response: | NetworkInterfaceTapConfigurationsCreateOrUpdate200Response | NetworkInterfaceTapConfigurationsCreateOrUpdate201Response - | NetworkInterfaceTapConfigurationsCreateOrUpdateDefaultResponse + | NetworkInterfaceTapConfigurationsCreateOrUpdateDefaultResponse, ): response is NetworkInterfaceTapConfigurationsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | NetworkInterfaceTapConfigurationsList200Response - | NetworkInterfaceTapConfigurationsListDefaultResponse + | NetworkInterfaceTapConfigurationsListDefaultResponse, ): response is NetworkInterfaceTapConfigurationsListDefaultResponse; export function isUnexpected( - response: NetworkManagersGet200Response | NetworkManagersGetDefaultResponse + response: NetworkManagersGet200Response | NetworkManagersGetDefaultResponse, ): response is NetworkManagersGetDefaultResponse; export function isUnexpected( response: | NetworkManagersCreateOrUpdate200Response | NetworkManagersCreateOrUpdate201Response - | NetworkManagersCreateOrUpdateDefaultResponse + | NetworkManagersCreateOrUpdateDefaultResponse, ): response is NetworkManagersCreateOrUpdateDefaultResponse; export function isUnexpected( response: | NetworkManagersDelete200Response | NetworkManagersDelete202Response | NetworkManagersDelete204Response - | NetworkManagersDeleteDefaultResponse + | NetworkManagersDeleteDefaultResponse, ): response is NetworkManagersDeleteDefaultResponse; export function isUnexpected( - response: NetworkManagersPatch200Response | NetworkManagersPatchDefaultResponse + response: NetworkManagersPatch200Response | NetworkManagersPatchDefaultResponse, ): response is NetworkManagersPatchDefaultResponse; export function isUnexpected( response: | NetworkManagersListBySubscription200Response - | NetworkManagersListBySubscriptionDefaultResponse + | NetworkManagersListBySubscriptionDefaultResponse, ): response is NetworkManagersListBySubscriptionDefaultResponse; export function isUnexpected( - response: NetworkManagersList200Response | NetworkManagersListDefaultResponse + response: NetworkManagersList200Response | NetworkManagersListDefaultResponse, ): response is NetworkManagersListDefaultResponse; export function isUnexpected( response: | NetworkManagerCommitsPost200Response | NetworkManagerCommitsPost202Response - | NetworkManagerCommitsPostDefaultResponse + | NetworkManagerCommitsPostDefaultResponse, ): response is NetworkManagerCommitsPostDefaultResponse; export function isUnexpected( response: | NetworkManagerDeploymentStatusList200Response - | NetworkManagerDeploymentStatusListDefaultResponse + | NetworkManagerDeploymentStatusListDefaultResponse, ): response is NetworkManagerDeploymentStatusListDefaultResponse; export function isUnexpected( response: | SubscriptionNetworkManagerConnectionsCreateOrUpdate200Response | SubscriptionNetworkManagerConnectionsCreateOrUpdate201Response - | SubscriptionNetworkManagerConnectionsCreateOrUpdateDefaultResponse + | SubscriptionNetworkManagerConnectionsCreateOrUpdateDefaultResponse, ): response is SubscriptionNetworkManagerConnectionsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | SubscriptionNetworkManagerConnectionsGet200Response - | SubscriptionNetworkManagerConnectionsGetDefaultResponse + | SubscriptionNetworkManagerConnectionsGetDefaultResponse, ): response is SubscriptionNetworkManagerConnectionsGetDefaultResponse; export function isUnexpected( response: | SubscriptionNetworkManagerConnectionsDelete200Response | SubscriptionNetworkManagerConnectionsDelete204Response - | SubscriptionNetworkManagerConnectionsDeleteDefaultResponse + | SubscriptionNetworkManagerConnectionsDeleteDefaultResponse, ): response is SubscriptionNetworkManagerConnectionsDeleteDefaultResponse; export function isUnexpected( response: | SubscriptionNetworkManagerConnectionsList200Response - | SubscriptionNetworkManagerConnectionsListDefaultResponse + | SubscriptionNetworkManagerConnectionsListDefaultResponse, ): response is SubscriptionNetworkManagerConnectionsListDefaultResponse; export function isUnexpected( response: | ManagementGroupNetworkManagerConnectionsCreateOrUpdate200Response | ManagementGroupNetworkManagerConnectionsCreateOrUpdate201Response - | ManagementGroupNetworkManagerConnectionsCreateOrUpdateDefaultResponse + | ManagementGroupNetworkManagerConnectionsCreateOrUpdateDefaultResponse, ): response is ManagementGroupNetworkManagerConnectionsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | ManagementGroupNetworkManagerConnectionsGet200Response - | ManagementGroupNetworkManagerConnectionsGetDefaultResponse + | ManagementGroupNetworkManagerConnectionsGetDefaultResponse, ): response is ManagementGroupNetworkManagerConnectionsGetDefaultResponse; export function isUnexpected( response: | ManagementGroupNetworkManagerConnectionsDelete200Response | ManagementGroupNetworkManagerConnectionsDelete204Response - | ManagementGroupNetworkManagerConnectionsDeleteDefaultResponse + | ManagementGroupNetworkManagerConnectionsDeleteDefaultResponse, ): response is ManagementGroupNetworkManagerConnectionsDeleteDefaultResponse; export function isUnexpected( response: | ManagementGroupNetworkManagerConnectionsList200Response - | ManagementGroupNetworkManagerConnectionsListDefaultResponse + | ManagementGroupNetworkManagerConnectionsListDefaultResponse, ): response is ManagementGroupNetworkManagerConnectionsListDefaultResponse; export function isUnexpected( - response: ConnectivityConfigurationsGet200Response | ConnectivityConfigurationsGetDefaultResponse + response: ConnectivityConfigurationsGet200Response | ConnectivityConfigurationsGetDefaultResponse, ): response is ConnectivityConfigurationsGetDefaultResponse; export function isUnexpected( response: | ConnectivityConfigurationsCreateOrUpdate200Response | ConnectivityConfigurationsCreateOrUpdate201Response - | ConnectivityConfigurationsCreateOrUpdateDefaultResponse + | ConnectivityConfigurationsCreateOrUpdateDefaultResponse, ): response is ConnectivityConfigurationsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | ConnectivityConfigurationsDelete200Response | ConnectivityConfigurationsDelete202Response | ConnectivityConfigurationsDelete204Response - | ConnectivityConfigurationsDeleteDefaultResponse + | ConnectivityConfigurationsDeleteDefaultResponse, ): response is ConnectivityConfigurationsDeleteDefaultResponse; export function isUnexpected( response: | ConnectivityConfigurationsList200Response - | ConnectivityConfigurationsListDefaultResponse + | ConnectivityConfigurationsListDefaultResponse, ): response is ConnectivityConfigurationsListDefaultResponse; export function isUnexpected( - response: NetworkGroupsGet200Response | NetworkGroupsGetDefaultResponse + response: NetworkGroupsGet200Response | NetworkGroupsGetDefaultResponse, ): response is NetworkGroupsGetDefaultResponse; export function isUnexpected( response: | NetworkGroupsCreateOrUpdate200Response | NetworkGroupsCreateOrUpdate201Response - | NetworkGroupsCreateOrUpdateDefaultResponse + | NetworkGroupsCreateOrUpdateDefaultResponse, ): response is NetworkGroupsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | NetworkGroupsDelete200Response | NetworkGroupsDelete202Response | NetworkGroupsDelete204Response - | NetworkGroupsDeleteDefaultResponse + | NetworkGroupsDeleteDefaultResponse, ): response is NetworkGroupsDeleteDefaultResponse; export function isUnexpected( - response: NetworkGroupsList200Response | NetworkGroupsListDefaultResponse + response: NetworkGroupsList200Response | NetworkGroupsListDefaultResponse, ): response is NetworkGroupsListDefaultResponse; export function isUnexpected( - response: StaticMembersGet200Response | StaticMembersGetDefaultResponse + response: StaticMembersGet200Response | StaticMembersGetDefaultResponse, ): response is StaticMembersGetDefaultResponse; export function isUnexpected( response: | StaticMembersCreateOrUpdate200Response | StaticMembersCreateOrUpdate201Response - | StaticMembersCreateOrUpdateDefaultResponse + | StaticMembersCreateOrUpdateDefaultResponse, ): response is StaticMembersCreateOrUpdateDefaultResponse; export function isUnexpected( response: | StaticMembersDelete200Response | StaticMembersDelete204Response - | StaticMembersDeleteDefaultResponse + | StaticMembersDeleteDefaultResponse, ): response is StaticMembersDeleteDefaultResponse; export function isUnexpected( - response: StaticMembersList200Response | StaticMembersListDefaultResponse + response: StaticMembersList200Response | StaticMembersListDefaultResponse, ): response is StaticMembersListDefaultResponse; export function isUnexpected( response: | ScopeConnectionsCreateOrUpdate200Response | ScopeConnectionsCreateOrUpdate201Response - | ScopeConnectionsCreateOrUpdateDefaultResponse + | ScopeConnectionsCreateOrUpdateDefaultResponse, ): response is ScopeConnectionsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: ScopeConnectionsGet200Response | ScopeConnectionsGetDefaultResponse + response: ScopeConnectionsGet200Response | ScopeConnectionsGetDefaultResponse, ): response is ScopeConnectionsGetDefaultResponse; export function isUnexpected( response: | ScopeConnectionsDelete200Response | ScopeConnectionsDelete204Response - | ScopeConnectionsDeleteDefaultResponse + | ScopeConnectionsDeleteDefaultResponse, ): response is ScopeConnectionsDeleteDefaultResponse; export function isUnexpected( - response: ScopeConnectionsList200Response | ScopeConnectionsListDefaultResponse + response: ScopeConnectionsList200Response | ScopeConnectionsListDefaultResponse, ): response is ScopeConnectionsListDefaultResponse; export function isUnexpected( response: | SecurityAdminConfigurationsList200Response - | SecurityAdminConfigurationsListDefaultResponse + | SecurityAdminConfigurationsListDefaultResponse, ): response is SecurityAdminConfigurationsListDefaultResponse; export function isUnexpected( response: | SecurityAdminConfigurationsGet200Response - | SecurityAdminConfigurationsGetDefaultResponse + | SecurityAdminConfigurationsGetDefaultResponse, ): response is SecurityAdminConfigurationsGetDefaultResponse; export function isUnexpected( response: | SecurityAdminConfigurationsCreateOrUpdate200Response | SecurityAdminConfigurationsCreateOrUpdate201Response - | SecurityAdminConfigurationsCreateOrUpdateDefaultResponse + | SecurityAdminConfigurationsCreateOrUpdateDefaultResponse, ): response is SecurityAdminConfigurationsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | SecurityAdminConfigurationsDelete200Response | SecurityAdminConfigurationsDelete202Response | SecurityAdminConfigurationsDelete204Response - | SecurityAdminConfigurationsDeleteDefaultResponse + | SecurityAdminConfigurationsDeleteDefaultResponse, ): response is SecurityAdminConfigurationsDeleteDefaultResponse; export function isUnexpected( - response: AdminRuleCollectionsList200Response | AdminRuleCollectionsListDefaultResponse + response: AdminRuleCollectionsList200Response | AdminRuleCollectionsListDefaultResponse, ): response is AdminRuleCollectionsListDefaultResponse; export function isUnexpected( - response: AdminRuleCollectionsGet200Response | AdminRuleCollectionsGetDefaultResponse + response: AdminRuleCollectionsGet200Response | AdminRuleCollectionsGetDefaultResponse, ): response is AdminRuleCollectionsGetDefaultResponse; export function isUnexpected( response: | AdminRuleCollectionsCreateOrUpdate200Response | AdminRuleCollectionsCreateOrUpdate201Response - | AdminRuleCollectionsCreateOrUpdateDefaultResponse + | AdminRuleCollectionsCreateOrUpdateDefaultResponse, ): response is AdminRuleCollectionsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | AdminRuleCollectionsDelete200Response | AdminRuleCollectionsDelete202Response | AdminRuleCollectionsDelete204Response - | AdminRuleCollectionsDeleteDefaultResponse + | AdminRuleCollectionsDeleteDefaultResponse, ): response is AdminRuleCollectionsDeleteDefaultResponse; export function isUnexpected( - response: AdminRulesList200Response | AdminRulesListDefaultResponse + response: AdminRulesList200Response | AdminRulesListDefaultResponse, ): response is AdminRulesListDefaultResponse; export function isUnexpected( - response: AdminRulesGet200Response | AdminRulesGetDefaultResponse + response: AdminRulesGet200Response | AdminRulesGetDefaultResponse, ): response is AdminRulesGetDefaultResponse; export function isUnexpected( response: | AdminRulesCreateOrUpdate200Response | AdminRulesCreateOrUpdate201Response - | AdminRulesCreateOrUpdateDefaultResponse + | AdminRulesCreateOrUpdateDefaultResponse, ): response is AdminRulesCreateOrUpdateDefaultResponse; export function isUnexpected( response: | AdminRulesDelete200Response | AdminRulesDelete202Response | AdminRulesDelete204Response - | AdminRulesDeleteDefaultResponse + | AdminRulesDeleteDefaultResponse, ): response is AdminRulesDeleteDefaultResponse; export function isUnexpected( response: | NetworkProfilesDelete200Response | NetworkProfilesDelete202Response | NetworkProfilesDelete204Response - | NetworkProfilesDeleteDefaultResponse + | NetworkProfilesDeleteDefaultResponse, ): response is NetworkProfilesDeleteDefaultResponse; export function isUnexpected( - response: NetworkProfilesGet200Response | NetworkProfilesGetDefaultResponse + response: NetworkProfilesGet200Response | NetworkProfilesGetDefaultResponse, ): response is NetworkProfilesGetDefaultResponse; export function isUnexpected( response: | NetworkProfilesCreateOrUpdate200Response | NetworkProfilesCreateOrUpdate201Response - | NetworkProfilesCreateOrUpdateDefaultResponse + | NetworkProfilesCreateOrUpdateDefaultResponse, ): response is NetworkProfilesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: NetworkProfilesUpdateTags200Response | NetworkProfilesUpdateTagsDefaultResponse + response: NetworkProfilesUpdateTags200Response | NetworkProfilesUpdateTagsDefaultResponse, ): response is NetworkProfilesUpdateTagsDefaultResponse; export function isUnexpected( - response: NetworkProfilesListAll200Response | NetworkProfilesListAllDefaultResponse + response: NetworkProfilesListAll200Response | NetworkProfilesListAllDefaultResponse, ): response is NetworkProfilesListAllDefaultResponse; export function isUnexpected( - response: NetworkProfilesList200Response | NetworkProfilesListDefaultResponse + response: NetworkProfilesList200Response | NetworkProfilesListDefaultResponse, ): response is NetworkProfilesListDefaultResponse; export function isUnexpected( response: | NetworkSecurityGroupsDelete200Response | NetworkSecurityGroupsDelete202Response | NetworkSecurityGroupsDelete204Response - | NetworkSecurityGroupsDeleteDefaultResponse + | NetworkSecurityGroupsDeleteDefaultResponse, ): response is NetworkSecurityGroupsDeleteDefaultResponse; export function isUnexpected( - response: NetworkSecurityGroupsGet200Response | NetworkSecurityGroupsGetDefaultResponse + response: NetworkSecurityGroupsGet200Response | NetworkSecurityGroupsGetDefaultResponse, ): response is NetworkSecurityGroupsGetDefaultResponse; export function isUnexpected( response: | NetworkSecurityGroupsCreateOrUpdate200Response | NetworkSecurityGroupsCreateOrUpdate201Response - | NetworkSecurityGroupsCreateOrUpdateDefaultResponse + | NetworkSecurityGroupsCreateOrUpdateDefaultResponse, ): response is NetworkSecurityGroupsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | NetworkSecurityGroupsUpdateTags200Response - | NetworkSecurityGroupsUpdateTagsDefaultResponse + | NetworkSecurityGroupsUpdateTagsDefaultResponse, ): response is NetworkSecurityGroupsUpdateTagsDefaultResponse; export function isUnexpected( - response: NetworkSecurityGroupsListAll200Response | NetworkSecurityGroupsListAllDefaultResponse + response: NetworkSecurityGroupsListAll200Response | NetworkSecurityGroupsListAllDefaultResponse, ): response is NetworkSecurityGroupsListAllDefaultResponse; export function isUnexpected( - response: NetworkSecurityGroupsList200Response | NetworkSecurityGroupsListDefaultResponse + response: NetworkSecurityGroupsList200Response | NetworkSecurityGroupsListDefaultResponse, ): response is NetworkSecurityGroupsListDefaultResponse; export function isUnexpected( response: | SecurityRulesDelete200Response | SecurityRulesDelete202Response | SecurityRulesDelete204Response - | SecurityRulesDeleteDefaultResponse + | SecurityRulesDeleteDefaultResponse, ): response is SecurityRulesDeleteDefaultResponse; export function isUnexpected( - response: SecurityRulesGet200Response | SecurityRulesGetDefaultResponse + response: SecurityRulesGet200Response | SecurityRulesGetDefaultResponse, ): response is SecurityRulesGetDefaultResponse; export function isUnexpected( response: | SecurityRulesCreateOrUpdate200Response | SecurityRulesCreateOrUpdate201Response - | SecurityRulesCreateOrUpdateDefaultResponse + | SecurityRulesCreateOrUpdateDefaultResponse, ): response is SecurityRulesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: SecurityRulesList200Response | SecurityRulesListDefaultResponse + response: SecurityRulesList200Response | SecurityRulesListDefaultResponse, ): response is SecurityRulesListDefaultResponse; export function isUnexpected( - response: DefaultSecurityRulesList200Response | DefaultSecurityRulesListDefaultResponse + response: DefaultSecurityRulesList200Response | DefaultSecurityRulesListDefaultResponse, ): response is DefaultSecurityRulesListDefaultResponse; export function isUnexpected( - response: DefaultSecurityRulesGet200Response | DefaultSecurityRulesGetDefaultResponse + response: DefaultSecurityRulesGet200Response | DefaultSecurityRulesGetDefaultResponse, ): response is DefaultSecurityRulesGetDefaultResponse; export function isUnexpected( response: | NetworkVirtualAppliancesDelete200Response | NetworkVirtualAppliancesDelete202Response | NetworkVirtualAppliancesDelete204Response - | NetworkVirtualAppliancesDeleteDefaultResponse + | NetworkVirtualAppliancesDeleteDefaultResponse, ): response is NetworkVirtualAppliancesDeleteDefaultResponse; export function isUnexpected( - response: NetworkVirtualAppliancesGet200Response | NetworkVirtualAppliancesGetDefaultResponse + response: NetworkVirtualAppliancesGet200Response | NetworkVirtualAppliancesGetDefaultResponse, ): response is NetworkVirtualAppliancesGetDefaultResponse; export function isUnexpected( response: | NetworkVirtualAppliancesUpdateTags200Response - | NetworkVirtualAppliancesUpdateTagsDefaultResponse + | NetworkVirtualAppliancesUpdateTagsDefaultResponse, ): response is NetworkVirtualAppliancesUpdateTagsDefaultResponse; export function isUnexpected( response: | NetworkVirtualAppliancesCreateOrUpdate200Response | NetworkVirtualAppliancesCreateOrUpdate201Response - | NetworkVirtualAppliancesCreateOrUpdateDefaultResponse + | NetworkVirtualAppliancesCreateOrUpdateDefaultResponse, ): response is NetworkVirtualAppliancesCreateOrUpdateDefaultResponse; export function isUnexpected( response: | NetworkVirtualAppliancesListByResourceGroup200Response - | NetworkVirtualAppliancesListByResourceGroupDefaultResponse + | NetworkVirtualAppliancesListByResourceGroupDefaultResponse, ): response is NetworkVirtualAppliancesListByResourceGroupDefaultResponse; export function isUnexpected( - response: NetworkVirtualAppliancesList200Response | NetworkVirtualAppliancesListDefaultResponse + response: NetworkVirtualAppliancesList200Response | NetworkVirtualAppliancesListDefaultResponse, ): response is NetworkVirtualAppliancesListDefaultResponse; export function isUnexpected( response: | VirtualApplianceSitesDelete200Response | VirtualApplianceSitesDelete202Response | VirtualApplianceSitesDelete204Response - | VirtualApplianceSitesDeleteDefaultResponse + | VirtualApplianceSitesDeleteDefaultResponse, ): response is VirtualApplianceSitesDeleteDefaultResponse; export function isUnexpected( - response: VirtualApplianceSitesGet200Response | VirtualApplianceSitesGetDefaultResponse + response: VirtualApplianceSitesGet200Response | VirtualApplianceSitesGetDefaultResponse, ): response is VirtualApplianceSitesGetDefaultResponse; export function isUnexpected( response: | VirtualApplianceSitesCreateOrUpdate200Response | VirtualApplianceSitesCreateOrUpdate201Response - | VirtualApplianceSitesCreateOrUpdateDefaultResponse + | VirtualApplianceSitesCreateOrUpdateDefaultResponse, ): response is VirtualApplianceSitesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: VirtualApplianceSitesList200Response | VirtualApplianceSitesListDefaultResponse + response: VirtualApplianceSitesList200Response | VirtualApplianceSitesListDefaultResponse, ): response is VirtualApplianceSitesListDefaultResponse; export function isUnexpected( - response: VirtualApplianceSkusList200Response | VirtualApplianceSkusListDefaultResponse + response: VirtualApplianceSkusList200Response | VirtualApplianceSkusListDefaultResponse, ): response is VirtualApplianceSkusListDefaultResponse; export function isUnexpected( - response: VirtualApplianceSkusGet200Response | VirtualApplianceSkusGetDefaultResponse + response: VirtualApplianceSkusGet200Response | VirtualApplianceSkusGetDefaultResponse, ): response is VirtualApplianceSkusGetDefaultResponse; export function isUnexpected( response: | InboundSecurityRuleCreateOrUpdate200Response | InboundSecurityRuleCreateOrUpdate201Response - | InboundSecurityRuleCreateOrUpdateDefaultResponse + | InboundSecurityRuleCreateOrUpdateDefaultResponse, ): response is InboundSecurityRuleCreateOrUpdateDefaultResponse; export function isUnexpected( response: | NetworkWatchersCreateOrUpdate200Response | NetworkWatchersCreateOrUpdate201Response - | NetworkWatchersCreateOrUpdateDefaultResponse + | NetworkWatchersCreateOrUpdateDefaultResponse, ): response is NetworkWatchersCreateOrUpdateDefaultResponse; export function isUnexpected( - response: NetworkWatchersGet200Response | NetworkWatchersGetDefaultResponse + response: NetworkWatchersGet200Response | NetworkWatchersGetDefaultResponse, ): response is NetworkWatchersGetDefaultResponse; export function isUnexpected( response: | NetworkWatchersDelete202Response | NetworkWatchersDelete204Response - | NetworkWatchersDeleteDefaultResponse + | NetworkWatchersDeleteDefaultResponse, ): response is NetworkWatchersDeleteDefaultResponse; export function isUnexpected( - response: NetworkWatchersUpdateTags200Response | NetworkWatchersUpdateTagsDefaultResponse + response: NetworkWatchersUpdateTags200Response | NetworkWatchersUpdateTagsDefaultResponse, ): response is NetworkWatchersUpdateTagsDefaultResponse; export function isUnexpected( - response: NetworkWatchersList200Response | NetworkWatchersListDefaultResponse + response: NetworkWatchersList200Response | NetworkWatchersListDefaultResponse, ): response is NetworkWatchersListDefaultResponse; export function isUnexpected( - response: NetworkWatchersListAll200Response | NetworkWatchersListAllDefaultResponse + response: NetworkWatchersListAll200Response | NetworkWatchersListAllDefaultResponse, ): response is NetworkWatchersListAllDefaultResponse; export function isUnexpected( - response: NetworkWatchersGetTopology200Response | NetworkWatchersGetTopologyDefaultResponse + response: NetworkWatchersGetTopology200Response | NetworkWatchersGetTopologyDefaultResponse, ): response is NetworkWatchersGetTopologyDefaultResponse; export function isUnexpected( response: | NetworkWatchersVerifyIPFlow200Response | NetworkWatchersVerifyIPFlow202Response - | NetworkWatchersVerifyIPFlowDefaultResponse + | NetworkWatchersVerifyIPFlowDefaultResponse, ): response is NetworkWatchersVerifyIPFlowDefaultResponse; export function isUnexpected( response: | NetworkWatchersGetNextHop200Response | NetworkWatchersGetNextHop202Response - | NetworkWatchersGetNextHopDefaultResponse + | NetworkWatchersGetNextHopDefaultResponse, ): response is NetworkWatchersGetNextHopDefaultResponse; export function isUnexpected( response: | NetworkWatchersGetVMSecurityRules200Response | NetworkWatchersGetVMSecurityRules202Response - | NetworkWatchersGetVMSecurityRulesDefaultResponse + | NetworkWatchersGetVMSecurityRulesDefaultResponse, ): response is NetworkWatchersGetVMSecurityRulesDefaultResponse; export function isUnexpected( response: | NetworkWatchersGetTroubleshooting200Response | NetworkWatchersGetTroubleshooting202Response - | NetworkWatchersGetTroubleshootingDefaultResponse + | NetworkWatchersGetTroubleshootingDefaultResponse, ): response is NetworkWatchersGetTroubleshootingDefaultResponse; export function isUnexpected( response: | NetworkWatchersGetTroubleshootingResult200Response | NetworkWatchersGetTroubleshootingResult202Response - | NetworkWatchersGetTroubleshootingResultDefaultResponse + | NetworkWatchersGetTroubleshootingResultDefaultResponse, ): response is NetworkWatchersGetTroubleshootingResultDefaultResponse; export function isUnexpected( response: | NetworkWatchersSetFlowLogConfiguration200Response | NetworkWatchersSetFlowLogConfiguration202Response - | NetworkWatchersSetFlowLogConfigurationDefaultResponse + | NetworkWatchersSetFlowLogConfigurationDefaultResponse, ): response is NetworkWatchersSetFlowLogConfigurationDefaultResponse; export function isUnexpected( response: | NetworkWatchersGetFlowLogStatus200Response | NetworkWatchersGetFlowLogStatus202Response - | NetworkWatchersGetFlowLogStatusDefaultResponse + | NetworkWatchersGetFlowLogStatusDefaultResponse, ): response is NetworkWatchersGetFlowLogStatusDefaultResponse; export function isUnexpected( response: | NetworkWatchersCheckConnectivity200Response | NetworkWatchersCheckConnectivity202Response - | NetworkWatchersCheckConnectivityDefaultResponse + | NetworkWatchersCheckConnectivityDefaultResponse, ): response is NetworkWatchersCheckConnectivityDefaultResponse; export function isUnexpected( response: | NetworkWatchersGetAzureReachabilityReport200Response | NetworkWatchersGetAzureReachabilityReport202Response - | NetworkWatchersGetAzureReachabilityReportDefaultResponse + | NetworkWatchersGetAzureReachabilityReportDefaultResponse, ): response is NetworkWatchersGetAzureReachabilityReportDefaultResponse; export function isUnexpected( response: | NetworkWatchersListAvailableProviders200Response | NetworkWatchersListAvailableProviders202Response - | NetworkWatchersListAvailableProvidersDefaultResponse + | NetworkWatchersListAvailableProvidersDefaultResponse, ): response is NetworkWatchersListAvailableProvidersDefaultResponse; export function isUnexpected( response: | NetworkWatchersGetNetworkConfigurationDiagnostic200Response | NetworkWatchersGetNetworkConfigurationDiagnostic202Response - | NetworkWatchersGetNetworkConfigurationDiagnosticDefaultResponse + | NetworkWatchersGetNetworkConfigurationDiagnosticDefaultResponse, ): response is NetworkWatchersGetNetworkConfigurationDiagnosticDefaultResponse; export function isUnexpected( - response: PacketCapturesCreate201Response | PacketCapturesCreateDefaultResponse + response: PacketCapturesCreate201Response | PacketCapturesCreateDefaultResponse, ): response is PacketCapturesCreateDefaultResponse; export function isUnexpected( - response: PacketCapturesGet200Response | PacketCapturesGetDefaultResponse + response: PacketCapturesGet200Response | PacketCapturesGetDefaultResponse, ): response is PacketCapturesGetDefaultResponse; export function isUnexpected( response: | PacketCapturesDelete202Response | PacketCapturesDelete204Response - | PacketCapturesDeleteDefaultResponse + | PacketCapturesDeleteDefaultResponse, ): response is PacketCapturesDeleteDefaultResponse; export function isUnexpected( response: | PacketCapturesStop200Response | PacketCapturesStop202Response - | PacketCapturesStopDefaultResponse + | PacketCapturesStopDefaultResponse, ): response is PacketCapturesStopDefaultResponse; export function isUnexpected( response: | PacketCapturesGetStatus200Response | PacketCapturesGetStatus202Response - | PacketCapturesGetStatusDefaultResponse + | PacketCapturesGetStatusDefaultResponse, ): response is PacketCapturesGetStatusDefaultResponse; export function isUnexpected( - response: PacketCapturesList200Response | PacketCapturesListDefaultResponse + response: PacketCapturesList200Response | PacketCapturesListDefaultResponse, ): response is PacketCapturesListDefaultResponse; export function isUnexpected( response: | ConnectionMonitorsCreateOrUpdate200Response | ConnectionMonitorsCreateOrUpdate201Response - | ConnectionMonitorsCreateOrUpdateDefaultResponse + | ConnectionMonitorsCreateOrUpdateDefaultResponse, ): response is ConnectionMonitorsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: ConnectionMonitorsGet200Response | ConnectionMonitorsGetDefaultResponse + response: ConnectionMonitorsGet200Response | ConnectionMonitorsGetDefaultResponse, ): response is ConnectionMonitorsGetDefaultResponse; export function isUnexpected( response: | ConnectionMonitorsDelete202Response | ConnectionMonitorsDelete204Response - | ConnectionMonitorsDeleteDefaultResponse + | ConnectionMonitorsDeleteDefaultResponse, ): response is ConnectionMonitorsDeleteDefaultResponse; export function isUnexpected( - response: ConnectionMonitorsUpdateTags200Response | ConnectionMonitorsUpdateTagsDefaultResponse + response: ConnectionMonitorsUpdateTags200Response | ConnectionMonitorsUpdateTagsDefaultResponse, ): response is ConnectionMonitorsUpdateTagsDefaultResponse; export function isUnexpected( response: | ConnectionMonitorsStop200Response | ConnectionMonitorsStop202Response - | ConnectionMonitorsStopDefaultResponse + | ConnectionMonitorsStopDefaultResponse, ): response is ConnectionMonitorsStopDefaultResponse; export function isUnexpected( response: | ConnectionMonitorsStart200Response | ConnectionMonitorsStart202Response - | ConnectionMonitorsStartDefaultResponse + | ConnectionMonitorsStartDefaultResponse, ): response is ConnectionMonitorsStartDefaultResponse; export function isUnexpected( response: | ConnectionMonitorsQuery200Response | ConnectionMonitorsQuery202Response - | ConnectionMonitorsQueryDefaultResponse + | ConnectionMonitorsQueryDefaultResponse, ): response is ConnectionMonitorsQueryDefaultResponse; export function isUnexpected( - response: ConnectionMonitorsList200Response | ConnectionMonitorsListDefaultResponse + response: ConnectionMonitorsList200Response | ConnectionMonitorsListDefaultResponse, ): response is ConnectionMonitorsListDefaultResponse; export function isUnexpected( response: | FlowLogsCreateOrUpdate200Response | FlowLogsCreateOrUpdate201Response - | FlowLogsCreateOrUpdateDefaultResponse + | FlowLogsCreateOrUpdateDefaultResponse, ): response is FlowLogsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: FlowLogsUpdateTags200Response | FlowLogsUpdateTagsDefaultResponse + response: FlowLogsUpdateTags200Response | FlowLogsUpdateTagsDefaultResponse, ): response is FlowLogsUpdateTagsDefaultResponse; export function isUnexpected( - response: FlowLogsGet200Response | FlowLogsGetDefaultResponse + response: FlowLogsGet200Response | FlowLogsGetDefaultResponse, ): response is FlowLogsGetDefaultResponse; export function isUnexpected( - response: FlowLogsDelete202Response | FlowLogsDelete204Response | FlowLogsDeleteDefaultResponse + response: FlowLogsDelete202Response | FlowLogsDelete204Response | FlowLogsDeleteDefaultResponse, ): response is FlowLogsDeleteDefaultResponse; export function isUnexpected( - response: FlowLogsList200Response | FlowLogsListDefaultResponse + response: FlowLogsList200Response | FlowLogsListDefaultResponse, ): response is FlowLogsListDefaultResponse; export function isUnexpected( - response: OperationsList200Response | OperationsListDefaultResponse + response: OperationsList200Response | OperationsListDefaultResponse, ): response is OperationsListDefaultResponse; export function isUnexpected( response: | PrivateEndpointsDelete200Response | PrivateEndpointsDelete202Response | PrivateEndpointsDelete204Response - | PrivateEndpointsDeleteDefaultResponse + | PrivateEndpointsDeleteDefaultResponse, ): response is PrivateEndpointsDeleteDefaultResponse; export function isUnexpected( - response: PrivateEndpointsGet200Response | PrivateEndpointsGetDefaultResponse + response: PrivateEndpointsGet200Response | PrivateEndpointsGetDefaultResponse, ): response is PrivateEndpointsGetDefaultResponse; export function isUnexpected( response: | PrivateEndpointsCreateOrUpdate200Response | PrivateEndpointsCreateOrUpdate201Response - | PrivateEndpointsCreateOrUpdateDefaultResponse + | PrivateEndpointsCreateOrUpdateDefaultResponse, ): response is PrivateEndpointsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: PrivateEndpointsList200Response | PrivateEndpointsListDefaultResponse + response: PrivateEndpointsList200Response | PrivateEndpointsListDefaultResponse, ): response is PrivateEndpointsListDefaultResponse; export function isUnexpected( response: | PrivateEndpointsListBySubscription200Response - | PrivateEndpointsListBySubscriptionDefaultResponse + | PrivateEndpointsListBySubscriptionDefaultResponse, ): response is PrivateEndpointsListBySubscriptionDefaultResponse; export function isUnexpected( response: | AvailablePrivateEndpointTypesList200Response - | AvailablePrivateEndpointTypesListDefaultResponse + | AvailablePrivateEndpointTypesListDefaultResponse, ): response is AvailablePrivateEndpointTypesListDefaultResponse; export function isUnexpected( response: | AvailablePrivateEndpointTypesListByResourceGroup200Response - | AvailablePrivateEndpointTypesListByResourceGroupDefaultResponse + | AvailablePrivateEndpointTypesListByResourceGroupDefaultResponse, ): response is AvailablePrivateEndpointTypesListByResourceGroupDefaultResponse; export function isUnexpected( response: | PrivateDnsZoneGroupsDelete200Response | PrivateDnsZoneGroupsDelete202Response | PrivateDnsZoneGroupsDelete204Response - | PrivateDnsZoneGroupsDeleteDefaultResponse + | PrivateDnsZoneGroupsDeleteDefaultResponse, ): response is PrivateDnsZoneGroupsDeleteDefaultResponse; export function isUnexpected( - response: PrivateDnsZoneGroupsGet200Response | PrivateDnsZoneGroupsGetDefaultResponse + response: PrivateDnsZoneGroupsGet200Response | PrivateDnsZoneGroupsGetDefaultResponse, ): response is PrivateDnsZoneGroupsGetDefaultResponse; export function isUnexpected( response: | PrivateDnsZoneGroupsCreateOrUpdate200Response | PrivateDnsZoneGroupsCreateOrUpdate201Response - | PrivateDnsZoneGroupsCreateOrUpdateDefaultResponse + | PrivateDnsZoneGroupsCreateOrUpdateDefaultResponse, ): response is PrivateDnsZoneGroupsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: PrivateDnsZoneGroupsList200Response | PrivateDnsZoneGroupsListDefaultResponse + response: PrivateDnsZoneGroupsList200Response | PrivateDnsZoneGroupsListDefaultResponse, ): response is PrivateDnsZoneGroupsListDefaultResponse; export function isUnexpected( response: | PrivateLinkServicesDelete200Response | PrivateLinkServicesDelete202Response | PrivateLinkServicesDelete204Response - | PrivateLinkServicesDeleteDefaultResponse + | PrivateLinkServicesDeleteDefaultResponse, ): response is PrivateLinkServicesDeleteDefaultResponse; export function isUnexpected( - response: PrivateLinkServicesGet200Response | PrivateLinkServicesGetDefaultResponse + response: PrivateLinkServicesGet200Response | PrivateLinkServicesGetDefaultResponse, ): response is PrivateLinkServicesGetDefaultResponse; export function isUnexpected( response: | PrivateLinkServicesCreateOrUpdate200Response | PrivateLinkServicesCreateOrUpdate201Response - | PrivateLinkServicesCreateOrUpdateDefaultResponse + | PrivateLinkServicesCreateOrUpdateDefaultResponse, ): response is PrivateLinkServicesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: PrivateLinkServicesList200Response | PrivateLinkServicesListDefaultResponse + response: PrivateLinkServicesList200Response | PrivateLinkServicesListDefaultResponse, ): response is PrivateLinkServicesListDefaultResponse; export function isUnexpected( response: | PrivateLinkServicesListBySubscription200Response - | PrivateLinkServicesListBySubscriptionDefaultResponse + | PrivateLinkServicesListBySubscriptionDefaultResponse, ): response is PrivateLinkServicesListBySubscriptionDefaultResponse; export function isUnexpected( response: | PrivateLinkServicesGetPrivateEndpointConnection200Response - | PrivateLinkServicesGetPrivateEndpointConnectionDefaultResponse + | PrivateLinkServicesGetPrivateEndpointConnectionDefaultResponse, ): response is PrivateLinkServicesGetPrivateEndpointConnectionDefaultResponse; export function isUnexpected( response: | PrivateLinkServicesUpdatePrivateEndpointConnection200Response - | PrivateLinkServicesUpdatePrivateEndpointConnectionDefaultResponse + | PrivateLinkServicesUpdatePrivateEndpointConnectionDefaultResponse, ): response is PrivateLinkServicesUpdatePrivateEndpointConnectionDefaultResponse; export function isUnexpected( response: | PrivateLinkServicesDeletePrivateEndpointConnection200Response | PrivateLinkServicesDeletePrivateEndpointConnection202Response | PrivateLinkServicesDeletePrivateEndpointConnection204Response - | PrivateLinkServicesDeletePrivateEndpointConnectionDefaultResponse + | PrivateLinkServicesDeletePrivateEndpointConnectionDefaultResponse, ): response is PrivateLinkServicesDeletePrivateEndpointConnectionDefaultResponse; export function isUnexpected( response: | PrivateLinkServicesListPrivateEndpointConnections200Response - | PrivateLinkServicesListPrivateEndpointConnectionsDefaultResponse + | PrivateLinkServicesListPrivateEndpointConnectionsDefaultResponse, ): response is PrivateLinkServicesListPrivateEndpointConnectionsDefaultResponse; export function isUnexpected( response: | PrivateLinkServicesCheckPrivateLinkServiceVisibility200Response | PrivateLinkServicesCheckPrivateLinkServiceVisibility202Response - | PrivateLinkServicesCheckPrivateLinkServiceVisibilityDefaultResponse + | PrivateLinkServicesCheckPrivateLinkServiceVisibilityDefaultResponse, ): response is PrivateLinkServicesCheckPrivateLinkServiceVisibilityDefaultResponse; export function isUnexpected( response: | PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroup200Response | PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroup202Response - | PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupDefaultResponse + | PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupDefaultResponse, ): response is PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupDefaultResponse; export function isUnexpected( response: | PrivateLinkServicesListAutoApprovedPrivateLinkServices200Response - | PrivateLinkServicesListAutoApprovedPrivateLinkServicesDefaultResponse + | PrivateLinkServicesListAutoApprovedPrivateLinkServicesDefaultResponse, ): response is PrivateLinkServicesListAutoApprovedPrivateLinkServicesDefaultResponse; export function isUnexpected( response: | PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroup200Response - | PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupDefaultResponse + | PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupDefaultResponse, ): response is PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupDefaultResponse; export function isUnexpected( response: | PublicIPPrefixesDelete200Response | PublicIPPrefixesDelete202Response | PublicIPPrefixesDelete204Response - | PublicIPPrefixesDeleteDefaultResponse + | PublicIPPrefixesDeleteDefaultResponse, ): response is PublicIPPrefixesDeleteDefaultResponse; export function isUnexpected( - response: PublicIPPrefixesGet200Response | PublicIPPrefixesGetDefaultResponse + response: PublicIPPrefixesGet200Response | PublicIPPrefixesGetDefaultResponse, ): response is PublicIPPrefixesGetDefaultResponse; export function isUnexpected( response: | PublicIPPrefixesCreateOrUpdate200Response | PublicIPPrefixesCreateOrUpdate201Response - | PublicIPPrefixesCreateOrUpdateDefaultResponse + | PublicIPPrefixesCreateOrUpdateDefaultResponse, ): response is PublicIPPrefixesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: PublicIPPrefixesUpdateTags200Response | PublicIPPrefixesUpdateTagsDefaultResponse + response: PublicIPPrefixesUpdateTags200Response | PublicIPPrefixesUpdateTagsDefaultResponse, ): response is PublicIPPrefixesUpdateTagsDefaultResponse; export function isUnexpected( - response: PublicIPPrefixesListAll200Response | PublicIPPrefixesListAllDefaultResponse + response: PublicIPPrefixesListAll200Response | PublicIPPrefixesListAllDefaultResponse, ): response is PublicIPPrefixesListAllDefaultResponse; export function isUnexpected( - response: PublicIPPrefixesList200Response | PublicIPPrefixesListDefaultResponse + response: PublicIPPrefixesList200Response | PublicIPPrefixesListDefaultResponse, ): response is PublicIPPrefixesListDefaultResponse; export function isUnexpected( response: | RouteFiltersDelete200Response | RouteFiltersDelete202Response | RouteFiltersDelete204Response - | RouteFiltersDeleteDefaultResponse + | RouteFiltersDeleteDefaultResponse, ): response is RouteFiltersDeleteDefaultResponse; export function isUnexpected( - response: RouteFiltersGet200Response | RouteFiltersGetDefaultResponse + response: RouteFiltersGet200Response | RouteFiltersGetDefaultResponse, ): response is RouteFiltersGetDefaultResponse; export function isUnexpected( response: | RouteFiltersCreateOrUpdate200Response | RouteFiltersCreateOrUpdate201Response - | RouteFiltersCreateOrUpdateDefaultResponse + | RouteFiltersCreateOrUpdateDefaultResponse, ): response is RouteFiltersCreateOrUpdateDefaultResponse; export function isUnexpected( - response: RouteFiltersUpdateTags200Response | RouteFiltersUpdateTagsDefaultResponse + response: RouteFiltersUpdateTags200Response | RouteFiltersUpdateTagsDefaultResponse, ): response is RouteFiltersUpdateTagsDefaultResponse; export function isUnexpected( response: | RouteFiltersListByResourceGroup200Response - | RouteFiltersListByResourceGroupDefaultResponse + | RouteFiltersListByResourceGroupDefaultResponse, ): response is RouteFiltersListByResourceGroupDefaultResponse; export function isUnexpected( - response: RouteFiltersList200Response | RouteFiltersListDefaultResponse + response: RouteFiltersList200Response | RouteFiltersListDefaultResponse, ): response is RouteFiltersListDefaultResponse; export function isUnexpected( response: | RouteFilterRulesDelete200Response | RouteFilterRulesDelete202Response | RouteFilterRulesDelete204Response - | RouteFilterRulesDeleteDefaultResponse + | RouteFilterRulesDeleteDefaultResponse, ): response is RouteFilterRulesDeleteDefaultResponse; export function isUnexpected( - response: RouteFilterRulesGet200Response | RouteFilterRulesGetDefaultResponse + response: RouteFilterRulesGet200Response | RouteFilterRulesGetDefaultResponse, ): response is RouteFilterRulesGetDefaultResponse; export function isUnexpected( response: | RouteFilterRulesCreateOrUpdate200Response | RouteFilterRulesCreateOrUpdate201Response - | RouteFilterRulesCreateOrUpdateDefaultResponse + | RouteFilterRulesCreateOrUpdateDefaultResponse, ): response is RouteFilterRulesCreateOrUpdateDefaultResponse; export function isUnexpected( response: | RouteFilterRulesListByRouteFilter200Response - | RouteFilterRulesListByRouteFilterDefaultResponse + | RouteFilterRulesListByRouteFilterDefaultResponse, ): response is RouteFilterRulesListByRouteFilterDefaultResponse; export function isUnexpected( response: | RouteTablesDelete200Response | RouteTablesDelete202Response | RouteTablesDelete204Response - | RouteTablesDeleteDefaultResponse + | RouteTablesDeleteDefaultResponse, ): response is RouteTablesDeleteDefaultResponse; export function isUnexpected( - response: RouteTablesGet200Response | RouteTablesGetDefaultResponse + response: RouteTablesGet200Response | RouteTablesGetDefaultResponse, ): response is RouteTablesGetDefaultResponse; export function isUnexpected( response: | RouteTablesCreateOrUpdate200Response | RouteTablesCreateOrUpdate201Response - | RouteTablesCreateOrUpdateDefaultResponse + | RouteTablesCreateOrUpdateDefaultResponse, ): response is RouteTablesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: RouteTablesUpdateTags200Response | RouteTablesUpdateTagsDefaultResponse + response: RouteTablesUpdateTags200Response | RouteTablesUpdateTagsDefaultResponse, ): response is RouteTablesUpdateTagsDefaultResponse; export function isUnexpected( - response: RouteTablesList200Response | RouteTablesListDefaultResponse + response: RouteTablesList200Response | RouteTablesListDefaultResponse, ): response is RouteTablesListDefaultResponse; export function isUnexpected( - response: RouteTablesListAll200Response | RouteTablesListAllDefaultResponse + response: RouteTablesListAll200Response | RouteTablesListAllDefaultResponse, ): response is RouteTablesListAllDefaultResponse; export function isUnexpected( response: | RoutesDelete200Response | RoutesDelete202Response | RoutesDelete204Response - | RoutesDeleteDefaultResponse + | RoutesDeleteDefaultResponse, ): response is RoutesDeleteDefaultResponse; export function isUnexpected( - response: RoutesGet200Response | RoutesGetDefaultResponse + response: RoutesGet200Response | RoutesGetDefaultResponse, ): response is RoutesGetDefaultResponse; export function isUnexpected( response: | RoutesCreateOrUpdate200Response | RoutesCreateOrUpdate201Response - | RoutesCreateOrUpdateDefaultResponse + | RoutesCreateOrUpdateDefaultResponse, ): response is RoutesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: RoutesList200Response | RoutesListDefaultResponse + response: RoutesList200Response | RoutesListDefaultResponse, ): response is RoutesListDefaultResponse; export function isUnexpected( response: | SecurityPartnerProvidersDelete200Response | SecurityPartnerProvidersDelete202Response | SecurityPartnerProvidersDelete204Response - | SecurityPartnerProvidersDeleteDefaultResponse + | SecurityPartnerProvidersDeleteDefaultResponse, ): response is SecurityPartnerProvidersDeleteDefaultResponse; export function isUnexpected( - response: SecurityPartnerProvidersGet200Response | SecurityPartnerProvidersGetDefaultResponse + response: SecurityPartnerProvidersGet200Response | SecurityPartnerProvidersGetDefaultResponse, ): response is SecurityPartnerProvidersGetDefaultResponse; export function isUnexpected( response: | SecurityPartnerProvidersCreateOrUpdate200Response | SecurityPartnerProvidersCreateOrUpdate201Response - | SecurityPartnerProvidersCreateOrUpdateDefaultResponse + | SecurityPartnerProvidersCreateOrUpdateDefaultResponse, ): response is SecurityPartnerProvidersCreateOrUpdateDefaultResponse; export function isUnexpected( response: | SecurityPartnerProvidersUpdateTags200Response - | SecurityPartnerProvidersUpdateTagsDefaultResponse + | SecurityPartnerProvidersUpdateTagsDefaultResponse, ): response is SecurityPartnerProvidersUpdateTagsDefaultResponse; export function isUnexpected( response: | SecurityPartnerProvidersListByResourceGroup200Response - | SecurityPartnerProvidersListByResourceGroupDefaultResponse + | SecurityPartnerProvidersListByResourceGroupDefaultResponse, ): response is SecurityPartnerProvidersListByResourceGroupDefaultResponse; export function isUnexpected( - response: SecurityPartnerProvidersList200Response | SecurityPartnerProvidersListDefaultResponse + response: SecurityPartnerProvidersList200Response | SecurityPartnerProvidersListDefaultResponse, ): response is SecurityPartnerProvidersListDefaultResponse; export function isUnexpected( - response: BgpServiceCommunitiesList200Response | BgpServiceCommunitiesListDefaultResponse + response: BgpServiceCommunitiesList200Response | BgpServiceCommunitiesListDefaultResponse, ): response is BgpServiceCommunitiesListDefaultResponse; export function isUnexpected( response: | ServiceEndpointPoliciesDelete200Response | ServiceEndpointPoliciesDelete202Response | ServiceEndpointPoliciesDelete204Response - | ServiceEndpointPoliciesDeleteDefaultResponse + | ServiceEndpointPoliciesDeleteDefaultResponse, ): response is ServiceEndpointPoliciesDeleteDefaultResponse; export function isUnexpected( - response: ServiceEndpointPoliciesGet200Response | ServiceEndpointPoliciesGetDefaultResponse + response: ServiceEndpointPoliciesGet200Response | ServiceEndpointPoliciesGetDefaultResponse, ): response is ServiceEndpointPoliciesGetDefaultResponse; export function isUnexpected( response: | ServiceEndpointPoliciesCreateOrUpdate200Response | ServiceEndpointPoliciesCreateOrUpdate201Response - | ServiceEndpointPoliciesCreateOrUpdateDefaultResponse + | ServiceEndpointPoliciesCreateOrUpdateDefaultResponse, ): response is ServiceEndpointPoliciesCreateOrUpdateDefaultResponse; export function isUnexpected( response: | ServiceEndpointPoliciesUpdateTags200Response - | ServiceEndpointPoliciesUpdateTagsDefaultResponse + | ServiceEndpointPoliciesUpdateTagsDefaultResponse, ): response is ServiceEndpointPoliciesUpdateTagsDefaultResponse; export function isUnexpected( - response: ServiceEndpointPoliciesList200Response | ServiceEndpointPoliciesListDefaultResponse + response: ServiceEndpointPoliciesList200Response | ServiceEndpointPoliciesListDefaultResponse, ): response is ServiceEndpointPoliciesListDefaultResponse; export function isUnexpected( response: | ServiceEndpointPoliciesListByResourceGroup200Response - | ServiceEndpointPoliciesListByResourceGroupDefaultResponse + | ServiceEndpointPoliciesListByResourceGroupDefaultResponse, ): response is ServiceEndpointPoliciesListByResourceGroupDefaultResponse; export function isUnexpected( response: | ServiceEndpointPolicyDefinitionsDelete200Response | ServiceEndpointPolicyDefinitionsDelete202Response | ServiceEndpointPolicyDefinitionsDelete204Response - | ServiceEndpointPolicyDefinitionsDeleteDefaultResponse + | ServiceEndpointPolicyDefinitionsDeleteDefaultResponse, ): response is ServiceEndpointPolicyDefinitionsDeleteDefaultResponse; export function isUnexpected( response: | ServiceEndpointPolicyDefinitionsGet200Response - | ServiceEndpointPolicyDefinitionsGetDefaultResponse + | ServiceEndpointPolicyDefinitionsGetDefaultResponse, ): response is ServiceEndpointPolicyDefinitionsGetDefaultResponse; export function isUnexpected( response: | ServiceEndpointPolicyDefinitionsCreateOrUpdate200Response | ServiceEndpointPolicyDefinitionsCreateOrUpdate201Response - | ServiceEndpointPolicyDefinitionsCreateOrUpdateDefaultResponse + | ServiceEndpointPolicyDefinitionsCreateOrUpdateDefaultResponse, ): response is ServiceEndpointPolicyDefinitionsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | ServiceEndpointPolicyDefinitionsListByResourceGroup200Response - | ServiceEndpointPolicyDefinitionsListByResourceGroupDefaultResponse + | ServiceEndpointPolicyDefinitionsListByResourceGroupDefaultResponse, ): response is ServiceEndpointPolicyDefinitionsListByResourceGroupDefaultResponse; export function isUnexpected( - response: ServiceTagsList200Response | ServiceTagsListDefaultResponse + response: ServiceTagsList200Response | ServiceTagsListDefaultResponse, ): response is ServiceTagsListDefaultResponse; export function isUnexpected( - response: ServiceTagInformationList200Response | ServiceTagInformationListDefaultResponse + response: ServiceTagInformationList200Response | ServiceTagInformationListDefaultResponse, ): response is ServiceTagInformationListDefaultResponse; export function isUnexpected( - response: UsagesList200Response | UsagesListDefaultResponse + response: UsagesList200Response | UsagesListDefaultResponse, ): response is UsagesListDefaultResponse; export function isUnexpected( response: | VirtualNetworksDelete200Response | VirtualNetworksDelete202Response | VirtualNetworksDelete204Response - | VirtualNetworksDeleteDefaultResponse + | VirtualNetworksDeleteDefaultResponse, ): response is VirtualNetworksDeleteDefaultResponse; export function isUnexpected( - response: VirtualNetworksGet200Response | VirtualNetworksGetDefaultResponse + response: VirtualNetworksGet200Response | VirtualNetworksGetDefaultResponse, ): response is VirtualNetworksGetDefaultResponse; export function isUnexpected( response: | VirtualNetworksCreateOrUpdate200Response | VirtualNetworksCreateOrUpdate201Response - | VirtualNetworksCreateOrUpdateDefaultResponse + | VirtualNetworksCreateOrUpdateDefaultResponse, ): response is VirtualNetworksCreateOrUpdateDefaultResponse; export function isUnexpected( - response: VirtualNetworksUpdateTags200Response | VirtualNetworksUpdateTagsDefaultResponse + response: VirtualNetworksUpdateTags200Response | VirtualNetworksUpdateTagsDefaultResponse, ): response is VirtualNetworksUpdateTagsDefaultResponse; export function isUnexpected( - response: VirtualNetworksListAll200Response | VirtualNetworksListAllDefaultResponse + response: VirtualNetworksListAll200Response | VirtualNetworksListAllDefaultResponse, ): response is VirtualNetworksListAllDefaultResponse; export function isUnexpected( - response: VirtualNetworksList200Response | VirtualNetworksListDefaultResponse + response: VirtualNetworksList200Response | VirtualNetworksListDefaultResponse, ): response is VirtualNetworksListDefaultResponse; export function isUnexpected( response: | VirtualNetworksCheckIPAddressAvailability200Response - | VirtualNetworksCheckIPAddressAvailabilityDefaultResponse + | VirtualNetworksCheckIPAddressAvailabilityDefaultResponse, ): response is VirtualNetworksCheckIPAddressAvailabilityDefaultResponse; export function isUnexpected( - response: VirtualNetworksListUsage200Response | VirtualNetworksListUsageDefaultResponse + response: VirtualNetworksListUsage200Response | VirtualNetworksListUsageDefaultResponse, ): response is VirtualNetworksListUsageDefaultResponse; export function isUnexpected( response: | VirtualNetworksListDdosProtectionStatus200Response | VirtualNetworksListDdosProtectionStatus202Response - | VirtualNetworksListDdosProtectionStatusDefaultResponse + | VirtualNetworksListDdosProtectionStatusDefaultResponse, ): response is VirtualNetworksListDdosProtectionStatusDefaultResponse; export function isUnexpected( response: | SubnetsDelete200Response | SubnetsDelete202Response | SubnetsDelete204Response - | SubnetsDeleteDefaultResponse + | SubnetsDeleteDefaultResponse, ): response is SubnetsDeleteDefaultResponse; export function isUnexpected( - response: SubnetsGet200Response | SubnetsGetDefaultResponse + response: SubnetsGet200Response | SubnetsGetDefaultResponse, ): response is SubnetsGetDefaultResponse; export function isUnexpected( response: | SubnetsCreateOrUpdate200Response | SubnetsCreateOrUpdate201Response - | SubnetsCreateOrUpdateDefaultResponse + | SubnetsCreateOrUpdateDefaultResponse, ): response is SubnetsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | SubnetsPrepareNetworkPolicies200Response | SubnetsPrepareNetworkPolicies202Response - | SubnetsPrepareNetworkPoliciesDefaultResponse + | SubnetsPrepareNetworkPoliciesDefaultResponse, ): response is SubnetsPrepareNetworkPoliciesDefaultResponse; export function isUnexpected( response: | SubnetsUnprepareNetworkPolicies200Response | SubnetsUnprepareNetworkPolicies202Response - | SubnetsUnprepareNetworkPoliciesDefaultResponse + | SubnetsUnprepareNetworkPoliciesDefaultResponse, ): response is SubnetsUnprepareNetworkPoliciesDefaultResponse; export function isUnexpected( - response: SubnetsList200Response | SubnetsListDefaultResponse + response: SubnetsList200Response | SubnetsListDefaultResponse, ): response is SubnetsListDefaultResponse; export function isUnexpected( - response: ResourceNavigationLinksList200Response | ResourceNavigationLinksListDefaultResponse + response: ResourceNavigationLinksList200Response | ResourceNavigationLinksListDefaultResponse, ): response is ResourceNavigationLinksListDefaultResponse; export function isUnexpected( - response: ServiceAssociationLinksList200Response | ServiceAssociationLinksListDefaultResponse + response: ServiceAssociationLinksList200Response | ServiceAssociationLinksListDefaultResponse, ): response is ServiceAssociationLinksListDefaultResponse; export function isUnexpected( response: | VirtualNetworkPeeringsDelete200Response | VirtualNetworkPeeringsDelete202Response | VirtualNetworkPeeringsDelete204Response - | VirtualNetworkPeeringsDeleteDefaultResponse + | VirtualNetworkPeeringsDeleteDefaultResponse, ): response is VirtualNetworkPeeringsDeleteDefaultResponse; export function isUnexpected( - response: VirtualNetworkPeeringsGet200Response | VirtualNetworkPeeringsGetDefaultResponse + response: VirtualNetworkPeeringsGet200Response | VirtualNetworkPeeringsGetDefaultResponse, ): response is VirtualNetworkPeeringsGetDefaultResponse; export function isUnexpected( response: | VirtualNetworkPeeringsCreateOrUpdate200Response | VirtualNetworkPeeringsCreateOrUpdate201Response - | VirtualNetworkPeeringsCreateOrUpdateDefaultResponse + | VirtualNetworkPeeringsCreateOrUpdateDefaultResponse, ): response is VirtualNetworkPeeringsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: VirtualNetworkPeeringsList200Response | VirtualNetworkPeeringsListDefaultResponse + response: VirtualNetworkPeeringsList200Response | VirtualNetworkPeeringsListDefaultResponse, ): response is VirtualNetworkPeeringsListDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysCreateOrUpdate200Response | VirtualNetworkGatewaysCreateOrUpdate201Response - | VirtualNetworkGatewaysCreateOrUpdateDefaultResponse + | VirtualNetworkGatewaysCreateOrUpdateDefaultResponse, ): response is VirtualNetworkGatewaysCreateOrUpdateDefaultResponse; export function isUnexpected( - response: VirtualNetworkGatewaysGet200Response | VirtualNetworkGatewaysGetDefaultResponse + response: VirtualNetworkGatewaysGet200Response | VirtualNetworkGatewaysGetDefaultResponse, ): response is VirtualNetworkGatewaysGetDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysDelete200Response | VirtualNetworkGatewaysDelete202Response | VirtualNetworkGatewaysDelete204Response - | VirtualNetworkGatewaysDeleteDefaultResponse + | VirtualNetworkGatewaysDeleteDefaultResponse, ): response is VirtualNetworkGatewaysDeleteDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysUpdateTags200Response | VirtualNetworkGatewaysUpdateTags202Response - | VirtualNetworkGatewaysUpdateTagsDefaultResponse + | VirtualNetworkGatewaysUpdateTagsDefaultResponse, ): response is VirtualNetworkGatewaysUpdateTagsDefaultResponse; export function isUnexpected( - response: VirtualNetworkGatewaysList200Response | VirtualNetworkGatewaysListDefaultResponse + response: VirtualNetworkGatewaysList200Response | VirtualNetworkGatewaysListDefaultResponse, ): response is VirtualNetworkGatewaysListDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysListConnections200Response - | VirtualNetworkGatewaysListConnectionsDefaultResponse + | VirtualNetworkGatewaysListConnectionsDefaultResponse, ): response is VirtualNetworkGatewaysListConnectionsDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysReset200Response | VirtualNetworkGatewaysReset202Response - | VirtualNetworkGatewaysResetDefaultResponse + | VirtualNetworkGatewaysResetDefaultResponse, ): response is VirtualNetworkGatewaysResetDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysResetVpnClientSharedKey200Response | VirtualNetworkGatewaysResetVpnClientSharedKey202Response - | VirtualNetworkGatewaysResetVpnClientSharedKeyDefaultResponse + | VirtualNetworkGatewaysResetVpnClientSharedKeyDefaultResponse, ): response is VirtualNetworkGatewaysResetVpnClientSharedKeyDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysGeneratevpnclientpackage200Response | VirtualNetworkGatewaysGeneratevpnclientpackage202Response - | VirtualNetworkGatewaysGeneratevpnclientpackageDefaultResponse + | VirtualNetworkGatewaysGeneratevpnclientpackageDefaultResponse, ): response is VirtualNetworkGatewaysGeneratevpnclientpackageDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysGenerateVpnProfile200Response | VirtualNetworkGatewaysGenerateVpnProfile202Response - | VirtualNetworkGatewaysGenerateVpnProfileDefaultResponse + | VirtualNetworkGatewaysGenerateVpnProfileDefaultResponse, ): response is VirtualNetworkGatewaysGenerateVpnProfileDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysGetVpnProfilePackageUrl200Response | VirtualNetworkGatewaysGetVpnProfilePackageUrl202Response - | VirtualNetworkGatewaysGetVpnProfilePackageUrlDefaultResponse + | VirtualNetworkGatewaysGetVpnProfilePackageUrlDefaultResponse, ): response is VirtualNetworkGatewaysGetVpnProfilePackageUrlDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysGetBgpPeerStatus200Response | VirtualNetworkGatewaysGetBgpPeerStatus202Response - | VirtualNetworkGatewaysGetBgpPeerStatusDefaultResponse + | VirtualNetworkGatewaysGetBgpPeerStatusDefaultResponse, ): response is VirtualNetworkGatewaysGetBgpPeerStatusDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysSupportedVpnDevices200Response - | VirtualNetworkGatewaysSupportedVpnDevicesDefaultResponse + | VirtualNetworkGatewaysSupportedVpnDevicesDefaultResponse, ): response is VirtualNetworkGatewaysSupportedVpnDevicesDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysGetLearnedRoutes200Response | VirtualNetworkGatewaysGetLearnedRoutes202Response - | VirtualNetworkGatewaysGetLearnedRoutesDefaultResponse + | VirtualNetworkGatewaysGetLearnedRoutesDefaultResponse, ): response is VirtualNetworkGatewaysGetLearnedRoutesDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysGetAdvertisedRoutes200Response | VirtualNetworkGatewaysGetAdvertisedRoutes202Response - | VirtualNetworkGatewaysGetAdvertisedRoutesDefaultResponse + | VirtualNetworkGatewaysGetAdvertisedRoutesDefaultResponse, ): response is VirtualNetworkGatewaysGetAdvertisedRoutesDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysSetVpnclientIpsecParameters200Response | VirtualNetworkGatewaysSetVpnclientIpsecParameters202Response - | VirtualNetworkGatewaysSetVpnclientIpsecParametersDefaultResponse + | VirtualNetworkGatewaysSetVpnclientIpsecParametersDefaultResponse, ): response is VirtualNetworkGatewaysSetVpnclientIpsecParametersDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysGetVpnclientIpsecParameters200Response - | VirtualNetworkGatewaysGetVpnclientIpsecParametersDefaultResponse + | VirtualNetworkGatewaysGetVpnclientIpsecParametersDefaultResponse, ): response is VirtualNetworkGatewaysGetVpnclientIpsecParametersDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysVpnDeviceConfigurationScript200Response - | VirtualNetworkGatewaysVpnDeviceConfigurationScriptDefaultResponse + | VirtualNetworkGatewaysVpnDeviceConfigurationScriptDefaultResponse, ): response is VirtualNetworkGatewaysVpnDeviceConfigurationScriptDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysStartPacketCapture200Response | VirtualNetworkGatewaysStartPacketCapture202Response - | VirtualNetworkGatewaysStartPacketCaptureDefaultResponse + | VirtualNetworkGatewaysStartPacketCaptureDefaultResponse, ): response is VirtualNetworkGatewaysStartPacketCaptureDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysStopPacketCapture200Response | VirtualNetworkGatewaysStopPacketCapture202Response - | VirtualNetworkGatewaysStopPacketCaptureDefaultResponse + | VirtualNetworkGatewaysStopPacketCaptureDefaultResponse, ): response is VirtualNetworkGatewaysStopPacketCaptureDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysGetVpnclientConnectionHealth200Response | VirtualNetworkGatewaysGetVpnclientConnectionHealth202Response - | VirtualNetworkGatewaysGetVpnclientConnectionHealthDefaultResponse + | VirtualNetworkGatewaysGetVpnclientConnectionHealthDefaultResponse, ): response is VirtualNetworkGatewaysGetVpnclientConnectionHealthDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnections200Response | VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnections202Response - | VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsDefaultResponse + | VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsDefaultResponse, ): response is VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewayConnectionsCreateOrUpdate200Response | VirtualNetworkGatewayConnectionsCreateOrUpdate201Response - | VirtualNetworkGatewayConnectionsCreateOrUpdateDefaultResponse + | VirtualNetworkGatewayConnectionsCreateOrUpdateDefaultResponse, ): response is VirtualNetworkGatewayConnectionsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewayConnectionsGet200Response - | VirtualNetworkGatewayConnectionsGetDefaultResponse + | VirtualNetworkGatewayConnectionsGetDefaultResponse, ): response is VirtualNetworkGatewayConnectionsGetDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewayConnectionsDelete200Response | VirtualNetworkGatewayConnectionsDelete202Response | VirtualNetworkGatewayConnectionsDelete204Response - | VirtualNetworkGatewayConnectionsDeleteDefaultResponse + | VirtualNetworkGatewayConnectionsDeleteDefaultResponse, ): response is VirtualNetworkGatewayConnectionsDeleteDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewayConnectionsUpdateTags200Response | VirtualNetworkGatewayConnectionsUpdateTags202Response - | VirtualNetworkGatewayConnectionsUpdateTagsDefaultResponse + | VirtualNetworkGatewayConnectionsUpdateTagsDefaultResponse, ): response is VirtualNetworkGatewayConnectionsUpdateTagsDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewayConnectionsSetSharedKey200Response | VirtualNetworkGatewayConnectionsSetSharedKey201Response - | VirtualNetworkGatewayConnectionsSetSharedKeyDefaultResponse + | VirtualNetworkGatewayConnectionsSetSharedKeyDefaultResponse, ): response is VirtualNetworkGatewayConnectionsSetSharedKeyDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewayConnectionsGetSharedKey200Response - | VirtualNetworkGatewayConnectionsGetSharedKeyDefaultResponse + | VirtualNetworkGatewayConnectionsGetSharedKeyDefaultResponse, ): response is VirtualNetworkGatewayConnectionsGetSharedKeyDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewayConnectionsList200Response - | VirtualNetworkGatewayConnectionsListDefaultResponse + | VirtualNetworkGatewayConnectionsListDefaultResponse, ): response is VirtualNetworkGatewayConnectionsListDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewayConnectionsResetSharedKey200Response | VirtualNetworkGatewayConnectionsResetSharedKey202Response - | VirtualNetworkGatewayConnectionsResetSharedKeyDefaultResponse + | VirtualNetworkGatewayConnectionsResetSharedKeyDefaultResponse, ): response is VirtualNetworkGatewayConnectionsResetSharedKeyDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewayConnectionsStartPacketCapture200Response | VirtualNetworkGatewayConnectionsStartPacketCapture202Response - | VirtualNetworkGatewayConnectionsStartPacketCaptureDefaultResponse + | VirtualNetworkGatewayConnectionsStartPacketCaptureDefaultResponse, ): response is VirtualNetworkGatewayConnectionsStartPacketCaptureDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewayConnectionsStopPacketCapture200Response | VirtualNetworkGatewayConnectionsStopPacketCapture202Response - | VirtualNetworkGatewayConnectionsStopPacketCaptureDefaultResponse + | VirtualNetworkGatewayConnectionsStopPacketCaptureDefaultResponse, ): response is VirtualNetworkGatewayConnectionsStopPacketCaptureDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewayConnectionsGetIkeSas200Response | VirtualNetworkGatewayConnectionsGetIkeSas202Response - | VirtualNetworkGatewayConnectionsGetIkeSasDefaultResponse + | VirtualNetworkGatewayConnectionsGetIkeSasDefaultResponse, ): response is VirtualNetworkGatewayConnectionsGetIkeSasDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewayConnectionsResetConnection202Response - | VirtualNetworkGatewayConnectionsResetConnectionDefaultResponse + | VirtualNetworkGatewayConnectionsResetConnectionDefaultResponse, ): response is VirtualNetworkGatewayConnectionsResetConnectionDefaultResponse; export function isUnexpected( response: | LocalNetworkGatewaysCreateOrUpdate200Response | LocalNetworkGatewaysCreateOrUpdate201Response - | LocalNetworkGatewaysCreateOrUpdateDefaultResponse + | LocalNetworkGatewaysCreateOrUpdateDefaultResponse, ): response is LocalNetworkGatewaysCreateOrUpdateDefaultResponse; export function isUnexpected( - response: LocalNetworkGatewaysGet200Response | LocalNetworkGatewaysGetDefaultResponse + response: LocalNetworkGatewaysGet200Response | LocalNetworkGatewaysGetDefaultResponse, ): response is LocalNetworkGatewaysGetDefaultResponse; export function isUnexpected( response: | LocalNetworkGatewaysDelete200Response | LocalNetworkGatewaysDelete202Response | LocalNetworkGatewaysDelete204Response - | LocalNetworkGatewaysDeleteDefaultResponse + | LocalNetworkGatewaysDeleteDefaultResponse, ): response is LocalNetworkGatewaysDeleteDefaultResponse; export function isUnexpected( response: | LocalNetworkGatewaysUpdateTags200Response - | LocalNetworkGatewaysUpdateTagsDefaultResponse + | LocalNetworkGatewaysUpdateTagsDefaultResponse, ): response is LocalNetworkGatewaysUpdateTagsDefaultResponse; export function isUnexpected( - response: LocalNetworkGatewaysList200Response | LocalNetworkGatewaysListDefaultResponse + response: LocalNetworkGatewaysList200Response | LocalNetworkGatewaysListDefaultResponse, ): response is LocalNetworkGatewaysListDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewayNatRulesGet200Response - | VirtualNetworkGatewayNatRulesGetDefaultResponse + | VirtualNetworkGatewayNatRulesGetDefaultResponse, ): response is VirtualNetworkGatewayNatRulesGetDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewayNatRulesCreateOrUpdate200Response | VirtualNetworkGatewayNatRulesCreateOrUpdate201Response - | VirtualNetworkGatewayNatRulesCreateOrUpdateDefaultResponse + | VirtualNetworkGatewayNatRulesCreateOrUpdateDefaultResponse, ): response is VirtualNetworkGatewayNatRulesCreateOrUpdateDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewayNatRulesDelete200Response | VirtualNetworkGatewayNatRulesDelete202Response | VirtualNetworkGatewayNatRulesDelete204Response - | VirtualNetworkGatewayNatRulesDeleteDefaultResponse + | VirtualNetworkGatewayNatRulesDeleteDefaultResponse, ): response is VirtualNetworkGatewayNatRulesDeleteDefaultResponse; export function isUnexpected( response: | VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway200Response - | VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayDefaultResponse + | VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayDefaultResponse, ): response is VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayDefaultResponse; export function isUnexpected( response: | VirtualNetworkTapsDelete200Response | VirtualNetworkTapsDelete202Response | VirtualNetworkTapsDelete204Response - | VirtualNetworkTapsDeleteDefaultResponse + | VirtualNetworkTapsDeleteDefaultResponse, ): response is VirtualNetworkTapsDeleteDefaultResponse; export function isUnexpected( - response: VirtualNetworkTapsGet200Response | VirtualNetworkTapsGetDefaultResponse + response: VirtualNetworkTapsGet200Response | VirtualNetworkTapsGetDefaultResponse, ): response is VirtualNetworkTapsGetDefaultResponse; export function isUnexpected( response: | VirtualNetworkTapsCreateOrUpdate200Response | VirtualNetworkTapsCreateOrUpdate201Response - | VirtualNetworkTapsCreateOrUpdateDefaultResponse + | VirtualNetworkTapsCreateOrUpdateDefaultResponse, ): response is VirtualNetworkTapsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: VirtualNetworkTapsUpdateTags200Response | VirtualNetworkTapsUpdateTagsDefaultResponse + response: VirtualNetworkTapsUpdateTags200Response | VirtualNetworkTapsUpdateTagsDefaultResponse, ): response is VirtualNetworkTapsUpdateTagsDefaultResponse; export function isUnexpected( - response: VirtualNetworkTapsListAll200Response | VirtualNetworkTapsListAllDefaultResponse + response: VirtualNetworkTapsListAll200Response | VirtualNetworkTapsListAllDefaultResponse, ): response is VirtualNetworkTapsListAllDefaultResponse; export function isUnexpected( response: | VirtualNetworkTapsListByResourceGroup200Response - | VirtualNetworkTapsListByResourceGroupDefaultResponse + | VirtualNetworkTapsListByResourceGroupDefaultResponse, ): response is VirtualNetworkTapsListByResourceGroupDefaultResponse; export function isUnexpected( response: | VirtualRoutersDelete200Response | VirtualRoutersDelete202Response | VirtualRoutersDelete204Response - | VirtualRoutersDeleteDefaultResponse + | VirtualRoutersDeleteDefaultResponse, ): response is VirtualRoutersDeleteDefaultResponse; export function isUnexpected( - response: VirtualRoutersGet200Response | VirtualRoutersGetDefaultResponse + response: VirtualRoutersGet200Response | VirtualRoutersGetDefaultResponse, ): response is VirtualRoutersGetDefaultResponse; export function isUnexpected( response: | VirtualRoutersCreateOrUpdate200Response | VirtualRoutersCreateOrUpdate201Response - | VirtualRoutersCreateOrUpdateDefaultResponse + | VirtualRoutersCreateOrUpdateDefaultResponse, ): response is VirtualRoutersCreateOrUpdateDefaultResponse; export function isUnexpected( response: | VirtualRoutersListByResourceGroup200Response - | VirtualRoutersListByResourceGroupDefaultResponse + | VirtualRoutersListByResourceGroupDefaultResponse, ): response is VirtualRoutersListByResourceGroupDefaultResponse; export function isUnexpected( - response: VirtualRoutersList200Response | VirtualRoutersListDefaultResponse + response: VirtualRoutersList200Response | VirtualRoutersListDefaultResponse, ): response is VirtualRoutersListDefaultResponse; export function isUnexpected( response: | VirtualRouterPeeringsDelete200Response | VirtualRouterPeeringsDelete202Response | VirtualRouterPeeringsDelete204Response - | VirtualRouterPeeringsDeleteDefaultResponse + | VirtualRouterPeeringsDeleteDefaultResponse, ): response is VirtualRouterPeeringsDeleteDefaultResponse; export function isUnexpected( - response: VirtualRouterPeeringsGet200Response | VirtualRouterPeeringsGetDefaultResponse + response: VirtualRouterPeeringsGet200Response | VirtualRouterPeeringsGetDefaultResponse, ): response is VirtualRouterPeeringsGetDefaultResponse; export function isUnexpected( response: | VirtualRouterPeeringsCreateOrUpdate200Response | VirtualRouterPeeringsCreateOrUpdate201Response - | VirtualRouterPeeringsCreateOrUpdateDefaultResponse + | VirtualRouterPeeringsCreateOrUpdateDefaultResponse, ): response is VirtualRouterPeeringsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: VirtualRouterPeeringsList200Response | VirtualRouterPeeringsListDefaultResponse + response: VirtualRouterPeeringsList200Response | VirtualRouterPeeringsListDefaultResponse, ): response is VirtualRouterPeeringsListDefaultResponse; export function isUnexpected( - response: VirtualWansGet200Response | VirtualWansGetDefaultResponse + response: VirtualWansGet200Response | VirtualWansGetDefaultResponse, ): response is VirtualWansGetDefaultResponse; export function isUnexpected( response: | VirtualWansCreateOrUpdate200Response | VirtualWansCreateOrUpdate201Response - | VirtualWansCreateOrUpdateDefaultResponse + | VirtualWansCreateOrUpdateDefaultResponse, ): response is VirtualWansCreateOrUpdateDefaultResponse; export function isUnexpected( - response: VirtualWansUpdateTags200Response | VirtualWansUpdateTagsDefaultResponse + response: VirtualWansUpdateTags200Response | VirtualWansUpdateTagsDefaultResponse, ): response is VirtualWansUpdateTagsDefaultResponse; export function isUnexpected( response: | VirtualWansDelete200Response | VirtualWansDelete202Response | VirtualWansDelete204Response - | VirtualWansDeleteDefaultResponse + | VirtualWansDeleteDefaultResponse, ): response is VirtualWansDeleteDefaultResponse; export function isUnexpected( response: | VirtualWansListByResourceGroup200Response - | VirtualWansListByResourceGroupDefaultResponse + | VirtualWansListByResourceGroupDefaultResponse, ): response is VirtualWansListByResourceGroupDefaultResponse; export function isUnexpected( - response: VirtualWansList200Response | VirtualWansListDefaultResponse + response: VirtualWansList200Response | VirtualWansListDefaultResponse, ): response is VirtualWansListDefaultResponse; export function isUnexpected( - response: VpnSitesGet200Response | VpnSitesGetDefaultResponse + response: VpnSitesGet200Response | VpnSitesGetDefaultResponse, ): response is VpnSitesGetDefaultResponse; export function isUnexpected( response: | VpnSitesCreateOrUpdate200Response | VpnSitesCreateOrUpdate201Response - | VpnSitesCreateOrUpdateDefaultResponse + | VpnSitesCreateOrUpdateDefaultResponse, ): response is VpnSitesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: VpnSitesUpdateTags200Response | VpnSitesUpdateTagsDefaultResponse + response: VpnSitesUpdateTags200Response | VpnSitesUpdateTagsDefaultResponse, ): response is VpnSitesUpdateTagsDefaultResponse; export function isUnexpected( response: | VpnSitesDelete200Response | VpnSitesDelete202Response | VpnSitesDelete204Response - | VpnSitesDeleteDefaultResponse + | VpnSitesDeleteDefaultResponse, ): response is VpnSitesDeleteDefaultResponse; export function isUnexpected( - response: VpnSitesListByResourceGroup200Response | VpnSitesListByResourceGroupDefaultResponse + response: VpnSitesListByResourceGroup200Response | VpnSitesListByResourceGroupDefaultResponse, ): response is VpnSitesListByResourceGroupDefaultResponse; export function isUnexpected( - response: VpnSitesList200Response | VpnSitesListDefaultResponse + response: VpnSitesList200Response | VpnSitesListDefaultResponse, ): response is VpnSitesListDefaultResponse; export function isUnexpected( - response: VpnSiteLinksGet200Response | VpnSiteLinksGetDefaultResponse + response: VpnSiteLinksGet200Response | VpnSiteLinksGetDefaultResponse, ): response is VpnSiteLinksGetDefaultResponse; export function isUnexpected( - response: VpnSiteLinksListByVpnSite200Response | VpnSiteLinksListByVpnSiteDefaultResponse + response: VpnSiteLinksListByVpnSite200Response | VpnSiteLinksListByVpnSiteDefaultResponse, ): response is VpnSiteLinksListByVpnSiteDefaultResponse; export function isUnexpected( response: | VpnSitesConfigurationDownload200Response | VpnSitesConfigurationDownload202Response - | VpnSitesConfigurationDownloadDefaultResponse + | VpnSitesConfigurationDownloadDefaultResponse, ): response is VpnSitesConfigurationDownloadDefaultResponse; export function isUnexpected( - response: VpnServerConfigurationsGet200Response | VpnServerConfigurationsGetDefaultResponse + response: VpnServerConfigurationsGet200Response | VpnServerConfigurationsGetDefaultResponse, ): response is VpnServerConfigurationsGetDefaultResponse; export function isUnexpected( response: | VpnServerConfigurationsCreateOrUpdate200Response | VpnServerConfigurationsCreateOrUpdate201Response - | VpnServerConfigurationsCreateOrUpdateDefaultResponse + | VpnServerConfigurationsCreateOrUpdateDefaultResponse, ): response is VpnServerConfigurationsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | VpnServerConfigurationsUpdateTags200Response - | VpnServerConfigurationsUpdateTagsDefaultResponse + | VpnServerConfigurationsUpdateTagsDefaultResponse, ): response is VpnServerConfigurationsUpdateTagsDefaultResponse; export function isUnexpected( response: | VpnServerConfigurationsDelete200Response | VpnServerConfigurationsDelete202Response | VpnServerConfigurationsDelete204Response - | VpnServerConfigurationsDeleteDefaultResponse + | VpnServerConfigurationsDeleteDefaultResponse, ): response is VpnServerConfigurationsDeleteDefaultResponse; export function isUnexpected( response: | VpnServerConfigurationsListByResourceGroup200Response - | VpnServerConfigurationsListByResourceGroupDefaultResponse + | VpnServerConfigurationsListByResourceGroupDefaultResponse, ): response is VpnServerConfigurationsListByResourceGroupDefaultResponse; export function isUnexpected( - response: VpnServerConfigurationsList200Response | VpnServerConfigurationsListDefaultResponse + response: VpnServerConfigurationsList200Response | VpnServerConfigurationsListDefaultResponse, ): response is VpnServerConfigurationsListDefaultResponse; export function isUnexpected( response: | ConfigurationPolicyGroupsCreateOrUpdate200Response | ConfigurationPolicyGroupsCreateOrUpdate201Response - | ConfigurationPolicyGroupsCreateOrUpdateDefaultResponse + | ConfigurationPolicyGroupsCreateOrUpdateDefaultResponse, ): response is ConfigurationPolicyGroupsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | ConfigurationPolicyGroupsDelete200Response | ConfigurationPolicyGroupsDelete202Response | ConfigurationPolicyGroupsDelete204Response - | ConfigurationPolicyGroupsDeleteDefaultResponse + | ConfigurationPolicyGroupsDeleteDefaultResponse, ): response is ConfigurationPolicyGroupsDeleteDefaultResponse; export function isUnexpected( - response: ConfigurationPolicyGroupsGet200Response | ConfigurationPolicyGroupsGetDefaultResponse + response: ConfigurationPolicyGroupsGet200Response | ConfigurationPolicyGroupsGetDefaultResponse, ): response is ConfigurationPolicyGroupsGetDefaultResponse; export function isUnexpected( response: | ConfigurationPolicyGroupsListByVpnServerConfiguration200Response - | ConfigurationPolicyGroupsListByVpnServerConfigurationDefaultResponse + | ConfigurationPolicyGroupsListByVpnServerConfigurationDefaultResponse, ): response is ConfigurationPolicyGroupsListByVpnServerConfigurationDefaultResponse; export function isUnexpected( - response: VirtualHubsGet200Response | VirtualHubsGetDefaultResponse + response: VirtualHubsGet200Response | VirtualHubsGetDefaultResponse, ): response is VirtualHubsGetDefaultResponse; export function isUnexpected( response: | VirtualHubsCreateOrUpdate200Response | VirtualHubsCreateOrUpdate201Response - | VirtualHubsCreateOrUpdateDefaultResponse + | VirtualHubsCreateOrUpdateDefaultResponse, ): response is VirtualHubsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: VirtualHubsUpdateTags200Response | VirtualHubsUpdateTagsDefaultResponse + response: VirtualHubsUpdateTags200Response | VirtualHubsUpdateTagsDefaultResponse, ): response is VirtualHubsUpdateTagsDefaultResponse; export function isUnexpected( response: | VirtualHubsDelete200Response | VirtualHubsDelete202Response | VirtualHubsDelete204Response - | VirtualHubsDeleteDefaultResponse + | VirtualHubsDeleteDefaultResponse, ): response is VirtualHubsDeleteDefaultResponse; export function isUnexpected( response: | VirtualHubsListByResourceGroup200Response - | VirtualHubsListByResourceGroupDefaultResponse + | VirtualHubsListByResourceGroupDefaultResponse, ): response is VirtualHubsListByResourceGroupDefaultResponse; export function isUnexpected( - response: VirtualHubsList200Response | VirtualHubsListDefaultResponse + response: VirtualHubsList200Response | VirtualHubsListDefaultResponse, ): response is VirtualHubsListDefaultResponse; export function isUnexpected( response: | VirtualHubsGetEffectiveVirtualHubRoutes200Response | VirtualHubsGetEffectiveVirtualHubRoutes202Response - | VirtualHubsGetEffectiveVirtualHubRoutesDefaultResponse + | VirtualHubsGetEffectiveVirtualHubRoutesDefaultResponse, ): response is VirtualHubsGetEffectiveVirtualHubRoutesDefaultResponse; export function isUnexpected( response: | VirtualHubsGetInboundRoutes200Response | VirtualHubsGetInboundRoutes202Response - | VirtualHubsGetInboundRoutesDefaultResponse + | VirtualHubsGetInboundRoutesDefaultResponse, ): response is VirtualHubsGetInboundRoutesDefaultResponse; export function isUnexpected( response: | VirtualHubsGetOutboundRoutes200Response | VirtualHubsGetOutboundRoutes202Response - | VirtualHubsGetOutboundRoutesDefaultResponse + | VirtualHubsGetOutboundRoutesDefaultResponse, ): response is VirtualHubsGetOutboundRoutesDefaultResponse; export function isUnexpected( - response: RouteMapsGet200Response | RouteMapsGetDefaultResponse + response: RouteMapsGet200Response | RouteMapsGetDefaultResponse, ): response is RouteMapsGetDefaultResponse; export function isUnexpected( response: | RouteMapsCreateOrUpdate200Response | RouteMapsCreateOrUpdate201Response - | RouteMapsCreateOrUpdateDefaultResponse + | RouteMapsCreateOrUpdateDefaultResponse, ): response is RouteMapsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | RouteMapsDelete200Response | RouteMapsDelete202Response | RouteMapsDelete204Response - | RouteMapsDeleteDefaultResponse + | RouteMapsDeleteDefaultResponse, ): response is RouteMapsDeleteDefaultResponse; export function isUnexpected( - response: RouteMapsList200Response | RouteMapsListDefaultResponse + response: RouteMapsList200Response | RouteMapsListDefaultResponse, ): response is RouteMapsListDefaultResponse; export function isUnexpected( response: | HubVirtualNetworkConnectionsCreateOrUpdate200Response | HubVirtualNetworkConnectionsCreateOrUpdate201Response - | HubVirtualNetworkConnectionsCreateOrUpdateDefaultResponse + | HubVirtualNetworkConnectionsCreateOrUpdateDefaultResponse, ): response is HubVirtualNetworkConnectionsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | HubVirtualNetworkConnectionsDelete200Response | HubVirtualNetworkConnectionsDelete202Response | HubVirtualNetworkConnectionsDelete204Response - | HubVirtualNetworkConnectionsDeleteDefaultResponse + | HubVirtualNetworkConnectionsDeleteDefaultResponse, ): response is HubVirtualNetworkConnectionsDeleteDefaultResponse; export function isUnexpected( response: | HubVirtualNetworkConnectionsGet200Response - | HubVirtualNetworkConnectionsGetDefaultResponse + | HubVirtualNetworkConnectionsGetDefaultResponse, ): response is HubVirtualNetworkConnectionsGetDefaultResponse; export function isUnexpected( response: | HubVirtualNetworkConnectionsList200Response - | HubVirtualNetworkConnectionsListDefaultResponse + | HubVirtualNetworkConnectionsListDefaultResponse, ): response is HubVirtualNetworkConnectionsListDefaultResponse; export function isUnexpected( - response: VpnGatewaysGet200Response | VpnGatewaysGetDefaultResponse + response: VpnGatewaysGet200Response | VpnGatewaysGetDefaultResponse, ): response is VpnGatewaysGetDefaultResponse; export function isUnexpected( response: | VpnGatewaysCreateOrUpdate200Response | VpnGatewaysCreateOrUpdate201Response - | VpnGatewaysCreateOrUpdateDefaultResponse + | VpnGatewaysCreateOrUpdateDefaultResponse, ): response is VpnGatewaysCreateOrUpdateDefaultResponse; export function isUnexpected( response: | VpnGatewaysUpdateTags200Response | VpnGatewaysUpdateTags202Response - | VpnGatewaysUpdateTagsDefaultResponse + | VpnGatewaysUpdateTagsDefaultResponse, ): response is VpnGatewaysUpdateTagsDefaultResponse; export function isUnexpected( response: | VpnGatewaysDelete200Response | VpnGatewaysDelete202Response | VpnGatewaysDelete204Response - | VpnGatewaysDeleteDefaultResponse + | VpnGatewaysDeleteDefaultResponse, ): response is VpnGatewaysDeleteDefaultResponse; export function isUnexpected( response: | VpnGatewaysReset200Response | VpnGatewaysReset202Response - | VpnGatewaysResetDefaultResponse + | VpnGatewaysResetDefaultResponse, ): response is VpnGatewaysResetDefaultResponse; export function isUnexpected( response: | VpnGatewaysStartPacketCapture200Response | VpnGatewaysStartPacketCapture202Response - | VpnGatewaysStartPacketCaptureDefaultResponse + | VpnGatewaysStartPacketCaptureDefaultResponse, ): response is VpnGatewaysStartPacketCaptureDefaultResponse; export function isUnexpected( response: | VpnGatewaysStopPacketCapture200Response | VpnGatewaysStopPacketCapture202Response - | VpnGatewaysStopPacketCaptureDefaultResponse + | VpnGatewaysStopPacketCaptureDefaultResponse, ): response is VpnGatewaysStopPacketCaptureDefaultResponse; export function isUnexpected( response: | VpnGatewaysListByResourceGroup200Response - | VpnGatewaysListByResourceGroupDefaultResponse + | VpnGatewaysListByResourceGroupDefaultResponse, ): response is VpnGatewaysListByResourceGroupDefaultResponse; export function isUnexpected( - response: VpnGatewaysList200Response | VpnGatewaysListDefaultResponse + response: VpnGatewaysList200Response | VpnGatewaysListDefaultResponse, ): response is VpnGatewaysListDefaultResponse; export function isUnexpected( response: | VpnLinkConnectionsResetConnection202Response - | VpnLinkConnectionsResetConnectionDefaultResponse + | VpnLinkConnectionsResetConnectionDefaultResponse, ): response is VpnLinkConnectionsResetConnectionDefaultResponse; export function isUnexpected( response: | VpnLinkConnectionsGetIkeSas200Response | VpnLinkConnectionsGetIkeSas202Response - | VpnLinkConnectionsGetIkeSasDefaultResponse + | VpnLinkConnectionsGetIkeSasDefaultResponse, ): response is VpnLinkConnectionsGetIkeSasDefaultResponse; export function isUnexpected( response: | VpnLinkConnectionsListByVpnConnection200Response - | VpnLinkConnectionsListByVpnConnectionDefaultResponse + | VpnLinkConnectionsListByVpnConnectionDefaultResponse, ): response is VpnLinkConnectionsListByVpnConnectionDefaultResponse; export function isUnexpected( - response: VpnConnectionsGet200Response | VpnConnectionsGetDefaultResponse + response: VpnConnectionsGet200Response | VpnConnectionsGetDefaultResponse, ): response is VpnConnectionsGetDefaultResponse; export function isUnexpected( response: | VpnConnectionsCreateOrUpdate200Response | VpnConnectionsCreateOrUpdate201Response - | VpnConnectionsCreateOrUpdateDefaultResponse + | VpnConnectionsCreateOrUpdateDefaultResponse, ): response is VpnConnectionsCreateOrUpdateDefaultResponse; export function isUnexpected( response: | VpnConnectionsDelete200Response | VpnConnectionsDelete202Response | VpnConnectionsDelete204Response - | VpnConnectionsDeleteDefaultResponse + | VpnConnectionsDeleteDefaultResponse, ): response is VpnConnectionsDeleteDefaultResponse; export function isUnexpected( response: | VpnConnectionsStartPacketCapture200Response | VpnConnectionsStartPacketCapture202Response - | VpnConnectionsStartPacketCaptureDefaultResponse + | VpnConnectionsStartPacketCaptureDefaultResponse, ): response is VpnConnectionsStartPacketCaptureDefaultResponse; export function isUnexpected( response: | VpnConnectionsStopPacketCapture200Response | VpnConnectionsStopPacketCapture202Response - | VpnConnectionsStopPacketCaptureDefaultResponse + | VpnConnectionsStopPacketCaptureDefaultResponse, ): response is VpnConnectionsStopPacketCaptureDefaultResponse; export function isUnexpected( response: | VpnConnectionsListByVpnGateway200Response - | VpnConnectionsListByVpnGatewayDefaultResponse + | VpnConnectionsListByVpnGatewayDefaultResponse, ): response is VpnConnectionsListByVpnGatewayDefaultResponse; export function isUnexpected( - response: VpnSiteLinkConnectionsGet200Response | VpnSiteLinkConnectionsGetDefaultResponse + response: VpnSiteLinkConnectionsGet200Response | VpnSiteLinkConnectionsGetDefaultResponse, ): response is VpnSiteLinkConnectionsGetDefaultResponse; export function isUnexpected( - response: NatRulesGet200Response | NatRulesGetDefaultResponse + response: NatRulesGet200Response | NatRulesGetDefaultResponse, ): response is NatRulesGetDefaultResponse; export function isUnexpected( response: | NatRulesCreateOrUpdate200Response | NatRulesCreateOrUpdate201Response - | NatRulesCreateOrUpdateDefaultResponse + | NatRulesCreateOrUpdateDefaultResponse, ): response is NatRulesCreateOrUpdateDefaultResponse; export function isUnexpected( response: | NatRulesDelete200Response | NatRulesDelete202Response | NatRulesDelete204Response - | NatRulesDeleteDefaultResponse + | NatRulesDeleteDefaultResponse, ): response is NatRulesDeleteDefaultResponse; export function isUnexpected( - response: NatRulesListByVpnGateway200Response | NatRulesListByVpnGatewayDefaultResponse + response: NatRulesListByVpnGateway200Response | NatRulesListByVpnGatewayDefaultResponse, ): response is NatRulesListByVpnGatewayDefaultResponse; export function isUnexpected( - response: P2SVpnGatewaysGet200Response | P2SVpnGatewaysGetDefaultResponse + response: P2SVpnGatewaysGet200Response | P2SVpnGatewaysGetDefaultResponse, ): response is P2SVpnGatewaysGetDefaultResponse; export function isUnexpected( response: | P2SVpnGatewaysCreateOrUpdate200Response | P2SVpnGatewaysCreateOrUpdate201Response - | P2SVpnGatewaysCreateOrUpdateDefaultResponse + | P2SVpnGatewaysCreateOrUpdateDefaultResponse, ): response is P2SVpnGatewaysCreateOrUpdateDefaultResponse; export function isUnexpected( response: | P2SVpnGatewaysUpdateTags200Response | P2SVpnGatewaysUpdateTags202Response - | P2SVpnGatewaysUpdateTagsDefaultResponse + | P2SVpnGatewaysUpdateTagsDefaultResponse, ): response is P2SVpnGatewaysUpdateTagsDefaultResponse; export function isUnexpected( response: | P2SVpnGatewaysDelete200Response | P2SVpnGatewaysDelete202Response | P2SVpnGatewaysDelete204Response - | P2SVpnGatewaysDeleteDefaultResponse + | P2SVpnGatewaysDeleteDefaultResponse, ): response is P2SVpnGatewaysDeleteDefaultResponse; export function isUnexpected( response: | P2SVpnGatewaysListByResourceGroup200Response - | P2SVpnGatewaysListByResourceGroupDefaultResponse + | P2SVpnGatewaysListByResourceGroupDefaultResponse, ): response is P2SVpnGatewaysListByResourceGroupDefaultResponse; export function isUnexpected( - response: P2SVpnGatewaysList200Response | P2SVpnGatewaysListDefaultResponse + response: P2SVpnGatewaysList200Response | P2SVpnGatewaysListDefaultResponse, ): response is P2SVpnGatewaysListDefaultResponse; export function isUnexpected( response: | P2SVpnGatewaysReset200Response | P2SVpnGatewaysReset202Response - | P2SVpnGatewaysResetDefaultResponse + | P2SVpnGatewaysResetDefaultResponse, ): response is P2SVpnGatewaysResetDefaultResponse; export function isUnexpected( response: | P2SVpnGatewaysGenerateVpnProfile200Response | P2SVpnGatewaysGenerateVpnProfile202Response - | P2SVpnGatewaysGenerateVpnProfileDefaultResponse + | P2SVpnGatewaysGenerateVpnProfileDefaultResponse, ): response is P2SVpnGatewaysGenerateVpnProfileDefaultResponse; export function isUnexpected( response: | P2SVpnGatewaysGetP2SVpnConnectionHealth200Response | P2SVpnGatewaysGetP2SVpnConnectionHealth202Response - | P2SVpnGatewaysGetP2SVpnConnectionHealthDefaultResponse + | P2SVpnGatewaysGetP2SVpnConnectionHealthDefaultResponse, ): response is P2SVpnGatewaysGetP2SVpnConnectionHealthDefaultResponse; export function isUnexpected( response: | P2SVpnGatewaysGetP2SVpnConnectionHealthDetailed200Response | P2SVpnGatewaysGetP2SVpnConnectionHealthDetailed202Response - | P2SVpnGatewaysGetP2SVpnConnectionHealthDetailedDefaultResponse + | P2SVpnGatewaysGetP2SVpnConnectionHealthDetailedDefaultResponse, ): response is P2SVpnGatewaysGetP2SVpnConnectionHealthDetailedDefaultResponse; export function isUnexpected( response: | P2SVpnGatewaysDisconnectP2SVpnConnections200Response | P2SVpnGatewaysDisconnectP2SVpnConnections202Response - | P2SVpnGatewaysDisconnectP2SVpnConnectionsDefaultResponse + | P2SVpnGatewaysDisconnectP2SVpnConnectionsDefaultResponse, ): response is P2SVpnGatewaysDisconnectP2SVpnConnectionsDefaultResponse; export function isUnexpected( response: | VpnServerConfigurationsAssociatedWithVirtualWanList200Response | VpnServerConfigurationsAssociatedWithVirtualWanList202Response - | VpnServerConfigurationsAssociatedWithVirtualWanListDefaultResponse + | VpnServerConfigurationsAssociatedWithVirtualWanListDefaultResponse, ): response is VpnServerConfigurationsAssociatedWithVirtualWanListDefaultResponse; export function isUnexpected( - response: VirtualHubRouteTableV2SGet200Response | VirtualHubRouteTableV2SGetDefaultResponse + response: VirtualHubRouteTableV2SGet200Response | VirtualHubRouteTableV2SGetDefaultResponse, ): response is VirtualHubRouteTableV2SGetDefaultResponse; export function isUnexpected( response: | VirtualHubRouteTableV2SCreateOrUpdate200Response | VirtualHubRouteTableV2SCreateOrUpdate201Response - | VirtualHubRouteTableV2SCreateOrUpdateDefaultResponse + | VirtualHubRouteTableV2SCreateOrUpdateDefaultResponse, ): response is VirtualHubRouteTableV2SCreateOrUpdateDefaultResponse; export function isUnexpected( response: | VirtualHubRouteTableV2SDelete200Response | VirtualHubRouteTableV2SDelete202Response | VirtualHubRouteTableV2SDelete204Response - | VirtualHubRouteTableV2SDeleteDefaultResponse + | VirtualHubRouteTableV2SDeleteDefaultResponse, ): response is VirtualHubRouteTableV2SDeleteDefaultResponse; export function isUnexpected( - response: VirtualHubRouteTableV2SList200Response | VirtualHubRouteTableV2SListDefaultResponse + response: VirtualHubRouteTableV2SList200Response | VirtualHubRouteTableV2SListDefaultResponse, ): response is VirtualHubRouteTableV2SListDefaultResponse; export function isUnexpected( response: | ExpressRouteGatewaysListBySubscription200Response - | ExpressRouteGatewaysListBySubscriptionDefaultResponse + | ExpressRouteGatewaysListBySubscriptionDefaultResponse, ): response is ExpressRouteGatewaysListBySubscriptionDefaultResponse; export function isUnexpected( response: | ExpressRouteGatewaysListByResourceGroup200Response - | ExpressRouteGatewaysListByResourceGroupDefaultResponse + | ExpressRouteGatewaysListByResourceGroupDefaultResponse, ): response is ExpressRouteGatewaysListByResourceGroupDefaultResponse; export function isUnexpected( response: | ExpressRouteGatewaysCreateOrUpdate200Response | ExpressRouteGatewaysCreateOrUpdate201Response - | ExpressRouteGatewaysCreateOrUpdateDefaultResponse + | ExpressRouteGatewaysCreateOrUpdateDefaultResponse, ): response is ExpressRouteGatewaysCreateOrUpdateDefaultResponse; export function isUnexpected( response: | ExpressRouteGatewaysUpdateTags200Response | ExpressRouteGatewaysUpdateTags202Response - | ExpressRouteGatewaysUpdateTagsDefaultResponse + | ExpressRouteGatewaysUpdateTagsDefaultResponse, ): response is ExpressRouteGatewaysUpdateTagsDefaultResponse; export function isUnexpected( - response: ExpressRouteGatewaysGet200Response | ExpressRouteGatewaysGetDefaultResponse + response: ExpressRouteGatewaysGet200Response | ExpressRouteGatewaysGetDefaultResponse, ): response is ExpressRouteGatewaysGetDefaultResponse; export function isUnexpected( response: | ExpressRouteGatewaysDelete200Response | ExpressRouteGatewaysDelete202Response | ExpressRouteGatewaysDelete204Response - | ExpressRouteGatewaysDeleteDefaultResponse + | ExpressRouteGatewaysDeleteDefaultResponse, ): response is ExpressRouteGatewaysDeleteDefaultResponse; export function isUnexpected( response: | ExpressRouteConnectionsCreateOrUpdate200Response | ExpressRouteConnectionsCreateOrUpdate201Response - | ExpressRouteConnectionsCreateOrUpdateDefaultResponse + | ExpressRouteConnectionsCreateOrUpdateDefaultResponse, ): response is ExpressRouteConnectionsCreateOrUpdateDefaultResponse; export function isUnexpected( - response: ExpressRouteConnectionsGet200Response | ExpressRouteConnectionsGetDefaultResponse + response: ExpressRouteConnectionsGet200Response | ExpressRouteConnectionsGetDefaultResponse, ): response is ExpressRouteConnectionsGetDefaultResponse; export function isUnexpected( response: | ExpressRouteConnectionsDelete200Response | ExpressRouteConnectionsDelete202Response | ExpressRouteConnectionsDelete204Response - | ExpressRouteConnectionsDeleteDefaultResponse + | ExpressRouteConnectionsDeleteDefaultResponse, ): response is ExpressRouteConnectionsDeleteDefaultResponse; export function isUnexpected( - response: ExpressRouteConnectionsList200Response | ExpressRouteConnectionsListDefaultResponse + response: ExpressRouteConnectionsList200Response | ExpressRouteConnectionsListDefaultResponse, ): response is ExpressRouteConnectionsListDefaultResponse; export function isUnexpected( - response: VirtualHubBgpConnectionGet200Response | VirtualHubBgpConnectionGetDefaultResponse + response: VirtualHubBgpConnectionGet200Response | VirtualHubBgpConnectionGetDefaultResponse, ): response is VirtualHubBgpConnectionGetDefaultResponse; export function isUnexpected( response: | VirtualHubBgpConnectionCreateOrUpdate200Response | VirtualHubBgpConnectionCreateOrUpdate201Response - | VirtualHubBgpConnectionCreateOrUpdateDefaultResponse + | VirtualHubBgpConnectionCreateOrUpdateDefaultResponse, ): response is VirtualHubBgpConnectionCreateOrUpdateDefaultResponse; export function isUnexpected( response: | VirtualHubBgpConnectionDelete200Response | VirtualHubBgpConnectionDelete202Response | VirtualHubBgpConnectionDelete204Response - | VirtualHubBgpConnectionDeleteDefaultResponse + | VirtualHubBgpConnectionDeleteDefaultResponse, ): response is VirtualHubBgpConnectionDeleteDefaultResponse; export function isUnexpected( - response: VirtualHubBgpConnectionsList200Response | VirtualHubBgpConnectionsListDefaultResponse + response: VirtualHubBgpConnectionsList200Response | VirtualHubBgpConnectionsListDefaultResponse, ): response is VirtualHubBgpConnectionsListDefaultResponse; export function isUnexpected( response: | VirtualHubBgpConnectionsListLearnedRoutes200Response | VirtualHubBgpConnectionsListLearnedRoutes202Response - | VirtualHubBgpConnectionsListLearnedRoutesDefaultResponse + | VirtualHubBgpConnectionsListLearnedRoutesDefaultResponse, ): response is VirtualHubBgpConnectionsListLearnedRoutesDefaultResponse; export function isUnexpected( response: | VirtualHubBgpConnectionsListAdvertisedRoutes200Response | VirtualHubBgpConnectionsListAdvertisedRoutes202Response - | VirtualHubBgpConnectionsListAdvertisedRoutesDefaultResponse + | VirtualHubBgpConnectionsListAdvertisedRoutesDefaultResponse, ): response is VirtualHubBgpConnectionsListAdvertisedRoutesDefaultResponse; export function isUnexpected( - response: VirtualHubIpConfigurationGet200Response | VirtualHubIpConfigurationGetDefaultResponse + response: VirtualHubIpConfigurationGet200Response | VirtualHubIpConfigurationGetDefaultResponse, ): response is VirtualHubIpConfigurationGetDefaultResponse; export function isUnexpected( response: | VirtualHubIpConfigurationCreateOrUpdate200Response | VirtualHubIpConfigurationCreateOrUpdate201Response - | VirtualHubIpConfigurationCreateOrUpdateDefaultResponse + | VirtualHubIpConfigurationCreateOrUpdateDefaultResponse, ): response is VirtualHubIpConfigurationCreateOrUpdateDefaultResponse; export function isUnexpected( response: | VirtualHubIpConfigurationDelete200Response | VirtualHubIpConfigurationDelete202Response | VirtualHubIpConfigurationDelete204Response - | VirtualHubIpConfigurationDeleteDefaultResponse + | VirtualHubIpConfigurationDeleteDefaultResponse, ): response is VirtualHubIpConfigurationDeleteDefaultResponse; export function isUnexpected( - response: VirtualHubIpConfigurationList200Response | VirtualHubIpConfigurationListDefaultResponse + response: VirtualHubIpConfigurationList200Response | VirtualHubIpConfigurationListDefaultResponse, ): response is VirtualHubIpConfigurationListDefaultResponse; export function isUnexpected( response: | HubRouteTablesCreateOrUpdate200Response | HubRouteTablesCreateOrUpdate201Response - | HubRouteTablesCreateOrUpdateDefaultResponse + | HubRouteTablesCreateOrUpdateDefaultResponse, ): response is HubRouteTablesCreateOrUpdateDefaultResponse; export function isUnexpected( - response: HubRouteTablesGet200Response | HubRouteTablesGetDefaultResponse + response: HubRouteTablesGet200Response | HubRouteTablesGetDefaultResponse, ): response is HubRouteTablesGetDefaultResponse; export function isUnexpected( response: | HubRouteTablesDelete200Response | HubRouteTablesDelete202Response | HubRouteTablesDelete204Response - | HubRouteTablesDeleteDefaultResponse + | HubRouteTablesDeleteDefaultResponse, ): response is HubRouteTablesDeleteDefaultResponse; export function isUnexpected( - response: HubRouteTablesList200Response | HubRouteTablesListDefaultResponse + response: HubRouteTablesList200Response | HubRouteTablesListDefaultResponse, ): response is HubRouteTablesListDefaultResponse; export function isUnexpected( response: | RoutingIntentCreateOrUpdate200Response | RoutingIntentCreateOrUpdate201Response - | RoutingIntentCreateOrUpdateDefaultResponse + | RoutingIntentCreateOrUpdateDefaultResponse, ): response is RoutingIntentCreateOrUpdateDefaultResponse; export function isUnexpected( - response: RoutingIntentGet200Response | RoutingIntentGetDefaultResponse + response: RoutingIntentGet200Response | RoutingIntentGetDefaultResponse, ): response is RoutingIntentGetDefaultResponse; export function isUnexpected( response: | RoutingIntentDelete200Response | RoutingIntentDelete202Response | RoutingIntentDelete204Response - | RoutingIntentDeleteDefaultResponse + | RoutingIntentDeleteDefaultResponse, ): response is RoutingIntentDeleteDefaultResponse; export function isUnexpected( - response: RoutingIntentList200Response | RoutingIntentListDefaultResponse + response: RoutingIntentList200Response | RoutingIntentListDefaultResponse, ): response is RoutingIntentListDefaultResponse; export function isUnexpected( response: | WebApplicationFirewallPoliciesList200Response - | WebApplicationFirewallPoliciesListDefaultResponse + | WebApplicationFirewallPoliciesListDefaultResponse, ): response is WebApplicationFirewallPoliciesListDefaultResponse; export function isUnexpected( response: | WebApplicationFirewallPoliciesListAll200Response - | WebApplicationFirewallPoliciesListAllDefaultResponse + | WebApplicationFirewallPoliciesListAllDefaultResponse, ): response is WebApplicationFirewallPoliciesListAllDefaultResponse; export function isUnexpected( response: | WebApplicationFirewallPoliciesGet200Response - | WebApplicationFirewallPoliciesGetDefaultResponse + | WebApplicationFirewallPoliciesGetDefaultResponse, ): response is WebApplicationFirewallPoliciesGetDefaultResponse; export function isUnexpected( response: | WebApplicationFirewallPoliciesCreateOrUpdate200Response | WebApplicationFirewallPoliciesCreateOrUpdate201Response - | WebApplicationFirewallPoliciesCreateOrUpdateDefaultResponse + | WebApplicationFirewallPoliciesCreateOrUpdateDefaultResponse, ): response is WebApplicationFirewallPoliciesCreateOrUpdateDefaultResponse; export function isUnexpected( response: | WebApplicationFirewallPoliciesDelete200Response | WebApplicationFirewallPoliciesDelete202Response | WebApplicationFirewallPoliciesDelete204Response - | WebApplicationFirewallPoliciesDeleteDefaultResponse + | WebApplicationFirewallPoliciesDeleteDefaultResponse, ): response is WebApplicationFirewallPoliciesDeleteDefaultResponse; export function isUnexpected( - response: VipSwapGet200Response | VipSwapGetDefaultResponse + response: VipSwapGet200Response | VipSwapGetDefaultResponse, ): response is VipSwapGetDefaultResponse; export function isUnexpected( - response: VipSwapCreate200Response | VipSwapCreate202Response | VipSwapCreateDefaultResponse + response: VipSwapCreate200Response | VipSwapCreate202Response | VipSwapCreateDefaultResponse, ): response is VipSwapCreateDefaultResponse; export function isUnexpected( - response: VipSwapList200Response | VipSwapListDefaultResponse + response: VipSwapList200Response | VipSwapListDefaultResponse, ): response is VipSwapListDefaultResponse; export function isUnexpected( response: @@ -7472,7 +7472,7 @@ export function isUnexpected( | VipSwapCreate202Response | VipSwapCreateDefaultResponse | VipSwapList200Response - | VipSwapListDefaultResponse + | VipSwapListDefaultResponse, ): response is | ApplicationGatewaysDeleteDefaultResponse | ApplicationGatewaysGetDefaultResponse diff --git a/sdk/network/arm-network-rest/src/networkManagementClient.ts b/sdk/network/arm-network-rest/src/networkManagementClient.ts index 8026b87a244a..de26059defeb 100644 --- a/sdk/network/arm-network-rest/src/networkManagementClient.ts +++ b/sdk/network/arm-network-rest/src/networkManagementClient.ts @@ -11,7 +11,7 @@ import { NetworkManagementClient } from "./clientDefinitions"; */ export default function createClient( credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): NetworkManagementClient { const baseUrl = options.baseUrl ?? `https://management.azure.com`; options = { diff --git a/sdk/network/arm-network-rest/src/paginateHelper.ts b/sdk/network/arm-network-rest/src/paginateHelper.ts index 532e2603f724..ae39a400b94b 100644 --- a/sdk/network/arm-network-rest/src/paginateHelper.ts +++ b/sdk/network/arm-network-rest/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/network/arm-network-rest/src/pollingHelper.ts b/sdk/network/arm-network-rest/src/pollingHelper.ts index 27b9ed42834a..c95c1d612155 100644 --- a/sdk/network/arm-network-rest/src/pollingHelper.ts +++ b/sdk/network/arm-network-rest/src/pollingHelper.ts @@ -21,7 +21,7 @@ import { export function getLongRunningPoller( client: Client, initialResponse: TResult, - options: LroEngineOptions> = {} + options: LroEngineOptions> = {}, ): PollerLike, TResult> { const poller: LongRunningOperation = { requestMethod: initialResponse.request.method, diff --git a/sdk/network/arm-network-rest/test/public/network_rest_sample.spec.ts b/sdk/network/arm-network-rest/test/public/network_rest_sample.spec.ts index 0a34023d5e20..106258ab18b3 100644 --- a/sdk/network/arm-network-rest/test/public/network_rest_sample.spec.ts +++ b/sdk/network/arm-network-rest/test/public/network_rest_sample.spec.ts @@ -95,7 +95,7 @@ describe("Network test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .put(option); @@ -123,7 +123,7 @@ describe("Network test", () => { subscriptionId, resourceGroupName, virtualNetworkName, - subnet_name + subnet_name, ) .put(option); @@ -153,7 +153,7 @@ describe("Network test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}", subscriptionId, resourceGroupName, - ipGroupName + ipGroupName, ) .put(option); @@ -174,7 +174,7 @@ describe("Network test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .get(option); @@ -194,7 +194,7 @@ describe("Network test", () => { subscriptionId, resourceGroupName, virtualNetworkName, - subnet_name + subnet_name, ) .get(option); @@ -215,7 +215,7 @@ describe("Network test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}", subscriptionId, resourceGroupName, - ipGroupName + ipGroupName, ) .get(option); @@ -235,7 +235,7 @@ describe("Network test", () => { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(option); @@ -256,7 +256,7 @@ describe("Network test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .get(option); @@ -276,7 +276,7 @@ describe("Network test", () => { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(option); @@ -298,7 +298,7 @@ describe("Network test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .patch(options); @@ -319,7 +319,7 @@ describe("Network test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}", subscriptionId, resourceGroupName, - ipGroupName + ipGroupName, ) .delete(options); @@ -337,7 +337,7 @@ describe("Network test", () => { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(option); @@ -359,7 +359,7 @@ describe("Network test", () => { subscriptionId, resourceGroupName, virtualNetworkName, - subnet_name + subnet_name, ) .delete(options); @@ -378,7 +378,7 @@ describe("Network test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .get(option); @@ -399,7 +399,7 @@ describe("Network test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", subscriptionId, resourceGroupName, - virtualNetworkName + virtualNetworkName, ) .delete(options); @@ -417,7 +417,7 @@ describe("Network test", () => { .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(option); diff --git a/sdk/network/arm-network-rest/test/public/utils/recordedClient.ts b/sdk/network/arm-network-rest/test/public/utils/recordedClient.ts index ac1e22b6f620..07696f6258a0 100644 --- a/sdk/network/arm-network-rest/test/public/utils/recordedClient.ts +++ b/sdk/network/arm-network-rest/test/public/utils/recordedClient.ts @@ -36,11 +36,11 @@ export async function createRecorder(context: Context): Promise { export function createTestNetworkManagementClient( recorder: Recorder, credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): NetworkManagementClient { const client = createNetworkManagementClient( credentials, - recorder.configureClientOptions(options) + recorder.configureClientOptions(options), ); return client; } diff --git a/sdk/notificationhubs/notification-hubs/package.json b/sdk/notificationhubs/notification-hubs/package.json index 2402227ffe39..2289995aae1b 100644 --- a/sdk/notificationhubs/notification-hubs/package.json +++ b/sdk/notificationhubs/notification-hubs/package.json @@ -42,11 +42,11 @@ "build:samples": "echo Obsolete", "build:test": "npm run bundle", "build": "npm run build:test && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf -G dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 600000 \"test/internal/**/*.spec.ts\" \"test/public/**/*.spec.ts\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -111,7 +111,6 @@ "karma-mocha-reporter": "^2.2.5", "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", - "prettier": "^3.0.3", "puppeteer": "^19.2.2", "rimraf": "^5.0.5", "ts-node": "^10.9.1", diff --git a/sdk/openai/openai/package.json b/sdk/openai/openai/package.json index a0889d2861d9..657a9d29144d 100644 --- a/sdk/openai/openai/package.json +++ b/sdk/openai/openai/package.json @@ -46,11 +46,11 @@ "bundle": "tsc -p . && dev-tool run bundle", "build": "npm run clean && npm run bundle && api-extractor run --local", "build:test": "npm run bundle", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"sources/customizations/**/*.ts\" \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"sources/customizations/**/*.ts\" \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "npm run unit-test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/public/{,!(browser)/**/}/*.spec.js\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -127,7 +127,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^3.1.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.2", "ts-node": "^10.0.0", diff --git a/sdk/personalizer/ai-personalizer-rest/package.json b/sdk/personalizer/ai-personalizer-rest/package.json index a816a163dc57..36d041489388 100644 --- a/sdk/personalizer/ai-personalizer-rest/package.json +++ b/sdk/personalizer/ai-personalizer-rest/package.json @@ -49,11 +49,11 @@ "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -85,7 +85,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^1.0.4", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/personalizer/ai-personalizer-rest/samples-dev/multiSlotRankActionsAndRewardEvents.ts b/sdk/personalizer/ai-personalizer-rest/samples-dev/multiSlotRankActionsAndRewardEvents.ts index 0c198c18a9cc..0e5a9d9de232 100644 --- a/sdk/personalizer/ai-personalizer-rest/samples-dev/multiSlotRankActionsAndRewardEvents.ts +++ b/sdk/personalizer/ai-personalizer-rest/samples-dev/multiSlotRankActionsAndRewardEvents.ts @@ -92,6 +92,6 @@ function log(message: string) { main().catch((err: PersonalizerErrorOutput) => { console.error( - `The sample encountered an error with code: ${err.code} and message: ${err.message}` + `The sample encountered an error with code: ${err.code} and message: ${err.message}`, ); }); diff --git a/sdk/personalizer/ai-personalizer-rest/samples-dev/rankActionsAndRewardEvents.ts b/sdk/personalizer/ai-personalizer-rest/samples-dev/rankActionsAndRewardEvents.ts index 4f3367914133..06596c4a943d 100644 --- a/sdk/personalizer/ai-personalizer-rest/samples-dev/rankActionsAndRewardEvents.ts +++ b/sdk/personalizer/ai-personalizer-rest/samples-dev/rankActionsAndRewardEvents.ts @@ -65,7 +65,7 @@ async function main() { const rankOutput = rankResponse.body; const eventId = rankOutput.eventId as string; log( - `Rank returned response with event id ${eventId} and recommended ${rankOutput.rewardActionId} as the best action` + `Rank returned response with event id ${eventId} and recommended ${rankOutput.rewardActionId} as the best action`, ); // The event response will be determined by how the user interacted with the action that was presented to them. @@ -87,6 +87,6 @@ function log(message: string) { main().catch((err: PersonalizerErrorOutput) => { console.error( - `The sample encountered an error with code: ${err.code} and message: ${err.message}` + `The sample encountered an error with code: ${err.code} and message: ${err.message}`, ); }); diff --git a/sdk/personalizer/ai-personalizer-rest/src/clientDefinitions.ts b/sdk/personalizer/ai-personalizer-rest/src/clientDefinitions.ts index b063d5baf495..0cd2a2a3511d 100644 --- a/sdk/personalizer/ai-personalizer-rest/src/clientDefinitions.ts +++ b/sdk/personalizer/ai-personalizer-rest/src/clientDefinitions.ts @@ -75,11 +75,11 @@ import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface ServiceConfigurationGet { /** Get the Personalizer service configuration. */ get( - options?: ServiceConfigurationGetParameters + options?: ServiceConfigurationGetParameters, ): StreamableMethod; /** Update the Personalizer service configuration. */ put( - options: ServiceConfigurationUpdateParameters + options: ServiceConfigurationUpdateParameters, ): StreamableMethod< ServiceConfigurationUpdate200Response | ServiceConfigurationUpdatedefaultResponse >; @@ -88,7 +88,7 @@ export interface ServiceConfigurationGet { export interface ServiceConfigurationApplyFromEvaluation { /** Apply Learning Settings and model from a pre-existing Offline Evaluation, making them the current online Learning Settings and model and replacing the previous ones. */ post( - options: ServiceConfigurationApplyFromEvaluationParameters + options: ServiceConfigurationApplyFromEvaluationParameters, ): StreamableMethod< | ServiceConfigurationApplyFromEvaluation204Response | ServiceConfigurationApplyFromEvaluationdefaultResponse @@ -100,7 +100,7 @@ export interface PolicyGet { get(options?: PolicyGetParameters): StreamableMethod; /** Update the Learning Settings that the Personalizer service will use to train models. */ put( - options: PolicyUpdateParameters + options: PolicyUpdateParameters, ): StreamableMethod; /** Resets the learning settings of the Personalizer service to default. */ delete(options?: PolicyResetParameters): StreamableMethod; @@ -109,7 +109,7 @@ export interface PolicyGet { export interface EvaluationsGet { /** Get the Offline Evaluation associated with the Id. */ get( - options?: EvaluationsGetParameters + options?: EvaluationsGetParameters, ): StreamableMethod; /** Delete the Offline Evaluation associated with the Id. */ delete(options?: EvaluationsDeleteParameters): StreamableMethod; @@ -120,35 +120,35 @@ export interface EvaluationsList { get(options?: EvaluationsListParameters): StreamableMethod; /** Submit a new Offline Evaluation job. */ post( - options: EvaluationsCreateParameters + options: EvaluationsCreateParameters, ): StreamableMethod; } export interface EventsReward { /** Report reward between 0 and 1 that resulted from using the action specified in rewardActionId, for the specified event. */ post( - options: EventsRewardParameters + options: EventsRewardParameters, ): StreamableMethod; } export interface EventsActivate { /** Report that the specified event was actually used (e.g. by being displayed to the user) and a reward should be expected for it. */ post( - options?: EventsActivateParameters + options?: EventsActivateParameters, ): StreamableMethod; } export interface LogInteractions { /** The endpoint is intended to be used from within a SDK for logging interactions and accepts specific format defined in https://github.com/VowpalWabbit/reinforcement_learning. This endpoint should not be used by the customer. */ post( - options: LogInteractionsParameters + options: LogInteractionsParameters, ): StreamableMethod; } export interface LogObservations { /** The endpoint is intended to be used from within a SDK for logging observations and accepts specific format defined in https://github.com/VowpalWabbit/reinforcement_learning. This endpoint should not be used by the customer. */ post( - options: LogObservationsParameters + options: LogObservationsParameters, ): StreamableMethod; } @@ -160,22 +160,22 @@ export interface LogDelete { export interface LogGetProperties { /** Get properties of the Personalizer logs. */ get( - options?: LogGetPropertiesParameters + options?: LogGetPropertiesParameters, ): StreamableMethod; } export interface ModelGet { /** Get the model file generated by Personalizer service. */ get( - options?: ModelGetParameters + options?: ModelGetParameters, ): StreamableMethod; /** Replace the existing model file for the Personalizer service. */ put( - options: ModelImportParameters + options: ModelImportParameters, ): StreamableMethod; /** Resets the model file generated by Personalizer service. */ delete( - options?: ModelResetParameters + options?: ModelResetParameters, ): StreamableMethod; } @@ -187,21 +187,21 @@ export interface ModelGetProperties { export interface MultiSlotEventsReward { /** Report reward that resulted from using the action specified in rewardActionId for the slot. */ post( - options: MultiSlotEventsRewardParameters + options: MultiSlotEventsRewardParameters, ): StreamableMethod; } export interface MultiSlotEventsActivate { /** Report that the specified event was actually used or displayed to the user and a rewards should be expected for it. */ post( - options?: MultiSlotEventsActivateParameters + options?: MultiSlotEventsActivateParameters, ): StreamableMethod; } export interface MultiSlotRank { /** Submit a Personalizer multi-slot rank request. Receives a context, a list of actions, and a list of slots. Returns which of the provided actions should be used in each slot, in each rewardActionId. */ post( - options: MultiSlotRankParameters + options: MultiSlotRankParameters, ): StreamableMethod; } diff --git a/sdk/personalizer/ai-personalizer-rest/src/isUnexpected.ts b/sdk/personalizer/ai-personalizer-rest/src/isUnexpected.ts index 67c5eb164e26..ad7898bf9474 100644 --- a/sdk/personalizer/ai-personalizer-rest/src/isUnexpected.ts +++ b/sdk/personalizer/ai-personalizer-rest/src/isUnexpected.ts @@ -66,57 +66,57 @@ const responseMap: Record = { }; export function isUnexpected( - response: ServiceConfigurationUpdate200Response | ServiceConfigurationUpdatedefaultResponse + response: ServiceConfigurationUpdate200Response | ServiceConfigurationUpdatedefaultResponse, ): response is ServiceConfigurationUpdatedefaultResponse; export function isUnexpected( response: | ServiceConfigurationApplyFromEvaluation204Response - | ServiceConfigurationApplyFromEvaluationdefaultResponse + | ServiceConfigurationApplyFromEvaluationdefaultResponse, ): response is ServiceConfigurationApplyFromEvaluationdefaultResponse; export function isUnexpected( - response: PolicyUpdate200Response | PolicyUpdatedefaultResponse + response: PolicyUpdate200Response | PolicyUpdatedefaultResponse, ): response is PolicyUpdatedefaultResponse; export function isUnexpected( - response: EvaluationsGet200Response | EvaluationsGetdefaultResponse + response: EvaluationsGet200Response | EvaluationsGetdefaultResponse, ): response is EvaluationsGetdefaultResponse; export function isUnexpected( - response: EvaluationsCreate201Response | EvaluationsCreatedefaultResponse + response: EvaluationsCreate201Response | EvaluationsCreatedefaultResponse, ): response is EvaluationsCreatedefaultResponse; export function isUnexpected( - response: EventsReward204Response | EventsRewarddefaultResponse + response: EventsReward204Response | EventsRewarddefaultResponse, ): response is EventsRewarddefaultResponse; export function isUnexpected( - response: EventsActivate204Response | EventsActivatedefaultResponse + response: EventsActivate204Response | EventsActivatedefaultResponse, ): response is EventsActivatedefaultResponse; export function isUnexpected( - response: LogInteractions204Response | LogInteractionsdefaultResponse + response: LogInteractions204Response | LogInteractionsdefaultResponse, ): response is LogInteractionsdefaultResponse; export function isUnexpected( - response: LogObservations204Response | LogObservationsdefaultResponse + response: LogObservations204Response | LogObservationsdefaultResponse, ): response is LogObservationsdefaultResponse; export function isUnexpected( - response: LogGetProperties200Response | LogGetPropertiesdefaultResponse + response: LogGetProperties200Response | LogGetPropertiesdefaultResponse, ): response is LogGetPropertiesdefaultResponse; export function isUnexpected( - response: ModelGet200Response | ModelGetdefaultResponse + response: ModelGet200Response | ModelGetdefaultResponse, ): response is ModelGetdefaultResponse; export function isUnexpected( - response: ModelImport204Response | ModelImportdefaultResponse + response: ModelImport204Response | ModelImportdefaultResponse, ): response is ModelImportdefaultResponse; export function isUnexpected( - response: ModelReset204Response | ModelResetdefaultResponse + response: ModelReset204Response | ModelResetdefaultResponse, ): response is ModelResetdefaultResponse; export function isUnexpected( - response: MultiSlotEventsReward204Response | MultiSlotEventsRewarddefaultResponse + response: MultiSlotEventsReward204Response | MultiSlotEventsRewarddefaultResponse, ): response is MultiSlotEventsRewarddefaultResponse; export function isUnexpected( - response: MultiSlotEventsActivate204Response | MultiSlotEventsActivatedefaultResponse + response: MultiSlotEventsActivate204Response | MultiSlotEventsActivatedefaultResponse, ): response is MultiSlotEventsActivatedefaultResponse; export function isUnexpected( - response: MultiSlotRank201Response | MultiSlotRankdefaultResponse + response: MultiSlotRank201Response | MultiSlotRankdefaultResponse, ): response is MultiSlotRankdefaultResponse; export function isUnexpected( - response: Rank201Response | RankdefaultResponse + response: Rank201Response | RankdefaultResponse, ): response is RankdefaultResponse; export function isUnexpected( response: @@ -153,7 +153,7 @@ export function isUnexpected( | MultiSlotRank201Response | MultiSlotRankdefaultResponse | Rank201Response - | RankdefaultResponse + | RankdefaultResponse, ): response is | ServiceConfigurationUpdatedefaultResponse | ServiceConfigurationApplyFromEvaluationdefaultResponse diff --git a/sdk/personalizer/ai-personalizer-rest/src/personalizerClient.ts b/sdk/personalizer/ai-personalizer-rest/src/personalizerClient.ts index e53e5adc4190..160aeb7da7c0 100644 --- a/sdk/personalizer/ai-personalizer-rest/src/personalizerClient.ts +++ b/sdk/personalizer/ai-personalizer-rest/src/personalizerClient.ts @@ -8,7 +8,7 @@ import { PersonalizerClient } from "./clientDefinitions"; export default function createPersonalizerClient( Endpoint: string, credentials: TokenCredential | KeyCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): PersonalizerClient { const baseUrl = options.baseUrl ?? `${Endpoint}/personalizer/v1.1-preview.3`; diff --git a/sdk/personalizer/ai-personalizer-rest/test/public/aadCredentialTests.spec.ts b/sdk/personalizer/ai-personalizer-rest/test/public/aadCredentialTests.spec.ts index 872515be1b20..661081b30363 100644 --- a/sdk/personalizer/ai-personalizer-rest/test/public/aadCredentialTests.spec.ts +++ b/sdk/personalizer/ai-personalizer-rest/test/public/aadCredentialTests.spec.ts @@ -16,7 +16,7 @@ describe("AAD Tests", () => { client = createPersonalizerClient( env["PERSONALIZER_ENDPOINT_SINGLE_SLOT"] ?? "", createTestCredential(), - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); }); diff --git a/sdk/personalizer/ai-personalizer-rest/test/public/configurationTests.spec.ts b/sdk/personalizer/ai-personalizer-rest/test/public/configurationTests.spec.ts index 1ef3311c1e32..b2a1548c699d 100644 --- a/sdk/personalizer/ai-personalizer-rest/test/public/configurationTests.spec.ts +++ b/sdk/personalizer/ai-personalizer-rest/test/public/configurationTests.spec.ts @@ -27,7 +27,7 @@ describe("Configuration Tests", () => { { key: env["PERSONALIZER_API_KEY_SINGLE_SLOT"] ?? "", }, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); }); @@ -93,7 +93,7 @@ async function getConfiguration(client: PersonalizerClient): Promise { const response = await client.path("/configurations/service").put(configuration); if (isUnexpected(response)) { @@ -112,7 +112,7 @@ async function getPolicy(client: PersonalizerClient): Promise { const response = await client.path("/configurations/policy").put(policy); if (isUnexpected(response)) { @@ -130,7 +130,7 @@ async function resetPolicy(client: PersonalizerClient): Promise { { key: env["PERSONALIZER_API_KEY_SINGLE_SLOT"] ?? "", }, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); }); @@ -51,7 +51,7 @@ describe.skip("Evaluation Tests", () => { evaluation = await getEvaluation(client, evaluationId); assert.notEqual( evaluation.policyResults?.find((policy) => policy.policySource === "Online"), - undefined + undefined, ); await deleteEvaluation(client, evaluationId); }); @@ -64,7 +64,7 @@ describe.skip("Evaluation Tests", () => { async function createEvaluation( client: PersonalizerClient, - evaluationContract: EvaluationContract + evaluationContract: EvaluationContract, ) { return client.path("/evaluations").post({ body: evaluationContract }); } @@ -86,7 +86,7 @@ async function isEvaluationFinal(client: PersonalizerClient, evaluationId: strin async function getEvaluation( client: PersonalizerClient, - evaluationId: string + evaluationId: string, ): Promise { const response = await client.path("/evaluations/{evaluationId}", evaluationId).get(); if (isUnexpected(response)) { diff --git a/sdk/personalizer/ai-personalizer-rest/test/public/eventTests.spec.ts b/sdk/personalizer/ai-personalizer-rest/test/public/eventTests.spec.ts index c33702674b9b..ff4d873c3139 100644 --- a/sdk/personalizer/ai-personalizer-rest/test/public/eventTests.spec.ts +++ b/sdk/personalizer/ai-personalizer-rest/test/public/eventTests.spec.ts @@ -18,7 +18,7 @@ describe("Event Tests", () => { { key: env["PERSONALIZER_API_KEY_SINGLE_SLOT"] ?? "", }, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); }); diff --git a/sdk/personalizer/ai-personalizer-rest/test/public/logsTests.spec.ts b/sdk/personalizer/ai-personalizer-rest/test/public/logsTests.spec.ts index 4c8e1c078851..87039ddfb85a 100644 --- a/sdk/personalizer/ai-personalizer-rest/test/public/logsTests.spec.ts +++ b/sdk/personalizer/ai-personalizer-rest/test/public/logsTests.spec.ts @@ -22,7 +22,7 @@ describe("Log Tests", () => { { key: env["PERSONALIZER_API_KEY_MULTI_SLOT"] ?? "", }, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); }); diff --git a/sdk/personalizer/ai-personalizer-rest/test/public/modelTests.spec.ts b/sdk/personalizer/ai-personalizer-rest/test/public/modelTests.spec.ts index 13bef205df1a..2da4f8f7f725 100644 --- a/sdk/personalizer/ai-personalizer-rest/test/public/modelTests.spec.ts +++ b/sdk/personalizer/ai-personalizer-rest/test/public/modelTests.spec.ts @@ -22,7 +22,7 @@ describe("Model Tests", () => { { key: env["PERSONALIZER_API_KEY_SINGLE_SLOT"] ?? "", }, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); }); @@ -48,7 +48,7 @@ describe("Model Tests", () => { async function exportModel( client: PersonalizerClient, - signed: boolean = false + signed: boolean = false, ): Promise { const response = await client.path("/model").get({ queryParameters: { signed: signed } }); if (isUnexpected(response)) { diff --git a/sdk/personalizer/ai-personalizer-rest/test/public/multiSlotEventTests.spec.ts b/sdk/personalizer/ai-personalizer-rest/test/public/multiSlotEventTests.spec.ts index cc00929a772e..094a35024d90 100644 --- a/sdk/personalizer/ai-personalizer-rest/test/public/multiSlotEventTests.spec.ts +++ b/sdk/personalizer/ai-personalizer-rest/test/public/multiSlotEventTests.spec.ts @@ -19,7 +19,7 @@ describe("Multi-Slot Event Tests", () => { { key: env["PERSONALIZER_API_KEY_MULTI_SLOT"] ?? "", }, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); if (!(await isMultiSlotEnabled(client))) { await enableMultiSlot(client); diff --git a/sdk/personalizer/ai-personalizer-rest/test/public/multiSlotRankTests.spec.ts b/sdk/personalizer/ai-personalizer-rest/test/public/multiSlotRankTests.spec.ts index 69798dafb1e5..666601366637 100644 --- a/sdk/personalizer/ai-personalizer-rest/test/public/multiSlotRankTests.spec.ts +++ b/sdk/personalizer/ai-personalizer-rest/test/public/multiSlotRankTests.spec.ts @@ -24,7 +24,7 @@ describe("Multi-Slot Rank Tests", () => { { key: env["PERSONALIZER_API_KEY_MULTI_SLOT"] ?? "", }, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); if (!(await isMultiSlotEnabled(client))) { await enableMultiSlot(client); @@ -51,11 +51,11 @@ describe("Multi-Slot Rank Tests", () => { assert.equal(slots.length, response.body.slots.length); assert.equal( 0, - response.body.slots.findIndex((slot) => slot.rewardActionId === "NewsArticle") + response.body.slots.findIndex((slot) => slot.rewardActionId === "NewsArticle"), ); assert.equal( 1, - response.body.slots.findIndex((slot) => slot.rewardActionId === "SportsArticle") + response.body.slots.findIndex((slot) => slot.rewardActionId === "SportsArticle"), ); }); diff --git a/sdk/personalizer/ai-personalizer-rest/test/public/rankTests.spec.ts b/sdk/personalizer/ai-personalizer-rest/test/public/rankTests.spec.ts index 67ea4a8e4b2c..073c0e9d79bb 100644 --- a/sdk/personalizer/ai-personalizer-rest/test/public/rankTests.spec.ts +++ b/sdk/personalizer/ai-personalizer-rest/test/public/rankTests.spec.ts @@ -23,7 +23,7 @@ describe("Rank Tests", () => { { key: env["PERSONALIZER_API_KEY_SINGLE_SLOT"] ?? "", }, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); }); diff --git a/sdk/purview/purview-administration-rest/package.json b/sdk/purview/purview-administration-rest/package.json index c1929ef4298f..a9e14a95e2d8 100644 --- a/sdk/purview/purview-administration-rest/package.json +++ b/sdk/purview/purview-administration-rest/package.json @@ -58,11 +58,11 @@ "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && mkdirp ./review && api-extractor run --local", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -115,7 +115,6 @@ "mkdirp": "^1.0.4", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/purview/purview-administration-rest/src/account/clientDefinitions.ts b/sdk/purview/purview-administration-rest/src/account/clientDefinitions.ts index 4ac2c3c2b19e..0e01be3eb8e4 100644 --- a/sdk/purview/purview-administration-rest/src/account/clientDefinitions.ts +++ b/sdk/purview/purview-administration-rest/src/account/clientDefinitions.ts @@ -53,11 +53,11 @@ import { export interface AccountsGetAccountProperties { /** Get an account */ get( - options?: AccountsGetAccountPropertiesParameters + options?: AccountsGetAccountPropertiesParameters, ): Promise; /** Updates an account */ patch( - options: AccountsUpdateAccountPropertiesParameters + options: AccountsUpdateAccountPropertiesParameters, ): Promise< AccountsUpdateAccountProperties200Response | AccountsUpdateAccountPropertiesdefaultResponse >; @@ -66,46 +66,46 @@ export interface AccountsGetAccountProperties { export interface AccountsGetAccessKeys { /** List the authorization keys associated with this account. */ post( - options?: AccountsGetAccessKeysParameters + options?: AccountsGetAccessKeysParameters, ): Promise; } export interface AccountsRegenerateAccessKey { /** Regenerate the authorization keys associated with this data catalog. */ post( - options: AccountsRegenerateAccessKeyParameters + options: AccountsRegenerateAccessKeyParameters, ): Promise; } export interface CollectionsGetCollection { /** Get a collection */ get( - options?: CollectionsGetCollectionParameters + options?: CollectionsGetCollectionParameters, ): Promise; /** Creates or updates a collection entity. */ put( - options: CollectionsCreateOrUpdateCollectionParameters + options: CollectionsCreateOrUpdateCollectionParameters, ): Promise< | CollectionsCreateOrUpdateCollection200Response | CollectionsCreateOrUpdateCollectiondefaultResponse >; /** Deletes a Collection entity. */ delete( - options?: CollectionsDeleteCollectionParameters + options?: CollectionsDeleteCollectionParameters, ): Promise; } export interface CollectionsListCollections { /** List the collections in the account. */ get( - options?: CollectionsListCollectionsParameters + options?: CollectionsListCollectionsParameters, ): Promise; } export interface CollectionsListChildCollectionNames { /** Lists the child collections names in the collection. */ get( - options?: CollectionsListChildCollectionNamesParameters + options?: CollectionsListChildCollectionNamesParameters, ): Promise< | CollectionsListChildCollectionNames200Response | CollectionsListChildCollectionNamesdefaultResponse @@ -115,28 +115,28 @@ export interface CollectionsListChildCollectionNames { export interface CollectionsGetCollectionPath { /** Gets the parent name and parent friendly name chains that represent the collection path. */ get( - options?: CollectionsGetCollectionPathParameters + options?: CollectionsGetCollectionPathParameters, ): Promise; } export interface ResourceSetRulesGetResourceSetRule { /** Get a resource set config service model. */ get( - options?: ResourceSetRulesGetResourceSetRuleParameters + options?: ResourceSetRulesGetResourceSetRuleParameters, ): Promise< | ResourceSetRulesGetResourceSetRule200Response | ResourceSetRulesGetResourceSetRuledefaultResponse >; /** Creates or updates an resource set config. */ put( - options: ResourceSetRulesCreateOrUpdateResourceSetRuleParameters + options: ResourceSetRulesCreateOrUpdateResourceSetRuleParameters, ): Promise< | ResourceSetRulesCreateOrUpdateResourceSetRule200Response | ResourceSetRulesCreateOrUpdateResourceSetRuledefaultResponse >; /** Deletes a ResourceSetRuleConfig resource. */ delete( - options?: ResourceSetRulesDeleteResourceSetRuleParameters + options?: ResourceSetRulesDeleteResourceSetRuleParameters, ): Promise< | ResourceSetRulesDeleteResourceSetRule200Response | ResourceSetRulesDeleteResourceSetRule204Response @@ -147,7 +147,7 @@ export interface ResourceSetRulesGetResourceSetRule { export interface ResourceSetRulesListResourceSetRules { /** Get a resource set config service model. */ get( - options?: ResourceSetRulesListResourceSetRulesParameters + options?: ResourceSetRulesListResourceSetRulesParameters, ): Promise< | ResourceSetRulesListResourceSetRules200Response | ResourceSetRulesListResourceSetRulesdefaultResponse @@ -168,16 +168,16 @@ export interface Routes { /** Resource for '/collections/\{collectionName\}/getChildCollectionNames' has methods for the following verbs: get */ ( path: "/collections/{collectionName}/getChildCollectionNames", - collectionName: string + collectionName: string, ): CollectionsListChildCollectionNames; /** Resource for '/collections/\{collectionName\}/getCollectionPath' has methods for the following verbs: get */ ( path: "/collections/{collectionName}/getCollectionPath", - collectionName: string + collectionName: string, ): CollectionsGetCollectionPath; /** Resource for '/resourceSetRuleConfigs/defaultResourceSetRuleConfig' has methods for the following verbs: get, put, delete */ ( - path: "/resourceSetRuleConfigs/defaultResourceSetRuleConfig" + path: "/resourceSetRuleConfigs/defaultResourceSetRuleConfig", ): ResourceSetRulesGetResourceSetRule; /** Resource for '/resourceSetRuleConfigs' has methods for the following verbs: get */ (path: "/resourceSetRuleConfigs"): ResourceSetRulesListResourceSetRules; diff --git a/sdk/purview/purview-administration-rest/src/account/paginateHelper.ts b/sdk/purview/purview-administration-rest/src/account/paginateHelper.ts index 477bace4a37f..f0d91c952cda 100644 --- a/sdk/purview/purview-administration-rest/src/account/paginateHelper.ts +++ b/sdk/purview/purview-administration-rest/src/account/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/purview/purview-administration-rest/src/account/purviewAccount.ts b/sdk/purview/purview-administration-rest/src/account/purviewAccount.ts index b866f93c8e1b..8c4259d664e7 100644 --- a/sdk/purview/purview-administration-rest/src/account/purviewAccount.ts +++ b/sdk/purview/purview-administration-rest/src/account/purviewAccount.ts @@ -7,7 +7,7 @@ import { PurviewAccountRestClient } from "./clientDefinitions"; export function PurviewAccountClient( endpoint: string, credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): PurviewAccountRestClient { const baseUrl = options.baseUrl ?? `${endpoint}`; options.apiVersion = options.apiVersion ?? "2019-11-01-preview"; diff --git a/sdk/purview/purview-administration-rest/src/metadataPolicies/clientDefinitions.ts b/sdk/purview/purview-administration-rest/src/metadataPolicies/clientDefinitions.ts index f37a290d23ca..5a5ec30b848a 100644 --- a/sdk/purview/purview-administration-rest/src/metadataPolicies/clientDefinitions.ts +++ b/sdk/purview/purview-administration-rest/src/metadataPolicies/clientDefinitions.ts @@ -22,25 +22,25 @@ import { export interface MetadataRolesList { /** Lists roles for Purview Account */ get( - options?: MetadataRolesListParameters + options?: MetadataRolesListParameters, ): Promise; } export interface MetadataPolicyListAll { /** List or Get metadata policies */ get( - options?: MetadataPolicyListAllParameters + options?: MetadataPolicyListAllParameters, ): Promise; } export interface MetadataPolicyUpdate { /** Updates a metadata policy */ put( - options?: MetadataPolicyUpdateParameters + options?: MetadataPolicyUpdateParameters, ): Promise; /** Gets a metadata policy */ get( - options?: MetadataPolicyGetParameters + options?: MetadataPolicyGetParameters, ): Promise; } diff --git a/sdk/purview/purview-administration-rest/src/metadataPolicies/paginateHelper.ts b/sdk/purview/purview-administration-rest/src/metadataPolicies/paginateHelper.ts index dbf2a859f83a..9af0f49efa4a 100644 --- a/sdk/purview/purview-administration-rest/src/metadataPolicies/paginateHelper.ts +++ b/sdk/purview/purview-administration-rest/src/metadataPolicies/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -57,7 +57,7 @@ export type PaginateReturn = TResult extends export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -116,7 +116,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -131,7 +131,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } @@ -169,7 +169,7 @@ function getPaginationProperties(initialResponse: PathUncheckedResponse) { throw new Error( `Couldn't paginate response\n Body doesn't contain an array property with name: ${[ ...itemNames, - ].join(" OR ")}` + ].join(" OR ")}`, ); } diff --git a/sdk/purview/purview-administration-rest/src/metadataPolicies/purviewMetadataPolicies.ts b/sdk/purview/purview-administration-rest/src/metadataPolicies/purviewMetadataPolicies.ts index 650e790eae34..2f36c740ec84 100644 --- a/sdk/purview/purview-administration-rest/src/metadataPolicies/purviewMetadataPolicies.ts +++ b/sdk/purview/purview-administration-rest/src/metadataPolicies/purviewMetadataPolicies.ts @@ -8,7 +8,7 @@ import { PurviewMetadataPoliciesRestClient } from "./clientDefinitions"; export function PurviewMetadataPoliciesClient( Endpoint: string, credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): PurviewMetadataPoliciesRestClient { const baseUrl = options.baseUrl ?? `${Endpoint}/policyStore`; options.apiVersion = options.apiVersion ?? "2021-07-01-preview"; diff --git a/sdk/purview/purview-administration-rest/test/public/utils/recordedClient.ts b/sdk/purview/purview-administration-rest/test/public/utils/recordedClient.ts index 2cfa00802bb2..5440abb1830c 100644 --- a/sdk/purview/purview-administration-rest/test/public/utils/recordedClient.ts +++ b/sdk/purview/purview-administration-rest/test/public/utils/recordedClient.ts @@ -27,7 +27,7 @@ const recorderOptions: RecorderStartOptions = { export async function createAccountClient( recorder: Recorder, - options?: ClientOptions + options?: ClientOptions, ): Promise { const credential = createTestCredential(); await recorder.start(recorderOptions); @@ -35,13 +35,13 @@ export async function createAccountClient( return PurviewAccountClient( env.ENDPOINT ?? "", credential, - recorder.configureClientOptions({ options }) + recorder.configureClientOptions({ options }), ); } export async function createMetadataClient( recorder: Recorder, - options?: ClientOptions + options?: ClientOptions, ): Promise { const credential = createTestCredential(); await recorder.start(recorderOptions); @@ -49,6 +49,6 @@ export async function createMetadataClient( return PurviewMetadataPoliciesClient( env.ENDPOINT ?? "", credential, - recorder.configureClientOptions({ options }) + recorder.configureClientOptions({ options }), ); } diff --git a/sdk/purview/purview-catalog-rest/package.json b/sdk/purview/purview-catalog-rest/package.json index db461721665f..c5ad74a490ee 100644 --- a/sdk/purview/purview-catalog-rest/package.json +++ b/sdk/purview/purview-catalog-rest/package.json @@ -59,11 +59,11 @@ "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -116,7 +116,6 @@ "mkdirp": "^1.0.4", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/purview/purview-catalog-rest/src/clientDefinitions.ts b/sdk/purview/purview-catalog-rest/src/clientDefinitions.ts index 4b0fe17c7ee9..d3ce6d1d1508 100644 --- a/sdk/purview/purview-catalog-rest/src/clientDefinitions.ts +++ b/sdk/purview/purview-catalog-rest/src/clientDefinitions.ts @@ -321,14 +321,14 @@ export interface EntityCreateOrUpdate { * Map and array of collections are not well supported. E.g., array>, array>. */ post( - options: EntityCreateOrUpdateParameters + options: EntityCreateOrUpdateParameters, ): Promise; } export interface EntityListByGuids { /** List entities in bulk identified by its GUIDs. */ get( - options: EntityListByGuidsParameters + options: EntityListByGuidsParameters, ): Promise; /** * Create or update entities in Atlas in bulk. @@ -336,25 +336,25 @@ export interface EntityListByGuids { * Map and array of collections are not well supported. E.g., array>, array>. */ post( - options: EntityCreateOrUpdateEntitiesParameters + options: EntityCreateOrUpdateEntitiesParameters, ): Promise; /** Delete a list of entities in bulk identified by their GUIDs or unique attributes. */ delete( - options: EntityDeleteByGuidsParameters + options: EntityDeleteByGuidsParameters, ): Promise; } export interface EntityAddClassification { /** Associate a classification to multiple entities in bulk. */ post( - options: EntityAddClassificationParameters + options: EntityAddClassificationParameters, ): Promise; } export interface EntityGetByGuid { /** Get complete definition of an entity given its GUID. */ get( - options?: EntityGetByGuidParameters + options?: EntityGetByGuidParameters, ): Promise; /** * Update entity partially - create or update entity attribute identified by its GUID. @@ -363,40 +363,40 @@ export interface EntityGetByGuid { * Null updates are not possible. */ put( - options: EntityPartialUpdateEntityAttributeByGuidParameters + options: EntityPartialUpdateEntityAttributeByGuidParameters, ): Promise< | EntityPartialUpdateEntityAttributeByGuid200Response | EntityPartialUpdateEntityAttributeByGuiddefaultResponse >; /** Delete an entity identified by its GUID. */ delete( - options?: EntityDeleteByGuidParameters + options?: EntityDeleteByGuidParameters, ): Promise; } export interface EntityGetClassification { /** List classifications for a given entity represented by a GUID. */ get( - options?: EntityGetClassificationParameters + options?: EntityGetClassificationParameters, ): Promise; /** Delete a given classification from an existing entity represented by a GUID. */ delete( - options?: EntityDeleteClassificationParameters + options?: EntityDeleteClassificationParameters, ): Promise; } export interface EntityGetClassifications { /** List classifications for a given entity represented by a GUID. */ get( - options?: EntityGetClassificationsParameters + options?: EntityGetClassificationsParameters, ): Promise; /** Add classifications to an existing entity represented by a GUID. */ post( - options: EntityAddClassificationsParameters + options: EntityAddClassificationsParameters, ): Promise; /** Update classifications to an existing entity represented by a guid. */ put( - options: EntityUpdateClassificationsParameters + options: EntityUpdateClassificationsParameters, ): Promise; } @@ -410,7 +410,7 @@ export interface EntityGetByUniqueAttributes { * GET /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. */ get( - options?: EntityGetByUniqueAttributesParameters + options?: EntityGetByUniqueAttributesParameters, ): Promise; /** * Update entity partially - Allow a subset of attributes to be updated on @@ -423,7 +423,7 @@ export interface EntityGetByUniqueAttributes { * PUT /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. */ put( - options: EntityPartialUpdateEntityByUniqueAttributesParameters + options: EntityPartialUpdateEntityByUniqueAttributesParameters, ): Promise< | EntityPartialUpdateEntityByUniqueAttributes200Response | EntityPartialUpdateEntityByUniqueAttributesdefaultResponse @@ -437,7 +437,7 @@ export interface EntityGetByUniqueAttributes { * DELETE /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. */ delete( - options?: EntityDeleteByUniqueAttributeParameters + options?: EntityDeleteByUniqueAttributeParameters, ): Promise< EntityDeleteByUniqueAttribute200Response | EntityDeleteByUniqueAttributedefaultResponse >; @@ -446,7 +446,7 @@ export interface EntityGetByUniqueAttributes { export interface EntityDeleteClassificationByUniqueAttribute { /** Delete a given classification from an entity identified by its type and unique attributes. */ delete( - options?: EntityDeleteClassificationByUniqueAttributeParameters + options?: EntityDeleteClassificationByUniqueAttributeParameters, ): Promise< | EntityDeleteClassificationByUniqueAttribute204Response | EntityDeleteClassificationByUniqueAttributedefaultResponse @@ -456,14 +456,14 @@ export interface EntityDeleteClassificationByUniqueAttribute { export interface EntityAddClassificationsByUniqueAttribute { /** Add classification to the entity identified by its type and unique attributes. */ post( - options: EntityAddClassificationsByUniqueAttributeParameters + options: EntityAddClassificationsByUniqueAttributeParameters, ): Promise< | EntityAddClassificationsByUniqueAttribute204Response | EntityAddClassificationsByUniqueAttributedefaultResponse >; /** Update classification on an entity identified by its type and unique attributes. */ put( - options: EntityUpdateClassificationsByUniqueAttributeParameters + options: EntityUpdateClassificationsByUniqueAttributeParameters, ): Promise< | EntityUpdateClassificationsByUniqueAttribute204Response | EntityUpdateClassificationsByUniqueAttributedefaultResponse @@ -473,7 +473,7 @@ export interface EntityAddClassificationsByUniqueAttribute { export interface EntitySetClassifications { /** Set classifications on entities in bulk. */ post( - options: EntitySetClassificationsParameters + options: EntitySetClassificationsParameters, ): Promise; } @@ -492,7 +492,7 @@ export interface EntityGetEntitiesByUniqueAttributes { * GET /v2/entity/bulk/uniqueAttribute/type/hive_db?attr_0:qualifiedName=db1@cl1&attr_2:qualifiedName=db2@cl1 */ get( - options?: EntityGetEntitiesByUniqueAttributesParameters + options?: EntityGetEntitiesByUniqueAttributesParameters, ): Promise< | EntityGetEntitiesByUniqueAttributes200Response | EntityGetEntitiesByUniqueAttributesdefaultResponse @@ -502,36 +502,36 @@ export interface EntityGetEntitiesByUniqueAttributes { export interface EntityGetHeader { /** Get entity header given its GUID. */ get( - options?: EntityGetHeaderParameters + options?: EntityGetHeaderParameters, ): Promise; } export interface EntityDeleteBusinessMetadata { /** Remove business metadata from an entity. */ delete( - options?: EntityDeleteBusinessMetadataParameters + options?: EntityDeleteBusinessMetadataParameters, ): Promise; /** Add business metadata to an entity. */ post( - options?: EntityAddOrUpdateBusinessMetadataParameters + options?: EntityAddOrUpdateBusinessMetadataParameters, ): Promise; } export interface EntityDeleteBusinessMetadataAttributes { /** Delete business metadata attributes from an entity. */ delete( - options?: EntityDeleteBusinessMetadataAttributesParameters + options?: EntityDeleteBusinessMetadataAttributesParameters, ): Promise; /** Add or update business metadata attributes */ post( - options?: EntityAddOrUpdateBusinessMetadataAttributesParameters + options?: EntityAddOrUpdateBusinessMetadataAttributesParameters, ): Promise; } export interface EntityGetSampleBusinessMetadataTemplate { /** Get the sample Template for uploading/creating bulk BusinessMetaData */ get( - options?: EntityGetSampleBusinessMetadataTemplateParameters + options?: EntityGetSampleBusinessMetadataTemplateParameters, ): Promise< | EntityGetSampleBusinessMetadataTemplate200Response | EntityGetSampleBusinessMetadataTemplate400Response @@ -541,7 +541,7 @@ export interface EntityGetSampleBusinessMetadataTemplate { export interface EntityImportBusinessMetadata { /** Upload the file for creating Business Metadata in BULK */ post( - options?: EntityImportBusinessMetadataParameters + options?: EntityImportBusinessMetadataParameters, ): Promise< | EntityImportBusinessMetadata200Response | EntityImportBusinessMetadata400Response @@ -561,33 +561,33 @@ export interface EntityDeleteLabels { export interface EntityDeleteLabelsByUniqueAttribute { /** Delete given labels to a given entity identified by its type and unique attributes, if labels is null/empty, no labels will be removed. If any labels in labels set are non-existing labels, they will be ignored, only existing labels will be removed. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:=. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: DELETE /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. */ delete( - options?: EntityDeleteLabelsByUniqueAttributeParameters + options?: EntityDeleteLabelsByUniqueAttributeParameters, ): Promise; /** Set labels to a given entity identified by its type and unique attributes, if labels is null/empty, existing labels will all be removed. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:=. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: POST /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. */ post( - options?: EntitySetLabelsByUniqueAttributeParameters + options?: EntitySetLabelsByUniqueAttributeParameters, ): Promise; /** Add given labels to a given entity identified by its type and unique attributes, if labels is null/empty, no labels will be added. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:=. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: PUT /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue. */ put( - options?: EntityAddLabelsByUniqueAttributeParameters + options?: EntityAddLabelsByUniqueAttributeParameters, ): Promise; } export interface GlossaryListGlossaries { /** Get all glossaries registered with Atlas. */ get( - options?: GlossaryListGlossariesParameters + options?: GlossaryListGlossariesParameters, ): Promise; /** Create a glossary. */ post( - options: GlossaryCreateGlossaryParameters + options: GlossaryCreateGlossaryParameters, ): Promise; } export interface GlossaryCreateGlossaryCategories { /** Create glossary category in bulk. */ post( - options: GlossaryCreateGlossaryCategoriesParameters + options: GlossaryCreateGlossaryCategoriesParameters, ): Promise< GlossaryCreateGlossaryCategories200Response | GlossaryCreateGlossaryCategoriesdefaultResponse >; @@ -596,7 +596,7 @@ export interface GlossaryCreateGlossaryCategories { export interface GlossaryCreateGlossaryCategory { /** Create a glossary category. */ post( - options: GlossaryCreateGlossaryCategoryParameters + options: GlossaryCreateGlossaryCategoryParameters, ): Promise< GlossaryCreateGlossaryCategory200Response | GlossaryCreateGlossaryCategorydefaultResponse >; @@ -605,17 +605,17 @@ export interface GlossaryCreateGlossaryCategory { export interface GlossaryGetGlossaryCategory { /** Get specific glossary category by its GUID. */ get( - options?: GlossaryGetGlossaryCategoryParameters + options?: GlossaryGetGlossaryCategoryParameters, ): Promise; /** Update the given glossary category by its GUID. */ put( - options: GlossaryUpdateGlossaryCategoryParameters + options: GlossaryUpdateGlossaryCategoryParameters, ): Promise< GlossaryUpdateGlossaryCategory200Response | GlossaryUpdateGlossaryCategorydefaultResponse >; /** Delete a glossary category. */ delete( - options?: GlossaryDeleteGlossaryCategoryParameters + options?: GlossaryDeleteGlossaryCategoryParameters, ): Promise< GlossaryDeleteGlossaryCategory204Response | GlossaryDeleteGlossaryCategorydefaultResponse >; @@ -624,7 +624,7 @@ export interface GlossaryGetGlossaryCategory { export interface GlossaryPartialUpdateGlossaryCategory { /** Update the glossary category partially. */ put( - options: GlossaryPartialUpdateGlossaryCategoryParameters + options: GlossaryPartialUpdateGlossaryCategoryParameters, ): Promise< | GlossaryPartialUpdateGlossaryCategory200Response | GlossaryPartialUpdateGlossaryCategorydefaultResponse @@ -634,7 +634,7 @@ export interface GlossaryPartialUpdateGlossaryCategory { export interface GlossaryListRelatedCategories { /** Get all related categories (parent and children). Limit, offset, and sort parameters are currently not being enabled and won't work even they are passed. */ get( - options?: GlossaryListRelatedCategoriesParameters + options?: GlossaryListRelatedCategoriesParameters, ): Promise< GlossaryListRelatedCategories200Response | GlossaryListRelatedCategoriesdefaultResponse >; @@ -643,36 +643,36 @@ export interface GlossaryListRelatedCategories { export interface GlossaryListCategoryTerms { /** Get all terms associated with the specific category. */ get( - options?: GlossaryListCategoryTermsParameters + options?: GlossaryListCategoryTermsParameters, ): Promise; } export interface GlossaryCreateGlossaryTerm { /** Create a glossary term. */ post( - options: GlossaryCreateGlossaryTermParameters + options: GlossaryCreateGlossaryTermParameters, ): Promise; } export interface GlossaryGetGlossaryTerm { /** Get a specific glossary term by its GUID. */ get( - options?: GlossaryGetGlossaryTermParameters + options?: GlossaryGetGlossaryTermParameters, ): Promise; /** Update the given glossary term by its GUID. */ put( - options: GlossaryUpdateGlossaryTermParameters + options: GlossaryUpdateGlossaryTermParameters, ): Promise; /** Delete a glossary term. */ delete( - options?: GlossaryDeleteGlossaryTermParameters + options?: GlossaryDeleteGlossaryTermParameters, ): Promise; } export interface GlossaryPartialUpdateGlossaryTerm { /** Update the glossary term partially. */ put( - options: GlossaryPartialUpdateGlossaryTermParameters + options: GlossaryPartialUpdateGlossaryTermParameters, ): Promise< GlossaryPartialUpdateGlossaryTerm200Response | GlossaryPartialUpdateGlossaryTermdefaultResponse >; @@ -681,32 +681,32 @@ export interface GlossaryPartialUpdateGlossaryTerm { export interface GlossaryCreateGlossaryTerms { /** Create glossary terms in bulk. */ post( - options: GlossaryCreateGlossaryTermsParameters + options: GlossaryCreateGlossaryTermsParameters, ): Promise; } export interface GlossaryGetEntitiesAssignedWithTerm { /** Get all related objects assigned with the specified term. */ get( - options?: GlossaryGetEntitiesAssignedWithTermParameters + options?: GlossaryGetEntitiesAssignedWithTermParameters, ): Promise< | GlossaryGetEntitiesAssignedWithTerm200Response | GlossaryGetEntitiesAssignedWithTermdefaultResponse >; /** Assign the given term to the provided list of related objects. */ post( - options: GlossaryAssignTermToEntitiesParameters + options: GlossaryAssignTermToEntitiesParameters, ): Promise; /** Delete the term assignment for the given list of related objects. */ put( - options: GlossaryRemoveTermAssignmentFromEntitiesParameters + options: GlossaryRemoveTermAssignmentFromEntitiesParameters, ): Promise< | GlossaryRemoveTermAssignmentFromEntities204Response | GlossaryRemoveTermAssignmentFromEntitiesdefaultResponse >; /** Delete the term assignment for the given list of related objects. */ delete( - options: GlossaryDeleteTermAssignmentFromEntitiesParameters + options: GlossaryDeleteTermAssignmentFromEntitiesParameters, ): Promise< | GlossaryDeleteTermAssignmentFromEntities204Response | GlossaryDeleteTermAssignmentFromEntitiesdefaultResponse @@ -716,29 +716,29 @@ export interface GlossaryGetEntitiesAssignedWithTerm { export interface GlossaryListRelatedTerms { /** Get all related terms for a specific term by its GUID. Limit, offset, and sort parameters are currently not being enabled and won't work even they are passed. */ get( - options?: GlossaryListRelatedTermsParameters + options?: GlossaryListRelatedTermsParameters, ): Promise; } export interface GlossaryGetGlossary { /** Get a specific Glossary by its GUID. */ get( - options?: GlossaryGetGlossaryParameters + options?: GlossaryGetGlossaryParameters, ): Promise; /** Update the given glossary. */ put( - options: GlossaryUpdateGlossaryParameters + options: GlossaryUpdateGlossaryParameters, ): Promise; /** Delete a glossary. */ delete( - options?: GlossaryDeleteGlossaryParameters + options?: GlossaryDeleteGlossaryParameters, ): Promise; } export interface GlossaryListGlossaryCategories { /** Get the categories belonging to a specific glossary. */ get( - options?: GlossaryListGlossaryCategoriesParameters + options?: GlossaryListGlossaryCategoriesParameters, ): Promise< GlossaryListGlossaryCategories200Response | GlossaryListGlossaryCategoriesdefaultResponse >; @@ -747,7 +747,7 @@ export interface GlossaryListGlossaryCategories { export interface GlossaryListGlossaryCategoriesHeaders { /** Get the category headers belonging to a specific glossary. */ get( - options?: GlossaryListGlossaryCategoriesHeadersParameters + options?: GlossaryListGlossaryCategoriesHeadersParameters, ): Promise< | GlossaryListGlossaryCategoriesHeaders200Response | GlossaryListGlossaryCategoriesHeadersdefaultResponse @@ -757,14 +757,14 @@ export interface GlossaryListGlossaryCategoriesHeaders { export interface GlossaryGetDetailedGlossary { /** Get a specific glossary with detailed information. */ get( - options?: GlossaryGetDetailedGlossaryParameters + options?: GlossaryGetDetailedGlossaryParameters, ): Promise; } export interface GlossaryPartialUpdateGlossary { /** Update the glossary partially. Some properties such as qualifiedName are not allowed to be updated. */ put( - options: GlossaryPartialUpdateGlossaryParameters + options: GlossaryPartialUpdateGlossaryParameters, ): Promise< GlossaryPartialUpdateGlossary200Response | GlossaryPartialUpdateGlossarydefaultResponse >; @@ -773,14 +773,14 @@ export interface GlossaryPartialUpdateGlossary { export interface GlossaryListGlossaryTerms { /** Get terms belonging to a specific glossary. */ get( - options?: GlossaryListGlossaryTermsParameters + options?: GlossaryListGlossaryTermsParameters, ): Promise; } export interface GlossaryListGlossaryTermHeaders { /** Get term headers belonging to a specific glossary. */ get( - options?: GlossaryListGlossaryTermHeadersParameters + options?: GlossaryListGlossaryTermHeadersParameters, ): Promise< GlossaryListGlossaryTermHeaders200Response | GlossaryListGlossaryTermHeadersdefaultResponse >; @@ -789,7 +789,7 @@ export interface GlossaryListGlossaryTermHeaders { export interface GlossaryImportGlossaryTermsViaCsv { /** Import Glossary Terms from local csv file */ post( - options: GlossaryImportGlossaryTermsViaCsvParameters + options: GlossaryImportGlossaryTermsViaCsvParameters, ): Promise< GlossaryImportGlossaryTermsViaCsv202Response | GlossaryImportGlossaryTermsViaCsvdefaultResponse >; @@ -798,7 +798,7 @@ export interface GlossaryImportGlossaryTermsViaCsv { export interface GlossaryImportGlossaryTermsViaCsvByGlossaryName { /** Import Glossary Terms from local csv file by glossaryName */ post( - options: GlossaryImportGlossaryTermsViaCsvByGlossaryNameParameters + options: GlossaryImportGlossaryTermsViaCsvByGlossaryNameParameters, ): Promise< | GlossaryImportGlossaryTermsViaCsvByGlossaryName202Response | GlossaryImportGlossaryTermsViaCsvByGlossaryNamedefaultResponse @@ -808,7 +808,7 @@ export interface GlossaryImportGlossaryTermsViaCsvByGlossaryName { export interface GlossaryGetImportCsvOperationStatus { /** Get the status of import csv operation */ get( - options?: GlossaryGetImportCsvOperationStatusParameters + options?: GlossaryGetImportCsvOperationStatusParameters, ): Promise< | GlossaryGetImportCsvOperationStatus200Response | GlossaryGetImportCsvOperationStatusdefaultResponse @@ -818,7 +818,7 @@ export interface GlossaryGetImportCsvOperationStatus { export interface GlossaryExportGlossaryTermsAsCsv { /** Export Glossary Terms as csv file */ post( - options: GlossaryExportGlossaryTermsAsCsvParameters + options: GlossaryExportGlossaryTermsAsCsvParameters, ): Promise< GlossaryExportGlossaryTermsAsCsv200Response | GlossaryExportGlossaryTermsAsCsvdefaultResponse >; @@ -827,7 +827,7 @@ export interface GlossaryExportGlossaryTermsAsCsv { export interface GlossaryListTermsByGlossaryName { /** Get terms by glossary name. */ get( - options?: GlossaryListTermsByGlossaryNameParameters + options?: GlossaryListTermsByGlossaryNameParameters, ): Promise< GlossaryListTermsByGlossaryName200Response | GlossaryListTermsByGlossaryNamedefaultResponse >; @@ -836,42 +836,42 @@ export interface GlossaryListTermsByGlossaryName { export interface DiscoveryQuery { /** Gets data using search. */ post( - options: DiscoveryQueryParameters + options: DiscoveryQueryParameters, ): Promise; } export interface DiscoverySuggest { /** Get search suggestions by query criteria. */ post( - options: DiscoverySuggestParameters + options: DiscoverySuggestParameters, ): Promise; } export interface DiscoveryBrowse { /** Browse entities by path or entity type. */ post( - options: DiscoveryBrowseParameters + options: DiscoveryBrowseParameters, ): Promise; } export interface DiscoveryAutoComplete { /** Get auto complete options. */ post( - options: DiscoveryAutoCompleteParameters + options: DiscoveryAutoCompleteParameters, ): Promise; } export interface LineageGetLineageGraph { /** Get lineage info of the entity specified by GUID. */ get( - options: LineageGetLineageGraphParameters + options: LineageGetLineageGraphParameters, ): Promise; } export interface LineageNextPageLineage { /** Return immediate next page lineage info about entity with pagination */ get( - options: LineageNextPageLineageParameters + options: LineageNextPageLineageParameters, ): Promise; } @@ -886,7 +886,7 @@ export interface LineageGetLineageByUniqueAttribute { * NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName */ get( - options: LineageGetLineageByUniqueAttributeParameters + options: LineageGetLineageByUniqueAttributeParameters, ): Promise< | LineageGetLineageByUniqueAttribute200Response | LineageGetLineageByUniqueAttribute400Response @@ -897,29 +897,29 @@ export interface LineageGetLineageByUniqueAttribute { export interface RelationshipCreate { /** Create a new relationship between entities. */ post( - options: RelationshipCreateParameters + options: RelationshipCreateParameters, ): Promise; /** Update an existing relationship between entities. */ put( - options: RelationshipUpdateParameters + options: RelationshipUpdateParameters, ): Promise; } export interface RelationshipGet { /** Get relationship information between entities by its GUID. */ get( - options?: RelationshipGetParameters + options?: RelationshipGetParameters, ): Promise; /** Delete a relationship between entities by its GUID. */ delete( - options?: RelationshipDeleteParameters + options?: RelationshipDeleteParameters, ): Promise; } export interface TypesGetBusinessMetadataDefByGuid { /** Get the businessMetadata definition for the given guid */ get( - options?: TypesGetBusinessMetadataDefByGuidParameters + options?: TypesGetBusinessMetadataDefByGuidParameters, ): Promise< TypesGetBusinessMetadataDefByGuid200Response | TypesGetBusinessMetadataDefByGuid404Response >; @@ -928,7 +928,7 @@ export interface TypesGetBusinessMetadataDefByGuid { export interface TypesGetBusinessMetadataDefByName { /** Get the businessMetadata definition by it's name (unique) */ get( - options?: TypesGetBusinessMetadataDefByNameParameters + options?: TypesGetBusinessMetadataDefByNameParameters, ): Promise< TypesGetBusinessMetadataDefByName200Response | TypesGetBusinessMetadataDefByName404Response >; @@ -937,7 +937,7 @@ export interface TypesGetBusinessMetadataDefByName { export interface TypesGetClassificationDefByGuid { /** Get the classification definition for the given GUID. */ get( - options?: TypesGetClassificationDefByGuidParameters + options?: TypesGetClassificationDefByGuidParameters, ): Promise< TypesGetClassificationDefByGuid200Response | TypesGetClassificationDefByGuiddefaultResponse >; @@ -946,7 +946,7 @@ export interface TypesGetClassificationDefByGuid { export interface TypesGetClassificationDefByName { /** Get the classification definition by its name (unique). */ get( - options?: TypesGetClassificationDefByNameParameters + options?: TypesGetClassificationDefByNameParameters, ): Promise< TypesGetClassificationDefByName200Response | TypesGetClassificationDefByNamedefaultResponse >; @@ -955,7 +955,7 @@ export interface TypesGetClassificationDefByName { export interface TypesGetEntityDefinitionByGuid { /** Get the Entity definition for the given GUID. */ get( - options?: TypesGetEntityDefinitionByGuidParameters + options?: TypesGetEntityDefinitionByGuidParameters, ): Promise< TypesGetEntityDefinitionByGuid200Response | TypesGetEntityDefinitionByGuiddefaultResponse >; @@ -964,7 +964,7 @@ export interface TypesGetEntityDefinitionByGuid { export interface TypesGetEntityDefinitionByName { /** Get the entity definition by its name (unique). */ get( - options?: TypesGetEntityDefinitionByNameParameters + options?: TypesGetEntityDefinitionByNameParameters, ): Promise< TypesGetEntityDefinitionByName200Response | TypesGetEntityDefinitionByNamedefaultResponse >; @@ -973,21 +973,21 @@ export interface TypesGetEntityDefinitionByName { export interface TypesGetEnumDefByGuid { /** Get the enum definition for the given GUID. */ get( - options?: TypesGetEnumDefByGuidParameters + options?: TypesGetEnumDefByGuidParameters, ): Promise; } export interface TypesGetEnumDefByName { /** Get the enum definition by its name (unique). */ get( - options?: TypesGetEnumDefByNameParameters + options?: TypesGetEnumDefByNameParameters, ): Promise; } export interface TypesGetRelationshipDefByGuid { /** Get the relationship definition for the given GUID. */ get( - options?: TypesGetRelationshipDefByGuidParameters + options?: TypesGetRelationshipDefByGuidParameters, ): Promise< TypesGetRelationshipDefByGuid200Response | TypesGetRelationshipDefByGuiddefaultResponse >; @@ -996,7 +996,7 @@ export interface TypesGetRelationshipDefByGuid { export interface TypesGetRelationshipDefByName { /** Get the relationship definition by its name (unique). */ get( - options?: TypesGetRelationshipDefByNameParameters + options?: TypesGetRelationshipDefByNameParameters, ): Promise< TypesGetRelationshipDefByName200Response | TypesGetRelationshipDefByNamedefaultResponse >; @@ -1005,63 +1005,63 @@ export interface TypesGetRelationshipDefByName { export interface TypesGetStructDefByGuid { /** Get the struct definition for the given GUID. */ get( - options?: TypesGetStructDefByGuidParameters + options?: TypesGetStructDefByGuidParameters, ): Promise; } export interface TypesGetStructDefByName { /** Get the struct definition by its name (unique). */ get( - options?: TypesGetStructDefByNameParameters + options?: TypesGetStructDefByNameParameters, ): Promise; } export interface TypesGetTypeDefinitionByGuid { /** Get the type definition for the given GUID. */ get( - options?: TypesGetTypeDefinitionByGuidParameters + options?: TypesGetTypeDefinitionByGuidParameters, ): Promise; } export interface TypesGetTypeDefinitionByName { /** Get the type definition by its name (unique). */ get( - options?: TypesGetTypeDefinitionByNameParameters + options?: TypesGetTypeDefinitionByNameParameters, ): Promise; /** Delete API for type identified by its name. */ delete( - options?: TypesDeleteTypeByNameParameters + options?: TypesDeleteTypeByNameParameters, ): Promise; } export interface TypesGetAllTypeDefinitions { /** Get all type definitions in Atlas in bulk. */ get( - options?: TypesGetAllTypeDefinitionsParameters + options?: TypesGetAllTypeDefinitionsParameters, ): Promise; /** * Create all atlas type definitions in bulk, only new definitions will be created. * Any changes to the existing definitions will be discarded. */ post( - options: TypesCreateTypeDefinitionsParameters + options: TypesCreateTypeDefinitionsParameters, ): Promise; /** Update all types in bulk, changes detected in the type definitions would be persisted. */ put( - options: TypesUpdateAtlasTypeDefinitionsParameters + options: TypesUpdateAtlasTypeDefinitionsParameters, ): Promise< TypesUpdateAtlasTypeDefinitions200Response | TypesUpdateAtlasTypeDefinitionsdefaultResponse >; /** Delete API for all types in bulk. */ delete( - options: TypesDeleteTypeDefinitionsParameters + options: TypesDeleteTypeDefinitionsParameters, ): Promise; } export interface TypesListTypeDefinitionHeaders { /** List all type definitions returned as a list of minimal information header. */ get( - options?: TypesListTypeDefinitionHeadersParameters + options?: TypesListTypeDefinitionHeadersParameters, ): Promise< TypesListTypeDefinitionHeaders200Response | TypesListTypeDefinitionHeadersdefaultResponse >; @@ -1070,7 +1070,7 @@ export interface TypesListTypeDefinitionHeaders { export interface TypesGetTermTemplateDefByGuid { /** Get the term template definition for the given GUID. */ get( - options?: TypesGetTermTemplateDefByGuidParameters + options?: TypesGetTermTemplateDefByGuidParameters, ): Promise< TypesGetTermTemplateDefByGuid200Response | TypesGetTermTemplateDefByGuiddefaultResponse >; @@ -1079,7 +1079,7 @@ export interface TypesGetTermTemplateDefByGuid { export interface TypesGetTermTemplateDefByName { /** Get the term template definition by its name (unique). */ get( - options?: TypesGetTermTemplateDefByNameParameters + options?: TypesGetTermTemplateDefByNameParameters, ): Promise< TypesGetTermTemplateDefByName200Response | TypesGetTermTemplateDefByNamedefaultResponse >; @@ -1092,7 +1092,7 @@ export interface CollectionCreateOrUpdate { * Map and array of collections are not well supported. E.g., array>, array>. */ post( - options: CollectionCreateOrUpdateParameters + options: CollectionCreateOrUpdateParameters, ): Promise; } @@ -1103,14 +1103,14 @@ export interface CollectionCreateOrUpdateBulk { * Map and array of collections are not well supported. E.g., array>, array>. */ post( - options: CollectionCreateOrUpdateBulkParameters + options: CollectionCreateOrUpdateBulkParameters, ): Promise; } export interface CollectionMoveEntitiesToCollection { /** Move existing entities to the target collection. */ post( - options: CollectionMoveEntitiesToCollectionParameters + options: CollectionMoveEntitiesToCollectionParameters, ): Promise< | CollectionMoveEntitiesToCollection200Response | CollectionMoveEntitiesToCollectiondefaultResponse @@ -1130,49 +1130,49 @@ export interface Routes { ( path: "/atlas/v2/entity/guid/{guid}/classification/{classificationName}", guid: string, - classificationName: string + classificationName: string, ): EntityGetClassification; /** Resource for '/atlas/v2/entity/guid/\{guid\}/classifications' has methods for the following verbs: get, post, put */ (path: "/atlas/v2/entity/guid/{guid}/classifications", guid: string): EntityGetClassifications; /** Resource for '/atlas/v2/entity/uniqueAttribute/type/\{typeName\}' has methods for the following verbs: get, put, delete */ ( path: "/atlas/v2/entity/uniqueAttribute/type/{typeName}", - typeName: string + typeName: string, ): EntityGetByUniqueAttributes; /** Resource for '/atlas/v2/entity/uniqueAttribute/type/\{typeName\}/classification/\{classificationName\}' has methods for the following verbs: delete */ ( path: "/atlas/v2/entity/uniqueAttribute/type/{typeName}/classification/{classificationName}", typeName: string, - classificationName: string + classificationName: string, ): EntityDeleteClassificationByUniqueAttribute; /** Resource for '/atlas/v2/entity/uniqueAttribute/type/\{typeName\}/classifications' has methods for the following verbs: post, put */ ( path: "/atlas/v2/entity/uniqueAttribute/type/{typeName}/classifications", - typeName: string + typeName: string, ): EntityAddClassificationsByUniqueAttribute; /** Resource for '/atlas/v2/entity/bulk/setClassifications' has methods for the following verbs: post */ (path: "/atlas/v2/entity/bulk/setClassifications"): EntitySetClassifications; /** Resource for '/atlas/v2/entity/bulk/uniqueAttribute/type/\{typeName\}' has methods for the following verbs: get */ ( path: "/atlas/v2/entity/bulk/uniqueAttribute/type/{typeName}", - typeName: string + typeName: string, ): EntityGetEntitiesByUniqueAttributes; /** Resource for '/atlas/v2/entity/guid/\{guid\}/header' has methods for the following verbs: get */ (path: "/atlas/v2/entity/guid/{guid}/header", guid: string): EntityGetHeader; /** Resource for '/atlas/v2/entity/guid/\{guid\}/businessmetadata' has methods for the following verbs: delete, post */ ( path: "/atlas/v2/entity/guid/{guid}/businessmetadata", - guid: string + guid: string, ): EntityDeleteBusinessMetadata; /** Resource for '/atlas/v2/entity/guid/\{guid\}/businessmetadata/\{bmName\}' has methods for the following verbs: delete, post */ ( path: "/atlas/v2/entity/guid/{guid}/businessmetadata/{bmName}", guid: string, - bmName: string + bmName: string, ): EntityDeleteBusinessMetadataAttributes; /** Resource for '/atlas/v2/entity/businessmetadata/import/template' has methods for the following verbs: get */ ( - path: "/atlas/v2/entity/businessmetadata/import/template" + path: "/atlas/v2/entity/businessmetadata/import/template", ): EntityGetSampleBusinessMetadataTemplate; /** Resource for '/atlas/v2/entity/businessmetadata/import' has methods for the following verbs: post */ (path: "/atlas/v2/entity/businessmetadata/import"): EntityImportBusinessMetadata; @@ -1181,7 +1181,7 @@ export interface Routes { /** Resource for '/atlas/v2/entity/uniqueAttribute/type/\{typeName\}/labels' has methods for the following verbs: delete, post, put */ ( path: "/atlas/v2/entity/uniqueAttribute/type/{typeName}/labels", - typeName: string + typeName: string, ): EntityDeleteLabelsByUniqueAttribute; /** Resource for '/atlas/v2/glossary' has methods for the following verbs: get, post */ (path: "/atlas/v2/glossary"): GlossaryListGlossaries; @@ -1192,22 +1192,22 @@ export interface Routes { /** Resource for '/atlas/v2/glossary/category/\{categoryGuid\}' has methods for the following verbs: get, put, delete */ ( path: "/atlas/v2/glossary/category/{categoryGuid}", - categoryGuid: string + categoryGuid: string, ): GlossaryGetGlossaryCategory; /** Resource for '/atlas/v2/glossary/category/\{categoryGuid\}/partial' has methods for the following verbs: put */ ( path: "/atlas/v2/glossary/category/{categoryGuid}/partial", - categoryGuid: string + categoryGuid: string, ): GlossaryPartialUpdateGlossaryCategory; /** Resource for '/atlas/v2/glossary/category/\{categoryGuid\}/related' has methods for the following verbs: get */ ( path: "/atlas/v2/glossary/category/{categoryGuid}/related", - categoryGuid: string + categoryGuid: string, ): GlossaryListRelatedCategories; /** Resource for '/atlas/v2/glossary/category/\{categoryGuid\}/terms' has methods for the following verbs: get */ ( path: "/atlas/v2/glossary/category/{categoryGuid}/terms", - categoryGuid: string + categoryGuid: string, ): GlossaryListCategoryTerms; /** Resource for '/atlas/v2/glossary/term' has methods for the following verbs: post */ (path: "/atlas/v2/glossary/term"): GlossaryCreateGlossaryTerm; @@ -1216,14 +1216,14 @@ export interface Routes { /** Resource for '/atlas/v2/glossary/term/\{termGuid\}/partial' has methods for the following verbs: put */ ( path: "/atlas/v2/glossary/term/{termGuid}/partial", - termGuid: string + termGuid: string, ): GlossaryPartialUpdateGlossaryTerm; /** Resource for '/atlas/v2/glossary/terms' has methods for the following verbs: post */ (path: "/atlas/v2/glossary/terms"): GlossaryCreateGlossaryTerms; /** Resource for '/atlas/v2/glossary/terms/\{termGuid\}/assignedEntities' has methods for the following verbs: get, post, put, delete */ ( path: "/atlas/v2/glossary/terms/{termGuid}/assignedEntities", - termGuid: string + termGuid: string, ): GlossaryGetEntitiesAssignedWithTerm; /** Resource for '/atlas/v2/glossary/terms/\{termGuid\}/related' has methods for the following verbs: get */ (path: "/atlas/v2/glossary/terms/{termGuid}/related", termGuid: string): GlossaryListRelatedTerms; @@ -1232,57 +1232,57 @@ export interface Routes { /** Resource for '/atlas/v2/glossary/\{glossaryGuid\}/categories' has methods for the following verbs: get */ ( path: "/atlas/v2/glossary/{glossaryGuid}/categories", - glossaryGuid: string + glossaryGuid: string, ): GlossaryListGlossaryCategories; /** Resource for '/atlas/v2/glossary/\{glossaryGuid\}/categories/headers' has methods for the following verbs: get */ ( path: "/atlas/v2/glossary/{glossaryGuid}/categories/headers", - glossaryGuid: string + glossaryGuid: string, ): GlossaryListGlossaryCategoriesHeaders; /** Resource for '/atlas/v2/glossary/\{glossaryGuid\}/detailed' has methods for the following verbs: get */ ( path: "/atlas/v2/glossary/{glossaryGuid}/detailed", - glossaryGuid: string + glossaryGuid: string, ): GlossaryGetDetailedGlossary; /** Resource for '/atlas/v2/glossary/\{glossaryGuid\}/partial' has methods for the following verbs: put */ ( path: "/atlas/v2/glossary/{glossaryGuid}/partial", - glossaryGuid: string + glossaryGuid: string, ): GlossaryPartialUpdateGlossary; /** Resource for '/atlas/v2/glossary/\{glossaryGuid\}/terms' has methods for the following verbs: get */ ( path: "/atlas/v2/glossary/{glossaryGuid}/terms", - glossaryGuid: string + glossaryGuid: string, ): GlossaryListGlossaryTerms; /** Resource for '/atlas/v2/glossary/\{glossaryGuid\}/terms/headers' has methods for the following verbs: get */ ( path: "/atlas/v2/glossary/{glossaryGuid}/terms/headers", - glossaryGuid: string + glossaryGuid: string, ): GlossaryListGlossaryTermHeaders; /** Resource for '/glossary/\{glossaryGuid\}/terms/import' has methods for the following verbs: post */ ( path: "/glossary/{glossaryGuid}/terms/import", - glossaryGuid: string + glossaryGuid: string, ): GlossaryImportGlossaryTermsViaCsv; /** Resource for '/glossary/name/\{glossaryName\}/terms/import' has methods for the following verbs: post */ ( path: "/glossary/name/{glossaryName}/terms/import", - glossaryName: string + glossaryName: string, ): GlossaryImportGlossaryTermsViaCsvByGlossaryName; /** Resource for '/glossary/terms/import/\{operationGuid\}' has methods for the following verbs: get */ ( path: "/glossary/terms/import/{operationGuid}", - operationGuid: string + operationGuid: string, ): GlossaryGetImportCsvOperationStatus; /** Resource for '/glossary/\{glossaryGuid\}/terms/export' has methods for the following verbs: post */ ( path: "/glossary/{glossaryGuid}/terms/export", - glossaryGuid: string + glossaryGuid: string, ): GlossaryExportGlossaryTermsAsCsv; /** Resource for '/glossary/name/\{glossaryName\}/terms' has methods for the following verbs: get */ ( path: "/glossary/name/{glossaryName}/terms", - glossaryName: string + glossaryName: string, ): GlossaryListTermsByGlossaryName; /** Resource for '/search/query' has methods for the following verbs: post */ (path: "/search/query"): DiscoveryQuery; @@ -1299,7 +1299,7 @@ export interface Routes { /** Resource for '/atlas/v2/lineage/uniqueAttribute/type/\{typeName\}' has methods for the following verbs: get */ ( path: "/atlas/v2/lineage/uniqueAttribute/type/{typeName}", - typeName: string + typeName: string, ): LineageGetLineageByUniqueAttribute; /** Resource for '/atlas/v2/relationship' has methods for the following verbs: post, put */ (path: "/atlas/v2/relationship"): RelationshipCreate; @@ -1308,22 +1308,22 @@ export interface Routes { /** Resource for '/atlas/v2/types/businessmetadatadef/guid/\{guid\}' has methods for the following verbs: get */ ( path: "/atlas/v2/types/businessmetadatadef/guid/{guid}", - guid: string + guid: string, ): TypesGetBusinessMetadataDefByGuid; /** Resource for '/atlas/v2/types/businessmetadatadef/name/\{name\}' has methods for the following verbs: get */ ( path: "/atlas/v2/types/businessmetadatadef/name/{name}", - name: string + name: string, ): TypesGetBusinessMetadataDefByName; /** Resource for '/atlas/v2/types/classificationdef/guid/\{guid\}' has methods for the following verbs: get */ ( path: "/atlas/v2/types/classificationdef/guid/{guid}", - guid: string + guid: string, ): TypesGetClassificationDefByGuid; /** Resource for '/atlas/v2/types/classificationdef/name/\{name\}' has methods for the following verbs: get */ ( path: "/atlas/v2/types/classificationdef/name/{name}", - name: string + name: string, ): TypesGetClassificationDefByName; /** Resource for '/atlas/v2/types/entitydef/guid/\{guid\}' has methods for the following verbs: get */ (path: "/atlas/v2/types/entitydef/guid/{guid}", guid: string): TypesGetEntityDefinitionByGuid; @@ -1336,12 +1336,12 @@ export interface Routes { /** Resource for '/atlas/v2/types/relationshipdef/guid/\{guid\}' has methods for the following verbs: get */ ( path: "/atlas/v2/types/relationshipdef/guid/{guid}", - guid: string + guid: string, ): TypesGetRelationshipDefByGuid; /** Resource for '/atlas/v2/types/relationshipdef/name/\{name\}' has methods for the following verbs: get */ ( path: "/atlas/v2/types/relationshipdef/name/{name}", - name: string + name: string, ): TypesGetRelationshipDefByName; /** Resource for '/atlas/v2/types/structdef/guid/\{guid\}' has methods for the following verbs: get */ (path: "/atlas/v2/types/structdef/guid/{guid}", guid: string): TypesGetStructDefByGuid; @@ -1366,7 +1366,7 @@ export interface Routes { /** Resource for '/collections/\{collection\}/entity/moveHere' has methods for the following verbs: post */ ( path: "/collections/{collection}/entity/moveHere", - collection: string + collection: string, ): CollectionMoveEntitiesToCollection; } diff --git a/sdk/purview/purview-catalog-rest/src/pollingHelper.ts b/sdk/purview/purview-catalog-rest/src/pollingHelper.ts index 4868774b8c3b..9ea8c49b0ad0 100644 --- a/sdk/purview/purview-catalog-rest/src/pollingHelper.ts +++ b/sdk/purview/purview-catalog-rest/src/pollingHelper.ts @@ -21,7 +21,7 @@ import { export function getLongRunningPoller( client: Client, initialResponse: TResult, - options: LroEngineOptions> = {} + options: LroEngineOptions> = {}, ): PollerLike, TResult> { const poller: LongRunningOperation = { requestMethod: initialResponse.request.method, diff --git a/sdk/purview/purview-catalog-rest/src/purviewCatalog.ts b/sdk/purview/purview-catalog-rest/src/purviewCatalog.ts index 326984be1299..f05a33d0c361 100644 --- a/sdk/purview/purview-catalog-rest/src/purviewCatalog.ts +++ b/sdk/purview/purview-catalog-rest/src/purviewCatalog.ts @@ -8,7 +8,7 @@ import { PurviewCatalogClient } from "./clientDefinitions"; export default function createClient( Endpoint: string, credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): PurviewCatalogClient { const baseUrl = options.baseUrl ?? `${Endpoint}/catalog/api`; options.apiVersion = options.apiVersion ?? "2022-03-01-preview"; diff --git a/sdk/purview/purview-catalog-rest/test/public/glossary.spec.ts b/sdk/purview/purview-catalog-rest/test/public/glossary.spec.ts index 498a0cc97128..62559d700452 100644 --- a/sdk/purview/purview-catalog-rest/test/public/glossary.spec.ts +++ b/sdk/purview/purview-catalog-rest/test/public/glossary.spec.ts @@ -47,7 +47,7 @@ describe("purview catalog glossary test", () => { headersForRemoval: ["Content-Type", "Transfer-Encoding"], }, }, - ["playback", "record"] + ["playback", "record"], ); await recorder.setMatcher("BodilessMatcher"); const initialResponse = await client diff --git a/sdk/purview/purview-catalog-rest/test/public/utils/recordedClient.ts b/sdk/purview/purview-catalog-rest/test/public/utils/recordedClient.ts index 8c601dab7260..d7245b2b8f34 100644 --- a/sdk/purview/purview-catalog-rest/test/public/utils/recordedClient.ts +++ b/sdk/purview/purview-catalog-rest/test/public/utils/recordedClient.ts @@ -22,7 +22,7 @@ const recorderOptions: RecorderStartOptions = { export async function createClient( recorder: Recorder, - options?: ClientOptions + options?: ClientOptions, ): Promise { const credential = createTestCredential(); @@ -33,6 +33,6 @@ export async function createClient( credential, recorder.configureClientOptions({ options, - }) + }), ); } diff --git a/sdk/purview/purview-scanning-rest/package.json b/sdk/purview/purview-scanning-rest/package.json index dd60df6b85ca..fc43804bc108 100644 --- a/sdk/purview/purview-scanning-rest/package.json +++ b/sdk/purview/purview-scanning-rest/package.json @@ -58,11 +58,11 @@ "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -115,7 +115,6 @@ "mkdirp": "^1.0.4", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/purview/purview-scanning-rest/src/paginateHelper.ts b/sdk/purview/purview-scanning-rest/src/paginateHelper.ts index 477bace4a37f..f0d91c952cda 100644 --- a/sdk/purview/purview-scanning-rest/src/paginateHelper.ts +++ b/sdk/purview/purview-scanning-rest/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/purview/purview-scanning-rest/src/purviewScanning.ts b/sdk/purview/purview-scanning-rest/src/purviewScanning.ts index 5d2439146241..092b26966ac0 100644 --- a/sdk/purview/purview-scanning-rest/src/purviewScanning.ts +++ b/sdk/purview/purview-scanning-rest/src/purviewScanning.ts @@ -128,15 +128,15 @@ import { TokenCredential } from "@azure/core-auth"; export interface KeyVaultConnectionsGet { /** Gets key vault information */ get( - options?: KeyVaultConnectionsGetParameters + options?: KeyVaultConnectionsGetParameters, ): Promise; /** Creates an instance of a key vault connection */ put( - options: KeyVaultConnectionsCreateParameters + options: KeyVaultConnectionsCreateParameters, ): Promise; /** Deletes the key vault connection associated with the account */ delete( - options?: KeyVaultConnectionsDeleteParameters + options?: KeyVaultConnectionsDeleteParameters, ): Promise< | KeyVaultConnectionsDelete200Response | KeyVaultConnectionsDelete204Response @@ -147,18 +147,18 @@ export interface KeyVaultConnectionsGet { export interface KeyVaultConnectionsListAll { /** List key vault connections in account */ get( - options?: KeyVaultConnectionsListAllParameters + options?: KeyVaultConnectionsListAllParameters, ): Promise; } export interface ClassificationRulesGet { /** Get a classification rule */ get( - options?: ClassificationRulesGetParameters + options?: ClassificationRulesGetParameters, ): Promise; /** Creates or Updates a classification rule */ put( - options?: ClassificationRulesCreateOrUpdateParameters + options?: ClassificationRulesCreateOrUpdateParameters, ): Promise< | ClassificationRulesCreateOrUpdate200Response | ClassificationRulesCreateOrUpdate201Response @@ -166,7 +166,7 @@ export interface ClassificationRulesGet { >; /** Deletes a classification rule */ delete( - options?: ClassificationRulesDeleteParameters + options?: ClassificationRulesDeleteParameters, ): Promise< | ClassificationRulesDelete200Response | ClassificationRulesDelete204Response @@ -177,14 +177,14 @@ export interface ClassificationRulesGet { export interface ClassificationRulesListAll { /** List classification rules in Account */ get( - options?: ClassificationRulesListAllParameters + options?: ClassificationRulesListAllParameters, ): Promise; } export interface ClassificationRulesListVersionsByClassificationRuleName { /** Lists the rule versions of a classification rule */ get( - options?: ClassificationRulesListVersionsByClassificationRuleNameParameters + options?: ClassificationRulesListVersionsByClassificationRuleNameParameters, ): Promise< | ClassificationRulesListVersionsByClassificationRuleName200Response | ClassificationRulesListVersionsByClassificationRuleNamedefaultResponse @@ -194,7 +194,7 @@ export interface ClassificationRulesListVersionsByClassificationRuleName { export interface ClassificationRulesTagClassificationVersion { /** Sets Classification Action on a specific classification rule version. */ post( - options: ClassificationRulesTagClassificationVersionParameters + options: ClassificationRulesTagClassificationVersionParameters, ): Promise< | ClassificationRulesTagClassificationVersion202Response | ClassificationRulesTagClassificationVersiondefaultResponse @@ -204,7 +204,7 @@ export interface ClassificationRulesTagClassificationVersion { export interface DataSourcesCreateOrUpdate { /** Creates or Updates a data source */ put( - options?: DataSourcesCreateOrUpdateParameters + options?: DataSourcesCreateOrUpdateParameters, ): Promise< | DataSourcesCreateOrUpdate200Response | DataSourcesCreateOrUpdate201Response @@ -212,11 +212,11 @@ export interface DataSourcesCreateOrUpdate { >; /** Get a data source */ get( - options?: DataSourcesGetParameters + options?: DataSourcesGetParameters, ): Promise; /** Deletes a data source */ delete( - options?: DataSourcesDeleteParameters + options?: DataSourcesDeleteParameters, ): Promise< DataSourcesDelete200Response | DataSourcesDelete204Response | DataSourcesDeletedefaultResponse >; @@ -225,7 +225,7 @@ export interface DataSourcesCreateOrUpdate { export interface DataSourcesListAll { /** List data sources in Data catalog */ get( - options?: DataSourcesListAllParameters + options?: DataSourcesListAllParameters, ): Promise; } @@ -234,7 +234,7 @@ export interface FiltersGet { get(options?: FiltersGetParameters): Promise; /** Creates or updates a filter */ put( - options?: FiltersCreateOrUpdateParameters + options?: FiltersCreateOrUpdateParameters, ): Promise< | FiltersCreateOrUpdate200Response | FiltersCreateOrUpdate201Response @@ -245,7 +245,7 @@ export interface FiltersGet { export interface ScansCreateOrUpdate { /** Creates an instance of a scan */ put( - options: ScansCreateOrUpdateParameters + options: ScansCreateOrUpdateParameters, ): Promise< | ScansCreateOrUpdate200Response | ScansCreateOrUpdate201Response @@ -255,46 +255,46 @@ export interface ScansCreateOrUpdate { get(options?: ScansGetParameters): Promise; /** Deletes the scan associated with the data source */ delete( - options?: ScansDeleteParameters + options?: ScansDeleteParameters, ): Promise; } export interface ScansListByDataSource { /** List scans in data source */ get( - options?: ScansListByDataSourceParameters + options?: ScansListByDataSourceParameters, ): Promise; } export interface ScanResultRunScan { /** Runs the scan */ put( - options?: ScanResultRunScanParameters + options?: ScanResultRunScanParameters, ): Promise; } export interface ScanResultCancelScan { /** Cancels a scan */ post( - options?: ScanResultCancelScanParameters + options?: ScanResultCancelScanParameters, ): Promise; } export interface ScanResultListScanHistory { /** Lists the scan history of a scan */ get( - options?: ScanResultListScanHistoryParameters + options?: ScanResultListScanHistoryParameters, ): Promise; } export interface ScanRulesetsGet { /** Get a scan ruleset */ get( - options?: ScanRulesetsGetParameters + options?: ScanRulesetsGetParameters, ): Promise; /** Creates or Updates a scan ruleset */ put( - options?: ScanRulesetsCreateOrUpdateParameters + options?: ScanRulesetsCreateOrUpdateParameters, ): Promise< | ScanRulesetsCreateOrUpdate200Response | ScanRulesetsCreateOrUpdate201Response @@ -302,7 +302,7 @@ export interface ScanRulesetsGet { >; /** Deletes a scan ruleset */ delete( - options?: ScanRulesetsDeleteParameters + options?: ScanRulesetsDeleteParameters, ): Promise< | ScanRulesetsDelete200Response | ScanRulesetsDelete204Response @@ -313,28 +313,28 @@ export interface ScanRulesetsGet { export interface ScanRulesetsListAll { /** List scan rulesets in Data catalog */ get( - options?: ScanRulesetsListAllParameters + options?: ScanRulesetsListAllParameters, ): Promise; } export interface SystemScanRulesetsListAll { /** List all system scan rulesets for an account */ get( - options?: SystemScanRulesetsListAllParameters + options?: SystemScanRulesetsListAllParameters, ): Promise; } export interface SystemScanRulesetsGet { /** Get a system scan ruleset for a data source */ get( - options?: SystemScanRulesetsGetParameters + options?: SystemScanRulesetsGetParameters, ): Promise; } export interface SystemScanRulesetsGetByVersion { /** Get a scan ruleset by version */ get( - options?: SystemScanRulesetsGetByVersionParameters + options?: SystemScanRulesetsGetByVersionParameters, ): Promise< SystemScanRulesetsGetByVersion200Response | SystemScanRulesetsGetByVersiondefaultResponse >; @@ -343,14 +343,14 @@ export interface SystemScanRulesetsGetByVersion { export interface SystemScanRulesetsGetLatest { /** Get the latest version of a system scan ruleset */ get( - options?: SystemScanRulesetsGetLatestParameters + options?: SystemScanRulesetsGetLatestParameters, ): Promise; } export interface SystemScanRulesetsListVersionsByDataSource { /** List system scan ruleset versions in Data catalog */ get( - options?: SystemScanRulesetsListVersionsByDataSourceParameters + options?: SystemScanRulesetsListVersionsByDataSourceParameters, ): Promise< | SystemScanRulesetsListVersionsByDataSource200Response | SystemScanRulesetsListVersionsByDataSourcedefaultResponse @@ -360,11 +360,11 @@ export interface SystemScanRulesetsListVersionsByDataSource { export interface TriggersGetTrigger { /** Gets trigger information */ get( - options?: TriggersGetTriggerParameters + options?: TriggersGetTriggerParameters, ): Promise; /** Creates an instance of a trigger */ put( - options: TriggersCreateTriggerParameters + options: TriggersCreateTriggerParameters, ): Promise< | TriggersCreateTrigger200Response | TriggersCreateTrigger201Response @@ -372,7 +372,7 @@ export interface TriggersGetTrigger { >; /** Deletes the trigger associated with the scan */ delete( - options?: TriggersDeleteTriggerParameters + options?: TriggersDeleteTriggerParameters, ): Promise< | TriggersDeleteTrigger200Response | TriggersDeleteTrigger204Response @@ -388,20 +388,20 @@ export interface Routes { /** Resource for '/classificationrules/\{classificationRuleName\}' has methods for the following verbs: get, put, delete */ ( path: "/classificationrules/{classificationRuleName}", - classificationRuleName: string + classificationRuleName: string, ): ClassificationRulesGet; /** Resource for '/classificationrules' has methods for the following verbs: get */ (path: "/classificationrules"): ClassificationRulesListAll; /** Resource for '/classificationrules/\{classificationRuleName\}/versions' has methods for the following verbs: get */ ( path: "/classificationrules/{classificationRuleName}/versions", - classificationRuleName: string + classificationRuleName: string, ): ClassificationRulesListVersionsByClassificationRuleName; /** Resource for '/classificationrules/\{classificationRuleName\}/versions/\{classificationRuleVersion\}/:tag' has methods for the following verbs: post */ ( path: "/classificationrules/{classificationRuleName}/versions/{classificationRuleVersion}/:tag", classificationRuleName: string, - classificationRuleVersion: string + classificationRuleVersion: string, ): ClassificationRulesTagClassificationVersion; /** Resource for '/datasources/\{dataSourceName\}' has methods for the following verbs: put, get, delete */ (path: "/datasources/{dataSourceName}", dataSourceName: string): DataSourcesCreateOrUpdate; @@ -411,13 +411,13 @@ export interface Routes { ( path: "/datasources/{dataSourceName}/scans/{scanName}/filters/custom", dataSourceName: string, - scanName: string + scanName: string, ): FiltersGet; /** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}' has methods for the following verbs: put, get, delete */ ( path: "/datasources/{dataSourceName}/scans/{scanName}", dataSourceName: string, - scanName: string + scanName: string, ): ScansCreateOrUpdate; /** Resource for '/datasources/\{dataSourceName\}/scans' has methods for the following verbs: get */ (path: "/datasources/{dataSourceName}/scans", dataSourceName: string): ScansListByDataSource; @@ -426,20 +426,20 @@ export interface Routes { path: "/datasources/{dataSourceName}/scans/{scanName}/runs/{runId}", dataSourceName: string, scanName: string, - runId: string + runId: string, ): ScanResultRunScan; /** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}/runs/\{runId\}/:cancel' has methods for the following verbs: post */ ( path: "/datasources/{dataSourceName}/scans/{scanName}/runs/{runId}/:cancel", dataSourceName: string, scanName: string, - runId: string + runId: string, ): ScanResultCancelScan; /** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}/runs' has methods for the following verbs: get */ ( path: "/datasources/{dataSourceName}/scans/{scanName}/runs", dataSourceName: string, - scanName: string + scanName: string, ): ScanResultListScanHistory; /** Resource for '/scanrulesets/\{scanRulesetName\}' has methods for the following verbs: get, put, delete */ (path: "/scanrulesets/{scanRulesetName}", scanRulesetName: string): ScanRulesetsGet; @@ -450,7 +450,7 @@ export interface Routes { /** Resource for '/systemScanRulesets/datasources/\{dataSourceType\}' has methods for the following verbs: get */ ( path: "/systemScanRulesets/datasources/{dataSourceType}", - dataSourceType: string + dataSourceType: string, ): SystemScanRulesetsGet; /** Resource for '/systemScanRulesets/versions/\{version\}' has methods for the following verbs: get */ (path: "/systemScanRulesets/versions/{version}", version: string): SystemScanRulesetsGetByVersion; @@ -462,7 +462,7 @@ export interface Routes { ( path: "/datasources/{dataSourceName}/scans/{scanName}/triggers/default", dataSourceName: string, - scanName: string + scanName: string, ): TriggersGetTrigger; } @@ -473,7 +473,7 @@ export type PurviewScanningRestClient = Client & { export default function PurviewScanning( Endpoint: string, credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): PurviewScanningRestClient { const baseUrl = options.baseUrl ?? `${Endpoint}`; options.apiVersion = options.apiVersion ?? "2018-12-01-preview"; diff --git a/sdk/purview/purview-scanning-rest/test/public/utils/recordedClient.ts b/sdk/purview/purview-scanning-rest/test/public/utils/recordedClient.ts index 94d98c016910..9b4df420e444 100644 --- a/sdk/purview/purview-scanning-rest/test/public/utils/recordedClient.ts +++ b/sdk/purview/purview-scanning-rest/test/public/utils/recordedClient.ts @@ -22,13 +22,13 @@ const recorderOptions: RecorderStartOptions = { export async function createClient( recorder: Recorder, - options?: ClientOptions + options?: ClientOptions, ): Promise { const credential = createTestCredential(); await recorder.start(recorderOptions); return PurviewScanning( env.ENDPOINT ?? "", credential, - recorder.configureClientOptions({ ...options }) + recorder.configureClientOptions({ ...options }), ); } diff --git a/sdk/purview/purview-sharing-rest/package.json b/sdk/purview/purview-sharing-rest/package.json index 89672bcdabaa..7ed4b21b214f 100644 --- a/sdk/purview/purview-sharing-rest/package.json +++ b/sdk/purview/purview-sharing-rest/package.json @@ -38,11 +38,11 @@ "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\" \"samples-dev/**/*.ts\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\" \"samples-dev/**/*.ts\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\" \"samples-dev/**/*.ts\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\" \"samples-dev/**/*.ts\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -98,7 +98,6 @@ "mkdirp": "^2.1.2", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/purview/purview-sharing-rest/samples-dev/manageSharesSample.ts b/sdk/purview/purview-sharing-rest/samples-dev/manageSharesSample.ts index c9899077bcc1..b4b13fc4347a 100644 --- a/sdk/purview/purview-sharing-rest/samples-dev/manageSharesSample.ts +++ b/sdk/purview/purview-sharing-rest/samples-dev/manageSharesSample.ts @@ -42,13 +42,13 @@ async function getSentShare(client: PurviewSharingClient, sentShareId: string) { async function getSentShareInvitation( client: PurviewSharingClient, sentShareId: string, - sentShareInvitationId: string + sentShareInvitationId: string, ) { const result = await client .path( "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}", sentShareId, - sentShareInvitationId + sentShareInvitationId, ) .get(); @@ -68,13 +68,13 @@ async function getSentShareInvitation( async function notifyUserSentShareInvitation( client: PurviewSharingClient, sentShareId: string, - sentShareInvitationId: string + sentShareInvitationId: string, ) { const result = await client .path( "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify", sentShareId, - sentShareInvitationId + sentShareInvitationId, ) .post(); @@ -93,7 +93,7 @@ async function notifyUserSentShareInvitation( */ async function getAllSentShareInvitations( client: PurviewSharingClient, - sentShareId: string + sentShareId: string, ): Promise { const initialResponse = await client .path("/sentShares/{sentShareId}/sentShareInvitations", sentShareId) @@ -143,7 +143,7 @@ async function getAllShareResources(client: PurviewSharingClient): Promise { const options: SentSharesGetAllSentSharesParameters = { queryParameters: { @@ -187,7 +187,7 @@ async function getReceivedShare(client: PurviewSharingClient, receivedShareId: s */ async function getAllAttachedReceivedShares( client: PurviewSharingClient, - storageAccountResourceId: string + storageAccountResourceId: string, ): Promise { const options: ReceivedSharesGetAllAttachedReceivedSharesParameters = { queryParameters: { @@ -235,13 +235,13 @@ async function deleteReceivedShare(client: PurviewSharingClient, receivedShareId async function deleteSentShareInvitation( client: PurviewSharingClient, sentShareId: string, - sentShareInvitationId: string + sentShareInvitationId: string, ) { const initialResponse = await client .path( "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}", sentShareId, - sentShareInvitationId + sentShareInvitationId, ) .delete(); @@ -305,7 +305,7 @@ async function main() { const allReceivedShares = await getAllAttachedReceivedShares( client, - receiverStorageAccountResourceId + receiverStorageAccountResourceId, ); const receivedShareId = allReceivedShares[0]?.id; if (!receivedShareId) { diff --git a/sdk/purview/purview-sharing-rest/samples-dev/receiverOperationsSample.ts b/sdk/purview/purview-sharing-rest/samples-dev/receiverOperationsSample.ts index 900511499132..ba741f6ff3c7 100644 --- a/sdk/purview/purview-sharing-rest/samples-dev/receiverOperationsSample.ts +++ b/sdk/purview/purview-sharing-rest/samples-dev/receiverOperationsSample.ts @@ -52,7 +52,7 @@ async function createOrReplaceReceivedShare( client: PurviewSharingClient, receivedShareId: string, storageAccountResourceId: string, - storeKind: "BlobAccount" | "AdlsGen2Account" + storeKind: "BlobAccount" | "AdlsGen2Account", ): Promise { const options: ReceivedSharesCreateOrReplaceParameters = { body: { @@ -113,7 +113,7 @@ async function registerTenantEmail(client: PurviewSharingClient): Promise */ async function activateTenantEmailRegistrationSample( client: PurviewSharingClient, - activationCode: string + activationCode: string, ): Promise { const options: ReceivedSharesActivateTenantEmailRegistrationParameters = { body: { properties: { activationCode } }, @@ -156,7 +156,7 @@ async function main() { client, receivedShareIdForBlobAsset, blobStorageAccountResourceId, - "BlobAccount" + "BlobAccount", ); console.log(receivedShareForBlobAsset); @@ -164,7 +164,7 @@ async function main() { client, receivedShareIdForAdlsGen2Asset, adlsgen2StorageAccountResourceId, - "AdlsGen2Account" + "AdlsGen2Account", ); console.log(receivedShareForAdlsGen2Asset); } diff --git a/sdk/purview/purview-sharing-rest/samples-dev/senderOperationsSample.ts b/sdk/purview/purview-sharing-rest/samples-dev/senderOperationsSample.ts index dcb73e732af8..aac1b302eb5d 100644 --- a/sdk/purview/purview-sharing-rest/samples-dev/senderOperationsSample.ts +++ b/sdk/purview/purview-sharing-rest/samples-dev/senderOperationsSample.ts @@ -24,7 +24,7 @@ async function createOrReplaceSentShare( client: PurviewSharingClient, sentShareId: string, storageAccountResourceId: string, - storeKind: "BlobAccount" | "AdlsGen2Account" + storeKind: "BlobAccount" | "AdlsGen2Account", ): Promise { const options: SentSharesCreateOrReplaceParameters = { body: { @@ -73,7 +73,7 @@ async function createOrReplaceSentShare( async function createSentShareServiceInvitation( client: PurviewSharingClient, sentShareId: string, - sentShareInvitationId: string + sentShareInvitationId: string, ): Promise { const options: SentSharesCreateSentShareInvitationParameters = { body: { @@ -90,7 +90,7 @@ async function createSentShareServiceInvitation( .path( "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}", sentShareId, - sentShareInvitationId + sentShareInvitationId, ) .put(options); @@ -111,7 +111,7 @@ async function createSentShareServiceInvitation( async function createSentShareUserInvitation( client: PurviewSharingClient, sentShareId: string, - sentShareInvitationId: string + sentShareInvitationId: string, ): Promise { const options: SentSharesCreateSentShareInvitationParameters = { body: { @@ -128,7 +128,7 @@ async function createSentShareUserInvitation( .path( "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}", sentShareId, - sentShareInvitationId + sentShareInvitationId, ) .put(options); @@ -155,7 +155,7 @@ async function main() { client, "42ea5cf2-e5f3-430f-9ca8-f50401399821", blobStorageAccountResourceId, - "BlobAccount" + "BlobAccount", ); console.log(sentShareForBlobAsset); @@ -163,7 +163,7 @@ async function main() { client, "9e41d39d-3223-4941-a636-d83264a0e660", adlsgen2StorageAccountResourceId, - "AdlsGen2Account" + "AdlsGen2Account", ); console.log(sentShareForAdlsGen2Asset); @@ -171,14 +171,14 @@ async function main() { const serviceInvitation = await createSentShareServiceInvitation( client, sentShareForBlobAsset.id ?? "42ea5cf2-e5f3-430f-9ca8-f50401399821", - "6cdc69a2-40b6-4fcc-9231-5791f645e54d" + "6cdc69a2-40b6-4fcc-9231-5791f645e54d", ); console.log(serviceInvitation); const userInvitation = await createSentShareUserInvitation( client, sentShareForAdlsGen2Asset.id ?? "9e41d39d-3223-4941-a636-d83264a0e660", - "4199f6d6-81bc-4d96-bab1-af66c5c7b048" + "4199f6d6-81bc-4d96-bab1-af66c5c7b048", ); console.log(userInvitation); diff --git a/sdk/purview/purview-sharing-rest/src/clientDefinitions.ts b/sdk/purview/purview-sharing-rest/src/clientDefinitions.ts index ebd4e1a43cd5..358152ffcb40 100644 --- a/sdk/purview/purview-sharing-rest/src/clientDefinitions.ts +++ b/sdk/purview/purview-sharing-rest/src/clientDefinitions.ts @@ -63,13 +63,13 @@ import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface ReceivedSharesGetReceivedShare { /** Get a received share */ get( - options?: ReceivedSharesGetReceivedShareParameters + options?: ReceivedSharesGetReceivedShareParameters, ): StreamableMethod< ReceivedSharesGetReceivedShare200Response | ReceivedSharesGetReceivedShareDefaultResponse >; /** Update changes to a received share */ put( - options: ReceivedSharesCreateOrReplaceParameters + options: ReceivedSharesCreateOrReplaceParameters, ): StreamableMethod< | ReceivedSharesCreateOrReplace200Response | ReceivedSharesCreateOrReplace201Response @@ -77,7 +77,7 @@ export interface ReceivedSharesGetReceivedShare { >; /** Delete a received share */ delete( - options?: ReceivedSharesDeleteReceivedShareParameters + options?: ReceivedSharesDeleteReceivedShareParameters, ): StreamableMethod< ReceivedSharesDeleteReceivedShare202Response | ReceivedSharesDeleteReceivedShareDefaultResponse >; @@ -86,7 +86,7 @@ export interface ReceivedSharesGetReceivedShare { export interface ReceivedSharesGetAllAttachedReceivedShares { /** List attached received shares */ get( - options: ReceivedSharesGetAllAttachedReceivedSharesParameters + options: ReceivedSharesGetAllAttachedReceivedSharesParameters, ): StreamableMethod< | ReceivedSharesGetAllAttachedReceivedShares200Response | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse @@ -96,7 +96,7 @@ export interface ReceivedSharesGetAllAttachedReceivedShares { export interface ReceivedSharesGetAllDetachedReceivedShares { /** List detached received shares */ get( - options?: ReceivedSharesGetAllDetachedReceivedSharesParameters + options?: ReceivedSharesGetAllDetachedReceivedSharesParameters, ): StreamableMethod< | ReceivedSharesGetAllDetachedReceivedShares200Response | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse @@ -106,7 +106,7 @@ export interface ReceivedSharesGetAllDetachedReceivedShares { export interface ReceivedSharesActivateTenantEmailRegistration { /** Activates the email registration for current tenant */ post( - options: ReceivedSharesActivateTenantEmailRegistrationParameters + options: ReceivedSharesActivateTenantEmailRegistrationParameters, ): StreamableMethod< | ReceivedSharesActivateTenantEmailRegistration200Response | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse @@ -116,7 +116,7 @@ export interface ReceivedSharesActivateTenantEmailRegistration { export interface ReceivedSharesRegisterTenantEmailRegistration { /** Register an email for the current tenant */ post( - options?: ReceivedSharesRegisterTenantEmailRegistrationParameters + options?: ReceivedSharesRegisterTenantEmailRegistrationParameters, ): StreamableMethod< | ReceivedSharesRegisterTenantEmailRegistration200Response | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse @@ -126,7 +126,7 @@ export interface ReceivedSharesRegisterTenantEmailRegistration { export interface SentSharesGetAllSentShares { /** List sent shares */ get( - options: SentSharesGetAllSentSharesParameters + options: SentSharesGetAllSentSharesParameters, ): StreamableMethod< SentSharesGetAllSentShares200Response | SentSharesGetAllSentSharesDefaultResponse >; @@ -135,11 +135,11 @@ export interface SentSharesGetAllSentShares { export interface SentSharesGetSentShare { /** Get a sent share */ get( - options?: SentSharesGetSentShareParameters + options?: SentSharesGetSentShareParameters, ): StreamableMethod; /** Create or replace a sent share */ put( - options: SentSharesCreateOrReplaceParameters + options: SentSharesCreateOrReplaceParameters, ): StreamableMethod< | SentSharesCreateOrReplace200Response | SentSharesCreateOrReplace201Response @@ -147,7 +147,7 @@ export interface SentSharesGetSentShare { >; /** Delete a sent share */ delete( - options?: SentSharesDeleteSentShareParameters + options?: SentSharesDeleteSentShareParameters, ): StreamableMethod< SentSharesDeleteSentShare202Response | SentSharesDeleteSentShareDefaultResponse >; @@ -156,7 +156,7 @@ export interface SentSharesGetSentShare { export interface SentSharesGetAllSentShareInvitations { /** List sent share recipients */ get( - options?: SentSharesGetAllSentShareInvitationsParameters + options?: SentSharesGetAllSentShareInvitationsParameters, ): StreamableMethod< | SentSharesGetAllSentShareInvitations200Response | SentSharesGetAllSentShareInvitationsDefaultResponse @@ -166,20 +166,20 @@ export interface SentSharesGetAllSentShareInvitations { export interface SentSharesGetSentShareInvitation { /** Get recipient for a given sent share */ get( - options?: SentSharesGetSentShareInvitationParameters + options?: SentSharesGetSentShareInvitationParameters, ): StreamableMethod< SentSharesGetSentShareInvitation200Response | SentSharesGetSentShareInvitationDefaultResponse >; /** Create a recipient for a given sent share */ put( - options: SentSharesCreateSentShareInvitationParameters + options: SentSharesCreateSentShareInvitationParameters, ): StreamableMethod< | SentSharesCreateSentShareInvitation201Response | SentSharesCreateSentShareInvitationDefaultResponse >; /** Delete a sent share invitation */ delete( - options?: SentSharesDeleteSentShareInvitationParameters + options?: SentSharesDeleteSentShareInvitationParameters, ): StreamableMethod< | SentSharesDeleteSentShareInvitation202Response | SentSharesDeleteSentShareInvitationDefaultResponse @@ -189,7 +189,7 @@ export interface SentSharesGetSentShareInvitation { export interface SentSharesNotifyUserSentShareInvitation { /** Notifies the user recipient of the sent share invitation, does not apply to service invitations. */ post( - options?: SentSharesNotifyUserSentShareInvitationParameters + options?: SentSharesNotifyUserSentShareInvitationParameters, ): StreamableMethod< | SentSharesNotifyUserSentShareInvitation200Response | SentSharesNotifyUserSentShareInvitationDefaultResponse @@ -199,7 +199,7 @@ export interface SentSharesNotifyUserSentShareInvitation { export interface ShareResourcesGetAllShareResources { /** List share resources */ get( - options?: ShareResourcesGetAllShareResourcesParameters + options?: ShareResourcesGetAllShareResourcesParameters, ): StreamableMethod< | ShareResourcesGetAllShareResources200Response | ShareResourcesGetAllShareResourcesDefaultResponse @@ -210,7 +210,7 @@ export interface Routes { /** Resource for '/receivedShares/\{receivedShareId\}' has methods for the following verbs: get, put, delete */ ( path: "/receivedShares/{receivedShareId}", - receivedShareId: string + receivedShareId: string, ): ReceivedSharesGetReceivedShare; /** Resource for '/receivedShares/attached' has methods for the following verbs: get */ (path: "/receivedShares/attached"): ReceivedSharesGetAllAttachedReceivedShares; @@ -227,19 +227,19 @@ export interface Routes { /** Resource for '/sentShares/\{sentShareId\}/sentShareInvitations' has methods for the following verbs: get */ ( path: "/sentShares/{sentShareId}/sentShareInvitations", - sentShareId: string + sentShareId: string, ): SentSharesGetAllSentShareInvitations; /** Resource for '/sentShares/\{sentShareId\}/sentShareInvitations/\{sentShareInvitationId\}' has methods for the following verbs: get, put, delete */ ( path: "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}", sentShareId: string, - sentShareInvitationId: string + sentShareInvitationId: string, ): SentSharesGetSentShareInvitation; /** Resource for '/sentShares/\{sentShareId\}/sentShareInvitations/\{sentShareInvitationId\}:notify' has methods for the following verbs: post */ ( path: "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify", sentShareId: string, - sentShareInvitationId: string + sentShareInvitationId: string, ): SentSharesNotifyUserSentShareInvitation; /** Resource for '/shareResources' has methods for the following verbs: get */ (path: "/shareResources"): ShareResourcesGetAllShareResources; diff --git a/sdk/purview/purview-sharing-rest/src/isUnexpected.ts b/sdk/purview/purview-sharing-rest/src/isUnexpected.ts index 4cc99d3209d4..31bc42668110 100644 --- a/sdk/purview/purview-sharing-rest/src/isUnexpected.ts +++ b/sdk/purview/purview-sharing-rest/src/isUnexpected.ts @@ -63,83 +63,83 @@ const responseMap: Record = { export function isUnexpected( response: | ReceivedSharesGetReceivedShare200Response - | ReceivedSharesGetReceivedShareDefaultResponse + | ReceivedSharesGetReceivedShareDefaultResponse, ): response is ReceivedSharesGetReceivedShareDefaultResponse; export function isUnexpected( response: | ReceivedSharesCreateOrReplace200Response | ReceivedSharesCreateOrReplace201Response - | ReceivedSharesCreateOrReplaceDefaultResponse + | ReceivedSharesCreateOrReplaceDefaultResponse, ): response is ReceivedSharesCreateOrReplaceDefaultResponse; export function isUnexpected( response: | ReceivedSharesDeleteReceivedShare202Response - | ReceivedSharesDeleteReceivedShareDefaultResponse + | ReceivedSharesDeleteReceivedShareDefaultResponse, ): response is ReceivedSharesDeleteReceivedShareDefaultResponse; export function isUnexpected( response: | ReceivedSharesGetAllAttachedReceivedShares200Response - | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse + | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse, ): response is ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse; export function isUnexpected( response: | ReceivedSharesGetAllDetachedReceivedShares200Response - | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse + | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse, ): response is ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse; export function isUnexpected( response: | ReceivedSharesActivateTenantEmailRegistration200Response - | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse + | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse, ): response is ReceivedSharesActivateTenantEmailRegistrationDefaultResponse; export function isUnexpected( response: | ReceivedSharesRegisterTenantEmailRegistration200Response - | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse + | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse, ): response is ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse; export function isUnexpected( - response: SentSharesGetAllSentShares200Response | SentSharesGetAllSentSharesDefaultResponse + response: SentSharesGetAllSentShares200Response | SentSharesGetAllSentSharesDefaultResponse, ): response is SentSharesGetAllSentSharesDefaultResponse; export function isUnexpected( - response: SentSharesGetSentShare200Response | SentSharesGetSentShareDefaultResponse + response: SentSharesGetSentShare200Response | SentSharesGetSentShareDefaultResponse, ): response is SentSharesGetSentShareDefaultResponse; export function isUnexpected( response: | SentSharesCreateOrReplace200Response | SentSharesCreateOrReplace201Response - | SentSharesCreateOrReplaceDefaultResponse + | SentSharesCreateOrReplaceDefaultResponse, ): response is SentSharesCreateOrReplaceDefaultResponse; export function isUnexpected( - response: SentSharesDeleteSentShare202Response | SentSharesDeleteSentShareDefaultResponse + response: SentSharesDeleteSentShare202Response | SentSharesDeleteSentShareDefaultResponse, ): response is SentSharesDeleteSentShareDefaultResponse; export function isUnexpected( response: | SentSharesGetAllSentShareInvitations200Response - | SentSharesGetAllSentShareInvitationsDefaultResponse + | SentSharesGetAllSentShareInvitationsDefaultResponse, ): response is SentSharesGetAllSentShareInvitationsDefaultResponse; export function isUnexpected( response: | SentSharesGetSentShareInvitation200Response - | SentSharesGetSentShareInvitationDefaultResponse + | SentSharesGetSentShareInvitationDefaultResponse, ): response is SentSharesGetSentShareInvitationDefaultResponse; export function isUnexpected( response: | SentSharesCreateSentShareInvitation201Response - | SentSharesCreateSentShareInvitationDefaultResponse + | SentSharesCreateSentShareInvitationDefaultResponse, ): response is SentSharesCreateSentShareInvitationDefaultResponse; export function isUnexpected( response: | SentSharesDeleteSentShareInvitation202Response - | SentSharesDeleteSentShareInvitationDefaultResponse + | SentSharesDeleteSentShareInvitationDefaultResponse, ): response is SentSharesDeleteSentShareInvitationDefaultResponse; export function isUnexpected( response: | SentSharesNotifyUserSentShareInvitation200Response - | SentSharesNotifyUserSentShareInvitationDefaultResponse + | SentSharesNotifyUserSentShareInvitationDefaultResponse, ): response is SentSharesNotifyUserSentShareInvitationDefaultResponse; export function isUnexpected( response: | ShareResourcesGetAllShareResources200Response - | ShareResourcesGetAllShareResourcesDefaultResponse + | ShareResourcesGetAllShareResourcesDefaultResponse, ): response is ShareResourcesGetAllShareResourcesDefaultResponse; export function isUnexpected( response: @@ -178,7 +178,7 @@ export function isUnexpected( | SentSharesNotifyUserSentShareInvitation200Response | SentSharesNotifyUserSentShareInvitationDefaultResponse | ShareResourcesGetAllShareResources200Response - | ShareResourcesGetAllShareResourcesDefaultResponse + | ShareResourcesGetAllShareResourcesDefaultResponse, ): response is | ReceivedSharesGetReceivedShareDefaultResponse | ReceivedSharesCreateOrReplaceDefaultResponse @@ -238,7 +238,7 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // {guid} ==> $ // {guid}:export ==> :export$ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "" + pathParts[j] || "", ); if (!isMatched) { diff --git a/sdk/purview/purview-sharing-rest/src/paginateHelper.ts b/sdk/purview/purview-sharing-rest/src/paginateHelper.ts index 477bace4a37f..f0d91c952cda 100644 --- a/sdk/purview/purview-sharing-rest/src/paginateHelper.ts +++ b/sdk/purview/purview-sharing-rest/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/purview/purview-sharing-rest/src/pollingHelper.ts b/sdk/purview/purview-sharing-rest/src/pollingHelper.ts index 4bfd02f11910..40004b75ca92 100644 --- a/sdk/purview/purview-sharing-rest/src/pollingHelper.ts +++ b/sdk/purview/purview-sharing-rest/src/pollingHelper.ts @@ -20,7 +20,7 @@ import { export async function getLongRunningPoller( client: Client, initialResponse: TResult, - options: CreateHttpPollerOptions> = {} + options: CreateHttpPollerOptions> = {}, ): Promise, TResult>> { const poller: LongRunningOperation = { requestMethod: initialResponse.request.method, diff --git a/sdk/purview/purview-sharing-rest/src/purviewSharing.ts b/sdk/purview/purview-sharing-rest/src/purviewSharing.ts index a443c5cc4027..559deb4e5650 100644 --- a/sdk/purview/purview-sharing-rest/src/purviewSharing.ts +++ b/sdk/purview/purview-sharing-rest/src/purviewSharing.ts @@ -14,7 +14,7 @@ import { PurviewSharingClient } from "./clientDefinitions"; export default function createClient( endpoint: string, credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): PurviewSharingClient { const baseUrl = options.baseUrl ?? `${endpoint}`; options.apiVersion = options.apiVersion ?? "2023-05-30-preview"; diff --git a/sdk/purview/purview-sharing-rest/test/public/sentSharesTest.spec.ts b/sdk/purview/purview-sharing-rest/test/public/sentSharesTest.spec.ts index 05b360755154..549e8bad1710 100644 --- a/sdk/purview/purview-sharing-rest/test/public/sentSharesTest.spec.ts +++ b/sdk/purview/purview-sharing-rest/test/public/sentSharesTest.spec.ts @@ -173,7 +173,7 @@ describe("Sent Shares Operations", () => { .path( "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}", sentShareId, - sentShareUserInvitationId + sentShareUserInvitationId, ) .put({ body: { @@ -188,7 +188,7 @@ describe("Sent Shares Operations", () => { assert.strictEqual(response.status, "201"); console.log( - `Sent Share invitation ${sentShareUserInvitationId} for user ${targetEmail} created.` + `Sent Share invitation ${sentShareUserInvitationId} for user ${targetEmail} created.`, ); if (isUnexpected(response)) { throw response.body.error; @@ -210,7 +210,7 @@ describe("Sent Shares Operations", () => { .path( "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify", sentShareId, - sentShareUserInvitationId + sentShareUserInvitationId, ) .post(); @@ -236,7 +236,7 @@ describe("Sent Shares Operations", () => { .path( "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}", sentShareId, - sentShareServiceInvitationId + sentShareServiceInvitationId, ) .put({ body: { @@ -251,7 +251,7 @@ describe("Sent Shares Operations", () => { assert.strictEqual(response.status, "201"); console.log( - `Sent Share invitation ${sentShareServiceInvitationId} for service ${targetActiveDirectoryId}_${targetObjectId} created.` + `Sent Share invitation ${sentShareServiceInvitationId} for service ${targetActiveDirectoryId}_${targetObjectId} created.`, ); if (isUnexpected(response)) { throw response.body.error; @@ -267,7 +267,7 @@ describe("Sent Shares Operations", () => { assert.strictEqual(invitationResponse.properties.state, "Succeeded"); assert.strictEqual( invitationResponse.properties.targetActiveDirectoryId, - targetActiveDirectoryId + targetActiveDirectoryId, ); assert.strictEqual(invitationResponse.properties.targetObjectId, targetObjectId); }); @@ -277,7 +277,7 @@ describe("Sent Shares Operations", () => { .path( "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}", sentShareId, - sentShareServiceInvitationId + sentShareServiceInvitationId, ) .get(); @@ -297,7 +297,7 @@ describe("Sent Shares Operations", () => { assert.strictEqual(invitationResponse.properties.state, "Succeeded"); assert.strictEqual( invitationResponse.properties.targetActiveDirectoryId, - targetActiveDirectoryId + targetActiveDirectoryId, ); assert.strictEqual(invitationResponse.properties.targetObjectId, targetObjectId); }); @@ -317,7 +317,7 @@ describe("Sent Shares Operations", () => { console.log("Retrieved Sent Share Invitations."); const sentshareInvitation = sentsharesListResponse.value.find( - (i) => i.invitationKind === "Service" + (i) => i.invitationKind === "Service", ) as ServiceInvitationOutput; assert.isDefined(sentshareInvitation); @@ -325,7 +325,7 @@ describe("Sent Shares Operations", () => { assert.strictEqual(sentshareInvitation.properties.state, "Succeeded"); assert.strictEqual( sentshareInvitation.properties.targetActiveDirectoryId, - targetActiveDirectoryId + targetActiveDirectoryId, ); assert.strictEqual(sentshareInvitation.properties.targetObjectId, targetObjectId); }); @@ -335,7 +335,7 @@ describe("Sent Shares Operations", () => { .path( "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}", sentShareId, - sentShareServiceInvitationId + sentShareServiceInvitationId, ) .delete(); diff --git a/sdk/purview/purview-sharing-rest/test/public/utils/recordedClient.ts b/sdk/purview/purview-sharing-rest/test/public/utils/recordedClient.ts index 4dae7ad401b0..b4b4dbc0c153 100644 --- a/sdk/purview/purview-sharing-rest/test/public/utils/recordedClient.ts +++ b/sdk/purview/purview-sharing-rest/test/public/utils/recordedClient.ts @@ -51,7 +51,7 @@ export function createClient(recorder: Recorder, options?: ClientOptions): Purvi const client = PurviewSharing( env.ENDPOINT ?? "", credential, - recorder.configureClientOptions({ options }) + recorder.configureClientOptions({ options }), ); return client; diff --git a/sdk/purview/purview-workflow-rest/package.json b/sdk/purview/purview-workflow-rest/package.json index 930eb2335bc8..ecdfcfb16404 100644 --- a/sdk/purview/purview-workflow-rest/package.json +++ b/sdk/purview/purview-workflow-rest/package.json @@ -38,11 +38,11 @@ "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\" \"samples-dev/**/*.ts\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\" \"samples-dev/**/*.ts\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\" \"samples-dev/**/*.ts\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\" \"samples-dev/**/*.ts\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -75,7 +75,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^2.1.2", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/purview/purview-workflow-rest/samples-dev/workflowRunSample.ts b/sdk/purview/purview-workflow-rest/samples-dev/workflowRunSample.ts index b48bfaf7dbcc..f47ba3d45ecb 100644 --- a/sdk/purview/purview-workflow-rest/samples-dev/workflowRunSample.ts +++ b/sdk/purview/purview-workflow-rest/samples-dev/workflowRunSample.ts @@ -23,7 +23,7 @@ dotenv.config(); */ async function workflowRunsList( client: PurviewWorkflowClient, - queryParameter: ListWorkflowRunsParameters + queryParameter: ListWorkflowRunsParameters, ) { const initialResponse = await client.path("/workflowruns").get(queryParameter); @@ -36,7 +36,7 @@ async function workflowRunsList( result.push(item); } console.log( - `The total count of workflow runs is ${result.length}, these workflow runs are ${result}` + `The total count of workflow runs is ${result.length}, these workflow runs are ${result}`, ); } @@ -63,7 +63,7 @@ async function workflowRunGet(client: PurviewWorkflowClient, workflowRunId: stri async function workflowRunCancel( client: PurviewWorkflowClient, workflowRunId: string, - cancelReply: CancelWorkflowRunParameters + cancelReply: CancelWorkflowRunParameters, ) { const result = await client .path("/workflowruns/{workflowRunId}/cancel", workflowRunId) diff --git a/sdk/purview/purview-workflow-rest/samples-dev/workflowTasksSample.ts b/sdk/purview/purview-workflow-rest/samples-dev/workflowTasksSample.ts index c4c2b81aa2e9..6fdf682951d3 100644 --- a/sdk/purview/purview-workflow-rest/samples-dev/workflowTasksSample.ts +++ b/sdk/purview/purview-workflow-rest/samples-dev/workflowTasksSample.ts @@ -27,7 +27,7 @@ dotenv.config(); async function workflowTasksList( client: PurviewWorkflowClient, - queryParameters: ListWorkflowTasksParameters + queryParameters: ListWorkflowTasksParameters, ) { const initialResponse = await client.path("/workflowtasks").get(queryParameters); if (isUnexpected(initialResponse)) { @@ -39,7 +39,7 @@ async function workflowTasksList( result.push(item); } console.log( - `The total count of workflow tasks is ${result.length}, these workflow tasks are ${result}` + `The total count of workflow tasks is ${result.length}, these workflow tasks are ${result}`, ); } @@ -68,7 +68,7 @@ async function workTaskGet(client: PurviewWorkflowClient, taskId: string) { async function approveWorkflowTask( client: PurviewWorkflowClient, taskId: string, - approvePayload: ApproveApprovalTaskParameters + approvePayload: ApproveApprovalTaskParameters, ) { const result = await client .path("/workflowtasks/{taskId}/approve-approval", taskId) @@ -89,7 +89,7 @@ async function approveWorkflowTask( async function rejectWorkflowTask( client: PurviewWorkflowClient, taskId: string, - rejectPayload: RejectApprovalTaskParameters + rejectPayload: RejectApprovalTaskParameters, ) { const result = await client .path("/workflowtasks/{taskId}/reject-approval", taskId) @@ -110,7 +110,7 @@ async function rejectWorkflowTask( async function updateWorkflowTaskStatus( client: PurviewWorkflowClient, taskId: string, - updateStatusPayload: UpdateTaskStatusParameters + updateStatusPayload: UpdateTaskStatusParameters, ) { const result = await client .path("/workflowtasks/{taskId}/change-task-status", taskId) @@ -130,7 +130,7 @@ async function updateWorkflowTaskStatus( async function workflowTaskReassign( client: PurviewWorkflowClient, taskId: string, - reassignPayload: ReassignWorkflowTaskParameters + reassignPayload: ReassignWorkflowTaskParameters, ) { const result = await client .path("/workflowtasks/{taskId}/reassign", taskId) diff --git a/sdk/purview/purview-workflow-rest/samples-dev/workflowsSample.ts b/sdk/purview/purview-workflow-rest/samples-dev/workflowsSample.ts index 25f4016ca9d1..c645872c3127 100644 --- a/sdk/purview/purview-workflow-rest/samples-dev/workflowsSample.ts +++ b/sdk/purview/purview-workflow-rest/samples-dev/workflowsSample.ts @@ -23,7 +23,7 @@ dotenv.config(); */ async function workflowCreateOrUpdate( client: PurviewWorkflowClient, - workflow: CreateOrReplaceWorkflowParameters + workflow: CreateOrReplaceWorkflowParameters, ) { const workflowId = randomUUID(); const result = await client.path("/workflows/{workflowId}", workflowId).put(workflow); diff --git a/sdk/purview/purview-workflow-rest/src/clientDefinitions.ts b/sdk/purview/purview-workflow-rest/src/clientDefinitions.ts index 439b45d1df1c..9aa355a03e09 100644 --- a/sdk/purview/purview-workflow-rest/src/clientDefinitions.ts +++ b/sdk/purview/purview-workflow-rest/src/clientDefinitions.ts @@ -52,92 +52,92 @@ import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface ListWorkflows { /** List all workflows. */ get( - options?: ListWorkflowsParameters + options?: ListWorkflowsParameters, ): StreamableMethod; } export interface GetWorkflow { /** Get a specific workflow. */ get( - options?: GetWorkflowParameters + options?: GetWorkflowParameters, ): StreamableMethod; /** Create or replace a workflow. */ put( - options: CreateOrReplaceWorkflowParameters + options: CreateOrReplaceWorkflowParameters, ): StreamableMethod; /** Delete a workflow. */ delete( - options?: DeleteWorkflowParameters + options?: DeleteWorkflowParameters, ): StreamableMethod; } export interface SubmitUserRequests { /** Submit a user request for requestor, a user request describes user ask to do operation(s) on Purview. If any workflow's trigger matches with an operation in request, a run of the workflow is created. */ post( - options: SubmitUserRequestsParameters + options: SubmitUserRequestsParameters, ): StreamableMethod; } export interface ListWorkflowRuns { /** List workflow runs. */ get( - options?: ListWorkflowRunsParameters + options?: ListWorkflowRunsParameters, ): StreamableMethod; } export interface GetWorkflowRun { /** Get a workflow run. */ get( - options?: GetWorkflowRunParameters + options?: GetWorkflowRunParameters, ): StreamableMethod; } export interface CancelWorkflowRun { /** Cancel a workflow run. */ post( - options: CancelWorkflowRunParameters + options: CancelWorkflowRunParameters, ): StreamableMethod; } export interface ListWorkflowTasks { /** Get all workflow tasks. */ get( - options?: ListWorkflowTasksParameters + options?: ListWorkflowTasksParameters, ): StreamableMethod; } export interface GetWorkflowTask { /** Get a workflow task. */ get( - options?: GetWorkflowTaskParameters + options?: GetWorkflowTaskParameters, ): StreamableMethod; } export interface ApproveApprovalTask { /** Approve an approval task. */ post( - options: ApproveApprovalTaskParameters + options: ApproveApprovalTaskParameters, ): StreamableMethod; } export interface RejectApprovalTask { /** Reject an approval task. */ post( - options: RejectApprovalTaskParameters + options: RejectApprovalTaskParameters, ): StreamableMethod; } export interface ReassignWorkflowTask { /** Reassign a workflow task. */ post( - options: ReassignWorkflowTaskParameters + options: ReassignWorkflowTaskParameters, ): StreamableMethod; } export interface UpdateTaskStatus { /** Update the status of a workflow task request. */ post( - options: UpdateTaskStatusParameters + options: UpdateTaskStatusParameters, ): StreamableMethod; } diff --git a/sdk/purview/purview-workflow-rest/src/isUnexpected.ts b/sdk/purview/purview-workflow-rest/src/isUnexpected.ts index 53b4e6ccf5b6..dc10c34e1262 100644 --- a/sdk/purview/purview-workflow-rest/src/isUnexpected.ts +++ b/sdk/purview/purview-workflow-rest/src/isUnexpected.ts @@ -50,46 +50,46 @@ const responseMap: Record = { }; export function isUnexpected( - response: ListWorkflows200Response | ListWorkflowsDefaultResponse + response: ListWorkflows200Response | ListWorkflowsDefaultResponse, ): response is ListWorkflowsDefaultResponse; export function isUnexpected( - response: GetWorkflow200Response | GetWorkflowDefaultResponse + response: GetWorkflow200Response | GetWorkflowDefaultResponse, ): response is GetWorkflowDefaultResponse; export function isUnexpected( - response: CreateOrReplaceWorkflow200Response | CreateOrReplaceWorkflowDefaultResponse + response: CreateOrReplaceWorkflow200Response | CreateOrReplaceWorkflowDefaultResponse, ): response is CreateOrReplaceWorkflowDefaultResponse; export function isUnexpected( - response: DeleteWorkflow204Response | DeleteWorkflowDefaultResponse + response: DeleteWorkflow204Response | DeleteWorkflowDefaultResponse, ): response is DeleteWorkflowDefaultResponse; export function isUnexpected( - response: SubmitUserRequests200Response | SubmitUserRequestsDefaultResponse + response: SubmitUserRequests200Response | SubmitUserRequestsDefaultResponse, ): response is SubmitUserRequestsDefaultResponse; export function isUnexpected( - response: ListWorkflowRuns200Response | ListWorkflowRunsDefaultResponse + response: ListWorkflowRuns200Response | ListWorkflowRunsDefaultResponse, ): response is ListWorkflowRunsDefaultResponse; export function isUnexpected( - response: GetWorkflowRun200Response | GetWorkflowRunDefaultResponse + response: GetWorkflowRun200Response | GetWorkflowRunDefaultResponse, ): response is GetWorkflowRunDefaultResponse; export function isUnexpected( - response: CancelWorkflowRun200Response | CancelWorkflowRunDefaultResponse + response: CancelWorkflowRun200Response | CancelWorkflowRunDefaultResponse, ): response is CancelWorkflowRunDefaultResponse; export function isUnexpected( - response: ListWorkflowTasks200Response | ListWorkflowTasksDefaultResponse + response: ListWorkflowTasks200Response | ListWorkflowTasksDefaultResponse, ): response is ListWorkflowTasksDefaultResponse; export function isUnexpected( - response: GetWorkflowTask200Response | GetWorkflowTaskDefaultResponse + response: GetWorkflowTask200Response | GetWorkflowTaskDefaultResponse, ): response is GetWorkflowTaskDefaultResponse; export function isUnexpected( - response: ApproveApprovalTask200Response | ApproveApprovalTaskDefaultResponse + response: ApproveApprovalTask200Response | ApproveApprovalTaskDefaultResponse, ): response is ApproveApprovalTaskDefaultResponse; export function isUnexpected( - response: RejectApprovalTask200Response | RejectApprovalTaskDefaultResponse + response: RejectApprovalTask200Response | RejectApprovalTaskDefaultResponse, ): response is RejectApprovalTaskDefaultResponse; export function isUnexpected( - response: ReassignWorkflowTask200Response | ReassignWorkflowTaskDefaultResponse + response: ReassignWorkflowTask200Response | ReassignWorkflowTaskDefaultResponse, ): response is ReassignWorkflowTaskDefaultResponse; export function isUnexpected( - response: UpdateTaskStatus200Response | UpdateTaskStatusDefaultResponse + response: UpdateTaskStatus200Response | UpdateTaskStatusDefaultResponse, ): response is UpdateTaskStatusDefaultResponse; export function isUnexpected( response: @@ -120,7 +120,7 @@ export function isUnexpected( | ReassignWorkflowTask200Response | ReassignWorkflowTaskDefaultResponse | UpdateTaskStatus200Response - | UpdateTaskStatusDefaultResponse + | UpdateTaskStatusDefaultResponse, ): response is | ListWorkflowsDefaultResponse | GetWorkflowDefaultResponse @@ -177,7 +177,7 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // {guid} ==> $ // {guid}:export ==> :export$ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "" + pathParts[j] || "", ); if (!isMatched) { diff --git a/sdk/purview/purview-workflow-rest/src/paginateHelper.ts b/sdk/purview/purview-workflow-rest/src/paginateHelper.ts index 477bace4a37f..f0d91c952cda 100644 --- a/sdk/purview/purview-workflow-rest/src/paginateHelper.ts +++ b/sdk/purview/purview-workflow-rest/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/purview/purview-workflow-rest/src/purviewWorkflow.ts b/sdk/purview/purview-workflow-rest/src/purviewWorkflow.ts index 20417dc0e287..6d943621494e 100644 --- a/sdk/purview/purview-workflow-rest/src/purviewWorkflow.ts +++ b/sdk/purview/purview-workflow-rest/src/purviewWorkflow.ts @@ -14,7 +14,7 @@ import { PurviewWorkflowClient } from "./clientDefinitions"; export default function createClient( endpoint: string, credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): PurviewWorkflowClient { const baseUrl = options.baseUrl ?? `${endpoint}/workflow`; options.apiVersion = options.apiVersion ?? "2022-05-01-preview"; diff --git a/sdk/purview/purview-workflow-rest/test/public/utils/recordedClient.ts b/sdk/purview/purview-workflow-rest/test/public/utils/recordedClient.ts index 662acc54a9b4..c041af20745a 100644 --- a/sdk/purview/purview-workflow-rest/test/public/utils/recordedClient.ts +++ b/sdk/purview/purview-workflow-rest/test/public/utils/recordedClient.ts @@ -21,7 +21,7 @@ const recorderEnvSetup: RecorderStartOptions = { export async function createClient( recorder: Recorder, - options?: ClientOptions + options?: ClientOptions, ): Promise { const credential = isPlaybackMode() ? new NoOpCredential() @@ -29,7 +29,7 @@ export async function createClient( env["AZURE_TENANT_ID"] ?? "", env["AZURE_CLIENT_ID"] ?? "", env["USERNAME"] ?? "", - env["PASSWORD"] ?? "" + env["PASSWORD"] ?? "", ); await recorder.start(recorderEnvSetup); return PurviewWorkflow( @@ -37,6 +37,6 @@ export async function createClient( credential, recorder.configureClientOptions({ options, - }) + }), ); } diff --git a/sdk/quantum/quantum-jobs/package.json b/sdk/quantum/quantum-jobs/package.json index 32cb2e152453..1e23c1b0794b 100644 --- a/sdk/quantum/quantum-jobs/package.json +++ b/sdk/quantum/quantum-jobs/package.json @@ -98,7 +98,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "typescript": "~5.2.0", diff --git a/sdk/remoterendering/mixed-reality-remote-rendering/package.json b/sdk/remoterendering/mixed-reality-remote-rendering/package.json index 669e2908ad02..cf8f9993b833 100644 --- a/sdk/remoterendering/mixed-reality-remote-rendering/package.json +++ b/sdk/remoterendering/mixed-reality-remote-rendering/package.json @@ -31,12 +31,12 @@ "build:node": "tsc -p . && dev-tool run bundle", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* test-dist temp types *.tgz *.log", "build:samples": "echo Obsolete.", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 --full-trace 'dist-esm/test/**/*.spec.js'", @@ -116,7 +116,6 @@ "karma-mocha-reporter": "^2.2.5", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "typescript": "~5.2.0", "util": "^0.12.1", diff --git a/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/listConversions.ts b/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/listConversions.ts index 54c953ee7493..a5a96ee6b871 100644 --- a/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/listConversions.ts +++ b/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/listConversions.ts @@ -34,11 +34,11 @@ export async function main() { for await (const conversion of client.listConversions()) { if (conversion.status === "Succeeded") { console.log( - `Conversion ${conversion.conversionId} succeeded: Output written to ${conversion.output?.outputAssetUrl}` + `Conversion ${conversion.conversionId} succeeded: Output written to ${conversion.output?.outputAssetUrl}`, ); } else if (conversion.status === "Failed") { console.log( - `Conversion ${conversion.conversionId} failed: ${conversion.error.code} ${conversion.error.message}` + `Conversion ${conversion.conversionId} failed: ${conversion.error.code} ${conversion.error.message}`, ); } } diff --git a/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/moreComplexConversion.ts b/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/moreComplexConversion.ts index 005f567b4c37..cf44583e0b46 100644 --- a/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/moreComplexConversion.ts +++ b/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/moreComplexConversion.ts @@ -119,7 +119,7 @@ export async function main() { const conversionPoller: AssetConversionPollerLike = await client.beginConversion( conversionId, - conversionSettings + conversionSettings, ); console.log("== Polling =="); diff --git a/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/session.ts b/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/session.ts index ed5e0673f2ae..3eb8a2ee7758 100644 --- a/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/session.ts +++ b/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/session.ts @@ -49,7 +49,7 @@ export async function main() { const sessionPoller: RenderingSessionPollerLike = await client.beginSession( sessionId, - sessionSettings + sessionSettings, ); console.log("== Polling =="); diff --git a/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/simpleConversion.ts b/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/simpleConversion.ts index 3d8ab346a1ef..ce92458fa636 100644 --- a/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/simpleConversion.ts +++ b/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/simpleConversion.ts @@ -61,7 +61,7 @@ export async function main() { const conversionPoller: AssetConversionPollerLike = await client.beginConversion( conversionId, - conversionSettings + conversionSettings, ); console.log("== Polling =="); diff --git a/sdk/remoterendering/mixed-reality-remote-rendering/src/authentication/mixedRealityAccountKeyCredential.ts b/sdk/remoterendering/mixed-reality-remote-rendering/src/authentication/mixedRealityAccountKeyCredential.ts index 9a26ceb2a5f9..29de5ea2ea91 100644 --- a/sdk/remoterendering/mixed-reality-remote-rendering/src/authentication/mixedRealityAccountKeyCredential.ts +++ b/sdk/remoterendering/mixed-reality-remote-rendering/src/authentication/mixedRealityAccountKeyCredential.ts @@ -17,7 +17,10 @@ export class MixedRealityAccountKeyCredential implements TokenCredential { * @param accountId - The Mixed Reality service account identifier. * @param accountKey - The Mixed Reality service account primary or secondary key. */ - constructor(public readonly accountId: string, accountKey: string | KeyCredential) { + constructor( + public readonly accountId: string, + accountKey: string | KeyCredential, + ) { if (typeof accountKey === "string") { this.accountKey = { key: accountKey }; } else { diff --git a/sdk/remoterendering/mixed-reality-remote-rendering/src/authentication/mixedRealityTokenCredential.ts b/sdk/remoterendering/mixed-reality-remote-rendering/src/authentication/mixedRealityTokenCredential.ts index 583791d30945..72f58e64e7e3 100644 --- a/sdk/remoterendering/mixed-reality-remote-rendering/src/authentication/mixedRealityTokenCredential.ts +++ b/sdk/remoterendering/mixed-reality-remote-rendering/src/authentication/mixedRealityTokenCredential.ts @@ -19,7 +19,7 @@ export class MixedRealityTokenCredential implements TokenCredential { accountId: string, accountDomain: string, credential: TokenCredential, - options: MixedRealityStsClientOptions + options: MixedRealityStsClientOptions, ) { this.stsClient = new MixedRealityStsClient(accountId, accountDomain, credential, options); } diff --git a/sdk/remoterendering/mixed-reality-remote-rendering/src/internal/commonQueries.ts b/sdk/remoterendering/mixed-reality-remote-rendering/src/internal/commonQueries.ts index 0f51d0963e27..9ab685e31cbf 100644 --- a/sdk/remoterendering/mixed-reality-remote-rendering/src/internal/commonQueries.ts +++ b/sdk/remoterendering/mixed-reality-remote-rendering/src/internal/commonQueries.ts @@ -17,7 +17,7 @@ export async function getConversionInternal( operations: RemoteRendering, conversionId: string, tracingSpanName: string, - options?: OperationOptions + options?: OperationOptions, ): Promise { return tracingClient.withSpan( tracingSpanName, @@ -28,7 +28,7 @@ export async function getConversionInternal( async (updatedOptions) => { const conversion = await operations.getConversion(accountId, conversionId, updatedOptions); return assetConversionFromConversion(conversion); - } + }, ); } @@ -42,7 +42,7 @@ export async function getSessionInternal( operations: RemoteRendering, sessionId: string, tracingSpanName: string, - options?: OperationOptions + options?: OperationOptions, ): Promise { return tracingClient.withSpan( tracingSpanName, @@ -53,7 +53,7 @@ export async function getSessionInternal( async (updatedOptions) => { const sessionProperties = await operations.getSession(accountId, sessionId, updatedOptions); return renderingSessionFromSessionProperties(sessionProperties); - } + }, ); } @@ -67,7 +67,7 @@ export async function endSessionInternal( operations: RemoteRendering, sessionId: string, tracingSpanName: string, - options?: OperationOptions + options?: OperationOptions, ): Promise { return tracingClient.withSpan( tracingSpanName, @@ -77,6 +77,6 @@ export async function endSessionInternal( }, async (updatedOptions) => { await operations.stopSession(accountId, sessionId, updatedOptions); - } + }, ); } diff --git a/sdk/remoterendering/mixed-reality-remote-rendering/src/internal/renderingSession.ts b/sdk/remoterendering/mixed-reality-remote-rendering/src/internal/renderingSession.ts index 21e1def19a0f..47ded88a6735 100644 --- a/sdk/remoterendering/mixed-reality-remote-rendering/src/internal/renderingSession.ts +++ b/sdk/remoterendering/mixed-reality-remote-rendering/src/internal/renderingSession.ts @@ -145,7 +145,7 @@ export type RenderingSession = * @internal */ function renderingSessionPropertiesFromSessionProperties( - session: SessionProperties + session: SessionProperties, ): RenderingSessionProperties { return { arrInspectorPort: session.arrInspectorPort!, @@ -161,7 +161,7 @@ function renderingSessionPropertiesFromSessionProperties( * @internal */ function partialRenderingSessionPropertiesFromSessionProperties( - session: SessionProperties + session: SessionProperties, ): PartialRenderingSessionProperties { return { arrInspectorPort: session.arrInspectorPort, @@ -178,7 +178,7 @@ function partialRenderingSessionPropertiesFromSessionProperties( * @internal */ export function renderingSessionFromSessionProperties( - session: SessionProperties + session: SessionProperties, ): RenderingSession { const baseProperties: RenderingSessionBase = { sessionId: session.sessionId, diff --git a/sdk/remoterendering/mixed-reality-remote-rendering/src/lro/assetConversionPoller.ts b/sdk/remoterendering/mixed-reality-remote-rendering/src/lro/assetConversionPoller.ts index 6d58761891a6..312e42535369 100644 --- a/sdk/remoterendering/mixed-reality-remote-rendering/src/lro/assetConversionPoller.ts +++ b/sdk/remoterendering/mixed-reality-remote-rendering/src/lro/assetConversionPoller.ts @@ -79,7 +79,7 @@ class AssetConversionOperation constructor( accountId: string, operations: RemoteRendering, - state: AssetConversionOperationState + state: AssetConversionOperationState, ) { this.operations = operations; this.accountId = accountId; @@ -94,7 +94,7 @@ class AssetConversionOperation this.accountId, this.operations, this.state.latestResponse.conversionId, - "AssetConversionOperation-Update" + "AssetConversionOperation-Update", ); return this; } @@ -121,14 +121,14 @@ export class AssetConversionPoller extends Poller) { @@ -258,7 +258,7 @@ export class RemoteRenderingClient { accountId, accountDomain, credential, - stsOptions + stsOptions, ); if (args.length === 3) { options = args[2]; @@ -324,7 +324,7 @@ export class RemoteRenderingClient { public async beginConversion( conversionId: string, assetConversionSettings: AssetConversionSettings, - options?: BeginConversionOptions + options?: BeginConversionOptions, ): Promise; /** @@ -332,13 +332,13 @@ export class RemoteRenderingClient { * @param options - The options parameters, carrying a resumeFrom value. */ public async beginConversion( - options: ResumeBeginConversionOptions + options: ResumeBeginConversionOptions, ): Promise; public async beginConversion( conversionIdOrResumeOptions: string | ResumeBeginConversionOptions, assetConversionSettings?: AssetConversionSettings, - options?: BeginConversionOptions + options?: BeginConversionOptions, ): Promise { let conversionId: string; let settings: AssetConversionSettings; @@ -353,14 +353,14 @@ export class RemoteRenderingClient { this.operations, conversionIdOrResumeOptions.resumeFrom, "RemoteRenderingClient-GetConversionPoller", - options + options, ); return new AssetConversionPoller( this.accountId, this.operations, assetConversion, - conversionIdOrResumeOptions + conversionIdOrResumeOptions, ); } @@ -376,20 +376,20 @@ export class RemoteRenderingClient { this.accountId, conversionId, { settings: settings }, - updatedOptions + updatedOptions, ); const poller = new AssetConversionPoller( this.accountId, this.operations, assetConversionFromConversion(conversion), - operationOptions + operationOptions, ); await poller.poll(); return poller; - } + }, ); } @@ -400,19 +400,19 @@ export class RemoteRenderingClient { */ public async getConversion( conversionId: string, - options?: GetConversionOptions + options?: GetConversionOptions, ): Promise { return getConversionInternal( this.accountId, this.operations, conversionId, "RemoteRenderingClient-GetConversion", - options + options, ); } private async *getAllConversionsPagingPage( - options?: OperationOptions + options?: OperationOptions, ): AsyncIterableIterator { let result = await this.operations.listConversions(this.accountId, options); let assetConversionResult = Array.from(result.conversions).map(assetConversionFromConversion); @@ -422,7 +422,7 @@ export class RemoteRenderingClient { result = await this.operations.listConversionsNext( this.accountId, continuationToken, - options + options, ); continuationToken = result.nextLink; assetConversionResult = Array.from(result.conversions).map(assetConversionFromConversion); @@ -431,7 +431,7 @@ export class RemoteRenderingClient { } private async *getAllConversionsPagingAll( - options?: OperationOptions + options?: OperationOptions, ): AsyncIterableIterator { for await (const page of this.getAllConversionsPagingPage(options)) { yield* page; @@ -443,13 +443,13 @@ export class RemoteRenderingClient { * @param options - The options parameters. */ public listConversions( - options?: ListConversionsOptions + options?: ListConversionsOptions, ): PagedAsyncIterableIterator { const { span, updatedOptions } = tracingClient.startSpan( "RemoteRenderingClient-ListConversion", { ...options, - } + }, ); try { const iter = this.getAllConversionsPagingAll(updatedOptions); @@ -486,7 +486,7 @@ export class RemoteRenderingClient { public async beginSession( sessionId: string, settings: RenderingSessionSettings, - options?: BeginSessionOptions + options?: BeginSessionOptions, ): Promise; /** @@ -494,13 +494,13 @@ export class RemoteRenderingClient { * @param options - The options parameters, carrying a resumeFrom value. */ public async beginSession( - options: ResumeBeginSessionOptions + options: ResumeBeginSessionOptions, ): Promise; public async beginSession( sessionIdOrResumeOptions: string | ResumeBeginSessionOptions, renderingSessionSettings?: RenderingSessionSettings, - options?: BeginSessionOptions + options?: BeginSessionOptions, ): Promise { let sessionId: string; let settings: RenderingSessionSettings; @@ -515,13 +515,13 @@ export class RemoteRenderingClient { this.operations, sessionIdOrResumeOptions.resumeFrom, "RemoteRenderingClient-GetSessionPoller", - sessionIdOrResumeOptions + sessionIdOrResumeOptions, ); return new RenderingSessionPoller( this.accountId, this.operations, renderingSession, - sessionIdOrResumeOptions + sessionIdOrResumeOptions, ); } @@ -539,14 +539,14 @@ export class RemoteRenderingClient { this.accountId, this.operations, renderingSessionFromSessionProperties(sessionProperties), - operationOptions + operationOptions, ); // Do I want this? await poller.poll(); return poller; - } + }, ); } @@ -559,14 +559,14 @@ export class RemoteRenderingClient { */ public async getSession( sessionId: string, - options?: GetSessionOptions + options?: GetSessionOptions, ): Promise { return getSessionInternal( this.accountId, this.operations, sessionId, "RemoteRenderingClient-GetSession", - options + options, ); } @@ -581,7 +581,7 @@ export class RemoteRenderingClient { public async updateSession( sessionId: string, settings: UpdateSessionSettings, - options?: UpdateSessionOptions + options?: UpdateSessionOptions, ): Promise { return tracingClient.withSpan( "RemoteRenderingClient-UpdateSession", @@ -594,10 +594,10 @@ export class RemoteRenderingClient { this.accountId, sessionId, settings, - updatedOptions + updatedOptions, ); return renderingSessionFromSessionProperties(sessionProperties); - } + }, ); } @@ -614,12 +614,12 @@ export class RemoteRenderingClient { this.operations, sessionId, "RemoteRenderingClient-EndSession", - options + options, ); } private async *getAllSessionsPagingPage( - options?: OperationOptions + options?: OperationOptions, ): AsyncIterableIterator { let result = await this.operations.listSessions(this.accountId, options); let sessions = Array.from(result.sessions).map(renderingSessionFromSessionProperties); @@ -634,7 +634,7 @@ export class RemoteRenderingClient { } private async *getAllSessionsPagingAll( - options?: OperationOptions + options?: OperationOptions, ): AsyncIterableIterator { for await (const page of this.getAllSessionsPagingPage(options)) { yield* page; @@ -650,7 +650,7 @@ export class RemoteRenderingClient { "RemoteRenderingClient-ListConversion", { ...options, - } + }, ); try { const iter = this.getAllSessionsPagingAll(updatedOptions); diff --git a/sdk/remoterendering/mixed-reality-remote-rendering/src/remoteRenderingServiceError.ts b/sdk/remoterendering/mixed-reality-remote-rendering/src/remoteRenderingServiceError.ts index 74438ac29b25..3fcda90b11d7 100644 --- a/sdk/remoterendering/mixed-reality-remote-rendering/src/remoteRenderingServiceError.ts +++ b/sdk/remoterendering/mixed-reality-remote-rendering/src/remoteRenderingServiceError.ts @@ -36,7 +36,7 @@ export class RemoteRenderingServiceError extends Error { /** Create a RemoteRenderingServiceError from a RemoteRenderingServiceErrorInternal */ export function createRemoteRenderingServiceError( - serviceError: RemoteRenderingServiceErrorInternal + serviceError: RemoteRenderingServiceErrorInternal, ): RemoteRenderingServiceError { const newError = new RemoteRenderingServiceError(serviceError.message, serviceError.code); newError.details = serviceError.details?.map((x) => createRemoteRenderingServiceError(x)); diff --git a/sdk/remoterendering/mixed-reality-remote-rendering/test/public/remoteRenderingClient.spec.ts b/sdk/remoterendering/mixed-reality-remote-rendering/test/public/remoteRenderingClient.spec.ts index 29c7ea51276a..5903fdfb233f 100644 --- a/sdk/remoterendering/mixed-reality-remote-rendering/test/public/remoteRenderingClient.spec.ts +++ b/sdk/remoterendering/mixed-reality-remote-rendering/test/public/remoteRenderingClient.spec.ts @@ -43,7 +43,7 @@ describe("RemoteRenderingClient construction", () => { serviceEndpoint, accountId, accountDomain, - keyCredential + keyCredential, ); assert.isNotNull(client); @@ -67,7 +67,7 @@ describe("RemoteRenderingClient construction", () => { serviceEndpoint, accountId, accountDomain, - tokenCredential + tokenCredential, ); assert.isNotNull(client); @@ -76,32 +76,32 @@ describe("RemoteRenderingClient construction", () => { it("can create with invalid arguments", () => { assert.throws( () => new RemoteRenderingClient(undefined!, accountId, accountDomain, keyCredential), - "Argument cannot be null or empty: 'endpoint'." + "Argument cannot be null or empty: 'endpoint'.", ); assert.throws( () => new RemoteRenderingClient(serviceEndpoint, undefined!, accountDomain, keyCredential), - "Argument cannot be null or empty: 'accountId'." + "Argument cannot be null or empty: 'accountId'.", ); assert.throws( () => new RemoteRenderingClient(serviceEndpoint, accountId, undefined!, keyCredential), - "Argument 3 cannot be null or empty." + "Argument 3 cannot be null or empty.", ); assert.throws( () => new RemoteRenderingClient(null!, accountId, accountDomain, keyCredential), - "Argument cannot be null or empty: 'endpoint'." + "Argument cannot be null or empty: 'endpoint'.", ); assert.throws( () => new RemoteRenderingClient(serviceEndpoint, null!, accountDomain, keyCredential), - "Argument cannot be null or empty: 'accountId'." + "Argument cannot be null or empty: 'accountId'.", ); assert.throws( () => new RemoteRenderingClient(serviceEndpoint, accountId, null!, keyCredential), - "Argument 3 cannot be null or empty." + "Argument 3 cannot be null or empty.", ); }); }); @@ -143,23 +143,23 @@ describe("RemoteRendering functional tests", () => { const conversionId: string = recorder.variable( "conversionId", - `conversionId-${Math.floor(Math.random() * 10000)}` + `conversionId-${Math.floor(Math.random() * 10000)}`, ); const conversionPoller: AssetConversionPollerLike = await client.beginConversion( conversionId, conversionSettings, - pollerSettings + pollerSettings, ); assert.equal(conversionPoller.getOperationState().latestResponse.conversionId, conversionId); assert.equal( conversionPoller.getOperationState().latestResponse.settings.inputSettings .relativeInputAssetPath, - inputSettings.relativeInputAssetPath + inputSettings.relativeInputAssetPath, ); assert.notEqual( conversionPoller.getOperationState().latestResponse.status, - KnownAssetConversionStatus.Failed + KnownAssetConversionStatus.Failed, ); const conversion: AssetConversion = await client.getConversion(conversionId); @@ -203,7 +203,7 @@ describe("RemoteRendering functional tests", () => { const conversionId = recorder.variable( "conversionId", - `conversionId-${Math.floor(Math.random() * 10000)}` + `conversionId-${Math.floor(Math.random() * 10000)}`, ); let didThrowExpected: boolean = false; @@ -242,13 +242,13 @@ describe("RemoteRendering functional tests", () => { const conversionId: string = recorder.variable( "conversionId", - `conversionId-${Math.floor(Math.random() * 10000)}` + `conversionId-${Math.floor(Math.random() * 10000)}`, ); const conversionPoller: AssetConversionPollerLike = await client.beginConversion( conversionId, conversionSettings, - pollerSettings + pollerSettings, ); const assetConversion: AssetConversion = await client.getConversion(conversionId); @@ -275,20 +275,20 @@ describe("RemoteRendering functional tests", () => { const sessionId: string = recorder.variable( "sessionId", - `sessionId-${Math.floor(Math.random() * 10000)}` + `sessionId-${Math.floor(Math.random() * 10000)}`, ); const sessionPoller: RenderingSessionPollerLike = await client.beginSession( sessionId, sessionSettings, - pollerSettings + pollerSettings, ); assert.equal(sessionPoller.getOperationState().latestResponse.sessionId, sessionId); assert.equal(sessionPoller.getOperationState().latestResponse.size, sessionSettings.size); assert.equal( sessionPoller.getOperationState().latestResponse.maxLeaseTimeInMinutes, - sessionSettings.maxLeaseTimeInMinutes + sessionSettings.maxLeaseTimeInMinutes, ); assert.notEqual(sessionPoller.getOperationState().latestResponse.status, "Error"); @@ -309,7 +309,7 @@ describe("RemoteRendering functional tests", () => { // would carry the earlier maxLeastTimeInMinutes value. assert.isTrue( readyRenderingSession.maxLeaseTimeInMinutes === 4 || - readyRenderingSession.maxLeaseTimeInMinutes === 5 + readyRenderingSession.maxLeaseTimeInMinutes === 5, ); assert.equal(readyRenderingSession.status, "Ready"); @@ -332,7 +332,7 @@ describe("RemoteRendering functional tests", () => { }; const sessionId: string = recorder.variable( "sessionId", - `sessionId-${Math.floor(Math.random() * 10000)}` + `sessionId-${Math.floor(Math.random() * 10000)}`, ); let didThrowExpected: boolean = false; diff --git a/sdk/remoterendering/mixed-reality-remote-rendering/test/utils/recordedClient.ts b/sdk/remoterendering/mixed-reality-remote-rendering/test/utils/recordedClient.ts index 9f629c64b8c1..6a2dba074ece 100644 --- a/sdk/remoterendering/mixed-reality-remote-rendering/test/utils/recordedClient.ts +++ b/sdk/remoterendering/mixed-reality-remote-rendering/test/utils/recordedClient.ts @@ -54,7 +54,7 @@ export function createClient(recorder: Recorder): RemoteRenderingClient { serviceEndpoint, accountId, credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); } else { const credential: AzureKeyCredential = new AzureKeyCredential(accountKey); @@ -63,7 +63,7 @@ export function createClient(recorder: Recorder): RemoteRenderingClient { accountId, accountDomain, credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); } } diff --git a/sdk/schemaregistry/perf-tests/schema-registry-avro/package.json b/sdk/schemaregistry/perf-tests/schema-registry-avro/package.json index 09c17a448e2a..9c1092f74478 100644 --- a/sdk/schemaregistry/perf-tests/schema-registry-avro/package.json +++ b/sdk/schemaregistry/perf-tests/schema-registry-avro/package.json @@ -17,11 +17,11 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -30,9 +30,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/schemaregistry/perf-tests/schema-registry-avro/test/deserialize.spec.ts b/sdk/schemaregistry/perf-tests/schema-registry-avro/test/deserialize.spec.ts index 33ce601931f7..d2fe2bea9ce7 100644 --- a/sdk/schemaregistry/perf-tests/schema-registry-avro/test/deserialize.spec.ts +++ b/sdk/schemaregistry/perf-tests/schema-registry-avro/test/deserialize.spec.ts @@ -32,7 +32,7 @@ export class DeserializeTest extends AvroSerializerTest name: "test", favoriteNumbers: this.array, }, - AvroSerializerTest.schema + AvroSerializerTest.schema, ); } } diff --git a/sdk/schemaregistry/schema-registry-avro/package.json b/sdk/schemaregistry/schema-registry-avro/package.json index be30870cb71f..086f8edc1118 100644 --- a/sdk/schemaregistry/schema-registry-avro/package.json +++ b/sdk/schemaregistry/schema-registry-avro/package.json @@ -17,11 +17,11 @@ "build:samples": "echo Obsolete.", "build:test": "npm run bundle", "build": "npm run clean && npm run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp \"types/!(schema-registry-avro.shims.d.ts)\" *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -112,7 +112,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "process": "^0.11.10", "rimraf": "^3.0.0", "stream": "^0.0.2", diff --git a/sdk/schemaregistry/schema-registry-avro/samples-dev/schemaRegistryAvroSample.ts b/sdk/schemaregistry/schema-registry-avro/samples-dev/schemaRegistryAvroSample.ts index 93e31b40e3b6..92006d117d86 100644 --- a/sdk/schemaregistry/schema-registry-avro/samples-dev/schemaRegistryAvroSample.ts +++ b/sdk/schemaregistry/schema-registry-avro/samples-dev/schemaRegistryAvroSample.ts @@ -57,7 +57,7 @@ export async function main() { // Create a new client const client = new SchemaRegistryClient( schemaRegistryFullyQualifiedNamespace, - new DefaultAzureCredential() + new DefaultAzureCredential(), ); // Register the schema. This would generally have been done somewhere else. diff --git a/sdk/schemaregistry/schema-registry-avro/samples-dev/withEventHubsBufferedProducerClient.ts b/sdk/schemaregistry/schema-registry-avro/samples-dev/withEventHubsBufferedProducerClient.ts index 38fe83ec43f1..94e10da7db96 100644 --- a/sdk/schemaregistry/schema-registry-avro/samples-dev/withEventHubsBufferedProducerClient.ts +++ b/sdk/schemaregistry/schema-registry-avro/samples-dev/withEventHubsBufferedProducerClient.ts @@ -68,7 +68,7 @@ export async function main() { // Create a new client const schemaRegistryClient = new SchemaRegistryClient( schemaRegistryFullyQualifiedNamespace, - new DefaultAzureCredential() + new DefaultAzureCredential(), ); // Register the schema. This would generally have been done somewhere else. @@ -87,7 +87,7 @@ export async function main() { eventHubName, { onSendEventsErrorHandler: handleError, - } + }, ); // serialize an object that matches the schema diff --git a/sdk/schemaregistry/schema-registry-avro/samples-dev/withEventHubsConsumerClient.ts b/sdk/schemaregistry/schema-registry-avro/samples-dev/withEventHubsConsumerClient.ts index 9107d6b057ea..98214d950857 100644 --- a/sdk/schemaregistry/schema-registry-avro/samples-dev/withEventHubsConsumerClient.ts +++ b/sdk/schemaregistry/schema-registry-avro/samples-dev/withEventHubsConsumerClient.ts @@ -65,7 +65,7 @@ export async function main() { // Create a new client const schemaRegistryClient = new SchemaRegistryClient( schemaRegistryFullyQualifiedNamespace, - new DefaultAzureCredential() + new DefaultAzureCredential(), ); // Register the schema. This would generally have been done somewhere else. @@ -82,7 +82,7 @@ export async function main() { const eventHubConsumerClient = new EventHubConsumerClient( consumerGroup, eventHubsConnectionString, - eventHubName + eventHubName, ); const subscription = eventHubConsumerClient.subscribe( @@ -99,7 +99,7 @@ export async function main() { console.log( `Received event: '${JSON.stringify(event)}' from partition: '${ context.partitionId - }' and consumer group: '${context.consumerGroup}'` + }' and consumer group: '${context.consumerGroup}'`, ); if (event.contentType !== undefined && event.body) { const contentTypeParts = event.contentType.split("+"); @@ -114,7 +114,7 @@ export async function main() { console.log(`Error on partition "${context.partitionId}": ${err}`); }, }, - { startPosition: earliestEventPosition } + { startPosition: earliestEventPosition }, ); // Wait for a bit before cleaning up the sample diff --git a/sdk/schemaregistry/schema-registry-avro/samples-dev/withEventHubsProducerClient.ts b/sdk/schemaregistry/schema-registry-avro/samples-dev/withEventHubsProducerClient.ts index 1946df69dbee..fc087a08997a 100644 --- a/sdk/schemaregistry/schema-registry-avro/samples-dev/withEventHubsProducerClient.ts +++ b/sdk/schemaregistry/schema-registry-avro/samples-dev/withEventHubsProducerClient.ts @@ -64,7 +64,7 @@ export async function main() { // Create a new client const schemaRegistryClient = new SchemaRegistryClient( schemaRegistryFullyQualifiedNamespace, - new DefaultAzureCredential() + new DefaultAzureCredential(), ); // Register the schema. This would generally have been done somewhere else. @@ -80,7 +80,7 @@ export async function main() { const eventHubsProducerClient = new EventHubProducerClient( eventHubsConnectionString, - eventHubName + eventHubName, ); // serialize an object that matches the schema diff --git a/sdk/schemaregistry/schema-registry-avro/src/avroSerializer.ts b/sdk/schemaregistry/schema-registry-avro/src/avroSerializer.ts index 207468bbb6c7..d00aaff61a73 100644 --- a/sdk/schemaregistry/schema-registry-avro/src/avroSerializer.ts +++ b/sdk/schemaregistry/schema-registry-avro/src/avroSerializer.ts @@ -77,12 +77,12 @@ export class AvroSerializer { const entry = await this.getSchemaByDefinition(schema); const buffer = wrapError( () => entry.serializer.toBuffer(value), - `Avro serialization failed. See 'cause' for more details. Schema ID: ${entry.id}` + `Avro serialization failed. See 'cause' for more details. Schema ID: ${entry.id}`, ); const data = new Uint8Array( buffer.buffer, buffer.byteOffset, - buffer.byteLength / Uint8Array.BYTES_PER_ELEMENT + buffer.byteLength / Uint8Array.BYTES_PER_ELEMENT, ); const contentType = `${avroMimeType}+${entry.id}`; return this.messageAdapter @@ -121,16 +121,16 @@ export class AvroSerializer { const readerSchemaSerializer = getSerializerForSchema(readerSchema); const resolver = wrapError( () => readerSchemaSerializer.createResolver(writerSchemaSerializer), - `Avro reader schema is incompatible with the writer schema (schema ID: (${writerSchemaId})):\n\n\treader schema: ${readerSchema}\n\nSee 'cause' for more details.` + `Avro reader schema is incompatible with the writer schema (schema ID: (${writerSchemaId})):\n\n\treader schema: ${readerSchema}\n\nSee 'cause' for more details.`, ); return wrapError( () => readerSchemaSerializer.fromBuffer(buffer, resolver, true), - `Avro deserialization with reader schema failed: \n\treader schema: ${readerSchema}\nSee 'cause' for more details. Writer schema ID: ${writerSchemaId}` + `Avro deserialization with reader schema failed: \n\treader schema: ${readerSchema}\nSee 'cause' for more details. Writer schema ID: ${writerSchemaId}`, ); } else { return wrapError( () => writerSchemaSerializer.fromBuffer(buffer), - `Avro deserialization failed with schema ID (${writerSchemaId}). See 'cause' for more details.` + `Avro deserialization failed with schema ID (${writerSchemaId}). See 'cause' for more details.`, ); } } @@ -148,7 +148,7 @@ export class AvroSerializer { if (!schemaResponse.properties.format.match(/^avro$/i)) { throw new Error( - `Schema with ID '${schemaResponse.properties.id}' has format '${schemaResponse.properties.format}', not 'avro'.` + `Schema with ID '${schemaResponse.properties.id}' has format '${schemaResponse.properties.format}', not 'avro'.`, ); } @@ -169,7 +169,7 @@ export class AvroSerializer { if (!this.schemaGroup) { throw new Error( - "Schema group must have been specified in the constructor options when the client was created in order to serialize." + "Schema group must have been specified in the constructor options when the client was created in order to serialize.", ); } @@ -190,7 +190,7 @@ export class AvroSerializer { if ((e as any).statusCode === 404) { throw errorWithCause( `Schema '${description.name}' not found in registry group '${description.groupName}', or not found to have matching definition.`, - e as Error + e as Error, ); } else { throw e; @@ -206,7 +206,7 @@ export class AvroSerializer { this.cacheBySchemaDefinition.set(schema, entry); this.cacheById.set(id, serializer); logger.verbose( - `Cache entry added or updated. Total number of entries: ${this.cacheBySchemaDefinition.size}; Total schema length ${this.cacheBySchemaDefinition.calculatedSize}` + `Cache entry added or updated. Total number of entries: ${this.cacheBySchemaDefinition.size}; Total schema length ${this.cacheBySchemaDefinition.calculatedSize}`, ); return entry; } @@ -219,7 +219,7 @@ function getSchemaId(contentType: string): string { } if (contentTypeParts[0] !== avroMimeType) { throw new Error( - `Received content of type ${contentTypeParts[0]} but an avro serializer may only be used on content that is of '${avroMimeType}' type` + `Received content of type ${contentTypeParts[0]} but an avro serializer may only be used on content that is of '${avroMimeType}' type`, ); } return contentTypeParts[1]; @@ -227,7 +227,7 @@ function getSchemaId(contentType: string): string { function convertMessage( message: MessageT, - adapter?: MessageAdapter + adapter?: MessageAdapter, ): MessageContent { const messageConsumer = adapter?.consume; if (messageConsumer) { @@ -236,7 +236,7 @@ function convertMessage( return message; } else { throw new Error( - `Expected either a message adapter to be provided to the serializer or the input message to have data and contentType fields` + `Expected either a message adapter to be provided to the serializer or the input message to have data and contentType fields`, ); } } @@ -248,7 +248,7 @@ function getSerializerForSchema(schema: string): AVSCSerializer { omitRecordMethods: true, logicalTypes: { "timestamp-millis": DateType }, }), - `Parsing Avro schema failed:\n\n\t${schema}\n\nSee 'cause' for more details.` + `Parsing Avro schema failed:\n\n\t${schema}\n\nSee 'cause' for more details.`, ); } @@ -269,6 +269,6 @@ function errorWithCause(message: string, cause: Error): Error { // see https://medium.com/ovrsea/power-up-your-node-js-debugging-and-error-handling-with-the-new-error-cause-feature-4136c563126a // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - { cause } + { cause }, ); } diff --git a/sdk/schemaregistry/schema-registry-avro/test/internal/messageAdapter.spec.ts b/sdk/schemaregistry/schema-registry-avro/test/internal/messageAdapter.spec.ts index a1cb847977b1..50761a9f6407 100644 --- a/sdk/schemaregistry/schema-registry-avro/test/internal/messageAdapter.spec.ts +++ b/sdk/schemaregistry/schema-registry-avro/test/internal/messageAdapter.spec.ts @@ -41,7 +41,7 @@ describe("Message Adapters", function () { const areEqual: AssertEqualKeys, EHMessageAdapter> = true; assert.isTrue( areEqual, - "MessageAdapter should have the same shape as @azure/event-hubs's MessageAdapter." + "MessageAdapter should have the same shape as @azure/event-hubs's MessageAdapter.", ); }); }); @@ -53,7 +53,7 @@ describe("Message Adapters", function () { > = true; assert.isTrue( areEqual, - 'EventDataAdapterParameters should have the same shape as Omit.' + 'EventDataAdapterParameters should have the same shape as Omit.', ); }); }); @@ -69,7 +69,7 @@ describe("Message Adapters", function () { adapter.consume({ contentType: "", }), - /Expected the body field to be defined/ + /Expected the body field to be defined/, ); }); it("consumeMessage rejects messages with no contentType", async () => { @@ -78,7 +78,7 @@ describe("Message Adapters", function () { adapter.consume({ body: dummyUint8Array, }), - /Expected the contentType field to be defined/ + /Expected the contentType field to be defined/, ); }); }); diff --git a/sdk/schemaregistry/schema-registry-avro/test/public/avroSerializer.spec.ts b/sdk/schemaregistry/schema-registry-avro/test/public/avroSerializer.spec.ts index cdcff6508715..2dfe83d6219f 100644 --- a/sdk/schemaregistry/schema-registry-avro/test/public/avroSerializer.spec.ts +++ b/sdk/schemaregistry/schema-registry-avro/test/public/avroSerializer.spec.ts @@ -64,7 +64,7 @@ describe("AvroSerializer", async function () { assert.equal(serializer["cacheById"].size, 1); assert.equal( serializer["cacheById"].peek(schemaId)?.name, - "com.azure.schemaregistry.samples.AvroUser" + "com.azure.schemaregistry.samples.AvroUser", ); assert.equal(serializer["cacheBySchemaDefinition"].size, 1); assert.equal(serializer["cacheBySchemaDefinition"].peek(testSchema)?.id, schemaId); @@ -82,7 +82,7 @@ describe("AvroSerializer", async function () { data, contentType: `avro/binary+${schemaId}`, }), - testValue + testValue, ); }); @@ -123,7 +123,7 @@ describe("AvroSerializer", async function () { { name: "amount", type: "int" }, { name: "time", type: { type: "long", logicalType: "timestamp-millis" } }, ], - }) + }), ); assert.isDefined(message); assert.deepStrictEqual(await serializer.deserialize(message), testTransaction); @@ -199,7 +199,7 @@ describe("AvroSerializer", async function () { data, contentType: `avro/binary+${uuid()}`, }), - /Schema id .* does not exist/ + /Schema id .* does not exist/, ); }); diff --git a/sdk/schemaregistry/schema-registry-avro/test/public/clients/eventHubs.ts b/sdk/schemaregistry/schema-registry-avro/test/public/clients/eventHubs.ts index a33a77c2dace..4b93dc4d2612 100644 --- a/sdk/schemaregistry/schema-registry-avro/test/public/clients/eventHubs.ts +++ b/sdk/schemaregistry/schema-registry-avro/test/public/clients/eventHubs.ts @@ -41,13 +41,13 @@ export function createEventHubsClient(settings: { producer = new EventHubBufferedProducerClient( eventHubsConnectionString, eventHubName, - recorder?.configureClientOptions(clientOptions) ?? clientOptions + recorder?.configureClientOptions(clientOptions) ?? clientOptions, ); consumer = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, eventHubsConnectionString, eventHubName, - recorder?.configureClientOptions({}) ?? undefined + recorder?.configureClientOptions({}) ?? undefined, ); subscription = consumer.subscribe( { @@ -59,7 +59,7 @@ export function createEventHubsClient(settings: { throw err; }, }, - { startPosition: alreadyEnqueued ? earliestEventPosition : latestEventPosition } + { startPosition: alreadyEnqueued ? earliestEventPosition : latestEventPosition }, ); initialized = true; }, diff --git a/sdk/schemaregistry/schema-registry-avro/test/public/clients/mocked.ts b/sdk/schemaregistry/schema-registry-avro/test/public/clients/mocked.ts index 32b5c1f81eb6..b2ddb7837960 100644 --- a/sdk/schemaregistry/schema-registry-avro/test/public/clients/mocked.ts +++ b/sdk/schemaregistry/schema-registry-avro/test/public/clients/mocked.ts @@ -10,7 +10,7 @@ import { isLiveMode } from "@azure-tools/test-recorder"; * @returns a client that can work in both live and playback modes */ export function createMockedMessagingClient( - createLiveClient: () => MessagingTestClient + createLiveClient: () => MessagingTestClient, ): MessagingTestClient { if (isLiveMode()) { return createLiveClient(); diff --git a/sdk/schemaregistry/schema-registry-avro/test/public/errors.spec.ts b/sdk/schemaregistry/schema-registry-avro/test/public/errors.spec.ts index 20da3ff34238..603c6ae9367a 100644 --- a/sdk/schemaregistry/schema-registry-avro/test/public/errors.spec.ts +++ b/sdk/schemaregistry/schema-registry-avro/test/public/errors.spec.ts @@ -78,7 +78,7 @@ describe("Error scenarios", function () { data: Uint8Array.from([0]), contentType: `avro/binary+${uuid()}`, }), - /does not exist/ + /does not exist/, ); }); }); @@ -122,7 +122,7 @@ describe("Error scenarios", function () { name: "", favoriteNumber: 1, }, - JSON.stringify(writerSchema) + JSON.stringify(writerSchema), ); await assertError( serializer.deserialize(message, { @@ -130,7 +130,7 @@ describe("Error scenarios", function () { }), { causeMessage: /missing array items/, - } + }, ); schemaList.push(`${writerSchema.namespace}.${writerSchema.name}`); }); @@ -170,7 +170,7 @@ describe("Error scenarios", function () { name: "", favoriteNumber: 1, }, - JSON.stringify(writerSchema) + JSON.stringify(writerSchema), ); await assertError( serializer.deserialize(message, { @@ -178,7 +178,7 @@ describe("Error scenarios", function () { }), { causeMessage: /no matching field for default-less validation.AvroUser.age/, - } + }, ); schemaList.push(`${writerSchema.namespace}.${writerSchema.name}`); }); @@ -215,7 +215,7 @@ describe("Error scenarios", function () { name: "", favoriteNumber: 1, }, - JSON.stringify(writerSchema) + JSON.stringify(writerSchema), ); await assertError( serializer.deserialize({ @@ -224,7 +224,7 @@ describe("Error scenarios", function () { }), { causeMessage: /Unexpected end of JSON input/, - } + }, ); }); it("incompatible writer schema", async function () { @@ -269,7 +269,7 @@ describe("Error scenarios", function () { name: "", favoriteNumber: 1, }, - JSON.stringify(writerSchema1) + JSON.stringify(writerSchema1), ); await assertError( serializer.deserialize({ @@ -278,7 +278,7 @@ describe("Error scenarios", function () { }), { causeMessage: /truncated buffer/, - } + }, ); schemaList.push("test", `${writerSchema1.namespace}.${writerSchema1.name}`); }); @@ -291,7 +291,7 @@ describe("Error scenarios", function () { data: Buffer.alloc(1), contentType: "application/json+1234", }), - /application\/json.*avro\/binary/ + /application\/json.*avro\/binary/, ); }); it("a schema with non-avro format", async function (this: Context) { @@ -302,7 +302,7 @@ describe("Error scenarios", function () { format: "notavro", groupName: testGroup, }), - /Invalid schema type for PUT request.*notavro/ + /Invalid schema type for PUT request.*notavro/, ); }); it("not JSON schema", async function () { @@ -319,7 +319,7 @@ describe("Error scenarios", function () { serializer.serialize(null, null as any), { causeMessage: /invalid type: null/, - } + }, ); }); it("schema without a name", async function () { @@ -332,11 +332,11 @@ describe("Error scenarios", function () { JSON.stringify({ type: "array", items: "int", - }) + }), ), { message: /Schema must have a name/, - } + }, ); }); it("enum schema without symbols", async function () { @@ -354,11 +354,11 @@ describe("Error scenarios", function () { }, }, ], - }) + }), ), { causeMessage: /invalid enum symbols: undefined/, - } + }, ); }); it("fixed schema without size", async function () { @@ -376,11 +376,11 @@ describe("Error scenarios", function () { }, }, ], - }) + }), ), { causeMessage: /invalid fixed size/, - } + }, ); }); it("array schema without items", async function () { @@ -398,11 +398,11 @@ describe("Error scenarios", function () { }, }, ], - }) + }), ), { causeMessage: /missing array items: {"type":"array"}/, - } + }, ); }); it("map schema without values", async function () { @@ -420,11 +420,11 @@ describe("Error scenarios", function () { }, }, ], - }) + }), ), { causeMessage: /missing map values: {"type":"map"}/, - } + }, ); }); it("record schema without fields", async function () { @@ -434,11 +434,11 @@ describe("Error scenarios", function () { JSON.stringify({ type: "record", name: "foo", - }) + }), ), { causeMessage: /non-array record fields: undefined/, - } + }, ); }); }); @@ -490,11 +490,11 @@ describe("Error scenarios", function () { type: "null", }, ], - }) + }), ), { causeMessage: /invalid "null": 1/, - } + }, ); assert.isTrue(ran, `Expected a service call to register the schema but non was sent!`); }); @@ -514,11 +514,11 @@ describe("Error scenarios", function () { type: "null", }, ], - }) + }), ), { causeMessage: /invalid "null": 1/, - } + }, ); }); it("boolean", async function () { @@ -537,11 +537,11 @@ describe("Error scenarios", function () { type: "boolean", }, ], - }) + }), ), { causeMessage: /invalid "boolean": 1/, - } + }, ); }); it("int", async function () { @@ -560,11 +560,11 @@ describe("Error scenarios", function () { type: "int", }, ], - }) + }), ), { causeMessage: /invalid "int": null/, - } + }, ); }); it("long", async function () { @@ -583,11 +583,11 @@ describe("Error scenarios", function () { type: "long", }, ], - }) + }), ), { causeMessage: /invalid "long": 9007199254740991/, - } + }, ); }); it("long with logical DateTime type", async function () { @@ -601,11 +601,11 @@ describe("Error scenarios", function () { name: "User", namespace: "validation", fields: [{ name: "time", type: { type: "long", logicalType: "timestamp-millis" } }], - }) + }), ), { causeMessage: /invalid "long": null/, - } + }, ); }); it("float", async function () { @@ -624,11 +624,11 @@ describe("Error scenarios", function () { type: "float", }, ], - }) + }), ), { causeMessage: /invalid "float": ""/, - } + }, ); }); it("double", async function () { @@ -647,11 +647,11 @@ describe("Error scenarios", function () { type: "double", }, ], - }) + }), ), { causeMessage: /invalid "double": ""/, - } + }, ); }); it("string", async function () { @@ -670,11 +670,11 @@ describe("Error scenarios", function () { type: "string", }, ], - }) + }), ), { causeMessage: /invalid "string": 1/, - } + }, ); }); it("bytes", async function () { @@ -693,11 +693,11 @@ describe("Error scenarios", function () { type: "bytes", }, ], - }) + }), ), { causeMessage: /invalid "bytes": 1/, - } + }, ); }); it("union", async function () { @@ -716,11 +716,11 @@ describe("Error scenarios", function () { type: ["null", "string"], }, ], - }) + }), ), { causeMessage: /invalid \["null","string"\]: 1/, - } + }, ); }); it("enum", async function () { @@ -743,12 +743,12 @@ describe("Error scenarios", function () { }, }, ], - }) + }), ), { causeMessage: /invalid {"name":"validation.foo","type":"enum","symbols":\["A","B"\]}: "x"/, - } + }, ); }); it("fixed", async function () { @@ -771,11 +771,11 @@ describe("Error scenarios", function () { }, }, ], - }) + }), ), { causeMessage: /invalid {"name":"validation.foo","type":"fixed","size":16}: "x"/, - } + }, ); }); it("map", async function () { @@ -801,11 +801,11 @@ describe("Error scenarios", function () { }, }, ], - }) + }), ), { causeMessage: /invalid {"type":"map","values":"long"}: "x"/, - } + }, ); }); it("array", async function () { @@ -831,11 +831,11 @@ describe("Error scenarios", function () { }, }, ], - }) + }), ), { causeMessage: /invalid {"type":"array","items":"long"}: "x"/, - } + }, ); }); it("record", async function () { @@ -852,11 +852,11 @@ describe("Error scenarios", function () { type: "int", }, ], - }) + }), ), { causeMessage: /invalid "int": undefined/, - } + }, ); }); }); @@ -886,7 +886,7 @@ describe("Error scenarios", function () { type: "string", }, ], - }) + }), ); assert.deepEqual(serializedValue.data, Uint8Array.from([2, 2, 120])); serializedValue.data = Buffer.from([2, 2]); @@ -913,11 +913,11 @@ describe("Error scenarios", function () { type: "long", }, ], - }) + }), ); assert.deepEqual( serializedValue.data, - Uint8Array.from([252, 255, 255, 255, 255, 255, 255, 31]) + Uint8Array.from([252, 255, 255, 255, 255, 255, 255, 31]), ); serializedValue.data = Uint8Array.from([252, 255, 255, 255, 255, 255, 255, 32]); await assertError(serializer.deserialize(serializedValue), { @@ -939,7 +939,7 @@ describe("Error scenarios", function () { type: ["null", "string"], }, ], - }) + }), ); assert.deepEqual(serializedValue.data, Uint8Array.from([2, 2, 120])); serializedValue.data = Uint8Array.from([5, 2, 120]); @@ -966,7 +966,7 @@ describe("Error scenarios", function () { }, }, ], - }) + }), ); assert.deepEqual(serializedValue.data, Uint8Array.from([0])); serializedValue.data = Uint8Array.from([10]); @@ -1004,7 +1004,7 @@ describe("Error scenarios", function () { }), { causeMessage: /Invalid date/, - } + }, ); schemaList.push(testSchemaName); diff --git a/sdk/schemaregistry/schema-registry-avro/test/public/utils/assertError.ts b/sdk/schemaregistry/schema-registry-avro/test/public/utils/assertError.ts index 99d7208075e0..292433c5f3d1 100644 --- a/sdk/schemaregistry/schema-registry-avro/test/public/utils/assertError.ts +++ b/sdk/schemaregistry/schema-registry-avro/test/public/utils/assertError.ts @@ -8,7 +8,7 @@ export async function assertError( expectations: { causeMessage?: RegExp; message?: RegExp; - } = {} + } = {}, ): Promise { const { causeMessage, message } = expectations; try { diff --git a/sdk/schemaregistry/schema-registry-avro/test/public/utils/mockedRegistryClient.ts b/sdk/schemaregistry/schema-registry-avro/test/public/utils/mockedRegistryClient.ts index a451b8c5a24c..98670e47fa99 100644 --- a/sdk/schemaregistry/schema-registry-avro/test/public/utils/mockedRegistryClient.ts +++ b/sdk/schemaregistry/schema-registry-avro/test/public/utils/mockedRegistryClient.ts @@ -48,7 +48,7 @@ function createLiveTestRegistry(settings: { const client = new SchemaRegistryClient( getEnvVar("SCHEMAREGISTRY_AVRO_FULLY_QUALIFIED_NAMESPACE"), createTestCredential(), - recorder?.configureClientOptions({}) + recorder?.configureClientOptions({}), ); return { getSchema: (id: string) => client.getSchema(id, getSchemaOptions), @@ -68,7 +68,7 @@ function createMockedTestRegistry(): SchemaRegistry { async function registerSchema( schema: UpdatedSchemaDescription, - _options?: RegisterSchemaOptions + _options?: RegisterSchemaOptions, ): Promise { let result = mapByContent.get(schema.definition); if (!result) { @@ -102,7 +102,7 @@ function createMockedTestRegistry(): SchemaRegistry { async function getSchemaProperties( schema: UpdatedSchemaDescription, - _options?: GetSchemaPropertiesOptions + _options?: GetSchemaPropertiesOptions, ): Promise { const storedSchema = mapByContent.get(schema.definition); if (!storedSchema) { @@ -127,7 +127,7 @@ export function createTestRegistry( getSchemaPropertiesOptions?: GetSchemaPropertiesOptions; getSchemaOptions?: GetSchemaOptions; recorder?: Recorder; - } = {} + } = {}, ): SchemaRegistry { const { neverLive = false, @@ -157,7 +157,7 @@ export function createPipelineWithCredential(): Pipeline { export async function removeSchemas( schemaNamesList: string[], pipeline: Pipeline, - client: HttpClient + client: HttpClient, ): Promise { if (!isLiveMode()) { return; diff --git a/sdk/schemaregistry/schema-registry-avro/test/public/utils/mockedSerializer.ts b/sdk/schemaregistry/schema-registry-avro/test/public/utils/mockedSerializer.ts index 04ecf97ea485..b0bd56afd8ec 100644 --- a/sdk/schemaregistry/schema-registry-avro/test/public/utils/mockedSerializer.ts +++ b/sdk/schemaregistry/schema-registry-avro/test/public/utils/mockedSerializer.ts @@ -14,7 +14,7 @@ export interface CreateTestSerializerOptions { } export async function createTestSerializer( - options: CreateTestSerializerOptions = {} + options: CreateTestSerializerOptions = {}, ): Promise> { const { serializerOptions = { autoRegisterSchemas: true, groupName: testGroup }, diff --git a/sdk/schemaregistry/schema-registry-avro/test/public/withMessagingClients.spec.ts b/sdk/schemaregistry/schema-registry-avro/test/public/withMessagingClients.spec.ts index dc6d0dd64e12..044f76a39735 100644 --- a/sdk/schemaregistry/schema-registry-avro/test/public/withMessagingClients.spec.ts +++ b/sdk/schemaregistry/schema-registry-avro/test/public/withMessagingClients.spec.ts @@ -57,7 +57,7 @@ describe("With messaging clients", function () { alreadyEnqueued, eventHubName: alreadyEnqueued ? inputEventHubName : eventHubName, eventHubsConnectionString, - }) + }), ); client.initialize(); return client; @@ -145,7 +145,7 @@ describe("With messaging clients", function () { await processMessage( serializer.deserialize(receivedMessage, { schema: readerSchema, - }) + }), ); } catch (e: any) { errors.push({ @@ -158,7 +158,7 @@ describe("With messaging clients", function () { if (errors.length > 0) { throw new Error( "The following error(s) occurred:\n" + - errors.map(({ error, language }) => `${language}:\t${error.message}`).join("\n") + errors.map(({ error, language }) => `${language}:\t${error.message}`).join("\n"), ); } } diff --git a/sdk/schemaregistry/schema-registry-avro/test/utils/utils.ts b/sdk/schemaregistry/schema-registry-avro/test/utils/utils.ts index 293b9544b45d..fffe661c7fdc 100644 --- a/sdk/schemaregistry/schema-registry-avro/test/utils/utils.ts +++ b/sdk/schemaregistry/schema-registry-avro/test/utils/utils.ts @@ -6,7 +6,7 @@ */ export type AssertEqualKeys, T2 extends Record> = [ keyof T1 extends keyof T2 ? 1 : 0, - keyof T2 extends keyof T1 ? 1 : 0 + keyof T2 extends keyof T1 ? 1 : 0, ] extends [1, 1] ? true : false; diff --git a/sdk/schemaregistry/schema-registry-json/package.json b/sdk/schemaregistry/schema-registry-json/package.json index e57b4e404a2e..bbec4666af45 100644 --- a/sdk/schemaregistry/schema-registry-json/package.json +++ b/sdk/schemaregistry/schema-registry-json/package.json @@ -14,11 +14,11 @@ "build:samples": "echo Obsolete.", "build:test": "npm run bundle", "build": "npm run clean && npm run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -102,7 +102,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "typescript": "~5.2.0", "ts-node": "^10.0.0", diff --git a/sdk/schemaregistry/schema-registry-json/samples-dev/schemaRegistryJsonSample.ts b/sdk/schemaregistry/schema-registry-json/samples-dev/schemaRegistryJsonSample.ts index a93490f124bf..ec426b77bf7d 100644 --- a/sdk/schemaregistry/schema-registry-json/samples-dev/schemaRegistryJsonSample.ts +++ b/sdk/schemaregistry/schema-registry-json/samples-dev/schemaRegistryJsonSample.ts @@ -63,7 +63,7 @@ export async function main() { // Create a new client const client = new SchemaRegistryClient( schemaRegistryFullyQualifiedNamespace, - new DefaultAzureCredential() + new DefaultAzureCredential(), ); // Register the schema. This would generally have been done somewhere else. diff --git a/sdk/schemaregistry/schema-registry-json/samples-dev/schemaRegistryJsonWithValidation.ts b/sdk/schemaregistry/schema-registry-json/samples-dev/schemaRegistryJsonWithValidation.ts index db3487da6208..ffb45db2789f 100644 --- a/sdk/schemaregistry/schema-registry-json/samples-dev/schemaRegistryJsonWithValidation.ts +++ b/sdk/schemaregistry/schema-registry-json/samples-dev/schemaRegistryJsonWithValidation.ts @@ -62,7 +62,7 @@ export async function main() { // Create a new client const client = new SchemaRegistryClient( schemaRegistryFullyQualifiedNamespace, - new DefaultAzureCredential() + new DefaultAzureCredential(), ); // Register the schema. This would generally have been done somewhere else. diff --git a/sdk/schemaregistry/schema-registry-json/samples-dev/withEventHubsBufferedProducerClient.ts b/sdk/schemaregistry/schema-registry-json/samples-dev/withEventHubsBufferedProducerClient.ts index 79dc1e6b85f7..c2e294bc5cec 100644 --- a/sdk/schemaregistry/schema-registry-json/samples-dev/withEventHubsBufferedProducerClient.ts +++ b/sdk/schemaregistry/schema-registry-json/samples-dev/withEventHubsBufferedProducerClient.ts @@ -67,7 +67,7 @@ export async function main() { // Create a new client const schemaRegistryClient = new SchemaRegistryClient( schemaRegistryFullyQualifiedNamespace, - new DefaultAzureCredential() + new DefaultAzureCredential(), ); // Register the schema. This would generally have been done somewhere else. @@ -84,7 +84,7 @@ export async function main() { eventHubName, { onSendEventsErrorHandler: handleError, - } + }, ); // serialize an object that matches the schema diff --git a/sdk/schemaregistry/schema-registry-json/samples-dev/withEventHubsConsumerClient.ts b/sdk/schemaregistry/schema-registry-json/samples-dev/withEventHubsConsumerClient.ts index c0f9a2d0af84..86ae7d568122 100644 --- a/sdk/schemaregistry/schema-registry-json/samples-dev/withEventHubsConsumerClient.ts +++ b/sdk/schemaregistry/schema-registry-json/samples-dev/withEventHubsConsumerClient.ts @@ -64,7 +64,7 @@ export async function main() { // Create a new client const schemaRegistryClient = new SchemaRegistryClient( schemaRegistryFullyQualifiedNamespace, - new DefaultAzureCredential() + new DefaultAzureCredential(), ); // Register the schema. This would generally have been done somewhere else. @@ -79,7 +79,7 @@ export async function main() { const eventHubConsumerClient = new EventHubConsumerClient( consumerGroup, eventHubsConnectionString, - eventHubName + eventHubName, ); const subscription = eventHubConsumerClient.subscribe( @@ -90,7 +90,7 @@ export async function main() { console.log( `Received event: '${JSON.stringify(event)}' from partition: '${ context.partitionId - }' and consumer group: '${context.consumerGroup}'` + }' and consumer group: '${context.consumerGroup}'`, ); if (event.contentType !== undefined && event.body) { const contentTypeParts = event.contentType.split("+"); @@ -106,7 +106,7 @@ export async function main() { }, }, // Set the skipParsingBodyAsJson option to disable automatic JSON parsing of the message so we can deserialize it with the JSON serializer instead. - { startPosition: earliestEventPosition, skipParsingBodyAsJson: true } + { startPosition: earliestEventPosition, skipParsingBodyAsJson: true }, ); // Wait for a bit before cleaning up the sample diff --git a/sdk/schemaregistry/schema-registry-json/samples-dev/withEventHubsProducerClient.ts b/sdk/schemaregistry/schema-registry-json/samples-dev/withEventHubsProducerClient.ts index ef621ee75fd5..ed15a2c04e8b 100644 --- a/sdk/schemaregistry/schema-registry-json/samples-dev/withEventHubsProducerClient.ts +++ b/sdk/schemaregistry/schema-registry-json/samples-dev/withEventHubsProducerClient.ts @@ -63,7 +63,7 @@ export async function main() { // Create a new client const schemaRegistryClient = new SchemaRegistryClient( schemaRegistryFullyQualifiedNamespace, - new DefaultAzureCredential() + new DefaultAzureCredential(), ); // Register the schema. This would generally have been done somewhere else. @@ -77,7 +77,7 @@ export async function main() { const eventHubsProducerClient = new EventHubProducerClient( eventHubsConnectionString, - eventHubName + eventHubName, ); // serialize an object that matches the schema diff --git a/sdk/schemaregistry/schema-registry-json/src/errors.ts b/sdk/schemaregistry/schema-registry-json/src/errors.ts index 7ad8047979c9..ba316aad09c2 100644 --- a/sdk/schemaregistry/schema-registry-json/src/errors.ts +++ b/sdk/schemaregistry/schema-registry-json/src/errors.ts @@ -20,6 +20,6 @@ export function errorWithCause(message: string, cause: Error): Error { // see https://medium.com/ovrsea/power-up-your-node-js-debugging-and-error-handling-with-the-new-error-cause-feature-4136c563126a // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - { cause } + { cause }, ); } diff --git a/sdk/schemaregistry/schema-registry-json/src/jsonSerializer.ts b/sdk/schemaregistry/schema-registry-json/src/jsonSerializer.ts index 1a025d7f14ff..562aaf4f97a9 100644 --- a/sdk/schemaregistry/schema-registry-json/src/jsonSerializer.ts +++ b/sdk/schemaregistry/schema-registry-json/src/jsonSerializer.ts @@ -32,7 +32,7 @@ interface SchemaObject { function getSchemaObject(schema: string): SchemaObject { return wrapError( () => JSON.parse(schema), - `Parsing Json schema failed:\n\n\t${schema}\n\nSee 'cause' for more details.` + `Parsing Json schema failed:\n\n\t${schema}\n\nSee 'cause' for more details.`, ); } @@ -86,7 +86,7 @@ export class JsonSerializer { const entry = await this.getSchemaByDefinition(schema); const data = wrapError( () => encoder.encode(JSON.stringify(value)), - `Json serialization failed. See 'cause' for more details. Schema ID: ${entry.id}` + `Json serialization failed. See 'cause' for more details. Schema ID: ${entry.id}`, ); const contentType = `${jsonMimeType}+${entry.id}`; return this.messageAdapter @@ -120,13 +120,13 @@ export class JsonSerializer { const schema = await this.getSchemaById(schemaId); const returnedMessage = wrapError( () => JSON.parse(decoder.decode(data)), - `Json deserialization failed with schema ID (${schemaId}). See 'cause' for more details.` + `Json deserialization failed with schema ID (${schemaId}). See 'cause' for more details.`, ); const validate = options?.validateCallback; if (validate) { wrapError( () => validate(returnedMessage, schema), - `Json validation failed. See 'cause' for more details. Schema ID: ${schemaId}` + `Json validation failed. See 'cause' for more details. Schema ID: ${schemaId}`, ); } return returnedMessage; @@ -144,7 +144,7 @@ export class JsonSerializer { if (!schemaResponse.properties.format.match(/^json$/i)) { throw new Error( - `Schema with ID '${schemaResponse.properties.id}' has format '${schemaResponse.properties.format}', not 'json'.` + `Schema with ID '${schemaResponse.properties.id}' has format '${schemaResponse.properties.format}', not 'json'.`, ); } return this.cache(schemaResponse.definition, schemaId).schema; @@ -157,7 +157,7 @@ export class JsonSerializer { } if (!this.schemaGroup) { throw new Error( - "Schema group must have been specified in the constructor options when the client was created in order to serialize." + "Schema group must have been specified in the constructor options when the client was created in order to serialize.", ); } const schemaObj = getSchemaObject(definition); @@ -175,7 +175,7 @@ export class JsonSerializer { if ((e as any).statusCode === 404) { throw errorWithCause( `Schema '${description.name}' not found in registry group '${description.groupName}', or not found to have matching definition.`, - e as Error + e as Error, ); } else { throw e; @@ -190,7 +190,7 @@ export class JsonSerializer { this.cacheIdByDefinition.set(schema, id); this.cacheById.set(id, schema); logger.verbose( - `Cache entry added or updated. Total number of entries: ${this.cacheIdByDefinition.size}; Total schema length ${this.cacheIdByDefinition.calculatedSize}` + `Cache entry added or updated. Total number of entries: ${this.cacheIdByDefinition.size}; Total schema length ${this.cacheIdByDefinition.calculatedSize}`, ); return entry; } @@ -203,7 +203,7 @@ function getSchemaId(contentType: string): string { } if (contentTypeParts[0] !== jsonMimeType) { throw new Error( - `Received content of type ${contentTypeParts[0]} but an json serializer may only be used on content that is of '${jsonMimeType}' type` + `Received content of type ${contentTypeParts[0]} but an json serializer may only be used on content that is of '${jsonMimeType}' type`, ); } return contentTypeParts[1]; @@ -211,7 +211,7 @@ function getSchemaId(contentType: string): string { function convertMessage( message: MessageT, - adapter?: MessageAdapter + adapter?: MessageAdapter, ): MessageContent { const messageConsumer = adapter?.consume; if (messageConsumer) { @@ -220,7 +220,7 @@ function convertMessage( return message; } else { throw new Error( - `Expected either a message adapter to be provided to the serializer or the input message to have data and contentType fields` + `Expected either a message adapter to be provided to the serializer or the input message to have data and contentType fields`, ); } } diff --git a/sdk/schemaregistry/schema-registry-json/test/public/clients/eventHubs.ts b/sdk/schemaregistry/schema-registry-json/test/public/clients/eventHubs.ts index 901a2a793146..c62b3c67bab8 100644 --- a/sdk/schemaregistry/schema-registry-json/test/public/clients/eventHubs.ts +++ b/sdk/schemaregistry/schema-registry-json/test/public/clients/eventHubs.ts @@ -41,13 +41,13 @@ export function createEventHubsClient(settings: { producer = new EventHubBufferedProducerClient( eventHubsConnectionString, eventHubName, - recorder?.configureClientOptions(clientOptions) ?? clientOptions + recorder?.configureClientOptions(clientOptions) ?? clientOptions, ); consumer = new EventHubConsumerClient( EventHubConsumerClient.defaultConsumerGroupName, eventHubsConnectionString, eventHubName, - recorder?.configureClientOptions({}) ?? undefined + recorder?.configureClientOptions({}) ?? undefined, ); subscription = consumer.subscribe( { @@ -62,7 +62,7 @@ export function createEventHubsClient(settings: { { startPosition: alreadyEnqueued ? earliestEventPosition : latestEventPosition, skipParsingBodyAsJson, - } + }, ); initialized = true; }, diff --git a/sdk/schemaregistry/schema-registry-json/test/public/clients/mocked.ts b/sdk/schemaregistry/schema-registry-json/test/public/clients/mocked.ts index fb4135d9e54d..dda8469e03f8 100644 --- a/sdk/schemaregistry/schema-registry-json/test/public/clients/mocked.ts +++ b/sdk/schemaregistry/schema-registry-json/test/public/clients/mocked.ts @@ -11,7 +11,7 @@ import { isLiveMode } from "@azure-tools/test-recorder"; * @returns a client that can work in both live and playback modes */ export function createMockedMessagingClient( - createLiveClient: () => MessagingTestClient + createLiveClient: () => MessagingTestClient, ): MessagingTestClient { if (isLiveMode()) { return createLiveClient(); diff --git a/sdk/schemaregistry/schema-registry-json/test/public/errors.spec.ts b/sdk/schemaregistry/schema-registry-json/test/public/errors.spec.ts index 3ef057150b8f..981c953b189a 100644 --- a/sdk/schemaregistry/schema-registry-json/test/public/errors.spec.ts +++ b/sdk/schemaregistry/schema-registry-json/test/public/errors.spec.ts @@ -36,7 +36,7 @@ describe("Error scenarios", function () { data: new Uint8Array(1), contentType: "avro/binary+1234", }), - /avro\/binary.*application\/json/ + /avro\/binary.*application\/json/, ); }); it("a schema with non-json format", async function (this: Context) { @@ -47,7 +47,7 @@ describe("Error scenarios", function () { format: "notjson", groupName: testGroup, }), - /Invalid schema type for PUT request.*notjson/ + /Invalid schema type for PUT request.*notjson/, ); }); it("schema to serialize with is not found", async function () { @@ -70,7 +70,7 @@ describe("Error scenarios", function () { data: Uint8Array.from([0]), contentType: createContentType(randomUUID()), }), - /does not exist/ + /does not exist/, ); }); it("invalid schema at time of deserializing", async function (this: Context) { @@ -86,7 +86,7 @@ describe("Error scenarios", function () { name: "", favoriteNumber: 1, }, - testSchema + testSchema, ); await assertError( serializer.deserialize({ @@ -95,7 +95,7 @@ describe("Error scenarios", function () { }), { causeMessage: /Unexpected end of JSON input/, - } + }, ); }); it("not JSON schema", async function () { @@ -112,7 +112,7 @@ describe("Error scenarios", function () { serializer.serialize(null, null as any), { causeMessage: /invalid type: null/, - } + }, ); }); it("schema with invalid enum", async function () { @@ -145,7 +145,7 @@ describe("Error scenarios", function () { }), { message: /Unexpected token encountered when reading value for 'enum'/, - } + }, ); }); it("schema without an ID", async function () { @@ -157,11 +157,11 @@ describe("Error scenarios", function () { title: "Student", description: "A student in the class", type: "string", - }) + }), ), { message: /Schema must have an ID/, - } + }, ); }); it("schema with invalid ID", async function () { @@ -174,11 +174,11 @@ describe("Error scenarios", function () { JSON.stringify({ $schema: "https://json-schema.org/draft/2020-12/schema", $id: "https://example.com/product.schema.json", - }) + }), ), { message: /contain invalid characters/, - } + }, ); }); it("schema with invalid type", async function () { @@ -203,7 +203,7 @@ describe("Error scenarios", function () { }), { message: /Invalid JSON schema type: none/, - } + }, ); }); it("parsing json errors", async function () { @@ -213,14 +213,14 @@ describe("Error scenarios", function () { favoriteNumber: 1, name: "x", }, - testSchema + testSchema, ); assert.deepEqual( serializedValue.data, Uint8Array.from([ 123, 34, 102, 97, 118, 111, 114, 105, 116, 101, 78, 117, 109, 98, 101, 114, 34, 58, 49, 44, 34, 110, 97, 109, 101, 34, 58, 34, 120, 34, 125, - ]) + ]), ); serializedValue.data = Uint8Array.from([ 123, 34, 102, 97, 118, 111, 114, 105, 116, 101, 78, 117, 109, 98, 101, 114, diff --git a/sdk/schemaregistry/schema-registry-json/test/public/jsonSerializer.spec.ts b/sdk/schemaregistry/schema-registry-json/test/public/jsonSerializer.spec.ts index 449068355e52..6d0eda9d5f85 100644 --- a/sdk/schemaregistry/schema-registry-json/test/public/jsonSerializer.spec.ts +++ b/sdk/schemaregistry/schema-registry-json/test/public/jsonSerializer.spec.ts @@ -51,7 +51,7 @@ describe("JsonSerializer", async function () { data, contentType: createContentType(schemaId), }), - testValue + testValue, ); }); diff --git a/sdk/schemaregistry/schema-registry-json/test/public/utils/assertError.ts b/sdk/schemaregistry/schema-registry-json/test/public/utils/assertError.ts index 99d7208075e0..292433c5f3d1 100644 --- a/sdk/schemaregistry/schema-registry-json/test/public/utils/assertError.ts +++ b/sdk/schemaregistry/schema-registry-json/test/public/utils/assertError.ts @@ -8,7 +8,7 @@ export async function assertError( expectations: { causeMessage?: RegExp; message?: RegExp; - } = {} + } = {}, ): Promise { const { causeMessage, message } = expectations; try { diff --git a/sdk/schemaregistry/schema-registry-json/test/public/utils/mockedRegistryClient.ts b/sdk/schemaregistry/schema-registry-json/test/public/utils/mockedRegistryClient.ts index 987acb34bbea..4537812614ad 100644 --- a/sdk/schemaregistry/schema-registry-json/test/public/utils/mockedRegistryClient.ts +++ b/sdk/schemaregistry/schema-registry-json/test/public/utils/mockedRegistryClient.ts @@ -40,7 +40,7 @@ function createLiveTestRegistry(settings: { const client = new SchemaRegistryClient( getEnvVar("SCHEMAREGISTRY_JSON_FULLY_QUALIFIED_NAMESPACE"), createTestCredential(), - recorder?.configureClientOptions({}) + recorder?.configureClientOptions({}), ); return { getSchema: (id: string) => client.getSchema(id, getSchemaOptions), @@ -60,7 +60,7 @@ function createMockedTestRegistry(): SchemaRegistry { async function registerSchema( schema: UpdatedSchemaDescription, - _options?: RegisterSchemaOptions + _options?: RegisterSchemaOptions, ): Promise { let result = mapByContent.get(schema.definition); if (!result) { @@ -94,7 +94,7 @@ function createMockedTestRegistry(): SchemaRegistry { async function getSchemaProperties( schema: UpdatedSchemaDescription, - _options?: GetSchemaPropertiesOptions + _options?: GetSchemaPropertiesOptions, ): Promise { const storedSchema = mapByContent.get(schema.definition); if (!storedSchema) { @@ -119,7 +119,7 @@ export function createTestRegistry( getSchemaPropertiesOptions?: GetSchemaPropertiesOptions; getSchemaOptions?: GetSchemaOptions; recorder?: Recorder; - } = {} + } = {}, ): SchemaRegistry { const { neverLive = false, diff --git a/sdk/schemaregistry/schema-registry-json/test/public/utils/mockedSerializer.ts b/sdk/schemaregistry/schema-registry-json/test/public/utils/mockedSerializer.ts index 1ca92c815aca..f51e91372496 100644 --- a/sdk/schemaregistry/schema-registry-json/test/public/utils/mockedSerializer.ts +++ b/sdk/schemaregistry/schema-registry-json/test/public/utils/mockedSerializer.ts @@ -14,7 +14,7 @@ export interface CreateTestSerializerOptions { } export async function createTestSerializer( - options: CreateTestSerializerOptions = {} + options: CreateTestSerializerOptions = {}, ): Promise> { const { serializerOptions = { groupName: testGroup }, diff --git a/sdk/schemaregistry/schema-registry-json/test/public/validation.spec.ts b/sdk/schemaregistry/schema-registry-json/test/public/validation.spec.ts index 0b31071fe961..f2853db4a136 100644 --- a/sdk/schemaregistry/schema-registry-json/test/public/validation.spec.ts +++ b/sdk/schemaregistry/schema-registry-json/test/public/validation.spec.ts @@ -76,7 +76,7 @@ describe("Deserialize Validation", function () { data: encoder.encode(JSON.stringify(data)), contentType: createContentType(id), }, - skipValidationOption + skipValidationOption, ); assert.deepEqual(data, deserialedData); }); @@ -91,9 +91,9 @@ describe("Deserialize Validation", function () { data: encoder.encode(JSON.stringify(data)), contentType: createContentType(id), }, - validateWithAjvOption + validateWithAjvOption, ), - data + data, ); }); @@ -107,12 +107,12 @@ describe("Deserialize Validation", function () { data: encoder.encode(JSON.stringify(data)), contentType: createContentType(id), }, - validateWithAjvOption + validateWithAjvOption, ), { message: /Json validation failed/, causeMessage: /must have required property 'name'/, - } + }, ); }); @@ -127,12 +127,12 @@ describe("Deserialize Validation", function () { data: encoder.encode(JSON.stringify(data)), contentType: createContentType(id), }, - validateWithAjvOption + validateWithAjvOption, ), { message: /Json validation failed/, causeMessage: /must be integer/, - } + }, ); }); }); @@ -184,12 +184,12 @@ describe("Validation Error", function () { data: encoder.encode(JSON.stringify(testData)), contentType: createContentType(id), }, - validateWithAjvOption + validateWithAjvOption, ), { message: /Json validation failed/, causeMessage: /must be boolean/, - } + }, ); }); @@ -210,12 +210,12 @@ describe("Validation Error", function () { data: encoder.encode(JSON.stringify(testData)), contentType: createContentType(id), }, - validateWithAjvOption + validateWithAjvOption, ), { message: /Json validation failed/, causeMessage: /must be string/, - } + }, ); }); @@ -236,12 +236,12 @@ describe("Validation Error", function () { data: encoder.encode(JSON.stringify(testData)), contentType: createContentType(id), }, - validateWithAjvOption + validateWithAjvOption, ), { message: /Json validation failed/, causeMessage: /must be integer/, - } + }, ); }); @@ -262,12 +262,12 @@ describe("Validation Error", function () { data: encoder.encode(JSON.stringify(testData)), contentType: createContentType(id), }, - validateWithAjvOption + validateWithAjvOption, ), { message: /Json validation failed/, causeMessage: /must be null/, - } + }, ); }); @@ -288,12 +288,12 @@ describe("Validation Error", function () { data: encoder.encode(JSON.stringify(testData)), contentType: createContentType(id), }, - validateWithAjvOption + validateWithAjvOption, ), { message: /Json validation failed/, causeMessage: /must be number/, - } + }, ); }); @@ -314,12 +314,12 @@ describe("Validation Error", function () { data: encoder.encode(JSON.stringify(testData)), contentType: createContentType(id), }, - validateWithAjvOption + validateWithAjvOption, ), { message: /Json validation failed/, causeMessage: /must be array/, - } + }, ); }); @@ -345,12 +345,12 @@ describe("Validation Error", function () { data: encoder.encode(JSON.stringify(testData)), contentType: createContentType(id), }, - validateWithAjvOption + validateWithAjvOption, ), { message: /Json validation failed/, causeMessage: /must be object/, - } + }, ); }); }); diff --git a/sdk/schemaregistry/schema-registry-json/test/public/withMessagingClients.spec.ts b/sdk/schemaregistry/schema-registry-json/test/public/withMessagingClients.spec.ts index 733d146e56d6..b1de98a4d694 100644 --- a/sdk/schemaregistry/schema-registry-json/test/public/withMessagingClients.spec.ts +++ b/sdk/schemaregistry/schema-registry-json/test/public/withMessagingClients.spec.ts @@ -43,7 +43,7 @@ matrix([[true, false]] as const, async (skipParsingJson: boolean) => { alreadyEnqueued, eventHubName: alreadyEnqueued ? inputEventHubName : eventHubName, eventHubsConnectionString, - }) + }), ); client.initialize({ skipParsingBodyAsJson, @@ -107,7 +107,7 @@ matrix([[true, false]] as const, async (skipParsingJson: boolean) => { if (errors.length > 0) { throw new Error( "The following error(s) occurred:\n" + - errors.map(({ error, language }) => `${language}:\t${error.message}`).join("\n") + errors.map(({ error, language }) => `${language}:\t${error.message}`).join("\n"), ); } } diff --git a/sdk/schemaregistry/schema-registry/package.json b/sdk/schemaregistry/schema-registry/package.json index 681e12360c90..821b4ed182d9 100644 --- a/sdk/schemaregistry/schema-registry/package.json +++ b/sdk/schemaregistry/schema-registry/package.json @@ -15,11 +15,11 @@ "build:samples": "echo Obsolete.", "build:test": "npm run bundle", "build": "npm run clean && npm run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -118,7 +118,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "typescript": "~5.2.0", "ts-node": "^10.0.0", diff --git a/sdk/schemaregistry/schema-registry/samples-dev/getSchemaByVersion.ts b/sdk/schemaregistry/schema-registry/samples-dev/getSchemaByVersion.ts index 1b10b634a712..1fc6ba6036ab 100644 --- a/sdk/schemaregistry/schema-registry/samples-dev/getSchemaByVersion.ts +++ b/sdk/schemaregistry/schema-registry/samples-dev/getSchemaByVersion.ts @@ -55,7 +55,7 @@ export async function main() { // Register a schema and get back its ID and version. const { id, version } = await client.registerSchema(schemaDescription); console.log( - `Registered schema with the following properties:\n- ID=${id}\n- Version: ${version}` + `Registered schema with the following properties:\n- ID=${id}\n- Version: ${version}`, ); // Get definition of existing schema by its version diff --git a/sdk/schemaregistry/schema-registry/samples-dev/schemaRegistrySample.ts b/sdk/schemaregistry/schema-registry/samples-dev/schemaRegistrySample.ts index b39a1f741f0b..0a61650107c0 100644 --- a/sdk/schemaregistry/schema-registry/samples-dev/schemaRegistrySample.ts +++ b/sdk/schemaregistry/schema-registry/samples-dev/schemaRegistrySample.ts @@ -55,7 +55,7 @@ export async function main() { // Register a schema and get back its ID. const { id, version } = await client.registerSchema(schemaDescription); console.log( - `Registered schema with the following properties:\n- ID=${id}\n- Version: ${version}` + `Registered schema with the following properties:\n- ID=${id}\n- Version: ${version}`, ); // Get definition of existing schema by its ID diff --git a/sdk/schemaregistry/schema-registry/src/conversions.ts b/sdk/schemaregistry/schema-registry/src/conversions.ts index 1133dd14a02f..ccb87553be33 100644 --- a/sdk/schemaregistry/schema-registry/src/conversions.ts +++ b/sdk/schemaregistry/schema-registry/src/conversions.ts @@ -61,7 +61,7 @@ export function buildContentType(format: string): string { * @internal */ export function convertSchemaIdResponse( - schemaFormat: string + schemaFormat: string, ): (response: GeneratedSchemaIdResponse) => SchemaProperties { return (response: GeneratedSchemaIdResponse): SchemaProperties => { return { diff --git a/sdk/schemaregistry/schema-registry/src/getSchemaDefinition.browser.ts b/sdk/schemaregistry/schema-registry/src/getSchemaDefinition.browser.ts index 6483382b0a39..f3c5d8745e02 100644 --- a/sdk/schemaregistry/schema-registry/src/getSchemaDefinition.browser.ts +++ b/sdk/schemaregistry/schema-registry/src/getSchemaDefinition.browser.ts @@ -10,7 +10,7 @@ export async function getSchemaDefinition< T extends { blobBody?: Promise; readableStreamBody?: NodeJS.ReadableStream; - } + }, >(response: T): Promise { return blobToString(await response.blobBody!); } diff --git a/sdk/schemaregistry/schema-registry/src/getSchemaDefinition.ts b/sdk/schemaregistry/schema-registry/src/getSchemaDefinition.ts index d3079b20ad0a..8571a777817f 100644 --- a/sdk/schemaregistry/schema-registry/src/getSchemaDefinition.ts +++ b/sdk/schemaregistry/schema-registry/src/getSchemaDefinition.ts @@ -10,7 +10,7 @@ export async function getSchemaDefinition< T extends { blobBody?: Promise; readableStreamBody?: NodeJS.ReadableStream; - } + }, >(response: T): Promise { return streamToString(response.readableStreamBody!); } diff --git a/sdk/schemaregistry/schema-registry/src/models.ts b/sdk/schemaregistry/schema-registry/src/models.ts index 32ab0a6f3d5f..b4aa70708d2c 100644 --- a/sdk/schemaregistry/schema-registry/src/models.ts +++ b/sdk/schemaregistry/schema-registry/src/models.ts @@ -110,7 +110,7 @@ export interface SchemaRegistry { */ registerSchema( schema: SchemaDescription, - options?: RegisterSchemaOptions + options?: RegisterSchemaOptions, ): Promise; /** @@ -122,7 +122,7 @@ export interface SchemaRegistry { */ getSchemaProperties( schema: SchemaDescription, - options?: GetSchemaPropertiesOptions + options?: GetSchemaPropertiesOptions, ): Promise; /** diff --git a/sdk/schemaregistry/schema-registry/src/schemaRegistryClient.ts b/sdk/schemaregistry/schema-registry/src/schemaRegistryClient.ts index 2b405cbcc1d9..ebe3e6ca69c5 100644 --- a/sdk/schemaregistry/schema-registry/src/schemaRegistryClient.ts +++ b/sdk/schemaregistry/schema-registry/src/schemaRegistryClient.ts @@ -46,7 +46,7 @@ export class SchemaRegistryClient implements SchemaRegistry { constructor( fullyQualifiedNamespace: string, credential: TokenCredential, - options: SchemaRegistryClientOptions = {} + options: SchemaRegistryClientOptions = {}, ) { this.fullyQualifiedNamespace = fullyQualifiedNamespace; @@ -87,7 +87,7 @@ export class SchemaRegistryClient implements SchemaRegistry { */ registerSchema( schema: SchemaDescription, - options: RegisterSchemaOptions = {} + options: RegisterSchemaOptions = {}, ): Promise { const { groupName, name: schemaName, definition: schemaContent, format } = schema; return this._tracing.withSpan( @@ -96,7 +96,7 @@ export class SchemaRegistryClient implements SchemaRegistry { (updatedOptions) => this._client.schema .register(groupName, schemaName, buildContentType(format), schemaContent, updatedOptions) - .then(convertSchemaIdResponse(format)) + .then(convertSchemaIdResponse(format)), ); } @@ -109,7 +109,7 @@ export class SchemaRegistryClient implements SchemaRegistry { */ getSchemaProperties( schema: SchemaDescription, - options: GetSchemaPropertiesOptions = {} + options: GetSchemaPropertiesOptions = {}, ): Promise { const { groupName, name: schemaName, definition: schemaContent, format } = schema; return this._tracing.withSpan( @@ -122,9 +122,9 @@ export class SchemaRegistryClient implements SchemaRegistry { schemaName, buildContentType(format), schemaContent, - updatedOptions + updatedOptions, ) - .then(convertSchemaIdResponse(format)) + .then(convertSchemaIdResponse(format)), ); } @@ -168,21 +168,21 @@ export class SchemaRegistryClient implements SchemaRegistry { name: string, groupName: string, version: number, - options?: GetSchemaOptions + options?: GetSchemaOptions, ): Promise; // implementation getSchema( nameOrId: string, groupNameOrOptions?: string | GetSchemaOptions, version?: number, - options: GetSchemaOptions = {} + options: GetSchemaOptions = {}, ): Promise { if (typeof groupNameOrOptions !== "string" && version === undefined) { return this._tracing.withSpan( "SchemaRegistryClient.getSchema", groupNameOrOptions ?? {}, (updatedOptions) => - this._client.schema.getById(nameOrId, updatedOptions).then(convertSchemaResponse) + this._client.schema.getById(nameOrId, updatedOptions).then(convertSchemaResponse), ); } return this._tracing.withSpan( @@ -194,9 +194,9 @@ export class SchemaRegistryClient implements SchemaRegistry { groupNameOrOptions as string, nameOrId, version as number, - updatedOptions + updatedOptions, ) - .then(convertSchemaResponse) + .then(convertSchemaResponse), ); } } diff --git a/sdk/schemaregistry/schema-registry/test/public/schemaRegistry.spec.ts b/sdk/schemaregistry/schema-registry/test/public/schemaRegistry.spec.ts index f194adcfd401..0ebe136a2f18 100644 --- a/sdk/schemaregistry/schema-registry/test/public/schemaRegistry.spec.ts +++ b/sdk/schemaregistry/schema-registry/test/public/schemaRegistry.spec.ts @@ -34,7 +34,7 @@ const errorOptions = { function assertIsValidSchemaProperties( schemaProperties: SchemaProperties, - expectedSerializationType: Format + expectedSerializationType: Format, ): asserts schemaProperties { assert.isNotEmpty(schemaProperties.id); assert.equal(schemaProperties.format, expectedSerializationType); @@ -54,7 +54,7 @@ async function isRejected( messagePattern?: RegExp; statusCode?: number; errorCode?: string; - } + }, ): Promise { try { await promise; @@ -215,7 +215,7 @@ describe("SchemaRegistryClient", function () { statusCode: 415, messagePattern: /not-valid/, errorCode: "InvalidSchemaType", - } + }, ); }); @@ -231,7 +231,7 @@ describe("SchemaRegistryClient", function () { statusCode: 415, messagePattern: /not-valid/, errorCode: "InvalidSchemaType", - } + }, ); }); @@ -242,7 +242,7 @@ describe("SchemaRegistryClient", function () { statusCode: 404, messagePattern: /does not exist/, errorCode: "ItemNotFound", - } + }, ); }); @@ -287,7 +287,7 @@ describe("SchemaRegistryClient", function () { onResponse: (rawResponse: { status: number }) => { assert.equal(rawResponse.status, 200); }, - } + }, ); assertIsValidSchema(found, format); assert.equal(found.definition, schema.definition); @@ -334,6 +334,6 @@ describe("SchemaRegistryClient", function () { assertIsValidSchemaProperties(schemaProperties, format); }); }); - } + }, ); }); diff --git a/sdk/schemaregistry/schema-registry/test/public/utils/recordedClient.ts b/sdk/schemaregistry/schema-registry/test/public/utils/recordedClient.ts index 88f6d3d85f48..c65d9d9b57f5 100644 --- a/sdk/schemaregistry/schema-registry/test/public/utils/recordedClient.ts +++ b/sdk/schemaregistry/schema-registry/test/public/utils/recordedClient.ts @@ -36,7 +36,7 @@ export function createRecordedClient(inputs: { const client = new SchemaRegistryClient( assertEnvironmentVariable(getFQNSVarName(format)), credential, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); return client; } diff --git a/sdk/search/perf-tests/search-documents/package.json b/sdk/search/perf-tests/search-documents/package.json index 1be689786773..a6456354bd09 100644 --- a/sdk/search/perf-tests/search-documents/package.json +++ b/sdk/search/perf-tests/search-documents/package.json @@ -16,11 +16,11 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -29,9 +29,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/search/perf-tests/search-documents/test/core/searchDocumentsBase.spec.ts b/sdk/search/perf-tests/search-documents/test/core/searchDocumentsBase.spec.ts index ba111d5c0adb..162660250809 100644 --- a/sdk/search/perf-tests/search-documents/test/core/searchDocumentsBase.spec.ts +++ b/sdk/search/perf-tests/search-documents/test/core/searchDocumentsBase.spec.ts @@ -14,7 +14,7 @@ export interface SearchDocumentsTestOptions { } export abstract class SearchDocumentsBase< - TOptions = Record + TOptions = Record, > extends PerfTest { searchIndexClient: SearchIndexClient; searchClient: SearchClient; diff --git a/sdk/search/perf-tests/search-documents/test/index.spec.ts b/sdk/search/perf-tests/search-documents/test/index.spec.ts index ab3bbe8c4a62..271e56b7544b 100644 --- a/sdk/search/perf-tests/search-documents/test/index.spec.ts +++ b/sdk/search/perf-tests/search-documents/test/index.spec.ts @@ -14,7 +14,7 @@ const perfProgram = createPerfProgram( AutoCompleteTest, IndexDocumentsTest, SearchDocumentsTest, - SuggestTest + SuggestTest, ); perfProgram.run(); diff --git a/sdk/search/perf-tests/search-documents/test/indexDocumentsTest.spec.ts b/sdk/search/perf-tests/search-documents/test/indexDocumentsTest.spec.ts index 0af32d86fb0a..0b830dfecef9 100644 --- a/sdk/search/perf-tests/search-documents/test/indexDocumentsTest.spec.ts +++ b/sdk/search/perf-tests/search-documents/test/indexDocumentsTest.spec.ts @@ -24,7 +24,7 @@ export class IndexDocumentsTest extends SearchDocumentsBase { for (let i = 0; i < this.hotels.length; i++) { this.hotels[i].hotelId = Math.floor( - Math.random() * (this.hotels.length * 2 - this.hotels.length + 1) + this.hotels.length + Math.random() * (this.hotels.length * 2 - this.hotels.length + 1) + this.hotels.length, ).toString(); } const batch: IndexDocumentsBatch = new IndexDocumentsBatch(); diff --git a/sdk/search/search-documents/package.json b/sdk/search/search-documents/package.json index 79f8a2cb6662..2483086afe71 100644 --- a/sdk/search/search-documents/package.json +++ b/sdk/search/search-documents/package.json @@ -14,10 +14,10 @@ "execute:samples": "dev-tool samples run samples-dev", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/Service.md & autorest --typescript swagger/Data.md & wait", "generate:embeddings": "ts-node scripts/generateSampleEmbeddings.ts", "integration-test:browser": "dev-tool run test:browser", @@ -123,7 +123,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "ts-node": "^10.0.0", diff --git a/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushSize.ts b/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushSize.ts index 6d8f7d22509f..0141cc035720 100644 --- a/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushSize.ts +++ b/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushSize.ts @@ -70,7 +70,7 @@ async function main() { const searchClient: SearchClient = new SearchClient( endpoint, TEST_INDEX_NAME, - credential + credential, ); const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); @@ -83,7 +83,7 @@ async function main() { documentKeyRetriever, { autoFlush: true, - } + }, ); bufferedClient.on("batchAdded", (response: any) => { diff --git a/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushTimer.ts b/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushTimer.ts index 9b4c33e51157..db58ae2cd0fb 100644 --- a/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushTimer.ts +++ b/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushTimer.ts @@ -42,7 +42,7 @@ export async function main() { const searchClient: SearchClient = new SearchClient( endpoint, TEST_INDEX_NAME, - credential + credential, ); const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); @@ -55,7 +55,7 @@ export async function main() { documentKeyRetriever, { autoFlush: true, - } + }, ); bufferedClient.on("batchAdded", (response: any) => { diff --git a/sdk/search/search-documents/samples-dev/bufferedSenderManualFlush.ts b/sdk/search/search-documents/samples-dev/bufferedSenderManualFlush.ts index 6c77acff8e2e..30cdea51244b 100644 --- a/sdk/search/search-documents/samples-dev/bufferedSenderManualFlush.ts +++ b/sdk/search/search-documents/samples-dev/bufferedSenderManualFlush.ts @@ -39,7 +39,7 @@ export async function main() { const searchClient: SearchClient = new SearchClient( endpoint, TEST_INDEX_NAME, - credential + credential, ); const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); @@ -52,7 +52,7 @@ export async function main() { documentKeyRetriever, { autoFlush: false, - } + }, ); bufferedClient.on("batchAdded", (response: any) => { diff --git a/sdk/search/search-documents/samples-dev/dataSourceConnectionOperations.ts b/sdk/search/search-documents/samples-dev/dataSourceConnectionOperations.ts index 49c45e886cc3..e534e770a04a 100644 --- a/sdk/search/search-documents/samples-dev/dataSourceConnectionOperations.ts +++ b/sdk/search/search-documents/samples-dev/dataSourceConnectionOperations.ts @@ -21,7 +21,7 @@ const dataSourceConnectionName = "example-ds-connection-sample-1"; async function createDataSourceConnection( dataSourceConnectionName: string, - client: SearchIndexerClient + client: SearchIndexerClient, ) { console.log(`Creating DS Connection Operation`); const dataSourceConnection: SearchIndexerDataSourceConnection = { @@ -38,12 +38,11 @@ async function createDataSourceConnection( async function getAndUpdateDataSourceConnection( dataSourceConnectionName: string, - client: SearchIndexerClient + client: SearchIndexerClient, ) { console.log(`Get And Update DS Connection Operation`); - const ds: SearchIndexerDataSourceConnection = await client.getDataSourceConnection( - dataSourceConnectionName - ); + const ds: SearchIndexerDataSourceConnection = + await client.getDataSourceConnection(dataSourceConnectionName); ds.container.name = "Listings_5K_KingCounty_WA"; console.log(`Updating Container Name of Datasource Connection ${dataSourceConnectionName}`); await client.createOrUpdateDataSourceConnection(ds); @@ -72,7 +71,7 @@ async function listDataSourceConnections(client: SearchIndexerClient) { async function deleteDataSourceConnection( dataSourceConnectionName: string, - client: SearchIndexerClient + client: SearchIndexerClient, ) { console.log(`Deleting DS Connection Operation`); await client.deleteDataSourceConnection(dataSourceConnectionName); diff --git a/sdk/search/search-documents/samples-dev/indexOperations.ts b/sdk/search/search-documents/samples-dev/indexOperations.ts index 9ba3e3da83b9..92d47b8680a2 100644 --- a/sdk/search/search-documents/samples-dev/indexOperations.ts +++ b/sdk/search/search-documents/samples-dev/indexOperations.ts @@ -109,10 +109,10 @@ async function getServiceStatistics(client: SearchIndexClient) { console.log(`\tMax Fields Per Index: ${limits.maxFieldsPerIndex}`); console.log(`\tMax Field Nesting Depth Per Index: ${limits.maxFieldNestingDepthPerIndex}`); console.log( - `\tMax Complex Collection Fields Per Index: ${limits.maxComplexCollectionFieldsPerIndex}` + `\tMax Complex Collection Fields Per Index: ${limits.maxComplexCollectionFieldsPerIndex}`, ); console.log( - `\tMax Complex Objects In Collections Per Document: ${limits.maxComplexObjectsInCollectionsPerDocument}` + `\tMax Complex Objects In Collections Per Document: ${limits.maxComplexObjectsInCollectionsPerDocument}`, ); } diff --git a/sdk/search/search-documents/samples-dev/indexerOperations.ts b/sdk/search/search-documents/samples-dev/indexerOperations.ts index 1e61c2374071..2ab6b5b43696 100644 --- a/sdk/search/search-documents/samples-dev/indexerOperations.ts +++ b/sdk/search/search-documents/samples-dev/indexerOperations.ts @@ -50,7 +50,7 @@ async function getIndexerStatus(indexerName: string, client: SearchIndexerClient console.log(`Limits`); console.log(`******`); console.log( - `MaxDocumentContentCharactersToExtract: ${indexerStatus.limits.maxDocumentContentCharactersToExtract}` + `MaxDocumentContentCharactersToExtract: ${indexerStatus.limits.maxDocumentContentCharactersToExtract}`, ); console.log(`MaxDocumentExtractionSize: ${indexerStatus.limits.maxDocumentExtractionSize}`); console.log(`MaxRunTime: ${indexerStatus.limits.maxRunTime}`); diff --git a/sdk/search/search-documents/samples-dev/searchClientOperations.ts b/sdk/search/search-documents/samples-dev/searchClientOperations.ts index 4949728c3e32..df00cd6b8bc4 100644 --- a/sdk/search/search-documents/samples-dev/searchClientOperations.ts +++ b/sdk/search/search-documents/samples-dev/searchClientOperations.ts @@ -40,7 +40,7 @@ async function main() { const searchClient: SearchClient = new SearchClient( endpoint, TEST_INDEX_NAME, - credential + credential, ); const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); diff --git a/sdk/search/search-documents/samples-dev/vectorSearch.ts b/sdk/search/search-documents/samples-dev/vectorSearch.ts index 7f1771a94898..1fe322bde927 100644 --- a/sdk/search/search-documents/samples-dev/vectorSearch.ts +++ b/sdk/search/search-documents/samples-dev/vectorSearch.ts @@ -36,7 +36,7 @@ async function main() { const searchClient: SearchClient = new SearchClient( endpoint, TEST_INDEX_NAME, - credential + credential, ); const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); diff --git a/sdk/search/search-documents/src/indexModels.ts b/sdk/search/search-documents/src/indexModels.ts index f1e7796e7463..273693f2c130 100644 --- a/sdk/search/search-documents/src/indexModels.ts +++ b/sdk/search/search-documents/src/indexModels.ts @@ -89,7 +89,7 @@ export type SearchIndexingBufferedSenderFlushDocumentsOptions = OperationOptions */ export interface GetDocumentOptions< TModel extends object, - TFields extends SelectFields = SelectFields + TFields extends SelectFields = SelectFields, > extends OperationOptions { /** * List of field names to retrieve for the document; Any field not retrieved will be missing from @@ -156,14 +156,14 @@ export type AutocompleteOptions = OperationOptions & */ export type SearchOptions< TModel extends object, - TFields extends SelectFields = SelectFields + TFields extends SelectFields = SelectFields, > = OperationOptions & SearchRequestOptions; /** * Options for retrieving suggestions based on the searchText. */ export type SuggestOptions< TModel extends object, - TFields extends SelectFields = SelectFields + TFields extends SelectFields = SelectFields, > = OperationOptions & SuggestRequest; /** @@ -173,7 +173,7 @@ export type SuggestOptions< */ export type SearchIterator< TModel extends object, - TFields extends SelectFields = SelectFields + TFields extends SelectFields = SelectFields, > = PagedAsyncIterableIterator< SearchResult, SearchDocumentsPageResult, @@ -397,7 +397,7 @@ export interface SearchRequest { */ export interface SearchRequestOptions< TModel extends object, - TFields extends SelectFields = SelectFields + TFields extends SelectFields = SelectFields, > { /** * A value that specifies whether to fetch the total count of results. Default is false. Setting @@ -569,7 +569,7 @@ export interface SearchRequestOptions< */ export type SearchResult< TModel extends object, - TFields extends SelectFields = SelectFields + TFields extends SelectFields = SelectFields, > = { /** * The relevance score of the document compared to other documents returned by the query. @@ -649,7 +649,7 @@ export interface SearchDocumentsResultBase { */ export interface SearchDocumentsResult< TModel extends object, - TFields extends SelectFields = SelectFields + TFields extends SelectFields = SelectFields, > extends SearchDocumentsResultBase { /** * The sequence of results returned by the query. @@ -663,7 +663,7 @@ export interface SearchDocumentsResult< */ export interface SearchDocumentsPageResult< TModel extends object, - TFields extends SelectFields = SelectFields + TFields extends SelectFields = SelectFields, > extends SearchDocumentsResultBase { /** * The sequence of results returned by the query. @@ -682,7 +682,7 @@ export interface SearchDocumentsPageResult< */ export interface SuggestRequest< TModel extends object, - TFields extends SelectFields = SelectFields + TFields extends SelectFields = SelectFields, > { /** * An OData expression that filters the documents considered for suggestions. @@ -745,7 +745,7 @@ export interface SuggestRequest< */ export type SuggestResult< TModel extends object, - TFields extends SelectFields = SelectFields + TFields extends SelectFields = SelectFields, > = { /** * The text of the suggestion result. @@ -760,7 +760,7 @@ export type SuggestResult< */ export interface SuggestDocumentsResult< TModel extends object, - TFields extends SelectFields = SelectFields + TFields extends SelectFields = SelectFields, > { /** * The sequence of results returned by the query. @@ -849,8 +849,8 @@ export type IndexDocumentsAction = { export type SelectArray = [string] extends [TFields] ? readonly TFields[] : (() => T extends TFields ? true : false) extends () => T extends never ? true : false - ? readonly string[] - : readonly TFields[]; + ? readonly string[] + : readonly TFields[]; /** * If `TModel` is an untyped object, an untyped string array @@ -883,106 +883,108 @@ export type SelectFields = (() => T extends TModel ? true : false) extends () => T extends never ? true : false ? string : (() => T extends TModel ? true : false) extends () => T extends any ? true : false - ? string - : (() => T extends TModel ? true : false) extends () => T extends object ? true : false - ? string - : // If T is an array, allow selecting from fields in the array's element type - TModel extends Array - ? // Allow selecting fields only from elements which are objects - Elem extends object - ? SelectFields - : never - : { - // Only consider string keys - [Key in keyof TModel]: Key extends string - ? NonNullable extends object - ? NonNullable extends ExcludedODataTypes - ? // Excluded, so don't recur - Key - : // Extract subpaths from T[Key] - SelectFields> extends infer NextPaths - ? // This check is required to avoid distributing `never` over the condition - (() => T extends NextPaths ? true : false) extends () => T extends never - ? true - : false - ? Key - : NextPaths extends string - ? Key | `${Key}/${NextPaths}` - : Key - : never - : // Not an object, so can't recur - Key - : never; - }[keyof TModel & string] & - // Filter out undefined properties - string; + ? string + : (() => T extends TModel ? true : false) extends () => T extends object ? true : false + ? string + : // If T is an array, allow selecting from fields in the array's element type + TModel extends Array + ? // Allow selecting fields only from elements which are objects + Elem extends object + ? SelectFields + : never + : { + // Only consider string keys + [Key in keyof TModel]: Key extends string + ? NonNullable extends object + ? NonNullable extends ExcludedODataTypes + ? // Excluded, so don't recur + Key + : // Extract subpaths from T[Key] + SelectFields> extends infer NextPaths + ? // This check is required to avoid distributing `never` over the condition + (() => T extends NextPaths ? true : false) extends < + T, + >() => T extends never ? true : false + ? Key + : NextPaths extends string + ? Key | `${Key}/${NextPaths}` + : Key + : never + : // Not an object, so can't recur + Key + : never; + }[keyof TModel & string] & + // Filter out undefined properties + string; /** * Deeply pick fields of T using valid Cognitive Search OData $select * paths. */ export type SearchPick> = (< - T + T, >() => T extends TModel ? true : false) extends () => T extends object ? true : false ? // Picking from an untyped object should return `object` TModel : // If paths is any or never, yield the original type - (() => T extends TFields ? true : false) extends () => T extends any ? true : false - ? TModel - : (() => T extends TFields ? true : false) extends () => T extends never ? true : false - ? TModel - : // We're going to get a union of individual interfaces for each field in T that's selected, so convert that to an intersection. - UnionToIntersection< - // Paths is a union or single string type, so if it's a union it will be _distributed_ over this conditional. - // Fortunately, template literal types are not greedy, so we can infer the field name easily. - TFields extends `${infer FieldName}/${infer RestPaths}` - ? // Symbols and numbers are invalid types for field names - FieldName extends keyof TModel & string - ? NonNullable extends Array - ? Elem extends object - ? // Extends clause is necessary to refine the constraint of RestPaths - RestPaths extends SelectFields - ? // Narrow the type of every element in the array - { - [Key in keyof TModel as Key & FieldName]: Array>; - } - : // Unreachable by construction - never - : // Don't recur on arrays of non-object types - never - : NonNullable extends object - ? // Recur :) - { - [Key in keyof TModel as Key & FieldName]: RestPaths extends SelectFields< - TModel[Key] & { - // This empty intersection fixes `T[Key]` not being narrowed to an object type in older versions of TS - } - > - ? - | SearchPick< - TModel[Key] & { - // Ditto - }, - RestPaths - > - | Extract + (() => T extends TFields ? true : false) extends () => T extends any ? true : false + ? TModel + : (() => T extends TFields ? true : false) extends () => T extends never ? true : false + ? TModel + : // We're going to get a union of individual interfaces for each field in T that's selected, so convert that to an intersection. + UnionToIntersection< + // Paths is a union or single string type, so if it's a union it will be _distributed_ over this conditional. + // Fortunately, template literal types are not greedy, so we can infer the field name easily. + TFields extends `${infer FieldName}/${infer RestPaths}` + ? // Symbols and numbers are invalid types for field names + FieldName extends keyof TModel & string + ? NonNullable extends Array + ? Elem extends object + ? // Extends clause is necessary to refine the constraint of RestPaths + RestPaths extends SelectFields + ? // Narrow the type of every element in the array + { + [Key in keyof TModel as Key & FieldName]: Array< + SearchPick + >; + } + : // Unreachable by construction + never + : // Don't recur on arrays of non-object types + never + : NonNullable extends object + ? // Recur :) + { + [Key in keyof TModel as Key & FieldName]: RestPaths extends SelectFields< + TModel[Key] & { + // This empty intersection fixes `T[Key]` not being narrowed to an object type in older versions of TS + } + > + ? + | SearchPick< + TModel[Key] & { + // Ditto + }, + RestPaths + > + | Extract + : // Unreachable by construction + never; + } : // Unreachable by construction - never; - } - : // Unreachable by construction - never - : // Ignore symbols and numbers - never - : // Otherwise, capture the paths that are simple keys of T itself - TFields extends keyof TModel - ? Pick | Extract - : never - > & { - // This useless intersection actually prevents the TypeScript language server from - // expanding the definition of SearchPick in IntelliSense. Since we're - // sure the type always yields an object, this intersection does not alter the type - // at all, only the display string of the type. - }; + never + : // Ignore symbols and numbers + never + : // Otherwise, capture the paths that are simple keys of T itself + TFields extends keyof TModel + ? Pick | Extract + : never + > & { + // This useless intersection actually prevents the TypeScript language server from + // expanding the definition of SearchPick in IntelliSense. Since we're + // sure the type always yields an object, this intersection does not alter the type + // at all, only the display string of the type. + }; export type ExtractDocumentKey = { [K in keyof TModel as TModel[K] extends string | undefined ? K : never]: TModel[K]; @@ -993,47 +995,51 @@ export type ExtractDocumentKey = { */ export type NarrowedModel< TModel extends object, - TFields extends SelectFields = SelectFields + TFields extends SelectFields = SelectFields, > = // If the model isn't specified, the type is the same as the input type (() => T extends TModel ? true : false) extends () => T extends never ? true : false ? TModel : (() => T extends TModel ? true : false) extends () => T extends object ? true : false - ? TModel - : (() => T extends TModel ? true : false) extends () => T extends any ? true : false - ? TModel - : (() => T extends TModel ? true : false) extends () => T extends unknown ? true : false - ? TModel - : (() => T extends TFields ? true : false) extends () => T extends never ? true : false - ? // If fields aren't specified, this object can't exist - never - : (() => T extends TFields ? true : false) extends () => T extends SelectFields - ? true - : false - ? // Avoid calculating the narrowed type if every field is specified - TModel - : SearchPick; + ? TModel + : (() => T extends TModel ? true : false) extends () => T extends any ? true : false + ? TModel + : (() => T extends TModel ? true : false) extends () => T extends unknown + ? true + : false + ? TModel + : (() => T extends TFields ? true : false) extends () => T extends never + ? true + : false + ? // If fields aren't specified, this object can't exist + never + : (() => T extends TFields ? true : false) extends < + T, + >() => T extends SelectFields ? true : false + ? // Avoid calculating the narrowed type if every field is specified + TModel + : SearchPick; export type SuggestNarrowedModel< TModel extends object, - TFields extends SelectFields = SelectFields + TFields extends SelectFields = SelectFields, > = (() => T extends TModel ? true : false) extends () => T extends never ? true : false ? TModel : (() => T extends TModel ? true : false) extends () => T extends object ? true : false - ? TModel - : (() => T extends TFields ? true : false) extends () => T extends never ? true : false - ? // Filter nullable (i.e. non-key) properties from the model, as they're not returned by the - // service by default - keyof ExtractDocumentKey extends never - ? // Return the original model if none of the properties are non-nullable - TModel - : ExtractDocumentKey - : // TFields isn't narrowed to exclude null by the first condition, so it needs to be narrowed - // here - TFields extends SelectFields - ? NarrowedModel - : // Unreachable by construction - never; + ? TModel + : (() => T extends TFields ? true : false) extends () => T extends never ? true : false + ? // Filter nullable (i.e. non-key) properties from the model, as they're not returned by the + // service by default + keyof ExtractDocumentKey extends never + ? // Return the original model if none of the properties are non-nullable + TModel + : ExtractDocumentKey + : // TFields isn't narrowed to exclude null by the first condition, so it needs to be narrowed + // here + TFields extends SelectFields + ? NarrowedModel + : // Unreachable by construction + never; /** Description of fields that were sent to the semantic enrichment process, as well as how they were used */ export interface QueryResultDocumentSemanticField { diff --git a/sdk/search/search-documents/src/searchClient.ts b/sdk/search/search-documents/src/searchClient.ts index 3d6d8f15d7f5..6a724e9c87a8 100644 --- a/sdk/search/search-documents/src/searchClient.ts +++ b/sdk/search/search-documents/src/searchClient.ts @@ -163,7 +163,7 @@ export class SearchClient implements IndexDocumentsClient endpoint: string, indexName: string, credential: KeyCredential | TokenCredential, - options: SearchClientOptions = {} + options: SearchClientOptions = {}, ) { this.endpoint = endpoint; this.indexName = indexName; @@ -193,7 +193,7 @@ export class SearchClient implements IndexDocumentsClient this.endpoint, this.indexName, this.serviceVersion, - internalClientPipelineOptions + internalClientPipelineOptions, ); if (isTokenCredential(credential)) { @@ -202,7 +202,7 @@ export class SearchClient implements IndexDocumentsClient : `${KnownSearchAudience.AzurePublicCloud}/.default`; this.client.pipeline.addPolicy( - bearerTokenAuthenticationPolicy({ credential, scopes: scope }) + bearerTokenAuthenticationPolicy({ credential, scopes: scope }), ); } else { this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential)); @@ -278,7 +278,7 @@ export class SearchClient implements IndexDocumentsClient public async autocomplete( searchText: string, suggesterName: string, - options: AutocompleteOptions = {} + options: AutocompleteOptions = {}, ): Promise { const { searchFields, ...nonFieldOptions } = options; const fullOptions: AutocompleteRequest = { @@ -315,7 +315,7 @@ export class SearchClient implements IndexDocumentsClient private async searchDocuments>( searchText?: string, options: SearchOptions = {}, - nextPageParameters: SearchRequest = {} + nextPageParameters: SearchRequest = {}, ): Promise> { const { searchFields, @@ -351,7 +351,7 @@ export class SearchClient implements IndexDocumentsClient ...fullOptions, searchText: searchText, }, - updatedOptions + updatedOptions, ); const { @@ -364,7 +364,7 @@ export class SearchClient implements IndexDocumentsClient } = result; const modifiedResults = utils.generatedSearchResultToPublicSearchResult( - results + results, ); const converted: SearchDocumentsPageResult = { @@ -378,7 +378,7 @@ export class SearchClient implements IndexDocumentsClient nextLink, resultNextPageParameters ? utils.generatedSearchRequestToPublicSearchRequest(resultNextPageParameters) - : resultNextPageParameters + : resultNextPageParameters, ), }; @@ -397,13 +397,13 @@ export class SearchClient implements IndexDocumentsClient private async *listSearchResultsPage>( searchText?: string, options: SearchOptions = {}, - settings: ListSearchResultsPageSettings = {} + settings: ListSearchResultsPageSettings = {}, ): AsyncIterableIterator> { let decodedContinuation = this.decodeContinuationToken(settings.continuationToken); let result = await this.searchDocuments( searchText, options, - decodedContinuation?.nextPageParameters + decodedContinuation?.nextPageParameters, ); yield result; @@ -415,7 +415,7 @@ export class SearchClient implements IndexDocumentsClient result = await this.searchDocuments( searchText, options, - decodedContinuation?.nextPageParameters + decodedContinuation?.nextPageParameters, ); yield result; } @@ -424,7 +424,7 @@ export class SearchClient implements IndexDocumentsClient private async *listSearchResultsAll>( firstPage: SearchDocumentsPageResult, searchText?: string, - options: SearchOptions = {} + options: SearchOptions = {}, ): AsyncIterableIterator> { yield* firstPage.results; if (firstPage.continuationToken) { @@ -439,7 +439,7 @@ export class SearchClient implements IndexDocumentsClient private listSearchResults>( firstPage: SearchDocumentsPageResult, searchText?: string, - options: SearchOptions = {} + options: SearchOptions = {}, ): SearchIterator { const iter = this.listSearchResultsAll(firstPage, searchText, options); @@ -491,7 +491,7 @@ export class SearchClient implements IndexDocumentsClient */ public async search>( searchText?: string, - options?: SearchOptions + options?: SearchOptions, ): Promise> { const { span, updatedOptions } = createSpan("SearchClient-search", options); @@ -550,7 +550,7 @@ export class SearchClient implements IndexDocumentsClient public async suggest = never>( searchText: string, suggesterName: string, - options: SuggestOptions = {} + options: SuggestOptions = {}, ): Promise> { const { select, searchFields, orderBy, ...nonFieldOptions } = options; const fullOptions: SuggestRequest = { @@ -599,7 +599,7 @@ export class SearchClient implements IndexDocumentsClient */ public async getDocument>( key: string, - options: GetDocumentOptions = {} + options: GetDocumentOptions = {}, ): Promise> { const { span, updatedOptions } = createSpan("SearchClient-getDocument", options); try { @@ -632,7 +632,7 @@ export class SearchClient implements IndexDocumentsClient public async indexDocuments( // eslint-disable-next-line @azure/azure-sdk/ts-use-interface-parameters batch: IndexDocumentsBatch, - options: IndexDocumentsOptions = {} + options: IndexDocumentsOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchClient-indexDocuments", options); try { @@ -647,7 +647,7 @@ export class SearchClient implements IndexDocumentsClient updatedOptions.onResponse(rawResponse, flatResponse); } }, - } + }, ); if (options.throwOnAnyFailure && status === 207) { throw result; @@ -671,7 +671,7 @@ export class SearchClient implements IndexDocumentsClient */ public async uploadDocuments( documents: TModel[], - options: UploadDocumentsOptions = {} + options: UploadDocumentsOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchClient-uploadDocuments", options); @@ -699,7 +699,7 @@ export class SearchClient implements IndexDocumentsClient */ public async mergeDocuments( documents: TModel[], - options: MergeDocumentsOptions = {} + options: MergeDocumentsOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchClient-mergeDocuments", options); @@ -727,7 +727,7 @@ export class SearchClient implements IndexDocumentsClient */ public async mergeOrUploadDocuments( documents: TModel[], - options: MergeOrUploadDocumentsOptions = {} + options: MergeOrUploadDocumentsOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchClient-mergeDocuments", options); @@ -754,7 +754,7 @@ export class SearchClient implements IndexDocumentsClient */ public async deleteDocuments( documents: TModel[], - options?: DeleteDocumentsOptions + options?: DeleteDocumentsOptions, ): Promise; /** @@ -766,13 +766,13 @@ export class SearchClient implements IndexDocumentsClient public async deleteDocuments( keyName: keyof TModel, keyValues: string[], - options?: DeleteDocumentsOptions + options?: DeleteDocumentsOptions, ): Promise; public async deleteDocuments( keyNameOrDocuments: keyof TModel | TModel[], keyValuesOrOptions?: string[] | DeleteDocumentsOptions, - options: DeleteDocumentsOptions = {} + options: DeleteDocumentsOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchClient-deleteDocuments", options); @@ -798,7 +798,7 @@ export class SearchClient implements IndexDocumentsClient private encodeContinuationToken( nextLink: string | undefined, - nextPageParameters: SearchRequest | undefined + nextPageParameters: SearchRequest | undefined, ): string | undefined { if (!nextLink || !nextPageParameters) { return undefined; @@ -812,7 +812,7 @@ export class SearchClient implements IndexDocumentsClient } private decodeContinuationToken( - token?: string + token?: string, ): { nextPageParameters: SearchRequest; nextLink: string } | undefined { if (!token) { return undefined; @@ -841,7 +841,7 @@ export class SearchClient implements IndexDocumentsClient } private convertSelect>( - select?: SelectArray + select?: SelectArray, ): string | undefined { if (select) { return select.join(","); @@ -906,7 +906,7 @@ export class SearchClient implements IndexDocumentsClient private convertVectorQuery(): undefined; private convertVectorQuery(vectorQuery: RawVectorQuery): GeneratedRawVectorQuery; private convertVectorQuery( - vectorQuery: VectorizableTextQuery + vectorQuery: VectorizableTextQuery, ): GeneratedVectorizableTextQuery; private convertVectorQuery(vectorQuery: BaseVectorQuery): GeneratedBaseVectorQuery; private convertVectorQuery(vectorQuery: VectorQuery): GeneratedVectorQuery; diff --git a/sdk/search/search-documents/src/searchIndexClient.ts b/sdk/search/search-documents/src/searchIndexClient.ts index cb0a6116b6b5..4b19a6793b25 100644 --- a/sdk/search/search-documents/src/searchIndexClient.ts +++ b/sdk/search/search-documents/src/searchIndexClient.ts @@ -126,7 +126,7 @@ export class SearchIndexClient { constructor( endpoint: string, credential: KeyCredential | TokenCredential, - options: SearchIndexClientOptions = {} + options: SearchIndexClientOptions = {}, ) { this.endpoint = endpoint; this.credential = credential; @@ -156,7 +156,7 @@ export class SearchIndexClient { this.client = new GeneratedClient( this.endpoint, this.serviceVersion, - internalClientPipelineOptions + internalClientPipelineOptions, ); if (isTokenCredential(credential)) { @@ -165,7 +165,7 @@ export class SearchIndexClient { : `${KnownSearchAudience.AzurePublicCloud}/.default`; this.client.pipeline.addPolicy( - bearerTokenAuthenticationPolicy({ credential, scopes: scope }) + bearerTokenAuthenticationPolicy({ credential, scopes: scope }), ); } else { this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential)); @@ -175,7 +175,7 @@ export class SearchIndexClient { } private async *listIndexesPage( - options: ListIndexesOptions = {} + options: ListIndexesOptions = {}, ): AsyncIterableIterator { const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesPage", options); try { @@ -194,7 +194,7 @@ export class SearchIndexClient { } private async *listIndexesAll( - options: ListIndexesOptions = {} + options: ListIndexesOptions = {}, ): AsyncIterableIterator { for await (const page of this.listIndexesPage(options)) { yield* page; @@ -222,7 +222,7 @@ export class SearchIndexClient { } private async *listAliasesPage( - options: ListAliasesOptions = {} + options: ListAliasesOptions = {}, ): AsyncIterableIterator { const { span, updatedOptions } = createSpan("SearchIndexerClient-listAliases", options); try { @@ -240,7 +240,7 @@ export class SearchIndexClient { } private async *listAliasesAll( - options: ListAliasesOptions = {} + options: ListAliasesOptions = {}, ): AsyncIterableIterator { for await (const page of this.listAliasesPage(options)) { yield* page; @@ -268,7 +268,7 @@ export class SearchIndexClient { } private async *listIndexesNamesPage( - options: ListIndexesOptions = {} + options: ListIndexesOptions = {}, ): AsyncIterableIterator { const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesNamesPage", options); try { @@ -290,7 +290,7 @@ export class SearchIndexClient { } private async *listIndexesNamesAll( - options: ListIndexesOptions = {} + options: ListIndexesOptions = {}, ): AsyncIterableIterator { for await (const page of this.listIndexesNamesPage(options)) { yield* page; @@ -388,7 +388,7 @@ export class SearchIndexClient { */ public async getSynonymMap( synonymMapName: string, - options: GetSynonymMapsOptions = {} + options: GetSynonymMapsOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexClient-getSynonymMaps", options); try { @@ -412,13 +412,13 @@ export class SearchIndexClient { */ public async createIndex( index: SearchIndex, - options: CreateIndexOptions = {} + options: CreateIndexOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexClient-createIndex", options); try { const result = await this.client.indexes.create( utils.publicIndexToGeneratedIndex(index), - updatedOptions + updatedOptions, ); return utils.generatedIndexToPublicIndex(result); } catch (e: any) { @@ -439,13 +439,13 @@ export class SearchIndexClient { */ public async createSynonymMap( synonymMap: SynonymMap, - options: CreateSynonymMapOptions = {} + options: CreateSynonymMapOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexClient-createSynonymMaps", options); try { const result = await this.client.synonymMaps.create( utils.publicSynonymMapToGeneratedSynonymMap(synonymMap), - updatedOptions + updatedOptions, ); return utils.generatedSynonymMapToPublicSynonymMap(result); } catch (e: any) { @@ -466,7 +466,7 @@ export class SearchIndexClient { */ public async createOrUpdateIndex( index: SearchIndex, - options: CreateOrUpdateIndexOptions = {} + options: CreateOrUpdateIndexOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexClient-createOrUpdateIndex", options); try { @@ -478,7 +478,7 @@ export class SearchIndexClient { { ...updatedOptions, ifMatch: etag, - } + }, ); return utils.generatedIndexToPublicIndex(result); } catch (e: any) { @@ -499,11 +499,11 @@ export class SearchIndexClient { */ public async createOrUpdateSynonymMap( synonymMap: SynonymMap, - options: CreateOrUpdateSynonymMapOptions = {} + options: CreateOrUpdateSynonymMapOptions = {}, ): Promise { const { span, updatedOptions } = createSpan( "SearchIndexClient-createOrUpdateSynonymMap", - options + options, ); try { const etag = options.onlyIfUnchanged ? synonymMap.etag : undefined; @@ -514,7 +514,7 @@ export class SearchIndexClient { { ...updatedOptions, ifMatch: etag, - } + }, ); return utils.generatedSynonymMapToPublicSynonymMap(result); } catch (e: any) { @@ -535,7 +535,7 @@ export class SearchIndexClient { */ public async deleteIndex( index: string | SearchIndex, - options: DeleteIndexOptions = {} + options: DeleteIndexOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexClient-deleteIndex", options); try { @@ -565,7 +565,7 @@ export class SearchIndexClient { */ public async deleteSynonymMap( synonymMap: string | SynonymMap, - options: DeleteSynonymMapOptions = {} + options: DeleteSynonymMapOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexClient-deleteSynonymMap", options); try { @@ -574,8 +574,8 @@ export class SearchIndexClient { typeof synonymMap === "string" ? undefined : options.onlyIfUnchanged - ? synonymMap.etag - : undefined; + ? synonymMap.etag + : undefined; await this.client.synonymMaps.delete(synonymMapName, { ...updatedOptions, @@ -599,7 +599,7 @@ export class SearchIndexClient { */ public async createOrUpdateAlias( alias: SearchIndexAlias, - options: CreateOrUpdateAliasOptions = {} + options: CreateOrUpdateAliasOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateAlias", options); try { @@ -628,7 +628,7 @@ export class SearchIndexClient { */ public async createAlias( alias: SearchIndexAlias, - options: CreateAliasOptions = {} + options: CreateAliasOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexerClient-createAlias", options); try { @@ -653,7 +653,7 @@ export class SearchIndexClient { */ public async deleteAlias( alias: string | SearchIndexAlias, - options: DeleteAliasOptions = {} + options: DeleteAliasOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexerClient-deleteAlias", options); try { @@ -683,7 +683,7 @@ export class SearchIndexClient { */ public async getAlias( aliasName: string, - options: GetAliasOptions = {} + options: GetAliasOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexerClient-getAlias", options); try { @@ -708,7 +708,7 @@ export class SearchIndexClient { */ public async getIndexStatistics( indexName: string, - options: GetIndexStatisticsOptions = {} + options: GetIndexStatisticsOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexClient-getIndexStatistics", options); try { @@ -749,7 +749,7 @@ export class SearchIndexClient { tokenizer: restOptions.tokenizerName, normalizer: restOptions.normalizerName, }, - updatedOptions + updatedOptions, ); return result; } catch (e: any) { @@ -768,7 +768,7 @@ export class SearchIndexClient { * @param options - Additional optional arguments. */ public async getServiceStatistics( - options: GetServiceStatisticsOptions = {} + options: GetServiceStatisticsOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexClient-getServiceStatistics", options); try { @@ -796,13 +796,13 @@ export class SearchIndexClient { */ public getSearchClient( indexName: string, - options?: GetSearchClientOptions + options?: GetSearchClientOptions, ): SearchClient { return new SearchClient( this.endpoint, indexName, this.credential, - options || this.options + options || this.options, ); } } diff --git a/sdk/search/search-documents/src/searchIndexerClient.ts b/sdk/search/search-documents/src/searchIndexerClient.ts index 2d7dee34387b..ecd8a5d2c641 100644 --- a/sdk/search/search-documents/src/searchIndexerClient.ts +++ b/sdk/search/search-documents/src/searchIndexerClient.ts @@ -110,7 +110,7 @@ export class SearchIndexerClient { constructor( endpoint: string, credential: KeyCredential | TokenCredential, - options: SearchIndexerClientOptions = {} + options: SearchIndexerClientOptions = {}, ) { this.endpoint = endpoint; @@ -138,7 +138,7 @@ export class SearchIndexerClient { this.client = new GeneratedClient( this.endpoint, this.serviceVersion, - internalClientPipelineOptions + internalClientPipelineOptions, ); if (isTokenCredential(credential)) { @@ -147,7 +147,7 @@ export class SearchIndexerClient { : `${KnownSearchAudience.AzurePublicCloud}/.default`; this.client.pipeline.addPolicy( - bearerTokenAuthenticationPolicy({ credential, scopes: scope }) + bearerTokenAuthenticationPolicy({ credential, scopes: scope }), ); } else { this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential)); @@ -204,11 +204,11 @@ export class SearchIndexerClient { * @param options - Options to the list indexers operation. */ public async listDataSourceConnections( - options: ListDataSourceConnectionsOptions = {} + options: ListDataSourceConnectionsOptions = {}, ): Promise> { const { span, updatedOptions } = createSpan( "SearchIndexerClient-listDataSourceConnections", - options + options, ); try { const result = await this.client.dataSources.list(updatedOptions); @@ -229,11 +229,11 @@ export class SearchIndexerClient { * @param options - Options to the list indexers operation. */ public async listDataSourceConnectionsNames( - options: ListDataSourceConnectionsOptions = {} + options: ListDataSourceConnectionsOptions = {}, ): Promise> { const { span, updatedOptions } = createSpan( "SearchIndexerClient-listDataSourceConnectionsNames", - options + options, ); try { const result = await this.client.dataSources.list({ @@ -257,7 +257,7 @@ export class SearchIndexerClient { * @param options - Options to the list Skillsets operation. */ public async listSkillsets( - options: ListSkillsetsOptions = {} + options: ListSkillsetsOptions = {}, ): Promise> { const { span, updatedOptions } = createSpan("SearchIndexerClient-listSkillsets", options); try { @@ -304,7 +304,7 @@ export class SearchIndexerClient { */ public async getIndexer( indexerName: string, - options: GetIndexerOptions = {} + options: GetIndexerOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexerClient-getIndexer", options); try { @@ -328,11 +328,11 @@ export class SearchIndexerClient { */ public async getDataSourceConnection( dataSourceConnectionName: string, - options: GetDataSourceConnectionOptions = {} + options: GetDataSourceConnectionOptions = {}, ): Promise { const { span, updatedOptions } = createSpan( "SearchIndexerClient-getDataSourceConnection", - options + options, ); try { const result = await this.client.dataSources.get(dataSourceConnectionName, updatedOptions); @@ -355,7 +355,7 @@ export class SearchIndexerClient { */ public async getSkillset( skillsetName: string, - options: GetSkillSetOptions = {} + options: GetSkillSetOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexerClient-getSkillset", options); try { @@ -379,13 +379,13 @@ export class SearchIndexerClient { */ public async createIndexer( indexer: SearchIndexer, - options: CreateIndexerOptions = {} + options: CreateIndexerOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexerClient-createIndexer", options); try { const result = await this.client.indexers.create( utils.publicSearchIndexerToGeneratedSearchIndexer(indexer), - updatedOptions + updatedOptions, ); return utils.generatedSearchIndexerToPublicSearchIndexer(result); } catch (e: any) { @@ -406,16 +406,16 @@ export class SearchIndexerClient { */ public async createDataSourceConnection( dataSourceConnection: SearchIndexerDataSourceConnection, - options: CreateDataSourceConnectionOptions = {} + options: CreateDataSourceConnectionOptions = {}, ): Promise { const { span, updatedOptions } = createSpan( "SearchIndexerClient-createDataSourceConnection", - options + options, ); try { const result = await this.client.dataSources.create( utils.publicDataSourceToGeneratedDataSource(dataSourceConnection), - updatedOptions + updatedOptions, ); return utils.generatedDataSourceToPublicDataSource(result); } catch (e: any) { @@ -436,13 +436,13 @@ export class SearchIndexerClient { */ public async createSkillset( skillset: SearchIndexerSkillset, - options: CreateSkillsetOptions = {} + options: CreateSkillsetOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexerClient-createSkillset", options); try { const result = await this.client.skillsets.create( utils.publicSkillsetToGeneratedSkillset(skillset), - updatedOptions + updatedOptions, ); return utils.generatedSkillsetToPublicSkillset(result); } catch (e: any) { @@ -463,11 +463,11 @@ export class SearchIndexerClient { */ public async createOrUpdateIndexer( indexer: SearchIndexer, - options: CreateorUpdateIndexerOptions = {} + options: CreateorUpdateIndexerOptions = {}, ): Promise { const { span, updatedOptions } = createSpan( "SearchIndexerClient-createOrUpdateIndexer", - options + options, ); try { const etag = options.onlyIfUnchanged ? indexer.etag : undefined; @@ -480,7 +480,7 @@ export class SearchIndexerClient { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection, - } + }, ); return utils.generatedSearchIndexerToPublicSearchIndexer(result); } catch (e: any) { @@ -501,11 +501,11 @@ export class SearchIndexerClient { */ public async createOrUpdateDataSourceConnection( dataSourceConnection: SearchIndexerDataSourceConnection, - options: CreateorUpdateDataSourceConnectionOptions = {} + options: CreateorUpdateDataSourceConnectionOptions = {}, ): Promise { const { span, updatedOptions } = createSpan( "SearchIndexerClient-createOrUpdateDataSourceConnection", - options + options, ); try { const etag = options.onlyIfUnchanged ? dataSourceConnection.etag : undefined; @@ -517,7 +517,7 @@ export class SearchIndexerClient { ...updatedOptions, ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, - } + }, ); return utils.generatedDataSourceToPublicDataSource(result); } catch (e: any) { @@ -538,11 +538,11 @@ export class SearchIndexerClient { */ public async createOrUpdateSkillset( skillset: SearchIndexerSkillset, - options: CreateOrUpdateSkillsetOptions = {} + options: CreateOrUpdateSkillsetOptions = {}, ): Promise { const { span, updatedOptions } = createSpan( "SearchIndexerClient-createOrUpdateSkillset", - options + options, ); try { const etag = options.onlyIfUnchanged ? skillset.etag : undefined; @@ -555,7 +555,7 @@ export class SearchIndexerClient { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection, - } + }, ); return utils.generatedSkillsetToPublicSkillset(result); @@ -577,7 +577,7 @@ export class SearchIndexerClient { */ public async deleteIndexer( indexer: string | SearchIndexer, - options: DeleteIndexerOptions = {} + options: DeleteIndexerOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexerClient-deleteIndexer", options); try { @@ -586,8 +586,8 @@ export class SearchIndexerClient { typeof indexer === "string" ? undefined : options.onlyIfUnchanged - ? indexer.etag - : undefined; + ? indexer.etag + : undefined; await this.client.indexers.delete(indexerName, { ...updatedOptions, @@ -611,11 +611,11 @@ export class SearchIndexerClient { */ public async deleteDataSourceConnection( dataSourceConnection: string | SearchIndexerDataSourceConnection, - options: DeleteDataSourceConnectionOptions = {} + options: DeleteDataSourceConnectionOptions = {}, ): Promise { const { span, updatedOptions } = createSpan( "SearchIndexerClient-deleteDataSourceConnection", - options + options, ); try { const dataSourceConnectionName: string = @@ -624,8 +624,8 @@ export class SearchIndexerClient { typeof dataSourceConnection === "string" ? undefined : options.onlyIfUnchanged - ? dataSourceConnection.etag - : undefined; + ? dataSourceConnection.etag + : undefined; await this.client.dataSources.delete(dataSourceConnectionName, { ...updatedOptions, @@ -649,7 +649,7 @@ export class SearchIndexerClient { */ public async deleteSkillset( skillset: string | SearchIndexerSkillset, - options: DeleteSkillsetOptions = {} + options: DeleteSkillsetOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexerClient-deleteSkillset", options); try { @@ -658,8 +658,8 @@ export class SearchIndexerClient { typeof skillset === "string" ? undefined : options.onlyIfUnchanged - ? skillset.etag - : undefined; + ? skillset.etag + : undefined; await this.client.skillsets.delete(skillsetName, { ...updatedOptions, @@ -683,7 +683,7 @@ export class SearchIndexerClient { */ public async getIndexerStatus( indexerName: string, - options: GetIndexerStatusOptions = {} + options: GetIndexerStatusOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexerClient-getIndexerStatus", options); try { @@ -747,7 +747,7 @@ export class SearchIndexerClient { */ public async resetDocuments( indexerName: string, - options: ResetDocumentsOptions = {} + options: ResetDocumentsOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexerClient-resetDocs", options); try { @@ -781,7 +781,7 @@ export class SearchIndexerClient { await this.client.skillsets.resetSkills( skillsetName, { skillNames: options.skillNames }, - updatedOptions + updatedOptions, ); } catch (e: any) { span.setStatus({ diff --git a/sdk/search/search-documents/src/searchIndexingBufferedSender.ts b/sdk/search/search-documents/src/searchIndexingBufferedSender.ts index 2baff5e2b1cd..87f36a355085 100644 --- a/sdk/search/search-documents/src/searchIndexingBufferedSender.ts +++ b/sdk/search/search-documents/src/searchIndexingBufferedSender.ts @@ -33,7 +33,7 @@ export interface IndexDocumentsClient { */ indexDocuments( batch: IndexDocumentsBatch, - options: IndexDocumentsOptions + options: IndexDocumentsOptions, ): Promise; } @@ -118,7 +118,7 @@ export class SearchIndexingBufferedSender { constructor( client: IndexDocumentsClient, documentKeyRetriever: (document: TModel) => string, - options: SearchIndexingBufferedSenderOptions = {} + options: SearchIndexingBufferedSenderOptions = {}, ) { this.client = client; this.documentKeyRetriever = documentKeyRetriever; @@ -149,11 +149,11 @@ export class SearchIndexingBufferedSender { */ public async uploadDocuments( documents: TModel[], - options: SearchIndexingBufferedSenderUploadDocumentsOptions = {} + options: SearchIndexingBufferedSenderUploadDocumentsOptions = {}, ): Promise { const { span, updatedOptions } = createSpan( "SearchIndexingBufferedSender-uploadDocuments", - options + options, ); try { this.batchObject.upload(documents); @@ -181,11 +181,11 @@ export class SearchIndexingBufferedSender { */ public async mergeDocuments( documents: TModel[], - options: SearchIndexingBufferedSenderMergeDocumentsOptions = {} + options: SearchIndexingBufferedSenderMergeDocumentsOptions = {}, ): Promise { const { span, updatedOptions } = createSpan( "SearchIndexingBufferedSender-mergeDocuments", - options + options, ); try { this.batchObject.merge(documents); @@ -213,11 +213,11 @@ export class SearchIndexingBufferedSender { */ public async mergeOrUploadDocuments( documents: TModel[], - options: SearchIndexingBufferedSenderMergeOrUploadDocumentsOptions = {} + options: SearchIndexingBufferedSenderMergeOrUploadDocumentsOptions = {}, ): Promise { const { span, updatedOptions } = createSpan( "SearchIndexingBufferedSender-mergeOrUploadDocuments", - options + options, ); try { this.batchObject.mergeOrUpload(documents); @@ -245,11 +245,11 @@ export class SearchIndexingBufferedSender { */ public async deleteDocuments( documents: TModel[], - options: SearchIndexingBufferedSenderDeleteDocumentsOptions = {} + options: SearchIndexingBufferedSenderDeleteDocumentsOptions = {}, ): Promise { const { span, updatedOptions } = createSpan( "SearchIndexingBufferedSender-deleteDocuments", - options + options, ); try { this.batchObject.delete(documents); @@ -275,7 +275,7 @@ export class SearchIndexingBufferedSender { * @param options - Flush options. */ public async flush( - options: SearchIndexingBufferedSenderFlushDocumentsOptions = {} + options: SearchIndexingBufferedSenderFlushDocumentsOptions = {}, ): Promise { const { span, updatedOptions } = createSpan("SearchIndexingBufferedSender-flush", options); try { @@ -313,7 +313,7 @@ export class SearchIndexingBufferedSender { */ public on( event: "batchAdded", - listener: (e: { action: string; documents: TModel[] }) => void + listener: (e: { action: string; documents: TModel[] }) => void, ): void; /** * Attach Batch Sent Event @@ -338,7 +338,7 @@ export class SearchIndexingBufferedSender { public on(event: "batchFailed", listener: (e: RestError) => void): void; public on( event: "batchAdded" | "beforeDocumentSent" | "batchSucceeded" | "batchFailed" | "batchResizing", - listener: (e: any) => void + listener: (e: any) => void, ): void { this.emitter.on(event, listener); } @@ -351,7 +351,7 @@ export class SearchIndexingBufferedSender { */ public off( event: "batchAdded", - listener: (e: { action: string; documents: TModel[] }) => void + listener: (e: { action: string; documents: TModel[] }) => void, ): void; /** * Detach Batch Sent Event @@ -361,7 +361,7 @@ export class SearchIndexingBufferedSender { */ public off( event: "beforeDocumentSent", - listener: (e: IndexDocumentsAction) => void + listener: (e: IndexDocumentsAction) => void, ): void; /** * Detach Batch Succeeded Event @@ -379,7 +379,7 @@ export class SearchIndexingBufferedSender { public off(event: "batchFailed", listener: (e: RestError) => void): void; public off( event: "batchAdded" | "beforeDocumentSent" | "batchSucceeded" | "batchFailed", - listener: (e: any) => void + listener: (e: any) => void, ): void { this.emitter.removeListener(event, listener); } @@ -425,7 +425,7 @@ export class SearchIndexingBufferedSender { private async submitDocuments( actionsToSend: IndexDocumentsAction[], options: OperationOptions, - retryAttempt: number = 1 + retryAttempt: number = 1, ): Promise { try { for (const action of actionsToSend) { @@ -433,7 +433,7 @@ export class SearchIndexingBufferedSender { } const result = await this.client.indexDocuments( new IndexDocumentsBatch(actionsToSend), - options + options, ); // raise success event this.emitter.emit("batchSucceeded", result); diff --git a/sdk/search/search-documents/src/serialization.ts b/sdk/search/search-documents/src/serialization.ts index 9042437d029c..6fdd9be1807a 100644 --- a/sdk/search/search-documents/src/serialization.ts +++ b/sdk/search/search-documents/src/serialization.ts @@ -185,7 +185,7 @@ function isValidObject( options: { requiredKeys?: string[]; propertyValidator?: (keyName: string) => boolean; - } = {} + } = {}, ): boolean { if (typeof obj !== "object" || obj === null) { return false; diff --git a/sdk/search/search-documents/src/serviceUtils.ts b/sdk/search/search-documents/src/serviceUtils.ts index 90b3d3eddbd8..ec47fabf2186 100644 --- a/sdk/search/search-documents/src/serviceUtils.ts +++ b/sdk/search/search-documents/src/serviceUtils.ts @@ -188,7 +188,7 @@ export function convertSkillsToPublic(skills: SearchIndexerSkillUnion[]): Search } export function convertCognitiveServicesAccountToGenerated( - cognitiveServicesAccount?: CognitiveServicesAccount + cognitiveServicesAccount?: CognitiveServicesAccount, ): CognitiveServicesAccountUnion | undefined { if (!cognitiveServicesAccount) { return cognitiveServicesAccount; @@ -198,7 +198,7 @@ export function convertCognitiveServicesAccountToGenerated( } export function convertCognitiveServicesAccountToPublic( - cognitiveServicesAccount?: CognitiveServicesAccountUnion + cognitiveServicesAccount?: CognitiveServicesAccountUnion, ): CognitiveServicesAccount | undefined { if (!cognitiveServicesAccount) { return cognitiveServicesAccount; @@ -212,7 +212,7 @@ export function convertCognitiveServicesAccountToPublic( } export function convertTokenFiltersToGenerated( - tokenFilters?: TokenFilter[] + tokenFilters?: TokenFilter[], ): TokenFilterUnion[] | undefined { if (!tokenFilters) { return tokenFilters; @@ -227,7 +227,7 @@ export function convertTokenFiltersToGenerated( } export function convertAnalyzersToGenerated( - analyzers?: LexicalAnalyzer[] + analyzers?: LexicalAnalyzer[], ): LexicalAnalyzerUnion[] | undefined { if (!analyzers) { return analyzers; @@ -258,7 +258,7 @@ export function convertAnalyzersToGenerated( } export function convertAnalyzersToPublic( - analyzers?: LexicalAnalyzerUnion[] + analyzers?: LexicalAnalyzerUnion[], ): LexicalAnalyzer[] | undefined { if (!analyzers) { return analyzers; @@ -361,7 +361,7 @@ export function convertFieldsToGenerated(fields: SearchField[]): GeneratedSearch } export function convertTokenizersToGenerated( - tokenizers?: LexicalTokenizer[] + tokenizers?: LexicalTokenizer[], ): LexicalTokenizerUnion[] | undefined { if (!tokenizers) { return tokenizers; @@ -382,7 +382,7 @@ export function convertTokenizersToGenerated( } export function convertTokenizersToPublic( - tokenizers?: LexicalTokenizerUnion[] + tokenizers?: LexicalTokenizerUnion[], ): LexicalTokenizer[] | undefined { if (!tokenizers) { return tokenizers; @@ -405,7 +405,7 @@ export function convertTokenizersToPublic( } export function convertSimilarityToGenerated( - similarity?: SimilarityAlgorithm + similarity?: SimilarityAlgorithm, ): SimilarityUnion | undefined { if (!similarity) { return similarity; @@ -415,7 +415,7 @@ export function convertSimilarityToGenerated( } export function convertSimilarityToPublic( - similarity?: SimilarityUnion + similarity?: SimilarityUnion, ): SimilarityAlgorithm | undefined { if (!similarity) { return similarity; @@ -429,7 +429,7 @@ export function convertSimilarityToPublic( } export function convertEncryptionKeyToPublic( - encryptionKey?: GeneratedSearchResourceEncryptionKey + encryptionKey?: GeneratedSearchResourceEncryptionKey, ): SearchResourceEncryptionKey | undefined { if (!encryptionKey) { return encryptionKey; @@ -451,7 +451,7 @@ export function convertEncryptionKeyToPublic( } export function convertEncryptionKeyToGenerated( - encryptionKey?: SearchResourceEncryptionKey + encryptionKey?: SearchResourceEncryptionKey, ): GeneratedSearchResourceEncryptionKey | undefined { if (!encryptionKey) { return encryptionKey; @@ -497,10 +497,10 @@ export function generatedIndexToPublicIndex(generatedIndex: GeneratedSearchIndex export function generatedVectorSearchVectorizerToPublicVectorizer(): undefined; export function generatedVectorSearchVectorizerToPublicVectorizer( - generatedVectorizer: GeneratedVectorSearchVectorizer + generatedVectorizer: GeneratedVectorSearchVectorizer, ): VectorSearchVectorizer; export function generatedVectorSearchVectorizerToPublicVectorizer( - generatedVectorizer?: GeneratedVectorSearchVectorizer + generatedVectorizer?: GeneratedVectorSearchVectorizer, ): VectorSearchVectorizer | undefined { if (!generatedVectorizer) { return generatedVectorizer; @@ -509,7 +509,7 @@ export function generatedVectorSearchVectorizerToPublicVectorizer( if (generatedVectorizer.kind === "azureOpenAI") { const { azureOpenAIParameters } = generatedVectorizer as GeneratedAzureOpenAIVectorizer; const authIdentity = convertSearchIndexerDataIdentityToPublic( - azureOpenAIParameters?.authIdentity + azureOpenAIParameters?.authIdentity, ); const vectorizer: AzureOpenAIVectorizer = { ...(generatedVectorizer as GeneratedAzureOpenAIVectorizer), @@ -521,7 +521,7 @@ export function generatedVectorSearchVectorizerToPublicVectorizer( if (generatedVectorizer.kind === "customWebApi") { const { customVectorizerParameters } = generatedVectorizer as GeneratedCustomVectorizer; const authIdentity = convertSearchIndexerDataIdentityToPublic( - customVectorizerParameters?.authIdentity + customVectorizerParameters?.authIdentity, ); const vectorizer: CustomVectorizer = { ...(generatedVectorizer as GeneratedCustomVectorizer), @@ -535,10 +535,10 @@ export function generatedVectorSearchVectorizerToPublicVectorizer( export function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration(): undefined; export function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration( - generatedAlgorithmConfiguration: GeneratedVectorSearchAlgorithmConfiguration + generatedAlgorithmConfiguration: GeneratedVectorSearchAlgorithmConfiguration, ): VectorSearchAlgorithmConfiguration; export function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration( - generatedAlgorithmConfiguration?: GeneratedVectorSearchAlgorithmConfiguration + generatedAlgorithmConfiguration?: GeneratedVectorSearchAlgorithmConfiguration, ): VectorSearchAlgorithmConfiguration | undefined { if (!generatedAlgorithmConfiguration) { return generatedAlgorithmConfiguration; @@ -559,7 +559,7 @@ export function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchA } export function generatedVectorSearchToPublicVectorSearch( - vectorSearch?: GeneratedVectorSearch + vectorSearch?: GeneratedVectorSearch, ): VectorSearch | undefined { if (!vectorSearch) { return vectorSearch; @@ -568,7 +568,7 @@ export function generatedVectorSearchToPublicVectorSearch( return { ...vectorSearch, algorithms: vectorSearch.algorithms?.map( - generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration + generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration, ), vectorizers: vectorSearch.vectorizers?.map(generatedVectorSearchVectorizerToPublicVectorizer), }; @@ -576,7 +576,7 @@ export function generatedVectorSearchToPublicVectorSearch( export function generatedSearchResultToPublicSearchResult< TModel extends object, - TFields extends SelectFields + TFields extends SelectFields, >(results: GeneratedSearchResult[]): SearchResult[] { const returnValues: SearchResult[] = results.map>( (result) => { @@ -594,14 +594,14 @@ export function generatedSearchResultToPublicSearchResult< documentDebugInfo, }; return obj as SearchResult; - } + }, ); return returnValues; } export function generatedSuggestDocumentsResultToPublicSuggestDocumentsResult< TModel extends object, - TFields extends SelectFields + TFields extends SelectFields, >(searchDocumentsResult: GeneratedSuggestDocumentsResult): SuggestDocumentsResult { const results = searchDocumentsResult.results.map>((element) => { const { _text, ...restProps } = element; @@ -641,14 +641,14 @@ export function publicIndexToGeneratedIndex(index: SearchIndex): GeneratedSearch } export function generatedSkillsetToPublicSkillset( - generatedSkillset: GeneratedSearchIndexerSkillset + generatedSkillset: GeneratedSearchIndexerSkillset, ): SearchIndexerSkillset { return { name: generatedSkillset.name, description: generatedSkillset.description, skills: convertSkillsToPublic(generatedSkillset.skills), cognitiveServicesAccount: convertCognitiveServicesAccountToPublic( - generatedSkillset.cognitiveServicesAccount + generatedSkillset.cognitiveServicesAccount, ), knowledgeStore: convertKnowledgeStoreToPublic(generatedSkillset.knowledgeStore), etag: generatedSkillset.etag, @@ -657,7 +657,7 @@ export function generatedSkillsetToPublicSkillset( } export function publicSkillsetToGeneratedSkillset( - skillset: SearchIndexerSkillset + skillset: SearchIndexerSkillset, ): GeneratedSearchIndexerSkillset { return { name: skillset.name, @@ -665,7 +665,7 @@ export function publicSkillsetToGeneratedSkillset( etag: skillset.etag, skills: skillset.skills, cognitiveServicesAccount: convertCognitiveServicesAccountToGenerated( - skillset.cognitiveServicesAccount + skillset.cognitiveServicesAccount, ), knowledgeStore: skillset.knowledgeStore, encryptionKey: convertEncryptionKeyToGenerated(skillset.encryptionKey), @@ -702,7 +702,7 @@ export function publicSynonymMapToGeneratedSynonymMap(synonymMap: SynonymMap): G } export function publicSearchIndexerToGeneratedSearchIndexer( - indexer: SearchIndexer + indexer: SearchIndexer, ): GeneratedSearchIndexer { return { ...indexer, @@ -711,7 +711,7 @@ export function publicSearchIndexerToGeneratedSearchIndexer( } export function generatedSearchIndexerToPublicSearchIndexer( - indexer: GeneratedSearchIndexer + indexer: GeneratedSearchIndexer, ): SearchIndexer { return { ...indexer, @@ -721,7 +721,7 @@ export function generatedSearchIndexerToPublicSearchIndexer( } export function generatedSearchRequestToPublicSearchRequest( - request: GeneratedSearchRequest + request: GeneratedSearchRequest, ): SearchRequest { const { semanticErrorHandling, debug, vectorQueries, vectorFilterMode, ...props } = request; const publicRequest: SearchRequest = { @@ -738,7 +738,7 @@ export function generatedSearchRequestToPublicSearchRequest( - vector: GeneratedVectorQuery | undefined + vector: GeneratedVectorQuery | undefined, ): VectorQuery | undefined { if (!vector) { return vector; @@ -857,7 +857,7 @@ export const serviceVersions = ["2020-06-30", "2023-10-01-Preview"]; export const defaultServiceVersion = "2023-10-01-Preview"; function convertKnowledgeStoreToPublic( - knowledgeStore: BaseSearchIndexerKnowledgeStore | undefined + knowledgeStore: BaseSearchIndexerKnowledgeStore | undefined, ): SearchIndexerKnowledgeStore | undefined { if (!knowledgeStore) { return knowledgeStore; @@ -870,7 +870,7 @@ function convertKnowledgeStoreToPublic( } function convertSearchIndexerCacheToPublic( - cache?: GeneratedSearchIndexerCache + cache?: GeneratedSearchIndexerCache, ): SearchIndexerCache | undefined { if (!cache) { return cache; diff --git a/sdk/search/search-documents/src/synonymMapHelper.browser.ts b/sdk/search/search-documents/src/synonymMapHelper.browser.ts index 21157bdb866c..82c7f11994f3 100644 --- a/sdk/search/search-documents/src/synonymMapHelper.browser.ts +++ b/sdk/search/search-documents/src/synonymMapHelper.browser.ts @@ -13,7 +13,7 @@ import { SynonymMap } from "./serviceModels"; */ export async function createSynonymMapFromFile( _name: string, - _filePath: string + _filePath: string, ): Promise { throw new Error("Not implemented for browser."); } diff --git a/sdk/search/search-documents/src/synonymMapHelper.ts b/sdk/search/search-documents/src/synonymMapHelper.ts index 220dc79fae7e..873eee754119 100644 --- a/sdk/search/search-documents/src/synonymMapHelper.ts +++ b/sdk/search/search-documents/src/synonymMapHelper.ts @@ -15,7 +15,7 @@ const readFileAsync = promisify(fs.readFile); */ export async function createSynonymMapFromFile( name: string, - filePath: string + filePath: string, ): Promise { const synonyms: string[] = (await readFileAsync(filePath, "utf-8")) .replace(/\r/g, "") diff --git a/sdk/search/search-documents/test/internal/node/synonymMap.node.spec.ts b/sdk/search/search-documents/test/internal/node/synonymMap.node.spec.ts index a97107f8247d..ddcefd4c9afe 100644 --- a/sdk/search/search-documents/test/internal/node/synonymMap.node.spec.ts +++ b/sdk/search/search-documents/test/internal/node/synonymMap.node.spec.ts @@ -9,7 +9,7 @@ describe("synonymmap", function () { it("create synonymmap from file(node)", async function () { const synonymMap: SynonymMap = await createSynonymMapFromFile( "my-synonym-map-1", - "./test/internal/synonymMap.txt" + "./test/internal/synonymMap.txt", ); assert.equal(synonymMap.name, "my-synonym-map-1"); assert.equal(synonymMap.synonyms.length, 2); diff --git a/sdk/search/search-documents/test/public/node/searchClient.spec.ts b/sdk/search/search-documents/test/public/node/searchClient.spec.ts index 463adc5db063..e783131e065d 100644 --- a/sdk/search/search-documents/test/public/node/searchClient.spec.ts +++ b/sdk/search/search-documents/test/public/node/searchClient.spec.ts @@ -70,7 +70,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { it("autocomplete returns zero results for invalid query", async function () { const autoCompleteResult: AutocompleteResult = await searchClient.autocomplete( "garbxyz", - "sg" + "sg", ); assert.isTrue(autoCompleteResult.results.length === 0); }); @@ -152,16 +152,16 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { for await (const result of selectResults.results) { assert.doesNotHaveAnyKeys( result.document, - hotelKeys.filter((key) => !["hotelId", "address", "rooms"].includes(key)) + hotelKeys.filter((key) => !["hotelId", "address", "rooms"].includes(key)), ); assert.doesNotHaveAnyKeys( result.document.address, - addressKeys.filter((key) => key !== "city") + addressKeys.filter((key) => key !== "city"), ); for (const room of result.document.rooms!) { assert.doesNotHaveAnyKeys( room, - roomKeys.filter((key) => key !== "type") + roomKeys.filter((key) => key !== "type"), ); break; } @@ -213,7 +213,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { const suggestResult = await searchClient.suggest("WiFi", "sg"); assert.equal(suggestResult.results.length, 1); assert.isTrue( - suggestResult.results[0].text.startsWith("Save up to 50% off traditional hotels") + suggestResult.results[0].text.startsWith("Save up to 50% off traditional hotels"), ); }); @@ -226,11 +226,11 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { const getDocumentResult = await searchClient.getDocument("8"); assert.equal( getDocumentResult.description, - "Has some road noise and is next to the very police station. Bathrooms had morel coverings." + "Has some road noise and is next to the very police station. Bathrooms had morel coverings.", ); assert.equal( getDocumentResult.descriptionFr, - "Il y a du bruit de la route et se trouve à côté de la station de police. Les salles de bain avaient des revêtements de morilles." + "Il y a du bruit de la route et se trouve à côté de la station de police. Les salles de bain avaient des revêtements de morilles.", ); assert.equal(getDocumentResult.hotelId, "8"); }); @@ -473,7 +473,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { }, }, ], - result.documentDebugInfo + result.documentDebugInfo, ); } }); @@ -518,7 +518,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { } const embeddings = await openAIClient.getEmbeddings( env.OPENAI_DEPLOYMENT_NAME ?? "deployment-name", - ["What are the most luxurious hotels?"] + ["What are the most luxurious hotels?"], ); const embedding = embeddings.data[0].embedding; @@ -550,7 +550,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { } const embeddings = await openAIClient.getEmbeddings( env.OPENAI_DEPLOYMENT_NAME ?? "deployment-name", - ["What are the most luxurious hotels?"] + ["What are the most luxurious hotels?"], ); const embedding = embeddings.data[0].embedding; @@ -580,7 +580,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { } assert.deepEqual(["1", "3", "4"], resultIds); }); - } + }, ); }); diff --git a/sdk/search/search-documents/test/public/node/searchIndexClient.spec.ts b/sdk/search/search-documents/test/public/node/searchIndexClient.spec.ts index a715a0a87c28..dd53050e556d 100644 --- a/sdk/search/search-documents/test/public/node/searchIndexClient.spec.ts +++ b/sdk/search/search-documents/test/public/node/searchIndexClient.spec.ts @@ -39,7 +39,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { ({ indexClient, indexName: TEST_INDEX_NAME } = await createClients( serviceVersion, recorder, - TEST_INDEX_NAME + TEST_INDEX_NAME, )); await createSynonymMaps(indexClient); @@ -247,7 +247,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { ({ indexClient, indexName: TEST_INDEX_NAME } = await createClients( serviceVersion, recorder, - TEST_INDEX_NAME + TEST_INDEX_NAME, )); await createSynonymMaps(indexClient); @@ -319,6 +319,6 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { await indexClient.deleteIndex(index); } }); - } + }, ); }); diff --git a/sdk/search/search-documents/test/public/odata.spec.ts b/sdk/search/search-documents/test/public/odata.spec.ts index b44fc6d091bc..e939de63fcba 100644 --- a/sdk/search/search-documents/test/public/odata.spec.ts +++ b/sdk/search/search-documents/test/public/odata.spec.ts @@ -41,7 +41,7 @@ describe("odata", function () { it("many arguments", function () { assert.strictEqual( odata`Foo eq ${2} and Bar eq ${3} and Baz eq ${4} and Qux eq ${5} and Quux eq ${6}`, - "Foo eq 2 and Bar eq 3 and Baz eq 4 and Qux eq 5 and Quux eq 6" + "Foo eq 2 and Bar eq 3 and Baz eq 4 and Qux eq 5 and Quux eq 6", ); }); diff --git a/sdk/search/search-documents/test/public/utils/recordedClient.ts b/sdk/search/search-documents/test/public/utils/recordedClient.ts index cbd7b7e7130f..d6df77d22847 100644 --- a/sdk/search/search-documents/test/public/utils/recordedClient.ts +++ b/sdk/search/search-documents/test/public/utils/recordedClient.ts @@ -62,7 +62,7 @@ const recorderOptions: RecorderStartOptions = { export async function createClients( serviceVersion: string, recorder: Recorder, - indexName: string + indexName: string, ): Promise> { await recorder.start(recorderOptions); @@ -77,26 +77,26 @@ export async function createClients( credential, recorder.configureClientOptions({ serviceVersion, - }) + }), ); const indexClient = new SearchIndexClient( endPoint, credential, recorder.configureClientOptions({ serviceVersion, - }) + }), ); const indexerClient = new SearchIndexerClient( endPoint, credential, recorder.configureClientOptions({ serviceVersion, - }) + }), ); const openAIClient = new OpenAIClient( openAIEndpoint, openAIKey, - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); return { diff --git a/sdk/search/search-documents/test/public/utils/setup.ts b/sdk/search/search-documents/test/public/utils/setup.ts index 70fbbfe30f15..bd7f5580a900 100644 --- a/sdk/search/search-documents/test/public/utils/setup.ts +++ b/sdk/search/search-documents/test/public/utils/setup.ts @@ -21,7 +21,7 @@ export const WAIT_TIME = isPlaybackMode() ? 0 : 4000; export async function createIndex( client: SearchIndexClient, name: string, - serviceVersion: string + serviceVersion: string, ): Promise { const hotelIndex: SearchIndex = { name, @@ -290,7 +290,7 @@ export async function createIndex( export async function populateIndex( client: SearchClient, openAIClient: OpenAIClient, - serviceVersion: string + serviceVersion: string, ): Promise { // test data from https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/Azure.Search.Documents/tests/Utilities/SearchResources.Data.cs const testDocuments: Hotel[] = [ @@ -512,7 +512,7 @@ export async function populateIndex( async function addVectorDescriptions( documents: Hotel[], - openAIClient: OpenAIClient + openAIClient: OpenAIClient, ): Promise { const deploymentName = process.env.OPENAI_DEPLOYMENT_NAME ?? "deployment-name"; @@ -527,7 +527,7 @@ async function addVectorDescriptions( // OpenAI only supports one description at a time at the moment const embeddingsArray = await Promise.all( - descriptions.map((description) => openAIClient.getEmbeddings(deploymentName, [description])) + descriptions.map((description) => openAIClient.getEmbeddings(deploymentName, [description])), ); embeddingsArray.forEach((embeddings, i) => @@ -535,7 +535,7 @@ async function addVectorDescriptions( const { embedding, index: j } = embeddingItem; const document = descriptionMap.get(i + j)!; document.vectorDescription = embedding; - }) + }), ); } @@ -551,7 +551,7 @@ export async function createSkillsets(client: SearchIndexerClient): Promise !testCaseNames.includes(element) + (element) => !testCaseNames.includes(element), ); if (unCommonElements.length > 0) { // There are skillsets which are already existing in this subscription. @@ -608,12 +608,12 @@ export async function deleteSkillsets(client: SearchIndexerClient): Promise { const testCaseNames: string[] = ["my-azure-indexer-1", "my-azure-indexer-2"]; const indexerNames: string[] = await client.listIndexersNames(); const unCommonElements: string[] = indexerNames.filter( - (element) => !testCaseNames.includes(element) + (element) => !testCaseNames.includes(element), ); if (unCommonElements.length > 0) { // There are indexers which are already existing in this subscription. @@ -648,7 +648,7 @@ export async function createSynonymMaps(client: SearchIndexClient): Promise !testCaseNames.includes(element) + (element) => !testCaseNames.includes(element), ); if (unCommonElements.length > 0) { // There are synonym maps which are already existing in this subscription. diff --git a/sdk/servicebus/perf-tests/service-bus-track-1/package.json b/sdk/servicebus/perf-tests/service-bus-track-1/package.json index 3bf08e4f5ac1..896024e9adf0 100644 --- a/sdk/servicebus/perf-tests/service-bus-track-1/package.json +++ b/sdk/servicebus/perf-tests/service-bus-track-1/package.json @@ -14,9 +14,9 @@ "uuid": "^8.3.0" }, "devDependencies": { + "@azure/dev-tool": "^1.0.0", "@types/node": "^8.0.0", "@types/uuid": "^8.0.0", - "prettier": "^2.5.1", "ts-node": "^8.3.0", "tslib": "^2.0.0", "typescript": "~5.2.0" @@ -27,9 +27,9 @@ "build": "tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm test-dist typings *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/servicebus/perf-tests/service-bus/package.json b/sdk/servicebus/perf-tests/service-bus/package.json index 79331d7822fb..7ad0682f1a5c 100644 --- a/sdk/servicebus/perf-tests/service-bus/package.json +++ b/sdk/servicebus/perf-tests/service-bus/package.json @@ -17,11 +17,11 @@ "@types/uuid": "^8.0.0", "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -30,9 +30,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm test-dist typings *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/servicebus/perf-tests/service-bus/test/receiveBatch.spec.ts b/sdk/servicebus/perf-tests/service-bus/test/receiveBatch.spec.ts index e2a477f2c1d2..0c4c834d7d56 100644 --- a/sdk/servicebus/perf-tests/service-bus/test/receiveBatch.spec.ts +++ b/sdk/servicebus/perf-tests/service-bus/test/receiveBatch.spec.ts @@ -61,7 +61,7 @@ export class BatchReceiveTest extends ServiceBusTest { public async runBatch(): Promise { const messages = await this.receiver.receiveMessages( this.parsedOptions["max-message-count"].value, - { maxWaitTimeInMs: 500 } + { maxWaitTimeInMs: 500 }, ); // eslint-disable-next-line @typescript-eslint/no-unused-vars @@ -76,7 +76,7 @@ export class BatchReceiveTest extends ServiceBusTest { export async function sendMessages( sender: ServiceBusSender, numberOfMessages: number, - messageBodySize: number + messageBodySize: number, ) { let count = 0; while (count <= numberOfMessages) { diff --git a/sdk/servicebus/perf-tests/service-bus/test/subscribe.spec.ts b/sdk/servicebus/perf-tests/service-bus/test/subscribe.spec.ts index d6c147bc1dd0..a99f0f10e87a 100644 --- a/sdk/servicebus/perf-tests/service-bus/test/subscribe.spec.ts +++ b/sdk/servicebus/perf-tests/service-bus/test/subscribe.spec.ts @@ -78,7 +78,7 @@ export class SubscribeTest extends EventPerfTest { this.errorRaised(args.error); }, }, - { maxConcurrentCalls: this.parsedOptions["max-concurrent-calls"].value } + { maxConcurrentCalls: this.parsedOptions["max-concurrent-calls"].value }, ); } diff --git a/sdk/servicebus/service-bus/package.json b/sdk/servicebus/service-bus/package.json index 9a5dea074093..34e7d3774c83 100644 --- a/sdk/servicebus/service-bus/package.json +++ b/sdk/servicebus/service-bus/package.json @@ -49,12 +49,12 @@ "build:test:node": "npm run bundle", "build:test": "npm run bundle", "build": "npm run clean && npm run bundle && npm run extract-api", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log coverage coverage-browser .nyc_output", "build:samples": "echo Obsolete.", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"samples/**/*.{ts,js}\" \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"samples/**/*.{ts,js}\" \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "karma start --single-run", "integration-test:node": "dev-tool run test:node-js-input --no-test-proxy=true -- --timeout 600000 --full-trace \"dist-esm/test/internal/**/*.spec.js\" \"dist-esm/test/public/**/*.spec.js\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -156,7 +156,6 @@ "mocha": "^10.0.0", "moment": "^2.24.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "promise": "^8.0.3", "puppeteer": "^19.2.2", "rimraf": "^3.0.0", diff --git a/sdk/servicebus/service-bus/samples-dev/advanced/administrationClient.ts b/sdk/servicebus/service-bus/samples-dev/advanced/administrationClient.ts index 14dee1435dd2..82a55f6a9b77 100644 --- a/sdk/servicebus/service-bus/samples-dev/advanced/administrationClient.ts +++ b/sdk/servicebus/service-bus/samples-dev/advanced/administrationClient.ts @@ -36,9 +36,8 @@ export async function main() { const updateQueueResponse = await serviceBusAdministrationClient.updateQueue(getQueueResponse); console.log("(Updated)max delivery count = ", updateQueueResponse.maxDeliveryCount); - const queueRuntimeProperties = await serviceBusAdministrationClient.getQueueRuntimeProperties( - queueName - ); + const queueRuntimeProperties = + await serviceBusAdministrationClient.getQueueRuntimeProperties(queueName); console.log("Number of messages in the queue = ", queueRuntimeProperties.totalMessageCount); const namespaceInfo = await serviceBusAdministrationClient.getNamespaceProperties(); diff --git a/sdk/servicebus/service-bus/samples-dev/advanced/deferral.ts b/sdk/servicebus/service-bus/samples-dev/advanced/deferral.ts index bdbfd95556fb..66f0327dc7f0 100644 --- a/sdk/servicebus/service-bus/samples-dev/advanced/deferral.ts +++ b/sdk/servicebus/service-bus/samples-dev/advanced/deferral.ts @@ -64,7 +64,7 @@ async function sendMessages() { } catch (err: any) { console.log("Error while sending message", err); } - }) + }), ); } // wait until all the send tasks are complete @@ -105,7 +105,7 @@ async function receiveMessage() { // we dead-letter the message if we don't know what to do with it. console.log( "Unknown message received, moving it to dead-letter queue ", - brokeredMessage.body + brokeredMessage.body, ); await receiver.deadLetterMessage(brokeredMessage); } @@ -118,7 +118,7 @@ async function receiveMessage() { { processMessage, processError }, { autoCompleteMessages: false, - } + }, ); // Disabling autoCompleteMessages so we can control when message can be completed, deferred or deadlettered await delay(10000); await receiver.close(); diff --git a/sdk/servicebus/service-bus/samples-dev/advanced/movingMessagesToDLQ.ts b/sdk/servicebus/service-bus/samples-dev/advanced/movingMessagesToDLQ.ts index a42f12c746d8..a54e4c2a2a34 100644 --- a/sdk/servicebus/service-bus/samples-dev/advanced/movingMessagesToDLQ.ts +++ b/sdk/servicebus/service-bus/samples-dev/advanced/movingMessagesToDLQ.ts @@ -59,7 +59,7 @@ async function receiveMessage() { if (messages.length) { console.log( ">>>>> Deadletter the one message received from the main queue - ", - messages[0].body + messages[0].body, ); // Deadletter the message received await receiver.deadLetterMessage(messages[0], { diff --git a/sdk/servicebus/service-bus/samples-dev/advanced/ruleManager.ts b/sdk/servicebus/service-bus/samples-dev/advanced/ruleManager.ts index d5ca85bffb11..8ccd185dacab 100644 --- a/sdk/servicebus/service-bus/samples-dev/advanced/ruleManager.ts +++ b/sdk/servicebus/service-bus/samples-dev/advanced/ruleManager.ts @@ -76,7 +76,7 @@ async function main() { console.log(" page ", i++); console.log( " ", - page.map((r) => r.name) + page.map((r) => r.name), ); } diff --git a/sdk/servicebus/service-bus/samples-dev/advanced/sessionRoundRobin.ts b/sdk/servicebus/service-bus/samples-dev/advanced/sessionRoundRobin.ts index 7ed576c420c6..8b2315ea00ff 100644 --- a/sdk/servicebus/service-bus/samples-dev/advanced/sessionRoundRobin.ts +++ b/sdk/servicebus/service-bus/samples-dev/advanced/sessionRoundRobin.ts @@ -121,7 +121,7 @@ async function receiveFromNextSession(serviceBusClient: ServiceBusClient): Promi }, { abortSignal: abortController.signal, - } + }, ); }); @@ -147,7 +147,7 @@ async function roundRobinThroughAvailableSessions(): Promise { while (!abortController.signal.aborted) { await receiveFromNextSession(serviceBusClient); } - })() + })(), ); } @@ -160,5 +160,5 @@ async function roundRobinThroughAvailableSessions(): Promise { // To stop the round-robin processing you can just call abortController.abort() roundRobinThroughAvailableSessions().catch((err) => - console.log(`Session RoundRobin - Fatal error: ${err}`) + console.log(`Session RoundRobin - Fatal error: ${err}`), ); diff --git a/sdk/servicebus/service-bus/samples-dev/advanced/sessionState.ts b/sdk/servicebus/service-bus/samples-dev/advanced/sessionState.ts index 057fe83c2e68..fb817dbcd0d9 100644 --- a/sdk/servicebus/service-bus/samples-dev/advanced/sessionState.ts +++ b/sdk/servicebus/service-bus/samples-dev/advanced/sessionState.ts @@ -137,7 +137,7 @@ async function processMessageFromSession(sessionId: string) { } console.log( - `Received message: Customer '${sessionReceiver.sessionId}': '${messages[0].body.event_name} ${messages[0].body.event_details}'` + `Received message: Customer '${sessionReceiver.sessionId}': '${messages[0].body.event_name} ${messages[0].body.event_details}'`, ); await sessionReceiver.completeMessage(messages[0]); } else { diff --git a/sdk/servicebus/service-bus/samples-dev/receiveMessagesStreaming.ts b/sdk/servicebus/service-bus/samples-dev/receiveMessagesStreaming.ts index cb8d3ef2854b..ec9e3b46d3f8 100644 --- a/sdk/servicebus/service-bus/samples-dev/receiveMessagesStreaming.ts +++ b/sdk/servicebus/service-bus/samples-dev/receiveMessagesStreaming.ts @@ -60,7 +60,7 @@ export async function main() { // what is considered fatal for your program. console.log( `An unrecoverable error occurred. Stopping processing. ${args.error.code}`, - args.error + args.error, ); await subscription.close(); break; diff --git a/sdk/servicebus/service-bus/samples-dev/scheduledMessages.ts b/sdk/servicebus/service-bus/samples-dev/scheduledMessages.ts index 261de91b6293..79d829a8e29c 100644 --- a/sdk/servicebus/service-bus/samples-dev/scheduledMessages.ts +++ b/sdk/servicebus/service-bus/samples-dev/scheduledMessages.ts @@ -61,14 +61,14 @@ async function sendScheduledMessages(sbClient: ServiceBusClient) { (scientist): ServiceBusMessage => ({ body: `${scientist.firstName} ${scientist.lastName}`, subject: "Scientist", - }) + }), ); const timeNowUtc = new Date(Date.now()); const scheduledEnqueueTimeUtc = new Date(Date.now() + 10000); console.log(`Time now in UTC: ${timeNowUtc}`); console.log( - `Messages will appear in Service Bus after 10 seconds at: ${scheduledEnqueueTimeUtc}` + `Messages will appear in Service Bus after 10 seconds at: ${scheduledEnqueueTimeUtc}`, ); await sender.scheduleMessages(messages, scheduledEnqueueTimeUtc); diff --git a/sdk/servicebus/service-bus/samples-dev/useProxy.ts b/sdk/servicebus/service-bus/samples-dev/useProxy.ts index 87e1978ca90f..62816d821813 100644 --- a/sdk/servicebus/service-bus/samples-dev/useProxy.ts +++ b/sdk/servicebus/service-bus/samples-dev/useProxy.ts @@ -24,7 +24,7 @@ export async function main() { if (!proxyInfo) { console.error( - "Error: Proxy information not provided, but it is required to run this sample. Exiting." + "Error: Proxy information not provided, but it is required to run this sample. Exiting.", ); return; } diff --git a/sdk/servicebus/service-bus/samples-dev/usingAadAuth.ts b/sdk/servicebus/service-bus/samples-dev/usingAadAuth.ts index bad1368621c6..2a630feab328 100644 --- a/sdk/servicebus/service-bus/samples-dev/usingAadAuth.ts +++ b/sdk/servicebus/service-bus/samples-dev/usingAadAuth.ts @@ -45,7 +45,7 @@ export async function main() { clientId === "" ) { console.log( - `Required environment variables are missing. Please ensure AZURE_TENANT_ID, AZURE_CLIENT_SECRET and AZURE_CLIENT_ID have been set.` + `Required environment variables are missing. Please ensure AZURE_TENANT_ID, AZURE_CLIENT_SECRET and AZURE_CLIENT_ID have been set.`, ); process.exit(1); } diff --git a/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/administrationClient.js b/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/administrationClient.js index 348b2a7dfda9..a02db98779b5 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/administrationClient.js +++ b/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/administrationClient.js @@ -34,9 +34,8 @@ async function main() { const updateQueueResponse = await serviceBusAdministrationClient.updateQueue(getQueueResponse); console.log("(Updated)max delivery count = ", updateQueueResponse.maxDeliveryCount); - const queueRuntimeProperties = await serviceBusAdministrationClient.getQueueRuntimeProperties( - queueName - ); + const queueRuntimeProperties = + await serviceBusAdministrationClient.getQueueRuntimeProperties(queueName); console.log("Number of messages in the queue = ", queueRuntimeProperties.totalMessageCount); const namespaceInfo = await serviceBusAdministrationClient.getNamespaceProperties(); diff --git a/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/deferral.js b/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/deferral.js index 51775c48b1b0..fd4145e14df3 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/deferral.js +++ b/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/deferral.js @@ -56,7 +56,7 @@ async function sendMessages() { } catch (err) { console.log("Error while sending message", err); } - }) + }), ); } // wait until all the send tasks are complete @@ -97,7 +97,7 @@ async function receiveMessage() { // we dead-letter the message if we don't know what to do with it. console.log( "Unknown message received, moving it to dead-letter queue ", - brokeredMessage.body + brokeredMessage.body, ); await receiver.deadLetterMessage(brokeredMessage); } @@ -110,7 +110,7 @@ async function receiveMessage() { { processMessage, processError }, { autoCompleteMessages: false, - } + }, ); // Disabling autoCompleteMessages so we can control when message can be completed, deferred or deadlettered await delay(10000); await receiver.close(); diff --git a/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/movingMessagesToDLQ.js b/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/movingMessagesToDLQ.js index 0d4bfd161211..2ec7fd4395c4 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/movingMessagesToDLQ.js +++ b/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/movingMessagesToDLQ.js @@ -57,7 +57,7 @@ async function receiveMessage() { if (messages.length) { console.log( ">>>>> Deadletter the one message received from the main queue - ", - messages[0].body + messages[0].body, ); // Deadletter the message received await receiver.deadLetterMessage(messages[0], { diff --git a/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/ruleManager.js b/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/ruleManager.js index 4d2faa6cded1..c40f6800b14a 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/ruleManager.js +++ b/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/ruleManager.js @@ -69,7 +69,7 @@ async function main() { console.log(" page ", i++); console.log( " ", - page.map((r) => r.name) + page.map((r) => r.name), ); } diff --git a/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/sessionRoundRobin.js b/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/sessionRoundRobin.js index 9a60fc962eb7..6ecf261fa944 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/sessionRoundRobin.js +++ b/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/sessionRoundRobin.js @@ -114,7 +114,7 @@ async function receiveFromNextSession(serviceBusClient) { }, { abortSignal: abortController.signal, - } + }, ); }); @@ -140,7 +140,7 @@ async function roundRobinThroughAvailableSessions() { while (!abortController.signal.aborted) { await receiveFromNextSession(serviceBusClient); } - })() + })(), ); } @@ -153,5 +153,5 @@ async function roundRobinThroughAvailableSessions() { // To stop the round-robin processing you can just call abortController.abort() roundRobinThroughAvailableSessions().catch((err) => - console.log(`Session RoundRobin - Fatal error: ${err}`) + console.log(`Session RoundRobin - Fatal error: ${err}`), ); diff --git a/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/sessionState.js b/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/sessionState.js index 86679ca43480..844621923d56 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/sessionState.js +++ b/sdk/servicebus/service-bus/samples/v7-beta/javascript/advanced/sessionState.js @@ -135,7 +135,7 @@ async function processMessageFromSession(sessionId) { } console.log( - `Received message: Customer '${sessionReceiver.sessionId}': '${messages[0].body.event_name} ${messages[0].body.event_details}'` + `Received message: Customer '${sessionReceiver.sessionId}': '${messages[0].body.event_name} ${messages[0].body.event_details}'`, ); await sessionReceiver.completeMessage(messages[0]); } else { diff --git a/sdk/servicebus/service-bus/samples/v7-beta/javascript/receiveMessagesStreaming.js b/sdk/servicebus/service-bus/samples/v7-beta/javascript/receiveMessagesStreaming.js index 245a9c0d41ec..e639f5a63284 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/javascript/receiveMessagesStreaming.js +++ b/sdk/servicebus/service-bus/samples/v7-beta/javascript/receiveMessagesStreaming.js @@ -52,7 +52,7 @@ async function main() { // what is considered fatal for your program. console.log( `An unrecoverable error occurred. Stopping processing. ${args.error.code}`, - args.error + args.error, ); await subscription.close(); break; diff --git a/sdk/servicebus/service-bus/samples/v7-beta/javascript/scheduledMessages.js b/sdk/servicebus/service-bus/samples/v7-beta/javascript/scheduledMessages.js index 89942c8b62c7..49845820b34e 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/javascript/scheduledMessages.js +++ b/sdk/servicebus/service-bus/samples/v7-beta/javascript/scheduledMessages.js @@ -58,7 +58,7 @@ async function sendScheduledMessages(sbClient) { const scheduledEnqueueTimeUtc = new Date(Date.now() + 10000); console.log(`Time now in UTC: ${timeNowUtc}`); console.log( - `Messages will appear in Service Bus after 10 seconds at: ${scheduledEnqueueTimeUtc}` + `Messages will appear in Service Bus after 10 seconds at: ${scheduledEnqueueTimeUtc}`, ); await sender.scheduleMessages(messages, scheduledEnqueueTimeUtc); diff --git a/sdk/servicebus/service-bus/samples/v7-beta/javascript/useProxy.js b/sdk/servicebus/service-bus/samples/v7-beta/javascript/useProxy.js index fd4d66761b10..02f9e6b4f232 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/javascript/useProxy.js +++ b/sdk/servicebus/service-bus/samples/v7-beta/javascript/useProxy.js @@ -22,7 +22,7 @@ async function main() { if (!proxyInfo) { console.error( - "Error: Proxy information not provided, but it is required to run this sample. Exiting." + "Error: Proxy information not provided, but it is required to run this sample. Exiting.", ); return; } diff --git a/sdk/servicebus/service-bus/samples/v7-beta/javascript/usingAadAuth.js b/sdk/servicebus/service-bus/samples/v7-beta/javascript/usingAadAuth.js index 73440f7d9c22..66e9b66634c9 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/javascript/usingAadAuth.js +++ b/sdk/servicebus/service-bus/samples/v7-beta/javascript/usingAadAuth.js @@ -43,7 +43,7 @@ async function main() { clientId === "" ) { console.log( - `Required environment variables are missing. Please ensure AZURE_TENANT_ID, AZURE_CLIENT_SECRET and AZURE_CLIENT_ID have been set.` + `Required environment variables are missing. Please ensure AZURE_TENANT_ID, AZURE_CLIENT_SECRET and AZURE_CLIENT_ID have been set.`, ); process.exit(1); } diff --git a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/administrationClient.ts b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/administrationClient.ts index e62cb2552c05..df4d8c55e3e5 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/administrationClient.ts +++ b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/administrationClient.ts @@ -35,9 +35,8 @@ export async function main() { const updateQueueResponse = await serviceBusAdministrationClient.updateQueue(getQueueResponse); console.log("(Updated)max delivery count = ", updateQueueResponse.maxDeliveryCount); - const queueRuntimeProperties = await serviceBusAdministrationClient.getQueueRuntimeProperties( - queueName - ); + const queueRuntimeProperties = + await serviceBusAdministrationClient.getQueueRuntimeProperties(queueName); console.log("Number of messages in the queue = ", queueRuntimeProperties.totalMessageCount); const namespaceInfo = await serviceBusAdministrationClient.getNamespaceProperties(); diff --git a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/deferral.ts b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/deferral.ts index b6bf51e8a8fb..5fb31c0cf505 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/deferral.ts +++ b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/deferral.ts @@ -63,7 +63,7 @@ async function sendMessages() { } catch (err: any) { console.log("Error while sending message", err); } - }) + }), ); } // wait until all the send tasks are complete @@ -104,7 +104,7 @@ async function receiveMessage() { // we dead-letter the message if we don't know what to do with it. console.log( "Unknown message received, moving it to dead-letter queue ", - brokeredMessage.body + brokeredMessage.body, ); await receiver.deadLetterMessage(brokeredMessage); } @@ -117,7 +117,7 @@ async function receiveMessage() { { processMessage, processError }, { autoCompleteMessages: false, - } + }, ); // Disabling autoCompleteMessages so we can control when message can be completed, deferred or deadlettered await delay(10000); await receiver.close(); diff --git a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/movingMessagesToDLQ.ts b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/movingMessagesToDLQ.ts index bcf15f269a9d..510f03b5593d 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/movingMessagesToDLQ.ts +++ b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/movingMessagesToDLQ.ts @@ -58,7 +58,7 @@ async function receiveMessage() { if (messages.length) { console.log( ">>>>> Deadletter the one message received from the main queue - ", - messages[0].body + messages[0].body, ); // Deadletter the message received await receiver.deadLetterMessage(messages[0], { diff --git a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/ruleManager.ts b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/ruleManager.ts index cfbc7d8556a9..e8154bfbedc0 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/ruleManager.ts +++ b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/ruleManager.ts @@ -75,7 +75,7 @@ async function main() { console.log(" page ", i++); console.log( " ", - page.map((r) => r.name) + page.map((r) => r.name), ); } diff --git a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/sessionRoundRobin.ts b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/sessionRoundRobin.ts index 41cd43f9e2fb..7687b3d6da0c 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/sessionRoundRobin.ts +++ b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/sessionRoundRobin.ts @@ -120,7 +120,7 @@ async function receiveFromNextSession(serviceBusClient: ServiceBusClient): Promi }, { abortSignal: abortController.signal, - } + }, ); }); @@ -146,7 +146,7 @@ async function roundRobinThroughAvailableSessions(): Promise { while (!abortController.signal.aborted) { await receiveFromNextSession(serviceBusClient); } - })() + })(), ); } @@ -159,5 +159,5 @@ async function roundRobinThroughAvailableSessions(): Promise { // To stop the round-robin processing you can just call abortController.abort() roundRobinThroughAvailableSessions().catch((err) => - console.log(`Session RoundRobin - Fatal error: ${err}`) + console.log(`Session RoundRobin - Fatal error: ${err}`), ); diff --git a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/sessionState.ts b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/sessionState.ts index 77c868bc754f..29a8268cf335 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/sessionState.ts +++ b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/advanced/sessionState.ts @@ -136,7 +136,7 @@ async function processMessageFromSession(sessionId: string) { } console.log( - `Received message: Customer '${sessionReceiver.sessionId}': '${messages[0].body.event_name} ${messages[0].body.event_details}'` + `Received message: Customer '${sessionReceiver.sessionId}': '${messages[0].body.event_name} ${messages[0].body.event_details}'`, ); await sessionReceiver.completeMessage(messages[0]); } else { diff --git a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/receiveMessagesStreaming.ts b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/receiveMessagesStreaming.ts index f26a0741ccb9..f481b0fda774 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/receiveMessagesStreaming.ts +++ b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/receiveMessagesStreaming.ts @@ -59,7 +59,7 @@ export async function main() { // what is considered fatal for your program. console.log( `An unrecoverable error occurred. Stopping processing. ${args.error.code}`, - args.error + args.error, ); await subscription.close(); break; diff --git a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/scheduledMessages.ts b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/scheduledMessages.ts index 4333533703d6..5ecceacaf0cd 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/scheduledMessages.ts +++ b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/scheduledMessages.ts @@ -60,14 +60,14 @@ async function sendScheduledMessages(sbClient: ServiceBusClient) { (scientist): ServiceBusMessage => ({ body: `${scientist.firstName} ${scientist.lastName}`, subject: "Scientist", - }) + }), ); const timeNowUtc = new Date(Date.now()); const scheduledEnqueueTimeUtc = new Date(Date.now() + 10000); console.log(`Time now in UTC: ${timeNowUtc}`); console.log( - `Messages will appear in Service Bus after 10 seconds at: ${scheduledEnqueueTimeUtc}` + `Messages will appear in Service Bus after 10 seconds at: ${scheduledEnqueueTimeUtc}`, ); await sender.scheduleMessages(messages, scheduledEnqueueTimeUtc); diff --git a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/useProxy.ts b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/useProxy.ts index cb0e94b3fd50..052eb8daf849 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/useProxy.ts +++ b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/useProxy.ts @@ -23,7 +23,7 @@ export async function main() { if (!proxyInfo) { console.error( - "Error: Proxy information not provided, but it is required to run this sample. Exiting." + "Error: Proxy information not provided, but it is required to run this sample. Exiting.", ); return; } diff --git a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/usingAadAuth.ts b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/usingAadAuth.ts index 96a59ad831a6..2764005a82f8 100644 --- a/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/usingAadAuth.ts +++ b/sdk/servicebus/service-bus/samples/v7-beta/typescript/src/usingAadAuth.ts @@ -44,7 +44,7 @@ export async function main() { clientId === "" ) { console.log( - `Required environment variables are missing. Please ensure AZURE_TENANT_ID, AZURE_CLIENT_SECRET and AZURE_CLIENT_ID have been set.` + `Required environment variables are missing. Please ensure AZURE_TENANT_ID, AZURE_CLIENT_SECRET and AZURE_CLIENT_ID have been set.`, ); process.exit(1); } diff --git a/sdk/servicebus/service-bus/samples/v7/javascript/advanced/administrationClient.js b/sdk/servicebus/service-bus/samples/v7/javascript/advanced/administrationClient.js index 348b2a7dfda9..a02db98779b5 100644 --- a/sdk/servicebus/service-bus/samples/v7/javascript/advanced/administrationClient.js +++ b/sdk/servicebus/service-bus/samples/v7/javascript/advanced/administrationClient.js @@ -34,9 +34,8 @@ async function main() { const updateQueueResponse = await serviceBusAdministrationClient.updateQueue(getQueueResponse); console.log("(Updated)max delivery count = ", updateQueueResponse.maxDeliveryCount); - const queueRuntimeProperties = await serviceBusAdministrationClient.getQueueRuntimeProperties( - queueName - ); + const queueRuntimeProperties = + await serviceBusAdministrationClient.getQueueRuntimeProperties(queueName); console.log("Number of messages in the queue = ", queueRuntimeProperties.totalMessageCount); const namespaceInfo = await serviceBusAdministrationClient.getNamespaceProperties(); diff --git a/sdk/servicebus/service-bus/samples/v7/javascript/advanced/deferral.js b/sdk/servicebus/service-bus/samples/v7/javascript/advanced/deferral.js index 51775c48b1b0..fd4145e14df3 100644 --- a/sdk/servicebus/service-bus/samples/v7/javascript/advanced/deferral.js +++ b/sdk/servicebus/service-bus/samples/v7/javascript/advanced/deferral.js @@ -56,7 +56,7 @@ async function sendMessages() { } catch (err) { console.log("Error while sending message", err); } - }) + }), ); } // wait until all the send tasks are complete @@ -97,7 +97,7 @@ async function receiveMessage() { // we dead-letter the message if we don't know what to do with it. console.log( "Unknown message received, moving it to dead-letter queue ", - brokeredMessage.body + brokeredMessage.body, ); await receiver.deadLetterMessage(brokeredMessage); } @@ -110,7 +110,7 @@ async function receiveMessage() { { processMessage, processError }, { autoCompleteMessages: false, - } + }, ); // Disabling autoCompleteMessages so we can control when message can be completed, deferred or deadlettered await delay(10000); await receiver.close(); diff --git a/sdk/servicebus/service-bus/samples/v7/javascript/advanced/movingMessagesToDLQ.js b/sdk/servicebus/service-bus/samples/v7/javascript/advanced/movingMessagesToDLQ.js index 0d4bfd161211..2ec7fd4395c4 100644 --- a/sdk/servicebus/service-bus/samples/v7/javascript/advanced/movingMessagesToDLQ.js +++ b/sdk/servicebus/service-bus/samples/v7/javascript/advanced/movingMessagesToDLQ.js @@ -57,7 +57,7 @@ async function receiveMessage() { if (messages.length) { console.log( ">>>>> Deadletter the one message received from the main queue - ", - messages[0].body + messages[0].body, ); // Deadletter the message received await receiver.deadLetterMessage(messages[0], { diff --git a/sdk/servicebus/service-bus/samples/v7/javascript/advanced/ruleManager.js b/sdk/servicebus/service-bus/samples/v7/javascript/advanced/ruleManager.js index 4d2faa6cded1..c40f6800b14a 100644 --- a/sdk/servicebus/service-bus/samples/v7/javascript/advanced/ruleManager.js +++ b/sdk/servicebus/service-bus/samples/v7/javascript/advanced/ruleManager.js @@ -69,7 +69,7 @@ async function main() { console.log(" page ", i++); console.log( " ", - page.map((r) => r.name) + page.map((r) => r.name), ); } diff --git a/sdk/servicebus/service-bus/samples/v7/javascript/advanced/sessionRoundRobin.js b/sdk/servicebus/service-bus/samples/v7/javascript/advanced/sessionRoundRobin.js index 9a60fc962eb7..6ecf261fa944 100644 --- a/sdk/servicebus/service-bus/samples/v7/javascript/advanced/sessionRoundRobin.js +++ b/sdk/servicebus/service-bus/samples/v7/javascript/advanced/sessionRoundRobin.js @@ -114,7 +114,7 @@ async function receiveFromNextSession(serviceBusClient) { }, { abortSignal: abortController.signal, - } + }, ); }); @@ -140,7 +140,7 @@ async function roundRobinThroughAvailableSessions() { while (!abortController.signal.aborted) { await receiveFromNextSession(serviceBusClient); } - })() + })(), ); } @@ -153,5 +153,5 @@ async function roundRobinThroughAvailableSessions() { // To stop the round-robin processing you can just call abortController.abort() roundRobinThroughAvailableSessions().catch((err) => - console.log(`Session RoundRobin - Fatal error: ${err}`) + console.log(`Session RoundRobin - Fatal error: ${err}`), ); diff --git a/sdk/servicebus/service-bus/samples/v7/javascript/advanced/sessionState.js b/sdk/servicebus/service-bus/samples/v7/javascript/advanced/sessionState.js index 86679ca43480..844621923d56 100644 --- a/sdk/servicebus/service-bus/samples/v7/javascript/advanced/sessionState.js +++ b/sdk/servicebus/service-bus/samples/v7/javascript/advanced/sessionState.js @@ -135,7 +135,7 @@ async function processMessageFromSession(sessionId) { } console.log( - `Received message: Customer '${sessionReceiver.sessionId}': '${messages[0].body.event_name} ${messages[0].body.event_details}'` + `Received message: Customer '${sessionReceiver.sessionId}': '${messages[0].body.event_name} ${messages[0].body.event_details}'`, ); await sessionReceiver.completeMessage(messages[0]); } else { diff --git a/sdk/servicebus/service-bus/samples/v7/javascript/receiveMessagesStreaming.js b/sdk/servicebus/service-bus/samples/v7/javascript/receiveMessagesStreaming.js index 245a9c0d41ec..e639f5a63284 100644 --- a/sdk/servicebus/service-bus/samples/v7/javascript/receiveMessagesStreaming.js +++ b/sdk/servicebus/service-bus/samples/v7/javascript/receiveMessagesStreaming.js @@ -52,7 +52,7 @@ async function main() { // what is considered fatal for your program. console.log( `An unrecoverable error occurred. Stopping processing. ${args.error.code}`, - args.error + args.error, ); await subscription.close(); break; diff --git a/sdk/servicebus/service-bus/samples/v7/javascript/scheduledMessages.js b/sdk/servicebus/service-bus/samples/v7/javascript/scheduledMessages.js index 89942c8b62c7..49845820b34e 100644 --- a/sdk/servicebus/service-bus/samples/v7/javascript/scheduledMessages.js +++ b/sdk/servicebus/service-bus/samples/v7/javascript/scheduledMessages.js @@ -58,7 +58,7 @@ async function sendScheduledMessages(sbClient) { const scheduledEnqueueTimeUtc = new Date(Date.now() + 10000); console.log(`Time now in UTC: ${timeNowUtc}`); console.log( - `Messages will appear in Service Bus after 10 seconds at: ${scheduledEnqueueTimeUtc}` + `Messages will appear in Service Bus after 10 seconds at: ${scheduledEnqueueTimeUtc}`, ); await sender.scheduleMessages(messages, scheduledEnqueueTimeUtc); diff --git a/sdk/servicebus/service-bus/samples/v7/javascript/useProxy.js b/sdk/servicebus/service-bus/samples/v7/javascript/useProxy.js index fd4d66761b10..02f9e6b4f232 100644 --- a/sdk/servicebus/service-bus/samples/v7/javascript/useProxy.js +++ b/sdk/servicebus/service-bus/samples/v7/javascript/useProxy.js @@ -22,7 +22,7 @@ async function main() { if (!proxyInfo) { console.error( - "Error: Proxy information not provided, but it is required to run this sample. Exiting." + "Error: Proxy information not provided, but it is required to run this sample. Exiting.", ); return; } diff --git a/sdk/servicebus/service-bus/samples/v7/javascript/usingAadAuth.js b/sdk/servicebus/service-bus/samples/v7/javascript/usingAadAuth.js index ccd48be6cb1c..32b3343c7c52 100644 --- a/sdk/servicebus/service-bus/samples/v7/javascript/usingAadAuth.js +++ b/sdk/servicebus/service-bus/samples/v7/javascript/usingAadAuth.js @@ -43,7 +43,7 @@ async function main() { clientId === "" ) { console.log( - `Required environment variables are missing. Please ensure AZURE_TENANT_ID, AZURE_CLIENT_SECRET and AZURE_CLIENT_ID have been set.` + `Required environment variables are missing. Please ensure AZURE_TENANT_ID, AZURE_CLIENT_SECRET and AZURE_CLIENT_ID have been set.`, ); process.exit(1); } diff --git a/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/administrationClient.ts b/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/administrationClient.ts index e62cb2552c05..df4d8c55e3e5 100644 --- a/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/administrationClient.ts +++ b/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/administrationClient.ts @@ -35,9 +35,8 @@ export async function main() { const updateQueueResponse = await serviceBusAdministrationClient.updateQueue(getQueueResponse); console.log("(Updated)max delivery count = ", updateQueueResponse.maxDeliveryCount); - const queueRuntimeProperties = await serviceBusAdministrationClient.getQueueRuntimeProperties( - queueName - ); + const queueRuntimeProperties = + await serviceBusAdministrationClient.getQueueRuntimeProperties(queueName); console.log("Number of messages in the queue = ", queueRuntimeProperties.totalMessageCount); const namespaceInfo = await serviceBusAdministrationClient.getNamespaceProperties(); diff --git a/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/deferral.ts b/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/deferral.ts index b6bf51e8a8fb..5fb31c0cf505 100644 --- a/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/deferral.ts +++ b/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/deferral.ts @@ -63,7 +63,7 @@ async function sendMessages() { } catch (err: any) { console.log("Error while sending message", err); } - }) + }), ); } // wait until all the send tasks are complete @@ -104,7 +104,7 @@ async function receiveMessage() { // we dead-letter the message if we don't know what to do with it. console.log( "Unknown message received, moving it to dead-letter queue ", - brokeredMessage.body + brokeredMessage.body, ); await receiver.deadLetterMessage(brokeredMessage); } @@ -117,7 +117,7 @@ async function receiveMessage() { { processMessage, processError }, { autoCompleteMessages: false, - } + }, ); // Disabling autoCompleteMessages so we can control when message can be completed, deferred or deadlettered await delay(10000); await receiver.close(); diff --git a/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/movingMessagesToDLQ.ts b/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/movingMessagesToDLQ.ts index bcf15f269a9d..510f03b5593d 100644 --- a/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/movingMessagesToDLQ.ts +++ b/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/movingMessagesToDLQ.ts @@ -58,7 +58,7 @@ async function receiveMessage() { if (messages.length) { console.log( ">>>>> Deadletter the one message received from the main queue - ", - messages[0].body + messages[0].body, ); // Deadletter the message received await receiver.deadLetterMessage(messages[0], { diff --git a/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/ruleManager.ts b/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/ruleManager.ts index cfbc7d8556a9..e8154bfbedc0 100644 --- a/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/ruleManager.ts +++ b/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/ruleManager.ts @@ -75,7 +75,7 @@ async function main() { console.log(" page ", i++); console.log( " ", - page.map((r) => r.name) + page.map((r) => r.name), ); } diff --git a/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/sessionRoundRobin.ts b/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/sessionRoundRobin.ts index 41cd43f9e2fb..7687b3d6da0c 100644 --- a/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/sessionRoundRobin.ts +++ b/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/sessionRoundRobin.ts @@ -120,7 +120,7 @@ async function receiveFromNextSession(serviceBusClient: ServiceBusClient): Promi }, { abortSignal: abortController.signal, - } + }, ); }); @@ -146,7 +146,7 @@ async function roundRobinThroughAvailableSessions(): Promise { while (!abortController.signal.aborted) { await receiveFromNextSession(serviceBusClient); } - })() + })(), ); } @@ -159,5 +159,5 @@ async function roundRobinThroughAvailableSessions(): Promise { // To stop the round-robin processing you can just call abortController.abort() roundRobinThroughAvailableSessions().catch((err) => - console.log(`Session RoundRobin - Fatal error: ${err}`) + console.log(`Session RoundRobin - Fatal error: ${err}`), ); diff --git a/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/sessionState.ts b/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/sessionState.ts index 77c868bc754f..29a8268cf335 100644 --- a/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/sessionState.ts +++ b/sdk/servicebus/service-bus/samples/v7/typescript/src/advanced/sessionState.ts @@ -136,7 +136,7 @@ async function processMessageFromSession(sessionId: string) { } console.log( - `Received message: Customer '${sessionReceiver.sessionId}': '${messages[0].body.event_name} ${messages[0].body.event_details}'` + `Received message: Customer '${sessionReceiver.sessionId}': '${messages[0].body.event_name} ${messages[0].body.event_details}'`, ); await sessionReceiver.completeMessage(messages[0]); } else { diff --git a/sdk/servicebus/service-bus/samples/v7/typescript/src/receiveMessagesStreaming.ts b/sdk/servicebus/service-bus/samples/v7/typescript/src/receiveMessagesStreaming.ts index f26a0741ccb9..f481b0fda774 100644 --- a/sdk/servicebus/service-bus/samples/v7/typescript/src/receiveMessagesStreaming.ts +++ b/sdk/servicebus/service-bus/samples/v7/typescript/src/receiveMessagesStreaming.ts @@ -59,7 +59,7 @@ export async function main() { // what is considered fatal for your program. console.log( `An unrecoverable error occurred. Stopping processing. ${args.error.code}`, - args.error + args.error, ); await subscription.close(); break; diff --git a/sdk/servicebus/service-bus/samples/v7/typescript/src/scheduledMessages.ts b/sdk/servicebus/service-bus/samples/v7/typescript/src/scheduledMessages.ts index 4333533703d6..5ecceacaf0cd 100644 --- a/sdk/servicebus/service-bus/samples/v7/typescript/src/scheduledMessages.ts +++ b/sdk/servicebus/service-bus/samples/v7/typescript/src/scheduledMessages.ts @@ -60,14 +60,14 @@ async function sendScheduledMessages(sbClient: ServiceBusClient) { (scientist): ServiceBusMessage => ({ body: `${scientist.firstName} ${scientist.lastName}`, subject: "Scientist", - }) + }), ); const timeNowUtc = new Date(Date.now()); const scheduledEnqueueTimeUtc = new Date(Date.now() + 10000); console.log(`Time now in UTC: ${timeNowUtc}`); console.log( - `Messages will appear in Service Bus after 10 seconds at: ${scheduledEnqueueTimeUtc}` + `Messages will appear in Service Bus after 10 seconds at: ${scheduledEnqueueTimeUtc}`, ); await sender.scheduleMessages(messages, scheduledEnqueueTimeUtc); diff --git a/sdk/servicebus/service-bus/samples/v7/typescript/src/useProxy.ts b/sdk/servicebus/service-bus/samples/v7/typescript/src/useProxy.ts index cb0e94b3fd50..052eb8daf849 100644 --- a/sdk/servicebus/service-bus/samples/v7/typescript/src/useProxy.ts +++ b/sdk/servicebus/service-bus/samples/v7/typescript/src/useProxy.ts @@ -23,7 +23,7 @@ export async function main() { if (!proxyInfo) { console.error( - "Error: Proxy information not provided, but it is required to run this sample. Exiting." + "Error: Proxy information not provided, but it is required to run this sample. Exiting.", ); return; } diff --git a/sdk/servicebus/service-bus/samples/v7/typescript/src/usingAadAuth.ts b/sdk/servicebus/service-bus/samples/v7/typescript/src/usingAadAuth.ts index e6524edf0a2f..3e092ee78b8d 100644 --- a/sdk/servicebus/service-bus/samples/v7/typescript/src/usingAadAuth.ts +++ b/sdk/servicebus/service-bus/samples/v7/typescript/src/usingAadAuth.ts @@ -44,7 +44,7 @@ export async function main() { clientId === "" ) { console.log( - `Required environment variables are missing. Please ensure AZURE_TENANT_ID, AZURE_CLIENT_SECRET and AZURE_CLIENT_ID have been set.` + `Required environment variables are missing. Please ensure AZURE_TENANT_ID, AZURE_CLIENT_SECRET and AZURE_CLIENT_ID have been set.`, ); process.exit(1); } diff --git a/sdk/servicebus/service-bus/src/connectionContext.ts b/sdk/servicebus/service-bus/src/connectionContext.ts index 1b5dacad3cf0..3899d99c8bdb 100644 --- a/sdk/servicebus/service-bus/src/connectionContext.ts +++ b/sdk/servicebus/service-bus/src/connectionContext.ts @@ -77,7 +77,7 @@ export interface ConnectionContext extends ConnectionContextBase { */ getReceiverFromCache( receiverName: string, - sessionId?: string + sessionId?: string, ): MessageReceiver | MessageSession | undefined; /** * Gets the management client for given entity path from the cache @@ -141,7 +141,7 @@ type ConnectionContextMethods = Omit< async function callOnDetachedOnReceivers( connectionContext: ConnectionContext, contextOrConnectionError: Error | ConnectionError | AmqpError | undefined, - receiverType: NonSessionReceiverType + receiverType: NonSessionReceiverType, ): Promise { const detachCalls: Promise[] = []; @@ -153,7 +153,7 @@ async function callOnDetachedOnReceivers( "[%s] calling detached on %s receiver '%s'.", connectionContext.connection.id, receiver.receiverType, - receiver.name + receiver.name, ); detachCalls.push( receiver.onDetached(contextOrConnectionError).catch((err) => { @@ -162,9 +162,9 @@ async function callOnDetachedOnReceivers( "[%s] An error occurred while calling onDetached() on the %s receiver '%s'", connectionContext.connection.id, receiver.receiverType, - receiver.name + receiver.name, ); - }) + }), ); } } @@ -177,7 +177,7 @@ async function callOnDetachedOnReceivers( */ async function callOnDetachedOnSessionReceivers( connectionContext: ConnectionContext, - contextOrConnectionError: Error | ConnectionError | AmqpError | undefined + contextOrConnectionError: Error | ConnectionError | AmqpError | undefined, ): Promise { const getSessionError = (sessionId: string, entityPath: string): ServiceBusError => { const sessionInfo = @@ -203,7 +203,7 @@ async function callOnDetachedOnSessionReceivers( logger.verbose( "[%s] calling detached on %s receiver(sessions).", connectionContext.connection.id, - receiver.name + receiver.name, ); detachCalls.push( receiver.onDetached(getSessionError(receiver.sessionId, receiver.entityPath)).catch((err) => { @@ -211,9 +211,9 @@ async function callOnDetachedOnSessionReceivers( err, "[%s] An error occurred while calling onDetached() on the session receiver(sessions) '%s'", connectionContext.connection.id, - receiver.name + receiver.name, ); - }) + }), ); } @@ -226,7 +226,7 @@ async function callOnDetachedOnSessionReceivers( */ function getNumberOfReceivers( connectionContext: Pick, - receiverType: ReceiverType + receiverType: ReceiverType, ): number { if (receiverType === "session") { const receivers = connectionContext.messageSessions; @@ -236,7 +236,7 @@ function getNumberOfReceivers( const receiverNames = Object.keys(receivers); const count = receiverNames.reduce( (acc, name) => (receivers[name].receiverType === receiverType ? ++acc : acc), - 0 + 0, ); return count; } @@ -249,11 +249,11 @@ export namespace ConnectionContext { export function create( config: ConnectionConfig, tokenCredential: SasTokenProvider | TokenCredential, - options?: ServiceBusClientOptions + options?: ServiceBusClientOptions, ): ConnectionContext { if (!options) options = {}; const userAgent = `${formatUserAgentPrefix( - options.userAgentOptions?.userAgentPrefix + options.userAgentOptions?.userAgentPrefix, )} ${getRuntimeInfo()}`; const parameters: CreateConnectionContextBaseParameters = { config: config, @@ -284,14 +284,14 @@ export namespace ConnectionContext { }, async readyToOpenLink() { logger.verbose( - `[${this.connectionId}] Waiting until the connection is ready to open link.` + `[${this.connectionId}] Waiting until the connection is ready to open link.`, ); // Check that the connection isn't in the process of closing. // This can happen when the idle timeout has been reached but // the underlying socket is waiting to be destroyed. if (this.isConnectionClosing()) { logger.verbose( - `[${this.connectionId}] Connection is closing, waiting for disconnected event` + `[${this.connectionId}] Connection is closing, waiting for disconnected event`, ); // Wait for the disconnected event that indicates the underlying socket has closed. await this.waitForDisconnectedEvent(); @@ -306,7 +306,7 @@ export namespace ConnectionContext { logger.verbose( `[${this.connectionId}] Attempting to reinitialize connection` + ` but the connection is in the process of closing.` + - ` Waiting for the disconnect event before continuing.` + ` Waiting for the disconnect event before continuing.`, ); this.connection.once(ConnectionEvents.disconnected, resolve); }); @@ -319,13 +319,13 @@ export namespace ConnectionContext { } logger.verbose( - `[${this.connectionId}] Connection not waiting to be reset. Resolving immediately.` + `[${this.connectionId}] Connection not waiting to be reset. Resolving immediately.`, ); return Promise.resolve(); }, getReceiverFromCache( receiverName: string, - sessionId?: string + sessionId?: string, ): MessageReceiver | MessageSession | undefined { if (sessionId != null && this.messageSessions[receiverName]) { return this.messageSessions[receiverName]; @@ -352,7 +352,7 @@ export namespace ConnectionContext { "[%s] Failed to find receiver '%s' among existing receivers: %s", this.connectionId, receiverName, - existingReceivers + existingReceivers, ); return; }, @@ -373,7 +373,7 @@ export namespace ConnectionContext { logger.verbose( "[%s] setting 'wasConnectionCloseCalled' property of connection context to %s.", connectionContext.connection.id, - connectionContext.wasConnectionCloseCalled + connectionContext.wasConnectionCloseCalled, ); }; @@ -392,7 +392,7 @@ export namespace ConnectionContext { logger.logError( connectionError, "[%s] Error (context.connection.error) occurred on the amqp connection", - connectionContext.connection.id + connectionContext.connection.id, ); } const contextError = context.error; @@ -400,7 +400,7 @@ export namespace ConnectionContext { logger.logError( contextError, "[%s] Error (context.error) occurred on the amqp connection", - connectionContext.connection.id + connectionContext.connection.id, ); } const state: Readonly<{ @@ -441,7 +441,7 @@ export namespace ConnectionContext { // because any new send calls that potentially initialize links would also get affected if called later. logger.verbose( `[${connectionContext.connection.id}] connection.close() was not called from the sdk and there were ${state.numSenders} ` + - `senders. We should not reconnect.` + `senders. We should not reconnect.`, ); const detachCalls: Promise[] = []; for (const senderName of Object.keys(connectionContext.senders)) { @@ -450,7 +450,7 @@ export namespace ConnectionContext { logger.verbose( "[%s] calling detached on sender '%s'.", connectionContext.connection.id, - sender.name + sender.name, ); detachCalls.push( sender.onDetached().catch((err) => { @@ -458,9 +458,9 @@ export namespace ConnectionContext { err, "[%s] An error occurred while calling onDetached() the sender '%s'", connectionContext.connection.id, - sender.name + sender.name, ); - }) + }), ); } } @@ -472,14 +472,14 @@ export namespace ConnectionContext { if (numBatchingReceivers) { logger.verbose( `[${connectionContext.connection.id}] connection.close() was not called from the sdk and there were ${numBatchingReceivers} ` + - `batching receivers. We should not reconnect.` + `batching receivers. We should not reconnect.`, ); // Call onDetached() on receivers so that batching receivers it can gracefully close any ongoing batch operation await callOnDetachedOnReceivers( connectionContext, connectionError || contextError, - "batching" + "batching", ); } @@ -488,12 +488,12 @@ export namespace ConnectionContext { if (numSessionReceivers) { logger.verbose( `[${connectionContext.connection.id}] connection.close() was not called from the sdk and there were ${numSessionReceivers} ` + - `session receivers. We should close them.` + `session receivers. We should close them.`, ); await callOnDetachedOnSessionReceivers( connectionContext, - connectionError || contextError + connectionError || contextError, ); } } @@ -509,7 +509,7 @@ export namespace ConnectionContext { if (!state.wasConnectionCloseCalled && numStreamingReceivers) { logger.verbose( `[${connectionContext.connection.id}] connection.close() was not called from the sdk and there were ${numStreamingReceivers} ` + - `streaming receivers. We should reconnect.` + `streaming receivers. We should reconnect.`, ); // Calling `onDetached()` on streaming receivers after the refreshConnection() since `onDetached()` would @@ -520,7 +520,7 @@ export namespace ConnectionContext { await callOnDetachedOnReceivers( connectionContext, connectionError || contextError, - "streaming" + "streaming", ); } }; @@ -530,14 +530,14 @@ export namespace ConnectionContext { logger.logError( context.connection.error, "[%s] Error (context.connection.error) occurred on the amqp connection", - connectionContext.connection.id + connectionContext.connection.id, ); } if (context.error) { logger.logError( context.error, "[%s] Error (context.error) occurred on the amqp connection", - connectionContext.connection.id + connectionContext.connection.id, ); } }; @@ -547,14 +547,14 @@ export namespace ConnectionContext { logger.logError( context.connection.error, "[%s] Error (context.connection.error) occurred on the amqp connection", - connectionContext.connection.id + connectionContext.connection.id, ); } if (context.error) { logger.logError( context.error, "[%s] Error (context.error) occurred on the amqp connection", - connectionContext.connection.id + connectionContext.connection.id, ); } }; @@ -566,14 +566,14 @@ export namespace ConnectionContext { } catch (err: any) { logger.logError( err, - `[${connectionContext.connectionId}] There was an error closing the connection before reconnecting` + `[${connectionContext.connectionId}] There was an error closing the connection before reconnecting`, ); } // Create a new connection, id, locks, and cbs client. connectionContext.refreshConnection(); addConnectionListeners(connectionContext.connection); logger.verbose( - `The connection "${originalConnectionId}" has been updated to "${connectionContext.connectionId}".` + `The connection "${originalConnectionId}" has been updated to "${connectionContext.connectionId}".`, ); } @@ -589,7 +589,7 @@ export namespace ConnectionContext { // Remove listeners from the connection object. connectionContext.connection.removeListener( ConnectionEvents.connectionOpen, - onConnectionOpen + onConnectionOpen, ); connectionContext.connection.removeListener(ConnectionEvents.disconnected, disconnected); connectionContext.connection.removeListener(ConnectionEvents.protocolError, protocolError); @@ -624,7 +624,7 @@ export namespace ConnectionContext { const messageSessionNames = Object.keys(context.messageSessions); const managementClientsEntityPaths = Object.keys(context.managementClients); logger.verbose( - `${logPrefix} Permanently closing all the senders(${senderNames.length}), MessageReceivers(${messageReceiverNames.length}), MessageSessions(${messageSessionNames.length}), and ManagementClients(${managementClientsEntityPaths.length}).` + `${logPrefix} Permanently closing all the senders(${senderNames.length}), MessageReceivers(${messageReceiverNames.length}), MessageSessions(${messageSessionNames.length}), and ManagementClients(${managementClientsEntityPaths.length}).`, ); await Promise.all([ ...senderNames.map((n) => context.senders[n].close()), diff --git a/sdk/servicebus/service-bus/src/constructorHelpers.ts b/sdk/servicebus/service-bus/src/constructorHelpers.ts index f2774a951683..91f86d70d31f 100644 --- a/sdk/servicebus/service-bus/src/constructorHelpers.ts +++ b/sdk/servicebus/service-bus/src/constructorHelpers.ts @@ -108,7 +108,7 @@ function setCustomEndpointAddress(config: ConnectionConfig, customEndpointAddres export function createConnectionContext( connectionString: string, credential: SasTokenProvider | TokenCredential, - options: ServiceBusClientOptions + options: ServiceBusClientOptions, ): ConnectionContext { const config = ConnectionConfig.create(connectionString); @@ -128,7 +128,7 @@ export function createConnectionContext( */ export function createConnectionContextForConnectionString( connectionString: string, - options: ServiceBusClientOptions = {} + options: ServiceBusClientOptions = {}, ): ConnectionContext { const parsed = parseServiceBusConnectionString(connectionString) as Required< | Pick @@ -145,7 +145,7 @@ export function createConnectionContextForConnectionString( export function createConnectionContextForCredential( credential: TokenCredential | NamedKeyCredential | SASCredential, host: string, - options: ServiceBusClientOptions = {} + options: ServiceBusClientOptions = {}, ): ConnectionContext { if (typeof host !== "string") { throw new TypeError("`host` parameter is not a string"); diff --git a/sdk/servicebus/service-bus/src/core/autoLockRenewer.ts b/sdk/servicebus/service-bus/src/core/autoLockRenewer.ts index 46c09a041265..e043604471db 100644 --- a/sdk/servicebus/service-bus/src/core/autoLockRenewer.ts +++ b/sdk/servicebus/service-bus/src/core/autoLockRenewer.ts @@ -39,7 +39,7 @@ export class LockRenewer { constructor( private _context: Pick, - private _maxAutoRenewDurationInMs: number + private _maxAutoRenewDurationInMs: number, ) { this._calculateRenewAfterDuration = calculateRenewAfterDuration; } @@ -56,7 +56,7 @@ export class LockRenewer { static create( context: Pick, maxAutoRenewLockDurationInMs: number, - receiveMode: "peekLock" | "receiveAndDelete" + receiveMode: "peekLock" | "receiveAndDelete", ): LockRenewer | undefined { if (receiveMode !== "peekLock") { return undefined; @@ -74,7 +74,7 @@ export class LockRenewer { */ stopAll(linkEntity: MinimalLink): void { logger.verbose( - `${linkEntity.logPrefix} Clearing message renew lock timers for all the active messages.` + `${linkEntity.logPrefix} Clearing message renew lock timers for all the active messages.`, ); const messagesForLink = this._messageRenewLockTimers.get(linkEntity.name); @@ -115,14 +115,14 @@ export class LockRenewer { start( linkEntity: MinimalLink, bMessage: RenewableMessageProperties, - onError: OnErrorNoContext + onError: OnErrorNoContext, ): void { try { const logPrefix = linkEntity.logPrefix; if (bMessage.lockToken == null) { throw new Error( - `Can't start auto lock renewal for message with message id '${bMessage.messageId}' since it does not have a lock token.` + `Can't start auto lock renewal for message with message id '${bMessage.messageId}' since it does not have a lock token.`, ); } @@ -141,14 +141,14 @@ export class LockRenewer { logger.verbose( `${logPrefix} message with id '${ bMessage.messageId - }' is locked until ${bMessage.lockedUntilUtc!.toString()}.` + }' is locked until ${bMessage.lockedUntilUtc!.toString()}.`, ); const totalAutoLockRenewDuration = Date.now() + this._maxAutoRenewDurationInMs; const totalAutoLockRenewDurationDate = new Date(totalAutoLockRenewDuration); logger.verbose( `${logPrefix} Total autolockrenew duration for message with id '${ bMessage.messageId - }' is: ${totalAutoLockRenewDurationDate.toString()}` + }' is: ${totalAutoLockRenewDurationDate.toString()}`, ); const autoRenewLockTask = (): void => { @@ -159,7 +159,7 @@ export class LockRenewer { if (!renewalNeededToMaintainLock) { logger.verbose( - `${logPrefix} Autolockrenew not needed as message's lockedUntilUtc ${bMessage.lockedUntilUtc} is after the total autolockrenew duration ${totalAutoLockRenewDurationDate} for message with messageId '${bMessage.messageId}'. Hence we will stop the autoLockRenewTask.` + `${logPrefix} Autolockrenew not needed as message's lockedUntilUtc ${bMessage.lockedUntilUtc} is after the total autolockrenew duration ${totalAutoLockRenewDurationDate} for message with messageId '${bMessage.messageId}'. Hence we will stop the autoLockRenewTask.`, ); this.stop(linkEntity, bMessage); } else if (Date.now() >= totalAutoLockRenewDuration) { @@ -167,7 +167,7 @@ export class LockRenewer { logger.verbose( `${logPrefix} Current time ${new Date()} exceeds the total autolockrenew duration ${totalAutoLockRenewDurationDate} for message with messageId '${ bMessage.messageId - }'. Hence we will stop the autoLockRenewTask.` + }'. Hence we will stop the autoLockRenewTask.`, ); this.stop(linkEntity, bMessage); } else { @@ -179,7 +179,7 @@ export class LockRenewer { const amount = this._calculateRenewAfterDuration(bMessage.lockedUntilUtc!); logger.verbose( - `${logPrefix} Sleeping for ${amount} milliseconds while renewing the lock for message with id '${bMessage.messageId}'` + `${logPrefix} Sleeping for ${amount} milliseconds while renewing the lock for message with id '${bMessage.messageId}'`, ); // Setting the value of the messageId to the actual timer. This will be cleared when // an attempt is made to settle the message (either by the user or by the sdk) OR @@ -187,7 +187,7 @@ export class LockRenewer { const autoRenewTimer = setTimeout(async () => { try { logger.verbose( - `${logPrefix} Attempting to renew the lock for message with id '${bMessage.messageId}'.` + `${logPrefix} Attempting to renew the lock for message with id '${bMessage.messageId}'.`, ); bMessage.lockedUntilUtc = await this._context @@ -196,14 +196,14 @@ export class LockRenewer { associatedLinkName: linkEntity.name, }); logger.verbose( - `${logPrefix} Successfully renewed the lock for message with id '${bMessage.messageId}'. Starting next auto-lock-renew cycle for message.` + `${logPrefix} Successfully renewed the lock for message with id '${bMessage.messageId}'. Starting next auto-lock-renew cycle for message.`, ); autoRenewLockTask(); } catch (err: any) { logger.logError( err, - `${logPrefix} An error occurred while auto renewing the message lock '${bMessage.lockToken}' for message with id '${bMessage.messageId}'` + `${logPrefix} An error occurred while auto renewing the message lock '${bMessage.lockToken}' for message with id '${bMessage.messageId}'`, ); onError(err); } @@ -217,7 +217,7 @@ export class LockRenewer { linkMessageMap.set(bMessage.messageId as string, autoRenewTimer); } else { logger.verbose( - `${logPrefix} Looks like the message lock renew timer has already been cleared for message with id '${bMessage.messageId}'.` + `${logPrefix} Looks like the message lock renew timer has already been cleared for message with id '${bMessage.messageId}'.`, ); } } @@ -234,7 +234,7 @@ export class LockRenewer { if (!this._messageRenewLockTimers.has(linkEntity.name)) { this._messageRenewLockTimers.set( linkEntity.name, - new Map() + new Map(), ); } @@ -244,7 +244,7 @@ export class LockRenewer { private _stopAndRemoveById( linkEntity: MinimalLink, linkMessageMap: Map, - messageId: string | undefined + messageId: string | undefined, ): void { if (messageId == null) { throw new Error("Failed to stop auto lock renewal - no message ID"); @@ -255,7 +255,7 @@ export class LockRenewer { if (linkMessageMap.has(messageId)) { clearTimeout(linkMessageMap.get(messageId) as NodeJS.Timeout); logger.verbose( - `${linkEntity.logPrefix} Cleared the message renew lock timer for message with id '${messageId}'.` + `${linkEntity.logPrefix} Cleared the message renew lock timer for message with id '${messageId}'.`, ); linkMessageMap.delete(messageId); } diff --git a/sdk/servicebus/service-bus/src/core/batchingReceiver.ts b/sdk/servicebus/service-bus/src/core/batchingReceiver.ts index cf90fc86057c..c38b2a08bf30 100644 --- a/sdk/servicebus/service-bus/src/core/batchingReceiver.ts +++ b/sdk/servicebus/service-bus/src/core/batchingReceiver.ts @@ -41,7 +41,7 @@ export class BatchingReceiver extends MessageReceiver { identifier: string, connectionContext: ConnectionContext, entityPath: string, - options: ReceiveOptions + options: ReceiveOptions, ) { super(identifier, connectionContext, entityPath, "batching", options); @@ -79,7 +79,7 @@ export class BatchingReceiver extends MessageReceiver { }, this.receiveMode, options.skipParsingBodyAsJson ?? false, - options.skipConvertingDate ?? false + options.skipConvertingDate ?? false, ); } @@ -98,7 +98,7 @@ export class BatchingReceiver extends MessageReceiver { if (connectionError == null) { connectionError = new Error( - "Unknown error occurred on the AMQP connection while receiving messages." + "Unknown error occurred on the AMQP connection while receiving messages.", ); } @@ -119,7 +119,7 @@ export class BatchingReceiver extends MessageReceiver { maxMessageCount: number, maxWaitTimeInMs: number, maxTimeAfterFirstMessageInMs: number, - options: OperationOptionsBase + options: OperationOptionsBase, ): Promise { throwErrorIfConnectionClosed(this._context); try { @@ -150,7 +150,7 @@ export class BatchingReceiver extends MessageReceiver { clientId: string, context: ConnectionContext, entityPath: string, - options: ReceiveOptions + options: ReceiveOptions, ): BatchingReceiver { throwErrorIfConnectionClosed(context); const bReceiver = new BatchingReceiver(clientId, context, entityPath, options); @@ -175,7 +175,7 @@ export class BatchingReceiver extends MessageReceiver { */ export function getRemainingWaitTimeInMsFn( maxWaitTimeInMs: number, - maxTimeAfterFirstMessageInMs: number + maxTimeAfterFirstMessageInMs: number, ): () => number { const startTimeMs = Date.now(); @@ -248,11 +248,11 @@ export class BatchingReceiverLite { private _connectionContext: ConnectionContext, public entityPath: string, private _getCurrentReceiver: ( - abortSignal?: AbortSignalLike + abortSignal?: AbortSignalLike, ) => Promise, private _receiveMode: ReceiveMode, _skipParsingBodyAsJson: boolean, - _skipConvertingDate: boolean + _skipConvertingDate: boolean, ) { this._createServiceBusMessage = (context: MessageAndDelivery) => { return new ServiceBusMessageImpl( @@ -261,20 +261,20 @@ export class BatchingReceiverLite { true, this._receiveMode, _skipParsingBodyAsJson, - _skipConvertingDate + _skipConvertingDate, ); }; this._getRemainingWaitTimeInMsFn = ( maxWaitTimeInMs: number, - maxTimeAfterFirstMessageInMs: number + maxTimeAfterFirstMessageInMs: number, ) => getRemainingWaitTimeInMsFn(maxWaitTimeInMs, maxTimeAfterFirstMessageInMs); this.isReceivingMessages = false; } private _createServiceBusMessage: ( - context: Pick + context: Pick, ) => ServiceBusMessageImpl; private _getRemainingWaitTimeInMsFn: typeof getRemainingWaitTimeInMsFn; @@ -300,13 +300,13 @@ export class BatchingReceiverLite { } const messages = await new Promise((resolve, reject) => - this._receiveMessagesImpl(receiver, args, resolve, reject) + this._receiveMessagesImpl(receiver, args, resolve, reject), ); return tracingClient.withSpan( "BatchingReceiverLite.process", args, () => messages, - toProcessingSpanOptions(messages, this, this._connectionContext.config, "process") + toProcessingSpanOptions(messages, this, this._connectionContext.config, "process"), ); } finally { this._closeHandler = undefined; @@ -329,7 +329,7 @@ export class BatchingReceiverLite { private async tryDrainReceiver( receiver: MinimalReceiver, loggingPrefix: string, - abortSignal?: AbortSignalLike + abortSignal?: AbortSignalLike, ): Promise { if (!receiver.isOpen() || receiver.credit <= 0) { return; @@ -363,12 +363,12 @@ export class BatchingReceiverLite { receiver.drainCredit(); logger.verbose( - `${loggingPrefix} Draining leftover credits(${receiver.credit}), waiting for event_drained event, or timing out after ${this._drainTimeoutInMs} milliseconds...` + `${loggingPrefix} Draining leftover credits(${receiver.credit}), waiting for event_drained event, or timing out after ${this._drainTimeoutInMs} milliseconds...`, ); await drainPromise; if (drainTimedout) { logger.warning( - `${loggingPrefix} Time out after ${this._drainTimeoutInMs} milliseconds when draining credits. Closing receiver...` + `${loggingPrefix} Time out after ${this._drainTimeoutInMs} milliseconds when draining credits. Closing receiver...`, ); // Close the receiver link since we have not received the receiver drain event // to prevent out-of-sync state between local and remote @@ -383,11 +383,11 @@ export class BatchingReceiverLite { receiver: MinimalReceiver, args: ReceiveMessageArgs, origResolve: (messages: ServiceBusMessageImpl[]) => void, - origReject: (err: Error | AmqpError) => void + origReject: (err: Error | AmqpError) => void, ): void { const getRemainingWaitTimeInMs = this._getRemainingWaitTimeInMsFn( args.maxWaitTimeInMs, - args.maxTimeAfterFirstMessageInMs + args.maxTimeAfterFirstMessageInMs, ); const brokeredMessages: ServiceBusMessageImpl[] = []; @@ -441,7 +441,7 @@ export class BatchingReceiverLite { (this._receiveMode === "receiveAndDelete" && brokeredMessages.length) ) { logger.verbose( - `${loggingPrefix} Closing. Resolving with ${brokeredMessages.length} messages.` + `${loggingPrefix} Closing. Resolving with ${brokeredMessages.length} messages.`, ); return resolveAfterPendingMessageCallbacks(brokeredMessages); } @@ -465,7 +465,7 @@ export class BatchingReceiverLite { await this.tryDrainReceiver(receiver, loggingPrefix, args.abortSignal); logger.verbose( - `${loggingPrefix} Resolving receiveMessages() with ${brokeredMessages.length} messages.` + `${loggingPrefix} Resolving receiveMessages() with ${brokeredMessages.length} messages.`, ); resolveImmediately(brokeredMessages); }; @@ -487,7 +487,7 @@ export class BatchingReceiverLite { const remainingWaitTimeInMs = getRemainingWaitTimeInMs(); totalWaitTimer = setTimeout(() => { logger.verbose( - `${loggingPrefix} Batching, waited for ${remainingWaitTimeInMs} milliseconds after receiving the first message.` + `${loggingPrefix} Batching, waited for ${remainingWaitTimeInMs} milliseconds after receiving the first message.`, ); this._finalAction!(); }, remainingWaitTimeInMs); @@ -503,14 +503,14 @@ export class BatchingReceiverLite { // silently dropped on the floor. if (brokeredMessages.length > args.maxMessageCount) { logger.warning( - `More messages arrived than expected: ${args.maxMessageCount} vs ${brokeredMessages.length}` + `More messages arrived than expected: ${args.maxMessageCount} vs ${brokeredMessages.length}`, ); } } catch (err: any) { const errObj = err instanceof Error ? err : new Error(JSON.stringify(err)); logger.logError( err, - `${loggingPrefix} Received an error while converting AmqpMessage to ServiceBusMessage` + `${loggingPrefix} Received an error while converting AmqpMessage to ServiceBusMessage`, ); rejectAfterCleanup(errObj); } @@ -562,7 +562,7 @@ export class BatchingReceiverLite { // (complete/abandon/defer/deadletter) the messages from the array. const creditToAdd = args.maxMessageCount - receiver.credit; logger.verbose( - `${loggingPrefix} Ensure enough credit for receiving ${args.maxMessageCount} messages. Current: ${receiver.credit}. To add: ${creditToAdd}.` + `${loggingPrefix} Ensure enough credit for receiving ${args.maxMessageCount} messages. Current: ${receiver.credit}. To add: ${creditToAdd}.`, ); if (creditToAdd > 0) { @@ -570,12 +570,12 @@ export class BatchingReceiverLite { } logger.verbose( - `${loggingPrefix} Setting the wait timer for ${args.maxWaitTimeInMs} milliseconds.` + `${loggingPrefix} Setting the wait timer for ${args.maxWaitTimeInMs} milliseconds.`, ); totalWaitTimer = setTimeout(() => { logger.verbose( - `${loggingPrefix} Batching, waited for max wait time ${args.maxWaitTimeInMs} milliseconds.` + `${loggingPrefix} Batching, waited for max wait time ${args.maxWaitTimeInMs} milliseconds.`, ); this._finalAction!(); }, args.maxWaitTimeInMs); diff --git a/sdk/servicebus/service-bus/src/core/linkEntity.ts b/sdk/servicebus/service-bus/src/core/linkEntity.ts index 75f5abe0ff1e..6861c3885691 100644 --- a/sdk/servicebus/service-bus/src/core/linkEntity.ts +++ b/sdk/servicebus/service-bus/src/core/linkEntity.ts @@ -70,10 +70,10 @@ type LinkOptionsT = LinkT extends Receiver ? ReceiverType : LinkT extends AwaitableSender - ? "sender" // sender - : LinkT extends RequestResponseLink - ? "mgmt" // management link - : never; + ? "sender" // sender + : LinkT extends RequestResponseLink + ? "mgmt" // management link + : never; /** * @internal @@ -182,7 +182,7 @@ export abstract class LinkEntity, private _logger: ServiceBusLogger, - options?: LinkEntityOptions + options?: LinkEntityOptions, ) { if (!options) options = {}; this._context = context; @@ -213,26 +213,26 @@ export abstract class LinkEntity { this._logger.verbose( - `${this._logPrefix} Lock ${this._openLock} acquired for initializing link` + `${this._logPrefix} Lock ${this._openLock} acquired for initializing link`, ); return this._initLinkImpl(options, abortSignal); }, { abortSignal: abortSignal, timeoutInMs: Constants.defaultOperationTimeoutInMs, - } + }, ); } private async _initLinkImpl( options: LinkOptionsT, - abortSignal?: AbortSignalLike + abortSignal?: AbortSignalLike, ): Promise { const checkAborted = (): void => { if (abortSignal?.aborted) { @@ -259,7 +259,7 @@ export abstract class LinkEntity { this._logger.verbose( - `${this._logPrefix} Attempting to acquire lock token ${this._openLock} for closing link` + `${this._logPrefix} Attempting to acquire lock token ${this._openLock} for closing link`, ); return defaultCancellableLock.acquire( this._openLock, @@ -329,7 +329,7 @@ export abstract class LinkEntity - isObjectWithProperties(obj, [validProperty]) + isObjectWithProperties(obj, [validProperty]), ); } @@ -249,7 +249,7 @@ export class ManagementClient extends LinkEntity { * @returns updated options bag that has adjusted `timeoutInMs` to account for init time */ private async initWithUniqueReplyTo( - options: SendManagementRequestOptions = {} + options: SendManagementRequestOptions = {}, ): Promise { const retryTimeoutInMs = options.timeoutInMs ?? Constants.defaultOperationTimeoutInMs; const initOperationStartTime = Date.now(); @@ -257,12 +257,12 @@ export class ManagementClient extends LinkEntity { this._initLock, async () => { managementClientLogger.verbose( - `${this.logPrefix} lock acquired for initializing replyTo address and link` + `${this.logPrefix} lock acquired for initializing replyTo address and link`, ); if (!this.isOpen()) { this.replyTo = generate_uuid(); managementClientLogger.verbose( - `${this.logPrefix} new replyTo address: ${this.replyTo} generated` + `${this.logPrefix} new replyTo address: ${this.replyTo} generated`, ); } const { abortSignal } = options ?? {}; @@ -295,7 +295,7 @@ export class ManagementClient extends LinkEntity { { abortSignal: options.abortSignal, timeoutInMs: retryTimeoutInMs, - } + }, ); } @@ -310,7 +310,7 @@ export class ManagementClient extends LinkEntity { const sbError = translateServiceBusError(context.session!.error!); managementClientLogger.logError( sbError, - `${this.logPrefix} An error occurred on the session for request/response links for $management` + `${this.logPrefix} An error occurred on the session for request/response links for $management`, ); }, }; @@ -320,7 +320,7 @@ export class ManagementClient extends LinkEntity { const ehError = translateServiceBusError(context.sender!.error!); managementClientLogger.logError( ehError, - `${this.logPrefix} An error occurred on the $management sender link` + `${this.logPrefix} An error occurred on the $management sender link`, ); }, }; @@ -332,13 +332,13 @@ export class ManagementClient extends LinkEntity { senderOptions: sropt, receiverOptions: rxopt, }, - abortSignal + abortSignal, ); } catch (err: any) { const translatedError = translateServiceBusError(err); managementClientLogger.logError( translatedError, - `${this.logPrefix} An error occurred while establishing the $management links` + `${this.logPrefix} An error occurred while establishing the $management links`, ); throw translatedError; } @@ -346,12 +346,12 @@ export class ManagementClient extends LinkEntity { protected async createRheaLink( // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options: RequestResponseLinkOptions + options: RequestResponseLinkOptions, ): Promise { const rheaLink = await RequestResponseLink.create( this._context.connection, options.senderOptions, - options.receiverOptions + options.receiverOptions, ); // Attach listener for the `receiver_error` events to log the errors. @@ -362,7 +362,7 @@ export class ManagementClient extends LinkEntity { const ehError = translateServiceBusError(context.receiver!.error!); managementClientLogger.logError( ehError, - `${this.logPrefix} An error occurred on the $management receiver link` + `${this.logPrefix} An error occurred on the $management receiver link`, ); }); return rheaLink; @@ -378,7 +378,7 @@ export class ManagementClient extends LinkEntity { } private _decodeApplicationPropertiesMap( - obj: Typed + obj: Typed, ): Record { if (!types.is_map(obj)) { throw new Error("object to decode is not of Map types"); @@ -396,7 +396,7 @@ export class ManagementClient extends LinkEntity { private async _makeManagementRequest( request: RheaMessage, internalLogger: ServiceBusLogger, - sendRequestOptions: SendManagementRequestOptions = {} + sendRequestOptions: SendManagementRequestOptions = {}, ): Promise { if (request.message_id === undefined) { request.message_id = generate_uuid(); @@ -410,7 +410,7 @@ export class ManagementClient extends LinkEntity { this.name, timeoutInMs ?? Constants.defaultOperationTimeoutInMs, this.link?.sender, - this.link?.session?.outgoing?.available() + this.link?.session?.outgoing?.available(), ); return await this.link!.sendRequest(request, sendRequestOptions); @@ -420,7 +420,7 @@ export class ManagementClient extends LinkEntity { translatedError, "%s An error occurred during send on management request-response link with address '%s'", this.logPrefix, - this.address + this.address, ); throw translatedError; } @@ -443,7 +443,7 @@ export class ManagementClient extends LinkEntity { } catch (err: any) { managementClientLogger.logError( err, - `${this.logPrefix} An error occurred while closing the management session` + `${this.logPrefix} An error occurred while closing the management session`, ); throw err; } @@ -464,7 +464,7 @@ export class ManagementClient extends LinkEntity { async peek( messageCount: number, omitMessageBody?: boolean, - options?: OperationOptionsBase & SendManagementRequestOptions + options?: OperationOptionsBase & SendManagementRequestOptions, ): Promise { throwErrorIfConnectionClosed(this._context); return this.peekBySequenceNumber( @@ -472,7 +472,7 @@ export class ManagementClient extends LinkEntity { messageCount, undefined, omitMessageBody, - options + options, ); } @@ -493,7 +493,7 @@ export class ManagementClient extends LinkEntity { sessionId: string, messageCount: number, omitMessageBody?: boolean, - options?: OperationOptionsBase & SendManagementRequestOptions + options?: OperationOptionsBase & SendManagementRequestOptions, ): Promise { throwErrorIfConnectionClosed(this._context); return this.peekBySequenceNumber( @@ -501,7 +501,7 @@ export class ManagementClient extends LinkEntity { messageCount, sessionId, omitMessageBody, - options + options, ); } @@ -518,7 +518,7 @@ export class ManagementClient extends LinkEntity { maxMessageCount: number, sessionId?: string, omitMessageBody?: boolean, - options?: OperationOptionsBase & SendManagementRequestOptions + options?: OperationOptionsBase & SendManagementRequestOptions, ): Promise { throwErrorIfConnectionClosed(this._context); const connId = this._context.connectionId; @@ -531,13 +531,13 @@ export class ManagementClient extends LinkEntity { throwTypeErrorIfParameterMissing( this._context.connectionId, "maxMessageCount", - maxMessageCount + maxMessageCount, ); throwTypeErrorIfParameterTypeMismatch( this._context.connectionId, "maxMessageCount", maxMessageCount, - "number" + "number", ); if (isNaN(maxMessageCount) || maxMessageCount < 1) { @@ -548,7 +548,7 @@ export class ManagementClient extends LinkEntity { try { const messageBody: any = {}; messageBody[Constants.fromSequenceNumber] = types.wrap_long( - Buffer.from(fromSequenceNumber.toBytesBE()) + Buffer.from(fromSequenceNumber.toBytesBE()), ); messageBody[Constants.messageCount] = types.wrap_int(maxMessageCount!); if (isDefined(sessionId)) { @@ -577,7 +577,7 @@ export class ManagementClient extends LinkEntity { receiverLogger.verbose( "%s Peek by sequence number request body: %O.", this.logPrefix, - request.body + request.body, ); const result = await this._makeManagementRequest(request, receiverLogger, updatedOptions); @@ -597,7 +597,7 @@ export class ManagementClient extends LinkEntity { const error = translateServiceBusError(err) as MessagingError; receiverLogger.logError( error, - `${this.logPrefix} An error occurred while sending the request to peek messages to $management endpoint` + `${this.logPrefix} An error occurred while sending the request to peek messages to $management endpoint`, ); // statusCode == 404 then do not throw if (error.code !== ConditionErrorNameMapper["com.microsoft:message-not-found"]) { @@ -633,7 +633,7 @@ export class ManagementClient extends LinkEntity { messageBody[Constants.lockTokens] = types.wrap_array( [string_to_uuid(lockToken)], 0x98, - undefined + undefined, ); const updatedOptions = await this.initWithUniqueReplyTo(options); const request: RheaMessage = { @@ -651,7 +651,7 @@ export class ManagementClient extends LinkEntity { receiverLogger.verbose( "[%s] Renew message Lock request: %O.", this._context.connectionId, - request + request, ); const result = await this._makeManagementRequest(request, receiverLogger, { abortSignal: updatedOptions?.abortSignal, @@ -663,7 +663,7 @@ export class ManagementClient extends LinkEntity { const error = translateServiceBusError(err); receiverLogger.logError( error, - `${this.logPrefix} An error occurred while sending the renew lock request to $management endpoint` + `${this.logPrefix} An error occurred while sending the renew lock request to $management endpoint`, ); throw error; } @@ -679,7 +679,7 @@ export class ManagementClient extends LinkEntity { async scheduleMessages( scheduledEnqueueTimeUtc: Date, messages: ServiceBusMessage[] | AmqpAnnotatedMessage[], - options?: OperationOptionsBase & SendManagementRequestOptions + options?: OperationOptionsBase & SendManagementRequestOptions, ): Promise { throwErrorIfConnectionClosed(this._context); if (!messages.length) { @@ -723,7 +723,7 @@ export class ManagementClient extends LinkEntity { const error = translateServiceBusError(err); senderLogger.logError( error, - `${this.logPrefix} An error occurred while encoding the item at position ${i} in the messages array` + `${this.logPrefix} An error occurred while encoding the item at position ${i} in the messages array`, ); throw error; } @@ -758,7 +758,7 @@ export class ManagementClient extends LinkEntity { const error = translateServiceBusError(err); senderLogger.logError( error, - `${this.logPrefix} An error occurred while sending the request to schedule messages to $management endpoint` + `${this.logPrefix} An error occurred while sending the request to schedule messages to $management endpoint`, ); throw error; } @@ -770,7 +770,7 @@ export class ManagementClient extends LinkEntity { */ async cancelScheduledMessages( sequenceNumbers: Long[], - options?: OperationOptionsBase & SendManagementRequestOptions + options?: OperationOptionsBase & SendManagementRequestOptions, ): Promise { throwErrorIfConnectionClosed(this._context); if (!sequenceNumbers.length) { @@ -786,7 +786,7 @@ export class ManagementClient extends LinkEntity { const error = translateServiceBusError(err); senderLogger.logError( error, - `${this.logPrefix} An error occurred while encoding the item at position ${i} in the sequenceNumbers array` + `${this.logPrefix} An error occurred while encoding the item at position ${i} in the sequenceNumbers array`, ); throw error; } @@ -796,7 +796,7 @@ export class ManagementClient extends LinkEntity { messageBody[Constants.sequenceNumbers] = types.wrap_array( messageBody[Constants.sequenceNumbers], 0x81, - undefined + undefined, ); const updatedOptions = await this.initWithUniqueReplyTo(options); const request: RheaMessage = { @@ -815,7 +815,7 @@ export class ManagementClient extends LinkEntity { senderLogger.verbose( "%s Cancel scheduled messages request body: %O.", this.logPrefix, - request.body + request.body, ); await this._makeManagementRequest(request, senderLogger, updatedOptions); @@ -824,7 +824,7 @@ export class ManagementClient extends LinkEntity { const error = translateServiceBusError(err); senderLogger.logError( error, - `${this.logPrefix} An error occurred while sending the request to cancel the scheduled message to $management endpoint` + `${this.logPrefix} An error occurred while sending the request to cancel the scheduled message to $management endpoint`, ); throw error; } @@ -842,7 +842,7 @@ export class ManagementClient extends LinkEntity { sequenceNumbers: Long[], receiveMode: ReceiveMode, sessionId?: string, - options?: OperationOptionsBase & SendManagementRequestOptions + options?: OperationOptionsBase & SendManagementRequestOptions, ): Promise { throwErrorIfConnectionClosed(this._context); @@ -861,7 +861,7 @@ export class ManagementClient extends LinkEntity { const error = translateServiceBusError(err); receiverLogger.logError( error, - `${this.logPrefix} An error occurred while encoding the item at position ${i} in the sequenceNumbers array` + `${this.logPrefix} An error occurred while encoding the item at position ${i} in the sequenceNumbers array`, ); throw error; } @@ -871,7 +871,7 @@ export class ManagementClient extends LinkEntity { messageBody[Constants.sequenceNumbers] = types.wrap_array( messageBody[Constants.sequenceNumbers], 0x81, - undefined + undefined, ); const receiverSettleMode: number = receiveMode === "receiveAndDelete" ? 0 : 1; messageBody[Constants.receiverSettleMode] = types.wrap_uint(receiverSettleMode); @@ -894,7 +894,7 @@ export class ManagementClient extends LinkEntity { receiverLogger.verbose( "%s Receive deferred messages request body: %O.", this.logPrefix, - request.body + request.body, ); const result = await this._makeManagementRequest(request, receiverLogger, updatedOptions); @@ -910,7 +910,7 @@ export class ManagementClient extends LinkEntity { false, receiveMode, updatedOptions?.skipParsingBodyAsJson ?? false, - false + false, ); messageList.push(message); } @@ -919,7 +919,7 @@ export class ManagementClient extends LinkEntity { const error = translateServiceBusError(err); receiverLogger.logError( error, - `${this.logPrefix} An error occurred while sending the request to receive deferred messages to $management endpoint` + `${this.logPrefix} An error occurred while sending the request to receive deferred messages to $management endpoint`, ); throw error; } @@ -936,7 +936,7 @@ export class ManagementClient extends LinkEntity { lockToken: string, dispositionType: DispositionType, // TODO: mgmt link retry<> will come in the next PR. - options?: Omit & SendManagementRequestOptions + options?: Omit & SendManagementRequestOptions, ): Promise { throwErrorIfConnectionClosed(this._context); if (!options) options = {}; @@ -982,14 +982,14 @@ export class ManagementClient extends LinkEntity { receiverLogger.verbose( "%s Update disposition status request body: %O.", this.logPrefix, - request.body + request.body, ); await this._makeManagementRequest(request, receiverLogger, updatedOptions); } catch (err: any) { const error = translateServiceBusError(err); receiverLogger.logError( error, - `${this.logPrefix} An error occurred while sending the request to update disposition status to $management endpoint` + `${this.logPrefix} An error occurred while sending the request to update disposition status to $management endpoint`, ); throw error; } @@ -1004,7 +1004,7 @@ export class ManagementClient extends LinkEntity { */ async renewSessionLock( sessionId: string, - options?: OperationOptionsBase & SendManagementRequestOptions + options?: OperationOptionsBase & SendManagementRequestOptions, ): Promise { throwErrorIfConnectionClosed(this._context); try { @@ -1026,7 +1026,7 @@ export class ManagementClient extends LinkEntity { receiverLogger.verbose( "%s Renew Session Lock request body: %O.", this.logPrefix, - request.body + request.body, ); const result = await this._makeManagementRequest(request, receiverLogger, updatedOptions); const lockedUntilUtc = new Date(result.body.expiration); @@ -1034,14 +1034,14 @@ export class ManagementClient extends LinkEntity { "%s Lock for session '%s' will expire at %s.", this.logPrefix, sessionId, - lockedUntilUtc.toString() + lockedUntilUtc.toString(), ); return lockedUntilUtc; } catch (err: any) { const error = translateServiceBusError(err); receiverLogger.logError( error, - `${this.logPrefix} An error occurred while sending the renew lock request to $management endpoint` + `${this.logPrefix} An error occurred while sending the renew lock request to $management endpoint`, ); throw error; } @@ -1056,7 +1056,7 @@ export class ManagementClient extends LinkEntity { async setSessionState( sessionId: string, state: unknown, - options?: OperationOptionsBase & SendManagementRequestOptions + options?: OperationOptionsBase & SendManagementRequestOptions, ): Promise { throwErrorIfConnectionClosed(this._context); @@ -1080,14 +1080,14 @@ export class ManagementClient extends LinkEntity { receiverLogger.verbose( "%s Set Session state request body: %O.", this.logPrefix, - request.body + request.body, ); await this._makeManagementRequest(request, receiverLogger, updatedOptions); } catch (err: any) { const error = translateServiceBusError(err); receiverLogger.logError( error, - `${this.logPrefix} An error occurred while sending the renew lock request to $management endpoint` + `${this.logPrefix} An error occurred while sending the renew lock request to $management endpoint`, ); throw error; } @@ -1101,7 +1101,7 @@ export class ManagementClient extends LinkEntity { */ async getSessionState( sessionId: string, - options?: OperationOptionsBase & SendManagementRequestOptions + options?: OperationOptionsBase & SendManagementRequestOptions, ): Promise { throwErrorIfConnectionClosed(this._context); try { @@ -1123,7 +1123,7 @@ export class ManagementClient extends LinkEntity { receiverLogger.verbose( "%s Get session state request body: %O.", this.logPrefix, - request.body + request.body, ); const result = await this._makeManagementRequest(request, receiverLogger, updatedOptions); return result.body["session-state"] @@ -1133,7 +1133,7 @@ export class ManagementClient extends LinkEntity { const error = translateServiceBusError(err); receiverLogger.logError( error, - `${this.logPrefix} An error occurred while sending the renew lock request to $management endpoint` + `${this.logPrefix} An error occurred while sending the renew lock request to $management endpoint`, ); throw error; } @@ -1150,7 +1150,7 @@ export class ManagementClient extends LinkEntity { skip: number, top: number, lastUpdatedTime?: Date, - options?: OperationOptionsBase & SendManagementRequestOptions + options?: OperationOptionsBase & SendManagementRequestOptions, ): Promise { throwErrorIfConnectionClosed(this._context); const defaultLastUpdatedTimeForListingSessions: number = 259200000; // 3 * 24 * 3600 * 1000 @@ -1183,12 +1183,12 @@ export class ManagementClient extends LinkEntity { managementClientLogger.verbose( "%s List sessions request body: %O.", this.logPrefix, - request.body + request.body, ); const response = await this._makeManagementRequest( request, managementClientLogger, - updatedOptions + updatedOptions, ); return (response && response.body && response.body["sessions-ids"]) || []; @@ -1196,7 +1196,7 @@ export class ManagementClient extends LinkEntity { const error = translateServiceBusError(err); managementClientLogger.logError( error, - `${this.logPrefix} An error occurred while sending the renew lock request to $management endpoint` + `${this.logPrefix} An error occurred while sending the renew lock request to $management endpoint`, ); throw error; } @@ -1207,7 +1207,7 @@ export class ManagementClient extends LinkEntity { * @returns A list of rules. */ async getRules( - options?: ListRequestOptions & OperationOptionsBase & SendManagementRequestOptions + options?: ListRequestOptions & OperationOptionsBase & SendManagementRequestOptions, ): Promise { throwErrorIfConnectionClosed(this._context); try { @@ -1231,12 +1231,12 @@ export class ManagementClient extends LinkEntity { managementClientLogger.verbose( "%s Get rules request body: %O.", this.logPrefix, - request.body + request.body, ); const response = await this._makeManagementRequest( request, managementClientLogger, - updatedOptions + updatedOptions, ); if ( response.application_properties!.statusCode === 204 || @@ -1315,7 +1315,7 @@ export class ManagementClient extends LinkEntity { break; default: throw new Error( - `${this.logPrefix} Found unexpected descriptor code for the filter: ${filtersRawData.descriptor.value}` + `${this.logPrefix} Found unexpected descriptor code for the filter: ${filtersRawData.descriptor.value}`, ); } @@ -1332,7 +1332,7 @@ export class ManagementClient extends LinkEntity { const error = translateServiceBusError(err); managementClientLogger.logError( error, - `${this.logPrefix} An error occurred while sending the get rules request to $management endpoint` + `${this.logPrefix} An error occurred while sending the get rules request to $management endpoint`, ); throw error; } @@ -1343,7 +1343,7 @@ export class ManagementClient extends LinkEntity { */ async removeRule( ruleName: string, - options?: OperationOptionsBase & SendManagementRequestOptions + options?: OperationOptionsBase & SendManagementRequestOptions, ): Promise { throwErrorIfConnectionClosed(this._context); throwTypeErrorIfParameterMissing(this._context.connectionId, "ruleName", ruleName); @@ -1366,14 +1366,14 @@ export class ManagementClient extends LinkEntity { managementClientLogger.verbose( "%s Remove Rule request body: %O.", this.logPrefix, - request.body + request.body, ); await this._makeManagementRequest(request, managementClientLogger, updatedOptions); } catch (err: any) { const error = translateServiceBusError(err); managementClientLogger.logError( error, - `${this.logPrefix} An error occurred while sending the remove rule request to $management endpoint` + `${this.logPrefix} An error occurred while sending the remove rule request to $management endpoint`, ); throw error; } @@ -1389,7 +1389,7 @@ export class ManagementClient extends LinkEntity { ruleName: string, filter: SqlRuleFilter | CorrelationRuleFilter, sqlRuleActionExpression?: string, - options?: OperationOptionsBase & SendManagementRequestOptions + options?: OperationOptionsBase & SendManagementRequestOptions, ): Promise { throwErrorIfConnectionClosed(this._context); @@ -1400,7 +1400,7 @@ export class ManagementClient extends LinkEntity { throwTypeErrorIfParameterMissing(this._context.connectionId, "filter", filter); if (!isSqlRuleFilter(filter) && !isCorrelationRuleFilter(filter)) { throw new TypeError( - `The parameter "filter" should implement either the SqlRuleFilter or the CorrelationRuleFilter interface.` + `The parameter "filter" should implement either the SqlRuleFilter or the CorrelationRuleFilter interface.`, ); } @@ -1448,7 +1448,7 @@ export class ManagementClient extends LinkEntity { const error = translateServiceBusError(err); managementClientLogger.logError( error, - `${this.logPrefix} An error occurred while sending the Add rule request to $management endpoint` + `${this.logPrefix} An error occurred while sending the Add rule request to $management endpoint`, ); throw error; } @@ -1468,7 +1468,7 @@ export class ManagementClient extends LinkEntity { */ export function toScheduleableMessage( item: ServiceBusMessage | AmqpAnnotatedMessage, - scheduledEnqueueTimeUtc: Date + scheduledEnqueueTimeUtc: Date, ): Record { const rheaMessage = toRheaMessage(item, defaultDataTransformer); updateMessageId(rheaMessage, rheaMessage.message_id || generate_uuid()); diff --git a/sdk/servicebus/service-bus/src/core/messageReceiver.ts b/sdk/servicebus/service-bus/src/core/messageReceiver.ts index 457fb711e8cf..692cb8210848 100644 --- a/sdk/servicebus/service-bus/src/core/messageReceiver.ts +++ b/sdk/servicebus/service-bus/src/core/messageReceiver.ts @@ -145,7 +145,7 @@ export abstract class MessageReceiver extends LinkEntity { context: ConnectionContext, entityPath: string, receiverType: ReceiverType, - options: Omit + options: Omit, ) { super(entityPath, entityPath, context, receiverType, logger, { address: entityPath, @@ -166,7 +166,7 @@ export abstract class MessageReceiver extends LinkEntity { */ protected _createReceiverOptions( useNewName: boolean, - handlers: ReceiverHandlers + handlers: ReceiverHandlers, ): ReceiverOptions { const rcvrOptions: ReceiverOptions = createReceiverOptions( useNewName ? getUniqueName(this.baseName) : this.name, @@ -180,7 +180,7 @@ export abstract class MessageReceiver extends LinkEntity { return onMessageSettled(this.logPrefix, context.delivery, this._deliveryDispositionMap); }, ...handlers, - } + }, ); return rcvrOptions; @@ -201,7 +201,7 @@ export abstract class MessageReceiver extends LinkEntity { logger.logError( translatedError, "%s An error occured while creating the receiver", - this.logPrefix + this.logPrefix, ); // Fix the unhelpful error messages for the OperationTimeoutError that comes from `rhea-promise`. @@ -216,7 +216,7 @@ export abstract class MessageReceiver extends LinkEntity { protected createRheaLink( options: ReceiverOptions, - _abortSignal?: AbortSignalLike + _abortSignal?: AbortSignalLike, ): Promise { return this._context.connection.createReceiver(options); } @@ -247,7 +247,7 @@ export abstract class MessageReceiver extends LinkEntity { async settleMessage( message: ServiceBusMessageImpl, operation: DispositionType, - options: DispositionStatusOptions + options: DispositionStatusOptions, ): Promise { return new Promise((resolve, reject) => { if (operation.match(/^(complete|abandon|defer|deadletter)$/) == null) { @@ -255,25 +255,28 @@ export abstract class MessageReceiver extends LinkEntity { } this._lockRenewer?.stop(this, message); const delivery = message.delivery; - const timer = setTimeout(() => { - this._deliveryDispositionMap.delete(delivery.id); + const timer = setTimeout( + () => { + this._deliveryDispositionMap.delete(delivery.id); - logger.verbose( - "%s Disposition for delivery id: %d, did not complete in %d milliseconds. " + - "Hence rejecting the promise with timeout error.", - this.logPrefix, - delivery.id, - Constants.defaultOperationTimeoutInMs - ); + logger.verbose( + "%s Disposition for delivery id: %d, did not complete in %d milliseconds. " + + "Hence rejecting the promise with timeout error.", + this.logPrefix, + delivery.id, + Constants.defaultOperationTimeoutInMs, + ); - const e: AmqpError = { - condition: ErrorNameConditionMapper.ServiceUnavailableError, - description: - "Operation to settle the message has timed out. The disposition of the " + - "message may or may not be successful", - }; - return reject(translateServiceBusError(e)); - }, options.retryOptions?.timeoutInMs ?? Constants.defaultOperationTimeoutInMs); + const e: AmqpError = { + condition: ErrorNameConditionMapper.ServiceUnavailableError, + description: + "Operation to settle the message has timed out. The disposition of the " + + "message may or may not be successful", + }; + return reject(translateServiceBusError(e)); + }, + options.retryOptions?.timeoutInMs ?? Constants.defaultOperationTimeoutInMs, + ); this._deliveryDispositionMap.set(delivery.id, { resolve: resolve, reject: reject, diff --git a/sdk/servicebus/service-bus/src/core/messageSender.ts b/sdk/servicebus/service-bus/src/core/messageSender.ts index 849675138dcb..e7a683a560ae 100644 --- a/sdk/servicebus/service-bus/src/core/messageSender.ts +++ b/sdk/servicebus/service-bus/src/core/messageSender.ts @@ -66,7 +66,7 @@ export class MessageSender extends LinkEntity { private identifier: string, connectionContext: ConnectionContext, entityPath: string, - retryOptions: RetryOptions + retryOptions: RetryOptions, ) { super(entityPath, entityPath, connectionContext, "sender", logger, { address: entityPath, @@ -81,7 +81,7 @@ export class MessageSender extends LinkEntity { "The associated error", this.logPrefix, this.name, - this.address + this.address, ); // TODO: Consider rejecting promise in trySendBatch() or createBatch() }; @@ -94,7 +94,7 @@ export class MessageSender extends LinkEntity { "The associated error", this.logPrefix, this.name, - this.address + this.address, ); // TODO: Consider rejecting promise in trySendBatch() or createBatch() }; @@ -104,13 +104,13 @@ export class MessageSender extends LinkEntity { logger.logError( senderError, - `${this.logPrefix} 'sender_close' event occurred. The associated error is` + `${this.logPrefix} 'sender_close' event occurred. The associated error is`, ); await this.onDetached().catch((err) => { logger.logError( err, - `${this.logPrefix} error when closing sender after 'sender_close' event` + `${this.logPrefix} error when closing sender after 'sender_close' event`, ); }); }; @@ -120,13 +120,13 @@ export class MessageSender extends LinkEntity { logger.logError( sessionError, - `${this.logPrefix} 'session_close' event occurred. The associated error is` + `${this.logPrefix} 'session_close' event occurred. The associated error is`, ); await this.onDetached().catch((err) => { logger.logError( err, - `${this.logPrefix} error when closing sender after 'session_close' event` + `${this.logPrefix} error when closing sender after 'session_close' event`, ); }); }; @@ -162,7 +162,7 @@ export class MessageSender extends LinkEntity { private _trySend( encodedMessage: Buffer, sendBatch: boolean, - options: OperationOptionsBase | undefined + options: OperationOptionsBase | undefined, ): Promise { const abortSignal = options?.abortSignal; const timeoutInMs = !isDefined(this._retryOptions.timeoutInMs) @@ -188,7 +188,7 @@ export class MessageSender extends LinkEntity { translatedError, "%s An error occurred while creating the sender", this.logPrefix, - this.name + this.name, ); throw translatedError; } @@ -201,7 +201,7 @@ export class MessageSender extends LinkEntity { this.logPrefix, this.name, this.link?.credit, - this.link?.session?.outgoing?.available() + this.link?.session?.outgoing?.available(), ); const waitingTime = await waitForSendable( @@ -210,7 +210,7 @@ export class MessageSender extends LinkEntity { this.name, timeoutInMs - timeTakenByInit, this.link, - this.link?.session?.outgoing?.available() + this.link?.session?.outgoing?.available(), ); if (timeoutInMs <= timeTakenByInit + waitingTime) { @@ -245,13 +245,13 @@ export class MessageSender extends LinkEntity { "%s Sender '%s', sent message with delivery id: %d", this.logPrefix, this.name, - delivery.id + delivery.id, ); } catch (error: any) { const translatedError = translateServiceBusError(error.innerError || error); logger.logError( translatedError, - `${this.logPrefix} An error occurred while sending the message` + `${this.logPrefix} An error occurred while sending the message`, ); throw translatedError; } @@ -276,7 +276,7 @@ export class MessageSender extends LinkEntity { */ public async open( options?: AwaitableSenderOptions, - abortSignal?: AbortSignalLike + abortSignal?: AbortSignalLike, ): Promise { try { if (!options) { @@ -287,7 +287,7 @@ export class MessageSender extends LinkEntity { const translatedError = translateServiceBusError(err); logger.logError( translatedError, - `${this.logPrefix} An error occurred while creating the sender` + `${this.logPrefix} An error occurred while creating the sender`, ); // Fix the unhelpful error messages for the OperationTimeoutError that comes from `rhea-promise`. if ((translatedError as MessagingError).code === "OperationTimeoutError") { @@ -318,7 +318,7 @@ export class MessageSender extends LinkEntity { this.logPrefix, this.name, this.address, - result + result, ); return result; } @@ -330,7 +330,7 @@ export class MessageSender extends LinkEntity { */ async send( data: ServiceBusMessage | AmqpAnnotatedMessage, - options?: OperationOptionsBase + options?: OperationOptionsBase, ): Promise { throwErrorIfConnectionClosed(this._context); try { @@ -345,7 +345,7 @@ export class MessageSender extends LinkEntity { err, "%s An error occurred while sending the message: %O\nError", this.logPrefix, - data + data, ); throw err; } @@ -367,7 +367,7 @@ export class MessageSender extends LinkEntity { async getMaxMessageSize( options: { retryOptions?: RetryOptions; - } & Pick = {} + } & Pick = {}, ): Promise { const retryOptions = options.retryOptions || {}; if (this.isOpen()) { @@ -384,7 +384,7 @@ export class MessageSender extends LinkEntity { throw new ServiceBusError( "Link failed to initialize, cannot get max message size.", - "GeneralError" + "GeneralError", ); }, connectionId: this._context.connectionId, @@ -405,7 +405,7 @@ export class MessageSender extends LinkEntity { if (options?.maxSizeInBytes) { if (options.maxSizeInBytes > maxMessageSize!) { const error = new Error( - `Max message size (${options.maxSizeInBytes} bytes) is greater than maximum message size (${maxMessageSize} bytes) on the AMQP sender link.` + `Max message size (${options.maxSizeInBytes} bytes) is greater than maximum message size (${maxMessageSize} bytes) on the AMQP sender link.`, ); throw error; } @@ -416,7 +416,7 @@ export class MessageSender extends LinkEntity { async sendBatch( batchMessage: ServiceBusMessageBatch, - options?: OperationOptionsBase + options?: OperationOptionsBase, ): Promise { throwErrorIfConnectionClosed(this._context); try { @@ -424,7 +424,7 @@ export class MessageSender extends LinkEntity { "%s Sender '%s', sending encoded batch message.", this.logPrefix, this.name, - batchMessage + batchMessage, ); return await this._trySend(batchMessage._generateMessage(), true, options); } catch (err: any) { @@ -433,7 +433,7 @@ export class MessageSender extends LinkEntity { "%s Sender '%s': An error occurred while sending the messages: %O\nError", this.logPrefix, this.name, - batchMessage + batchMessage, ); throw err; } @@ -443,7 +443,7 @@ export class MessageSender extends LinkEntity { identifier: string, context: ConnectionContext, entityPath: string, - retryOptions: RetryOptions + retryOptions: RetryOptions, ): MessageSender { throwErrorIfConnectionClosed(context); diff --git a/sdk/servicebus/service-bus/src/core/receiverHelper.ts b/sdk/servicebus/service-bus/src/core/receiverHelper.ts index ca5a07df46db..d823164ee6b9 100644 --- a/sdk/servicebus/service-bus/src/core/receiverHelper.ts +++ b/sdk/servicebus/service-bus/src/core/receiverHelper.ts @@ -17,7 +17,7 @@ export class ReceiverHelper { private _isSuspended: boolean = true; constructor( - private _getCurrentReceiver: () => { receiver: Receiver | undefined; logPrefix: string } + private _getCurrentReceiver: () => { receiver: Receiver | undefined; logPrefix: string }, ) {} private _getCurrentReceiverOrError(): @@ -85,7 +85,7 @@ export class ReceiverHelper { } logger.verbose( - `${logPrefix} User has requested to stop receiving new messages, attempting to drain.` + `${logPrefix} User has requested to stop receiving new messages, attempting to drain.`, ); return this.drain(); @@ -123,7 +123,7 @@ export class ReceiverHelper { } logger.verbose( - `${logPrefix} Receiver is starting drain. Remaining credits; ${receiver.credit}` + `${logPrefix} Receiver is starting drain. Remaining credits; ${receiver.credit}`, ); const drainPromise = new Promise((resolve) => { diff --git a/sdk/servicebus/service-bus/src/core/shared.ts b/sdk/servicebus/service-bus/src/core/shared.ts index 971cf664f462..544fb8b6c8f7 100644 --- a/sdk/servicebus/service-bus/src/core/shared.ts +++ b/sdk/servicebus/service-bus/src/core/shared.ts @@ -39,7 +39,7 @@ export interface DeferredPromiseAndTimer { export function onMessageSettled( logPrefix: string, delivery: Delivery | undefined, - deliveryDispositionMap: Map + deliveryDispositionMap: Map, ): void { if (delivery) { const id = delivery.id; @@ -50,7 +50,7 @@ export function onMessageSettled( logPrefix, id, settled, - state && state.error ? state.error : state + state && state.error ? state.error : state, ); if (settled && deliveryDispositionMap.has(id)) { const promise = deliveryDispositionMap.get(id) as DeferredPromiseAndTimer; @@ -58,14 +58,14 @@ export function onMessageSettled( receiverLogger.verbose( "%s Found the delivery with id %d in the map and cleared the timer.", logPrefix, - id + id, ); const deleteResult = deliveryDispositionMap.delete(id); receiverLogger.verbose( "%s Successfully deleted the delivery with id %d from the map.", logPrefix, id, - deleteResult + deleteResult, ); if (state && state.error && (state.error.condition || state.error.description)) { const error = translateServiceBusError(state.error); @@ -90,7 +90,7 @@ export function createReceiverOptions( source: Source, clientId: string, handlers: ReceiverHandlers, - timeoutInMs?: number + timeoutInMs?: number, ): ReceiverOptions { const properties = timeoutInMs !== undefined diff --git a/sdk/servicebus/service-bus/src/core/streamingReceiver.ts b/sdk/servicebus/service-bus/src/core/streamingReceiver.ts index 4f22a6b68e64..73d4b3864de5 100644 --- a/sdk/servicebus/service-bus/src/core/streamingReceiver.ts +++ b/sdk/servicebus/service-bus/src/core/streamingReceiver.ts @@ -137,7 +137,7 @@ export class StreamingReceiver extends MessageReceiver { identifier: string, connectionContext: ConnectionContext, entityPath: string, - options: ReceiveOptions + options: ReceiveOptions, ) { super(identifier, connectionContext, entityPath, "streaming", options); @@ -158,7 +158,7 @@ export class StreamingReceiver extends MessageReceiver { logger.logError( receiverError, - `${this.logPrefix} 'receiver_close' event occurred. The associated error is` + `${this.logPrefix} 'receiver_close' event occurred. The associated error is`, ); this._lockRenewer?.stopAll(this); @@ -172,7 +172,7 @@ export class StreamingReceiver extends MessageReceiver { "() handler.", this.logPrefix, this.name, - this.address + this.address, ); } }; @@ -183,7 +183,7 @@ export class StreamingReceiver extends MessageReceiver { logger.logError( sessionError, - `${this.logPrefix} 'session_close' event occurred. The associated error is` + `${this.logPrefix} 'session_close' event occurred. The associated error is`, ); this._lockRenewer?.stopAll(this); @@ -197,7 +197,7 @@ export class StreamingReceiver extends MessageReceiver { "() handler.", this.logPrefix, this.name, - this.address + this.address, ); } }; @@ -208,7 +208,7 @@ export class StreamingReceiver extends MessageReceiver { const sbError = translateServiceBusError(receiverError) as MessagingError; logger.logError( sbError, - `${this.logPrefix} 'receiver_error' event occurred. The associated error is` + `${this.logPrefix} 'receiver_error' event occurred. The associated error is`, ); this._messageHandlers().processError({ error: sbError, @@ -226,7 +226,7 @@ export class StreamingReceiver extends MessageReceiver { const sbError = translateServiceBusError(sessionError) as MessagingError; logger.logError( sbError, - `${this.logPrefix} 'session_error' event occurred. The associated error is` + `${this.logPrefix} 'session_error' event occurred. The associated error is`, ); this._messageHandlers().processError({ error: sbError, @@ -245,7 +245,7 @@ export class StreamingReceiver extends MessageReceiver { logger.verbose( "%s Not calling the user's message handler for the current message " + "as the receiver is closed", - this.logPrefix + this.logPrefix, ); return; } @@ -256,7 +256,7 @@ export class StreamingReceiver extends MessageReceiver { true, this.receiveMode, options.skipParsingBodyAsJson ?? false, - options.skipConvertingDate ?? false + options.skipConvertingDate ?? false, ); this._lockRenewer?.start(this, bMessage, (err) => { @@ -278,7 +278,7 @@ export class StreamingReceiver extends MessageReceiver { "with id '%s' on the receiver '%s'", this.logPrefix, bMessage.messageId, - this.name + this.name, ); // Do not want renewLock to happen unnecessarily, while abandoning the message. Hence, @@ -300,14 +300,14 @@ export class StreamingReceiver extends MessageReceiver { this.logPrefix, bMessage.messageId, this.name, - error + error, ); await abandonMessage( bMessage, this._context, entityPath, undefined, - this._retryOptions + this._retryOptions, ); } catch (abandonError: any) { const translatedError = translateServiceBusError(abandonError); @@ -317,7 +317,7 @@ export class StreamingReceiver extends MessageReceiver { "receiver '%s'", this.logPrefix, bMessage.messageId, - this.name + this.name, ); this._messageHandlers().processError({ error: translatedError, @@ -338,7 +338,7 @@ export class StreamingReceiver extends MessageReceiver { if (err.name !== "AbortError") { logger.logError( err, - `[${this.logPrefix}] Failed to add credit after receiving message` + `[${this.logPrefix}] Failed to add credit after receiving message`, ); await this._reportInternalError(err); } @@ -356,7 +356,7 @@ export class StreamingReceiver extends MessageReceiver { logger.verbose( "%s Auto completing the message with id '%s' on " + "the receiver.", this.logPrefix, - bMessage.messageId + bMessage.messageId, ); await completeMessage(bMessage, this._context, entityPath, this._retryOptions); } catch (completeError: any) { @@ -367,7 +367,7 @@ export class StreamingReceiver extends MessageReceiver { "receiver '%s'", this.logPrefix, bMessage.messageId, - this.name + this.name, ); this._messageHandlers().processError({ error: translatedError, @@ -444,7 +444,7 @@ export class StreamingReceiver extends MessageReceiver { */ async subscribe( messageHandlers: InternalMessageHandlers, - subscribeOptions: SubscribeOptions | undefined + subscribeOptions: SubscribeOptions | undefined, ): Promise { // these options and message handlers will be re-used if/when onDetach is called. this._subscribeOptions = subscribeOptions; @@ -485,7 +485,7 @@ export class StreamingReceiver extends MessageReceiver { */ private _setMessageHandlers( userHandlers: InternalMessageHandlers, - operationOptions: OperationOptionsBase | undefined + operationOptions: OperationOptionsBase | undefined, ): void { const messageHandlers = { processError: async (args: ProcessErrorArgs) => { @@ -503,7 +503,7 @@ export class StreamingReceiver extends MessageReceiver { "StreamReceiver.process", operationOptions ?? {}, () => userHandlers.processMessage(message), - toProcessingSpanOptions(message, this, this._context.config, "process") + toProcessingSpanOptions(message, this, this._context.config, "process"), ); } catch (err: any) { this._messageHandlers().processError({ @@ -528,7 +528,7 @@ export class StreamingReceiver extends MessageReceiver { entityPath: this.entityPath, fullyQualifiedNamespace: this._context.config.host, identifier: this.identifier, - }) + }), ); }, preInitialize: async () => { @@ -543,7 +543,7 @@ export class StreamingReceiver extends MessageReceiver { entityPath: this.entityPath, fullyQualifiedNamespace: this._context.config.host, identifier: this.identifier, - }) + }), ); }, forwardInternalErrors: userHandlers.forwardInternalErrors ?? false, @@ -618,7 +618,7 @@ export class StreamingReceiver extends MessageReceiver { } await this._init( this._createReceiverOptions(caller === "detach", this._getHandlers()), - this._subscribeOptions?.abortSignal + this._subscribeOptions?.abortSignal, ); try { @@ -652,7 +652,7 @@ export class StreamingReceiver extends MessageReceiver { // and we can exit early. if (this.wasClosedPermanently) { logger.verbose( - `${this.logPrefix} onDetached: link has been closed permanently, not reinitializing. ` + `${this.logPrefix} onDetached: link has been closed permanently, not reinitializing. `, ); return; } @@ -667,7 +667,7 @@ export class StreamingReceiver extends MessageReceiver { // These should be ignored until the already running `onDetached` completes // its retry attempts or errors. logger.verbose( - `${this.logPrefix} onDetached: Call to detached on streaming receiver '${this.name}' is already in progress.` + `${this.logPrefix} onDetached: Call to detached on streaming receiver '${this.name}' is already in progress.`, ); return; } @@ -679,7 +679,7 @@ export class StreamingReceiver extends MessageReceiver { : receiverError; logger.logError( translatedError, - `${this.logPrefix} onDetached: Reinitializing receiver because of error` + `${this.logPrefix} onDetached: Reinitializing receiver because of error`, ); // Clears the token renewal timer. Closes the link and its session if they are open. @@ -688,7 +688,7 @@ export class StreamingReceiver extends MessageReceiver { } catch (err: any) { logger.verbose( `${this.logPrefix} onDetached: Encountered an error when closing the previous link: `, - err + err, ); } diff --git a/sdk/servicebus/service-bus/src/dataTransformer.ts b/sdk/servicebus/service-bus/src/dataTransformer.ts index 3a65403ed71a..df0aec824411 100644 --- a/sdk/servicebus/service-bus/src/dataTransformer.ts +++ b/sdk/servicebus/service-bus/src/dataTransformer.ts @@ -109,7 +109,7 @@ export const defaultDataTransformer = { */ decodeWithType( body: unknown | RheaAmqpSection, - skipParsingBodyAsJson: boolean + skipParsingBodyAsJson: boolean, ): { body: unknown; bodyType: "data" | "sequence" | "value" } { try { if (isRheaAmqpSection(body)) { @@ -139,7 +139,7 @@ export const defaultDataTransformer = { } catch (err: any) { logger.verbose( "[decode] An error occurred while decoding the received message body. The error is: %O", - err + err, ); throw err; } @@ -148,7 +148,7 @@ export const defaultDataTransformer = { /** @internal */ export function isRheaAmqpSection( - possibleSection: any | RheaAmqpSection + possibleSection: any | RheaAmqpSection, ): possibleSection is RheaAmqpSection { return ( possibleSection != null && @@ -180,7 +180,7 @@ export function tryToJsonDecode(body: any): any { logger.verbose( "[decode] An error occurred while trying JSON.parse() on the received body. " + "The error is %O", - err + err, ); } return processedBody; diff --git a/sdk/servicebus/service-bus/src/diagnostics/instrumentServiceBusMessage.ts b/sdk/servicebus/service-bus/src/diagnostics/instrumentServiceBusMessage.ts index 4c82bbec26a5..75ccdd909fe0 100644 --- a/sdk/servicebus/service-bus/src/diagnostics/instrumentServiceBusMessage.ts +++ b/sdk/servicebus/service-bus/src/diagnostics/instrumentServiceBusMessage.ts @@ -34,7 +34,7 @@ export function instrumentMessage( options: OperationOptionsBase, entityPath: string, host: string, - operation: MessagingOperationNames + operation: MessagingOperationNames, ): { /** * If instrumentation was done, a copy of the message with @@ -61,7 +61,7 @@ export function instrumentMessage( const { span: messageSpan, updatedOptions } = tracingClient.startSpan( "message", options, - toSpanOptions({ entityPath, host }, operation, "producer") + toSpanOptions({ entityPath, host }, operation, "producer"), ); try { @@ -73,7 +73,7 @@ export function instrumentMessage( } const traceParent = tracingClient.createRequestHeaders( - updatedOptions.tracingOptions?.tracingContext + updatedOptions.tracingOptions?.tracingContext, )["traceparent"]; if (traceParent) { @@ -102,7 +102,7 @@ export function instrumentMessage( * @internal */ export function extractSpanContextFromServiceBusMessage( - message: ServiceBusMessage + message: ServiceBusMessage, ): TracingContext | undefined { if (!message.applicationProperties || !message.applicationProperties[TRACEPARENT_PROPERTY]) { return; @@ -120,7 +120,7 @@ export function extractSpanContextFromServiceBusMessage( * @internal */ function* getReceivedMessages( - receivedMessages: ServiceBusReceivedMessage | ServiceBusReceivedMessage[] + receivedMessages: ServiceBusReceivedMessage | ServiceBusReceivedMessage[], ): Iterable { if (!Array.isArray(receivedMessages)) { yield receivedMessages; @@ -138,7 +138,7 @@ export function toProcessingSpanOptions( receivedMessages: ServiceBusReceivedMessage | ServiceBusReceivedMessage[], receiver: Pick, connectionConfig: Pick, - operation: MessagingOperationNames + operation: MessagingOperationNames, ): TracingSpanOptions { const spanLinks: TracingSpanLink[] = []; for (const receivedMessage of getReceivedMessages(receivedMessages)) { diff --git a/sdk/servicebus/service-bus/src/diagnostics/tracing.ts b/sdk/servicebus/service-bus/src/diagnostics/tracing.ts index e0d8a00aa5f0..b9250b7f9068 100644 --- a/sdk/servicebus/service-bus/src/diagnostics/tracing.ts +++ b/sdk/servicebus/service-bus/src/diagnostics/tracing.ts @@ -29,7 +29,7 @@ export const tracingClient = createTracingClient({ export function toSpanOptions( serviceBusConfig: Pick & { entityPath: string }, operation: MessagingOperationNames, - spanKind?: TracingSpanKind + spanKind?: TracingSpanKind, ): TracingSpanOptions { const propertyName = operation === "process" || operation === "receive" diff --git a/sdk/servicebus/service-bus/src/receivers/receiver.ts b/sdk/servicebus/service-bus/src/receivers/receiver.ts index 92ea5dd62b64..a8cccfdaf0ac 100644 --- a/sdk/servicebus/service-bus/src/receivers/receiver.ts +++ b/sdk/servicebus/service-bus/src/receivers/receiver.ts @@ -72,7 +72,7 @@ export interface ServiceBusReceiver { */ subscribe( handlers: MessageHandlers, - options?: SubscribeOptions + options?: SubscribeOptions, ): { /** * Causes the subscriber to stop receiving new messages. @@ -91,7 +91,7 @@ export interface ServiceBusReceiver { * @throws `ServiceBusError` if the service returns an error while receiving messages. */ getMessageIterator( - options?: GetMessageIteratorOptions + options?: GetMessageIteratorOptions, ): AsyncIterableIterator; /** @@ -108,7 +108,7 @@ export interface ServiceBusReceiver { */ receiveMessages( maxMessageCount: number, - options?: ReceiveMessagesOptions + options?: ReceiveMessagesOptions, ): Promise; /** @@ -121,7 +121,7 @@ export interface ServiceBusReceiver { */ receiveDeferredMessages( sequenceNumbers: Long | Long[], - options?: OperationOptionsBase + options?: OperationOptionsBase, ): Promise; /** @@ -137,7 +137,7 @@ export interface ServiceBusReceiver { */ peekMessages( maxMessageCount: number, - options?: PeekMessagesOptions + options?: PeekMessagesOptions, ): Promise; /** * Path of the entity for which the receiver has been created. @@ -202,7 +202,7 @@ export interface ServiceBusReceiver { */ abandonMessage( message: ServiceBusReceivedMessage, - propertiesToModify?: { [key: string]: number | boolean | string | Date | null } + propertiesToModify?: { [key: string]: number | boolean | string | Date | null }, ): Promise; /** * Defers the processing of the message. Save the `sequenceNumber` of the message, in order to @@ -228,7 +228,7 @@ export interface ServiceBusReceiver { */ deferMessage( message: ServiceBusReceivedMessage, - propertiesToModify?: { [key: string]: number | boolean | string | Date | null } + propertiesToModify?: { [key: string]: number | boolean | string | Date | null }, ): Promise; /** * Moves the message to the deadletter sub-queue. To receive a deadletted message, create a new @@ -255,7 +255,7 @@ export interface ServiceBusReceiver { */ deadLetterMessage( message: ServiceBusReceivedMessage, - options?: DeadLetterOptions & { [key: string]: number | boolean | string | Date | null } + options?: DeadLetterOptions & { [key: string]: number | boolean | string | Date | null }, ): Promise; /** * Renews the lock on the message for the duration as specified during the Queue/Subscription @@ -309,14 +309,14 @@ export class ServiceBusReceiverImpl implements ServiceBusReceiver { private skipParsingBodyAsJson: boolean, private skipConvertingDate: boolean = false, retryOptions: RetryOptions = {}, - identifier?: string + identifier?: string, ) { throwErrorIfConnectionClosed(_context); this._retryOptions = retryOptions; this._lockRenewer = LockRenewer.create( this._context, maxAutoRenewLockDurationInMs, - receiveMode + receiveMode, ); this.identifier = ensureValidIdentifier(this.entityPath, identifier); } @@ -346,20 +346,20 @@ export class ServiceBusReceiverImpl implements ServiceBusReceiver { async receiveMessages( maxMessageCount: number, - options?: ReceiveMessagesOptions + options?: ReceiveMessagesOptions, ): Promise { this._throwIfReceiverOrConnectionClosed(); this._throwIfAlreadyReceiving(); throwTypeErrorIfParameterMissing( this._context.connectionId, "maxMessageCount", - maxMessageCount + maxMessageCount, ); throwTypeErrorIfParameterTypeMismatch( this._context.connectionId, "maxMessageCount", maxMessageCount, - "number" + "number", ); if (isNaN(maxMessageCount) || maxMessageCount < 1) { @@ -378,7 +378,7 @@ export class ServiceBusReceiverImpl implements ServiceBusReceiver { this._batchingReceiver = this._createBatchingReceiver( this._context, this.entityPath, - receiveOptions + receiveOptions, ); } @@ -386,7 +386,7 @@ export class ServiceBusReceiverImpl implements ServiceBusReceiver { maxMessageCount, options?.maxWaitTimeInMs ?? Constants.defaultOperationTimeoutInMs, defaultMaxTimeAfterFirstMessageForBatchingMs, - options ?? {} + options ?? {}, ); return receivedMessages; @@ -405,25 +405,25 @@ export class ServiceBusReceiverImpl implements ServiceBusReceiver { } getMessageIterator( - options?: GetMessageIteratorOptions + options?: GetMessageIteratorOptions, ): AsyncIterableIterator { return getMessageIterator(this, options); } async receiveDeferredMessages( sequenceNumbers: Long | Long[], - options: OperationOptionsBase = {} + options: OperationOptionsBase = {}, ): Promise { this._throwIfReceiverOrConnectionClosed(); throwTypeErrorIfParameterMissing( this._context.connectionId, "sequenceNumbers", - sequenceNumbers + sequenceNumbers, ); throwTypeErrorIfParameterNotLong( this._context.connectionId, "sequenceNumbers", - sequenceNumbers + sequenceNumbers, ); const deferredSequenceNumbers = Array.isArray(sequenceNumbers) @@ -458,7 +458,7 @@ export class ServiceBusReceiverImpl implements ServiceBusReceiver { async peekMessages( maxMessageCount: number, - options: PeekMessagesOptions = {} + options: PeekMessagesOptions = {}, ): Promise { this._throwIfReceiverOrConnectionClosed(); @@ -479,7 +479,7 @@ export class ServiceBusReceiverImpl implements ServiceBusReceiver { maxMessageCount, undefined, options.omitMessageBody, - managementRequestOptions + managementRequestOptions, ); } else { return this._context @@ -500,7 +500,7 @@ export class ServiceBusReceiverImpl implements ServiceBusReceiver { subscribe( handlers: MessageHandlers, - options?: SubscribeOptions + options?: SubscribeOptions, ): { close(): Promise; } { @@ -563,7 +563,7 @@ export class ServiceBusReceiverImpl implements ServiceBusReceiver { async abandonMessage( message: ServiceBusReceivedMessage, - propertiesToModify?: { [key: string]: number | boolean | string | Date | null } + propertiesToModify?: { [key: string]: number | boolean | string | Date | null }, ): Promise { this._throwIfReceiverOrConnectionClosed(); throwErrorIfInvalidOperationOnMessage(message, this.receiveMode, this._context.connectionId); @@ -573,13 +573,13 @@ export class ServiceBusReceiverImpl implements ServiceBusReceiver { this._context, this.entityPath, propertiesToModify, - this._retryOptions + this._retryOptions, ); } async deferMessage( message: ServiceBusReceivedMessage, - propertiesToModify?: { [key: string]: number | boolean | string | Date | null } + propertiesToModify?: { [key: string]: number | boolean | string | Date | null }, ): Promise { this._throwIfReceiverOrConnectionClosed(); throwErrorIfInvalidOperationOnMessage(message, this.receiveMode, this._context.connectionId); @@ -589,13 +589,13 @@ export class ServiceBusReceiverImpl implements ServiceBusReceiver { this._context, this.entityPath, propertiesToModify, - this._retryOptions + this._retryOptions, ); } async deadLetterMessage( message: ServiceBusReceivedMessage, - options?: DeadLetterOptions & { [key: string]: number | boolean | string | Date | null } + options?: DeadLetterOptions & { [key: string]: number | boolean | string | Date | null }, ): Promise { this._throwIfReceiverOrConnectionClosed(); throwErrorIfInvalidOperationOnMessage(message, this.receiveMode, this._context.connectionId); @@ -634,9 +634,9 @@ export class ServiceBusReceiverImpl implements ServiceBusReceiver { ...toSpanOptions( { entityPath: this.entityPath, host: this._context.config.host }, "receive", - "client" + "client", ), - } + }, ); } @@ -685,11 +685,11 @@ export class ServiceBusReceiverImpl implements ServiceBusReceiver { private _createBatchingReceiver( context: ConnectionContext, entityPath: string, - options: ReceiveOptions + options: ReceiveOptions, ): BatchingReceiver { const receiver = BatchingReceiver.create(this.identifier, context, entityPath, options); logger.verbose( - `[${this.logPrefix}] receiver '${receiver.name}' created, with maxConcurrentCalls set to ${options.maxConcurrentCalls}.` + `[${this.logPrefix}] receiver '${receiver.name}' created, with maxConcurrentCalls set to ${options.maxConcurrentCalls}.`, ); return receiver; diff --git a/sdk/servicebus/service-bus/src/receivers/receiverCommon.ts b/sdk/servicebus/service-bus/src/receivers/receiverCommon.ts index 2e62ccd3e762..bed828c02172 100644 --- a/sdk/servicebus/service-bus/src/receivers/receiverCommon.ts +++ b/sdk/servicebus/service-bus/src/receivers/receiverCommon.ts @@ -52,7 +52,7 @@ export function assertValidMessageHandlers(handlers: { */ export async function* getMessageIterator( receiver: Pick, - options?: OperationOptionsBase + options?: OperationOptionsBase, ): AsyncIterableIterator { while (true) { const messages = await receiver.receiveMessages(1, options); @@ -70,7 +70,7 @@ export async function* getMessageIterator( */ export function wrapProcessErrorHandler( handlers: Pick, - loggerParam: ServiceBusLogger = receiverLogger + loggerParam: ServiceBusLogger = receiverLogger, ): MessageHandlers["processError"] { return async (args: ProcessErrorArgs) => { try { @@ -90,12 +90,12 @@ export function completeMessage( message: ServiceBusMessageImpl, context: ConnectionContext, entityPath: string, - retryOptions: RetryOptions | undefined + retryOptions: RetryOptions | undefined, ): Promise { receiverLogger.verbose( "[%s] Completing the message with id '%s'.", context.connectionId, - message.messageId + message.messageId, ); const tracingContext = extractSpanContextFromServiceBusMessage(message); const spanLinks: TracingSpanLink[] = tracingContext ? [{ tracingContext }] : []; @@ -109,7 +109,7 @@ export function completeMessage( { spanLinks, ...toSpanOptions({ entityPath, host: context.config.host }, "settle", "client"), - } + }, ); } @@ -122,12 +122,12 @@ export function abandonMessage( context: ConnectionContext, entityPath: string, propertiesToModify: { [key: string]: number | boolean | string | Date | null } | undefined, - retryOptions: RetryOptions | undefined + retryOptions: RetryOptions | undefined, ): Promise { receiverLogger.verbose( "[%s] Abandoning the message with id '%s'.", context.connectionId, - message.messageId + message.messageId, ); const tracingContext = extractSpanContextFromServiceBusMessage(message); const spanLinks: TracingSpanLink[] = tracingContext ? [{ tracingContext }] : []; @@ -142,7 +142,7 @@ export function abandonMessage( { spanLinks, ...toSpanOptions({ entityPath, host: context.config.host }, "settle", "client"), - } + }, ); } @@ -155,12 +155,12 @@ export function deferMessage( context: ConnectionContext, entityPath: string, propertiesToModify: { [key: string]: number | boolean | string | Date | null } | undefined, - retryOptions: RetryOptions | undefined + retryOptions: RetryOptions | undefined, ): Promise { receiverLogger.verbose( "[%s] Deferring the message with id '%s'.", context.connectionId, - message.messageId + message.messageId, ); const tracingContext = extractSpanContextFromServiceBusMessage(message); const spanLinks: TracingSpanLink[] = tracingContext ? [{ tracingContext }] : []; @@ -175,7 +175,7 @@ export function deferMessage( { spanLinks, ...toSpanOptions({ entityPath, host: context.config.host }, "settle", "client"), - } + }, ); } @@ -190,12 +190,12 @@ export function deadLetterMessage( propertiesToModify: | (DeadLetterOptions & { [key: string]: number | boolean | string | Date | null }) | undefined, - retryOptions: RetryOptions | undefined + retryOptions: RetryOptions | undefined, ): Promise { receiverLogger.verbose( "[%s] Deadlettering the message with id '%s'.", context.connectionId, - message.messageId + message.messageId, ); const actualPropertiesToModify: Partial = { @@ -225,12 +225,12 @@ export function deadLetterMessage( DispositionType.deadletter, context, entityPath, - dispositionStatusOptions + dispositionStatusOptions, ), { spanLinks, ...toSpanOptions({ entityPath, host: context.config.host }, "settle", "client"), - } + }, ); } @@ -243,7 +243,7 @@ export function settleMessage( context: ConnectionContext, entityPath: string, options: DispositionStatusOptions, - _settleMessageOperation: typeof settleMessageOperation = settleMessageOperation + _settleMessageOperation: typeof settleMessageOperation = settleMessageOperation, ): Promise { return retry({ connectionId: context.connectionId, @@ -268,7 +268,7 @@ export async function settleMessageOperation( operation: DispositionType, context: ConnectionContext, entityPath: string, - options: DispositionStatusOptions + options: DispositionStatusOptions, ): Promise { const isDeferredMessage = !message.delivery.link; const receiver = isDeferredMessage @@ -297,7 +297,7 @@ export async function settleMessageOperation( error, "[%s] An error occurred when settling a message with id '%s'", context.connectionId, - message.messageId + message.messageId, ); throw error; } @@ -338,7 +338,7 @@ function calculateDelay( attemptCount: number, retryDelayInMs: number, maxRetryDelayInMs: number, - mode: RetryMode + mode: RetryMode, ): number { if (mode === RetryMode.Exponential) { const boundedRandDelta = @@ -363,7 +363,7 @@ function calculateDelay( */ export async function retryForever( args: RetryForeverArgs, - retryFn: typeof retry = retry + retryFn: typeof retry = retry, ): Promise { let numRetryCycles = 0; const config = args.retryConfig; @@ -413,20 +413,20 @@ export async function retryForever( args.logger.logError( err, `${args.logPrefix} Error thrown in retry cycle ${numRetryCycles}, restarting retry cycle with retry options`, - args.retryConfig + args.retryConfig, ); const delayInMs = calculateDelay( numRetryCycles, config.retryOptions.retryDelayInMs, config.retryOptions.maxRetryDelayInMs, - config.retryOptions.mode + config.retryOptions.mode, ); logger.verbose( "[%s] Sleeping for %d milliseconds for '%s'.", config.connectionId, delayInMs, - config.operationType + config.operationType, ); await delay(delayInMs, { abortSignal: config.abortSignal, diff --git a/sdk/servicebus/service-bus/src/receivers/sessionReceiver.ts b/sdk/servicebus/service-bus/src/receivers/sessionReceiver.ts index 52205127a846..042a343ba238 100644 --- a/sdk/servicebus/service-bus/src/receivers/sessionReceiver.ts +++ b/sdk/servicebus/service-bus/src/receivers/sessionReceiver.ts @@ -72,7 +72,7 @@ export interface ServiceBusSessionReceiver extends ServiceBusReceiver { */ subscribe( handlers: MessageHandlers, - options?: SubscribeOptions + options?: SubscribeOptions, ): { /** * Causes the subscriber to stop receiving new messages. @@ -135,7 +135,7 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver public receiveMode: "peekLock" | "receiveAndDelete", private _skipParsingBodyAsJson: boolean, private _skipConvertingDate: boolean, - private _retryOptions: RetryOptions = {} + private _retryOptions: RetryOptions = {}, ) { throwErrorIfConnectionClosed(_context); this.sessionId = _messageSession.sessionId; @@ -234,7 +234,7 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver abortSignal: options?.abortSignal, }; return retry(config); - } + }, ); } @@ -272,7 +272,7 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver abortSignal: options?.abortSignal, }; return retry(config); - } + }, ); } @@ -309,13 +309,13 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver abortSignal: options?.abortSignal, }; return retry(config); - } + }, ); } async peekMessages( maxMessageCount: number, - options: PeekMessagesOptions = {} + options: PeekMessagesOptions = {}, ): Promise { this._throwIfReceiverOrConnectionClosed(); @@ -336,7 +336,7 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver maxMessageCount, this.sessionId, options.omitMessageBody, - managementRequestOptions + managementRequestOptions, ); } else { return this._context @@ -345,7 +345,7 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver this.sessionId, maxMessageCount, options.omitMessageBody, - managementRequestOptions + managementRequestOptions, ); } }; @@ -362,18 +362,18 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver async receiveDeferredMessages( sequenceNumbers: Long | Long[], - options: OperationOptionsBase = {} + options: OperationOptionsBase = {}, ): Promise { this._throwIfReceiverOrConnectionClosed(); throwTypeErrorIfParameterMissing( this._context.connectionId, "sequenceNumbers", - sequenceNumbers + sequenceNumbers, ); throwTypeErrorIfParameterNotLong( this._context.connectionId, "sequenceNumbers", - sequenceNumbers + sequenceNumbers, ); const deferredSequenceNumbers = Array.isArray(sequenceNumbers) @@ -406,20 +406,20 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver async receiveMessages( maxMessageCount: number, - options?: ReceiveMessagesOptions + options?: ReceiveMessagesOptions, ): Promise { this._throwIfReceiverOrConnectionClosed(); this._throwIfAlreadyReceiving(); throwTypeErrorIfParameterMissing( this._context.connectionId, "maxMessageCount", - maxMessageCount + maxMessageCount, ); throwTypeErrorIfParameterTypeMismatch( this._context.connectionId, "maxMessageCount", maxMessageCount, - "number" + "number", ); if (isNaN(maxMessageCount) || maxMessageCount < 1) { @@ -431,7 +431,7 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver maxMessageCount, options?.maxWaitTimeInMs ?? Constants.defaultOperationTimeoutInMs, defaultMaxTimeAfterFirstMessageForBatchingMs, - options ?? {} + options ?? {}, ); return receivedMessages; @@ -450,7 +450,7 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver subscribe( handlers: MessageHandlers, - options?: SubscribeOptions + options?: SubscribeOptions, ): { close(): Promise; } { @@ -467,11 +467,11 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver "SessionReceiver.process", options ?? {}, () => handlers.processMessage(message), - toProcessingSpanOptions(message, this, this._context.config, "process") + toProcessingSpanOptions(message, this, this._context.config, "process"), ); }, processError, - options + options, ); return { @@ -505,7 +505,7 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver private _registerMessageHandler( onMessage: OnMessage, onError: OnError, - options: SubscribeOptions + options: SubscribeOptions, ): void { this._throwIfReceiverOrConnectionClosed(); this._throwIfAlreadyReceiving(); @@ -533,7 +533,7 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver } getMessageIterator( - options?: GetMessageIteratorOptions + options?: GetMessageIteratorOptions, ): AsyncIterableIterator { return getMessageIterator(this, options); } @@ -547,7 +547,7 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver async abandonMessage( message: ServiceBusReceivedMessage, - propertiesToModify?: { [key: string]: number | boolean | string | Date | null } + propertiesToModify?: { [key: string]: number | boolean | string | Date | null }, ): Promise { this._throwIfReceiverOrConnectionClosed(); throwErrorIfInvalidOperationOnMessage(message, this.receiveMode, this._context.connectionId); @@ -557,13 +557,13 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver this._context, this.entityPath, propertiesToModify, - this._retryOptions + this._retryOptions, ); } async deferMessage( message: ServiceBusReceivedMessage, - propertiesToModify?: { [key: string]: number | boolean | string | Date | null } + propertiesToModify?: { [key: string]: number | boolean | string | Date | null }, ): Promise { this._throwIfReceiverOrConnectionClosed(); throwErrorIfInvalidOperationOnMessage(message, this.receiveMode, this._context.connectionId); @@ -573,13 +573,13 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver this._context, this.entityPath, propertiesToModify, - this._retryOptions + this._retryOptions, ); } async deadLetterMessage( message: ServiceBusReceivedMessage, - options?: DeadLetterOptions & { [key: string]: number | boolean | string | Date | null } + options?: DeadLetterOptions & { [key: string]: number | boolean | string | Date | null }, ): Promise { this._throwIfReceiverOrConnectionClosed(); throwErrorIfInvalidOperationOnMessage(message, this.receiveMode, this._context.connectionId); @@ -599,7 +599,7 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver err, "%s An error occurred while closing the SessionReceiver for session %s", this.logPrefix, - this.sessionId + this.sessionId, ); throw err; } finally { diff --git a/sdk/servicebus/service-bus/src/sender.ts b/sdk/servicebus/service-bus/src/sender.ts index 599470a06f17..1edd32671be5 100644 --- a/sdk/servicebus/service-bus/src/sender.ts +++ b/sdk/servicebus/service-bus/src/sender.ts @@ -73,7 +73,7 @@ export interface ServiceBusSender { | ServiceBusMessageBatch | AmqpAnnotatedMessage | AmqpAnnotatedMessage[], - options?: OperationOptionsBase + options?: OperationOptionsBase, ): Promise; /** @@ -125,7 +125,7 @@ export interface ServiceBusSender { | AmqpAnnotatedMessage | AmqpAnnotatedMessage[], scheduledEnqueueTimeUtc: Date, - options?: OperationOptionsBase + options?: OperationOptionsBase, ): Promise; /** @@ -137,7 +137,7 @@ export interface ServiceBusSender { */ cancelScheduledMessages( sequenceNumbers: Long | Long[], - options?: OperationOptionsBase + options?: OperationOptionsBase, ): Promise; /** * Path of the entity for which the sender has been created. @@ -177,7 +177,7 @@ export class ServiceBusSenderImpl implements ServiceBusSender { private _context: ConnectionContext, private _entityPath: string, retryOptions: RetryOptions = {}, - identifier?: string + identifier?: string, ) { throwErrorIfConnectionClosed(_context); this.entityPath = _entityPath; @@ -207,7 +207,7 @@ export class ServiceBusSenderImpl implements ServiceBusSender { | ServiceBusMessageBatch | AmqpAnnotatedMessage | AmqpAnnotatedMessage[], - options?: OperationOptionsBase + options?: OperationOptionsBase, ): Promise { this._throwIfSenderOrConnectionClosed(); throwTypeErrorIfParameterMissing(this._context.connectionId, "messages", messages); @@ -221,7 +221,7 @@ export class ServiceBusSenderImpl implements ServiceBusSender { options ?? {}, this.entityPath, this._context.config.host, - "publish" + "publish", ); const spanLinks: TracingSpanLink[] = spanContext ? [{ tracingContext: spanContext }] : []; return tracingClient.withSpan( @@ -233,9 +233,9 @@ export class ServiceBusSenderImpl implements ServiceBusSender { ...toSpanOptions( { entityPath: this.entityPath, host: this._context.config.host }, "publish", - "client" + "client", ), - } + }, ); } @@ -252,7 +252,7 @@ export class ServiceBusSenderImpl implements ServiceBusSender { // this is too big - throw an error throw new ServiceBusError( "Messages were too big to fit in a single batch. Remove some messages and try again or create your own batch using createBatch(), which gives more fine-grained control.", - "MessageSizeExceeded" + "MessageSizeExceeded", ); } } @@ -273,9 +273,9 @@ export class ServiceBusSenderImpl implements ServiceBusSender { ...toSpanOptions( { entityPath: this.entityPath, host: this._context.config.host }, "publish", - "client" + "client", ), - } + }, ); } @@ -291,19 +291,19 @@ export class ServiceBusSenderImpl implements ServiceBusSender { | AmqpAnnotatedMessage | AmqpAnnotatedMessage[], scheduledEnqueueTimeUtc: Date, - options: OperationOptionsBase = {} + options: OperationOptionsBase = {}, ): Promise { this._throwIfSenderOrConnectionClosed(); throwTypeErrorIfParameterMissing( this._context.connectionId, "scheduledEnqueueTimeUtc", - scheduledEnqueueTimeUtc + scheduledEnqueueTimeUtc, ); throwTypeErrorIfNotInstanceOfParameterType( this._context.connectionId, "scheduledEnqueueTimeUtc", scheduledEnqueueTimeUtc, - Date + Date, ); throwTypeErrorIfParameterMissing(this._context.connectionId, "messages", messages); const messagesToSchedule = Array.isArray(messages) ? messages : [messages]; @@ -334,18 +334,18 @@ export class ServiceBusSenderImpl implements ServiceBusSender { async cancelScheduledMessages( sequenceNumbers: Long | Long[], - options: OperationOptionsBase = {} + options: OperationOptionsBase = {}, ): Promise { this._throwIfSenderOrConnectionClosed(); throwTypeErrorIfParameterMissing( this._context.connectionId, "sequenceNumbers", - sequenceNumbers + sequenceNumbers, ); throwTypeErrorIfParameterNotLong( this._context.connectionId, "sequenceNumbers", - sequenceNumbers + sequenceNumbers, ); const sequenceNumbersToCancel = Array.isArray(sequenceNumbers) @@ -401,7 +401,7 @@ export class ServiceBusSenderImpl implements ServiceBusSender { * @internal */ export function isServiceBusMessageBatch( - messageBatchOrAnything: unknown + messageBatchOrAnything: unknown, ): messageBatchOrAnything is ServiceBusMessageBatch { if (messageBatchOrAnything == null) { return false; diff --git a/sdk/servicebus/service-bus/src/serializers/queueResourceSerializer.ts b/sdk/servicebus/service-bus/src/serializers/queueResourceSerializer.ts index 53abd1420a9a..20134103fa61 100644 --- a/sdk/servicebus/service-bus/src/serializers/queueResourceSerializer.ts +++ b/sdk/servicebus/service-bus/src/serializers/queueResourceSerializer.ts @@ -81,29 +81,29 @@ export function buildQueue(rawQueue: Record): QueueProperties { requiresSession: getBoolean(rawQueue[Constants.REQUIRES_SESSION], "requiresSession"), enableBatchedOperations: getBoolean( rawQueue[Constants.ENABLE_BATCHED_OPERATIONS], - "enableBatchedOperations" + "enableBatchedOperations", ), defaultMessageTimeToLive: getString( rawQueue[Constants.DEFAULT_MESSAGE_TIME_TO_LIVE], - "defaultMessageTimeToLive" + "defaultMessageTimeToLive", ), autoDeleteOnIdle: rawQueue[Constants.AUTO_DELETE_ON_IDLE], requiresDuplicateDetection: getBoolean( rawQueue[Constants.REQUIRES_DUPLICATE_DETECTION], - "requiresDuplicateDetection" + "requiresDuplicateDetection", ), duplicateDetectionHistoryTimeWindow: getString( rawQueue[Constants.DUPLICATE_DETECTION_HISTORY_TIME_WINDOW], - "duplicateDetectionHistoryTimeWindow" + "duplicateDetectionHistoryTimeWindow", ), deadLetteringOnMessageExpiration: getBoolean( rawQueue[Constants.DEAD_LETTERING_ON_MESSAGE_EXPIRATION], - "deadLetteringOnMessageExpiration" + "deadLetteringOnMessageExpiration", ), forwardDeadLetteredMessagesTo: getStringOrUndefined( - rawQueue[Constants.FORWARD_DEADLETTERED_MESSAGES_TO] + rawQueue[Constants.FORWARD_DEADLETTERED_MESSAGES_TO], ), authorizationRules: getAuthorizationRulesOrUndefined(rawQueue[Constants.AUTHORIZATION_RULES]), @@ -115,7 +115,7 @@ export function buildQueue(rawQueue: Record): QueueProperties { availabilityStatus: rawQueue[Constants.ENTITY_AVAILABILITY_STATUS], maxMessageSizeInKilobytes: getIntegerOrUndefined( - rawQueue[Constants.MAX_MESSAGE_SIZE_IN_KILOBYTES] + rawQueue[Constants.MAX_MESSAGE_SIZE_IN_KILOBYTES], ), }; } diff --git a/sdk/servicebus/service-bus/src/serializers/ruleResourceSerializer.ts b/sdk/servicebus/service-bus/src/serializers/ruleResourceSerializer.ts index 3afd044c7bc0..9b502e989287 100644 --- a/sdk/servicebus/service-bus/src/serializers/ruleResourceSerializer.ts +++ b/sdk/servicebus/service-bus/src/serializers/ruleResourceSerializer.ts @@ -50,7 +50,7 @@ function getTopicFilter(value: any): SqlRuleFilter | CorrelationRuleFilter { contentType: getStringOrUndefined(value["ContentType"]), applicationProperties: getKeyValuePairsOrUndefined( value["Properties"], - "ApplicationProperties" + "ApplicationProperties", ), }; } @@ -205,7 +205,7 @@ export function buildInternalRuleResource(rule: CreateRuleOptions): InternalRule MessageId: correlationFilter.messageId, Properties: buildInternalRawKeyValuePairs( correlationFilter.applicationProperties, - "applicationProperties" + "applicationProperties", ), }; resource.Filter[Constants.XML_METADATA_MARKER] = { @@ -312,7 +312,7 @@ const keyValuePairXMLTag = "KeyValueOfstringanyType"; */ function getKeyValuePairsOrUndefined( value: any, - attribute: "ApplicationProperties" | "SQLParameters" + attribute: "ApplicationProperties" | "SQLParameters", ): { [key: string]: any } | undefined { if (!value) { return undefined; @@ -347,15 +347,15 @@ function getKeyValuePairsOrUndefined( properties[key] = new Date(_value); } else { throw new TypeError( - `Unable to parse the key-value pairs in the response - ${JSON.stringify(rawProperty)}` + `Unable to parse the key-value pairs in the response - ${JSON.stringify(rawProperty)}`, ); } } } else { throw new TypeError( `${attribute} in the response is not an array, unable to parse the response - ${JSON.stringify( - value - )}` + value, + )}`, ); } return properties; @@ -368,7 +368,7 @@ function getKeyValuePairsOrUndefined( */ export function buildInternalRawKeyValuePairs( parameters: { [key: string]: any } | undefined, - attribute: "applicationProperties" | "sqlParameters" + attribute: "applicationProperties" | "sqlParameters", ): InternalRawKeyValuePairs | undefined { if (!isDefined(parameters)) { return undefined; @@ -381,8 +381,8 @@ export function buildInternalRawKeyValuePairs( ) { throw new TypeError( `Unsupported value for the ${attribute} ${JSON.stringify( - parameters - )}, expected a JSON object with key-value pairs.` + parameters, + )}, expected a JSON object with key-value pairs.`, ); } const rawParameters: RawKeyValuePair[] = []; @@ -400,7 +400,7 @@ export function buildInternalRawKeyValuePairs( value = value.toJSON(); } else { throw new TypeError( - `Unsupported type for the value in the ${attribute} for the key '${key}'` + `Unsupported type for the value in the ${attribute} for the key '${key}'`, ); } diff --git a/sdk/servicebus/service-bus/src/serializers/subscriptionResourceSerializer.ts b/sdk/servicebus/service-bus/src/serializers/subscriptionResourceSerializer.ts index b235ae629a55..3c0eb0ff68d6 100644 --- a/sdk/servicebus/service-bus/src/serializers/subscriptionResourceSerializer.ts +++ b/sdk/servicebus/service-bus/src/serializers/subscriptionResourceSerializer.ts @@ -33,7 +33,7 @@ import { * converts values to string and ensures the right order as expected by the service */ export function buildSubscriptionOptions( - subscription: CreateSubscriptionOptions + subscription: CreateSubscriptionOptions, ): InternalSubscriptionOptions { return { // NOTE: this ordering is extremely important. As an example, misordering of the ForwardTo property @@ -46,10 +46,10 @@ export function buildSubscriptionOptions( RequiresSession: getStringOrUndefined(subscription.requiresSession), DefaultMessageTimeToLive: getStringOrUndefined(subscription.defaultMessageTimeToLive), DeadLetteringOnMessageExpiration: getStringOrUndefined( - subscription.deadLetteringOnMessageExpiration + subscription.deadLetteringOnMessageExpiration, ), DeadLetteringOnFilterEvaluationExceptions: getStringOrUndefined( - subscription.deadLetteringOnFilterEvaluationExceptions + subscription.deadLetteringOnFilterEvaluationExceptions, ), DefaultRuleDescription: subscription.defaultRuleOptions ? buildInternalRuleResource(subscription.defaultRuleOptions) @@ -81,25 +81,25 @@ export function buildSubscription(rawSubscription: Record): Subscri requiresSession: getBoolean(rawSubscription[Constants.REQUIRES_SESSION], "requiresSession"), enableBatchedOperations: getBoolean( rawSubscription[Constants.ENABLE_BATCHED_OPERATIONS], - "enableBatchedOperations" + "enableBatchedOperations", ), defaultMessageTimeToLive: getString( rawSubscription[Constants.DEFAULT_MESSAGE_TIME_TO_LIVE], - "defaultMessageTimeToLive" + "defaultMessageTimeToLive", ), autoDeleteOnIdle: getString(rawSubscription[Constants.AUTO_DELETE_ON_IDLE], "autoDeleteOnIdle"), deadLetteringOnMessageExpiration: getBoolean( rawSubscription[Constants.DEAD_LETTERING_ON_MESSAGE_EXPIRATION], - "deadLetteringOnMessageExpiration" + "deadLetteringOnMessageExpiration", ), deadLetteringOnFilterEvaluationExceptions: getBoolean( rawSubscription[Constants.DEAD_LETTERING_ON_FILTER_EVALUATION_EXCEPTIONS], - "deadLetteringOnFilterEvaluationExceptions" + "deadLetteringOnFilterEvaluationExceptions", ), forwardDeadLetteredMessagesTo: getStringOrUndefined( - rawSubscription[Constants.FORWARD_DEADLETTERED_MESSAGES_TO] + rawSubscription[Constants.FORWARD_DEADLETTERED_MESSAGES_TO], ), forwardTo: getStringOrUndefined(rawSubscription[Constants.FORWARD_TO]), @@ -109,7 +109,7 @@ export function buildSubscription(rawSubscription: Record): Subscri availabilityStatus: getString( rawSubscription[Constants.ENTITY_AVAILABILITY_STATUS], - "availabilityStatus" + "availabilityStatus", ) as EntityAvailabilityStatus, }; } @@ -120,7 +120,7 @@ export function buildSubscription(rawSubscription: Record): Subscri * the response from the service */ export function buildSubscriptionRuntimeProperties( - rawSubscription: Record + rawSubscription: Record, ): SubscriptionRuntimeProperties { const messageCountDetails = getMessageCountDetails(rawSubscription[Constants.COUNT_DETAILS]); return { diff --git a/sdk/servicebus/service-bus/src/serializers/topicResourceSerializer.ts b/sdk/servicebus/service-bus/src/serializers/topicResourceSerializer.ts index aa444abda4df..d93d6e7bdbe4 100644 --- a/sdk/servicebus/service-bus/src/serializers/topicResourceSerializer.ts +++ b/sdk/servicebus/service-bus/src/serializers/topicResourceSerializer.ts @@ -69,22 +69,22 @@ export function buildTopic(rawTopic: Record): TopicProperties { supportOrdering: getBoolean(rawTopic[Constants.SUPPORT_ORDERING], "supportOrdering"), enableBatchedOperations: getBoolean( rawTopic[Constants.ENABLE_BATCHED_OPERATIONS], - "enableBatchedOperations" + "enableBatchedOperations", ), defaultMessageTimeToLive: getString( rawTopic[Constants.DEFAULT_MESSAGE_TIME_TO_LIVE], - "defaultMessageTimeToLive" + "defaultMessageTimeToLive", ), autoDeleteOnIdle: rawTopic[Constants.AUTO_DELETE_ON_IDLE], requiresDuplicateDetection: getBoolean( rawTopic[Constants.REQUIRES_DUPLICATE_DETECTION], - "requiresDuplicateDetection" + "requiresDuplicateDetection", ), duplicateDetectionHistoryTimeWindow: getString( rawTopic[Constants.DUPLICATE_DETECTION_HISTORY_TIME_WINDOW], - "duplicateDetectionHistoryTimeWindow" + "duplicateDetectionHistoryTimeWindow", ), authorizationRules: getAuthorizationRulesOrUndefined(rawTopic[Constants.AUTHORIZATION_RULES]), @@ -97,7 +97,7 @@ export function buildTopic(rawTopic: Record): TopicProperties { availabilityStatus: rawTopic[Constants.ENTITY_AVAILABILITY_STATUS], maxMessageSizeInKilobytes: getIntegerOrUndefined( - rawTopic[Constants.MAX_MESSAGE_SIZE_IN_KILOBYTES] + rawTopic[Constants.MAX_MESSAGE_SIZE_IN_KILOBYTES], ), }; } diff --git a/sdk/servicebus/service-bus/src/serviceBusAtomManagementClient.ts b/sdk/servicebus/service-bus/src/serviceBusAtomManagementClient.ts index b11b7226f9f3..81519ae6cb79 100644 --- a/sdk/servicebus/service-bus/src/serviceBusAtomManagementClient.ts +++ b/sdk/servicebus/service-bus/src/serviceBusAtomManagementClient.ts @@ -201,7 +201,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { fullyQualifiedNamespace: string, credential: TokenCredential | NamedKeyCredential, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: ServiceBusAdministrationClientOptions + options?: ServiceBusAdministrationClientOptions, ); constructor( fullyQualifiedNamespaceOrConnectionString1: string, @@ -210,7 +210,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { | NamedKeyCredential | ServiceBusAdministrationClientOptions, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options3?: ServiceBusAdministrationClientOptions + options3?: ServiceBusAdministrationClientOptions, ) { let options: ServiceBusAdministrationClientOptions; let fullyQualifiedNamespace: string; @@ -277,7 +277,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { */ async getNamespaceProperties( // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, ): Promise> { logger.verbose(`Performing management operation - getNamespaceProperties()`); @@ -288,10 +288,10 @@ export class ServiceBusAdministrationClient extends ServiceClient { const response = await this.getResource( "$namespaceinfo", this.namespaceResourceSerializer, - updatedOptions + updatedOptions, ); return this.buildNamespacePropertiesResponse(response); - } + }, ); } @@ -313,7 +313,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { async createQueue( queueName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options: CreateQueueOptions = {} + options: CreateQueueOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.createQueue", @@ -321,18 +321,18 @@ export class ServiceBusAdministrationClient extends ServiceClient { async (updatedOptions) => { logger.verbose( `Performing management operation - createQueue() for "${queueName}" with options: %j`, - options + options, ); const response = await this.putResource( queueName, buildQueueOptions(options || {}), this.queueResourceSerializer, false, - updatedOptions + updatedOptions, ); return this.buildQueueResponse(response); - } + }, ); } @@ -353,7 +353,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { async getQueue( queueName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.getQueue", @@ -363,11 +363,11 @@ export class ServiceBusAdministrationClient extends ServiceClient { const response = await this.getResource( queueName, this.queueResourceSerializer, - updatedOptions + updatedOptions, ); return this.buildQueueResponse(response); - } + }, ); } @@ -387,23 +387,23 @@ export class ServiceBusAdministrationClient extends ServiceClient { async getQueueRuntimeProperties( queueName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.getQueueRuntimeProperties", operationOptions, async (updatedOptions) => { logger.verbose( - `Performing management operation - getQueueRuntimeProperties() for "${queueName}"` + `Performing management operation - getQueueRuntimeProperties() for "${queueName}"`, ); const response = await this.getResource( queueName, this.queueResourceSerializer, - updatedOptions + updatedOptions, ); return this.buildQueueRuntimePropertiesResponse(response); - } + }, ); } @@ -421,7 +421,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { * @throws `RestError` with code and statusCode representing the standard set of REST API errors. */ private async getQueues( - options: ListRequestOptions & OperationOptions = {} + options: ListRequestOptions & OperationOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.getQueues", @@ -431,17 +431,17 @@ export class ServiceBusAdministrationClient extends ServiceClient { const response = await this.listResources( "$Resources/Queues", updatedOptions, - this.queueResourceSerializer + this.queueResourceSerializer, ); return this.buildListQueuesResponse(response); - } + }, ); } private async *listQueuesPage( marker?: string, - options: OperationOptions & Pick = {} + options: OperationOptions & Pick = {}, ): AsyncIterableIterator> { let listResponse; do { @@ -456,7 +456,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { } private async *listQueuesAll( - options: OperationOptions = {} + options: OperationOptions = {}, ): AsyncIterableIterator { let marker: string | undefined; for await (const segment of this.listQueuesPage(marker, options)) { @@ -473,7 +473,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { */ public listQueues( // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: OperationOptions + options?: OperationOptions, ): PagedAsyncIterableIterator> { logger.verbose(`Performing management operation - listQueues() with options: %j`, options); const iter = this.listQueuesAll(options); @@ -513,7 +513,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { * @throws `RestError` with code and statusCode representing the standard set of REST API errors. */ private async getQueuesRuntimeProperties( - options: ListRequestOptions & OperationOptions = {} + options: ListRequestOptions & OperationOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.getQueuesRuntimeProperties", @@ -521,22 +521,22 @@ export class ServiceBusAdministrationClient extends ServiceClient { async (updatedOptions) => { logger.verbose( `Performing management operation - getQueuesRuntimeProperties() with options: %j`, - options + options, ); const response = await this.listResources( "$Resources/Queues", updatedOptions, - this.queueResourceSerializer + this.queueResourceSerializer, ); return this.buildListQueuesRuntimePropertiesResponse(response); - } + }, ); } private async *listQueuesRuntimePropertiesPage( marker?: string, - options: OperationOptions & Pick = {} + options: OperationOptions & Pick = {}, ): AsyncIterableIterator> { let listResponse; do { @@ -551,7 +551,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { } private async *listQueuesRuntimePropertiesAll( - options: OperationOptions = {} + options: OperationOptions = {}, ): AsyncIterableIterator { let marker: string | undefined; for await (const segment of this.listQueuesRuntimePropertiesPage(marker, options)) { @@ -569,11 +569,11 @@ export class ServiceBusAdministrationClient extends ServiceClient { */ public listQueuesRuntimeProperties( // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: OperationOptions + options?: OperationOptions, ): PagedAsyncIterableIterator> { logger.verbose( `Performing management operation - listQueuesRuntimeProperties() with options: %j`, - options + options, ); const iter = this.listQueuesRuntimePropertiesAll(options); return { @@ -622,7 +622,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { async updateQueue( queue: WithResponse, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.updateQueue", @@ -630,12 +630,12 @@ export class ServiceBusAdministrationClient extends ServiceClient { async (updatedOptions) => { logger.verbose( `Performing management operation - updateQueue() for "${queue.name}" with options: %j`, - queue + queue, ); if (!isJSONLikeObject(queue) || queue == null) { throw new TypeError( - `Parameter "queue" must be an object of type "QueueDescription" and cannot be undefined or null.` + `Parameter "queue" must be an object of type "QueueDescription" and cannot be undefined or null.`, ); } @@ -648,11 +648,11 @@ export class ServiceBusAdministrationClient extends ServiceClient { buildQueueOptions(queue), this.queueResourceSerializer, true, - updatedOptions + updatedOptions, ); return this.buildQueueResponse(response); - } + }, ); } @@ -672,7 +672,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { async deleteQueue( queueName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, // eslint-disable-next-line @typescript-eslint/ban-types ): Promise> { return tracingClient.withSpan( @@ -683,11 +683,11 @@ export class ServiceBusAdministrationClient extends ServiceClient { const response = await this.deleteResource( queueName, this.queueResourceSerializer, - updatedOptions + updatedOptions, ); return { _response: getHttpResponseOnly(response) }; - } + }, ); } @@ -700,7 +700,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { logger.verbose(`Performing management operation - queueExists() for "${queueName}"`); const { span, updatedOptions } = tracingClient.startSpan( "ServiceBusAdministrationClient.queueExists", - operationOptions + operationOptions, ); try { await this.getQueue(queueName, updatedOptions); @@ -732,7 +732,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { async createTopic( topicName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options: CreateTopicOptions = {} + options: CreateTopicOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.createTopic", @@ -740,18 +740,18 @@ export class ServiceBusAdministrationClient extends ServiceClient { async (updatedOptions) => { logger.verbose( `Performing management operation - createTopic() for "${topicName}" with options: %j`, - options + options, ); const response = await this.putResource( topicName, buildTopicOptions(options || {}), this.topicResourceSerializer, false, - updatedOptions + updatedOptions, ); return this.buildTopicResponse(response); - } + }, ); } @@ -772,7 +772,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { async getTopic( topicName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.getTopic", @@ -782,11 +782,11 @@ export class ServiceBusAdministrationClient extends ServiceClient { const response = await this.getResource( topicName, this.topicResourceSerializer, - updatedOptions + updatedOptions, ); return this.buildTopicResponse(response); - } + }, ); } @@ -806,23 +806,23 @@ export class ServiceBusAdministrationClient extends ServiceClient { async getTopicRuntimeProperties( topicName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.getTopicRuntimeProperties", operationOptions, async (updatedOptions) => { logger.verbose( - `Performing management operation - getTopicRuntimeProperties() for "${topicName}"` + `Performing management operation - getTopicRuntimeProperties() for "${topicName}"`, ); const response = await this.getResource( topicName, this.topicResourceSerializer, - updatedOptions + updatedOptions, ); return this.buildTopicRuntimePropertiesResponse(response); - } + }, ); } @@ -840,7 +840,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { * @throws `RestError` with code and statusCode representing the standard set of REST API errors. */ private async getTopics( - options: ListRequestOptions & OperationOptions = {} + options: ListRequestOptions & OperationOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.getTopics", @@ -850,17 +850,17 @@ export class ServiceBusAdministrationClient extends ServiceClient { const response = await this.listResources( "$Resources/Topics", updatedOptions, - this.topicResourceSerializer + this.topicResourceSerializer, ); return this.buildListTopicsResponse(response); - } + }, ); } private async *listTopicsPage( marker?: string, - options: OperationOptions & Pick = {} + options: OperationOptions & Pick = {}, ): AsyncIterableIterator> { let listResponse; do { @@ -875,7 +875,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { } private async *listTopicsAll( - options: OperationOptions = {} + options: OperationOptions = {}, ): AsyncIterableIterator { let marker: string | undefined; for await (const segment of this.listTopicsPage(marker, options)) { @@ -893,7 +893,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { */ public listTopics( // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: OperationOptions + options?: OperationOptions, ): PagedAsyncIterableIterator> { logger.verbose(`Performing management operation - listTopics() with options: %j`, options); const iter = this.listTopicsAll(options); @@ -933,7 +933,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { * @throws `RestError` with code and statusCode representing the standard set of REST API errors. */ private async getTopicsRuntimeProperties( - options: ListRequestOptions & OperationOptions = {} + options: ListRequestOptions & OperationOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.getTopicsRuntimeProperties", @@ -942,22 +942,22 @@ export class ServiceBusAdministrationClient extends ServiceClient { async (updatedOptions) => { logger.verbose( `Performing management operation - getTopicsRuntimeProperties() with options: %j`, - options + options, ); const response = await this.listResources( "$Resources/Topics", updatedOptions, - this.topicResourceSerializer + this.topicResourceSerializer, ); return this.buildListTopicsRuntimePropertiesResponse(response); - } + }, ); } private async *listTopicsRuntimePropertiesPage( marker?: string, - options: OperationOptions & Pick = {} + options: OperationOptions & Pick = {}, ): AsyncIterableIterator> { let listResponse; do { @@ -972,7 +972,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { } private async *listTopicsRuntimePropertiesAll( - options: OperationOptions = {} + options: OperationOptions = {}, ): AsyncIterableIterator { let marker: string | undefined; for await (const segment of this.listTopicsRuntimePropertiesPage(marker, options)) { @@ -990,11 +990,11 @@ export class ServiceBusAdministrationClient extends ServiceClient { */ public listTopicsRuntimeProperties( // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: OperationOptions + options?: OperationOptions, ): PagedAsyncIterableIterator> { logger.verbose( `Performing management operation - listTopicsRuntimeProperties() with options: %j`, - options + options, ); const iter = this.listTopicsRuntimePropertiesAll(options); return { @@ -1046,7 +1046,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { async updateTopic( topic: WithResponse, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.updateTopic", @@ -1055,12 +1055,12 @@ export class ServiceBusAdministrationClient extends ServiceClient { async (updatedOptions) => { logger.verbose( `Performing management operation - updateTopic() for "${topic.name}" with options: %j`, - topic + topic, ); if (!isJSONLikeObject(topic) || topic == null) { throw new TypeError( - `Parameter "topic" must be an object of type "TopicDescription" and cannot be undefined or null.` + `Parameter "topic" must be an object of type "TopicDescription" and cannot be undefined or null.`, ); } @@ -1073,11 +1073,11 @@ export class ServiceBusAdministrationClient extends ServiceClient { buildTopicOptions(topic), this.topicResourceSerializer, true, - updatedOptions + updatedOptions, ); return this.buildTopicResponse(response); - } + }, ); } @@ -1097,7 +1097,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { async deleteTopic( topicName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, // eslint-disable-next-line @typescript-eslint/ban-types ): Promise> { return tracingClient.withSpan( @@ -1108,11 +1108,11 @@ export class ServiceBusAdministrationClient extends ServiceClient { const response = await this.deleteResource( topicName, this.topicResourceSerializer, - updatedOptions + updatedOptions, ); return { _response: getHttpResponseOnly(response) }; - } + }, ); } @@ -1125,7 +1125,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { logger.verbose(`Performing management operation - topicExists() for "${topicName}"`); const { span, updatedOptions } = tracingClient.startSpan( "ServiceBusAdministrationClient.topicExists", - operationOptions + operationOptions, ); try { span.setStatus({ status: "success" }); @@ -1158,7 +1158,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { topicName: string, subscriptionName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options: CreateSubscriptionOptions = {} + options: CreateSubscriptionOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.createSubscription", @@ -1166,7 +1166,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { async (updatedOptions) => { logger.verbose( `Performing management operation - createSubscription() for "${subscriptionName}" with options: %j`, - options + options, ); const fullPath = this.getSubscriptionPath(topicName, subscriptionName); const response = await this.putResource( @@ -1174,11 +1174,11 @@ export class ServiceBusAdministrationClient extends ServiceClient { buildSubscriptionOptions(options || {}), this.subscriptionResourceSerializer, false, - updatedOptions + updatedOptions, ); return this.buildSubscriptionResponse(response); - } + }, ); } @@ -1200,24 +1200,24 @@ export class ServiceBusAdministrationClient extends ServiceClient { topicName: string, subscriptionName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.getSubscription", operationOptions, async (updatedOptions) => { logger.verbose( - `Performing management operation - getSubscription() for "${subscriptionName}"` + `Performing management operation - getSubscription() for "${subscriptionName}"`, ); const fullPath = this.getSubscriptionPath(topicName, subscriptionName); const response = await this.getResource( fullPath, this.subscriptionResourceSerializer, - updatedOptions + updatedOptions, ); return this.buildSubscriptionResponse(response); - } + }, ); } @@ -1238,24 +1238,24 @@ export class ServiceBusAdministrationClient extends ServiceClient { topicName: string, subscriptionName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.getSubscriptionRuntimeProperties", operationOptions, async (updatedOptions) => { logger.verbose( - `Performing management operation - getSubscriptionRuntimeProperties() for "${subscriptionName}"` + `Performing management operation - getSubscriptionRuntimeProperties() for "${subscriptionName}"`, ); const fullPath = this.getSubscriptionPath(topicName, subscriptionName); const response = await this.getResource( fullPath, this.subscriptionResourceSerializer, - updatedOptions + updatedOptions, ); return this.buildSubscriptionRuntimePropertiesResponse(response); - } + }, ); } @@ -1274,7 +1274,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { */ private async getSubscriptions( topicName: string, - options: ListRequestOptions & OperationOptions = {} + options: ListRequestOptions & OperationOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.getSubscriptions", @@ -1282,23 +1282,23 @@ export class ServiceBusAdministrationClient extends ServiceClient { async (updatedOptions) => { logger.verbose( `Performing management operation - getSubscriptions() with options: %j`, - options + options, ); const response = await this.listResources( topicName + "/Subscriptions/", updatedOptions, - this.subscriptionResourceSerializer + this.subscriptionResourceSerializer, ); return this.buildListSubscriptionsResponse(response); - } + }, ); } private async *listSubscriptionsPage( topicName: string, marker?: string, - options: OperationOptions & Pick = {} + options: OperationOptions & Pick = {}, ): AsyncIterableIterator> { let listResponse; do { @@ -1314,7 +1314,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { private async *listSubscriptionsAll( topicName: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): AsyncIterableIterator { let marker: string | undefined; for await (const segment of this.listSubscriptionsPage(topicName, marker, options)) { @@ -1334,11 +1334,11 @@ export class ServiceBusAdministrationClient extends ServiceClient { public listSubscriptions( topicName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: OperationOptions + options?: OperationOptions, ): PagedAsyncIterableIterator> { logger.verbose( `Performing management operation - listSubscriptions() with options: %j`, - options + options, ); const iter = this.listSubscriptionsAll(topicName, options); return { @@ -1378,7 +1378,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { */ private async getSubscriptionsRuntimeProperties( topicName: string, - options: ListRequestOptions & OperationOptions = {} + options: ListRequestOptions & OperationOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.getSubscriptionsRuntimeProperties", @@ -1386,23 +1386,23 @@ export class ServiceBusAdministrationClient extends ServiceClient { async (updatedOptions) => { logger.verbose( `Performing management operation - getSubscriptionsRuntimeProperties() with options: %j`, - options + options, ); const response = await this.listResources( topicName + "/Subscriptions/", updatedOptions, - this.subscriptionResourceSerializer + this.subscriptionResourceSerializer, ); return this.buildListSubscriptionsRuntimePropertiesResponse(response); - } + }, ); } private async *listSubscriptionsRuntimePropertiesPage( topicName: string, marker?: string, - options: OperationOptions & Pick = {} + options: OperationOptions & Pick = {}, ): AsyncIterableIterator> { let listResponse; do { @@ -1418,13 +1418,13 @@ export class ServiceBusAdministrationClient extends ServiceClient { private async *listSubscriptionsRuntimePropertiesAll( topicName: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): AsyncIterableIterator { let marker: string | undefined; for await (const segment of this.listSubscriptionsRuntimePropertiesPage( topicName, marker, - options + options, )) { yield* segment; } @@ -1441,14 +1441,14 @@ export class ServiceBusAdministrationClient extends ServiceClient { public listSubscriptionsRuntimeProperties( topicName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: OperationOptions + options?: OperationOptions, ): PagedAsyncIterableIterator< SubscriptionRuntimeProperties, EntitiesResponse > { logger.verbose( `Performing management operation - listSubscriptionsRuntimeProperties() with options: %j`, - options + options, ); const iter = this.listSubscriptionsRuntimePropertiesAll(topicName, options); return { @@ -1496,7 +1496,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { async updateSubscription( subscription: WithResponse, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.updateSubscription", @@ -1505,24 +1505,24 @@ export class ServiceBusAdministrationClient extends ServiceClient { async (updatedOptions) => { logger.verbose( `Performing management operation - updateSubscription() for "${subscription.subscriptionName}" with options: %j`, - subscription + subscription, ); if (!isJSONLikeObject(subscription) || subscription == null) { throw new TypeError( - `Parameter "subscription" must be an object of type "SubscriptionDescription" and cannot be undefined or null.` + `Parameter "subscription" must be an object of type "SubscriptionDescription" and cannot be undefined or null.`, ); } if (!subscription.topicName || !subscription.subscriptionName) { throw new TypeError( - `The attributes "topicName" and "subscriptionName" of the parameter "subscription" cannot be undefined.` + `The attributes "topicName" and "subscriptionName" of the parameter "subscription" cannot be undefined.`, ); } const fullPath = this.getSubscriptionPath( subscription.topicName, - subscription.subscriptionName + subscription.subscriptionName, ); const response = await this.putResource( @@ -1530,11 +1530,11 @@ export class ServiceBusAdministrationClient extends ServiceClient { buildSubscriptionOptions(subscription), this.subscriptionResourceSerializer, true, - updatedOptions + updatedOptions, ); return this.buildSubscriptionResponse(response); - } + }, ); } @@ -1555,7 +1555,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { topicName: string, subscriptionName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, // eslint-disable-next-line @typescript-eslint/ban-types ): Promise> { return tracingClient.withSpan( @@ -1564,17 +1564,17 @@ export class ServiceBusAdministrationClient extends ServiceClient { operationOptions, async (updatedOptions) => { logger.verbose( - `Performing management operation - deleteSubscription() for "${subscriptionName}"` + `Performing management operation - deleteSubscription() for "${subscriptionName}"`, ); const fullPath = this.getSubscriptionPath(topicName, subscriptionName); const response = await this.deleteResource( fullPath, this.subscriptionResourceSerializer, - updatedOptions + updatedOptions, ); return { _response: getHttpResponseOnly(response) }; - } + }, ); } @@ -1586,14 +1586,14 @@ export class ServiceBusAdministrationClient extends ServiceClient { topicName: string, subscriptionName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, ): Promise { logger.verbose( - `Performing management operation - subscriptionExists() for "${topicName}" and "${subscriptionName}"` + `Performing management operation - subscriptionExists() for "${topicName}" and "${subscriptionName}"`, ); const { span, updatedOptions } = tracingClient.startSpan( "ServiceBusAdministrationClient.subscriptionExists", - operationOptions + operationOptions, ); try { span.setStatus({ status: "success" }); @@ -1628,7 +1628,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { ruleName: string, ruleFilter: SqlRuleFilter | CorrelationRuleFilter, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions?: OperationOptions + operationOptions?: OperationOptions, ): Promise>; /** * Creates a rule with given name, configured using the given options. @@ -1653,7 +1653,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { ruleFilter: SqlRuleFilter | CorrelationRuleFilter, ruleAction: SqlRuleAction, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions?: OperationOptions + operationOptions?: OperationOptions, ): Promise>; async createRule( topicName: string, @@ -1662,7 +1662,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { ruleFilter: SqlRuleFilter | CorrelationRuleFilter, ruleActionOrOperationOptions?: SqlRuleAction | OperationOptions, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions?: OperationOptions + operationOptions?: OperationOptions, ): Promise> { let ruleAction: SqlRuleAction | undefined = undefined; let operOptions: OperationOptions | undefined; @@ -1684,7 +1684,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { async (updatedOptions) => { logger.verbose( `Performing management operation - createRule() for "${ruleName}" with filter: "%j"`, - ruleFilter + ruleFilter, ); const fullPath = this.getRulePath(topicName, subscriptionName, ruleName); const response = await this.putResource( @@ -1692,10 +1692,10 @@ export class ServiceBusAdministrationClient extends ServiceClient { { name: ruleName, filter: ruleFilter, action: ruleAction }, this.ruleResourceSerializer, false, - updatedOptions + updatedOptions, ); return this.buildRuleResponse(response); - } + }, ); } @@ -1717,7 +1717,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { subscriptionName: string, ruleName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.getRule", @@ -1728,11 +1728,11 @@ export class ServiceBusAdministrationClient extends ServiceClient { const response = await this.getResource( fullPath, this.ruleResourceSerializer, - updatedOptions + updatedOptions, ); return this.buildRuleResponse(response); - } + }, ); } @@ -1751,7 +1751,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { private async getRules( topicName: string, subscriptionName: string, - options: ListRequestOptions & OperationOptions = {} + options: ListRequestOptions & OperationOptions = {}, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.getRules", @@ -1763,11 +1763,11 @@ export class ServiceBusAdministrationClient extends ServiceClient { const response = await this.listResources( fullPath, updatedOptions, - this.ruleResourceSerializer + this.ruleResourceSerializer, ); return this.buildListRulesResponse(response); - } + }, ); } @@ -1775,7 +1775,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { topicName: string, subscriptionName: string, marker?: string, - options: OperationOptions & Pick = {} + options: OperationOptions & Pick = {}, ): AsyncIterableIterator> { let listResponse; do { @@ -1792,7 +1792,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { private async *listRulesAll( topicName: string, subscriptionName: string, - options: OperationOptions = {} + options: OperationOptions = {}, ): AsyncIterableIterator { let marker: string | undefined; for await (const segment of this.listRulesPage(topicName, subscriptionName, marker, options)) { @@ -1812,7 +1812,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { topicName: string, subscriptionName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: OperationOptions + options?: OperationOptions, ): PagedAsyncIterableIterator> { logger.verbose(`Performing management operation - listRules() with options: %j`, options); const iter = this.listRulesAll(topicName, subscriptionName, options); @@ -1862,7 +1862,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { subscriptionName: string, rule: WithResponse, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions?: OperationOptions + operationOptions?: OperationOptions, ): Promise> { return tracingClient.withSpan( "ServiceBusAdministrationClient.updateRule", @@ -1870,12 +1870,12 @@ export class ServiceBusAdministrationClient extends ServiceClient { async (updatedOptions) => { logger.verbose( `Performing management operation - updateRule() for "${rule.name}" with options: %j`, - rule + rule, ); if (!isJSONLikeObject(rule) || rule === null) { throw new TypeError( - `Parameter "rule" must be an object of type "RuleDescription" and cannot be undefined or null.` + `Parameter "rule" must be an object of type "RuleDescription" and cannot be undefined or null.`, ); } @@ -1889,11 +1889,11 @@ export class ServiceBusAdministrationClient extends ServiceClient { rule, this.ruleResourceSerializer, true, - updatedOptions + updatedOptions, ); return this.buildRuleResponse(response); - } + }, ); } @@ -1915,7 +1915,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { subscriptionName: string, ruleName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions?: OperationOptions + operationOptions?: OperationOptions, // eslint-disable-next-line @typescript-eslint/ban-types ): Promise> { return tracingClient.withSpan( @@ -1927,11 +1927,11 @@ export class ServiceBusAdministrationClient extends ServiceClient { const response = await this.deleteResource( fullPath, this.ruleResourceSerializer, - updatedOptions + updatedOptions, ); return { _response: getHttpResponseOnly(response) }; - } + }, ); } @@ -1944,12 +1944,12 @@ export class ServiceBusAdministrationClient extends ServiceClient { subscriptionName: string, ruleName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, ): Promise { logger.verbose(`Performing management operation - ruleExists() for "${ruleName}"`); const { span, updatedOptions } = tracingClient.startSpan( "ServiceBusAdministrationClient.ruleExists", - operationOptions + operationOptions, ); try { span.setStatus({ status: "success" }); @@ -1975,7 +1975,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { | CreateRuleOptions, serializer: AtomXmlSerializer, isUpdate: boolean = false, - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "ServiceBusAdministrationClient.putResource", @@ -2005,7 +2005,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { request.headers.set("ServiceBusSupplementaryAuthorization", token); if (!isAbsoluteUrl(queueOrSubscriptionFields.ForwardTo)) { queueOrSubscriptionFields.ForwardTo = this.endpointWithProtocol.concat( - queueOrSubscriptionFields.ForwardTo + queueOrSubscriptionFields.ForwardTo, ); } } @@ -2014,7 +2014,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { if (!isAbsoluteUrl(queueOrSubscriptionFields.ForwardDeadLetteredMessagesTo)) { queueOrSubscriptionFields.ForwardDeadLetteredMessagesTo = this.endpointWithProtocol.concat( - queueOrSubscriptionFields.ForwardDeadLetteredMessagesTo + queueOrSubscriptionFields.ForwardDeadLetteredMessagesTo, ); } } @@ -2023,7 +2023,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { request.headers.set("content-type", "application/atom+xml;type=entry;charset=utf-8"); return executeAtomXmlOperation(this, request, serializer, updatedOptions, entityFields); - } + }, ); } @@ -2033,7 +2033,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { private async getResource( name: string, serializer: AtomXmlSerializer, - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "ServiceBusAdministrationClient.getResource", @@ -2056,12 +2056,12 @@ export class ServiceBusAdministrationClient extends ServiceClient { statusCode: response.status, request, response, - } + }, ); throw err; } return response; - } + }, ); } @@ -2071,7 +2071,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { private async listResources( name: string, options: ListRequestOptions & OperationOptions = {}, - serializer: AtomXmlSerializer + serializer: AtomXmlSerializer, ): Promise { return tracingClient.withSpan( "ServiceBusAdministrationClient.listResources", @@ -2093,7 +2093,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { }); return executeAtomXmlOperation(this, request, serializer, updatedOptions); - } + }, ); } @@ -2103,7 +2103,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { private async deleteResource( name: string, serializer: AtomXmlSerializer, - operationOptions: OperationOptions = {} + operationOptions: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "ServiceBusAdministrationClient.deleteResource", @@ -2114,7 +2114,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { method: "DELETE", }); return executeAtomXmlOperation(this, request, serializer, updatedOptions); - } + }, ); } @@ -2151,20 +2151,20 @@ export class ServiceBusAdministrationClient extends ServiceClient { } catch (error: any) { throw new Error( `Unable to parse the '${Constants.XML_METADATA_MARKER}skip' from the next-link in the response ` + - error + error, ); } } private buildNamespacePropertiesResponse( - response: FullOperationResponse + response: FullOperationResponse, ): WithResponse { try { const namespace = buildNamespace(response.parsedBody); const namespaceResponse: WithResponse = Object.defineProperty( namespace || {}, "_response", - { value: getHttpResponseOnly(response) } + { value: getHttpResponseOnly(response) }, ) as WithResponse; return namespaceResponse; } catch (err: any) { @@ -2176,13 +2176,13 @@ export class ServiceBusAdministrationClient extends ServiceClient { statusCode: response.status, request: response.request, response, - } + }, ); } } private buildListQueuesResponse( - response: FullOperationResponse + response: FullOperationResponse, ): EntitiesResponse { try { const queues: QueueProperties[] = []; @@ -2202,7 +2202,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { "_response", { value: getHttpResponseOnly(response), - } + }, ) as EntitiesResponse; listQueuesResponse.continuationToken = nextMarker; return listQueuesResponse; @@ -2215,13 +2215,13 @@ export class ServiceBusAdministrationClient extends ServiceClient { statusCode: response.status, request: response.request, response, - } + }, ); } } private buildListQueuesRuntimePropertiesResponse( - response: FullOperationResponse + response: FullOperationResponse, ): EntitiesResponse { try { const queues: QueueRuntimeProperties[] = []; @@ -2241,7 +2241,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { "_response", { value: getHttpResponseOnly(response), - } + }, ) as EntitiesResponse; listQueuesResponse.continuationToken = nextMarker; return listQueuesResponse; @@ -2254,7 +2254,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { statusCode: response.status, request: response.request, response, - } + }, ); } } @@ -2267,7 +2267,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { "_response", { value: getHttpResponseOnly(response), - } + }, ) as WithResponse; return queueResponse; } catch (err: any) { @@ -2279,13 +2279,13 @@ export class ServiceBusAdministrationClient extends ServiceClient { statusCode: response.status, request: response.request, response, - } + }, ); } } private buildQueueRuntimePropertiesResponse( - response: FullOperationResponse + response: FullOperationResponse, ): WithResponse { try { const queue = buildQueueRuntimeProperties(response.parsedBody); @@ -2294,7 +2294,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { "_response", { value: getHttpResponseOnly(response), - } + }, ) as WithResponse; return queueResponse; } catch (err: any) { @@ -2306,13 +2306,13 @@ export class ServiceBusAdministrationClient extends ServiceClient { statusCode: response.status, request: response.request, response, - } + }, ); } } private buildListTopicsResponse( - response: FullOperationResponse + response: FullOperationResponse, ): EntitiesResponse { try { const topics: TopicProperties[] = []; @@ -2332,7 +2332,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { "_response", { value: getHttpResponseOnly(response), - } + }, ) as EntitiesResponse; listTopicsResponse.continuationToken = nextMarker; return listTopicsResponse; @@ -2345,13 +2345,13 @@ export class ServiceBusAdministrationClient extends ServiceClient { statusCode: response.status, request: response.request, response, - } + }, ); } } private buildListTopicsRuntimePropertiesResponse( - response: FullOperationResponse + response: FullOperationResponse, ): EntitiesResponse { try { const topics: TopicRuntimeProperties[] = []; @@ -2371,7 +2371,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { "_response", { value: getHttpResponseOnly(response), - } + }, ) as EntitiesResponse; listTopicsResponse.continuationToken = nextMarker; return listTopicsResponse; @@ -2384,7 +2384,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { statusCode: response.status, request: response.request, response, - } + }, ); } } @@ -2396,7 +2396,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { "_response", { value: getHttpResponseOnly(response), - } + }, ) as WithResponse; return topicResponse; } catch (err: any) { @@ -2408,13 +2408,13 @@ export class ServiceBusAdministrationClient extends ServiceClient { statusCode: response.status, request: response.request, response, - } + }, ); } } private buildTopicRuntimePropertiesResponse( - response: FullOperationResponse + response: FullOperationResponse, ): WithResponse { try { const topic = buildTopicRuntimeProperties(response.parsedBody); @@ -2423,7 +2423,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { "_response", { value: getHttpResponseOnly(response), - } + }, ) as WithResponse; return topicResponse; } catch (err: any) { @@ -2435,13 +2435,13 @@ export class ServiceBusAdministrationClient extends ServiceClient { statusCode: response.status, request: response.request, response, - } + }, ); } } private buildListSubscriptionsResponse( - response: FullOperationResponse + response: FullOperationResponse, ): EntitiesResponse { try { const subscriptions: SubscriptionProperties[] = []; @@ -2471,13 +2471,13 @@ export class ServiceBusAdministrationClient extends ServiceClient { statusCode: response.status, request: response.request, response, - } + }, ); } } private buildListSubscriptionsRuntimePropertiesResponse( - response: FullOperationResponse + response: FullOperationResponse, ): EntitiesResponse { try { const subscriptions: SubscriptionRuntimeProperties[] = []; @@ -2507,13 +2507,13 @@ export class ServiceBusAdministrationClient extends ServiceClient { statusCode: response.status, request: response.request, response, - } + }, ); } } private buildSubscriptionResponse( - response: FullOperationResponse + response: FullOperationResponse, ): WithResponse { try { const subscription = buildSubscription(response.parsedBody); @@ -2522,7 +2522,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { "_response", { value: getHttpResponseOnly(response), - } + }, ) as WithResponse; return subscriptionResponse; } catch (err: any) { @@ -2534,13 +2534,13 @@ export class ServiceBusAdministrationClient extends ServiceClient { statusCode: response.status, request: response.request, response, - } + }, ); } } private buildSubscriptionRuntimePropertiesResponse( - response: FullOperationResponse + response: FullOperationResponse, ): WithResponse { try { const subscription = buildSubscriptionRuntimeProperties(response.parsedBody); @@ -2558,13 +2558,13 @@ export class ServiceBusAdministrationClient extends ServiceClient { statusCode: response.status, request: response.request, response, - } + }, ); } } private buildListRulesResponse( - response: FullOperationResponse + response: FullOperationResponse, ): EntitiesResponse { try { const rules: RuleProperties[] = []; @@ -2584,7 +2584,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { "_response", { value: getHttpResponseOnly(response), - } + }, ) as EntitiesResponse; listRulesResponse.continuationToken = nextMarker; return listRulesResponse; @@ -2597,7 +2597,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { statusCode: response.status, request: response.request, response, - } + }, ); } } @@ -2610,7 +2610,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { "_response", { value: getHttpResponseOnly(response), - } + }, ) as WithResponse; return ruleResponse; } catch (err: any) { @@ -2622,7 +2622,7 @@ export class ServiceBusAdministrationClient extends ServiceClient { statusCode: response.status, request: response.request, response, - } + }, ); } } diff --git a/sdk/servicebus/service-bus/src/serviceBusClient.ts b/sdk/servicebus/service-bus/src/serviceBusClient.ts index 08b8c9775706..6bfcfdc09c6d 100644 --- a/sdk/servicebus/service-bus/src/serviceBusClient.ts +++ b/sdk/servicebus/service-bus/src/serviceBusClient.ts @@ -77,7 +77,7 @@ export class ServiceBusClient { constructor( fullyQualifiedNamespace: string, credential: TokenCredential | NamedKeyCredential | SASCredential, - options?: ServiceBusClientOptions + options?: ServiceBusClientOptions, ); constructor( fullyQualifiedNamespaceOrConnectionString1: string, @@ -86,7 +86,7 @@ export class ServiceBusClient { | NamedKeyCredential | SASCredential | ServiceBusClientOptions, - options3?: ServiceBusClientOptions + options3?: ServiceBusClientOptions, ) { if (isCredential(credentialOrOptions2)) { const fullyQualifiedNamespace: string = fullyQualifiedNamespaceOrConnectionString1; @@ -96,7 +96,7 @@ export class ServiceBusClient { this._connectionContext = createConnectionContextForCredential( credential, fullyQualifiedNamespace, - this._clientOptions + this._clientOptions, ); } else { const connectionString: string = fullyQualifiedNamespaceOrConnectionString1; @@ -104,13 +104,13 @@ export class ServiceBusClient { this._connectionContext = createConnectionContextForConnectionString( connectionString, - this._clientOptions + this._clientOptions, ); } this.fullyQualifiedNamespace = this._connectionContext.config.host; this.identifier = ensureValidIdentifier( this.fullyQualifiedNamespace, - this._clientOptions.identifier + this._clientOptions.identifier, ); this._clientOptions.retryOptions = this._clientOptions.retryOptions || {}; @@ -184,13 +184,13 @@ export class ServiceBusClient { topicName: string, subscriptionName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: ServiceBusReceiverOptions + options?: ServiceBusReceiverOptions, ): ServiceBusReceiver; createReceiver( queueOrTopicName1: string, optionsOrSubscriptionName2?: ServiceBusReceiverOptions | string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options3?: ServiceBusReceiverOptions + options3?: ServiceBusReceiverOptions, ): ServiceBusReceiver { validateEntityPath(this._connectionContext.config, queueOrTopicName1); @@ -199,7 +199,7 @@ export class ServiceBusClient { const { entityPath, receiveMode, options } = extractReceiverArguments( queueOrTopicName1, optionsOrSubscriptionName2, - options3 + options3, ); let entityPathWithSubQueue = entityPath; @@ -213,7 +213,7 @@ export class ServiceBusClient { break; default: throw new Error( - `Invalid subQueueType '${options?.subQueueType}' provided. Valid values are 'deadLetter' and 'transferDeadLetter'` + `Invalid subQueueType '${options?.subQueueType}' provided. Valid values are 'deadLetter' and 'transferDeadLetter'`, ); } } @@ -231,7 +231,7 @@ export class ServiceBusClient { options?.skipParsingBodyAsJson ?? false, options?.skipConvertingDate ?? false, this._clientOptions.retryOptions, - options?.identifier + options?.identifier, ); } @@ -250,7 +250,7 @@ export class ServiceBusClient { return new ServiceBusRuleManagerImpl( this._connectionContext, entityPath, - this._clientOptions.retryOptions + this._clientOptions.retryOptions, ); } @@ -277,7 +277,7 @@ export class ServiceBusClient { queueName: string, sessionId: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: ServiceBusSessionReceiverOptions + options?: ServiceBusSessionReceiverOptions, ): Promise; /** * Creates a receiver for a session enabled Azure Service Bus subscription. @@ -304,14 +304,14 @@ export class ServiceBusClient { subscriptionName: string, sessionId: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: ServiceBusSessionReceiverOptions + options?: ServiceBusSessionReceiverOptions, ): Promise; async acceptSession( queueOrTopicName1: string, optionsOrSubscriptionNameOrSessionId2?: ServiceBusSessionReceiverOptions | string, optionsOrSessionId3?: ServiceBusSessionReceiverOptions | string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options4?: ServiceBusSessionReceiverOptions + options4?: ServiceBusSessionReceiverOptions, ): Promise { validateEntityPath(this._connectionContext.config, queueOrTopicName1); @@ -332,7 +332,7 @@ export class ServiceBusClient { queueOrTopicName1, optionsOrSubscriptionNameOrSessionId2, // skip the session ID parameter (3) - options4 + options4, )); } else if ( typeof queueOrTopicName1 === "string" && @@ -346,7 +346,7 @@ export class ServiceBusClient { queueOrTopicName1, // skip the session ID parameter (2) optionsOrSessionId3, - undefined + undefined, )); } else { throw new Error("Unhandled set of parameters"); @@ -364,7 +364,7 @@ export class ServiceBusClient { retryOptions: this._clientOptions.retryOptions, skipParsingBodyAsJson: options?.skipParsingBodyAsJson ?? false, skipConvertingDate: options?.skipConvertingDate ?? false, - } + }, ); const sessionReceiver = new ServiceBusSessionReceiverImpl( @@ -374,7 +374,7 @@ export class ServiceBusClient { receiveMode, options?.skipParsingBodyAsJson ?? false, options?.skipConvertingDate ?? false, - this._clientOptions.retryOptions + this._clientOptions.retryOptions, ); return sessionReceiver; @@ -401,7 +401,7 @@ export class ServiceBusClient { acceptNextSession( queueName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: ServiceBusSessionReceiverOptions + options?: ServiceBusSessionReceiverOptions, ): Promise; /** * Creates a receiver for the next available session in a session-enabled Azure Service Bus subscription. @@ -426,20 +426,20 @@ export class ServiceBusClient { topicName: string, subscriptionName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: ServiceBusSessionReceiverOptions + options?: ServiceBusSessionReceiverOptions, ): Promise; async acceptNextSession( queueOrTopicName1: string, optionsOrSubscriptionName2?: ServiceBusSessionReceiverOptions | string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options3?: ServiceBusSessionReceiverOptions + options3?: ServiceBusSessionReceiverOptions, ): Promise { validateEntityPath(this._connectionContext.config, queueOrTopicName1); const { entityPath, receiveMode, options } = extractReceiverArguments( queueOrTopicName1, optionsOrSubscriptionName2, - options3 + options3, ); const messageSession = await MessageSession.create( @@ -454,7 +454,7 @@ export class ServiceBusClient { retryOptions: this._clientOptions.retryOptions, skipParsingBodyAsJson: options?.skipParsingBodyAsJson ?? false, skipConvertingDate: options?.skipConvertingDate ?? false, - } + }, ); const sessionReceiver = new ServiceBusSessionReceiverImpl( @@ -464,7 +464,7 @@ export class ServiceBusClient { receiveMode, options?.skipParsingBodyAsJson ?? false, options?.skipConvertingDate ?? false, - this._clientOptions.retryOptions + this._clientOptions.retryOptions, ); return sessionReceiver; @@ -483,7 +483,7 @@ export class ServiceBusClient { this._connectionContext, queueOrTopicName, this._clientOptions.retryOptions, - options.identifier + options.identifier, ); } @@ -509,7 +509,7 @@ export class ServiceBusClient { export function extractReceiverArguments( queueOrTopicName1: string, optionsOrSubscriptionName2: string | OptionsT | undefined, - definitelyOptions3?: OptionsT + definitelyOptions3?: OptionsT, ): { entityPath: string; receiveMode: ReceiveMode; @@ -533,7 +533,7 @@ export function extractReceiverArguments + encoder: Pick, ): RheaMessage { let amqpMsg: RheaMessage; if (isAmqpAnnotatedMessage(msg)) { @@ -327,7 +327,7 @@ export function toRheaMessage( if (amqpMsg.ttl != null && amqpMsg.ttl !== Constants.maxDurationValue) { amqpMsg.creation_time = new Date(); amqpMsg.absolute_expiry_time = new Date( - Math.min(Constants.maxAbsoluteExpiryTime, amqpMsg.creation_time.getTime() + amqpMsg.ttl) + Math.min(Constants.maxAbsoluteExpiryTime, amqpMsg.creation_time.getTime() + amqpMsg.ttl), ); } @@ -344,7 +344,7 @@ export function toRheaMessage( if (msg.sessionId != null) { if (msg.sessionId.length > Constants.maxSessionIdLength) { throw new Error( - "Length of 'sessionId' property on the message cannot be greater than 128 characters." + "Length of 'sessionId' property on the message cannot be greater than 128 characters.", ); } @@ -371,7 +371,7 @@ export function toRheaMessage( if (msg.partitionKey != null) { if (msg.partitionKey.length > Constants.maxPartitionKeyLength) { throw new Error( - "Length of 'partitionKey' property on the message cannot be greater than 128 characters." + "Length of 'partitionKey' property on the message cannot be greater than 128 characters.", ); } amqpMsg.message_annotations![Constants.partitionKey] = msg.partitionKey; @@ -396,12 +396,12 @@ export function toRheaMessage( /** @internal */ export function updateMessageId( rheaMessage: RheaMessage, - messageId: RheaMessage["message_id"] + messageId: RheaMessage["message_id"], ): void { if (messageId != null) { if (typeof messageId === "string" && messageId.length > Constants.maxMessageIdLength) { throw new Error( - `Length of 'messageId' property on the message cannot be greater than ${Constants.maxMessageIdLength} characters.` + `Length of 'messageId' property on the message cannot be greater than ${Constants.maxMessageIdLength} characters.`, ); } @@ -412,7 +412,7 @@ export function updateMessageId( /** @internal */ export function updateScheduledTime( rheaMessage: RheaMessage, - scheduledEnqueuedTimeUtc: Date | undefined + scheduledEnqueuedTimeUtc: Date | undefined, ): void { if (scheduledEnqueuedTimeUtc != null) { rheaMessage.message_annotations = rheaMessage.message_annotations ?? {}; @@ -521,7 +521,7 @@ export function fromRheaMessage( skipConvertingDate?: boolean; delivery?: Delivery; shouldReorderLockToken?: boolean; - } + }, ): ServiceBusReceivedMessage { if (!rheaMessage) { rheaMessage = { @@ -536,7 +536,7 @@ export function fromRheaMessage( } = options; const { body, bodyType } = defaultDataTransformer.decodeWithType( rheaMessage.body, - skipParsingBodyAsJson + skipParsingBodyAsJson, ); const sbmsg: ServiceBusMessage = { @@ -615,29 +615,29 @@ export function fromRheaMessage( if (rheaMessage.message_annotations[Constants.sequenceNumber] != null) { if (Buffer.isBuffer(rheaMessage.message_annotations[Constants.sequenceNumber])) { props.sequenceNumber = Long.fromBytesBE( - rheaMessage.message_annotations[Constants.sequenceNumber] + rheaMessage.message_annotations[Constants.sequenceNumber], ); } else { props.sequenceNumber = Long.fromNumber( - rheaMessage.message_annotations[Constants.sequenceNumber] + rheaMessage.message_annotations[Constants.sequenceNumber], ); } } if (rheaMessage.message_annotations[Constants.enqueuedTime] != null) { props.enqueuedTimeUtc = new Date( - rheaMessage.message_annotations[Constants.enqueuedTime] as number + rheaMessage.message_annotations[Constants.enqueuedTime] as number, ); } if (rheaMessage.message_annotations[Constants.lockedUntil] != null) { props.lockedUntilUtc = new Date( - rheaMessage.message_annotations[Constants.lockedUntil] as number + rheaMessage.message_annotations[Constants.lockedUntil] as number, ); } } if (rheaMessage.ttl == null) rheaMessage.ttl = Constants.maxDurationValue; if (props.enqueuedTimeUtc) { props.expiresAtUtc = new Date( - Math.min(props.enqueuedTimeUtc.getTime() + rheaMessage.ttl, Constants.maxDurationValue) + Math.min(props.enqueuedTimeUtc.getTime() + rheaMessage.ttl, Constants.maxDurationValue), ); } @@ -668,11 +668,11 @@ export function fromRheaMessage( ? uuid_to_string( shouldReorderLockToken === true ? reorderLockToken( - typeof delivery.tag === "string" ? Buffer.from(delivery.tag) : delivery.tag + typeof delivery.tag === "string" ? Buffer.from(delivery.tag) : delivery.tag, ) : typeof delivery.tag === "string" - ? Buffer.from(delivery.tag) - : delivery.tag + ? Buffer.from(delivery.tag) + : delivery.tag, ) : undefined, ...sbmsg, @@ -708,7 +708,7 @@ export function isAmqpAnnotatedMessage(possible: unknown): possible is AmqpAnnot * @internal */ export function isServiceBusReceivedMessage( - possible: unknown + possible: unknown, ): possible is ServiceBusReceivedMessage { return isServiceBusMessage(possible) && "_rawAmqpMessage" in possible; } @@ -916,12 +916,12 @@ export class ServiceBusMessageImpl implements ServiceBusReceivedMessage { shouldReorderLockToken: boolean, receiveMode: ReceiveMode, skipParsingBodyAsJson: boolean, - skipConvertingDate: boolean + skipConvertingDate: boolean, ) { const { _rawAmqpMessage, ...restOfMessageProps } = fromRheaMessage( msg, - { skipParsingBodyAsJson, delivery, shouldReorderLockToken, skipConvertingDate } + { skipParsingBodyAsJson, delivery, shouldReorderLockToken, skipConvertingDate }, ); this._rawAmqpMessage = _rawAmqpMessage; // need to initialize _rawAmqpMessage property to make compiler happy Object.assign(this, restOfMessageProps); diff --git a/sdk/servicebus/service-bus/src/serviceBusMessageBatch.ts b/sdk/servicebus/service-bus/src/serviceBusMessageBatch.ts index df0b64140153..cda5f1b01cdb 100644 --- a/sdk/servicebus/service-bus/src/serviceBusMessageBatch.ts +++ b/sdk/servicebus/service-bus/src/serviceBusMessageBatch.ts @@ -72,7 +72,7 @@ export interface ServiceBusMessageBatch { */ tryAddMessage( message: ServiceBusMessage | AmqpAnnotatedMessage, - options?: TryAddOptions + options?: TryAddOptions, ): boolean; /** @@ -119,7 +119,10 @@ export class ServiceBusMessageBatchImpl implements ServiceBusMessageBatch { * @internal * @hidden */ - constructor(private _context: ConnectionContext, private _maxSizeInBytes: number) { + constructor( + private _context: ConnectionContext, + private _maxSizeInBytes: number, + ) { this._sizeInBytes = 0; this._batchMessageProperties = {}; } @@ -170,7 +173,7 @@ export class ServiceBusMessageBatchImpl implements ServiceBusMessageBatch { encodedMessages: Buffer[], annotations?: MessageAnnotations, applicationProperties?: { [key: string]: any }, - messageProperties?: { [key: string]: string } + messageProperties?: { [key: string]: string }, ): Buffer { const batchEnvelope: RheaMessage = { body: RheaMessageUtil.data_sections(encodedMessages), @@ -202,7 +205,7 @@ export class ServiceBusMessageBatchImpl implements ServiceBusMessageBatch { this._encodedMessages, this._batchAnnotations, this._batchApplicationProperties, - this._batchMessageProperties + this._batchMessageProperties, ); } @@ -235,7 +238,7 @@ export class ServiceBusMessageBatchImpl implements ServiceBusMessageBatch { */ public tryAddMessage( originalMessage: ServiceBusMessage | AmqpAnnotatedMessage, - options: TryAddOptions = {} + options: TryAddOptions = {}, ): boolean { throwTypeErrorIfParameterMissing(this._context.connectionId, "message", originalMessage); throwIfNotValidServiceBusMessage(originalMessage, errorInvalidMessageTypeSingle); @@ -245,7 +248,7 @@ export class ServiceBusMessageBatchImpl implements ServiceBusMessageBatch { options, this._context.config.entityPath!, this._context.config.host, - "publish" + "publish", ); // Convert ServiceBusMessage to AmqpMessage. @@ -276,7 +279,7 @@ export class ServiceBusMessageBatchImpl implements ServiceBusMessageBatch { [], this._batchAnnotations, this._batchApplicationProperties, - this._batchMessageProperties + this._batchMessageProperties, ).length; } diff --git a/sdk/servicebus/service-bus/src/serviceBusRuleManager.ts b/sdk/servicebus/service-bus/src/serviceBusRuleManager.ts index 7a5513f8f7a4..359727a9ea25 100644 --- a/sdk/servicebus/service-bus/src/serviceBusRuleManager.ts +++ b/sdk/servicebus/service-bus/src/serviceBusRuleManager.ts @@ -34,7 +34,7 @@ export interface ServiceBusRuleManager { createRule( ruleName: string, filter: SqlRuleFilter | CorrelationRuleFilter, - options?: OperationOptionsBase + options?: OperationOptionsBase, ): Promise; /** * Adds a rule to the current subscription to filter the messages reaching from topic to the subscription. @@ -48,7 +48,7 @@ export interface ServiceBusRuleManager { ruleName: string, filter: SqlRuleFilter | CorrelationRuleFilter, ruleAction?: SqlRuleAction, - options?: OperationOptionsBase + options?: OperationOptionsBase, ): Promise; /** * Deletes a rule. @@ -66,7 +66,7 @@ export interface ServiceBusRuleManager { */ listRules( // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: OperationOptions + options?: OperationOptions, ): PagedAsyncIterableIterator; } @@ -88,7 +88,7 @@ export class ServiceBusRuleManagerImpl implements ServiceBusRuleManager { constructor( private _context: ConnectionContext, private _entityPath: string, - private _retryOptions: RetryOptions = {} + private _retryOptions: RetryOptions = {}, ) { throwErrorIfConnectionClosed(_context); this.entityPath = _entityPath; @@ -109,7 +109,7 @@ export class ServiceBusRuleManagerImpl implements ServiceBusRuleManager { createRule( ruleName: string, filter: SqlRuleFilter | CorrelationRuleFilter, - options?: OperationOptions + options?: OperationOptions, ): Promise; /** * Adds a rule to the current subscription to filter the messages reaching from topic to the subscription. @@ -123,13 +123,13 @@ export class ServiceBusRuleManagerImpl implements ServiceBusRuleManager { ruleName: string, filter: SqlRuleFilter | CorrelationRuleFilter, ruleAction?: SqlRuleAction, - options?: OperationOptions + options?: OperationOptions, ): Promise; async createRule( ruleName: string, filter: SqlRuleFilter | CorrelationRuleFilter, ruleActionOrOperationOptions?: SqlRuleAction | OperationOptionsBase, - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { let sqlRuleAction: SqlRuleAction | undefined = undefined; let operOptions: OperationOptions | undefined; @@ -166,7 +166,7 @@ export class ServiceBusRuleManagerImpl implements ServiceBusRuleManager { abortSignal: updatedOptions?.abortSignal, }; return retry(config); - } + }, ); } @@ -174,7 +174,7 @@ export class ServiceBusRuleManagerImpl implements ServiceBusRuleManager { * Get all rules associated with the subscription. */ private async getRules( - options?: ListRequestOptions & OperationOptions + options?: ListRequestOptions & OperationOptions, ): Promise { return tracingClient.withSpan( "ServiceBusRuleManager.getRules", @@ -196,7 +196,7 @@ export class ServiceBusRuleManagerImpl implements ServiceBusRuleManager { abortSignal: updatedOptions?.abortSignal, }; return retry(config); - } + }, ); } @@ -210,7 +210,7 @@ export class ServiceBusRuleManagerImpl implements ServiceBusRuleManager { */ public listRules( // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: OperationOptions + options?: OperationOptions, ): PagedAsyncIterableIterator { logger.verbose(`Performing operation - listRules() with options: %j`, options); const pagedResult: PagedResult = { @@ -258,7 +258,7 @@ export class ServiceBusRuleManagerImpl implements ServiceBusRuleManager { abortSignal: updatedOptions?.abortSignal, }; return retry(config); - } + }, ); } } diff --git a/sdk/servicebus/service-bus/src/session/messageSession.ts b/sdk/servicebus/service-bus/src/session/messageSession.ts index 4d794d4bc08c..9c2028037c67 100644 --- a/sdk/servicebus/service-bus/src/session/messageSession.ts +++ b/sdk/servicebus/service-bus/src/session/messageSession.ts @@ -218,7 +218,7 @@ export class MessageSession extends LinkEntity { "%s Attempting to renew the session lock for MessageSession '%s' " + "with name '%s'.", this.logPrefix, this.sessionId, - this.name + this.name, ); this.sessionLockedUntilUtc = await this._context .getManagementClient(this.entityPath) @@ -230,12 +230,12 @@ export class MessageSession extends LinkEntity { "%s Successfully renewed the session lock for MessageSession '%s' " + "with name '%s'.", this.logPrefix, this.sessionId, - this.name + this.name, ); logger.verbose( "%s Calling _ensureSessionLockRenewal() again for MessageSession '%s'.", this.logPrefix, - this.sessionId + this.sessionId, ); this._ensureSessionLockRenewal(); } catch (err: any) { @@ -243,7 +243,7 @@ export class MessageSession extends LinkEntity { err, "%s An error occurred while renewing the session lock for MessageSession '%s'", this.logPrefix, - this.sessionId + this.sessionId, ); } }, nextRenewalTimeout); @@ -252,14 +252,14 @@ export class MessageSession extends LinkEntity { this.logPrefix, this.sessionId, nextRenewalTimeout, - new Date(Date.now() + nextRenewalTimeout).toString() + new Date(Date.now() + nextRenewalTimeout).toString(), ); } } protected async createRheaLink( options: ReceiverOptions, - _abortSignal?: AbortSignalLike + _abortSignal?: AbortSignalLike, ): Promise { this._lastSBError = undefined; let errorMessage: string = ""; @@ -307,7 +307,7 @@ export class MessageSession extends LinkEntity { * Creates a new AMQP receiver under a new AMQP session. */ private async _init( - opts: { abortSignal?: AbortSignalLike; timeoutInMs?: number } = {} + opts: { abortSignal?: AbortSignalLike; timeoutInMs?: number } = {}, ): Promise { try { const sessionOptions = this._createMessageSessionOptions(this.identifier, opts.timeoutInMs); @@ -321,18 +321,18 @@ export class MessageSession extends LinkEntity { if (!this._providedSessionId) this.sessionId = receivedSessionId; this.sessionLockedUntilUtc = convertTicksToDate( - this.link.properties["com.microsoft:locked-until-utc"] + this.link.properties["com.microsoft:locked-until-utc"], ); logger.verbose( "%s Session with id '%s' is locked until: '%s'.", this.logPrefix, this.sessionId, - this.sessionLockedUntilUtc.toISOString() + this.sessionLockedUntilUtc.toISOString(), ); logger.verbose( "%s Receiver created with receiver options: %O", this.logPrefix, - sessionOptions + sessionOptions, ); if (!this._context.messageSessions[this.name]) { this._context.messageSessions[this.name] = this; @@ -380,7 +380,7 @@ export class MessageSession extends LinkEntity { onSessionError: this._onSessionError, onSettled: this._onSettled, }, - timeoutInMs + timeoutInMs, ); return rcvrOptions; @@ -402,7 +402,7 @@ export class MessageSession extends LinkEntity { connectionContext: ConnectionContext, entityPath: string, private _providedSessionId: string | undefined, - options: MessageSessionOptions + options: MessageSessionOptions, ) { super(entityPath, entityPath, connectionContext, "session", logger, { address: entityPath, @@ -434,7 +434,7 @@ export class MessageSession extends LinkEntity { }, this.receiveMode, this.skipParsingBodyAsJson, - this.skipConvertingDate + this.skipConvertingDate, ); // setting all the handlers @@ -449,7 +449,7 @@ export class MessageSession extends LinkEntity { this._onError(args); logger.verbose( "%s Notified the user's error handler about the error received by the Receiver", - this.logPrefix + this.logPrefix, ); } }; @@ -483,7 +483,7 @@ export class MessageSession extends LinkEntity { "[%s] An error occurred on the session for Receiver '%s': %O.", connectionId, this.name, - sbError + sbError, ); this._notifyError({ error: sbError, @@ -508,7 +508,7 @@ export class MessageSession extends LinkEntity { connectionId, this.name, this.sessionId, - sbError + sbError, ); // no need to notify the user's error handler since rhea guarantees that receiver_error // will always be emitted before receiver_close. @@ -518,7 +518,7 @@ export class MessageSession extends LinkEntity { "%s 'receiver_close' event occurred on the receiver for sessionId '%s' " + "and the sdk did not initiate this. Hence, let's gracefully close the receiver.", this.logPrefix, - this.sessionId + this.sessionId, ); try { await this.close(); @@ -527,7 +527,7 @@ export class MessageSession extends LinkEntity { err, "%s An error occurred while closing the receiver for sessionId '%s'.", this.logPrefix, - this.sessionId + this.sessionId, ); } } else { @@ -535,7 +535,7 @@ export class MessageSession extends LinkEntity { "%s 'receiver_close' event occurred on the receiver for sessionId '%s' " + "because the sdk initiated it. Hence no need to gracefully close the receiver", this.logPrefix, - this.sessionId + this.sessionId, ); } }; @@ -550,7 +550,7 @@ export class MessageSession extends LinkEntity { "%s 'session_close' event occurred for receiver for sessionId '%s'. " + "The associated error is", this.logPrefix, - this.sessionId + this.sessionId, ); // no need to notify the user's error handler since rhea guarantees that session_error // will always be emitted before session_close. @@ -561,7 +561,7 @@ export class MessageSession extends LinkEntity { "%s 'session_close' event occurred on the receiver for sessionId '%s' " + "and the sdk did not initiate this. Hence, let's gracefully close the receiver.", this.logPrefix, - this.sessionId + this.sessionId, ); try { await this.close(); @@ -570,7 +570,7 @@ export class MessageSession extends LinkEntity { err, "%s An error occurred while closing the receiver for sessionId '%s'", this.logPrefix, - this.sessionId + this.sessionId, ); } } else { @@ -578,7 +578,7 @@ export class MessageSession extends LinkEntity { "%s 'session_close' event occurred on the receiver for sessionId'%s' " + "because the sdk initiated it. Hence no need to gracefully close the receiver", this.logPrefix, - this.sessionId + this.sessionId, ); } }; @@ -594,7 +594,7 @@ export class MessageSession extends LinkEntity { logger.verbose( "%s Cleared the timers for 'no new message received' task and " + "'session lock renewal' task.", - this.logPrefix + this.logPrefix, ); await super.close(); @@ -605,7 +605,7 @@ export class MessageSession extends LinkEntity { err, "%s An error occurred while closing the message session with id '%s'", this.logPrefix, - this.sessionId + this.sessionId, ); } } @@ -619,7 +619,7 @@ export class MessageSession extends LinkEntity { "%s Receiver for sessionId '%s' is open? -> %s", this.logPrefix, this.sessionId, - result + result, ); return result; } @@ -667,7 +667,7 @@ export class MessageSession extends LinkEntity { logger.verbose( "%s Not calling the user's message handler for the current message " + "as the receiver is closed", - this.logPrefix + this.logPrefix, ); return; } @@ -678,7 +678,7 @@ export class MessageSession extends LinkEntity { true, this.receiveMode, this.skipParsingBodyAsJson, - this.skipConvertingDate + this.skipConvertingDate, ); try { @@ -693,7 +693,7 @@ export class MessageSession extends LinkEntity { logger.verbose( "%s Auto completing the message with id '%s' on the receiver.", this.logPrefix, - bMessage.messageId + bMessage.messageId, ); await completeMessage(bMessage, this._context, this.entityPath, this._retryOptions); } catch (completeError: any) { @@ -703,7 +703,7 @@ export class MessageSession extends LinkEntity { "%s An error occurred while completing the message with id '%s' on the " + "receiver", this.logPrefix, - bMessage.messageId + bMessage.messageId, ); await this._notifyError({ error: translatedError, @@ -720,7 +720,7 @@ export class MessageSession extends LinkEntity { "%s An error occurred while running user's message handler for the message " + "with id '%s' on the receiver", this.logPrefix, - bMessage.messageId + bMessage.messageId, ); await this._onError!({ error: err, @@ -742,14 +742,14 @@ export class MessageSession extends LinkEntity { error, "%s Abandoning the message with id '%s' on the receiver since an error occured", this.logPrefix, - bMessage.messageId + bMessage.messageId, ); await abandonMessage( bMessage, this._context, this.entityPath, undefined, - this._retryOptions + this._retryOptions, ); } catch (abandonError: any) { const translatedError = translateServiceBusError(abandonError); @@ -759,7 +759,7 @@ export class MessageSession extends LinkEntity { "receiver", this.logPrefix, bMessage.messageId, - translatedError + translatedError, ); await this._notifyError({ error: translatedError, @@ -851,7 +851,7 @@ export class MessageSession extends LinkEntity { maxMessageCount: number, maxWaitTimeInMs: number, maxTimeAfterFirstMessageInMs: number, - options: OperationOptionsBase + options: OperationOptionsBase, ): Promise { try { return await this._batchingReceiverLite.receiveMessages({ @@ -873,7 +873,7 @@ export class MessageSession extends LinkEntity { async onDetached(connectionError: AmqpError | Error): Promise { logger.error( translateServiceBusError(connectionError), - `${this.logPrefix} onDetached: closing link (session receiver will not reconnect)` + `${this.logPrefix} onDetached: closing link (session receiver will not reconnect)`, ); try { // Notifying so that the streaming receiver knows about the error @@ -890,8 +890,8 @@ export class MessageSession extends LinkEntity { `${ this.logPrefix } onDetached: unexpected error seen when tried calling "_notifyError" with ${translateServiceBusError( - connectionError - )}` + connectionError, + )}`, ); } await this.close(connectionError); @@ -906,7 +906,7 @@ export class MessageSession extends LinkEntity { async settleMessage( message: ServiceBusMessageImpl, operation: DispositionType, - options: DispositionStatusOptions + options: DispositionStatusOptions, ): Promise { return new Promise((resolve, reject) => { if (operation.match(/^(complete|abandon|defer|deadletter)$/) == null) { @@ -920,7 +920,7 @@ export class MessageSession extends LinkEntity { "Hence rejecting the promise with timeout error", this._context.connectionId, delivery.id, - Constants.defaultOperationTimeoutInMs + Constants.defaultOperationTimeoutInMs, ); const e: AmqpError = { @@ -975,7 +975,7 @@ export class MessageSession extends LinkEntity { context: ConnectionContext, entityPath: string, sessionId: string | undefined, - options: MessageSessionOptions + options: MessageSessionOptions, ): Promise { throwErrorIfConnectionClosed(context); const messageSession = new MessageSession(identifier, context, entityPath, sessionId, options); diff --git a/sdk/servicebus/service-bus/src/util/atomXmlHelper.ts b/sdk/servicebus/service-bus/src/util/atomXmlHelper.ts index ab74bef567e6..84d80e455ed0 100644 --- a/sdk/servicebus/service-bus/src/util/atomXmlHelper.ts +++ b/sdk/servicebus/service-bus/src/util/atomXmlHelper.ts @@ -47,7 +47,7 @@ function applyRequestOptions( abortSignal?: AbortSignalLike; tracingOptions?: OperationTracingOptions; timeout: number; - } + }, ): void { if (options.headers) { const headers = options.headers; @@ -77,7 +77,7 @@ export async function executeAtomXmlOperation( | InternalQueueOptions | InternalTopicOptions | InternalSubscriptionOptions - | CreateRuleOptions + | CreateRuleOptions, ): Promise { if (requestObject) { request.body = stringifyXML(serializer.serialize(requestObject), { rootName: "entry" }); @@ -116,7 +116,7 @@ export async function executeAtomXmlOperation( statusCode: response.status, request: response.request, response, - } + }, ); logger.logError(err, "Error parsing response body from Service"); throw error; @@ -155,7 +155,7 @@ export function sanitizeSerializableObject(resource: { [key: string]: any }): vo */ export function serializeToAtomXmlRequest( resourceName: string, - resource: unknown + resource: unknown, ): Record { const content: any = {}; @@ -186,7 +186,7 @@ export function serializeToAtomXmlRequest( */ export async function deserializeAtomXmlResponse( nameProperties: string[], - response: FullOperationResponse + response: FullOperationResponse, ): Promise { // If received data is a non-valid HTTP response, the body is expected to contain error information if (response.status < 200 || response.status >= 300) { @@ -235,7 +235,7 @@ function parseAtomResult(response: FullOperationResponse, nameProperties: string logger.warning( "Failure in parsing response body from service. Expected response to be in Atom XML format and have either feed or entry components, but received - %0", - atomResponseInJson + atomResponseInJson, ); throw new RestError( "Error occurred while parsing the response body - expected the service to return atom xml content with either feed or entry elements.", @@ -244,7 +244,7 @@ function parseAtomResult(response: FullOperationResponse, nameProperties: string statusCode: response.status, request: response.request, response, - } + }, ); } @@ -301,7 +301,7 @@ function parseEntryResult(entry: any): Record | undefined { */ function parseLinkInfo( feedLink: { [Constants.XML_METADATA_MARKER]: { rel: string; href: string } }[], - relationship: "self" | "next" + relationship: "self" | "next", ): string | undefined { if (!feedLink || !Array.isArray(feedLink)) { return undefined; @@ -343,7 +343,7 @@ function parseFeedResult(feed: any): Record[] & { nextLink?: st * @internal */ function isKnownResponseCode( - statusCode: number + statusCode: number, ): statusCode is keyof typeof Constants.HttpResponseCodes { return !!(Constants.HttpResponseCodes as { [statusCode: number]: string })[statusCode]; } @@ -385,18 +385,18 @@ function setName(entry: any, nameProperties: any): any { const firstIndexOfRulesDelimiter = pathname.indexOf("/Rules/"); entry[nameProperties[0]] = pathname.substring( firstIndexOfDelimiter + 1, - lastIndexOfSubscriptionsDelimiter + lastIndexOfSubscriptionsDelimiter, ); entry[nameProperties[1]] = pathname.substring( lastIndexOfSubscriptionsDelimiter + 15, - firstIndexOfRulesDelimiter + firstIndexOfRulesDelimiter, ); entry[nameProperties[2]] = pathname.substring(firstIndexOfRulesDelimiter + 7); } else if (pathname.match("(.*)/(.*)/Subscriptions/(.*)")) { const lastIndexOfSubscriptionsDelimiter = pathname.lastIndexOf("/Subscriptions/"); entry[nameProperties[0]] = pathname.substring( firstIndexOfDelimiter + 1, - lastIndexOfSubscriptionsDelimiter + lastIndexOfSubscriptionsDelimiter, ); entry[nameProperties[1]] = pathname.substring(lastIndexOfSubscriptionsDelimiter + 15); } else if (pathname.match("(.*)/(.*)")) { @@ -419,7 +419,7 @@ export function buildError(response: FullOperationResponse): RestError { statusCode: response.status, request: response.request, response, - } + }, ); } diff --git a/sdk/servicebus/service-bus/src/util/connectionStringUtils.ts b/sdk/servicebus/service-bus/src/util/connectionStringUtils.ts index 6a7cbbc56ece..3d5173d3dd4f 100644 --- a/sdk/servicebus/service-bus/src/util/connectionStringUtils.ts +++ b/sdk/servicebus/service-bus/src/util/connectionStringUtils.ts @@ -51,7 +51,7 @@ export interface ServiceBusConnectionStringProperties { * for the Service Bus namespace, queue or topic. */ export function parseServiceBusConnectionString( - connectionString: string + connectionString: string, ): ServiceBusConnectionStringProperties { const parsedResult = parseConnectionString<{ Endpoint: string; @@ -67,14 +67,14 @@ export function parseServiceBusConnectionString( if (parsedResult.SharedAccessSignature) { if (parsedResult.SharedAccessKey || parsedResult.SharedAccessKeyName) { throw new Error( - "Connection string cannot have both SharedAccessSignature and SharedAccessKey keys." + "Connection string cannot have both SharedAccessSignature and SharedAccessKey keys.", ); } } else if (parsedResult.SharedAccessKey && !parsedResult.SharedAccessKeyName) { throw new Error("Connection string with SharedAccessKey should have SharedAccessKeyName."); } else if (!parsedResult.SharedAccessKey && parsedResult.SharedAccessKeyName) { throw new Error( - "Connection string with SharedAccessKeyName should have SharedAccessKey as well." + "Connection string with SharedAccessKeyName should have SharedAccessKey as well.", ); } diff --git a/sdk/servicebus/service-bus/src/util/crypto.browser.ts b/sdk/servicebus/service-bus/src/util/crypto.browser.ts index cbce3ad1094b..3e4e5165639e 100644 --- a/sdk/servicebus/service-bus/src/util/crypto.browser.ts +++ b/sdk/servicebus/service-bus/src/util/crypto.browser.ts @@ -16,7 +16,7 @@ export async function generateKey(secret: string, stringToSign: string): Promise hash: { name: "SHA-256" }, }, false, - ["sign"] + ["sign"], ); const signature = await self.crypto.subtle.sign("HMAC", key, convertToUint8Array(stringToSign)); diff --git a/sdk/servicebus/service-bus/src/util/crypto.ts b/sdk/servicebus/service-bus/src/util/crypto.ts index 4bab4a022105..d6caf11c8468 100644 --- a/sdk/servicebus/service-bus/src/util/crypto.ts +++ b/sdk/servicebus/service-bus/src/util/crypto.ts @@ -11,7 +11,7 @@ import crypto from "crypto"; */ export async function generateKey(secret: string, stringToSign: string): Promise { const result = encodeURIComponent( - crypto.createHmac("sha256", secret).update(stringToSign).digest("base64") + crypto.createHmac("sha256", secret).update(stringToSign).digest("base64"), ); return result; } diff --git a/sdk/servicebus/service-bus/src/util/errors.ts b/sdk/servicebus/service-bus/src/util/errors.ts index 83364423b6b2..b0113c4ca1ac 100644 --- a/sdk/servicebus/service-bus/src/util/errors.ts +++ b/sdk/servicebus/service-bus/src/util/errors.ts @@ -96,7 +96,7 @@ export function getAlreadyReceivingErrorMsg(entityPath: string, sessionId?: stri export function throwTypeErrorIfParameterMissing( connectionId: string, parameterName: string, - parameterValue: unknown + parameterValue: unknown, ): void { if (parameterValue === undefined || parameterValue === null) { const error = new TypeError(`Missing parameter "${parameterName}"`); @@ -118,11 +118,11 @@ export function throwTypeErrorIfNotInstanceOfParameterType( parameterName: string, parameterValue: unknown, // eslint-disable-next-line @typescript-eslint/ban-types - constructor: Function + constructor: Function, ): void { if (!(parameterValue instanceof constructor)) { const error = new TypeError( - `The parameter "${parameterName}" should be an instance of "${constructor.name}"` + `The parameter "${parameterName}" should be an instance of "${constructor.name}"`, ); logger.warning(`[${connectionId}] %O`, error); throw error; @@ -141,11 +141,11 @@ export function throwTypeErrorIfParameterTypeMismatch( connectionId: string, parameterName: string, parameterValue: unknown, - expectedType: string + expectedType: string, ): void { if (typeof parameterValue !== expectedType) { const error = new TypeError( - `The parameter "${parameterName}" should be of type "${expectedType}"` + `The parameter "${parameterName}" should be of type "${expectedType}"`, ); logger.warning(`[${connectionId}] %O`, error); throw error; @@ -162,7 +162,7 @@ export function throwTypeErrorIfParameterTypeMismatch( export function throwTypeErrorIfParameterNotLong( connectionId: string, parameterName: string, - parameterValue: unknown + parameterValue: unknown, ): TypeError | undefined { if (Array.isArray(parameterValue)) { return throwTypeErrorIfParameterNotLongArray(connectionId, parameterName, parameterValue); @@ -185,7 +185,7 @@ export function throwTypeErrorIfParameterNotLong( export function throwTypeErrorIfParameterNotLongArray( connectionId: string, parameterName: string, - parameterValue: any[] + parameterValue: any[], ): TypeError | undefined { if (parameterValue.every((item) => Long.isLong(item))) { return; @@ -205,7 +205,7 @@ export function throwTypeErrorIfParameterNotLongArray( export function throwTypeErrorIfParameterIsEmptyString( connectionId: string, parameterName: string, - parameterValue: string + parameterValue: string, ): TypeError | undefined { if (parameterValue !== "") { return; @@ -242,7 +242,7 @@ export const MessageAlreadySettled = "The message has either been deleted or alr export function throwErrorIfInvalidOperationOnMessage( message: ServiceBusReceivedMessage, receiveMode: ReceiveMode, - connectionId: string + connectionId: string, ): void { let error: Error | undefined; @@ -257,7 +257,7 @@ export function throwErrorIfInvalidOperationOnMessage( error, "[%s] An error occurred for message with id '%s'", connectionId, - message.messageId + message.messageId, ); throw error; } @@ -278,7 +278,7 @@ export const PartitionKeySessionIdMismatchError = */ export function throwIfNotValidServiceBusMessage( msg: unknown, - errorMessageForWrongType: string + errorMessageForWrongType: string, ): void { if (!isServiceBusMessage(msg) && !isAmqpAnnotatedMessage(msg)) { throw new TypeError(errorMessageForWrongType); diff --git a/sdk/servicebus/service-bus/src/util/sasServiceClientCredentials.ts b/sdk/servicebus/service-bus/src/util/sasServiceClientCredentials.ts index 1edc40a893c0..124a8511993a 100644 --- a/sdk/servicebus/service-bus/src/util/sasServiceClientCredentials.ts +++ b/sdk/servicebus/service-bus/src/util/sasServiceClientCredentials.ts @@ -55,7 +55,7 @@ export class SasServiceClientCredentials { const signature = await this._generateSignature(targetUri, expirationDate); request.headers.set( "authorization", - `SharedAccessSignature sig=${signature}&se=${expirationDate}&skn=${this._credential.name}&sr=${targetUri}` + `SharedAccessSignature sig=${signature}&se=${expirationDate}&skn=${this._credential.name}&sr=${targetUri}`, ); request.withCredentials = true; return request; diff --git a/sdk/servicebus/service-bus/src/util/typeGuards.ts b/sdk/servicebus/service-bus/src/util/typeGuards.ts index 0613335da9cd..d484afec91cf 100644 --- a/sdk/servicebus/service-bus/src/util/typeGuards.ts +++ b/sdk/servicebus/service-bus/src/util/typeGuards.ts @@ -16,7 +16,7 @@ import { * @internal */ export function isCredential( - thing: unknown + thing: unknown, ): thing is TokenCredential | NamedKeyCredential | SASCredential { return isTokenCredential(thing) || isNamedKeyCredential(thing) || isSASCredential(thing); } diff --git a/sdk/servicebus/service-bus/src/util/utils.ts b/sdk/servicebus/service-bus/src/util/utils.ts index f62412f47b99..edca71dfa80a 100644 --- a/sdk/servicebus/service-bus/src/util/utils.ts +++ b/sdk/servicebus/service-bus/src/util/utils.ts @@ -142,7 +142,7 @@ export function toBuffer(input: unknown): Buffer { let result: any; messageLogger.verbose( "[utils.toBuffer] The given message body that needs to be converted to buffer is: ", - input + input, ); if (isBuffer(input)) { result = input; @@ -176,7 +176,7 @@ export function getString(value: unknown, nameOfProperty: string): string { const result = getStringOrUndefined(value); if (result === undefined) { throw new Error( - `"${nameOfProperty}" received from service expected to be a string value and not undefined.` + `"${nameOfProperty}" received from service expected to be a string value and not undefined.`, ); } return result; @@ -204,7 +204,7 @@ export function getInteger(value: unknown, nameOfProperty: string): number { const result = getIntegerOrUndefined(value); if (result === undefined) { throw new Error( - `"${nameOfProperty}" received from service expected to be a number value and not undefined.` + `"${nameOfProperty}" received from service expected to be a number value and not undefined.`, ); } return result; @@ -241,7 +241,7 @@ export function getBoolean(value: unknown, nameOfProperty: string): boolean { const result = getBooleanOrUndefined(value); if (result === undefined) { throw new Error( - `"${nameOfProperty}" received from service expected to be a boolean value and not undefined.` + `"${nameOfProperty}" received from service expected to be a boolean value and not undefined.`, ); } return result; @@ -316,23 +316,23 @@ export function getXMLNSPrefix(value: any): string { if (!value[Constants.XML_METADATA_MARKER]) { throw new Error( `Error occurred while parsing the response body - cannot find the XML_METADATA_MARKER "$" on the object ${JSON.stringify( - value - )}` + value, + )}`, ); } const keys = Object.keys(value[Constants.XML_METADATA_MARKER]); if (keys.length !== 1) { throw new Error( `Error occurred while parsing the response body - unexpected number of "xmlns:\${prefix}" keys at ${JSON.stringify( - value[Constants.XML_METADATA_MARKER] - )}` + value[Constants.XML_METADATA_MARKER], + )}`, ); } if (!keys[0].startsWith("xmlns:")) { throw new Error( `Error occurred while parsing the response body - unexpected key at ${JSON.stringify( - value[Constants.XML_METADATA_MARKER] - )}` + value[Constants.XML_METADATA_MARKER], + )}`, ); } // Pick the substring that's after "xmlns:" @@ -340,8 +340,8 @@ export function getXMLNSPrefix(value: any): string { if (!xmlnsPrefix) { throw new Error( `Error occurred while parsing the response body - unexpected xmlns prefix at ${JSON.stringify( - value[Constants.XML_METADATA_MARKER] - )}` + value[Constants.XML_METADATA_MARKER], + )}`, ); } return xmlnsPrefix; @@ -453,8 +453,8 @@ export function getRawAuthorizationRules(authorizationRules: AuthorizationRule[] `authorizationRules must be an array of AuthorizationRule objects or undefined, but received ${JSON.stringify( authorizationRules, undefined, - 2 - )}` + 2, + )}`, ); } @@ -476,8 +476,8 @@ function buildRawAuthorizationRule(authorizationRule: AuthorizationRule): any { `Expected authorizationRule input to be a JS object value, but received ${JSON.stringify( authorizationRule, undefined, - 2 - )}` + 2, + )}`, ); } @@ -603,7 +603,7 @@ export async function waitForTimeoutOrAbortOrResolve(args: { */ export function checkAndRegisterWithAbortSignal( onAbortFn: (abortError: AbortError) => void, - abortSignal?: AbortSignalLike + abortSignal?: AbortSignalLike, ): () => void { if (abortSignal == null) { return () => { @@ -674,14 +674,14 @@ export async function waitForSendable( credit: number; } | undefined, - outgoingAvaiable: number + outgoingAvaiable: number, ): Promise { let waitTimeForSendable = 1000; if (!sender?.sendable() && timeout > waitTimeForSendable) { sendLogger.verbose( "%s Sender '%s', waiting for 1 second for sender to become sendable", logPrefix, - name + name, ); await delay(waitTimeForSendable); @@ -691,7 +691,7 @@ export async function waitForSendable( logPrefix, name, sender?.credit, - outgoingAvaiable + outgoingAvaiable, ); } else { waitTimeForSendable = 0; diff --git a/sdk/servicebus/service-bus/test/internal/atomE2ETests.spec.ts b/sdk/servicebus/service-bus/test/internal/atomE2ETests.spec.ts index 7ccefd73bb24..2831af492181 100644 --- a/sdk/servicebus/service-bus/test/internal/atomE2ETests.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/atomE2ETests.spec.ts @@ -42,13 +42,13 @@ describe("Filter messages with the rules set by the ATOM API", () => { messagesToSend: ServiceBusMessage[], filter: SqlRuleFilter | CorrelationRuleFilter, numberOfMessagesToBeFiltered: number, - toCheck: (msg: ServiceBusReceivedMessage) => void + toCheck: (msg: ServiceBusReceivedMessage) => void, ): Promise { await serviceBusAtomManagementClient.createRule( topicName, subscriptionName, "rule-name", - filter + filter, ); await serviceBusClient.createSender(topicName).sendMessages(messagesToSend); @@ -59,7 +59,7 @@ describe("Filter messages with the rules set by the ATOM API", () => { should.equal( receivedMessages.length, numberOfMessagesToBeFiltered, - "Unexpected number of messages received" + "Unexpected number of messages received", ); // Making sure the filtered message is same as the expected one. @@ -77,7 +77,7 @@ describe("Filter messages with the rules set by the ATOM API", () => { 1, (msg) => { chai.assert.deepEqual(msg.subject, subject, "Unexpected subject on the message"); - } + }, ); }); @@ -121,7 +121,7 @@ describe("getSubscriptionRuntimeProperties", () => { const activeMessageCount = ( await serviceBusAtomManagementClient.getSubscriptionRuntimeProperties( topicName, - subscriptionName1 + subscriptionName1, ) ).activeMessageCount; chai.assert.equal(activeMessageCount, messages.length, "Unexpected active message count"); @@ -140,12 +140,12 @@ describe("getSubscriptionRuntimeProperties", () => { await receiveMessagesAndAbandon(subscriptionName2); for await (const subscription of serviceBusAtomManagementClient.listSubscriptionsRuntimeProperties( - topicName + topicName, )) { chai.assert.equal( subscription.activeMessageCount, messages.length, - "Unexpected active message count" + "Unexpected active message count", ); } }); diff --git a/sdk/servicebus/service-bus/test/internal/auth.spec.ts b/sdk/servicebus/service-bus/test/internal/auth.spec.ts index cffe6f4fd375..661b12678930 100644 --- a/sdk/servicebus/service-bus/test/internal/auth.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/auth.spec.ts @@ -73,7 +73,7 @@ const { SERVICEBUS_CONNECTION_STRING: serviceBusConnectionString } = getEnvVars( const parsed = parseServiceBusConnectionString(serviceBusConnectionString); const client = new ServiceBusClient( parsed.fullyQualifiedNamespace, - new AzureNamedKeyCredential(parsed.sharedAccessKeyName!, parsed.sharedAccessKey!) + new AzureNamedKeyCredential(parsed.sharedAccessKeyName!, parsed.sharedAccessKey!), ); const sender = tempClient.createSender(entities.queue ?? entities.topic!); @@ -122,12 +122,12 @@ const { SERVICEBUS_CONNECTION_STRING: serviceBusConnectionString } = getEnvVars( sharedAccessSignature = await getSharedAccessSignature( serviceBusConnectionString, entities.queue ?? `${entities.topic!}`, - endpoint.replace(/\/+$/, "") + endpoint.replace(/\/+$/, ""), ); sasConnectionString = await getSasConnectionString( serviceBusConnectionString, entities.queue ?? `${entities.topic!}`, - endpoint.replace(/\/+$/, "") + endpoint.replace(/\/+$/, ""), ); }); @@ -173,7 +173,7 @@ const { SERVICEBUS_CONNECTION_STRING: serviceBusConnectionString } = getEnvVars( const parsed = parseServiceBusConnectionString(sasConnectionString); const client = new ServiceBusClient( parsed.fullyQualifiedNamespace, - new AzureSASCredential(sharedAccessSignature) + new AzureSASCredential(sharedAccessSignature), ); const sender = tempClient.createSender(entities.queue ?? entities.topic!); @@ -209,7 +209,7 @@ const { SERVICEBUS_CONNECTION_STRING: serviceBusConnectionString } = getEnvVars( async function getSharedAccessSignature( connectionString: string, path: string, - fqdn: string + fqdn: string, ): Promise { const parsed = parseServiceBusConnectionString(connectionString) as { sharedAccessKeyName: string; @@ -221,12 +221,12 @@ const { SERVICEBUS_CONNECTION_STRING: serviceBusConnectionString } = getEnvVars( async function getSasConnectionString( connectionString: string, path: string, - fqdn: string + fqdn: string, ): Promise { const sas = await getSharedAccessSignature(connectionString, path, fqdn); return `Endpoint=${fqdn};SharedAccessSignature=${sas}`; } }); - } + }, ); diff --git a/sdk/servicebus/service-bus/test/internal/backupMessageSettlement.spec.ts b/sdk/servicebus/service-bus/test/internal/backupMessageSettlement.spec.ts index f5f19359d751..88b91422324b 100644 --- a/sdk/servicebus/service-bus/test/internal/backupMessageSettlement.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/backupMessageSettlement.spec.ts @@ -48,7 +48,7 @@ describe("Message settlement After Receiver is Closed - Through ManagementLink", receiver = await serviceBusClient.test.createPeekLockReceiver(entityNames); sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!) + serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!), ); deadLetterReceiver = serviceBusClient.test.createDeadLetterReceiver(entityNames); @@ -59,7 +59,7 @@ describe("Message settlement After Receiver is Closed - Through ManagementLink", }); async function sendReceiveMsg( - testMessages: ServiceBusMessage + testMessages: ServiceBusMessage, ): Promise { await sender.sendMessages(testMessages); const msgs = await receiver.receiveMessages(1); @@ -97,7 +97,7 @@ describe("Message settlement After Receiver is Closed - Through ManagementLink", should.equal( err.message, `Failed to ${DispositionType.complete} the message as the AMQP link with which the message was received is no longer alive.`, - "Unexpected error thrown" + "Unexpected error thrown", ); errorWasThrown = true; } @@ -148,7 +148,7 @@ describe("Message settlement After Receiver is Closed - Through ManagementLink", should.equal( err.message, `Failed to ${DispositionType.abandon} the message as the AMQP link with which the message was received is no longer alive.`, - "Unexpected error thrown" + "Unexpected error thrown", ); errorWasThrown = true; } @@ -173,7 +173,7 @@ describe("Message settlement After Receiver is Closed - Through ManagementLink", async function (): Promise { await beforeEachTest(noSessionTestClientType); await testAbandon(); - } + }, ); // it( @@ -213,7 +213,7 @@ describe("Message settlement After Receiver is Closed - Through ManagementLink", should.equal( err.message, `Failed to ${DispositionType.defer} the message as the AMQP link with which the message was received is no longer alive.`, - "Unexpected error thrown" + "Unexpected error thrown", ); errorWasThrown = true; } @@ -242,7 +242,7 @@ describe("Message settlement After Receiver is Closed - Through ManagementLink", async function (): Promise { await beforeEachTest(noSessionTestClientType); await testDefer(); - } + }, ); // it( @@ -279,7 +279,7 @@ describe("Message settlement After Receiver is Closed - Through ManagementLink", } testLogger.info( - `Underlying link should be closed: ${receiver.isClosed}. This will force us to use the management link to settle. Will now attempt to dead letter.` + `Underlying link should be closed: ${receiver.isClosed}. This will force us to use the management link to settle. Will now attempt to dead letter.`, ); let errorWasThrown = false; @@ -293,7 +293,7 @@ describe("Message settlement After Receiver is Closed - Through ManagementLink", should.equal( err.message, `Failed to ${DispositionType.deadletter} the message as the AMQP link with which the message was received is no longer alive.`, - "Unexpected error thrown" + "Unexpected error thrown", ); errorWasThrown = true; } @@ -305,7 +305,7 @@ describe("Message settlement After Receiver is Closed - Through ManagementLink", } testLogger.info( - `Creating a peek lock dead letter receiver and attempting to receive the dead lettered message` + `Creating a peek lock dead letter receiver and attempting to receive the dead lettered message`, ); receiver = await serviceBusClient.test.createPeekLockReceiver(entityNames); @@ -315,18 +315,18 @@ describe("Message settlement After Receiver is Closed - Through ManagementLink", should.equal( Array.isArray(deadLetterMsgsBatch), true, - "`ReceivedMessages` from Deadletter is not an array" + "`ReceivedMessages` from Deadletter is not an array", ); should.equal(deadLetterMsgsBatch.length, 1, "Unexpected number of messages"); should.equal( deadLetterMsgsBatch[0].body, testMessages.body, - "MessageBody is different than expected" + "MessageBody is different than expected", ); should.equal( deadLetterMsgsBatch[0].messageId, testMessages.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); testLogger.info(`Attempting to complete the message: ${deadLetterMsgsBatch[0].messageId}`); @@ -348,7 +348,7 @@ describe("Message settlement After Receiver is Closed - Through ManagementLink", async function (): Promise { await beforeEachTest(noSessionTestClientType); await testDeadletter(); - } + }, ); // it( @@ -384,7 +384,7 @@ describe("Message settlement After Receiver is Closed - Through ManagementLink", should.equal( lockedUntilAfterRenewlock > lockedUntilBeforeRenewlock!, true, - "MessageLock did not get renewed!" + "MessageLock did not get renewed!", ); await receiver.completeMessage(msg); } catch (err: any) { @@ -394,7 +394,7 @@ describe("Message settlement After Receiver is Closed - Through ManagementLink", should.equal( err.message, `Invalid operation on the message, message lock doesn't exist when dealing with sessions`, - "Unexpected error thrown" + "Unexpected error thrown", ); } errorWasThrown = true; diff --git a/sdk/servicebus/service-bus/test/internal/batchReceiver.spec.ts b/sdk/servicebus/service-bus/test/internal/batchReceiver.spec.ts index 1a085bc932c0..9ffb54d8be81 100644 --- a/sdk/servicebus/service-bus/test/internal/batchReceiver.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/batchReceiver.spec.ts @@ -44,7 +44,7 @@ let deadLetterReceiver: ServiceBusReceiver; async function beforeEachTest( entityType: TestClientType, - receiveMode: "peekLock" | "receiveAndDelete" = "peekLock" + receiveMode: "peekLock" | "receiveAndDelete" = "peekLock", ): Promise { entityNames = await serviceBusClient.test.createTestEntities(entityType); if (receiveMode === "receiveAndDelete") { @@ -54,7 +54,7 @@ async function beforeEachTest( } sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!) + serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!), ); deadLetterReceiver = serviceBusClient.test.createDeadLetterReceiver(entityNames); @@ -81,7 +81,7 @@ describe("Batching Receiver", () => { }); async function sendReceiveMsg( - testMessages: ServiceBusMessage + testMessages: ServiceBusMessage, ): Promise { await sender.sendMessages(testMessages); const msgs = await receiver.receiveMessages(1); @@ -92,7 +92,7 @@ describe("Batching Receiver", () => { should.equal( msgs[0].messageId, testMessages.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal(msgs[0].deliveryCount, 0, "DeliveryCount is different than expected"); @@ -120,7 +120,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(withSessionTestClientType); await testComplete(); - } + }, ); async function testAbandon(): Promise { @@ -139,7 +139,7 @@ describe("Batching Receiver", () => { should.equal( messageBatch[0].messageId, testMessages.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await receiver.completeMessage(messageBatch[0]); @@ -152,7 +152,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(noSessionTestClientType); await testAbandon(); - } + }, ); it( @@ -160,7 +160,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(withSessionTestClientType); await testAbandon(); - } + }, ); async function testAbandonMsgsTillMaxDeliveryCount(): Promise { @@ -177,12 +177,12 @@ describe("Batching Receiver", () => { should.equal( batch[0].messageId, testMessages.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal( batch[0].deliveryCount, abandonMsgCount, - "DeliveryCount is different than expected" + "DeliveryCount is different than expected", ); abandonMsgCount++; @@ -196,18 +196,18 @@ describe("Batching Receiver", () => { should.equal( Array.isArray(deadLetterMsgsBatch), true, - "`ReceivedMessages` from Deadletter is not an array" + "`ReceivedMessages` from Deadletter is not an array", ); should.equal(deadLetterMsgsBatch.length, 1, "Unexpected number of messages"); should.equal( deadLetterMsgsBatch[0].body, testMessages.body, - "MessageBody is different than expected" + "MessageBody is different than expected", ); should.equal( deadLetterMsgsBatch[0].messageId, testMessages.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await receiver.completeMessage(deadLetterMsgsBatch[0]); @@ -220,7 +220,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(noSessionTestClientType); await testAbandonMsgsTillMaxDeliveryCount(); - } + }, ); it( @@ -228,7 +228,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(withSessionTestClientType); await testAbandonMsgsTillMaxDeliveryCount(); - } + }, ); async function testDefer(): Promise { @@ -251,7 +251,7 @@ describe("Batching Receiver", () => { should.equal( deferredMsg.messageId, testMessages.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal(deferredMsg.deliveryCount, 1, "DeliveryCount is different than expected"); @@ -265,7 +265,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(noSessionTestClientType); await testDefer(); - } + }, ); it( @@ -273,7 +273,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(withSessionTestClientType); await testDefer(); - } + }, ); async function testDeadletter(): Promise { @@ -290,18 +290,18 @@ describe("Batching Receiver", () => { should.equal( Array.isArray(deadLetterMsgsBatch), true, - "`ReceivedMessages` from Deadletter is not an array" + "`ReceivedMessages` from Deadletter is not an array", ); should.equal(deadLetterMsgsBatch.length, 1, "Unexpected number of messages"); should.equal( deadLetterMsgsBatch[0].body, testMessages.body, - "MessageBody is different than expected" + "MessageBody is different than expected", ); should.equal( deadLetterMsgsBatch[0].messageId, testMessages.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await receiver.completeMessage(deadLetterMsgsBatch[0]); @@ -314,7 +314,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(noSessionTestClientType); await testDeadletter(); - } + }, ); it( @@ -322,7 +322,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(withSessionTestClientType); await testDeadletter(); - } + }, ); async function testPeek(): Promise { @@ -343,7 +343,7 @@ describe("Batching Receiver", () => { should.equal( !peekedMsg.lockToken, true, - "Peeked msg was not meant to have lockToken! We use this assumption to differentiate between peeked msg and other messages." + "Peeked msg was not meant to have lockToken! We use this assumption to differentiate between peeked msg and other messages.", ); const expectedErrorMsg = InvalidOperationForPeekedMessage; @@ -380,7 +380,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(noSessionTestClientType); await testPeek(); - } + }, ); it( @@ -388,7 +388,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(withSessionTestClientType); await testPeek(); - } + }, ); }); @@ -406,7 +406,7 @@ describe("Batching Receiver", () => { }); async function deadLetterMessage( - testMessage: ServiceBusMessage + testMessage: ServiceBusMessage, ): Promise { await sender.sendMessages(testMessage); const batch = await receiver.receiveMessages(1); @@ -416,7 +416,7 @@ describe("Batching Receiver", () => { should.equal( batch[0].messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal(batch[0].deliveryCount, 0, "DeliveryCount is different than expected"); @@ -430,17 +430,17 @@ describe("Batching Receiver", () => { should.equal( deadLetterMsgsBatch[0].body, testMessage.body, - "MessageBody is different than expected" + "MessageBody is different than expected", ); should.equal( deadLetterMsgsBatch[0].messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal( deadLetterMsgsBatch[0].deliveryCount, 0, - "DeliveryCount is different than expected" + "DeliveryCount is different than expected", ); return deadLetterMsgsBatch[0]; @@ -449,7 +449,7 @@ describe("Batching Receiver", () => { async function completeDeadLetteredMessage( testMessage: ServiceBusMessage, deadletterClient: ServiceBusReceiver, - expectedDeliverCount: number + expectedDeliverCount: number, ): Promise { const deadLetterMsgsBatch = await deadLetterReceiver.receiveMessages(1); @@ -457,17 +457,17 @@ describe("Batching Receiver", () => { should.equal( deadLetterMsgsBatch[0].body, testMessage.body, - "MessageBody is different than expected" + "MessageBody is different than expected", ); should.equal( deadLetterMsgsBatch[0].messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal( deadLetterMsgsBatch[0].deliveryCount, expectedDeliverCount, - "DeliveryCount is different than expected" + "DeliveryCount is different than expected", ); await receiver.completeMessage(deadLetterMsgsBatch[0]); @@ -496,7 +496,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(anyRandomTestClientType); await testDeadletter(); - } + }, ); async function testAbandon(): Promise { @@ -515,7 +515,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(anyRandomTestClientType); await testAbandon(); - } + }, ); async function testDefer(): Promise { @@ -539,7 +539,7 @@ describe("Batching Receiver", () => { should.equal( deferredMsg.messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await deadLetterReceiver.completeMessage(deferredMsg); @@ -557,7 +557,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(noSessionTestClientType); await testDefer(); - } + }, ); }); @@ -622,12 +622,12 @@ describe("Batching Receiver", () => { should.equal( testMessages.some((x) => x.messageId === msgs1[0].messageId), true, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal( testMessages.some((x) => x.messageId === msgs2[0].messageId), true, - "MessageId is different than expected" + "MessageId is different than expected", ); await receiver.completeMessage(msgs1[0]); @@ -639,7 +639,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(noSessionTestClientType); await testSequentialReceiveBatchCalls(); - } + }, ); it( @@ -647,7 +647,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(withSessionTestClientType); await testSequentialReceiveBatchCalls(); - } + }, ); }); @@ -679,7 +679,7 @@ describe("Batching Receiver", () => { testMessages.sessionId!, { maxAutoLockRenewalDurationInMs: 0, - } + }, ); } else { receiver = await serviceBusClient.test.createPeekLockReceiver(entityNames, { @@ -694,7 +694,7 @@ describe("Batching Receiver", () => { should.equal( batch[0].messageId, testMessages.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await testPeekMsgsLength(receiver, 1); @@ -708,7 +708,7 @@ describe("Batching Receiver", () => { testMessages.sessionId!, { maxAutoLockRenewalDurationInMs: 0, - } + }, ); } @@ -719,7 +719,7 @@ describe("Batching Receiver", () => { should.equal( batch[0].messageId, testMessages.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await receiver.completeMessage(batch[0]); @@ -731,7 +731,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(noSessionTestClientType); await testNoSettlement(); - } + }, ); it( @@ -740,7 +740,7 @@ describe("Batching Receiver", () => { async function (): Promise { await beforeEachTest(withSessionTestClientType); await testNoSettlement(); - } + }, ); async function testAskForMore(): Promise { @@ -755,7 +755,7 @@ describe("Batching Receiver", () => { should.equal( batch[0].messageId, testMessages.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await receiver.completeMessage(batch[0]); @@ -769,7 +769,7 @@ describe("Batching Receiver", () => { await beforeEachTest(noSessionTestClientType); await testAskForMore(); - } + }, ); it( @@ -779,7 +779,7 @@ describe("Batching Receiver", () => { await beforeEachTest(withSessionTestClientType); await testAskForMore(); - } + }, ); it( @@ -796,7 +796,7 @@ describe("Batching Receiver", () => { } catch (err: any) { err.message.should.equal(StandardAbortMessage); } - } + }, ); it( @@ -813,7 +813,7 @@ describe("Batching Receiver", () => { } catch (err: any) { err.message.should.equal(StandardAbortMessage); } - } + }, ); }); @@ -885,7 +885,7 @@ describe("Batching Receiver", () => { // which is a non-blocking task. testLogger.info( - "Receiving a single message to warm up receiver (there isn't one, so this should just time out)" + "Receiving a single message to warm up receiver (there isn't one, so this should just time out)", ); const maxWaitTimeInMs = 5000; @@ -912,7 +912,7 @@ describe("Batching Receiver", () => { const messages1 = await receiver.receiveMessages(10, { maxWaitTimeInMs }); testLogger.info( - `Receiving done, got ${messages1.length} messages, now waiting for detach event since we forced a .idle()` + `Receiving done, got ${messages1.length} messages, now waiting for detach event since we forced a .idle()`, ); const result = await Promise.all([ @@ -931,7 +931,7 @@ describe("Batching Receiver", () => { const sampleMessage = TestMessage.getSample(); testLogger.info( - "Sending another sample message for our 'receiver after interrupted batch receiver' receiver" + "Sending another sample message for our 'receiver after interrupted batch receiver' receiver", ); await sender.sendMessages(sampleMessage); @@ -947,7 +947,7 @@ describe("Batching Receiver", () => { assert.deepEqual( messages2!.map((msg) => msg.body), - [sampleMessage.body] + [sampleMessage.body], ); }); @@ -1082,22 +1082,22 @@ describe("Batching Receiver", () => { }); async function beforeEachTestInner( - receiveMode: "peekLock" | "receiveAndDelete" = "peekLock" + receiveMode: "peekLock" | "receiveAndDelete" = "peekLock", ): Promise { serviceBusClient = createServiceBusClientForTests(); entityNames = await serviceBusClient.test.createTestEntities(withSessionTestClientType); if (receiveMode === "receiveAndDelete") { sessionReceiver = (await serviceBusClient.test.createReceiveAndDeleteReceiver( - entityNames + entityNames, )) as ServiceBusSessionReceiver; } else { sessionReceiver = (await serviceBusClient.test.createPeekLockReceiver( - entityNames + entityNames, )) as ServiceBusSessionReceiver; } sessionSender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!) + serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!), ); } @@ -1147,7 +1147,7 @@ describe("Batching Receiver", () => { } catch (error: any) { should.equal( error.message, - `The session lock has expired on the session with id ${message.sessionId}` + `The session lock has expired on the session with id ${message.sessionId}`, ); } refreshConnectionCalled.should.be.greaterThan(0, "refreshConnection was not called."); @@ -1165,7 +1165,7 @@ describe("Batching Receiver", () => { should.equal( messages1.length, 1, - "Unexpected number of received messages(before disconnect)." + "Unexpected number of received messages(before disconnect).", ); const messageSession = (sessionReceiver as ServiceBusSessionReceiverImpl)[ @@ -1187,7 +1187,7 @@ describe("Batching Receiver", () => { messages2.length.should.equal( 1, - "Unexpected number of messages received(during disconnect)." + "Unexpected number of messages received(during disconnect).", ); await sessionSender.sendMessages(TestMessage.getSessionSample()); @@ -1200,18 +1200,18 @@ describe("Batching Receiver", () => { should.equal( error.message, `The session lock has expired on the session with id ${TestMessage.sessionId}`, - "Unexpected error thrown" + "Unexpected error thrown", ); await delay(2000); // Adding a delay of 2 sec to make sure the flaky ness goes away // wait for the 2nd message to be received. sessionReceiver = (await serviceBusClient.test.createReceiveAndDeleteReceiver( - entityNames + entityNames, )) as ServiceBusSessionReceiver; const messages3 = await sessionReceiver.receiveMessages(1, { maxWaitTimeInMs }); messages3.length.should.equal( 1, - "Unexpected number of messages received(upon reconnecting)." + "Unexpected number of messages received(upon reconnecting).", ); } }); @@ -1227,7 +1227,7 @@ describe("Batching Receiver", () => { should.equal( messages1.length, 1, - "Unexpected number of received messages(before disconnect)." + "Unexpected number of received messages(before disconnect).", ); const batchingReceiver = (sessionReceiver as ServiceBusSessionReceiverImpl)[ @@ -1267,7 +1267,7 @@ describe("Batching Receiver", () => { should.equal( messages1.length, 1, - "Unexpected number of received messages(before disconnect)." + "Unexpected number of received messages(before disconnect).", ); const receiverContext = (sessionReceiver as ServiceBusSessionReceiverImpl)["_context"]; @@ -1292,7 +1292,7 @@ describe("Batching Receiver", () => { messages2.length.should.equal( 1, - "Unexpected number of messages received(during disconnect)." + "Unexpected number of messages received(during disconnect).", ); await sessionSender.sendMessages(TestMessage.getSessionSample()); @@ -1305,18 +1305,18 @@ describe("Batching Receiver", () => { should.equal( error.message, `The session lock has expired on the session with id ${TestMessage.sessionId}`, - "Unexpected error thrown" + "Unexpected error thrown", ); // wait for the 2nd message to be received. await sessionReceiver.close(); sessionReceiver = (await serviceBusClient.test.createReceiveAndDeleteReceiver( - entityNames + entityNames, )) as ServiceBusSessionReceiver; const messages3 = await sessionReceiver.receiveMessages(1, { maxWaitTimeInMs: 5000 }); messages3.length.should.equal( 1, - "Unexpected number of messages received(upon reconnecting)." + "Unexpected number of messages received(upon reconnecting).", ); } }); @@ -1332,7 +1332,7 @@ describe("Batching Receiver", () => { should.equal( messages1.length, 1, - "Unexpected number of received messages(before disconnect)." + "Unexpected number of received messages(before disconnect).", ); const receiverContext = (sessionReceiver as ServiceBusSessionReceiverImpl)["_context"]; @@ -1491,7 +1491,7 @@ describe("Batching Receiver", () => { * for the batching receiver. */ function causeDisconnectDuringDrain( - batchingReceiver: (Pick & LinkEntity) | undefined + batchingReceiver: (Pick & LinkEntity) | undefined, ): { onDetachedCalledPromise: Promise } { let resolveOnDetachedCallPromise: () => void; diff --git a/sdk/servicebus/service-bus/test/internal/managementClient.spec.ts b/sdk/servicebus/service-bus/test/internal/managementClient.spec.ts index 98cc89e3d59e..fb61ecd9e448 100644 --- a/sdk/servicebus/service-bus/test/internal/managementClient.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/managementClient.spec.ts @@ -14,7 +14,7 @@ describe("ManagementClient unit tests", () => { const mgmtClient = new ManagementClient( connectionContext, - connectionContext.config.entityPath || "" + connectionContext.config.entityPath || "", ); try { mgmtClient["_init"] = async () => { diff --git a/sdk/servicebus/service-bus/test/internal/node/packageInfo.spec.ts b/sdk/servicebus/service-bus/test/internal/node/packageInfo.spec.ts index 4963f51be3f5..4b67753d14a5 100644 --- a/sdk/servicebus/service-bus/test/internal/node/packageInfo.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/node/packageInfo.spec.ts @@ -26,12 +26,12 @@ describe("Ensure package name and version are consistent in SDK and package.json should.equal( packageJsonInfo.name, name, - `${name} from package.json is not same as 'name' used in constants.ts` + `${name} from package.json is not same as 'name' used in constants.ts`, ); should.equal( packageJsonInfo.version, version, - `${version} from package.json is not same as 'version' used in constants.ts` + `${version} from package.json is not same as 'version' used in constants.ts`, ); }); }); diff --git a/sdk/servicebus/service-bus/test/internal/operationOptionsForATOM.spec.ts b/sdk/servicebus/service-bus/test/internal/operationOptionsForATOM.spec.ts index 016410c2fca8..f4cbbc890a0f 100644 --- a/sdk/servicebus/service-bus/test/internal/operationOptionsForATOM.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/operationOptionsForATOM.spec.ts @@ -39,119 +39,119 @@ describe("Operation Options", () => { await verifyAbortError(async () => serviceBusAtomManagementClient.getNamespaceProperties({ abortSignal: AbortController.timeout(1), - }) + }), ); }); it("createQueue", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient.createQueue(entityName1, { abortSignal: AbortController.timeout(1), - }) + }), ); }); it("getQueue", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient.getQueue(entityName1, { abortSignal: AbortController.timeout(1), - }) + }), ); }); it("updateQueue", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient.updateQueue({ name: entityName1 } as any, { abortSignal: AbortController.timeout(1), - }) + }), ); }); it("deleteQueue", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient.deleteQueue(entityName1, { abortSignal: AbortController.timeout(1), - }) + }), ); }); it("getQueueRuntimeProperties", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient.getQueueRuntimeProperties(entityName1, { abortSignal: AbortController.timeout(1), - }) + }), ); }); it("getQueues", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient["getQueues"]({ abortSignal: AbortController.timeout(1), - }) + }), ); }); it("getQueuesRuntimeProperties", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient["getQueuesRuntimeProperties"]({ abortSignal: AbortController.timeout(1), - }) + }), ); }); it("createTopic", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient.createTopic(entityName1, { abortSignal: AbortController.timeout(1), - }) + }), ); }); it("getTopic", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient.getTopic(entityName1, { abortSignal: AbortController.timeout(1), - }) + }), ); }); it("updateTopic", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient.updateTopic({ name: entityName1 } as any, { abortSignal: AbortController.timeout(1), - }) + }), ); }); it("deleteTopic", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient.deleteTopic(entityName1, { abortSignal: AbortController.timeout(1), - }) + }), ); }); it("getTopicRuntimeProperties", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient.getTopicRuntimeProperties(entityName1, { abortSignal: AbortController.timeout(1), - }) + }), ); }); it("getTopics", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient["getTopics"]({ abortSignal: AbortController.timeout(1), - }) + }), ); }); it("getTopicsRuntimeProperties", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient["getTopicsRuntimeProperties"]({ abortSignal: AbortController.timeout(1), - }) + }), ); }); it("createSubscription", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient.createSubscription(entityName1, entityName2, { abortSignal: AbortController.timeout(1), - }) + }), ); }); it("getSubscription", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient.getSubscription(entityName1, entityName2, { abortSignal: AbortController.timeout(1), - }) + }), ); }); it("updateSubscription", async () => { @@ -160,36 +160,36 @@ describe("Operation Options", () => { { topicName: entityName1, subscriptionName: entityName2 } as any, { abortSignal: AbortController.timeout(1), - } - ) + }, + ), ); }); it("deleteSubscription", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient.deleteSubscription(entityName1, entityName2, { abortSignal: AbortController.timeout(1), - }) + }), ); }); it("getSubscriptionRuntimeProperties", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient.getSubscriptionRuntimeProperties(entityName1, entityName2, { abortSignal: AbortController.timeout(1), - }) + }), ); }); it("getSubscriptions", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient["getSubscriptions"](entityName1, { abortSignal: AbortController.timeout(1), - }) + }), ); }); it("getSubscriptionsRuntimeProperties", async () => { await verifyAbortError(async () => serviceBusAtomManagementClient["getSubscriptionsRuntimeProperties"](entityName1, { abortSignal: AbortController.timeout(1), - }) + }), ); }); }); @@ -221,12 +221,12 @@ describe("Operation Options", () => { requestOptions: { customHeaders: { state: "WA" }, }, - } + }, ); assert.equal( request.headers.get("state"), "WA", - "Custom header from the requestOptions is not populated as expected." + "Custom header from the requestOptions is not populated as expected.", ); }); }); @@ -238,7 +238,7 @@ describe("Operation Options", () => { serviceBusAtomManagementClient.getNamespaceProperties({ tracingOptions: options.tracingOptions, }), - ["ServiceBusAdministrationClient.getNamespaceProperties"] + ["ServiceBusAdministrationClient.getNamespaceProperties"], ); }); }); diff --git a/sdk/servicebus/service-bus/test/internal/receiveAndDeleteMode.spec.ts b/sdk/servicebus/service-bus/test/internal/receiveAndDeleteMode.spec.ts index 3f55f2f53ede..cd6eb7a89ad1 100644 --- a/sdk/servicebus/service-bus/test/internal/receiveAndDeleteMode.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/receiveAndDeleteMode.spec.ts @@ -48,12 +48,12 @@ describe("receive and delete", () => { async function beforeEachTest( entityType: TestClientType, - receiveMode?: "peekLock" | "receiveAndDelete" + receiveMode?: "peekLock" | "receiveAndDelete", ): Promise { entityName = await serviceBusClient.test.createTestEntities(entityType); sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityName.queue ?? entityName.topic!) + serviceBusClient.createSender(entityName.queue ?? entityName.topic!), ); if (receiveMode === "peekLock") { receiver = await serviceBusClient.test.createPeekLockReceiver(entityName); @@ -81,7 +81,7 @@ describe("receive and delete", () => { should.equal( !msgs[0].lockToken, true, - "Msgs in receiveAndDelete mode should not have locktoken! We use this assumption to differentiate between the two receive modes." + "Msgs in receiveAndDelete mode should not have locktoken! We use this assumption to differentiate between the two receive modes.", ); should.equal(Array.isArray(msgs), true, "`ReceivedMessages` is not an array"); @@ -90,7 +90,7 @@ describe("receive and delete", () => { should.equal( msgs[0].messageId, testMessages.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal(msgs[0].deliveryCount, 0, "DeliveryCount is different than expected"); } @@ -109,7 +109,7 @@ describe("receive and delete", () => { async function (): Promise { await beforeEachTest(noSessionTestClientType); await testNoSettlement(); - } + }, ); it( @@ -117,7 +117,7 @@ describe("receive and delete", () => { async function (): Promise { await beforeEachTest(withSessionTestClientType); await testNoSettlement(); - } + }, ); }); @@ -130,7 +130,7 @@ describe("receive and delete", () => { async function sendReceiveMsg( testMessages: ServiceBusMessage, - autoCompleteFlag: boolean + autoCompleteFlag: boolean, ): Promise { await sender.sendMessages(testMessages); @@ -146,7 +146,7 @@ describe("receive and delete", () => { errors.push(args.error.message); }, }, - { autoCompleteMessages: autoCompleteFlag } + { autoCompleteMessages: autoCompleteFlag }, ); const msgsCheck = await checkWithTimeout(() => receivedMsgs.length === 1); @@ -156,18 +156,18 @@ describe("receive and delete", () => { should.equal( receivedMsgs[0].body, testMessages.body, - "MessageBody is different than expected" + "MessageBody is different than expected", ); should.equal( receivedMsgs[0].messageId, testMessages.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal( errorFromErrorHandler, undefined, - errorFromErrorHandler && errorFromErrorHandler.message + errorFromErrorHandler && errorFromErrorHandler.message, ); await testPeekMsgsLength(receiver, 0); @@ -188,7 +188,7 @@ describe("receive and delete", () => { async function (): Promise { await beforeEachTest(noSessionTestClientType); await testNoSettlement(true); - } + }, ); it( @@ -197,7 +197,7 @@ describe("receive and delete", () => { async function (): Promise { await beforeEachTest(withSessionTestClientType); await testNoSettlement(true); - } + }, ); it( @@ -206,7 +206,7 @@ describe("receive and delete", () => { async function (): Promise { await beforeEachTest(noSessionTestClientType); await testNoSettlement(false); - } + }, ); it( @@ -215,7 +215,7 @@ describe("receive and delete", () => { async function (): Promise { await beforeEachTest(withSessionTestClientType); await testNoSettlement(false); - } + }, ); }); @@ -225,7 +225,7 @@ describe("receive and delete", () => { }); async function sendReceiveMsg( - testMessages: ServiceBusMessage + testMessages: ServiceBusMessage, ): Promise { await sender.sendMessages(testMessages); const msgs = await receiver.receiveMessages(1); @@ -236,7 +236,7 @@ describe("receive and delete", () => { should.equal( msgs[0].messageId, testMessages.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal(msgs[0].deliveryCount, 0, "DeliveryCount is different than expected"); @@ -245,7 +245,7 @@ describe("receive and delete", () => { const testError = (err: Error): void => { expect(err.message, "ErrorMessage is different than expected").equals( - InvalidOperationInReceiveAndDeleteMode + InvalidOperationInReceiveAndDeleteMode, ); }; @@ -322,7 +322,7 @@ describe("receive and delete", () => { should.equal( err.message, InvalidOperationInReceiveAndDeleteMode, - "ErrorMessage is different than expected" + "ErrorMessage is different than expected", ); errorWasThrown = true; }); @@ -335,7 +335,7 @@ describe("receive and delete", () => { async function (): Promise { await beforeEachTest(noSessionTestClientType); await testRenewLock(); - } + }, ); }); @@ -360,7 +360,7 @@ describe("receive and delete", () => { should.equal( msgs[0].messageId, testMessages.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal(msgs[0].deliveryCount, 0, "DeliveryCount is different than expected"); @@ -369,7 +369,7 @@ describe("receive and delete", () => { } async function testDeferredMessage( - testClientType: TestClientType + testClientType: TestClientType, ): Promise { const sequenceNumber = await deferMessage(testClientType); await receiver.close(); @@ -413,7 +413,7 @@ describe("receive and delete", () => { withSessionTestClientType + ": No settlement of the message removes message", async function (): Promise { await testDeferredMessage(withSessionTestClientType); - } + }, ); }); @@ -425,7 +425,7 @@ describe("receive and delete", () => { let entityNames: EntityName; async function testDeferredMessage( - testClientType: TestClientType + testClientType: TestClientType, ): Promise { entityNames = await beforeEachTest(testClientType, "peekLock"); @@ -453,13 +453,13 @@ describe("receive and delete", () => { const testError = (err: Error): void => { expect(err.message, "ErrorMessage is different than expected").equals( - InvalidOperationInReceiveAndDeleteMode + InvalidOperationInReceiveAndDeleteMode, ); }; async function testSettlement( testClienttype: TestClientType, - operation: DispositionType + operation: DispositionType, ): Promise { const deferredMsg = await testDeferredMessage(testClienttype); @@ -520,7 +520,7 @@ describe("receive and delete", () => { should.equal( err.message, InvalidOperationInReceiveAndDeleteMode, - "ErrorMessage is different than expected" + "ErrorMessage is different than expected", ); errorWasThrown = true; }); @@ -532,7 +532,7 @@ describe("receive and delete", () => { noSessionTestClientType + ": Renew message lock throws error", async function (): Promise { await testRenewLock(noSessionTestClientType); - } + }, ); }); }); diff --git a/sdk/servicebus/service-bus/test/internal/renewLock.spec.ts b/sdk/servicebus/service-bus/test/internal/renewLock.spec.ts index caff0ab8fa0b..756201bef09b 100644 --- a/sdk/servicebus/service-bus/test/internal/renewLock.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/renewLock.spec.ts @@ -41,7 +41,7 @@ describe("Message Lock Renewal", () => { autoGeneratedEntity = await serviceBusClient.test.createTestEntities(testClientType); sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(autoGeneratedEntity.queue ?? autoGeneratedEntity.topic!) + serviceBusClient.createSender(autoGeneratedEntity.queue ?? autoGeneratedEntity.topic!), ); }); @@ -53,21 +53,21 @@ describe("Message Lock Renewal", () => { testClientType + ": Batch Receiver: renewLock() resets lock duration each time.", async function (): Promise { await testBatchReceiverManualLockRenewalHappyCase(); - } + }, ); it( testClientType + ": Batch Receiver: complete() after lock expiry with throws error", async function (): Promise { await testBatchReceiverManualLockRenewalErrorOnLockExpiry(); - } + }, ); it( testClientType + ": Streaming Receiver: renewLock() resets lock duration each time.", async function (): Promise { await testStreamingReceiverManualLockRenewalHappyCase(); - } + }, ); it(testClientType + ": cannot renew lock on peeked message", async function (): Promise { @@ -84,10 +84,10 @@ describe("Message Lock Renewal", () => { return peekedMsg !== undefined; }, 100, - 5000 + 5000, ), true, - "Unable to peek messages in 5000 milliseconds" + "Unable to peek messages in 5000 milliseconds", ); try { await receiver.renewMessageLock(peekedMsg!); @@ -173,7 +173,7 @@ describe("Message Lock Renewal", () => { // Compute expected initial lock expiry time const expectedLockExpiryTimeUtc = new Date(); expectedLockExpiryTimeUtc.setSeconds( - expectedLockExpiryTimeUtc.getSeconds() + lockDurationInMilliseconds / 1000 + expectedLockExpiryTimeUtc.getSeconds() + lockDurationInMilliseconds / 1000, ); should.equal(Array.isArray(msgs), true, "`ReceivedMessages` is not an array"); @@ -185,7 +185,7 @@ describe("Message Lock Renewal", () => { assertTimestampsAreApproximatelyEqual( msgs[0].lockedUntilUtc, expectedLockExpiryTimeUtc, - "Initial" + "Initial", ); await delay(5000); @@ -200,7 +200,7 @@ describe("Message Lock Renewal", () => { assertTimestampsAreApproximatelyEqual( msgs[0].lockedUntilUtc, expectedLockExpiryTimeUtc, - "After renewlock()" + "After renewlock()", ); await receiver.completeMessage(msgs[0]); @@ -260,25 +260,25 @@ describe("Message Lock Renewal", () => { should.equal( brokeredMessage.body, testMessage.body, - "MessageBody is different than expected" + "MessageBody is different than expected", ); should.equal( brokeredMessage.messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); // Compute expected initial lock expiry time const expectedLockExpiryTimeUtc = new Date(); expectedLockExpiryTimeUtc.setSeconds( - expectedLockExpiryTimeUtc.getSeconds() + lockDurationInMilliseconds / 1000 + expectedLockExpiryTimeUtc.getSeconds() + lockDurationInMilliseconds / 1000, ); // Verify initial expiry time on message assertTimestampsAreApproximatelyEqual( brokeredMessage.lockedUntilUtc, expectedLockExpiryTimeUtc, - "Initial" + "Initial", ); await delay(5000); @@ -291,7 +291,7 @@ describe("Message Lock Renewal", () => { assertTimestampsAreApproximatelyEqual( brokeredMessage.lockedUntilUtc, expectedLockExpiryTimeUtc, - "After renewlock" + "After renewlock", ); await receiver.completeMessage(brokeredMessage); @@ -302,7 +302,7 @@ describe("Message Lock Renewal", () => { { processMessage, processError }, { autoCompleteMessages: false, - } + }, ); await delay(10000); await receiver.close(); @@ -322,7 +322,7 @@ describe("Message Lock Renewal", () => { async function testAutoLockRenewalConfigBehavior( type: "subscribe" | "receive" | "iterator", - options: AutoLockRenewalTestOptions + options: AutoLockRenewalTestOptions, ): Promise { const expectedMessage = TestMessage.getSample(`${type} ${Date.now().toString()}`); await sender.sendMessages(expectedMessage); @@ -337,12 +337,12 @@ describe("Message Lock Renewal", () => { should.equal( actualMessage.body, expectedMessage.body, - "MessageBody is different than expected" + "MessageBody is different than expected", ); should.equal( actualMessage.messageId, expectedMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); // Sleeping... @@ -363,9 +363,8 @@ describe("Message Lock Renewal", () => { } } finally { try { - const purgingReceiver = await serviceBusClient.test.createReceiveAndDeleteReceiver( - autoGeneratedEntity - ); + const purgingReceiver = + await serviceBusClient.test.createReceiveAndDeleteReceiver(autoGeneratedEntity); await purgingReceiver.receiveMessages(10, { maxWaitTimeInMs: 1000 }); } catch (err: any) { // ignore these errors @@ -375,7 +374,7 @@ describe("Message Lock Renewal", () => { async function receiveSingleMessageUsingSpecificReceiveMethod( receiver: ServiceBusReceiver, - type: "subscribe" | "receive" | "iterator" + type: "subscribe" | "receive" | "iterator", ): Promise { switch (type) { case "subscribe": { @@ -387,7 +386,7 @@ describe("Message Lock Renewal", () => { }, { autoCompleteMessages: false, - } + }, ); }); } @@ -410,13 +409,13 @@ describe("Message Lock Renewal", () => { function assertTimestampsAreApproximatelyEqual( actualTimeInUTC: Date | undefined, expectedTimeInUTC: Date, - label: string + label: string, ): void { if (actualTimeInUTC) { should.equal( Math.pow((actualTimeInUTC.valueOf() - expectedTimeInUTC.valueOf()) / 1000, 2) < 9, // Within +/- 3 seconds true, - `${label}: Actual time ${actualTimeInUTC} must be approximately equal to ${expectedTimeInUTC}` + `${label}: Actual time ${actualTimeInUTC} must be approximately equal to ${expectedTimeInUTC}`, ); } } diff --git a/sdk/servicebus/service-bus/test/internal/retries.spec.ts b/sdk/servicebus/service-bus/test/internal/retries.spec.ts index 483d03f43846..0aed6f0a6fa4 100644 --- a/sdk/servicebus/service-bus/test/internal/retries.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/retries.spec.ts @@ -46,7 +46,7 @@ describe("Retries - ManagementClient", () => { const entityNames = await serviceBusClient.test.createTestEntities(entityType); sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!) + serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!), ); receiver = await serviceBusClient.test.createPeekLockReceiver(entityNames); } @@ -62,10 +62,10 @@ describe("Retries - ManagementClient", () => { throw new MessagingError("Hello there, I'm an error"); }; const senderMgmtClient = serviceBusClient["_connectionContext"].getManagementClient( - sender.entityPath + sender.entityPath, ); const receiverMgmtClient = serviceBusClient["_connectionContext"].getManagementClient( - receiver.entityPath + receiver.entityPath, ); senderMgmtClient["_makeManagementRequest"] = fakeFunction; @@ -83,7 +83,7 @@ describe("Retries - ManagementClient", () => { should.equal( numberOfTimesManagementClientInvoked, defaultMaxRetries + 1, - "Unexpected number of retries" + "Unexpected number of retries", ); } should.equal(errorThrown, true, "Error was not thrown"); @@ -215,7 +215,7 @@ describe("Retries - MessageSender", () => { const entityNames = await serviceBusClient.test.createTestEntities(entityType); sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!) + serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!), ); } @@ -355,7 +355,7 @@ describe("Retries - Receive methods", () => { receiveMode: "peekLock", skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); batchingReceiver.isOpen = () => true; batchingReceiver.receive = fakeFunction; diff --git a/sdk/servicebus/service-bus/test/internal/sendBatch.spec.ts b/sdk/servicebus/service-bus/test/internal/sendBatch.spec.ts index d6d5ff5e333c..c03660cc222c 100644 --- a/sdk/servicebus/service-bus/test/internal/sendBatch.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/sendBatch.spec.ts @@ -44,7 +44,7 @@ describe("Send Batch", () => { entityNames = await serviceBusClient.test.createTestEntities(entityType); sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!) + serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!), ); } @@ -71,7 +71,7 @@ describe("Send Batch", () => { async function testSendBatch( // Max batch size - maxSizeInBytes?: number + maxSizeInBytes?: number, ): Promise { // Prepare messages to send const messagesToSend = prepareMessages(); @@ -109,7 +109,7 @@ describe("Send Batch", () => { async function testSendBatch( // Max batch size - maxSizeInBytes?: number + maxSizeInBytes?: number, ): Promise { // Prepare messages to send const sentMessages: ServiceBusMessage[] = []; @@ -189,7 +189,7 @@ describe("Send Batch", () => { async function testSendBatch( // Max batch size - maxSizeInBytes?: number + maxSizeInBytes?: number, ): Promise { // Prepare messages to send const messagesToSend = prepareMessages(); @@ -298,7 +298,7 @@ describe("Send Batch", () => { async function testSendBatch( useSessions: boolean, // Max batch size - maxSizeInBytes?: number + maxSizeInBytes?: number, ): Promise { // Prepare messages to send const messagesToSend = prepareMessages(useSessions); @@ -361,7 +361,7 @@ describe("Send Batch", () => { async function testSendBatch( // Max batch size - maxSizeInBytes?: number + maxSizeInBytes?: number, ): Promise { // Prepare messages to send const messagesToSend = prepareMessages(entityNames.usesSessions); @@ -370,22 +370,22 @@ describe("Send Batch", () => { should.equal( batchMessage.tryAddMessage(messagesToSend[0]), true, - "tryAdd should not have failed for the first message" + "tryAdd should not have failed for the first message", ); should.equal( batchMessage.tryAddMessage(messagesToSend[1]), false, - "tryAdd should have failed for the second message" + "tryAdd should have failed for the second message", ); should.equal( batchMessage.tryAddMessage(messagesToSend[2]), false, - "tryAdd should have failed for the third message" + "tryAdd should have failed for the third message", ); should.equal( batchMessage.tryAddMessage(messagesToSend[3]), false, - "tryAdd should have failed for the fourth message" + "tryAdd should have failed for the fourth message", ); await sender.sendMessages(batchMessage); // receive all the messages in receive and delete mode @@ -418,14 +418,14 @@ describe("Send Batch", () => { should.equal( error.message, `Max message size (${maxSizeInBytes} bytes) is greater than maximum message size (${maxSize} bytes) on the AMQP sender link.`, - "Unexpected error message when tried to create a batch of size > maximum message size." + "Unexpected error message when tried to create a batch of size > maximum message size.", ); errorIsThrown = true; } should.equal( errorIsThrown, true, - "Error is not thrown when tried to create a batch of size > maximum message size." + "Error is not thrown when tried to create a batch of size > maximum message size.", ); } @@ -449,13 +449,13 @@ describe("Send Batch", () => { // this isn't a documented option for send(batch) but we do pass it through to the underlying // createBatch call. maxSizeInBytes: 1, - } as OperationOptions + } as OperationOptions, ); should.fail("Should have thrown - the batch is too big"); } catch (err: any) { should.equal( "Messages were too big to fit in a single batch. Remove some messages and try again or create your own batch using createBatch(), which gives more fine-grained control.", - err.message + err.message, ); should.equal(err.code, "MessageSizeExceeded"); should.equal(err.name, "ServiceBusError"); @@ -516,7 +516,7 @@ describe("Send Batch", () => { undefinedProperty: null, // NOTE, undefined just gets squashed to null, canary: "hello", }, - } + }, ); }); }); @@ -610,7 +610,7 @@ describe("Premium namespaces - Sending", () => { : (await atomClient.getSubscriptionRuntimeProperties(topicName!, subscriptionName!)) .totalMessageCount, 1, - `Unexpected number of messages are present in the entity.` + `Unexpected number of messages are present in the entity.`, ); } diff --git a/sdk/servicebus/service-bus/test/internal/serviceBusClient.spec.ts b/sdk/servicebus/service-bus/test/internal/serviceBusClient.spec.ts index 3d4054719884..e789fc4607d1 100644 --- a/sdk/servicebus/service-bus/test/internal/serviceBusClient.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/serviceBusClient.spec.ts @@ -41,13 +41,13 @@ describe("ServiceBusClient live tests", () => { describe("Create ServiceBusClient", function (): void { it("hostname gets populated from the connection string", function (): void { const sbClient = new ServiceBusClient( - "Endpoint=sb://a;SharedAccessKeyName=b;SharedAccessKey=c;EntityPath=d" + "Endpoint=sb://a;SharedAccessKeyName=b;SharedAccessKey=c;EntityPath=d", ); sbClient.should.be.an.instanceof(ServiceBusClient); should.equal( sbClient.fullyQualifiedNamespace, "a", - "Name of the namespace is different than expected" + "Name of the namespace is different than expected", ); }); }); @@ -61,7 +61,7 @@ describe("ServiceBusClient live tests", () => { // Create a sb client, sender, receiver with relaxed endpoint const sbClientWithRelaxedEndPoint = new ServiceBusClient( - getEnvVars().SERVICEBUS_CONNECTION_STRING.replace("sb://", "CheeseBurger://") + getEnvVars().SERVICEBUS_CONNECTION_STRING.replace("sb://", "CheeseBurger://"), ); const sender = sbClientWithRelaxedEndPoint.createSender(entities.queue || entities.topic!); const receiver = entities.queue @@ -88,13 +88,13 @@ describe("ServiceBusClient live tests", () => { should.equal( msgs[0].messageId, testMessages.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal(msgs[0].deliveryCount, 0, "DeliveryCount is different than expected"); should.equal( typeof msgs[0].applicationProperties!["date1"], "number", - "expect date1 to be an epoch value" + "expect date1 to be an epoch value", ); await receiver.completeMessage(msgs[0]); @@ -119,7 +119,7 @@ describe("ServiceBusClient live tests", () => { // Create a sb client, sender, receiver with relaxed endpoint const sbClientWithRelaxedEndPoint = new ServiceBusClient( - getEnvVars().SERVICEBUS_CONNECTION_STRING.replace("sb://", "CheeseBurger://") + getEnvVars().SERVICEBUS_CONNECTION_STRING.replace("sb://", "CheeseBurger://"), ); const sender = sbClientWithRelaxedEndPoint.createSender(entities.queue || entities.topic!); const receiveOptions = { skipConvertingDate: true }; @@ -128,7 +128,7 @@ describe("ServiceBusClient live tests", () => { : sbClientWithRelaxedEndPoint.createReceiver( entities.topic!, entities.subscription!, - receiveOptions + receiveOptions, ); try { @@ -149,7 +149,7 @@ describe("ServiceBusClient live tests", () => { should.equal( isObjectWithProperties(msgs[0].applicationProperties!["date1"], ["getTime"]), true, - "expect date1 to be an instance of Date" + "expect date1 to be an instance of Date", ); await receiver.completeMessage(msgs[0]); @@ -161,7 +161,7 @@ describe("ServiceBusClient live tests", () => { await receiver.close(); await sbClientWithRelaxedEndPoint.close(); } - } + }, ); it.skip( @@ -174,7 +174,7 @@ describe("ServiceBusClient live tests", () => { // Create a sb client, sender, receiver with relaxed endpoint const sbClientWithRelaxedEndPoint = new ServiceBusClient( - getEnvVars().SERVICEBUS_CONNECTION_STRING.replace("sb://", "CheeseBurger://") + getEnvVars().SERVICEBUS_CONNECTION_STRING.replace("sb://", "CheeseBurger://"), ); const sender = sbClientWithRelaxedEndPoint.createSender(entities.queue || entities.topic!); const receiver = entities.queue @@ -195,10 +195,10 @@ describe("ServiceBusClient live tests", () => { should.not.exist(peekedMsgs[0].body); should.exist( peekedMsgs[0]._rawAmqpMessage.deliveryAnnotations, - "expecting deliveryAnnotations" + "expecting deliveryAnnotations", ); const omittedSize = Number( - peekedMsgs[0]._rawAmqpMessage.deliveryAnnotations!["omitted-message-body-size"] + peekedMsgs[0]._rawAmqpMessage.deliveryAnnotations!["omitted-message-body-size"], ); should.equal(omittedSize > 0, true); @@ -210,11 +210,11 @@ describe("ServiceBusClient live tests", () => { should.exist(peekedMsgs[0].body); should.exist( peekedMsgs[0]._rawAmqpMessage.deliveryAnnotations, - "expecting deliveryAnnotations" + "expecting deliveryAnnotations", ); should.not.exist( peekedMsgs[0]._rawAmqpMessage.deliveryAnnotations!["omitted-message-body-size"], - "Not expecting omitted-message-body-size" + "Not expecting omitted-message-body-size", ); peekedMsgs = await receiver.peekMessages(2, { fromSequenceNumber: Long.ZERO }); @@ -222,11 +222,11 @@ describe("ServiceBusClient live tests", () => { should.exist(peekedMsgs[0].body); should.exist( peekedMsgs[0]._rawAmqpMessage.deliveryAnnotations, - "expecting deliveryAnnotations" + "expecting deliveryAnnotations", ); should.not.exist( peekedMsgs[0]._rawAmqpMessage.deliveryAnnotations!["omitted-message-body-size"], - "Not expecting omitted-message-body-size" + "Not expecting omitted-message-body-size", ); await receiver.receiveMessages(2); @@ -238,7 +238,7 @@ describe("ServiceBusClient live tests", () => { await receiver.close(); await sbClientWithRelaxedEndPoint.close(); } - } + }, ); it( @@ -251,7 +251,7 @@ describe("ServiceBusClient live tests", () => { // Create a sb client, sender, receiver with relaxed endpoint const sbClientWithRelaxedEndPoint = new ServiceBusClient( - getEnvVars().SERVICEBUS_CONNECTION_STRING.replace("sb://", "CheeseBurger://") + getEnvVars().SERVICEBUS_CONNECTION_STRING.replace("sb://", "CheeseBurger://"), ); const sender = sbClientWithRelaxedEndPoint.createSender(entities.queue || entities.topic!); const receiverOptions: ServiceBusReceiverOptions = { @@ -263,7 +263,7 @@ describe("ServiceBusClient live tests", () => { : sbClientWithRelaxedEndPoint.createReceiver( entities.topic!, entities.subscription!, - receiverOptions + receiverOptions, ); try { // Send and receive messages @@ -299,7 +299,7 @@ describe("ServiceBusClient live tests", () => { await receiver.close(); await sbClientWithRelaxedEndPoint.close(); } - } + }, ); }); @@ -308,7 +308,7 @@ describe("ServiceBusClient live tests", () => { let errorWasThrown: boolean; beforeEach(() => { sbClient = new ServiceBusClient( - "Endpoint=sb://a;SharedAccessKeyName=b;SharedAccessKey=c;EntityPath=some-queue" + "Endpoint=sb://a;SharedAccessKeyName=b;SharedAccessKey=c;EntityPath=some-queue", ); errorWasThrown = false; }); @@ -324,13 +324,13 @@ describe("ServiceBusClient live tests", () => { should.equal( err.code === "GeneralError", true, - `Error code ${err.code} is different than expected` + `Error code ${err.code} is different than expected`, ); } else { should.equal( err.code, "ServiceCommunicationProblem", - "Error code is different than expected" + "Error code is different than expected", ); } @@ -377,7 +377,7 @@ describe("ServiceBusClient live tests", () => { should.equal( await checkWithTimeout(() => errorWasThrown === true, 10, 3000), true, - "Error thrown flag must be true" + "Error thrown flag must be true", ); } finally { await receiver.close(); @@ -405,10 +405,10 @@ describe("ServiceBusClient live tests", () => { if (entityPath) { should.equal( err.message.includes( - `The messaging entity 'sb://${sbClient.fullyQualifiedNamespace}/${entityPath}' could not be found.` + `The messaging entity 'sb://${sbClient.fullyQualifiedNamespace}/${entityPath}' could not be found.`, ), true, - `Expecting error message to contain "The messaging entity 'sb://${sbClient.fullyQualifiedNamespace}/${entityPath}' could not be found." but got ${err.message}` + `Expecting error message to contain "The messaging entity 'sb://${sbClient.fullyQualifiedNamespace}/${entityPath}' could not be found." but got ${err.message}`, ); } errorWasThrown = true; @@ -445,7 +445,7 @@ describe("ServiceBusClient live tests", () => { should.equal( new RegExp(entityPattern).test(err.message), true, - `Expect error message to contain pattern "${entityPattern}" but got ${err.message}` + `Expect error message to contain pattern "${entityPattern}" but got ${err.message}`, ); }); @@ -482,7 +482,7 @@ describe("ServiceBusClient live tests", () => { should.equal( await checkWithTimeout(() => errorWasThrown === true, 10, 5000), true, - "Error thrown flag must be true" + "Error thrown flag must be true", ); await receiver.close(); }); @@ -520,10 +520,10 @@ describe("ServiceBusClient live tests", () => { await checkWithTimeout( () => errorWasThrown === true, 1000, - CoreAmqpConstants.defaultOperationTimeoutInMs * 2 // arbitrary, just don't want it to be too short. + CoreAmqpConstants.defaultOperationTimeoutInMs * 2, // arbitrary, just don't want it to be too short. ), true, - "Error thrown flag must be true" + "Error thrown flag must be true", ); await receiver.close(); @@ -564,7 +564,7 @@ describe("ServiceBusClient live tests", () => { should.equal( new RegExp(entityPattern).test(args.error.message), true, - `Expect error message to contain pattern "${entityPattern}" but got ${args.error.message}` + `Expect error message to contain pattern "${entityPattern}" but got ${args.error.message}`, ); }, }); @@ -573,10 +573,10 @@ describe("ServiceBusClient live tests", () => { await checkWithTimeout( () => errorWasThrown === true, 1000, - CoreAmqpConstants.defaultOperationTimeoutInMs * 2 // arbitrary, just don't want it to be too short. + CoreAmqpConstants.defaultOperationTimeoutInMs * 2, // arbitrary, just don't want it to be too short. ), true, - "Error thrown flag must be true" + "Error thrown flag must be true", ); await receiver.close(); @@ -588,7 +588,7 @@ describe("ServiceBusClient live tests", () => { const env = getEnvVars(); const serviceBusEndpoint = (env.SERVICEBUS_CONNECTION_STRING.match( - "Endpoint=sb://((.*).servicebus.(windows.net|usgovcloudapi.net|chinacloudapi.cn))" + "Endpoint=sb://((.*).servicebus.(windows.net|usgovcloudapi.net|chinacloudapi.cn))", ) || "")[1]; /** @@ -597,19 +597,19 @@ describe("ServiceBusClient live tests", () => { function getDefaultTokenCredential(): EnvironmentCredential { should.exist( env[EnvVarNames.AZURE_CLIENT_ID], - "define AZURE_CLIENT_ID in your environment before running integration tests." + "define AZURE_CLIENT_ID in your environment before running integration tests.", ); should.exist( env[EnvVarNames.AZURE_TENANT_ID], - "define AZURE_TENANT_ID in your environment before running integration tests." + "define AZURE_TENANT_ID in your environment before running integration tests.", ); should.exist( env[EnvVarNames.AZURE_CLIENT_SECRET], - "define AZURE_CLIENT_SECRET in your environment before running integration tests." + "define AZURE_CLIENT_SECRET in your environment before running integration tests.", ); should.exist( env[EnvVarNames.SERVICEBUS_CONNECTION_STRING], - "define SERVICEBUS_CONNECTION_STRING in your environment before running integration tests." + "define SERVICEBUS_CONNECTION_STRING in your environment before running integration tests.", ); return new EnvironmentCredential(); } @@ -623,7 +623,7 @@ describe("ServiceBusClient live tests", () => { err.message, "Connection string malformed: each part of the connection string must have an `=` assignment.", // "'credentials' is a required parameter and must be an implementation of TokenCredential when using host based constructor overload.", - "ErrorMessage is different than expected" + "ErrorMessage is different than expected", ); } should.equal(errorWasThrown, true, "Error thrown flag must be true"); @@ -638,7 +638,7 @@ describe("ServiceBusClient live tests", () => { err.message, "Connection string malformed: each part of the connection string must have an `=` assignment.", // "'credentials' is a required parameter and must be an implementation of TokenCredential when using host based constructor overload.", - "ErrorMessage is different than expected" + "ErrorMessage is different than expected", ); } should.equal(errorWasThrown, true, "Error thrown flag must be true"); @@ -653,7 +653,7 @@ describe("ServiceBusClient live tests", () => { should.equal( error.message, "`host` parameter is not a string", - "ErrorMessage is different than expected" + "ErrorMessage is different than expected", ); } should.equal(errorWasThrown, true, "Error thrown flag must be true"); @@ -686,7 +686,7 @@ describe("ServiceBusClient live tests", () => { } finally { await sbClient.close(); } - } + }, ); } }); @@ -705,13 +705,13 @@ describe("ServiceBusClient live tests", () => { async function beforeEachTest( entityType: TestClientType, - entityToClose: string + entityToClose: string, ): Promise { sbClient = createServiceBusClientForTests(); entityName = await sbClient.test.createTestEntities(entityType); sender = sbClient.test.addToCleanup( - sbClient.createSender(entityName.queue ?? entityName.topic!) + sbClient.createSender(entityName.queue ?? entityName.topic!), ); receiver = await sbClient.test.createPeekLockReceiver(entityName); @@ -778,7 +778,7 @@ describe("ServiceBusClient live tests", () => { const expectedErrorMsg = getReceiverClosedErrorMsg( receiver.entityPath, - receivedMessage.sessionId + receivedMessage.sessionId, ); should.equal(caughtError && caughtError.message, expectedErrorMsg); } @@ -803,7 +803,7 @@ describe("ServiceBusClient live tests", () => { should.equal( errorCreateBatch, expectedErrorMsg, - "Expected error not thrown for createBatch()" + "Expected error not thrown for createBatch()", ); let errorSendBatch: string = ""; @@ -819,7 +819,7 @@ describe("ServiceBusClient live tests", () => { should.equal( errorScheduleMsgs, expectedErrorMsg, - "Expected error not thrown for scheduleMessages()" + "Expected error not thrown for scheduleMessages()", ); let errorCancelMsgs: string = ""; @@ -829,7 +829,7 @@ describe("ServiceBusClient live tests", () => { should.equal( errorCancelMsgs, expectedErrorMsg, - "Expected error not thrown for cancelScheduledMessages()" + "Expected error not thrown for cancelScheduledMessages()", ); } @@ -846,7 +846,7 @@ describe("ServiceBusClient live tests", () => { should.equal( errorNewSender, expectedErrorMsg, - "Expected error not thrown for createSender()" + "Expected error not thrown for createSender()", ); } @@ -863,7 +863,7 @@ describe("ServiceBusClient live tests", () => { should.equal( errorReceiveBatch, expectedErrorMsg, - "Expected error not thrown for receiveMessages()" + "Expected error not thrown for receiveMessages()", ); let errorReceiveStream: string = ""; @@ -882,7 +882,7 @@ describe("ServiceBusClient live tests", () => { should.equal( errorReceiveStream, expectedErrorMsg, - "Expected error not thrown for registerMessageHandler()" + "Expected error not thrown for registerMessageHandler()", ); let errorDeferredMsgs: string = ""; @@ -892,7 +892,7 @@ describe("ServiceBusClient live tests", () => { should.equal( errorDeferredMsgs, expectedErrorMsg, - "Expected error not thrown for receiveDeferredMessages()" + "Expected error not thrown for receiveDeferredMessages()", ); let errorPeek: string = ""; @@ -902,7 +902,7 @@ describe("ServiceBusClient live tests", () => { should.equal( errorPeek, expectedErrorMsg, - "Expected error not thrown for peekMessages() from receiver" + "Expected error not thrown for peekMessages() from receiver", ); } @@ -919,7 +919,7 @@ describe("ServiceBusClient live tests", () => { should.equal( errorNewReceiver, expectedErrorMsg, - "Expected error not thrown for createReceiver()" + "Expected error not thrown for createReceiver()", ); } @@ -937,7 +937,7 @@ describe("ServiceBusClient live tests", () => { should.equal( errorPeek, expectedErrorMsg, - "Expected error not thrown for peek() from sessionReceiver" + "Expected error not thrown for peek() from sessionReceiver", ); let errorPeekBySequence: string = ""; @@ -947,7 +947,7 @@ describe("ServiceBusClient live tests", () => { should.equal( errorPeekBySequence, expectedErrorMsg, - "Expected error not thrown for peekBySequenceNumber() from sessionReceiver" + "Expected error not thrown for peekBySequenceNumber() from sessionReceiver", ); let errorGetState: string = ""; @@ -957,7 +957,7 @@ describe("ServiceBusClient live tests", () => { should.equal( errorGetState, expectedErrorMsg, - "Expected error not thrown for getSessionState()" + "Expected error not thrown for getSessionState()", ); let errorSetState: string = ""; @@ -967,7 +967,7 @@ describe("ServiceBusClient live tests", () => { should.equal( errorSetState, expectedErrorMsg, - "Expected error not thrown for setSessionState()" + "Expected error not thrown for setSessionState()", ); } @@ -984,7 +984,7 @@ describe("ServiceBusClient live tests", () => { await testCreateSender(expectedErrorMsg); await testReceiver(expectedErrorMsg); await testCreateReceiver(expectedErrorMsg); - } + }, ); it( @@ -996,7 +996,7 @@ describe("ServiceBusClient live tests", () => { await testCreateSender(expectedErrorMsg); await testSessionReceiver(expectedErrorMsg); await testCreateReceiver(expectedErrorMsg); - } + }, ); }); @@ -1011,7 +1011,7 @@ describe("ServiceBusClient live tests", () => { await testReceiver(getReceiverClosedErrorMsg(receiver.entityPath)); await testAllDispositions(); - } + }, ); it( @@ -1022,7 +1022,7 @@ describe("ServiceBusClient live tests", () => { await testReceiver(getReceiverClosedErrorMsg(receiver.entityPath, TestMessage.sessionId)); await testAllDispositions(); - } + }, ); }); @@ -1034,7 +1034,7 @@ describe("ServiceBusClient live tests", () => { async function (): Promise { await beforeEachTest(noSessionTestClientType, entityToClose); await testSender(getSenderClosedErrorMsg(sender.entityPath)); - } + }, ); }); }); @@ -1059,7 +1059,7 @@ describe("ServiceBusClient live tests", () => { should.equal( sender.entityPath, dummyQueueOrTopicName, - "Entity path on the sender did not match!" + "Entity path on the sender did not match!", ); }); @@ -1069,7 +1069,7 @@ describe("ServiceBusClient live tests", () => { should.equal( receiver.entityPath, dummyQueueName, - "Entity path on the receiver for queue did not match!" + "Entity path on the receiver for queue did not match!", ); }); @@ -1079,7 +1079,7 @@ describe("ServiceBusClient live tests", () => { should.equal( receiver.entityPath, `${dummyQueueName}/$DeadLetterQueue`, - "Entity path on the receiver for queue did not match!" + "Entity path on the receiver for queue did not match!", ); }); @@ -1090,7 +1090,7 @@ describe("ServiceBusClient live tests", () => { should.equal( receiver.entityPath, `${dummyTopicName}/Subscriptions/${dummySubscriptionName}`, - "Entity path on the receiver for subscription did not match!" + "Entity path on the receiver for subscription did not match!", ); }); @@ -1103,7 +1103,7 @@ describe("ServiceBusClient live tests", () => { should.equal( receiver.entityPath, `${dummyTopicName}/Subscriptions/${dummySubscriptionName}/$DeadLetterQueue`, - "Entity path on the receiver for subscription did not match!" + "Entity path on the receiver for subscription did not match!", ); }); @@ -1117,7 +1117,7 @@ describe("ServiceBusClient live tests", () => { should.equal( receiver.entityPath, expectedEntityPath, - "Entity path on the session receiver for did not match!" + "Entity path on the session receiver for did not match!", ); }); }); diff --git a/sdk/servicebus/service-bus/test/internal/smoketest.spec.ts b/sdk/servicebus/service-bus/test/internal/smoketest.spec.ts index 721524f56291..997281bca35e 100644 --- a/sdk/servicebus/service-bus/test/internal/smoketest.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/smoketest.spec.ts @@ -40,7 +40,7 @@ describe("Smoke tests", () => { before(async () => { const { queue } = await serviceBusClient.test.createTestEntities( - TestClientType.UnpartitionedQueue + TestClientType.UnpartitionedQueue, ); queueName = queue!; }); @@ -55,7 +55,7 @@ describe("Smoke tests", () => { it("Queue, peek/lock", async () => { const receiver = serviceBusClient.test.addToCleanup( - serviceBusClient.createReceiver(queueName) + serviceBusClient.createReceiver(queueName), ); await sendSampleMessage(sender, "Queue, peek/lock", undefined, "single"); @@ -78,7 +78,7 @@ describe("Smoke tests", () => { it("Queue, peek/lock, receiveBatch", async () => { const receiver = serviceBusClient.test.addToCleanup( - serviceBusClient.createReceiver(queueName, { receiveMode: "receiveAndDelete" }) + serviceBusClient.createReceiver(queueName, { receiveMode: "receiveAndDelete" }), ); await sendSampleMessage(sender, "Queue, peek/lock, receiveBatch", undefined, "array"); @@ -95,7 +95,7 @@ describe("Smoke tests", () => { it("Queue, peek/lock, iterate messages", async () => { const receiver = serviceBusClient.test.addToCleanup( - serviceBusClient.createReceiver(queueName) + serviceBusClient.createReceiver(queueName), ); await sendSampleMessage(sender, "Queue, peek/lock, iterate messages", undefined, "batch"); @@ -128,7 +128,7 @@ describe("Smoke tests", () => { it("Queue, receive and delete", async () => { const receiver = serviceBusClient.test.addToCleanup( - serviceBusClient.createReceiver(queueName, { receiveMode: "receiveAndDelete" }) + serviceBusClient.createReceiver(queueName, { receiveMode: "receiveAndDelete" }), ); await sendSampleMessage(sender, "Queue, receiveAndDelete"); @@ -150,7 +150,7 @@ describe("Smoke tests", () => { it("Queue, receive and delete, iterate messages", async () => { const receiver = serviceBusClient.test.addToCleanup( - serviceBusClient.createReceiver(queueName, { receiveMode: "receiveAndDelete" }) + serviceBusClient.createReceiver(queueName, { receiveMode: "receiveAndDelete" }), ); await sendSampleMessage(sender, "Queue, receive and delete, iterate messages"); @@ -179,7 +179,7 @@ describe("Smoke tests", () => { "Queue, receive and delete, iterate messages", receivedBodies, errors, - receiver + receiver, ); }); }); @@ -191,7 +191,7 @@ describe("Smoke tests", () => { before(async () => { const entity = await serviceBusClient.test.createTestEntities( - TestClientType.UnpartitionedSubscription + TestClientType.UnpartitionedSubscription, ); topic = entity.topic!; @@ -208,7 +208,7 @@ describe("Smoke tests", () => { it("Subscription, peek/lock", async () => { const receiver = serviceBusClient.test.addToCleanup( - serviceBusClient.createReceiver(topic, subscription) + serviceBusClient.createReceiver(topic, subscription), ); await sendSampleMessage(sender, "Subscription, peek/lock"); @@ -233,7 +233,7 @@ describe("Smoke tests", () => { it("Subscription, receive and delete", async () => { const receiver = serviceBusClient.test.addToCleanup( - serviceBusClient.createReceiver(topic, subscription, { receiveMode: "receiveAndDelete" }) + serviceBusClient.createReceiver(topic, subscription, { receiveMode: "receiveAndDelete" }), ); await sendSampleMessage(sender, "Subscription, receive and delete"); @@ -257,7 +257,7 @@ describe("Smoke tests", () => { it("Subscription, peek/lock, iterate messages", async () => { const receiver = serviceBusClient.test.addToCleanup( - serviceBusClient.createReceiver(topic, subscription) + serviceBusClient.createReceiver(topic, subscription), ); await sendSampleMessage(sender, "Subscription, peek/lock, iterate messages"); @@ -289,13 +289,13 @@ describe("Smoke tests", () => { "Subscription, peek/lock, iterate messages", receivedBodies, errors, - receiver + receiver, ); }); it("Subscription, receive and delete, iterate messages", async () => { const receiver = serviceBusClient.test.addToCleanup( - serviceBusClient.createReceiver(topic, subscription, { receiveMode: "receiveAndDelete" }) + serviceBusClient.createReceiver(topic, subscription, { receiveMode: "receiveAndDelete" }), ); await sendSampleMessage(sender, "Subscription, receive and delete, iterate messages"); @@ -321,7 +321,7 @@ describe("Smoke tests", () => { "Subscription, receive and delete, iterate messages", receivedBodies, errors, - receiver + receiver, ); }); }); @@ -332,7 +332,7 @@ describe("Smoke tests", () => { before(async () => { const entities = await serviceBusClient.test.createTestEntities( - TestClientType.UnpartitionedQueueWithSessions + TestClientType.UnpartitionedQueueWithSessions, ); queue = entities.queue!; sender = serviceBusClient.test.addToCleanup(serviceBusClient.createSender(queue)); @@ -346,7 +346,7 @@ describe("Smoke tests", () => { await sendSampleMessage(sender, "Queue, next unlocked session, sessions", sessionId); const receiver = serviceBusClient.test.addToCleanup( - await serviceBusClient.acceptNextSession(queue, { receiveMode: "receiveAndDelete" }) + await serviceBusClient.acceptNextSession(queue, { receiveMode: "receiveAndDelete" }), ); // this queue was freshly created so we are the first session (and thus the first session to get picked @@ -369,7 +369,7 @@ describe("Smoke tests", () => { "Queue, next unlocked session, sessions", receivedBodies, errors, - receiver + receiver, ); }); @@ -378,7 +378,7 @@ describe("Smoke tests", () => { const receiver = serviceBusClient.test.addToCleanup( await serviceBusClient.acceptSession(queue, sessionId, { receiveMode: "receiveAndDelete", - }) + }), ); assert.equal(receiver.sessionId, sessionId); @@ -405,7 +405,7 @@ describe("Smoke tests", () => { "Queue, receive and delete, sessions", receivedBodies, errors, - receiver + receiver, ); }); @@ -413,7 +413,7 @@ describe("Smoke tests", () => { const sessionId = Date.now().toString(); const receiver = serviceBusClient.test.addToCleanup( - await serviceBusClient.acceptSession(queue, sessionId) + await serviceBusClient.acceptSession(queue, sessionId), ); await sendSampleMessage(sender, "Queue, peek/lock, sessions", sessionId); @@ -439,7 +439,7 @@ describe("Smoke tests", () => { sender: ServiceBusSender, body: string, sessionId?: string, - method: "single" | "array" | "batch" = "single" + method: "single" | "array" | "batch" = "single", ): Promise { const message: ServiceBusMessage = { body, @@ -485,7 +485,7 @@ async function waitAndValidate( expectedMessage: string, receivedBodies: string[], errors: string[], - receiver: ServiceBusReceiver + receiver: ServiceBusReceiver, ): Promise { const maxChecks = 20; let numChecks = 0; diff --git a/sdk/servicebus/service-bus/test/internal/streamingReceiver.spec.ts b/sdk/servicebus/service-bus/test/internal/streamingReceiver.spec.ts index a90911161c35..c071352611e5 100644 --- a/sdk/servicebus/service-bus/test/internal/streamingReceiver.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/streamingReceiver.spec.ts @@ -62,7 +62,7 @@ describe("Streaming Receiver Tests", () => { receiver = await serviceBusClient.test.createPeekLockReceiver(entityNames); } sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!) + serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!), ); deadLetterReceiver = serviceBusClient.test.createDeadLetterReceiver(entityNames); @@ -92,7 +92,7 @@ describe("Streaming Receiver Tests", () => { should.equal( msg.messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); return Promise.resolve(); @@ -103,7 +103,7 @@ describe("Streaming Receiver Tests", () => { const msgsCheck = await checkWithTimeout( () => receivedMsgs.length === 1 && - (receivedMsgs[0] as ServiceBusMessageImpl).delivery.remote_settled === true + (receivedMsgs[0] as ServiceBusMessageImpl).delivery.remote_settled === true, ); should.equal( @@ -111,7 +111,7 @@ describe("Streaming Receiver Tests", () => { true, receivedMsgs.length !== 1 ? `Expected 1, received ${receivedMsgs.length} messages` - : "Message didnt get auto-completed in time" + : "Message didnt get auto-completed in time", ); should.equal(unexpectedError, undefined, unexpectedError && unexpectedError.message); @@ -132,13 +132,13 @@ describe("Streaming Receiver Tests", () => { should.equal( msg.messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); return Promise.resolve(); }, processError, }, - { autoCompleteMessages: false } + { autoCompleteMessages: false }, ); const msgsCheck = await checkWithTimeout(() => receivedMsgs.length === 1); @@ -155,7 +155,7 @@ describe("Streaming Receiver Tests", () => { it("can stop and start a subscription", async () => { const entities = await serviceBusClient.test.createTestEntities( - TestClientType.UnpartitionedQueue + TestClientType.UnpartitionedQueue, ); const sender2 = await serviceBusClient.test.createSender(entities); @@ -226,14 +226,14 @@ describe("Streaming Receiver Tests", () => { should.equal( msg.messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await receiver.completeMessage(msg); receivedMsgs.push(msg); }, processError, }, - { autoCompleteMessages: autoComplete } + { autoCompleteMessages: autoComplete }, ); const msgsCheck = await checkWithTimeout(() => receivedMsgs.length === 1); @@ -273,18 +273,18 @@ describe("Streaming Receiver Tests", () => { should.equal( msg.deliveryCount, checkDeliveryCount, - "DeliveryCount is different than expected" + "DeliveryCount is different than expected", ); await receiver.abandonMessage(msg); checkDeliveryCount++; }, processError, }, - { autoCompleteMessages: false } + { autoCompleteMessages: false }, ); const deliveryCountFlag = await checkWithTimeout( - () => checkDeliveryCount === maxDeliveryCount + () => checkDeliveryCount === maxDeliveryCount, ); should.equal(deliveryCountFlag, true, "DeliveryCount is different than expected"); @@ -298,12 +298,12 @@ describe("Streaming Receiver Tests", () => { should.equal( deadLetterMsgs[0].deliveryCount, maxDeliveryCount, - "DeliveryCount is different than expected" + "DeliveryCount is different than expected", ); should.equal( deadLetterMsgs[0].messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await receiver.completeMessage(deadLetterMsgs[0]); @@ -334,13 +334,13 @@ describe("Streaming Receiver Tests", () => { }, processError, }, - { autoCompleteMessages: autoComplete } + { autoCompleteMessages: autoComplete }, ); const sequenceNumCheck = await checkWithTimeout(() => sequenceNum !== 0); should.equal( sequenceNumCheck, true, - "Either the message is not received or observed an unexpected SequenceNumber." + "Either the message is not received or observed an unexpected SequenceNumber.", ); should.equal(unexpectedError, undefined, unexpectedError && unexpectedError.message); @@ -352,12 +352,12 @@ describe("Streaming Receiver Tests", () => { should.equal( deferredMsgs[0].body, testMessage.body, - "MessageBody is different than expected" + "MessageBody is different than expected", ); should.equal( deferredMsgs[0].messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal(deferredMsgs[0].deliveryCount, 1, "DeliveryCount is different than expected"); @@ -397,7 +397,7 @@ describe("Streaming Receiver Tests", () => { }, processError, }, - { autoCompleteMessages: autoComplete } + { autoCompleteMessages: autoComplete }, ); const msgsCheck = await checkWithTimeout(() => receivedMsgs.length === 1); should.equal(msgsCheck, true, `Expected 1, received ${receivedMsgs.length} messages`); @@ -413,7 +413,7 @@ describe("Streaming Receiver Tests", () => { should.equal( deadLetterMsgs[0].messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await receiver.completeMessage(deadLetterMsgs[0]); @@ -458,7 +458,7 @@ describe("Streaming Receiver Tests", () => { should.equal( errorMessage, expectedErrorMessage, - "Unexpected error message for registerMessageHandler" + "Unexpected error message for registerMessageHandler", ); should.equal(unexpectedError, undefined, unexpectedError && unexpectedError.message); @@ -471,7 +471,7 @@ describe("Streaming Receiver Tests", () => { should.equal( errorMessage, expectedErrorMessage, - "Unexpected error message for receiveMessages" + "Unexpected error message for receiveMessages", ); } @@ -509,14 +509,14 @@ describe("Streaming Receiver Tests", () => { const msgsCheck = await checkWithTimeout( () => - receivedMsgs.length === 1 && getDeliveryProperty(receivedMsgs[0]).remote_settled === true + receivedMsgs.length === 1 && getDeliveryProperty(receivedMsgs[0]).remote_settled === true, ); should.equal( msgsCheck, true, receivedMsgs.length !== 1 ? `Expected 1, received ${receivedMsgs.length} messages` - : "Message didnt get auto-completed in time" + : "Message didnt get auto-completed in time", ); should.equal(unexpectedError, undefined, unexpectedError && unexpectedError.message); @@ -525,12 +525,12 @@ describe("Streaming Receiver Tests", () => { should.equal( receivedMsgs[0].body, testMessage.body, - "MessageBody is different than expected" + "MessageBody is different than expected", ); should.equal( receivedMsgs[0].messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await testPeekMsgsLength(receiver, 0); @@ -591,13 +591,13 @@ describe("Streaming Receiver Tests", () => { should.equal( !!(receiver as any)._context.messageReceivers[streamingReceiverName!], true, - "Expected streaming receiver not to be cached." + "Expected streaming receiver not to be cached.", ); should.equal( unexpectedError && unexpectedError.message, errorMessage, - "User error did not surface." + "User error did not surface.", ); should.equal(receivedMsgs.length, 1, "Unexpected number of messages"); } @@ -607,7 +607,7 @@ describe("Streaming Receiver Tests", () => { async function (): Promise { await beforeEachTest(); await testUserError(); - } + }, ); }); @@ -710,13 +710,13 @@ describe("Streaming Receiver Tests", () => { if (receivedMsgs.length === 1) { if ((!maxConcurrentCalls || maxConcurrentCalls === 1) && settledMsgs.length === 0) { throw new Error( - "onMessage for the second message should not have been called before the first message got settled" + "onMessage for the second message should not have been called before the first message got settled", ); } } else { if (maxConcurrentCalls && maxConcurrentCalls > 1 && settledMsgs.length !== 0) { throw new Error( - "onMessage for the second message should have been called before the first message got settled" + "onMessage for the second message should have been called before the first message got settled", ); } } @@ -728,7 +728,7 @@ describe("Streaming Receiver Tests", () => { }, processError, }, - maxConcurrentCalls ? { maxConcurrentCalls } : {} + maxConcurrentCalls ? { maxConcurrentCalls } : {}, ); await checkWithTimeout(() => settledMsgs.length === 2); @@ -780,7 +780,7 @@ describe("Streaming Receiver Tests", () => { }, { autoCompleteMessages: false, - } + }, ); await receiver.close(); @@ -788,14 +788,14 @@ describe("Streaming Receiver Tests", () => { should.equal( receivedMsgs.length, 0, - `Expected 0 messages, but received ${receivedMsgs.length}` + `Expected 0 messages, but received ${receivedMsgs.length}`, ); receiver = await serviceBusClient.test.createReceiveAndDeleteReceiver(entityNames); await verifyMessageCount( totalNumOfMessages, entityNames.queue, entityNames.topic, - entityNames.subscription + entityNames.subscription, ); await drainReceiveAndDeleteReceiver(receiver); await verifyMessageCount(0, entityNames.queue, entityNames.topic, entityNames.subscription); @@ -806,7 +806,7 @@ describe("Streaming Receiver Tests", () => { async function (): Promise { await beforeEachTest(); await testReceiveMessages(); - } + }, ); it( @@ -814,7 +814,7 @@ describe("Streaming Receiver Tests", () => { async function (): Promise { await beforeEachTest("receiveAndDelete"); await testReceiveMessages(); - } + }, ); }); @@ -855,7 +855,7 @@ describe("Streaming Receiver Tests", () => { finalMessage.body.should.equal(".close test - second message, after closing"); await serviceBusClient.test.afterEach(); - } + }, ); }); @@ -876,7 +876,7 @@ describe(testClientType + ": Streaming - disconnects", function (): void { const entityNames = await serviceBusClient.test.createTestEntities(testClientType); receiver = await serviceBusClient.test.createPeekLockReceiver(entityNames); sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!) + serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!), ); } @@ -1006,7 +1006,7 @@ export function createOnDetachedProcessErrorFake(): sinon.SinonSpy & { errors.should.deep.equal( expectedErrors, - "Errors were incorrect (or outside of expected errors)." + "Errors were incorrect (or outside of expected errors).", ); }; @@ -1036,7 +1036,7 @@ export function singleMessagePromise(receiver: ServiceBusReceiver): Promise<{ }, { autoCompleteMessages: false, - } + }, ); }); } diff --git a/sdk/servicebus/service-bus/test/internal/streamingReceiverSessions.spec.ts b/sdk/servicebus/service-bus/test/internal/streamingReceiverSessions.spec.ts index 81404275d52b..c11c2023b610 100644 --- a/sdk/servicebus/service-bus/test/internal/streamingReceiverSessions.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/streamingReceiverSessions.spec.ts @@ -59,12 +59,12 @@ describe("Streaming with sessions", () => { await serviceBusClient.test.afterEach(); } async function beforeEachTest( - receiveMode?: "peekLock" | "receiveAndDelete" + receiveMode?: "peekLock" | "receiveAndDelete", ): Promise { await createReceiverForTests(receiveMode); sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!) + serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!), ); deadLetterReceiver = serviceBusClient.test.createDeadLetterReceiver(entityNames); @@ -76,7 +76,7 @@ describe("Streaming with sessions", () => { async function createReceiverForTests( receiveMode?: "peekLock" | "receiveAndDelete", - sessionId: string = TestMessage.sessionId + sessionId: string = TestMessage.sessionId, ): Promise { receiver = serviceBusClient.test.addToCleanup( receiveMode === "receiveAndDelete" @@ -90,15 +90,15 @@ describe("Streaming with sessions", () => { sessionId, { receiveMode: "receiveAndDelete", - } + }, ) : entityNames.queue - ? await serviceBusClient.acceptSession(entityNames.queue, sessionId) - : await serviceBusClient.acceptSession( - entityNames.topic!, - entityNames.subscription!, - sessionId - ) + ? await serviceBusClient.acceptSession(entityNames.queue, sessionId) + : await serviceBusClient.acceptSession( + entityNames.topic!, + entityNames.subscription!, + sessionId, + ), ); } @@ -113,7 +113,7 @@ describe("Streaming with sessions", () => { const actualReceiver = await serviceBusClient.test.acceptSessionWithPeekLock( entityNames, - TestMessage.sessionId + TestMessage.sessionId, ); const { subscriber, messages } = await singleMessagePromise(actualReceiver); @@ -146,7 +146,7 @@ describe("Streaming with sessions", () => { finalMessage.body.should.equal(".close test - second message, after closing"); await serviceBusClient.test.afterEach(); - } + }, ); describe(testClientType + ": Sessions Streaming - Misc Tests", function (): void { @@ -170,7 +170,7 @@ describe("Streaming with sessions", () => { should.equal( msg.messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); return Promise.resolve(); }, @@ -179,14 +179,14 @@ describe("Streaming with sessions", () => { const msgsCheck = await checkWithTimeout( () => - receivedMsgs.length === 1 && getDeliveryProperty(receivedMsgs[0]).remote_settled === true + receivedMsgs.length === 1 && getDeliveryProperty(receivedMsgs[0]).remote_settled === true, ); should.equal( msgsCheck, true, receivedMsgs.length !== 1 ? `Expected 1, received ${receivedMsgs.length} messages` - : "Message didn't get auto-completed in time" + : "Message didn't get auto-completed in time", ); should.equal(unexpectedError, undefined, unexpectedError && unexpectedError.message); should.equal(receivedMsgs.length, 1, "Unexpected number of messages"); @@ -205,13 +205,13 @@ describe("Streaming with sessions", () => { should.equal( msg.messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); return Promise.resolve(); }, processError, }, - { autoCompleteMessages: false } + { autoCompleteMessages: false }, ); const msgsCheck = await checkWithTimeout(() => receivedMsgs.length === 1); @@ -248,14 +248,14 @@ describe("Streaming with sessions", () => { should.equal( msg.messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await receiver.completeMessage(msg); receivedMsgs.push(msg); }, processError, }, - { autoCompleteMessages: autoComplete } + { autoCompleteMessages: autoComplete }, ); const msgsCheck = await checkWithTimeout(() => receivedMsgs.length === 1); @@ -298,7 +298,7 @@ describe("Streaming with sessions", () => { }, processError, }, - { autoCompleteMessages: autoComplete } + { autoCompleteMessages: autoComplete }, ); await messageAbandonedPromise; @@ -311,7 +311,7 @@ describe("Streaming with sessions", () => { should.equal( receivedMsgs[0].messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal(receivedMsgs[0].deliveryCount, 1, "DeliveryCount is different than expected"); await receiver.completeMessage(receivedMsgs[0] as ServiceBusReceivedMessage); @@ -348,14 +348,14 @@ describe("Streaming with sessions", () => { }, processError, }, - { autoCompleteMessages: autoComplete } + { autoCompleteMessages: autoComplete }, ); const sequenceNumCheck = await checkWithTimeout(() => sequenceNum !== 0); should.equal( sequenceNumCheck, true, - "Either the message is not received or observed an unexpected SequenceNumber." + "Either the message is not received or observed an unexpected SequenceNumber.", ); should.equal(unexpectedError, undefined, unexpectedError && unexpectedError.message); @@ -369,7 +369,7 @@ describe("Streaming with sessions", () => { should.equal( deferredMsg.messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal(deferredMsg.deliveryCount, 1, "DeliveryCount is different than expected"); @@ -407,7 +407,7 @@ describe("Streaming with sessions", () => { }, processError, }, - { autoCompleteMessages: autoComplete } + { autoCompleteMessages: autoComplete }, ); const msgsCheck = await checkWithTimeout(() => msgCount === 1); @@ -423,7 +423,7 @@ describe("Streaming with sessions", () => { should.equal( deadLetterMsgs[0].messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await receiver.completeMessage(deadLetterMsgs[0]); @@ -448,7 +448,7 @@ describe("Streaming with sessions", () => { let errorMessage; const expectedErrorMessage = getAlreadyReceivingErrorMsg( receiver.entityPath, - TestMessage.sessionId + TestMessage.sessionId, ); receiver.subscribe({ async processMessage(msg: ServiceBusReceivedMessage) { @@ -470,7 +470,7 @@ describe("Streaming with sessions", () => { should.equal( errorMessage, expectedErrorMessage, - "Unexpected error message for registerMessageHandler" + "Unexpected error message for registerMessageHandler", ); should.equal(unexpectedError, undefined, unexpectedError && unexpectedError.message); @@ -483,7 +483,7 @@ describe("Streaming with sessions", () => { should.equal( errorMessage, expectedErrorMessage, - "Unexpected error message for receiveMessages" + "Unexpected error message for receiveMessages", ); } @@ -493,7 +493,7 @@ describe("Streaming with sessions", () => { async function (): Promise { await beforeEachTest(); await testMultipleReceiveCalls(); - } + }, ); }); @@ -529,14 +529,14 @@ describe("Streaming with sessions", () => { const msgsCheck = await checkWithTimeout( () => receivedMsgs.length === 1 && - getDeliveryProperty(receivedMsgs[0]).remote_settled === true + getDeliveryProperty(receivedMsgs[0]).remote_settled === true, ); should.equal( msgsCheck, true, receivedMsgs.length !== 1 ? `Expected 1, received ${receivedMsgs.length} messages` - : "Message didn't get auto-completed in time" + : "Message didn't get auto-completed in time", ); should.equal(unexpectedError, undefined, unexpectedError && unexpectedError.message); @@ -544,12 +544,12 @@ describe("Streaming with sessions", () => { should.equal( receivedMsgs[0].body, testMessage.body, - "MessageBody is different than expected" + "MessageBody is different than expected", ); should.equal( receivedMsgs[0].messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await testPeekMsgsLength(receiver, 0); @@ -582,7 +582,7 @@ describe("Streaming with sessions", () => { it("deadLetter() throws error(with sessions)", async function (): Promise { await testSettlement(DispositionType.deadletter); }); - } + }, ); describe("Sessions Streaming - User Error", function (): void { @@ -613,7 +613,7 @@ describe("Streaming with sessions", () => { should.equal( unexpectedError && unexpectedError.message, errorMessage, - "User error did not surface." + "User error did not surface.", ); should.equal(receivedMsgs.length, 1, "Unexpected number of messages"); } @@ -623,7 +623,7 @@ describe("Streaming with sessions", () => { async function (): Promise { await beforeEachTest(); await testUserError(); - } + }, ); }); describe(testClientType + ": Sessions Streaming - maxConcurrentCalls", function (): void { @@ -666,7 +666,7 @@ describe("Streaming with sessions", () => { }, { maxConcurrentCalls, - } + }, ); const actualCredits = await addCreditPromise; @@ -717,7 +717,7 @@ describe("Streaming with sessions", () => { }, { autoCompleteMessages: false, - } + }, ); await receiver.close(); @@ -725,7 +725,7 @@ describe("Streaming with sessions", () => { should.equal( receivedMsgs.length, 0, - `Expected 0 messages, but received ${receivedMsgs.length}` + `Expected 0 messages, but received ${receivedMsgs.length}`, ); receiver = await serviceBusClient.test.acceptNextSessionWithPeekLock(entityNamesParam); await testPeekMsgsLength(receiver, totalNumOfMessages); @@ -736,7 +736,7 @@ describe("Streaming with sessions", () => { async function (): Promise { const entity = await beforeEachTest(); await testReceiveMessages(entity); - } + }, ); it( @@ -744,7 +744,7 @@ describe("Streaming with sessions", () => { async function (): Promise { const entity = await beforeEachTest("receiveAndDelete"); await testReceiveMessages(entity); - } + }, ); }); }); diff --git a/sdk/servicebus/service-bus/test/internal/tracing.spec.ts b/sdk/servicebus/service-bus/test/internal/tracing.spec.ts index fc12f6d4895e..dc3a3cde1fc5 100644 --- a/sdk/servicebus/service-bus/test/internal/tracing.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/tracing.spec.ts @@ -27,7 +27,7 @@ describe(`Tracing for send`, function (): void { entityName = await sbClient.test.createTestEntities(TestClientType.UnpartitionedQueue); sender = sbClient.test.addToCleanup( - sbClient.createSender(entityName.queue ?? entityName.topic!) + sbClient.createSender(entityName.queue ?? entityName.topic!), ); }); @@ -43,7 +43,7 @@ describe(`Tracing for send`, function (): void { } return sender.sendMessages(batch, options); }, - ["message", "ServiceBusSender.send"] + ["message", "ServiceBusSender.send"], ); }); @@ -59,7 +59,7 @@ describe(`Tracing for send`, function (): void { tracingOptions: options.tracingOptions, }); }, - ["message", "ServiceBusSender.send"] + ["message", "ServiceBusSender.send"], ); }); }); diff --git a/sdk/servicebus/service-bus/test/internal/unit/abortSignal.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/abortSignal.spec.ts index cb1a94ae74d5..92bb196830e1 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/abortSignal.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/abortSignal.spec.ts @@ -62,7 +62,7 @@ describe("AbortSignal", () => { "serviceBusClientId", connectionContext, "fakeEntityPath", - {} + {}, ); closeables.push(sender); @@ -158,7 +158,7 @@ describe("AbortSignal", () => { assert.match( err.message, - /.*was not able to send the message right now, due to operation timeout.*/ + /.*was not able to send the message right now, due to operation timeout.*/, ); assert.isTrue((err as any).retryable); @@ -204,7 +204,7 @@ describe("AbortSignal", () => { "serviceBusClientId", createConnectionContextForTests(), "fakeEntityPath", - {} + {}, ); closeables.push(sender); @@ -224,7 +224,7 @@ describe("AbortSignal", () => { "serviceBusClientId", createConnectionContextForTests(), "fakeEntityPath", - {} + {}, ); closeables.push(sender); @@ -251,7 +251,7 @@ describe("AbortSignal", () => { }, }), "fakeEntityPath", - {} + {}, ); closeables.push(sender); @@ -280,7 +280,7 @@ describe("AbortSignal", () => { }, }), "fakeEntityPath", - {} + {}, ); closeables.push(sender); @@ -304,7 +304,7 @@ describe("AbortSignal", () => { "serviceBusClientId", createConnectionContextForTests(), "fakeEntityPath", - defaultOptions + defaultOptions, ); closeables.push(messageReceiver); @@ -324,7 +324,7 @@ describe("AbortSignal", () => { "serviceBusClientId", createConnectionContextForTests(), "fakeEntityPath", - defaultOptions + defaultOptions, ); closeables.push(messageReceiver); @@ -357,7 +357,7 @@ describe("AbortSignal", () => { "serviceBusClientId", fakeContext, "fakeEntityPath", - defaultOptions + defaultOptions, ); closeables.push(messageReceiver); @@ -393,7 +393,7 @@ describe("AbortSignal", () => { retryOptions: undefined, skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); const session = new ServiceBusSessionReceiverImpl( @@ -402,7 +402,7 @@ describe("AbortSignal", () => { "entityPath", "peekLock", false, - false + false, ); try { @@ -420,7 +420,7 @@ describe("AbortSignal", () => { }, { abortSignal, - } + }, ); assert.equal(receivedErrors[0].message, "The operation was aborted."); @@ -436,7 +436,7 @@ describe("AbortSignal", () => { "entityPath", "peekLock", 1, - false + false, ); try { @@ -456,7 +456,7 @@ describe("AbortSignal", () => { }, { abortSignal, - } + }, ); }); diff --git a/sdk/servicebus/service-bus/test/internal/unit/amqpUnitTests.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/amqpUnitTests.spec.ts index 3c3809ac06a6..fa6462b00762 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/amqpUnitTests.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/amqpUnitTests.spec.ts @@ -28,12 +28,12 @@ describe("AMQP message encoding", () => { beforeEach(() => { assert.equal( "Provided value for 'messages' must be of type: ServiceBusMessage, AmqpAnnotatedMessage, ServiceBusMessageBatch or an array of type ServiceBusMessage or AmqpAnnotatedMessage.", - errorInvalidMessageTypeSingleOrArray + errorInvalidMessageTypeSingleOrArray, ); assert.equal( "Provided value for 'message' must be of type: ServiceBusMessage or AmqpAnnotatedMessage.", - errorInvalidMessageTypeSingle + errorInvalidMessageTypeSingle, ); }); @@ -48,7 +48,7 @@ describe("AMQP message encoding", () => { false, "receiveAndDelete", false, - false + false, ); it("isAmqpAnnotatedMessage", () => { @@ -60,38 +60,38 @@ describe("AMQP message encoding", () => { isAmqpAnnotatedMessage({ body: "hello world", bodyType: "sequence", - }) + }), ); assert.isTrue( isAmqpAnnotatedMessage({ body: "hello world", bodyType: "value", - }) + }), ); assert.isTrue( isAmqpAnnotatedMessage({ body: "hello world", bodyType: "data", - }) + }), ); assert.isTrue( isAmqpAnnotatedMessage({ body: "hello world", bodyType: undefined, // the property _must_ exist, but undefined is fine. We'll default to 'data' - }) + }), ); }); it("isServiceBusMessage", () => { assert.isTrue( isServiceBusMessage({ body: undefined }), - "object with undefined 'body' should be a ServiceBusMessage" + "object with undefined 'body' should be a ServiceBusMessage", ); // no field is really required for a Service Bus message. assert.isTrue(isServiceBusMessage({ body: "hello world" }), "object has a 'body' field"); // no field is really required for a Service Bus message. assert.isTrue( isServiceBusMessage(exampleReceivedMessage()), - "a ServiceBusReceivedMessage is also a sendable ServiceBusMessage" + "a ServiceBusReceivedMessage is also a sendable ServiceBusMessage", ); }); @@ -187,7 +187,7 @@ describe("AMQP message encoding", () => { assert.equal(rheaMessage.ttl, ttl); assert.ok( rheaMessage.absolute_expiry_time instanceof Date && - !isNaN(rheaMessage.absolute_expiry_time.getTime()) + !isNaN(rheaMessage.absolute_expiry_time.getTime()), ); }); }); diff --git a/sdk/servicebus/service-bus/test/internal/unit/atomXml.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/atomXml.spec.ts index 6f58800c3fe4..0fcad8b6ff2a 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/atomXml.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/atomXml.spec.ts @@ -83,7 +83,7 @@ const ruleProperties = ["Filter", "Action", "Name"]; const mockServiceBusAtomManagementClient: ServiceBusAdministrationClient = new ServiceBusAdministrationClient( - "Endpoint=sb://test/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=test" + "Endpoint=sb://test/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=test", ); describe("ATOM Serializers", () => { @@ -106,16 +106,16 @@ describe("ATOM Serializers", () => { mockServiceBusAtomManagementClient, request, new MockSerializer(), - {} + {}, ); assert.fail("Error must be thrown"); } catch (err: any) { assert.equal( err.message.startsWith( - "Error occurred while parsing the response body - expected the service to return valid xml content." + "Error occurred while parsing the response body - expected the service to return valid xml content.", ), true, - `"${err.message}" was expected to begin with "Error occurred while parsing the response body - expected the service to return valid xml content." ` + `"${err.message}" was expected to begin with "Error occurred while parsing the response body - expected the service to return valid xml content." `, ); assert.equal(err.code, "PARSE_ERROR"); } @@ -138,7 +138,7 @@ describe("ATOM Serializers", () => { request, new MockSerializer(), {}, - requestObject + requestObject, ); const expectedRequestBody = `2019-10-15T19:55:26.821ZPT3M2048`; @@ -152,12 +152,12 @@ describe("ATOM Serializers", () => { assert.equal( requestBody.substring(0, indexOfOpenUpdateTag), expectedRequestBody.substring(0, indexOfOpenUpdateTag), - "Atom XML serialization failure" + "Atom XML serialization failure", ); assert.equal( requestBody.substring(indexOfCloseUpdateTag), expectedRequestBody.substring(indexOfCloseUpdateTag), - "Atom XML serialization failure" + "Atom XML serialization failure", ); }); }); @@ -182,7 +182,7 @@ describe("ATOM Serializers", () => { assert.equal( err.message, "Error occurred while parsing the response body - expected the service to return atom xml content with either feed or entry elements.", - `Unexpected error message found.` + `Unexpected error message found.`, ); assert.equal(err.code, "PARSE_ERROR"); } @@ -206,7 +206,7 @@ describe("ATOM Serializers", () => { assert.equal( err.message, "Service returned an error response with an unrecognized HTTP status code - 666", - `Unexpected error message found.` + `Unexpected error message found.`, ); assert.equal(err.code, "ServiceError", `Unexpected error code found.`); } @@ -267,7 +267,7 @@ describe("ATOM Serializers", () => { request, new QueueResourceSerializer(), {}, - buildQueueOptions(queueOptions) + buildQueueOptions(queueOptions), ); if (!request.body) { @@ -328,7 +328,7 @@ describe("ATOM Serializers", () => { request, new TopicResourceSerializer(), {}, - buildTopicOptions(topicOptions) + buildTopicOptions(topicOptions), ); if (!request.body) { @@ -366,7 +366,7 @@ describe("ATOM Serializers", () => { request, new SubscriptionResourceSerializer(), {}, - buildSubscriptionOptions(subscriptionOptions) + buildSubscriptionOptions(subscriptionOptions), ); if (!request.body) { @@ -402,7 +402,7 @@ describe("ATOM Serializers", () => { request, new RuleResourceSerializer(), {}, - ruleOptions + ruleOptions, ); if (!request.body) { @@ -414,7 +414,7 @@ describe("ATOM Serializers", () => { function checkXmlHasPropertiesInExpectedOrder( xml: string, - expectedOrderedProperties: Array + expectedOrderedProperties: Array, ): void { const orderedPropertyIndices: Array = []; for (let i = 0; i < expectedOrderedProperties.length; i++) { @@ -432,7 +432,7 @@ describe("ATOM Serializers", () => { assert.equal( curr < next, true, - "The properties in constructed request are not in expected order" + "The properties in constructed request are not in expected order", ); } } @@ -583,20 +583,20 @@ describe("ATOM Serializers", () => { request, new RuleResourceSerializer(), {}, - testCase.input as any // casting because invalid input won't satisfy type requirement + testCase.input as any, // casting because invalid input won't satisfy type requirement ); assert.fail("Error must be thrown"); } catch (err: any) { assert.equal( err.message, testCase.output.testErrorMessage, - `Unexpected error message found.` + `Unexpected error message found.`, ); assert.equal( err instanceof testCase.output.testErrorType, true, - `Expected error type to be "${testCase.output.testErrorType}"` + `Expected error type to be "${testCase.output.testErrorType}"`, ); } }); @@ -728,20 +728,20 @@ describe("ATOM Serializers", () => { request, new RuleResourceSerializer(), {}, - testCase.input as any // invalid input won't satisfy type requirement so need cast + testCase.input as any, // invalid input won't satisfy type requirement so need cast ); assert.fail("Error must be thrown"); } catch (err: any) { assert.equal( err.message, testCase.output.testErrorMessage, - `Unexpected error message found.` + `Unexpected error message found.`, ); assert.equal( err instanceof testCase.output.testErrorType, true, - `Expected error type to be "${testCase.output.testErrorType}"` + `Expected error type to be "${testCase.output.testErrorType}"`, ); } }); @@ -791,13 +791,13 @@ describe("ATOM Serializers", () => { assert.equal( err.message, testCase.output.testErrorMessage, - `Unexpected error message found.` + `Unexpected error message found.`, ); assert.equal( err instanceof testCase.output.testErrorType, true, - `Expected error type to be "${testCase.output.testErrorType}"` + `Expected error type to be "${testCase.output.testErrorType}"`, ); } }); @@ -956,7 +956,7 @@ describe("ATOM Serializers", () => { assert.equal( err.message, testCase.output.errorMessage, - `Unexpected error message found.` + `Unexpected error message found.`, ); } } @@ -1186,7 +1186,7 @@ describe("ATOM Serializers", () => { }; const result = await mockServiceBusAtomManagementClient["getRules"]( "testTopic", - "testSubscription" + "testSubscription", ); assertEmptyArray(result); }); diff --git a/sdk/servicebus/service-bus/test/internal/unit/autoLockRenewer.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/autoLockRenewer.spec.ts index dc8c1e1b61d4..8bd95af340f2 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/autoLockRenewer.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/autoLockRenewer.spec.ts @@ -63,7 +63,7 @@ describe("autoLockRenewer unit tests", () => { }, }, limits.maxAdditionalTimeToRenewLock, - "peekLock" + "peekLock", )!; // always just start the next auto-renew timer after 5 milliseconds to keep things simple. @@ -91,7 +91,7 @@ describe("autoLockRenewer unit tests", () => { assert.equal( lockRenewalTimersTotal, 0, - "Should be no active lock timers after test have completed." + "Should be no active lock timers after test have completed.", ); // the per-link map is not cleaned up automatically - you must @@ -100,7 +100,7 @@ describe("autoLockRenewer unit tests", () => { assert.equal( autoLockRenewer["_messageRenewLockTimers"].size, 0, - "The auto lock renewal timers should be removed" + "The auto lock renewal timers should be removed", ); clock.restore(); @@ -114,19 +114,19 @@ describe("autoLockRenewer unit tests", () => { lockedUntilUtc: new Date(), messageId: "message id", }, - onErrorFake + onErrorFake, ); clock.tick(limits.msToNextRenewal - 1); // right before the renew timer would run assert.exists( autoLockRenewer["_messageRenewLockTimers"].get(testLinkEntity.name)?.get("message id"), - "auto-renew timer should be set up" + "auto-renew timer should be set up", ); assert.isFalse( renewLockSpy.calledOnce, - "Our timeout duration should not fire yet and so we shouldn't renew anything." + "Our timeout duration should not fire yet and so we shouldn't renew anything.", ); clock.tick(1); // tick 1 more ms - timeout for the renewal should now fire. @@ -161,12 +161,12 @@ describe("autoLockRenewer unit tests", () => { lockedUntilUtc: new Date(Date.now() + limits.maxAdditionalTimeToRenewLock + 1), messageId: "message id", }, - onErrorFake + onErrorFake, ); assert.isFalse( renewLockSpy.calledOnce, - "No lock renewal - the lockedUntilUtc of this message is longer than the current time + our max auto renewal time" + "No lock renewal - the lockedUntilUtc of this message is longer than the current time + our max auto renewal time", ); assert.isFalse(onErrorFake.called, "no errors"); @@ -180,7 +180,7 @@ describe("autoLockRenewer unit tests", () => { lockedUntilUtc: new Date(), messageId: "message id", }, - onErrorFake + onErrorFake, ); // force one tick - we'll renew the lock, which will extend it's lifetime by limits.nextLockExpirationTime @@ -199,7 +199,7 @@ describe("autoLockRenewer unit tests", () => { assert.isFalse( renewLockSpy.calledOnce, - "No lock renewal. We exceeded the max allowed lock time." + "No lock renewal. We exceeded the max allowed lock time.", ); assert.isFalse(onErrorFake.called, "no errors"); }); @@ -210,12 +210,12 @@ describe("autoLockRenewer unit tests", () => { { messageId: "my message id", }, - onErrorFake + onErrorFake, ); assert.equal( (onErrorFake.args[0][0] as Error).message, - "Can't start auto lock renewal for message with message id 'my message id' since it does not have a lock token." + "Can't start auto lock renewal for message with message id 'my message id' since it does not have a lock token.", ); assert.isTrue(onErrorFake.calledOnce, "Should only have a single error"); @@ -233,12 +233,12 @@ describe("autoLockRenewer unit tests", () => { const autoLockRenewer2 = LockRenewer.create( unusedMgmtClient, 1, // this is okay, - "receiveAndDelete" // this is not okay - there aren't any locks to renew in receiveAndDelete mode. + "receiveAndDelete", // this is not okay - there aren't any locks to renew in receiveAndDelete mode. ); assert.notExists( autoLockRenewer2, - "Shouldn't create an autolockRenewer in receiveAndDelete mode" + "Shouldn't create an autolockRenewer in receiveAndDelete mode", ); }); @@ -247,12 +247,12 @@ describe("autoLockRenewer unit tests", () => { const autoLockRenewer2 = LockRenewer.create( unusedMgmtClient, invalidMaxAutoRenewLockDurationInMs, - "peekLock" // this is okay + "peekLock", // this is okay ); assert.notExists( autoLockRenewer2, - "Shouldn't create an autolockRenewer when the auto lock duration is invalid" + "Shouldn't create an autolockRenewer when the auto lock duration is invalid", ); }); }); diff --git a/sdk/servicebus/service-bus/test/internal/unit/batchingReceiver.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/batchingReceiver.spec.ts index 4e7228b0a55b..076b750a5022 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/batchingReceiver.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/batchingReceiver.spec.ts @@ -54,7 +54,7 @@ describe("BatchingReceiver unit tests", () => { "fakeEntityPath", "peekLock", 1, - false + false, ); let wasCalled = false; @@ -64,7 +64,7 @@ describe("BatchingReceiver unit tests", () => { _maxMessageCount: number, _maxWaitTimeInMs: number, _maxTimeAfterFirstMessageMs: number, - options?: OperationOptionsBase + options?: OperationOptionsBase, ): Promise { assert.equal(options?.abortSignal, origAbortSignal); wasCalled = true; @@ -94,7 +94,7 @@ describe("BatchingReceiver unit tests", () => { lockRenewer: undefined, skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); try { @@ -120,7 +120,7 @@ describe("BatchingReceiver unit tests", () => { lockRenewer: undefined, skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); closeables.push(receiver); @@ -212,7 +212,7 @@ describe("BatchingReceiver unit tests", () => { lockRenewer: undefined, skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); closeables.push(batchingReceiver); @@ -229,7 +229,7 @@ describe("BatchingReceiver unit tests", () => { const messages = await receivePromise; assert.deepEqual( messages.map((m) => m.body), - ["the message"] + ["the message"], ); assertListenersRemoved(rheaReceiver); @@ -247,7 +247,7 @@ describe("BatchingReceiver unit tests", () => { lockRenewer: undefined, skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); closeables.push(receiver); @@ -282,7 +282,7 @@ describe("BatchingReceiver unit tests", () => { lockRenewer: undefined, skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); closeables.push(batchingReceiver); @@ -312,11 +312,11 @@ describe("BatchingReceiver unit tests", () => { const messages = await receivePromise; assert.deepEqual( messages.map((m) => m.body), - ["the first message", "the second message"] + ["the first message", "the second message"], ); assertListenersRemoved(rheaReceiver); - } + }, ).timeout(5 * 1000); // TODO: there's a bug that needs some more investigation where receiveAndDelete loses messages if we're @@ -333,7 +333,7 @@ describe("BatchingReceiver unit tests", () => { lockRenewer: undefined, skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); closeables.push(batchingReceiver); @@ -368,7 +368,7 @@ describe("BatchingReceiver unit tests", () => { const messages = await receivePromise; assert.deepEqual( messages.map((m) => m.body), - ["the first message", "the second message"] + ["the first message", "the second message"], ); assertListenersRemoved(rheaReceiver); @@ -390,13 +390,13 @@ describe("BatchingReceiver unit tests", () => { lockRenewer: undefined, skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); closeables.push(batchingReceiver); const { receiveIsReady, rheaReceiver: emitter } = setupBatchingReceiver( batchingReceiver, - clock + clock, ); let wasCalled = false; @@ -405,7 +405,7 @@ describe("BatchingReceiver unit tests", () => { batchingReceiver["_batchingReceiverLite"]["_getRemainingWaitTimeInMsFn"] = ( maxWaitTimeInMs: number, - maxTimeAfterFirstMessageMs: number + maxTimeAfterFirstMessageMs: number, ) => { // sanity check that the timeouts are passed in correctly.... assert.equal(maxWaitTimeInMs, bigTimeout + 1); @@ -439,12 +439,12 @@ describe("BatchingReceiver unit tests", () => { assert.isTrue(wasCalled); assertListenersRemoved(emitter); - } + }, ); function setupBatchingReceiver( batchingReceiver: BatchingReceiver, - clockParam?: ReturnType + clockParam?: ReturnType, ): { receiveIsReady: Promise; rheaReceiver: RheaPromiseReceiver; @@ -562,7 +562,7 @@ describe("BatchingReceiver unit tests", () => { }, "peekLock", false, - false + false, ); assert.isFalse(batchingReceiver.isReceivingMessages); @@ -594,7 +594,7 @@ describe("BatchingReceiver unit tests", () => { }, "peekLock", false, - false + false, ); assert.notExists(batchingReceiver["_closeHandler"]); @@ -631,7 +631,7 @@ describe("BatchingReceiver unit tests", () => { }, "peekLock", false, - false + false, ); batchingReceiver["_receiveMessagesImpl"]( @@ -646,13 +646,13 @@ describe("BatchingReceiver unit tests", () => { }, () => { /* empty body */ - } + }, ); assert.equal( fakeRheaReceiver.credit, 2, - "No messages received, nothing drained, should have all the credits from the start." + "No messages received, nothing drained, should have all the credits from the start.", ); batchingReceiver["_receiveMessagesImpl"]( @@ -667,13 +667,13 @@ describe("BatchingReceiver unit tests", () => { }, () => { /* empty body */ - } + }, ); assert.equal( fakeRheaReceiver.credit, 2, - "No messages received, nothing drained, should still have enough credits." + "No messages received, nothing drained, should still have enough credits.", ); }); @@ -688,7 +688,7 @@ describe("BatchingReceiver unit tests", () => { }, "peekLock", false, - false + false, ); assert.notExists(batchingReceiver["_closeHandler"]); @@ -708,7 +708,7 @@ describe("BatchingReceiver unit tests", () => { }, () => { rejectWasCalled = true; - } + }, ); assert.exists(batchingReceiver["_closeHandler"]); @@ -743,7 +743,7 @@ describe("BatchingReceiver unit tests", () => { }, "peekLock", false, - false + false, ); batchingReceiverLite["_receiveMessagesImpl"]( @@ -758,13 +758,13 @@ describe("BatchingReceiver unit tests", () => { }, () => { /* empty body */ - } + }, ); assert.equal( fakeRheaReceiver.credit, 2, - "No messages received, nothing drained, should have all the credits from the start." + "No messages received, nothing drained, should have all the credits from the start.", ); const finalAction = batchingReceiverLite["_finalAction"]; @@ -806,7 +806,7 @@ describe("BatchingReceiver unit tests", () => { }, "peekLock", false, - false + false, ); const receiveIsReady = getReceiveIsReadyPromise(batchingReceiverLite); @@ -906,17 +906,17 @@ function assertListenersRemoved(rheaReceiver: RheaPromiseReceiver): void { rheaReceiver .listeners(ReceiverEvents.message) .filter((f) => f.name !== "creditRemoverForTests"), - `No listeners (aside from the test credit remover) should be registered for ${ReceiverEvents.message}` + `No listeners (aside from the test credit remover) should be registered for ${ReceiverEvents.message}`, ); for (const eventName of shouldBeEmpty) { assert.isEmpty( rheaReceiver.listeners(eventName), - `No listeners should be registered for ${eventName} on the receiver` + `No listeners should be registered for ${eventName} on the receiver`, ); assert.isEmpty( rheaReceiver.session.listeners(eventName), - `No listeners should be registered for ${eventName} on the receiver.session` + `No listeners should be registered for ${eventName} on the receiver.session`, ); } } diff --git a/sdk/servicebus/service-bus/test/internal/unit/client.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/client.spec.ts index f226a3f37f89..6d769dc15451 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/client.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/client.spec.ts @@ -8,7 +8,7 @@ describe("ServiceBusClient unit tests", function (): void { it("respects customEndpointAddress when using connection string", () => { const client = new ServiceBusClient( "Endpoint=sb://test.servicebus.windows.net;SharedAccessKeyName=b;SharedAccessKey=c;EntityPath=my-event-hub-name", - { customEndpointAddress: "sb://foo.private.bar:111" } + { customEndpointAddress: "sb://foo.private.bar:111" }, ); client.should.be.an.instanceof(ServiceBusClient); client["_connectionContext"].config.host.should.equal("foo.private.bar"); diff --git a/sdk/servicebus/service-bus/test/internal/unit/errors.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/errors.spec.ts index 0476e9bbe082..2850d5c2977c 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/errors.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/errors.spec.ts @@ -35,11 +35,11 @@ describe("errors", () => { assert.isTrue(warningSpy.calledOnce, "errors are logged to the .warning stream by default"); assert.isFalse( infoSpy.calledOnce, - "info only gets used for AbortError, not for normal errors" + "info only gets used for AbortError, not for normal errors", ); assert.isTrue( verboseSpy.calledOnce, - "verbose is used for the stack trace when it's available" + "verbose is used for the stack trace when it's available", ); // check that we call the stream with the proper args diff --git a/sdk/servicebus/service-bus/test/internal/unit/linkentity.unittest.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/linkentity.unittest.spec.ts index 6610e4ff6bf4..ce282213a5e3 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/linkentity.unittest.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/linkentity.unittest.spec.ts @@ -44,7 +44,7 @@ describe("LinkEntity unit tests", () => { receiverLogger, { address: "my-address", - } + }, ); }); @@ -52,7 +52,7 @@ describe("LinkEntity unit tests", () => { await linkEntity.close(); assert.isTrue( (linkEntity as LinkForTests)["_removeLinkFromContextCalled"], - "Every link should have a chance to remove themselves from the cache" + "Every link should have a chance to remove themselves from the cache", ); }); @@ -100,7 +100,7 @@ describe("LinkEntity unit tests", () => { assert.equal( timesCalled, 1, - "Only one negotiateClaim call should make it through since the others were turned away because of the isConnecting field" + "Only one negotiateClaim call should make it through since the others were turned away because of the isConnecting field", ); await Promise.all(innerPromises); @@ -168,7 +168,7 @@ describe("LinkEntity unit tests", () => { assert.equal(err.name, "ServiceBusError"); assert.isTrue( err.retryable, - "Exception thrown when the connection is closing should be retryable" + "Exception thrown when the connection is closing should be retryable", ); } }); @@ -204,7 +204,7 @@ describe("LinkEntity unit tests", () => { await linkEntity.initLink({}); assert.exists( linkEntity["_tokenRenewalTimer"], - "the tokenrenewal timer should have been set" + "the tokenrenewal timer should have been set", ); const negotiateClaimSpy = sinon.spy(linkEntity as any, "_negotiateClaim"); @@ -258,7 +258,7 @@ describe("LinkEntity unit tests", () => { returnedReceiver = await orig.call(linkEntity, options); assert.isTrue( returnedReceiver.isOpen(), - "Sanity check - the returnedReceiver was open when we returned it." + "Sanity check - the returnedReceiver was open when we returned it.", ); return returnedReceiver; }; @@ -280,7 +280,7 @@ describe("LinkEntity unit tests", () => { assert.isTrue( linkEntity.isOpen(), - "Can always reopen if the reason we closed the link is because of the abortSignal" + "Can always reopen if the reason we closed the link is because of the abortSignal", ); }); @@ -324,7 +324,7 @@ describe("LinkEntity unit tests", () => { assert.equal( linkEntity.name, "some new name", - "Name is an exact match to the name passed in the receiver options" + "Name is an exact match to the name passed in the receiver options", ); // we also update the log prefix @@ -355,7 +355,7 @@ describe("LinkEntity unit tests", () => { skipParsingBodyAsJson: false, skipConvertingDate: false, tracingOptions: {}, - } + }, ); initCachedLinks(batchingReceiver.name); @@ -385,7 +385,7 @@ describe("LinkEntity unit tests", () => { skipParsingBodyAsJson: false, skipConvertingDate: false, tracingOptions: {}, - } + }, ); initCachedLinks(streamingReceiver.name); @@ -432,7 +432,7 @@ describe("LinkEntity unit tests", () => { retryOptions: {}, skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); initCachedLinks(messageSession.name); @@ -475,7 +475,7 @@ describe("LinkEntity unit tests", () => { }): void { assert.isEmpty( args.unchangedCaches.filter((cache) => cache[args.name] == null), - "Unrelated caches should not be changed." + "Unrelated caches should not be changed.", ); } @@ -498,7 +498,7 @@ describe("LinkEntity unit tests", () => { assert.notExists( linkEntity["_tokenRenewalTimer"], - 'the tokenrenewal timer should be cleared when we close("permanently")' + 'the tokenrenewal timer should be cleared when we close("permanently")', ); } @@ -508,7 +508,7 @@ describe("LinkEntity unit tests", () => { assert.notExists( linkEntity["_tokenRenewalTimer"], - 'the tokenrenewal timer should be cleared when we close("linkonly")' + 'the tokenrenewal timer should be cleared when we close("linkonly")', ); } }); diff --git a/sdk/servicebus/service-bus/test/internal/unit/messageSender.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/messageSender.spec.ts index fa472bc35e13..e3772ed38b5d 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/messageSender.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/messageSender.spec.ts @@ -18,7 +18,7 @@ describe("MessageSender unit tests", () => { "serviceBusClientId", createConnectionContextForTests(), "entityPath", - retryOptions + retryOptions, ); let openCalled = 0; @@ -50,7 +50,7 @@ describe("MessageSender unit tests", () => { name: "ServiceBusError", code: "GeneralError", message: "Link failed to initialize, cannot get max message size.", - } + }, ); assert.equal(openCalled, retryOptions.maxRetries + 1); @@ -67,7 +67,7 @@ describe("MessageSender unit tests", () => { "serviceBusClientId", createConnectionContextForTests(), "entityPath", - retryOptions + retryOptions, ); let openCalled = 0; @@ -100,7 +100,7 @@ describe("MessageSender unit tests", () => { "serviceBusClientId", createConnectionContextForTests(), "entityPath", - retryOptions + retryOptions, ); messageSender["_logPrefix"] = "fakeSenderForSendRetry"; // prevent uuid in error message diff --git a/sdk/servicebus/service-bus/test/internal/unit/messageSession.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/messageSession.spec.ts index 2dbf6b628546..ce4f8b237a3f 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/messageSession.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/messageSession.spec.ts @@ -58,7 +58,7 @@ describe("Message session unit tests", () => { retryOptions: undefined, skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); const { receiveIsReady, emitter } = setupFakeReceiver(receiver as any); @@ -74,7 +74,7 @@ describe("Message session unit tests", () => { const messages = await receivePromise; assert.deepEqual( messages.map((m) => m.body), - ["the message"] + ["the message"], ); }).timeout(5 * 1000); @@ -91,7 +91,7 @@ describe("Message session unit tests", () => { retryOptions: undefined, skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); const { receiveIsReady } = setupFakeReceiver(receiver); @@ -124,7 +124,7 @@ describe("Message session unit tests", () => { retryOptions: undefined, skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); const { receiveIsReady, emitter } = setupFakeReceiver(receiver, clock); @@ -153,9 +153,9 @@ describe("Message session unit tests", () => { const messages = await receivePromise; assert.deepEqual( messages.map((m) => m.body), - ["the first message", "the second message"] + ["the first message", "the second message"], ); - } + }, ).timeout(5 * 1000); // TODO: there's a bug that needs some more investigation where receiveAndDelete loses messages if we're @@ -173,7 +173,7 @@ describe("Message session unit tests", () => { retryOptions: undefined, skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); const { receiveIsReady, emitter } = setupFakeReceiver(receiver); @@ -207,7 +207,7 @@ describe("Message session unit tests", () => { const messages = await receivePromise; assert.deepEqual( messages.map((m) => m.body), - ["the first message", "the second message"] + ["the first message", "the second message"], ); }).timeout(5 * 1000); @@ -228,7 +228,7 @@ describe("Message session unit tests", () => { retryOptions: undefined, skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); const { receiveIsReady, emitter } = setupFakeReceiver(receiver, clock); @@ -239,7 +239,7 @@ describe("Message session unit tests", () => { receiver["_batchingReceiverLite"]["_getRemainingWaitTimeInMsFn"] = ( maxWaitTimeInMs: number, - maxTimeAfterFirstMessageMs: number + maxTimeAfterFirstMessageMs: number, ) => { // sanity check that the timeouts are passed in correctly.... assert.equal(maxWaitTimeInMs, bigTimeout + 1); @@ -271,14 +271,14 @@ describe("Message session unit tests", () => { assert.equal(messages.length, 1); assert.isTrue(wasCalled); - } + }, ).timeout(5 * 1000); }); }); function setupFakeReceiver( batchingReceiver: MessageSession, - clockParam?: ReturnType + clockParam?: ReturnType, ): { receiveIsReady: Promise; emitter: EventEmitter; @@ -394,14 +394,14 @@ describe("Message session unit tests", () => { retryOptions: undefined, skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); closeables.push(messageSession); processCreditErrorSpy = sinon.spy( messageSession as any as { processCreditError: (err: any) => void }, - "processCreditError" + "processCreditError", ); }); @@ -417,7 +417,7 @@ describe("Message session unit tests", () => { errorArgs = args; resolve(); }, - {} + {}, ); }); @@ -440,7 +440,7 @@ describe("Message session unit tests", () => { errorSource: "processMessageCallback", entityPath: "entity path", fullyQualifiedNamespace: "fakeHost", - } + }, ); }); @@ -461,7 +461,7 @@ describe("Message session unit tests", () => { errorArgs = args; resolve(); }, - {} + {}, ); }); @@ -485,12 +485,12 @@ describe("Message session unit tests", () => { errorSource: "processMessageCallback", entityPath: "entity path", fullyQualifiedNamespace: "fakeHost", - } + }, ); assert.isTrue( addCreditWasCalled, - "Error thrown should have come from the call to addCredit()" + "Error thrown should have come from the call to addCredit()", ); assert.isTrue(processCreditErrorSpy.called); @@ -515,7 +515,7 @@ describe("Message session unit tests", () => { code: (errorArgs.error as ServiceBusError).code, }); }, - {} + {}, ); assert.deepEqual(errors, [ @@ -564,7 +564,7 @@ describe("Message session unit tests", () => { name: "ServiceBusError", code: "SessionLockLost", retryable: false, - } + }, ); }); }); diff --git a/sdk/servicebus/service-bus/test/internal/unit/receivedMessageProps.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/receivedMessageProps.spec.ts index 559684635148..c549c81e50d1 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/receivedMessageProps.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/receivedMessageProps.spec.ts @@ -15,7 +15,7 @@ chai.use(chaiAsPromised); describe("Message translations", () => { describe("expiresAtUtc is not invalid on received message", function (): void { async function verifyExpiresAtUtc( - transformMessage?: (msg: ServiceBusMessage) => ServiceBusMessage + transformMessage?: (msg: ServiceBusMessage) => ServiceBusMessage, ): Promise { let testMessage = TestMessage.getSample(); if (transformMessage) testMessage = transformMessage(testMessage); diff --git a/sdk/servicebus/service-bus/test/internal/unit/receiver.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/receiver.spec.ts index f41679058252..df6dad86de89 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/receiver.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/receiver.spec.ts @@ -35,7 +35,7 @@ describe("Receiver unit tests", () => { receiveMode: "peekLock", skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); const options = batchingReceiver["_createReceiverOptions"](false, {}); assert.equal(options.target, "serviceBusClientId"); @@ -55,7 +55,7 @@ describe("Receiver unit tests", () => { receiveMode: "peekLock", skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); let initWasCalled = false; @@ -85,7 +85,7 @@ describe("Receiver unit tests", () => { receiveMode: "peekLock", skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); await messageReceiver2.close(); @@ -98,7 +98,7 @@ describe("Receiver unit tests", () => { messageReceiver2["_negotiateClaim"] = async () => { negotiateClaimWasCalled = true; throw new Error( - "Negotiate claim was called - we should have early exited and never tried to init a close()'d instance." + "Negotiate claim was called - we should have early exited and never tried to init a close()'d instance.", ); }; @@ -126,7 +126,7 @@ describe("Receiver unit tests", () => { "fakeEntityPath", "peekLock", 1, - false + false, ); const subscription = await subscribeAndWaitForInitialize(receiverImpl); @@ -143,7 +143,7 @@ describe("Receiver unit tests", () => { { name: "Error", message: `The receiver for "${receiverImpl.entityPath}" is already receiving messages.`, - } + }, ); } @@ -165,7 +165,7 @@ describe("Receiver unit tests", () => { "fakeEntityPath", "peekLock", 1, - false + false, ); const subscription = await subscribeAndWaitForInitialize(receiverImpl); @@ -175,7 +175,7 @@ describe("Receiver unit tests", () => { assert.isFalse( closeWasCalled, - "closing a subscription does NOT close the receiver (it should be re-usable)" + "closing a subscription does NOT close the receiver (it should be re-usable)", ); const subscription2 = await subscribeAndWaitForInitialize(receiverImpl); @@ -183,7 +183,7 @@ describe("Receiver unit tests", () => { assert.equal( originalStreamingReceiver?.name, receiverImpl["_streamingReceiver"]?.name, - "StreamingReceiver is closed but not replaced - this allows us to just stop and start at will without losing anything." + "StreamingReceiver is closed but not replaced - this allows us to just stop and start at will without losing anything.", ); await subscription2.close(); @@ -197,7 +197,7 @@ describe("Receiver unit tests", () => { "fakeEntityPath", "peekLock", 1, - false + false, ); const abortSignal = { @@ -215,7 +215,7 @@ describe("Receiver unit tests", () => { }, { abortSignal, - } + }, ); // subscription should just be auto-closed already @@ -241,7 +241,7 @@ describe("Receiver unit tests", () => { "entity path", "peekLock", 1, - false + false, ); const abortSignal = createAbortSignalForTest(true); @@ -271,7 +271,7 @@ describe("Receiver unit tests", () => { retryOptions: undefined, skipParsingBodyAsJson: false, skipConvertingDate: false, - } + }, ); const impl = new ServiceBusSessionReceiverImpl( @@ -281,7 +281,7 @@ describe("Receiver unit tests", () => { "peekLock", false, false, - undefined + undefined, ); const abortSignal = createAbortSignalForTest(true); @@ -329,7 +329,7 @@ describe("Receiver unit tests", () => { assert.equal( impl["_streamingReceiver"], existingStreamingReceiver, - "original receiver should be intact - we should not create a new one.." + "original receiver should be intact - we should not create a new one..", ); assert.isTrue(subscribeStub.calledOnce); @@ -349,7 +349,7 @@ describe("Receiver unit tests", () => { }); async function subscribeAndWaitForInitialize( - receiver: ServiceBusReceiverImpl + receiver: ServiceBusReceiverImpl, ): Promise> { const sub = await new Promise<{ close(): Promise; @@ -369,12 +369,12 @@ async function subscribeAndWaitForInitialize( assert.exists( receiver["_streamingReceiver"], - "streaming receiver has been initialized in the context" + "streaming receiver has been initialized in the context", ); assert.isTrue( receiver["_streamingReceiver"]?.isSubscribeActive, - "streaming receiver should indicate it's receiving messages" + "streaming receiver should indicate it's receiving messages", ); return sub; diff --git a/sdk/servicebus/service-bus/test/internal/unit/receiverCommon.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/receiverCommon.spec.ts index c4e8b2747727..6f08ba61be63 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/receiverCommon.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/receiverCommon.spec.ts @@ -39,7 +39,7 @@ describe("shared receiver code", () => { assert.equal( translatedError, expectedError, - "The returned error should be exactly the same as the passed in error." + "The returned error should be exactly the same as the passed in error.", ); }); }); @@ -62,7 +62,7 @@ describe("shared receiver code", () => { message: messagingError.message, retryable: messagingError.retryable, } as ServiceBusError, - "The code should be intact and the reason code, since it matches our blessed list, should match." + "The code should be intact and the reason code, since it matches our blessed list, should match.", ); }); }); @@ -92,7 +92,7 @@ describe("shared receiver code", () => { message: expectedMessage, retryable: messagingError.retryable, } as ServiceBusError, - "The code should be intact and the reason code, since it matches our blessed list, should match." + "The code should be intact and the reason code, since it matches our blessed list, should match.", ); }); }); @@ -123,7 +123,7 @@ describe("shared receiver code", () => { operation: DispositionType, context: ConnectionContext, entityPath: string, - options: DispositionStatusOptions + options: DispositionStatusOptions, ) => { ++numTimesCalled; @@ -138,7 +138,7 @@ describe("shared receiver code", () => { (err as any).retryable = true; throw err; } - } + }, ); assert.equal(numTimesCalled, 2); @@ -160,11 +160,11 @@ describe("shared receiver code", () => { "entityPath", { retryOptions: undefined, - } + }, ), { message: MessageAlreadySettled, - } + }, ); }); @@ -185,11 +185,11 @@ describe("shared receiver code", () => { "entityPath", { retryOptions: undefined, - } + }, ), { message: MessageAlreadySettled, - } + }, ); }); }); @@ -283,7 +283,7 @@ describe("shared receiver code", () => { }, }, }, - fakeRetry + fakeRetry, ); assert.deepEqual(errorMessages, [ @@ -325,12 +325,12 @@ describe("shared receiver code", () => { const currentTime = Date.now(); const elapsed = currentTime - previousAttemptTime; console.log( - `### ${elapsed} ms passed (from ${previousAttemptTime} to ${currentTime})` + `### ${elapsed} ms passed (from ${previousAttemptTime} to ${currentTime})`, ); const expectedDelay = retryDelayInMs - 5; // with error tolerance to account for time accuracy issue if (elapsed < expectedDelay) { errorMessages.push( - `Elapsed time ${elapsed} ms (from ${previousAttemptTime} to ${currentTime}) is shorter than expected. The wait between attempts should have been about ${retryDelayInMs} ms.` + `Elapsed time ${elapsed} ms (from ${previousAttemptTime} to ${currentTime}) is shorter than expected. The wait between attempts should have been about ${retryDelayInMs} ms.`, ); } previousAttemptTime = currentTime; @@ -349,7 +349,7 @@ describe("shared receiver code", () => { }, }, }, - fakeRetry + fakeRetry, ); assert.deepEqual(errorMessages, [ @@ -388,7 +388,7 @@ it("error handler wrapper", () => { errorSource: "renewLock", code: "ServiceCommunicationProblem", identifier: "identifier", - } + }, ); throw new Error("Whoops!"); @@ -402,7 +402,7 @@ it("error handler wrapper", () => { assert.equal(err.toString(), "Error: Whoops!"); logErrorCalled = true; }, - } as ServiceBusLogger + } as ServiceBusLogger, ); const err = new MessagingError("Actual error that was passed in from service bus to the user"); @@ -463,7 +463,7 @@ it("getMessageIterator doesn't yield empty responses", async () => { }, ], allReceivedMessages, - "We should only get one message. We don't return anything when the receive returns nothing." + "We should only get one message. We don't return anything when the receive returns nothing.", ); } }); diff --git a/sdk/servicebus/service-bus/test/internal/unit/sender.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/sender.spec.ts index 28b5ebb94c6f..49bc9655beb6 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/sender.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/sender.spec.ts @@ -18,7 +18,7 @@ const assert = chai.assert; describe("Sender helper unit tests", () => { it("isServiceBusMessageBatch", () => { assert.isTrue( - isServiceBusMessageBatch(new ServiceBusMessageBatchImpl({} as ConnectionContext, 100)) + isServiceBusMessageBatch(new ServiceBusMessageBatchImpl({} as ConnectionContext, 100)), ); assert.isFalse(isServiceBusMessageBatch(undefined)); @@ -62,7 +62,7 @@ describe("sender unit tests", () => { try { await sender.sendMessages( // @ts-expect-error We are trying invalid types on purpose to test the error thrown - invalidValue + invalidValue, ); assert.fail("You should not be seeing this."); } catch (err: any) { @@ -86,7 +86,7 @@ describe("sender unit tests", () => { try { batch.tryAddMessage( // @ts-expect-error We are trying invalid types on purpose to test the error thrown - invalidValue + invalidValue, ); assert.fail("You should not be seeing this."); } catch (err: any) { @@ -110,7 +110,7 @@ describe("sender unit tests", () => { await sender.scheduleMessages( // @ts-expect-error We are trying invalid types on purpose to test the error thrown invalidValue, - new Date() + new Date(), ); assert.fail("You should not be seeing this."); } catch (err: any) { @@ -125,14 +125,14 @@ describe("sender unit tests", () => { await sender.scheduleMessages( { body: "message" }, // @ts-expect-error We are trying invalid types on purpose to test the error thrown - "invalid date" + "invalid date", ); assert.fail("You should not be seeing this."); } catch (err: any) { assert.equal(err.name, "TypeError"); assert.equal( err.message, - `The parameter "scheduledEnqueueTimeUtc" should be an instance of "Date"` + `The parameter "scheduledEnqueueTimeUtc" should be an instance of "Date"`, ); } }); diff --git a/sdk/servicebus/service-bus/test/internal/unit/serviceBusClient.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/serviceBusClient.spec.ts index 1d524f3842c7..676df030e278 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/serviceBusClient.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/serviceBusClient.spec.ts @@ -56,7 +56,7 @@ describe("serviceBusClient unit tests", () => { { ...origConnectionContext.config, entityPath: testEntity.topic ? testEntity.topic : testEntity.queue, - } + }, ); let sessionReceiver: ServiceBusSessionReceiver; @@ -78,7 +78,7 @@ describe("serviceBusClient unit tests", () => { maxAutoLockRenewalDurationInMs: 101, tracingOptions: {}, receiveMode: "receiveAndDelete", - } + }, ); } @@ -130,7 +130,7 @@ describe("serviceBusClient unit tests", () => { maxAutoLockRenewalDurationInMs: 101, tracingOptions: {}, receiveMode: "receiveAndDelete", - } + }, ); } @@ -215,7 +215,7 @@ describe("serviceBusClient unit tests", () => { ...sessionReceiverOptions, receiveMode: badReceiveMode as "peekLock", }), - `Invalid receiveMode '${badReceiveMode}' provided. Valid values are 'peekLock' and 'receiveAndDelete'` + `Invalid receiveMode '${badReceiveMode}' provided. Valid values are 'peekLock' and 'receiveAndDelete'`, ); }); }); @@ -333,7 +333,7 @@ describe("serviceBusClient unit tests", () => { assert.ok( uuidRegex.test((sender as ServiceBusSenderImpl)["_sender"]["identifier"]), - "expect random receiver identifier" + "expect random receiver identifier", ); }); @@ -345,7 +345,7 @@ describe("serviceBusClient unit tests", () => { assert.ok( uuidRegex.test((receiver as unknown as MessageReceiver)["identifier"]), - "expect random receiver identifier" + "expect random receiver identifier", ); }); @@ -371,13 +371,13 @@ describe("serviceBusClient unit tests", () => { testEntity.topic!, testEntity.subscription!, "sessionId", - { identifier: "sbSessionReceiverId" } + { identifier: "sbSessionReceiverId" }, ); } assert.equal( (receiver as unknown as MessageReceiver)["identifier"], - "sbSessionReceiverId" + "sbSessionReceiverId", ); } finally { await client.close(); @@ -405,7 +405,7 @@ describe("serviceBusClient unit tests", () => { assert.equal( (receiver as unknown as MessageReceiver)["identifier"], - "sbSessionReceiverId" + "sbSessionReceiverId", ); } finally { await client.close(); @@ -434,7 +434,7 @@ describe("serviceBusClient unit tests", () => { assert.ok( uuidRegex.test((receiver as unknown as ServiceBusSessionReceiver)["identifier"]), - "expect random session receiver identifier" + "expect random session receiver identifier", ); } finally { await client.close(); @@ -446,17 +446,17 @@ describe("serviceBusClient unit tests", () => { describe("Create ConnectionContext helpers", () => { function validateWebsocketInfo( connectionContext: ConnectionContext, - providedWebsocketConstructorOptions: any + providedWebsocketConstructorOptions: any, ): void { assert.equal( connectionContext.config.webSocketEndpointPath, "$servicebus/websocket", - "Unexpected webSocketEndpointPath in the connection config" + "Unexpected webSocketEndpointPath in the connection config", ); assert.equal( connectionContext.config.webSocketConstructorOptions, providedWebsocketConstructorOptions, - "Unexpected webSocketEndpointPath in the connection config" + "Unexpected webSocketEndpointPath in the connection config", ); } diff --git a/sdk/servicebus/service-bus/test/internal/unit/serviceBusMessage.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/serviceBusMessage.spec.ts index 8af8dda4344b..3fbf320c633b 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/serviceBusMessage.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/serviceBusMessage.spec.ts @@ -44,7 +44,7 @@ describe("ServiceBusMessageImpl unit tests", () => { false, "peekLock", false, - false + false, ); assert.equal(sbMessage.lockToken, expectedLockToken, "Unexpected lock token found"); @@ -57,7 +57,7 @@ describe("ServiceBusMessageImpl unit tests", () => { false, "receiveAndDelete", false, - false + false, ); assert.equal(!!sbMessage.lockToken, false, "Unexpected lock token found"); @@ -115,7 +115,7 @@ describe("ServiceBusMessageImpl unit tests", () => { false, "peekLock", false, - false + false, ); it("headers match", () => { @@ -139,7 +139,7 @@ describe("ServiceBusMessageImpl unit tests", () => { assert.equal( sbMessage._rawAmqpMessage.messageAnnotations[key], message_annotations[key], - `Unexpected value for key: ${key}` + `Unexpected value for key: ${key}`, ); } } @@ -147,7 +147,7 @@ describe("ServiceBusMessageImpl unit tests", () => { assert.equal( sbMessage.partitionKey, message_annotations[Constants.partitionKey], - "Unexpected Partition Key" + "Unexpected Partition Key", ); // assert.equal( @@ -167,7 +167,7 @@ describe("ServiceBusMessageImpl unit tests", () => { assert.equal( sbMessage._rawAmqpMessage.deliveryAnnotations[key], delivery_annotations[key], - `Unexpected value for key: ${key}` + `Unexpected value for key: ${key}`, ); } } @@ -181,20 +181,20 @@ describe("ServiceBusMessageImpl unit tests", () => { assert.equal(sbMessage._rawAmqpMessage.properties?.contentType, amqpMessage.content_type); assert.equal( sbMessage._rawAmqpMessage.properties?.contentEncoding, - amqpMessage.content_encoding + amqpMessage.content_encoding, ); assert.equal( sbMessage._rawAmqpMessage.properties?.absoluteExpiryTime, - amqpMessage.absolute_expiry_time?.getTime() + amqpMessage.absolute_expiry_time?.getTime(), ); assert.equal( sbMessage._rawAmqpMessage.properties?.creationTime, - amqpMessage.creation_time!.getTime() + amqpMessage.creation_time!.getTime(), ); assert.equal(sbMessage._rawAmqpMessage.properties?.groupId, amqpMessage.group_id); assert.equal( sbMessage._rawAmqpMessage.properties?.replyToGroupId, - amqpMessage.reply_to_group_id + amqpMessage.reply_to_group_id, ); assert.equal(sbMessage._rawAmqpMessage.properties?.groupSequence, amqpMessage.group_sequence); assert.equal(sbMessage._rawAmqpMessage.properties?.subject, amqpMessage.subject); @@ -208,7 +208,7 @@ describe("ServiceBusMessageImpl unit tests", () => { assert.equal(sbMessage._rawAmqpMessage.properties?.groupId, sbMessage.sessionId); assert.equal( sbMessage._rawAmqpMessage.properties?.replyToGroupId, - sbMessage.replyToSessionId + sbMessage.replyToSessionId, ); assert.equal(sbMessage._rawAmqpMessage.properties?.subject, sbMessage.subject); assert.deepEqual(sbMessage.applicationProperties, { @@ -320,7 +320,7 @@ describe("ServiceBusMessageImpl unit tests", () => { it(testInput.title, async function (): Promise { assert.throws( () => toRheaMessage(testInput.message, defaultDataTransformer), - testInput.expectedErrorMessage + testInput.expectedErrorMessage, ); }); }); @@ -345,7 +345,7 @@ describe("ServiceBusMessageImpl unit tests", () => { assert.throws( () => batch.tryAddMessage(testInput.message), - testInput.expectedErrorMessage + testInput.expectedErrorMessage, ); }); }); diff --git a/sdk/servicebus/service-bus/test/internal/unit/serviceBusReceiverUnitTests.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/serviceBusReceiverUnitTests.spec.ts index c831f72f86a3..fd1bdeed6aea 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/serviceBusReceiverUnitTests.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/serviceBusReceiverUnitTests.spec.ts @@ -18,7 +18,7 @@ describe("ServiceBusReceiver unit tests", () => { "entityPath", "peekLock", 0, - false + false, ); }); @@ -56,7 +56,7 @@ describe("ServiceBusReceiver unit tests", () => { await assertThrows( subscribeFn, expectedError, - "Trying to receive a separate way, in parallel, should throw" + "Trying to receive a separate way, in parallel, should throw", ); }); @@ -84,7 +84,7 @@ describe("ServiceBusReceiver unit tests", () => { await assertThrows( () => receiver.receiveMessages(1), expectedError, - "Trying to receive a separate way, in parallel, should throw" + "Trying to receive a separate way, in parallel, should throw", ); }); }); diff --git a/sdk/servicebus/service-bus/test/internal/unit/streamingReceiver.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/streamingReceiver.spec.ts index 84a64e3b488a..a24d02260181 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/streamingReceiver.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/streamingReceiver.spec.ts @@ -99,7 +99,7 @@ describe("StreamingReceiver unit tests", () => { args = _args; }, }, - undefined + undefined, ); await streamingReceiver["_onAmqpMessage"](eventContext as any as EventContext); @@ -116,7 +116,7 @@ describe("StreamingReceiver unit tests", () => { errorSource: "processMessageCallback", entityPath: "entity path", fullyQualifiedNamespace: "fakeHost", - } + }, ); } finally { await streamingReceiver.close(); @@ -146,7 +146,7 @@ describe("StreamingReceiver unit tests", () => { subscribeImplMock.resetHistory(); await streamingReceiver.onDetached( - new Error("let's detach but it won't because there's already a onDetached running.") + new Error("let's detach but it won't because there's already a onDetached running."), ); assert.isFalse(subscribeImplMock.called); // we don't do parallel detaches - subsequent ones are just stopped streamingReceiver["_isDetaching"] = false; @@ -174,12 +174,12 @@ describe("StreamingReceiver unit tests", () => { }, forwardInternalErrors: true, }, - {} + {}, ); const closeLinkSpy = sinon.spy( streamingReceiver as any as { closeLink(): Promise }, - "closeLink" + "closeLink", ); await assertThrows(() => subscribePromise, { @@ -213,12 +213,12 @@ describe("StreamingReceiver unit tests", () => { }, forwardInternalErrors: true, }, - {} + {}, ); const closeLinkSpy = sinon.spy( streamingReceiver as any as { closeLink(): Promise }, - "closeLink" + "closeLink", ); await assertThrows(() => subscribePromise, { @@ -269,7 +269,7 @@ describe("StreamingReceiver unit tests", () => { throw new Error("processInitialize"); }, }, - {} + {}, ); const wrappedMessageHandlers = streamingReceiver["_messageHandlers"](); @@ -287,7 +287,7 @@ describe("StreamingReceiver unit tests", () => { () => wrappedMessageHandlers.processMessage({} as ServiceBusReceivedMessage), { message: "processMessage", - } + }, ); assert.deepEqual(processErrorMessages, ["processMessage"]); diff --git a/sdk/servicebus/service-bus/test/internal/unit/tracing.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/tracing.spec.ts index 0e0628c621a4..28df8b1eb505 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/tracing.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/tracing.spec.ts @@ -35,7 +35,7 @@ describe("tracing", () => { const expectedSpanKind = "client"; assert.equal( toSpanOptions({ entityPath: "", host: "" }, "receive", expectedSpanKind).spanKind, - expectedSpanKind + expectedSpanKind, ); }); }); @@ -58,7 +58,7 @@ describe("tracing", () => { {}, "testPath", "testHost", - "receive" + "receive", ); assert.notExists(spanContext); assert.equal(message.applicationProperties?.[TRACEPARENT_PROPERTY], "exists"); @@ -79,7 +79,7 @@ describe("tracing", () => { {}, "testPath", "testHost", - "receive" + "receive", ); assert.notExists(spanContext); // was not instrumented assert.notExists(message.applicationProperties?.[TRACEPARENT_PROPERTY]); @@ -105,12 +105,12 @@ describe("tracing", () => { {}, "testPath", "testHost", - "receive" + "receive", ); assert.equal( message.applicationProperties?.[TRACEPARENT_PROPERTY], - "fake-traceparent-header" + "fake-traceparent-header", ); }); }); @@ -125,7 +125,7 @@ describe("tracing", () => { { host: "testHost", }, - "receive" + "receive", ); assert.equal(processingSpanOptions.spanKind, "consumer"); assert.deepEqual(processingSpanOptions.spanAttributes, { @@ -162,7 +162,7 @@ describe("tracing", () => { { host: "testHost", }, - "receive" + "receive", ); assert.lengthOf(processingSpanOptions.spanLinks!, 1); @@ -186,17 +186,17 @@ describe("tracing", () => { {}, "", "", - "receive" + "receive", ); assert.equal( message, alreadyInstrumentedMessage, - "Messages that are already instrumented do not get copied" + "Messages that are already instrumented do not get copied", ); assert.isUndefined( spanContext, - "Messages that are already instrumented do not get a new Span (or SpanContext)" + "Messages that are already instrumented do not get a new Span (or SpanContext)", ); }); }); diff --git a/sdk/servicebus/service-bus/test/internal/unit/unittestUtils.ts b/sdk/servicebus/service-bus/test/internal/unit/unittestUtils.ts index e6a9d74c16e6..dc93c7c700a3 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/unittestUtils.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/unittestUtils.ts @@ -36,7 +36,7 @@ export interface CreateConnectionContextForTestsOptions { * */ export function createConnectionContextForTests( - options?: CreateConnectionContextForTestsOptions + options?: CreateConnectionContextForTestsOptions, ): ConnectionContext & { initWasCalled: boolean; } { @@ -131,7 +131,7 @@ export function createConnectionContextForTests( */ export function createConnectionContextForTestsWithSessionId( sessionId: string = "hello", - options?: CreateConnectionContextForTestsOptions + options?: CreateConnectionContextForTestsOptions, ): ConnectionContext & { initWasCalled: boolean; } { @@ -272,13 +272,13 @@ export const retryableErrorForTests = (() => { */ export function addTestStreamingReceiver(): ( entityPath: string, - options?: ReceiveOptions + options?: ReceiveOptions, ) => StreamingReceiver { const closeables = addCloseablesCleanup(); function createTestStreamingReceiver( entityPath: string, - options?: ReceiveOptions + options?: ReceiveOptions, ): StreamingReceiver { const connectionContext = createConnectionContextForTests(); @@ -296,7 +296,7 @@ export function addTestStreamingReceiver(): ( "serviceBusClientId", connectionContext, entityPath, - options + options, ); closeables.push(streamingReceiver); return streamingReceiver; diff --git a/sdk/servicebus/service-bus/test/internal/unit/utils.spec.ts b/sdk/servicebus/service-bus/test/internal/unit/utils.spec.ts index ebc7c153319a..046a252da25c 100644 --- a/sdk/servicebus/service-bus/test/internal/unit/utils.spec.ts +++ b/sdk/servicebus/service-bus/test/internal/unit/utils.spec.ts @@ -50,7 +50,7 @@ describe("utils", () => { assert.notExists( ourTimerId, - "Definitely shouldn't schedule our timeout callback more than once" + "Definitely shouldn't schedule our timeout callback more than once", ); ourTimerId = id; @@ -95,7 +95,7 @@ describe("utils", () => { assert.isTrue( abortSignal.ourListenersWereRemoved(), - "All paths should properly clean up any event listeners on the signal" + "All paths should properly clean up any event listeners on the signal", ); assert.isTrue(timerWasCleared); }); @@ -122,7 +122,7 @@ describe("utils", () => { assert.isTrue( abortSignal.ourListenersWereRemoved(), - "All paths should properly clean up any event listeners on the signal" + "All paths should properly clean up any event listeners on the signal", ); // the abort signal is checked early, so the timeout never gets set up here. assert.notExists(ourTimerId); @@ -168,7 +168,7 @@ describe("utils", () => { assert.isTrue( abortSignal.ourListenersWereRemoved(), - "All paths should properly clean up any event listeners on the signal" + "All paths should properly clean up any event listeners on the signal", ); assert.isTrue(timerWasCleared); }); @@ -188,7 +188,7 @@ describe("utils", () => { assert.equal(result, 100); assert.isTrue( abortSignal.ourListenersWereRemoved(), - "All paths should properly clean up any event listeners on the signal" + "All paths should properly clean up any event listeners on the signal", ); assert.isTrue(timerWasCleared); }); @@ -212,7 +212,7 @@ describe("utils", () => { assert.isTrue( abortSignal.ourListenersWereRemoved(), - "All paths should properly clean up any event listeners on the signal" + "All paths should properly clean up any event listeners on the signal", ); assert.isTrue(timerWasCleared); }); @@ -356,14 +356,14 @@ describe("utils", () => { assert.notExists( spanContext, - `Missing property "${TRACEPARENT_PROPERTY}" should return undefined spanContext.` + `Missing property "${TRACEPARENT_PROPERTY}" should return undefined spanContext.`, ); }); }); }); function getAbortSignalWithTracking( - abortController: AbortController + abortController: AbortController, ): AbortSignalLike & { ourListenersWereRemoved(): boolean } { const signal = abortController.signal as any as ReturnType; diff --git a/sdk/servicebus/service-bus/test/internal/utils/misc.ts b/sdk/servicebus/service-bus/test/internal/utils/misc.ts index 9c2183b4a323..9de13fff0be4 100644 --- a/sdk/servicebus/service-bus/test/internal/utils/misc.ts +++ b/sdk/servicebus/service-bus/test/internal/utils/misc.ts @@ -15,7 +15,7 @@ export function getDeliveryProperty(message: ServiceBusReceivedMessage): Deliver } throw new Error( - "Received message does not contain a .delivery member - not a ServiceBusMessageImpl instance." + "Received message does not contain a .delivery member - not a ServiceBusMessageImpl instance.", ); } diff --git a/sdk/servicebus/service-bus/test/perf-js-libs/azure-sb-package/receive.ts b/sdk/servicebus/service-bus/test/perf-js-libs/azure-sb-package/receive.ts index 6d2aafdb4b8d..03b8e6f4d696 100644 --- a/sdk/servicebus/service-bus/test/perf-js-libs/azure-sb-package/receive.ts +++ b/sdk/servicebus/service-bus/test/perf-js-libs/azure-sb-package/receive.ts @@ -43,7 +43,7 @@ function RunTest( connectionString: string, entityPath: string, maxConcurrentCalls: number, - messages: number + messages: number, ): void { const sbService: ServiceBusService = createServiceBusService(connectionString); let credits = maxConcurrentCalls; @@ -94,7 +94,7 @@ async function WriteResults(messages: number): Promise { currentMessages, currentElapsed, maxMessages, - maxElapsed + maxElapsed, ); } while (_messages < messages); } @@ -105,13 +105,13 @@ function WriteResult( currentMessages: number, currentElapsed: number, maxMessages: number, - maxElapsed: number + maxElapsed: number, ): void { log( `\tTot Msg\t${totalMessages}` + `\tCur MPS\t${Math.round((currentMessages * 1000) / currentElapsed)}` + `\tAvg MPS\t${Math.round((totalMessages * 1000) / totalElapsed)}` + - `\tMax MPS\t${Math.round((maxMessages * 1000) / maxElapsed)}` + `\tMax MPS\t${Math.round((maxMessages * 1000) / maxElapsed)}`, ); } diff --git a/sdk/servicebus/service-bus/test/perf-js-libs/azure-sb-package/send.ts b/sdk/servicebus/service-bus/test/perf-js-libs/azure-sb-package/send.ts index 8d23f61b2e6d..3847f05acd3f 100644 --- a/sdk/servicebus/service-bus/test/perf-js-libs/azure-sb-package/send.ts +++ b/sdk/servicebus/service-bus/test/perf-js-libs/azure-sb-package/send.ts @@ -46,7 +46,7 @@ function RunTest( connectionString: string, entityPath: string, maxInflight: number, - messages: number + messages: number, ): void { const sbService: ServiceBusService = createServiceBusService(connectionString); @@ -95,7 +95,7 @@ async function WriteResults(messages: number): Promise { currentMessages, currentElapsed, maxMessages, - maxElapsed + maxElapsed, ); } while (_accepted + _rejected < messages); } @@ -106,13 +106,13 @@ function WriteResult( currentMessages: number, currentElapsed: number, maxMessages: number, - maxElapsed: number + maxElapsed: number, ): void { log( `\tTot Msg\t${totalMessages}` + `\tCur MPS\t${Math.round((currentMessages * 1000) / currentElapsed)}` + `\tAvg MPS\t${Math.round((totalMessages * 1000) / totalElapsed)}` + - `\tMax MPS\t${Math.round((maxMessages * 1000) / maxElapsed)}` + `\tMax MPS\t${Math.round((maxMessages * 1000) / maxElapsed)}`, ); } diff --git a/sdk/servicebus/service-bus/test/perf-js-libs/rhea-promise/receive.ts b/sdk/servicebus/service-bus/test/perf-js-libs/rhea-promise/receive.ts index 9343f8fd2fe6..73ab9846c52d 100644 --- a/sdk/servicebus/service-bus/test/perf-js-libs/rhea-promise/receive.ts +++ b/sdk/servicebus/service-bus/test/perf-js-libs/rhea-promise/receive.ts @@ -58,7 +58,7 @@ async function main(): Promise { allowUnauthorized, entityPath, maxConcurrentCalls, - messages + messages, ); await writeResultsPromise; @@ -71,7 +71,7 @@ async function RunTest( allowUnauthorized: boolean, entityPath: string, maxConcurrentCalls: number, - messages: number + messages: number, ): Promise { const port = 5671; @@ -149,7 +149,7 @@ async function WriteResults(messages: number): Promise { currentElapsed, maxMessages, maxElapsed, - _credit + _credit, ); } while (_messages < messages); } @@ -161,14 +161,14 @@ function WriteResult( currentElapsed: number, maxMessages: number, maxElapsed: number, - credit: number + credit: number, ): void { log( `\tTot Msg\t${totalMessages}` + `\tCur MPS\t${Math.round((currentMessages * 1000) / currentElapsed)}` + `\tAvg MPS\t${Math.round((totalMessages * 1000) / totalElapsed)}` + `\tMax MPS\t${Math.round((maxMessages * 1000) / maxElapsed)}` + - `\tCredit\t${credit}` + `\tCredit\t${credit}`, ); } diff --git a/sdk/servicebus/service-bus/test/perf-js-libs/rhea-promise/send.ts b/sdk/servicebus/service-bus/test/perf-js-libs/rhea-promise/send.ts index d451fd73ead7..50ca180f89ae 100644 --- a/sdk/servicebus/service-bus/test/perf-js-libs/rhea-promise/send.ts +++ b/sdk/servicebus/service-bus/test/perf-js-libs/rhea-promise/send.ts @@ -58,7 +58,7 @@ async function RunTest( allowUnauthorized: boolean, entityPath: string, maxInflight: number, - messages: number + messages: number, ): Promise { const port = 5671; @@ -145,7 +145,7 @@ async function WriteResults(messages: number): Promise { maxMessages, maxElapsed, _rejected, - inflightMessages + inflightMessages, ); } while (_accepted + _rejected < messages); } @@ -158,7 +158,7 @@ function WriteResult( maxMessages: number, maxElapsed: number, rejectedMessages: number, - inflightMessages: number + inflightMessages: number, ): void { log( `\tTot Msg\t${totalMessages}` + @@ -166,7 +166,7 @@ function WriteResult( `\tAvg MPS\t${Math.round((totalMessages * 1000) / totalElapsed)}` + `\tMax MPS\t${Math.round((maxMessages * 1000) / maxElapsed)}` + `\tReject\t${rejectedMessages}` + - `\tInflt\t${inflightMessages}` + `\tInflt\t${inflightMessages}`, ); } diff --git a/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v1/receive.ts b/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v1/receive.ts index 95fd9ff38868..7025d821dc9b 100644 --- a/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v1/receive.ts +++ b/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v1/receive.ts @@ -55,13 +55,13 @@ async function RunTest( entityPath: string, maxConcurrentCalls: number, messages: number, - isReceiveAndDelete: boolean + isReceiveAndDelete: boolean, ): Promise { const ns = ServiceBusClient.createFromConnectionString(connectionString); const client = ns.createQueueClient(entityPath); const receiver = client.createReceiver( - isReceiveAndDelete ? ReceiveMode.receiveAndDelete : ReceiveMode.peekLock + isReceiveAndDelete ? ReceiveMode.receiveAndDelete : ReceiveMode.peekLock, ); const onMessageHandler: OnMessage = async (msg: ServiceBusMessage) => { @@ -111,7 +111,7 @@ async function WriteResults(messages: number): Promise { currentMessages, currentElapsed, maxMessages, - maxElapsed + maxElapsed, ); } while (_messages < messages); } @@ -122,7 +122,7 @@ function WriteResult( currentMessages: number, currentElapsed: number, maxMessages: number, - maxElapsed: number + maxElapsed: number, ): void { const memoryUsage = process.memoryUsage(); log( @@ -131,7 +131,7 @@ function WriteResult( `\tAvg MPS\t${Math.round((totalMessages * 1000) / totalElapsed)}` + `\tMax MPS\t${Math.round((maxMessages * 1000) / maxElapsed)}` + `\tRSS\t${memoryUsage.rss}` + - `\tHeapUsed\t${memoryUsage.heapUsed}` + `\tHeapUsed\t${memoryUsage.heapUsed}`, ); } diff --git a/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v1/receiveBatch.ts b/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v1/receiveBatch.ts index 1efc75bd3413..fff08e241049 100644 --- a/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v1/receiveBatch.ts +++ b/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v1/receiveBatch.ts @@ -48,13 +48,13 @@ async function RunTest( entityPath: string, maxMsgCount: number, messages: number, - isReceiveAndDelete: boolean + isReceiveAndDelete: boolean, ): Promise { const ns = ServiceBusClient.createFromConnectionString(connectionString); const client = ns.createQueueClient(entityPath); const receiver = client.createReceiver( - isReceiveAndDelete ? ReceiveMode.receiveAndDelete : ReceiveMode.peekLock + isReceiveAndDelete ? ReceiveMode.receiveAndDelete : ReceiveMode.peekLock, ); while (_messages < messages) { @@ -98,7 +98,7 @@ async function WriteResults(messages: number): Promise { currentMessages, currentElapsed, maxMessages, - maxElapsed + maxElapsed, ); } while (_messages < messages); } @@ -109,7 +109,7 @@ function WriteResult( currentMessages: number, currentElapsed: number, maxMessages: number, - maxElapsed: number + maxElapsed: number, ): void { const memoryUsage = process.memoryUsage(); log( @@ -118,7 +118,7 @@ function WriteResult( `\tAvg MPS\t${Math.round((totalMessages * 1000) / totalElapsed)}` + `\tMax MPS\t${Math.round((maxMessages * 1000) / maxElapsed)}` + `\tRSS\t${memoryUsage.rss}` + - `\tHeapUsed\t${memoryUsage.heapUsed}` + `\tHeapUsed\t${memoryUsage.heapUsed}`, ); } diff --git a/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v1/send.ts b/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v1/send.ts index 4701d12e909d..2e4d1225c19b 100644 --- a/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v1/send.ts +++ b/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v1/send.ts @@ -46,7 +46,7 @@ async function RunTest( connectionString: string, entityPath: string, maxInflight: number, - messages: number + messages: number, ): Promise { const ns = ServiceBusClient.createFromConnectionString(connectionString); @@ -105,7 +105,7 @@ function WriteResult( currentMessages: number, currentElapsed: number, maxMessages: number, - maxElapsed: number + maxElapsed: number, ): void { const memoryUsage = process.memoryUsage(); log( @@ -114,7 +114,7 @@ function WriteResult( `\tAvg MPS\t${Math.round((totalMessages * 1000) / totalElapsed)}` + `\tMax MPS\t${Math.round((maxMessages * 1000) / maxElapsed)}` + `\tRSS\t${memoryUsage.rss}` + - `\tHeapUsed\t${memoryUsage.heapUsed}` + `\tHeapUsed\t${memoryUsage.heapUsed}`, ); } diff --git a/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v7/receive.ts b/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v7/receive.ts index 9732d7127f32..6a4d93b9f5a6 100644 --- a/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v7/receive.ts +++ b/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v7/receive.ts @@ -48,12 +48,12 @@ async function RunTest( entityPath: string, maxConcurrentCalls: number, messages: number, - isReceiveAndDelete: boolean + isReceiveAndDelete: boolean, ): Promise { const ns = new ServiceBusClient(connectionString); const receiver = ns.createReceiver( entityPath, - isReceiveAndDelete ? { receiveMode: "receiveAndDelete" } : {} + isReceiveAndDelete ? { receiveMode: "receiveAndDelete" } : {}, ); const processMessage = async (msg: ServiceBusReceivedMessage) => { @@ -73,7 +73,7 @@ async function RunTest( { autoCompleteMessages: false, maxConcurrentCalls, - } + }, ); } @@ -105,7 +105,7 @@ async function WriteResults(messages: number): Promise { currentMessages, currentElapsed, maxMessages, - maxElapsed + maxElapsed, ); } while (_messages < messages); } @@ -116,7 +116,7 @@ function WriteResult( currentMessages: number, currentElapsed: number, maxMessages: number, - maxElapsed: number + maxElapsed: number, ): void { const memoryUsage = process.memoryUsage(); log( @@ -125,7 +125,7 @@ function WriteResult( `\tAvg MPS\t${Math.round((totalMessages * 1000) / totalElapsed)}` + `\tMax MPS\t${Math.round((maxMessages * 1000) / maxElapsed)}` + `\tRSS\t${memoryUsage.rss}` + - `\tHeapUsed\t${memoryUsage.heapUsed}` + `\tHeapUsed\t${memoryUsage.heapUsed}`, ); } diff --git a/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v7/receiveBatch.ts b/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v7/receiveBatch.ts index 97f5b0756404..166485974fa5 100644 --- a/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v7/receiveBatch.ts +++ b/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v7/receiveBatch.ts @@ -48,12 +48,12 @@ async function RunTest( entityPath: string, maxMsgCount: number, messages: number, - isReceiveAndDelete: boolean + isReceiveAndDelete: boolean, ): Promise { const ns = new ServiceBusClient(connectionString); const receiver = ns.createReceiver( entityPath, - isReceiveAndDelete ? { receiveMode: "receiveAndDelete" } : {} + isReceiveAndDelete ? { receiveMode: "receiveAndDelete" } : {}, ); while (_messages < messages) { @@ -97,7 +97,7 @@ async function WriteResults(messages: number): Promise { currentMessages, currentElapsed, maxMessages, - maxElapsed + maxElapsed, ); } while (_messages < messages); } @@ -108,7 +108,7 @@ function WriteResult( currentMessages: number, currentElapsed: number, maxMessages: number, - maxElapsed: number + maxElapsed: number, ): void { const memoryUsage = process.memoryUsage(); log( @@ -117,7 +117,7 @@ function WriteResult( `\tAvg MPS\t${Math.round((totalMessages * 1000) / totalElapsed)}` + `\tMax MPS\t${Math.round((maxMessages * 1000) / maxElapsed)}` + `\tRSS\t${memoryUsage.rss}` + - `\tHeapUsed\t${memoryUsage.heapUsed}` + `\tHeapUsed\t${memoryUsage.heapUsed}`, ); } diff --git a/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v7/send.ts b/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v7/send.ts index 496b9c8ef073..895f59a3b75a 100644 --- a/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v7/send.ts +++ b/sdk/servicebus/service-bus/test/perf-js-libs/service-bus-v7/send.ts @@ -49,7 +49,7 @@ async function RunTest( entityPath: string, maxInflight: number, messages: number, - batchAPI: boolean + batchAPI: boolean, ): Promise { const ns = new ServiceBusClient(connectionString); @@ -70,7 +70,7 @@ async function RunTest( async function ExecuteSendsAsync( sender: ServiceBusSender, messages: number, - batchAPI: boolean + batchAPI: boolean, ): Promise { while (_messages <= messages) { if (batchAPI) { @@ -120,7 +120,7 @@ function WriteResult( currentMessages: number, currentElapsed: number, maxMessages: number, - maxElapsed: number + maxElapsed: number, ): void { const memoryUsage = process.memoryUsage(); log( @@ -129,7 +129,7 @@ function WriteResult( `\tAvg MPS\t${Math.round((totalMessages * 1000) / totalElapsed)}` + `\tMax MPS\t${Math.round((maxMessages * 1000) / maxElapsed)}` + `\tRSS\t${memoryUsage.rss}` + - `\tHeapUsed\t${memoryUsage.heapUsed}` + `\tHeapUsed\t${memoryUsage.heapUsed}`, ); } diff --git a/sdk/servicebus/service-bus/test/public/amqpAnnotatedMessage.spec.ts b/sdk/servicebus/service-bus/test/public/amqpAnnotatedMessage.spec.ts index 7030c910bdc8..1ec195e955c3 100644 --- a/sdk/servicebus/service-bus/test/public/amqpAnnotatedMessage.spec.ts +++ b/sdk/servicebus/service-bus/test/public/amqpAnnotatedMessage.spec.ts @@ -29,7 +29,7 @@ const assert = chai.assert; { receiveMode: "receiveAndDelete", sessionId, - } + }, ); describe("AmqpAnnotatedMessage", function (): void { @@ -77,39 +77,39 @@ const assert = chai.assert; should.equal( rawAmqpMessage.messageAnnotations!["propMsgAnnotate"], testMessage.messageAnnotations!["propMsgAnnotate"], - "Unexpected messageAnnotations on the received message" + "Unexpected messageAnnotations on the received message", ); should.equal( rawAmqpMessage.bodyType, testMessage.bodyType, - "Unexpected bodyType on the AmqpAnnotatedMessage" + "Unexpected bodyType on the AmqpAnnotatedMessage", ); assert.deepEqual( rawAmqpMessage.applicationProperties, testMessage.applicationProperties, - "Unexpected applicationProperties on the AmqpAnnotatedMessage" + "Unexpected applicationProperties on the AmqpAnnotatedMessage", ); assert.deepEqual( rawAmqpMessage.footer, testMessage.footer, - "Unexpected footer on the AmqpAnnotatedMessage" + "Unexpected footer on the AmqpAnnotatedMessage", ); assert.deepEqualExcluding( rawAmqpMessage.header!, testMessage.header!, ["deliveryCount"], - "Unexpected header on the AmqpAnnotatedMessage" + "Unexpected header on the AmqpAnnotatedMessage", ); assert.deepEqualExcluding( rawAmqpMessage.properties!, testMessage.properties!, ["creationTime", "absoluteExpiryTime", "groupId"], - "Unexpected properties on the AmqpAnnotatedMessage" + "Unexpected properties on the AmqpAnnotatedMessage", ); assert.equal( rawAmqpMessage.properties!.groupId, testMessage.properties!.groupId, - "Unexpected session-id on the AmqpAnnotatedMessage" + "Unexpected session-id on the AmqpAnnotatedMessage", ); } @@ -125,7 +125,7 @@ const assert = chai.assert; await receiveMsg(testMessage); await testPeekMsgsLength(receiver(), 0); - } + }, ); }); @@ -152,12 +152,12 @@ const assert = chai.assert; assert.deepEqual( message._rawAmqpMessage.bodyType, "value", - `Should be identified as a value: ${valueType.toString()}` + `Should be identified as a value: ${valueType.toString()}`, ); assert.deepEqual( message.body, valueType, - `Deserialized body should be equal: : ${valueType.toString()}` + `Deserialized body should be equal: : ${valueType.toString()}`, ); } }); @@ -181,12 +181,12 @@ const assert = chai.assert; assert.deepEqual( message._rawAmqpMessage.bodyType, "sequence", - `Should be identified as sequence: ${sequenceType.toString()}` + `Should be identified as sequence: ${sequenceType.toString()}`, ); assert.deepEqual( message.body, sequenceType, - `Deserialized body should be equal: : ${sequenceType.toString()}` + `Deserialized body should be equal: : ${sequenceType.toString()}`, ); } }); @@ -209,12 +209,12 @@ const assert = chai.assert; assert.deepEqual( message._rawAmqpMessage.bodyType, "data", - `Should be identified as data: ${dataType.toString()}` + `Should be identified as data: ${dataType.toString()}`, ); assert.deepEqual( message.body, dataType, - `Deserialized body should be equal: : ${dataType.toString()}` + `Deserialized body should be equal: : ${dataType.toString()}`, ); } }); @@ -284,7 +284,7 @@ const assert = chai.assert; body: "hello", bodyType: "value", }, - ] + ], ); }); }); diff --git a/sdk/servicebus/service-bus/test/public/atomManagement.spec.ts b/sdk/servicebus/service-bus/test/public/atomManagement.spec.ts index 688fd7f71c24..01f1b2dc841a 100644 --- a/sdk/servicebus/service-bus/test/public/atomManagement.spec.ts +++ b/sdk/servicebus/service-bus/test/public/atomManagement.spec.ts @@ -30,7 +30,7 @@ const assert = chai.assert; const env = getEnvVars(); const endpointWithProtocol = parseServiceBusConnectionString( - env[EnvVarNames.SERVICEBUS_CONNECTION_STRING] + env[EnvVarNames.SERVICEBUS_CONNECTION_STRING], ).endpoint; enum EntityType { @@ -64,7 +64,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { before(() => { serviceBusAtomManagementClient = new ServiceBusAdministrationClient( env[EnvVarNames.SERVICEBUS_CONNECTION_STRING], - { serviceVersion: serviceVersion as "2021-05" | "2017-04" } + { serviceVersion: serviceVersion as "2021-05" | "2017-04" }, ); }); /** @@ -88,10 +88,10 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { it("queue: forwarding", async () => { const willForward = await serviceBusClient.test.createTestEntities( - TestClientType.PartitionedQueue + TestClientType.PartitionedQueue, ); const willBeForwardedTo = await serviceBusClient.test.createTestEntities( - TestClientType.UnpartitionedQueue + TestClientType.UnpartitionedQueue, ); // make it so all messages from `willForward` are forwarded to `willBeForwardedTo` @@ -99,9 +99,8 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { queueProperties.forwardTo = willBeForwardedTo.queue!; await serviceBusAtomManagementClient.updateQueue(queueProperties); - const receiver = await serviceBusClient.test.createReceiveAndDeleteReceiver( - willBeForwardedTo - ); + const receiver = + await serviceBusClient.test.createReceiveAndDeleteReceiver(willBeForwardedTo); const sender = await serviceBusClient.test.createSender(willForward); await sender.sendMessages({ @@ -111,29 +110,28 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { const messages = await receiver.receiveMessages(1); assert.deepEqual( [{ body: "forwarded message with queues!" }], - messages.map((m) => ({ body: m.body })) + messages.map((m) => ({ body: m.body })), ); }); it("subscription: forwarding", async () => { const willForward = await serviceBusClient.test.createTestEntities( - TestClientType.PartitionedSubscription + TestClientType.PartitionedSubscription, ); const willBeForwardedTo = await serviceBusClient.test.createTestEntities( - TestClientType.UnpartitionedQueue + TestClientType.UnpartitionedQueue, ); // make it so all messages from `willForward` are forwarded to `willBeForwardedTo` const subscriptionProperties = await serviceBusAtomManagementClient.getSubscription( willForward.topic!, - willForward.subscription! + willForward.subscription!, ); subscriptionProperties.forwardTo = willBeForwardedTo.queue!; await serviceBusAtomManagementClient.updateSubscription(subscriptionProperties); - const receiver = await serviceBusClient.test.createReceiveAndDeleteReceiver( - willBeForwardedTo - ); + const receiver = + await serviceBusClient.test.createReceiveAndDeleteReceiver(willBeForwardedTo); const sender = await serviceBusClient.test.createSender(willForward); await sender.sendMessages({ @@ -143,7 +141,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { const messages = await receiver.receiveMessages(1); assert.deepEqual( [{ body: "forwarded message with subscriptions!" }], - messages.map((m) => ({ body: m.body })) + messages.map((m) => ({ body: m.body })), ); }); }); @@ -154,7 +152,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { assert.deepEqualExcluding( namespaceProperties, { messagingSku: "Standard", messagingUnits: undefined } as any, - ["_response", "createdAt", "modifiedAt", "name"] + ["_response", "createdAt", "modifiedAt", "name"], ); }); }); @@ -172,18 +170,18 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { await recreateSubscription(managementTopic1, managementSubscription1); for (let i = 0; i < numberOfEntities; i++) { queueNames.push( - (await serviceBusAtomManagementClient.createQueue(baseName + "_queue_" + i)).name + (await serviceBusAtomManagementClient.createQueue(baseName + "_queue_" + i)).name, ); topicNames.push( - (await serviceBusAtomManagementClient.createTopic(baseName + "_topic_" + i)).name + (await serviceBusAtomManagementClient.createTopic(baseName + "_topic_" + i)).name, ); subscriptionNames.push( ( await serviceBusAtomManagementClient.createSubscription( managementTopic1, - baseName + "_subscription_" + i + baseName + "_subscription_" + i, ) - ).subscriptionName + ).subscriptionName, ); ruleNames.push( ( @@ -191,9 +189,9 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { managementTopic1, managementSubscription1, baseName + "_rule_" + i, - { sqlExpression: "1=1" } + { sqlExpression: "1=1" }, ) - ).name + ).name, ); } }); @@ -224,7 +222,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { should.equal( numberOfReceived, receivedNames.length + createdNames.length, - "Unexpected number of entities received" + "Unexpected number of entities received", ); } @@ -245,7 +243,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { } else if (methodName.includes("Rule")) { iterator = (serviceBusAtomManagementClient as any)[methodName]( managementTopic1, - managementSubscription1 + managementSubscription1, ); } else if (methodName.includes("Queue") || methodName.includes("Topic")) { iterator = (serviceBusAtomManagementClient as any)[methodName](); @@ -260,7 +258,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { const iter = getIter(); for await (const entity of iter) { receivedEntities.push( - methodName.includes("Subscription") ? entity.subscriptionName : entity.name + methodName.includes("Subscription") ? entity.subscriptionName : entity.name, ); } verifyEntities(methodName, receivedEntities); @@ -274,7 +272,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { for await (const response of iter) { for (const entity of response) { receivedEntities.push( - methodName.includes("Subscription") ? entity.subscriptionName : entity.name + methodName.includes("Subscription") ? entity.subscriptionName : entity.name, ); } } @@ -289,7 +287,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { if (!response.done) { for (const entity of response.value) { receivedEntities.push( - methodName.includes("Subscription") ? entity.subscriptionName : entity.name + methodName.includes("Subscription") ? entity.subscriptionName : entity.name, ); } } @@ -306,7 +304,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { if (!response.done) { for (const entity of response.value) { receivedEntities.push( - methodName.includes("Subscription") ? entity.subscriptionName : entity.name + methodName.includes("Subscription") ? entity.subscriptionName : entity.name, ); } } @@ -319,7 +317,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { })) { for (const entity of pageResponse) { receivedEntities.push( - methodName.includes("Subscription") ? entity.subscriptionName : entity.name + methodName.includes("Subscription") ? entity.subscriptionName : entity.name, ); } } @@ -338,7 +336,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { should.equal( error.message, `Invalid continuationToken ${token} provided`, - "Unexpected error message" + "Unexpected error message", ); } should.equal(errorWasThrown, true, "Error was not thrown"); @@ -352,57 +350,57 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { if (isNode) { it("Token credential - DefaultAzureCredential from `@azure/identity`", async () => { const connectionStringProperties = parseServiceBusConnectionString( - env[EnvVarNames.SERVICEBUS_CONNECTION_STRING] + env[EnvVarNames.SERVICEBUS_CONNECTION_STRING], ); const host = connectionStringProperties.fullyQualifiedNamespace; const endpoint = connectionStringProperties.endpoint; const serviceBusAdministrationClient = new ServiceBusAdministrationClient( host, - new DefaultAzureCredential() + new DefaultAzureCredential(), ); should.equal( (await serviceBusAdministrationClient.createQueue(managementQueue1)).name, managementQueue1, - "Unexpected queue name in the createQueue response" + "Unexpected queue name in the createQueue response", ); const createQueue2Response = await serviceBusAdministrationClient.createQueue( managementQueue2, { forwardTo: managementQueue1, - } + }, ); should.equal( createQueue2Response.name, managementQueue2, - "Unexpected queue name in the createQueue response" + "Unexpected queue name in the createQueue response", ); should.equal( createQueue2Response.forwardTo, endpoint + managementQueue1, - "Unexpected name in the `forwardTo` field of createQueue response" + "Unexpected name in the `forwardTo` field of createQueue response", ); const getQueueResponse = await serviceBusAdministrationClient.getQueue(managementQueue1); should.equal( getQueueResponse.name, managementQueue1, - "Unexpected queue name in the getQueue response" + "Unexpected queue name in the getQueue response", ); should.equal( (await serviceBusAdministrationClient.updateQueue(getQueueResponse)).name, managementQueue1, - "Unexpected queue name in the updateQueue response" + "Unexpected queue name in the updateQueue response", ); should.equal( (await serviceBusAdministrationClient.getQueueRuntimeProperties(managementQueue1)).name, managementQueue1, - "Unexpected queue name in the getQueueRuntimeProperties response" + "Unexpected queue name in the getQueueRuntimeProperties response", ); should.equal( (await serviceBusAdministrationClient.getNamespaceProperties()).name, (host.match("(.*).servicebus.(windows.net|usgovcloudapi.net|chinacloudapi.cn)") || [])[1], - "Unexpected namespace name in the getNamespaceProperties response" + "Unexpected namespace name in the getNamespaceProperties response", ); await serviceBusAdministrationClient.deleteQueue(managementQueue1); await serviceBusAdministrationClient.deleteQueue(managementQueue2); @@ -411,21 +409,21 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { it("AzureNamedKeyCredential from `@azure/core-auth`", async () => { const connectionStringProperties = parseServiceBusConnectionString( - env[EnvVarNames.SERVICEBUS_CONNECTION_STRING] + env[EnvVarNames.SERVICEBUS_CONNECTION_STRING], ); const host = connectionStringProperties.fullyQualifiedNamespace; const serviceBusAdministrationClient = new ServiceBusAdministrationClient( host, new AzureNamedKeyCredential( connectionStringProperties.sharedAccessKeyName!, - connectionStringProperties.sharedAccessKey! - ) + connectionStringProperties.sharedAccessKey!, + ), ); should.equal( (await serviceBusAdministrationClient.getNamespaceProperties()).name, (host.match("(.*).servicebus.(windows.net|usgovcloudapi.net|chinacloudapi.cn)") || [])[1], - "Unexpected namespace name in the getNamespaceProperties response" + "Unexpected namespace name in the getNamespaceProperties response", ); }); }); @@ -458,13 +456,13 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { EntityType.RULE, managementRule1, managementTopic1, - managementSubscription1 + managementSubscription1, ); await createEntity( EntityType.RULE, managementRule2, managementTopic1, - managementSubscription1 + managementSubscription1, ); break; default: @@ -499,13 +497,13 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { managementTopic1, managementSubscription1, undefined, - 1 + 1, ); should.equal( Array.isArray(topOneEntity), true, - "Result must be any array for list requests" + "Result must be any array for list requests", ); should.equal(topOneEntity.length, 1, "Result must be an empty array"); }); @@ -514,7 +512,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { const allEntitiesResult = await listEntities( entityType, managementTopic1, - managementSubscription1 + managementSubscription1, ); const skipEntitiesResult = await listEntities( @@ -522,19 +520,19 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { managementTopic1, managementSubscription1, 1, - undefined + undefined, ); should.equal( Array.isArray(skipEntitiesResult), true, - "Result must be any array for list requests" + "Result must be any array for list requests", ); should.equal( skipEntitiesResult.length, allEntitiesResult.length - 1, - "Result array size should be exactly 1 less than all entities" + "Result array size should be exactly 1 less than all entities", ); }); @@ -542,17 +540,17 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { const response = await listEntities( entityType, managementTopic1, - managementSubscription1 + managementSubscription1, ); should.equal( Array.isArray(response), true, - "Result must be any array for list requests" + "Result must be any array for list requests", ); }); }); - } + }, ); [ @@ -596,7 +594,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { EntityType.RULE, managementRule1, managementTopic1, - managementSubscription1 + managementSubscription1, ); break; default: @@ -626,12 +624,12 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { testCase.entityType, testCase.alwaysBeExistingEntity, managementTopic1, - managementSubscription1 + managementSubscription1, ); should.equal( response[testCase.entityType === EntityType.SUBSCRIPTION ? "subscriptionName" : "name"], testCase.alwaysBeExistingEntity, - "Entity name mismatch" + "Entity name mismatch", ); }); }); @@ -717,12 +715,12 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { const response = await getEntityRuntimeProperties( testCase.entityType, testCase.alwaysBeExistingEntity, - managementTopic1 + managementTopic1, ); should.equal( response[testCase.entityType === EntityType.SUBSCRIPTION ? "subscriptionName" : "name"], testCase.alwaysBeExistingEntity, - "Entity name mismatch" + "Entity name mismatch", ); assert.deepEqualExcluding(response, testCase.output, [ "_response", @@ -861,7 +859,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { it(`Gets runtime info for existing ${testCase.entityType} entities(multiple) successfully`, async () => { const response = await getEntitiesRuntimeProperties( testCase.entityType, - managementTopic1 + managementTopic1, ); const name = testCase.entityType === EntityType.SUBSCRIPTION ? "subscriptionName" : "name"; @@ -918,7 +916,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { managementTopic1, managementSubscription1, managementRule1, - { sqlExpression: "1=2" } + { sqlExpression: "1=2" }, ); break; @@ -950,10 +948,10 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { testCase.entityType, testCase.alwaysBeExistingEntity, managementTopic1, - managementSubscription1 + managementSubscription1, ), true, - "Returned `false` for an existing entity" + "Returned `false` for an existing entity", ); }); @@ -963,10 +961,10 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { testCase.entityType, "non-existing-entity-name", managementTopic1, - managementSubscription1 + managementSubscription1, ), false, - "Returned `true` for a non-existing entity" + "Returned `true` for a non-existing entity", ); }); }); @@ -1013,7 +1011,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { EntityType.RULE, managementRule1, managementTopic1, - managementSubscription1 + managementSubscription1, ); break; default: @@ -1043,12 +1041,12 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { testCase.entityType, testCase.alwaysBeExistingEntity, managementTopic1, - managementSubscription1 + managementSubscription1, ); should.equal( response[testCase.entityType === EntityType.SUBSCRIPTION ? "subscriptionName" : "name"], testCase.alwaysBeExistingEntity, - "Entity name mismatch" + "Entity name mismatch", ); }); }); @@ -1098,20 +1096,20 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { entityType, newManagementEntity1, managementTopic1, - managementSubscription1 + managementSubscription1, ); const response = await deleteEntity( entityType, newManagementEntity1, managementTopic1, - managementSubscription1 + managementSubscription1, ); should.equal(response._response.status, 200); }); }); - } + }, ); [ @@ -1155,7 +1153,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { EntityType.RULE, managementRule1, managementTopic1, - managementSubscription1 + managementSubscription1, ); break; default: @@ -1187,7 +1185,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { testCase.entityType, testCase.alwaysBeExistingEntity, managementTopic1, - managementSubscription1 + managementSubscription1, ); } catch (err: any) { error = err; @@ -1197,7 +1195,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { should.equal( error.code, "MessageEntityAlreadyExistsError", - `Unexpected error code found.` + `Unexpected error code found.`, ); should.equal( error.message.startsWith("The messaging entity") || @@ -1205,7 +1203,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { error.message.startsWith("SubCode") || error.message.startsWith("No service"), true, - `Unexpected error message found.` + `Unexpected error message found.`, ); }); }); @@ -1254,20 +1252,20 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { entityType, newManagementEntity2, managementTopic1, - managementSubscription1 + managementSubscription1, ); await deleteEntity( entityType, newManagementEntity2, managementTopic1, - managementSubscription1 + managementSubscription1, ); should.equal( response[entityType === EntityType.SUBSCRIPTION ? "subscriptionName" : "name"], newManagementEntity2, - "Entity name mismatch" + "Entity name mismatch", ); }); @@ -1278,7 +1276,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { entityType, "notexisting", managementTopic1, - managementSubscription1 + managementSubscription1, ); } catch (err: any) { error = err; @@ -1291,7 +1289,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { error.message.startsWith("SubCode") || error.message.startsWith("No service"), true, - `Unexpected error message found.` + `Unexpected error message found.`, ); }); @@ -1302,7 +1300,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { entityType, "nonexisting", managementTopic1, - managementSubscription1 + managementSubscription1, ); } catch (err: any) { error = err; @@ -1315,7 +1313,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { error.message.startsWith("SubCode") || error.message.startsWith("No service"), true, - `Unexpected error message found.` + `Unexpected error message found.`, ); }); @@ -1353,7 +1351,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { entityType, "notexisting", managementTopic1, - managementSubscription1 + managementSubscription1, ); } catch (err: any) { error = err; @@ -1371,11 +1369,11 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { error.message.startsWith("SubCode") || error.message.startsWith("No service"), true, - `Unexpected error message found.` + `Unexpected error message found.`, ); }); }); - } + }, ); // Topic tests @@ -1445,7 +1443,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { undefined, true, undefined, - testCase.input + testCase.input, ); should.equal(response.name, managementTopic1, "Topic name mismatch"); @@ -1556,13 +1554,13 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { true, undefined, undefined, - testCase.input + testCase.input, ); should.equal( response.subscriptionName, managementSubscription1, - "Subscription name mismatch" + "Subscription name mismatch", ); assert.deepEqual(response, testCase.output); @@ -1570,7 +1568,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { const ruleResponse = await serviceBusAtomManagementClient.getRule( response.topicName, response.subscriptionName, - testCase.input.defaultRuleOptions.name + testCase.input.defaultRuleOptions.name, ); assert.deepEqual(ruleResponse, testCase.input.defaultRuleOptions); } @@ -1646,19 +1644,19 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { true, undefined, undefined, - testCase.input + testCase.input, ); should.equal( response.subscriptionName, managementSubscription1, - "Subscription name mismatch" + "Subscription name mismatch", ); should.equal(response.forwardTo, testCase.output.forwardTo, "forwardTo value mismatch"); should.equal( response.forwardDeadLetteredMessagesTo, testCase.output.forwardDeadLetteredMessagesTo, - "forwardDeadLetteredMessagesTo value mismatch" + "forwardDeadLetteredMessagesTo value mismatch", ); }); }); @@ -1775,7 +1773,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { undefined, undefined, true, - testCase.input + testCase.input, ); should.equal(response.name, managementQueue1, "Queue name mismatch"); @@ -1832,14 +1830,14 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { undefined, undefined, true, - testCase.input + testCase.input, ); should.equal(response.forwardTo, testCase.output.forwardTo, "forwardTo value mismatch"); should.equal( response.forwardDeadLetteredMessagesTo, testCase.output.forwardDeadLetteredMessagesTo, - "forwardDeadLetteredMessagesTo value mismatch" + "forwardDeadLetteredMessagesTo value mismatch", ); }); }); @@ -1969,7 +1967,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { undefined, undefined, undefined, - testCase.input + testCase.input, ); should.equal(response.name, managementRule1, "Rule name mismatch"); assert.deepEqualExcluding(response, testCase.output, [ @@ -2099,7 +2097,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { undefined, undefined, true, - testCase.input + testCase.input, ); assert.deepEqualExcluding(response, testCase.output, [ @@ -2201,14 +2199,14 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { undefined, undefined, true, - testCase.input + testCase.input, ); should.equal(response.forwardTo, testCase.output.forwardTo, "forwardTo value mismatch"); should.equal( response.forwardDeadLetteredMessagesTo, testCase.output.forwardDeadLetteredMessagesTo, - "forwardDeadLetteredMessagesTo value mismatch" + "forwardDeadLetteredMessagesTo value mismatch", ); } catch (err: any) { checkForValidErrorScenario(err, testCase.output); @@ -2268,7 +2266,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { undefined, true, undefined, - testCase.input + testCase.input, ); assert.deepEqualExcluding(response, testCase.output, [ @@ -2341,7 +2339,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { true, undefined, undefined, - testCase.input + testCase.input, ); assert.deepEqualExcluding(response, testCase.output, [ @@ -2403,14 +2401,14 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { true, undefined, undefined, - testCase.input + testCase.input, ); should.equal(response.forwardTo, testCase.output.forwardTo, "forwardTo value mismatch"); should.equal( response.forwardDeadLetteredMessagesTo, testCase.output.forwardDeadLetteredMessagesTo, - "forwardDeadLetteredMessagesTo value mismatch" + "forwardDeadLetteredMessagesTo value mismatch", ); } catch (err: any) { checkForValidErrorScenario(err, testCase.output); @@ -2428,7 +2426,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { EntityType.RULE, managementRule1, managementTopic1, - managementSubscription1 + managementSubscription1, ); }); @@ -2498,7 +2496,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { undefined, undefined, undefined, - testCase.input + testCase.input, ); assert.deepEqualExcluding(response, testCase.output, [ @@ -2522,7 +2520,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { should.equal( err.message && err.message.startsWith(expectedtestOutput.testErrorMessage), true, - `Unexpected error message prefix found.` + `Unexpected error message prefix found.`, ); } @@ -2531,7 +2529,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { should.equal( err.code && err.code.startsWith(expectedtestOutput.testErrorCode), true, - `Unexpected error code found.` + `Unexpected error code found.`, ); } @@ -2550,7 +2548,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { topicOptions?: Omit, subscriptionOptions?: Omit, ruleOptions?: Omit["defaultRuleOptions"], "name">, - atomClient: ServiceBusAdministrationClient = serviceBusAtomManagementClient + atomClient: ServiceBusAdministrationClient = serviceBusAtomManagementClient, ): Promise { if (!overrideOptions) { if (queueOptions === undefined) { @@ -2605,7 +2603,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { case EntityType.SUBSCRIPTION: { if (!topicPath) { throw new Error( - "TestError: Topic path must be passed when invoking tests on subscriptions" + "TestError: Topic path must be passed when invoking tests on subscriptions", ); } const subscriptionResponse = await atomClient.createSubscription(topicPath, entityPath, { @@ -2616,7 +2614,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { case EntityType.RULE: { if (!topicPath || !subscriptionPath) { throw new Error( - "TestError: Topic path AND subscription path must be passed when invoking tests on rules" + "TestError: Topic path AND subscription path must be passed when invoking tests on rules", ); } if (!ruleOptions?.filter) { @@ -2628,14 +2626,14 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { subscriptionPath, entityPath, ruleOptions?.filter, - ruleOptions?.action + ruleOptions?.action, ); } else { return atomClient.createRule( topicPath, subscriptionPath, entityPath, - ruleOptions?.filter + ruleOptions?.filter, ); } } @@ -2648,7 +2646,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { entityPath: string, topicPath?: string, subscriptionPath?: string, - atomClient: ServiceBusAdministrationClient = serviceBusAtomManagementClient + atomClient: ServiceBusAdministrationClient = serviceBusAtomManagementClient, ): Promise { switch (testEntityType) { case EntityType.QUEUE: { @@ -2662,7 +2660,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { case EntityType.SUBSCRIPTION: { if (!topicPath) { throw new Error( - "TestError: Topic path must be passed when invoking tests on subscriptions" + "TestError: Topic path must be passed when invoking tests on subscriptions", ); } const subscriptionResponse = await atomClient.getSubscription(topicPath, entityPath); @@ -2671,7 +2669,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { case EntityType.RULE: { if (!topicPath || !subscriptionPath) { throw new Error( - "TestError: Topic path AND subscription path must be passed when invoking tests on rules" + "TestError: Topic path AND subscription path must be passed when invoking tests on rules", ); } const ruleResponse = await atomClient.getRule(topicPath, subscriptionPath, entityPath); @@ -2684,31 +2682,29 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { async function getEntityRuntimeProperties( testEntityType: EntityType, entityPath: string, - topicPath?: string + topicPath?: string, ): Promise { switch (testEntityType) { case EntityType.QUEUE: { - const queueResponse = await serviceBusAtomManagementClient.getQueueRuntimeProperties( - entityPath - ); + const queueResponse = + await serviceBusAtomManagementClient.getQueueRuntimeProperties(entityPath); return queueResponse; } case EntityType.TOPIC: { - const topicResponse = await serviceBusAtomManagementClient.getTopicRuntimeProperties( - entityPath - ); + const topicResponse = + await serviceBusAtomManagementClient.getTopicRuntimeProperties(entityPath); return topicResponse; } case EntityType.SUBSCRIPTION: { if (!topicPath) { throw new Error( - "TestError: Topic path must be passed when invoking tests on subscriptions" + "TestError: Topic path must be passed when invoking tests on subscriptions", ); } const subscriptionResponse = await serviceBusAtomManagementClient.getSubscriptionRuntimeProperties( topicPath, - entityPath + entityPath, ); return subscriptionResponse; } @@ -2718,30 +2714,27 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { async function getEntitiesRuntimeProperties( testEntityType: EntityType, - topicPath?: string + topicPath?: string, ): Promise { switch (testEntityType) { case EntityType.QUEUE: { - const queueResponse = await serviceBusAtomManagementClient[ - "getQueuesRuntimeProperties" - ](); + const queueResponse = + await serviceBusAtomManagementClient["getQueuesRuntimeProperties"](); return queueResponse; } case EntityType.TOPIC: { - const topicResponse = await serviceBusAtomManagementClient[ - "getTopicsRuntimeProperties" - ](); + const topicResponse = + await serviceBusAtomManagementClient["getTopicsRuntimeProperties"](); return topicResponse; } case EntityType.SUBSCRIPTION: { if (!topicPath) { throw new Error( - "TestError: Topic path must be passed when invoking tests on subscriptions" + "TestError: Topic path must be passed when invoking tests on subscriptions", ); } - const subscriptionResponse = await serviceBusAtomManagementClient[ - "getSubscriptionsRuntimeProperties" - ](topicPath); + const subscriptionResponse = + await serviceBusAtomManagementClient["getSubscriptionsRuntimeProperties"](topicPath); return subscriptionResponse; } } @@ -2753,7 +2746,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { entityPath: string, topicPath?: string, subscriptionPath?: string, - atomClient: ServiceBusAdministrationClient = serviceBusAtomManagementClient + atomClient: ServiceBusAdministrationClient = serviceBusAtomManagementClient, ): Promise { switch (testEntityType) { case EntityType.QUEUE: { @@ -2767,7 +2760,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { case EntityType.SUBSCRIPTION: { if (!topicPath) { throw new Error( - "TestError: Topic path must be passed when invoking tests on subscriptions" + "TestError: Topic path must be passed when invoking tests on subscriptions", ); } const subscriptionResponse = await atomClient.subscriptionExists(topicPath, entityPath); @@ -2776,7 +2769,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { case EntityType.RULE: { if (!topicPath || !subscriptionPath) { throw new Error( - "TestError: topic path and subscription path must be passed when invoking tests on rules" + "TestError: topic path and subscription path must be passed when invoking tests on rules", ); } const ruleResponse = await atomClient.ruleExists(topicPath, subscriptionPath, entityPath); @@ -2796,7 +2789,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { topicOptions?: Omit, subscriptionOptions?: Omit, ruleOptions?: Omit, - atomClient: ServiceBusAdministrationClient = serviceBusAtomManagementClient + atomClient: ServiceBusAdministrationClient = serviceBusAtomManagementClient, ): Promise { if (!overrideOptions) { if (queueOptions === undefined) { @@ -2860,7 +2853,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { case EntityType.SUBSCRIPTION: { if (!topicPath) { throw new Error( - "TestError: Topic path must be passed when invoking tests on subscriptions" + "TestError: Topic path must be passed when invoking tests on subscriptions", ); } const getSubscriptionResponse = await atomClient.getSubscription(topicPath, entityPath); @@ -2873,7 +2866,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { case EntityType.RULE: { if (!topicPath || !subscriptionPath) { throw new Error( - "TestError: Topic path AND subscription path must be passed when invoking tests on rules" + "TestError: Topic path AND subscription path must be passed when invoking tests on rules", ); } const getRuleResponse = await atomClient.getRule(topicPath, subscriptionPath, entityPath); @@ -2891,7 +2884,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { entityPath: string, topicPath?: string, subscriptionPath?: string, - atomClient: ServiceBusAdministrationClient = serviceBusAtomManagementClient + atomClient: ServiceBusAdministrationClient = serviceBusAtomManagementClient, ): Promise { switch (testEntityType) { case EntityType.QUEUE: { @@ -2905,7 +2898,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { case EntityType.SUBSCRIPTION: { if (!topicPath) { throw new Error( - "TestError: Topic path must be passed when invoking tests on subscriptions" + "TestError: Topic path must be passed when invoking tests on subscriptions", ); } const subscriptionResponse = await atomClient.deleteSubscription(topicPath, entityPath); @@ -2914,7 +2907,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { case EntityType.RULE: { if (!topicPath || !subscriptionPath) { throw new Error( - "TestError: Topic path AND subscription path must be passed when invoking tests on rules" + "TestError: Topic path AND subscription path must be passed when invoking tests on rules", ); } const ruleResponse = await atomClient.deleteRule(topicPath, subscriptionPath, entityPath); @@ -2929,7 +2922,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { topicPath?: string, subscriptionPath?: string, skip?: number, - maxCount?: number + maxCount?: number, ): Promise { switch (testEntityType) { case EntityType.QUEUE: { @@ -2949,25 +2942,25 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { case EntityType.SUBSCRIPTION: { if (!topicPath) { throw new Error( - "TestError: Topic path must be passed when invoking tests on subscriptions" + "TestError: Topic path must be passed when invoking tests on subscriptions", ); } const subscriptionResponse = await serviceBusAtomManagementClient["getSubscriptions"]( topicPath, - { skip, maxCount } + { skip, maxCount }, ); return subscriptionResponse; } case EntityType.RULE: { if (!topicPath || !subscriptionPath) { throw new Error( - "TestError: Topic path AND subscription path must be passed when invoking tests on rules" + "TestError: Topic path AND subscription path must be passed when invoking tests on rules", ); } const ruleResponse = await serviceBusAtomManagementClient["getRules"]( topicPath, subscriptionPath, - { skip, maxCount } + { skip, maxCount }, ); return ruleResponse; } @@ -2988,7 +2981,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { function setEntityNameWithMaxSize( type: EntityType.QUEUE | EntityType.TOPIC, - maxSize?: number + maxSize?: number, ): void { entityNameWithmaxSize = { entityName: `${type}-${maxSize}`, @@ -3001,7 +2994,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { } async function verifyAndDeleteEntity( - type: EntityType.QUEUE | EntityType.TOPIC + type: EntityType.QUEUE | EntityType.TOPIC, ): Promise { assert.equal( ( @@ -3010,18 +3003,18 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { entityNameWithmaxSize.entityName, undefined, undefined, - atomClient + atomClient, ) ).maxMessageSizeInKilobytes, entityNameWithmaxSize.maxSize, - "Unexpected size returned with getEntity" + "Unexpected size returned with getEntity", ); await deleteEntity( type, entityNameWithmaxSize.entityName, undefined, undefined, - atomClient + atomClient, ); } @@ -3043,11 +3036,11 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { options, undefined, undefined, - atomClient + atomClient, ) ).maxMessageSizeInKilobytes, options.maxMessageSizeInKilobytes, - "Unexpected size returned with createEntity" + "Unexpected size returned with createEntity", ); await verifyAndDeleteEntity(type); }); @@ -3067,7 +3060,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { undefined, undefined, undefined, - atomClient + atomClient, ); assert.equal( ( @@ -3081,11 +3074,11 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { options, undefined, undefined, - atomClient + atomClient, ) ).maxMessageSizeInKilobytes, options.maxMessageSizeInKilobytes, - "Unexpected size returned with updateEntity" + "Unexpected size returned with updateEntity", ); await verifyAndDeleteEntity(type); }); @@ -3095,7 +3088,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { type, Math.random() > 0.5 ? Math.ceil(Math.random() * 1023) // < 1024 - : Math.ceil(102400 + Math.random() * 1024) // > 102400 + : Math.ceil(102400 + Math.random() * 1024), // > 102400 ); const options: CreateQueueOptions | CreateTopicOptions = { maxMessageSizeInKilobytes: entityNameWithmaxSize.maxSize, @@ -3112,7 +3105,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { options, undefined, undefined, - atomClient + atomClient, ); } catch (err: any) { error = err; @@ -3120,7 +3113,7 @@ versionsToTest(serviceApiVersions, {}, (serviceVersion) => { assert.include( error.message, "value for 'MaxMessageSizeInKilobytes' must be between 1024 and 102400", - "Did not get the error message that says 'MaxMessageSizeInKilobytes' must be between 1024 and 102400" + "Did not get the error message that says 'MaxMessageSizeInKilobytes' must be between 1024 and 102400", ); }); }); diff --git a/sdk/servicebus/service-bus/test/public/deferredMessage.spec.ts b/sdk/servicebus/service-bus/test/public/deferredMessage.spec.ts index b23331172ab8..ce4a1714beea 100644 --- a/sdk/servicebus/service-bus/test/public/deferredMessage.spec.ts +++ b/sdk/servicebus/service-bus/test/public/deferredMessage.spec.ts @@ -43,7 +43,7 @@ describe("Deferred Messages", () => { receiver = await serviceBusClient.test.createPeekLockReceiver(entityNames); sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!) + serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!), ); deadLetterReceiver = serviceBusClient.test.createDeadLetterReceiver(entityNames); @@ -59,7 +59,7 @@ describe("Deferred Messages", () => { await beforeEachTest(noSessionTestClientType); const msgs = await receiver.receiveDeferredMessages([]); should.equal(msgs.length, 0); - } + }, ); it( @@ -68,7 +68,7 @@ describe("Deferred Messages", () => { await beforeEachTest(withSessionTestClientType); const msgs = await receiver.receiveDeferredMessages([]); should.equal(msgs.length, 0); - } + }, ); /** @@ -79,7 +79,7 @@ describe("Deferred Messages", () => { */ async function deferMessage( testMessage: ServiceBusMessage, - passSequenceNumberInArray: boolean + passSequenceNumberInArray: boolean, ): Promise { await sender.sendMessages(testMessage); const receivedMsgs = await receiver.receiveMessages(1); @@ -90,7 +90,7 @@ describe("Deferred Messages", () => { should.equal( receivedMsgs[0].messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); if (!receivedMsgs[0].sequenceNumber) { @@ -100,7 +100,7 @@ describe("Deferred Messages", () => { await receiver.deferMessage(receivedMsgs[0]); const [deferredMsg] = await receiver.receiveDeferredMessages( - passSequenceNumberInArray ? [sequenceNumber] : sequenceNumber + passSequenceNumberInArray ? [sequenceNumber] : sequenceNumber, ); if (!deferredMsg) { throw "No message received for sequence number"; @@ -109,13 +109,13 @@ describe("Deferred Messages", () => { should.equal( !!(deferredMsg as any)["delivery"], true, - "Deferred msg should have delivery! We use this assumption to differentiate between deferred msg and other messages when settling." + "Deferred msg should have delivery! We use this assumption to differentiate between deferred msg and other messages when settling.", ); should.equal(deferredMsg.body, testMessage.body, "MessageBody is different than expected"); should.equal( deferredMsg.messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal(deferredMsg.deliveryCount, 1, "DeliveryCount is different than expected"); @@ -125,7 +125,7 @@ describe("Deferred Messages", () => { async function completeDeferredMessage( sequenceNumber: Long, expectedDeliverCount: number, - testMessages: ServiceBusMessage + testMessages: ServiceBusMessage, ): Promise { await testPeekMsgsLength(receiver, 1); @@ -138,12 +138,12 @@ describe("Deferred Messages", () => { should.equal( deferredMsg.deliveryCount, expectedDeliverCount, - "DeliveryCount is different than expected" + "DeliveryCount is different than expected", ); should.equal( deferredMsg.messageId, testMessages.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await receiver.completeMessage(deferredMsg); @@ -169,7 +169,7 @@ describe("Deferred Messages", () => { async function (): Promise { await beforeEachTest(noSessionTestClientType); await testAbandon(); - } + }, ); it( @@ -178,7 +178,7 @@ describe("Deferred Messages", () => { async function (): Promise { await beforeEachTest(withSessionTestClientType); await testAbandon(); - } + }, ); async function testDefer(): Promise { @@ -198,7 +198,7 @@ describe("Deferred Messages", () => { async function (): Promise { await beforeEachTest(noSessionTestClientType); await testDefer(); - } + }, ); it( @@ -207,7 +207,7 @@ describe("Deferred Messages", () => { async function (): Promise { await beforeEachTest(withSessionTestClientType); await testDefer(); - } + }, ); async function testDeadletter(): Promise { @@ -226,13 +226,13 @@ describe("Deferred Messages", () => { should.equal( deadLetterMsgs[0].body, testMessages.body, - "MessageBody is different than expected" + "MessageBody is different than expected", ); should.equal(deadLetterMsgs[0].deliveryCount, 1, "DeliveryCount is different than expected"); should.equal( deadLetterMsgs[0].messageId, testMessages.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await receiver.completeMessage(deadLetterMsgs[0]); @@ -245,7 +245,7 @@ describe("Deferred Messages", () => { async function (): Promise { await beforeEachTest(noSessionTestClientType); await testDeadletter(); - } + }, ); it( @@ -253,7 +253,7 @@ describe("Deferred Messages", () => { async function (): Promise { await beforeEachTest(withSessionTestClientType); await testDeadletter(); - } + }, ); it(`${noSessionTestClientType}: renewLock on a deferred message`, async function (): Promise { @@ -270,7 +270,7 @@ describe("Deferred Messages", () => { should.equal( lockedUntilAfterRenewlock > lockedUntilBeforeRenewlock!, true, - "MessageLock did not get renewed!" + "MessageLock did not get renewed!", ); await receiver.deferMessage(deferredMsg); await completeDeferredMessage(sequenceNumber, 2, testMessages); diff --git a/sdk/servicebus/service-bus/test/public/invalidParameters.spec.ts b/sdk/servicebus/service-bus/test/public/invalidParameters.spec.ts index 71916faa1e3d..32aa64be15f8 100644 --- a/sdk/servicebus/service-bus/test/public/invalidParameters.spec.ts +++ b/sdk/servicebus/service-bus/test/public/invalidParameters.spec.ts @@ -33,16 +33,16 @@ describe("invalid parameters", () => { // new sender/receiver clients before each test. Doing it once for each describe block. before(async () => { const entityNames = await serviceBusClient.test.createTestEntities( - TestClientType.PartitionedQueueWithSessions + TestClientType.PartitionedQueueWithSessions, ); sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue!) + serviceBusClient.createSender(entityNames.queue!), ); receiver = await serviceBusClient.test.acceptSessionWithPeekLock( entityNames, - TestMessage.sessionId + TestMessage.sessionId, ); await sender.sendMessages(TestMessage.getSessionSample()); @@ -56,7 +56,7 @@ describe("invalid parameters", () => { let errorCaught: string = ""; try { const { queue } = serviceBusClient.test.getTestEntities( - TestClientType.PartitionedQueueWithSessions + TestClientType.PartitionedQueueWithSessions, ); await serviceBusClient.acceptSession(queue!, TestMessage.sessionId, { @@ -68,7 +68,7 @@ describe("invalid parameters", () => { should.equal( errorCaught, `Invalid receiveMode '123' provided. Valid values are 'peekLock' and 'receiveAndDelete'`, - "Did not throw error if created a client with invalid receiveMode." + "Did not throw error if created a client with invalid receiveMode.", ); }); @@ -81,7 +81,7 @@ describe("invalid parameters", () => { } catch (error: any) { should.equal(error && error.name, "TypeError"); expect(error.message, "Validation error for maxMessageCount not thrown").includes( - "maxMessageCount" + "maxMessageCount", ); } }); @@ -96,7 +96,7 @@ describe("invalid parameters", () => { } catch (error: any) { should.equal(error && error.name, "TypeError"); expect(error.message, "Validation error for maxMessageCount not thrown").includes( - "maxMessageCount" + "maxMessageCount", ); } }); @@ -113,7 +113,7 @@ describe("invalid parameters", () => { } catch (error: any) { should.equal(error && error.name, "TypeError"); expect(error.message, "Validation error for maxMessageCount not thrown").includes( - "maxMessageCount" + "maxMessageCount", ); } }); @@ -129,7 +129,7 @@ describe("invalid parameters", () => { should.equal(caughtError && caughtError.name, "TypeError"); should.equal( caughtError && caughtError.message, - `The parameter "fromSequenceNumber" should be of type "Long"` + `The parameter "fromSequenceNumber" should be of type "Long"`, ); }); @@ -144,7 +144,7 @@ describe("invalid parameters", () => { should.equal(caughtError && caughtError.name, "TypeError"); should.equal( caughtError && caughtError.message, - `The parameter "fromSequenceNumber" should be of type "Long"` + `The parameter "fromSequenceNumber" should be of type "Long"`, ); }); }); @@ -181,7 +181,7 @@ describe("invalid parameters", () => { should.equal(caughtError && caughtError.name, "TypeError"); should.equal( caughtError && caughtError.message, - `The parameter "sequenceNumbers" should be of type "Long"` + `The parameter "sequenceNumbers" should be of type "Long"`, ); }); @@ -206,7 +206,7 @@ describe("invalid parameters", () => { should.equal(caughtError && caughtError.name, "TypeError"); should.equal( caughtError && caughtError.message, - `The parameter "sequenceNumbers" should be an array of type "Long"` + `The parameter "sequenceNumbers" should be an array of type "Long"`, ); }); }); @@ -228,7 +228,7 @@ describe("invalid parameters", () => { should.equal( errorCaught, `Invalid receiveMode '123' provided. Valid values are 'peekLock' and 'receiveAndDelete'`, - "Did not throw error if created a client with invalid receiveMode." + "Did not throw error if created a client with invalid receiveMode.", ); }); @@ -243,7 +243,7 @@ describe("invalid parameters", () => { should.equal( errorCaught, `Invalid subQueueType '123' provided. Valid values are 'deadLetter' and 'transferDeadLetter'`, - "Did not throw error if created a client with invalid subQueue." + "Did not throw error if created a client with invalid subQueue.", ); }); @@ -256,7 +256,7 @@ describe("invalid parameters", () => { } catch (error: any) { should.equal(error && error.name, "TypeError"); expect(error.message, "Validation error for maxMessageCount not thrown").includes( - "maxMessageCount" + "maxMessageCount", ); } }); @@ -271,7 +271,7 @@ describe("invalid parameters", () => { } catch (error: any) { should.equal(error && error.name, "TypeError"); expect(error.message, "Validation error for maxMessageCount not thrown").includes( - "maxMessageCount" + "maxMessageCount", ); } }); @@ -288,7 +288,7 @@ describe("invalid parameters", () => { } catch (error: any) { should.equal(error && error.name, "TypeError"); expect(error.message, "Validation error for maxMessageCount not thrown").includes( - "maxMessageCount" + "maxMessageCount", ); } }); @@ -304,7 +304,7 @@ describe("invalid parameters", () => { should.equal(caughtError && caughtError.name, "TypeError"); should.equal( caughtError && caughtError.message, - `The parameter "fromSequenceNumber" should be of type "Long"` + `The parameter "fromSequenceNumber" should be of type "Long"`, ); }); @@ -319,7 +319,7 @@ describe("invalid parameters", () => { should.equal(caughtError && caughtError.name, "TypeError"); should.equal( caughtError && caughtError.message, - `The parameter "fromSequenceNumber" should be of type "Long"` + `The parameter "fromSequenceNumber" should be of type "Long"`, ); }); }); @@ -356,7 +356,7 @@ describe("invalid parameters", () => { should.equal(caughtError && caughtError.name, "TypeError"); should.equal( caughtError && caughtError.message, - `The parameter "sequenceNumbers" should be of type "Long"` + `The parameter "sequenceNumbers" should be of type "Long"`, ); }); @@ -381,7 +381,7 @@ describe("invalid parameters", () => { should.equal(caughtError && caughtError.name, "TypeError"); should.equal( caughtError && caughtError.message, - `The parameter "sequenceNumbers" should be an array of type "Long"` + `The parameter "sequenceNumbers" should be an array of type "Long"`, ); }); }); @@ -402,7 +402,7 @@ describe("invalid parameters", () => { should.equal(caughtError && caughtError.name, "TypeError"); should.equal( caughtError && caughtError.message, - `Missing parameter "scheduledEnqueueTimeUtc"` + `Missing parameter "scheduledEnqueueTimeUtc"`, ); }); @@ -427,7 +427,7 @@ describe("invalid parameters", () => { should.equal(caughtError && caughtError.name, "TypeError"); should.equal( caughtError && caughtError.message, - `The parameter "sequenceNumbers" should be of type "Long"` + `The parameter "sequenceNumbers" should be of type "Long"`, ); }); @@ -452,7 +452,7 @@ describe("invalid parameters", () => { should.equal(caughtError && caughtError.name, "TypeError"); should.equal( caughtError && caughtError.message, - `The parameter "sequenceNumbers" should be an array of type "Long"` + `The parameter "sequenceNumbers" should be an array of type "Long"`, ); }); }); diff --git a/sdk/servicebus/service-bus/test/public/managementClient.spec.ts b/sdk/servicebus/service-bus/test/public/managementClient.spec.ts index e249bb9d59bb..87725255845e 100644 --- a/sdk/servicebus/service-bus/test/public/managementClient.spec.ts +++ b/sdk/servicebus/service-bus/test/public/managementClient.spec.ts @@ -19,7 +19,7 @@ describe("ManagementClient - disconnects", function (): void { receiver = await serviceBusClient.test.createPeekLockReceiver(entityNames); sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!) + serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!), ); } before(() => { @@ -77,7 +77,7 @@ describe("ManagementClient - disconnects", function (): void { const deliveryIds = await sender.scheduleMessages( TestMessage.getSample(), - new Date("2020-04-25T12:00:00Z") + new Date("2020-04-25T12:00:00Z"), ); deliveryIds.length.should.equal(1, "Unexpected number of scheduled messages."); @@ -96,7 +96,7 @@ describe("ManagementClient - disconnects", function (): void { // peek additional messages const [deliveryId] = await sender.scheduleMessages( TestMessage.getSample(), - new Date("2020-04-25T12:00:00Z") + new Date("2020-04-25T12:00:00Z"), ); deliveryIds.push(deliveryId); deliveryIds.length.should.equal(2, "Unexpected number of scheduled messages."); diff --git a/sdk/servicebus/service-bus/test/public/propsToModify.spec.ts b/sdk/servicebus/service-bus/test/public/propsToModify.spec.ts index 11a4759ff924..8533bb5dead8 100644 --- a/sdk/servicebus/service-bus/test/public/propsToModify.spec.ts +++ b/sdk/servicebus/service-bus/test/public/propsToModify.spec.ts @@ -31,7 +31,7 @@ describe("dead lettering", () => { // send a test message with the body being the title of the test (for something unique) const sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue) + serviceBusClient.createSender(entityNames.queue), ); await sender.sendMessages({ @@ -44,7 +44,7 @@ describe("dead lettering", () => { serviceBusClient.createReceiver(entityNames.queue, { receiveMode: "receiveAndDelete", subQueueType: "deadLetter", - }) + }), ); receiver = await serviceBusClient.test.createPeekLockReceiver(entityNames); @@ -71,7 +71,7 @@ describe("dead lettering", () => { await receiver.deferMessage(receivedMessage); const [deferredMessage] = await receiver.receiveDeferredMessages( - receivedMessage.sequenceNumber! + receivedMessage.sequenceNumber!, ); await receiver.deadLetterMessage(deferredMessage, { @@ -113,7 +113,7 @@ describe("dead lettering", () => { await receiver.deferMessage(receivedMessage); const [deferredMessage] = await receiver.receiveDeferredMessages( - receivedMessage.sequenceNumber! + receivedMessage.sequenceNumber!, ); await receiver.deadLetterMessage(deferredMessage, { @@ -186,7 +186,7 @@ describe("abandoning", () => { // send a test message with the body being the title of the test (for something unique) const sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue) + serviceBusClient.createSender(entityNames.queue), ); await sender.sendMessages({ @@ -215,7 +215,7 @@ describe("abandoning", () => { await receiver.deferMessage(receivedMessage); const [deferredMessage] = await receiver.receiveDeferredMessages( - receivedMessage.sequenceNumber! + receivedMessage.sequenceNumber!, ); await receiver.abandonMessage(deferredMessage, { @@ -223,7 +223,7 @@ describe("abandoning", () => { }); const [abandonedMessage] = await receiver.receiveDeferredMessages( - deferredMessage!.sequenceNumber! + deferredMessage!.sequenceNumber!, ); await checkAbandonedMessage(abandonedMessage!, { customProperty: "hello, setting this custom property", @@ -248,7 +248,7 @@ describe("abandoning", () => { await receiver.deferMessage(receivedMessage); const [deferredMessage] = await receiver.receiveDeferredMessages( - receivedMessage.sequenceNumber! + receivedMessage.sequenceNumber!, ); await receiver.abandonMessage(deferredMessage, { @@ -256,7 +256,7 @@ describe("abandoning", () => { }); const [abandonedMessage] = await receiver.receiveDeferredMessages( - deferredMessage!.sequenceNumber! + deferredMessage!.sequenceNumber!, ); await checkAbandonedMessage(abandonedMessage!, { customProperty: "hello, setting this custom property", @@ -277,7 +277,7 @@ describe("abandoning", () => { async function checkAbandonedMessage( abandonedMessage: ServiceBusReceivedMessage, - expected: { customProperty?: string } + expected: { customProperty?: string }, ): Promise { should.exist(abandonedMessage); @@ -309,7 +309,7 @@ describe("deferring", () => { // send a test message with the body being the title of the test (for something unique) const sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue) + serviceBusClient.createSender(entityNames.queue), ); await sender.sendMessages({ @@ -338,7 +338,7 @@ describe("deferring", () => { await receiver.deferMessage(receivedMessage); const [deferredMessage] = await receiver.receiveDeferredMessages( - receivedMessage.sequenceNumber! + receivedMessage.sequenceNumber!, ); await receiver.deferMessage(deferredMessage!, { @@ -367,7 +367,7 @@ describe("deferring", () => { await receiver.deferMessage(receivedMessage); const [deferredMessage] = await receiver.receiveDeferredMessages( - receivedMessage.sequenceNumber! + receivedMessage.sequenceNumber!, ); await receiver.deferMessage(deferredMessage, { @@ -392,7 +392,7 @@ describe("deferring", () => { async function checkDeferredMessage(expected: { customProperty?: string }): Promise { const [deferredMessage] = await receiver.receiveDeferredMessages( - receivedMessage.sequenceNumber! + receivedMessage.sequenceNumber!, ); should.exist(deferredMessage); diff --git a/sdk/servicebus/service-bus/test/public/renewLockSessions.spec.ts b/sdk/servicebus/service-bus/test/public/renewLockSessions.spec.ts index f5d3bb37e3d2..03e7ed615bdc 100644 --- a/sdk/servicebus/service-bus/test/public/renewLockSessions.spec.ts +++ b/sdk/servicebus/service-bus/test/public/renewLockSessions.spec.ts @@ -37,7 +37,7 @@ describe("Session Lock Renewal", () => { const entityNames = await serviceBusClient.test.createTestEntities(testClientType); sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!) + serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!), ); sessionId = Date.now().toString(); @@ -72,7 +72,7 @@ describe("Session Lock Renewal", () => { async function (): Promise { await beforeEachTest(0); await testBatchReceiverManualLockRenewalHappyCase(); - } + }, ); it( @@ -80,7 +80,7 @@ describe("Session Lock Renewal", () => { async function (): Promise { await beforeEachTest(0); await testBatchReceiverManualLockRenewalErrorOnLockExpiry(testClientType); - } + }, ); it( @@ -88,7 +88,7 @@ describe("Session Lock Renewal", () => { async function (): Promise { await beforeEachTest(0); await testStreamingReceiverManualLockRenewalHappyCase(); - } + }, ); it( @@ -103,7 +103,7 @@ describe("Session Lock Renewal", () => { await beforeEachTest(options.maxAutoRenewLockDurationInMs); await testAutoLockRenewalConfigBehavior(options); - } + }, ); it( @@ -117,7 +117,7 @@ describe("Session Lock Renewal", () => { await beforeEachTest(options.maxAutoRenewLockDurationInMs); await testAutoLockRenewalConfigBehavior(options); - } + }, ); const lockDurationInMilliseconds = 30000; @@ -141,7 +141,7 @@ describe("Session Lock Renewal", () => { // Compute expected initial lock expiry time const expectedLockExpiryTimeUtc = new Date(); expectedLockExpiryTimeUtc.setSeconds( - expectedLockExpiryTimeUtc.getSeconds() + lockDurationInMilliseconds / 1000 + expectedLockExpiryTimeUtc.getSeconds() + lockDurationInMilliseconds / 1000, ); should.equal(Array.isArray(msgs), true, "`ReceivedMessages` is not an array"); @@ -153,7 +153,7 @@ describe("Session Lock Renewal", () => { assertTimestampsAreApproximatelyEqual( receiver.sessionLockedUntilUtc, expectedLockExpiryTimeUtc, - "Initial" + "Initial", ); await delay(5000); @@ -166,7 +166,7 @@ describe("Session Lock Renewal", () => { assertTimestampsAreApproximatelyEqual( receiver.sessionLockedUntilUtc, expectedLockExpiryTimeUtc, - "After renewlock()" + "After renewlock()", ); await receiver.completeMessage(msgs[0]); @@ -176,7 +176,7 @@ describe("Session Lock Renewal", () => { * Test settling of message from Batch Receiver fails after session lock expires */ async function testBatchReceiverManualLockRenewalErrorOnLockExpiry( - entityType: TestClientType + entityType: TestClientType, ): Promise { const testMessage = getTestMessage(); testMessage.body = `testBatchReceiverManualLockRenewalErrorOnLockExpiry-${Date.now().toString()}`; @@ -226,25 +226,25 @@ describe("Session Lock Renewal", () => { should.equal( brokeredMessage.body, testMessage.body, - "MessageBody is different than expected" + "MessageBody is different than expected", ); should.equal( brokeredMessage.messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); // Compute expected initial lock expiry time const expectedLockExpiryTimeUtc = new Date(); expectedLockExpiryTimeUtc.setSeconds( - expectedLockExpiryTimeUtc.getSeconds() + lockDurationInMilliseconds / 1000 + expectedLockExpiryTimeUtc.getSeconds() + lockDurationInMilliseconds / 1000, ); // Verify initial expiry time on session assertTimestampsAreApproximatelyEqual( receiver.sessionLockedUntilUtc, expectedLockExpiryTimeUtc, - "Initial" + "Initial", ); await delay(5000); @@ -257,7 +257,7 @@ describe("Session Lock Renewal", () => { assertTimestampsAreApproximatelyEqual( receiver.sessionLockedUntilUtc, expectedLockExpiryTimeUtc, - "After renewlock()" + "After renewlock()", ); await receiver.completeMessage(brokeredMessage); @@ -268,7 +268,7 @@ describe("Session Lock Renewal", () => { { processMessage, processError }, { autoCompleteMessages: false, - } + }, ); await delay(10000); await receiver.close(); @@ -287,7 +287,7 @@ describe("Session Lock Renewal", () => { } async function testAutoLockRenewalConfigBehavior( - options: AutoLockRenewalTestOptions + options: AutoLockRenewalTestOptions, ): Promise { let numOfMessagesReceived = 0; const testMessage = getTestMessage(); @@ -304,12 +304,12 @@ describe("Session Lock Renewal", () => { should.equal( brokeredMessage.body, testMessage.body, - "MessageBody is different than expected" + "MessageBody is different than expected", ); should.equal( brokeredMessage.messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); messagesReceived.push(brokeredMessage); @@ -332,7 +332,7 @@ describe("Session Lock Renewal", () => { }, { autoCompleteMessages: false, - } + }, ); await delay(options.delayBeforeAttemptingToCompleteMessageInSeconds * 1000 + 2000); @@ -341,7 +341,7 @@ describe("Session Lock Renewal", () => { should.equal( sessionLockLostErrorThrown, options.expectSessionLockLostErrorToBeThrown, - "SessionLockLostErrorThrown flag must match" + "SessionLockLostErrorThrown flag must match", ); should.equal(messagesReceived.length, 1, "Mismatch in number of messages received"); @@ -355,7 +355,7 @@ describe("Session Lock Renewal", () => { should.equal( errorWasThrown, options.expectSessionLockLostErrorToBeThrown, - "Error Thrown flag value mismatch" + "Error Thrown flag value mismatch", ); await receiver.close(); @@ -368,13 +368,13 @@ describe("Session Lock Renewal", () => { function assertTimestampsAreApproximatelyEqual( actualTimeInUTC: Date | undefined, expectedTimeInUTC: Date, - label: string + label: string, ): void { if (actualTimeInUTC) { should.equal( Math.pow((actualTimeInUTC.valueOf() - expectedTimeInUTC.valueOf()) / 1000, 2) < 100, // Within +/- 10 seconds true, - `${label}: Actual time ${actualTimeInUTC} must be approximately equal to ${expectedTimeInUTC}` + `${label}: Actual time ${actualTimeInUTC} must be approximately equal to ${expectedTimeInUTC}`, ); } } diff --git a/sdk/servicebus/service-bus/test/public/ruleManager.spec.ts b/sdk/servicebus/service-bus/test/public/ruleManager.spec.ts index 2569c1cfa24b..79bf3dda5514 100644 --- a/sdk/servicebus/service-bus/test/public/ruleManager.spec.ts +++ b/sdk/servicebus/service-bus/test/public/ruleManager.spec.ts @@ -68,7 +68,7 @@ describe("RuleManager tests", () => { before(async () => { const entity = await serviceBusClient.test.createTestEntities( - TestClientType.UnpartitionedSubscription + TestClientType.UnpartitionedSubscription, ); topic = entity.topic!; @@ -288,7 +288,7 @@ describe("RuleManager tests", () => { await assert.isRejected( ruleManager.createRule(ruleName, filter2), - /The messaging entity '.*ruleName' already exists./ + /The messaging entity '.*ruleName' already exists./, ); }); @@ -323,7 +323,7 @@ describe("RuleManager tests", () => { await sendMessages(sender); const receiver = serviceBusClient.test.addToCleanup( - serviceBusClient.createReceiver(topic, subscription) + serviceBusClient.createReceiver(topic, subscription), ); const received = await receiver.receiveMessages(orders.length, { @@ -380,7 +380,7 @@ describe("RuleManager tests", () => { await ruleManager.createRule( ruleName, { applicationProperties: { color: "blue" } }, - { sqlExpression: "Set priority = 'high'" } + { sqlExpression: "Set priority = 'high'" }, ); await sendMessages(sender); @@ -389,10 +389,10 @@ describe("RuleManager tests", () => { serviceBusClient, topic, subscription, - expectedOrders + expectedOrders, ); received.every((m) => - assert.ok(m.applicationProperties, "expecting valid applicationProperties on message") + assert.ok(m.applicationProperties, "expecting valid applicationProperties on message"), ); received.every((m) => assert.equal(m.applicationProperties!["priority"], "high")); }); @@ -444,7 +444,7 @@ describe("RuleManager tests", () => { await ruleManager.createRule( ruleName, { sqlExpression: "Color = 'blue'" }, - { sqlExpression: "Set priority = 'high'" } + { sqlExpression: "Set priority = 'high'" }, ); await sendMessages(sender); @@ -453,10 +453,10 @@ describe("RuleManager tests", () => { serviceBusClient, topic, subscription, - expectedOrders + expectedOrders, ); received.every((m) => - assert.ok(m.applicationProperties, "expecting valid applicationProperties on message") + assert.ok(m.applicationProperties, "expecting valid applicationProperties on message"), ); received.every((m) => assert.equal(m.applicationProperties!["priority"], "high")); }); @@ -474,7 +474,7 @@ describe("RuleManager tests", () => { await ruleManager.createRule( ruleName, { sqlExpression: "Color = 'blue'" }, - { abortSignal: undefined } + { abortSignal: undefined }, ); await sendMessages(sender); @@ -483,10 +483,10 @@ describe("RuleManager tests", () => { serviceBusClient, topic, subscription, - expectedOrders + expectedOrders, ); received.every((m) => - assert.ok(m.applicationProperties, "expecting valid applicationProperties on message") + assert.ok(m.applicationProperties, "expecting valid applicationProperties on message"), ); }); }); @@ -499,7 +499,7 @@ async function sendMessages(sender: ServiceBusSender): Promise { correlationId: order.priority, subject: order.color, applicationProperties: order as unknown as Record, - })) + })), ); } @@ -507,10 +507,10 @@ async function receiveAndValidate( serviceBusClient: ServiceBusClientForTests, topicName: string, subscriptionName: string, - expectedOrders: Order[] + expectedOrders: Order[], ) { const receiver = serviceBusClient.test.addToCleanup( - serviceBusClient.createReceiver(topicName, subscriptionName) + serviceBusClient.createReceiver(topicName, subscriptionName), ); const received: ServiceBusMessage[] = []; diff --git a/sdk/servicebus/service-bus/test/public/sendAndSchedule.spec.ts b/sdk/servicebus/service-bus/test/public/sendAndSchedule.spec.ts index caf712f39d8f..a0bd300ecfa1 100644 --- a/sdk/servicebus/service-bus/test/public/sendAndSchedule.spec.ts +++ b/sdk/servicebus/service-bus/test/public/sendAndSchedule.spec.ts @@ -46,7 +46,7 @@ describe("Sender Tests", () => { receiver = await serviceBusClient.test.createPeekLockReceiver(entityName); sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityName.queue ?? entityName.topic!) + serviceBusClient.createSender(entityName.queue ?? entityName.topic!), ); } @@ -73,7 +73,7 @@ describe("Sender Tests", () => { testMessage, receivedMessage, entityName.usesSessions, - entityName.isPartitioned + entityName.isPartitioned, ); await testPeekMsgsLength(receiver, 0); @@ -103,16 +103,16 @@ describe("Sender Tests", () => { // remove message first in case any assertion fails to ensure we don't have lingering message await receiver.completeMessage(msgs[0]); msgs[0].state.should.equal("active"); - } + }, ); async function testSimpleSendArray(): Promise { const testMessages = []; testMessages.push( - entityName.usesSessions ? TestMessage.getSessionSample() : TestMessage.getSample() + entityName.usesSessions ? TestMessage.getSessionSample() : TestMessage.getSample(), ); testMessages.push( - entityName.usesSessions ? TestMessage.getSessionSample() : TestMessage.getSample() + entityName.usesSessions ? TestMessage.getSessionSample() : TestMessage.getSample(), ); await sender.sendMessages(testMessages); @@ -129,13 +129,13 @@ describe("Sender Tests", () => { msgs[0].messageId === testMessages[0].messageId || msgs[0].messageId === testMessages[1].messageId, true, - `Unexpected message with id ${msgs[0].messageId}` + `Unexpected message with id ${msgs[0].messageId}`, ); should.equal( msgs[1].messageId === testMessages[0].messageId || msgs[1].messageId === testMessages[1].messageId, true, - `Unexpected message with id ${msgs[1].messageId}` + `Unexpected message with id ${msgs[1].messageId}`, ); if (testMessages[0].messageId === msgs[0].messageId) { @@ -143,26 +143,26 @@ describe("Sender Tests", () => { testMessages[0], msgs[0], entityName.usesSessions, - entityName.isPartitioned + entityName.isPartitioned, ); TestMessage.checkMessageContents( testMessages[1], msgs[1], entityName.usesSessions, - entityName.isPartitioned + entityName.isPartitioned, ); } else { TestMessage.checkMessageContents( testMessages[1], msgs[0], entityName.usesSessions, - entityName.isPartitioned + entityName.isPartitioned, ); TestMessage.checkMessageContents( testMessages[0], msgs[1], entityName.usesSessions, - entityName.isPartitioned + entityName.isPartitioned, ); } @@ -202,7 +202,7 @@ describe("Sender Tests", () => { } should.equal(actualErrorCode, "MessageSizeExceeded", actualErr); - } + }, ); async function testScheduleSingleMessage(): Promise { @@ -222,7 +222,7 @@ describe("Sender Tests", () => { should.equal( msgEnqueueTime - scheduleTime.valueOf() >= 0, true, - "Enqueued time must be greater than scheduled time" + "Enqueued time must be greater than scheduled time", ); // checking received message enqueue time is greater or equal to the scheduled time. should.equal(msgs[0].body, testMessage.body, "MessageBody is different than expected"); should.equal(msgs[0].messageId, testMessage.messageId, "MessageId is different than expected"); @@ -250,22 +250,22 @@ describe("Sender Tests", () => { should.equal( msgEnqueueTime1 - scheduleTime.valueOf() >= 0, true, - "msgEnqueueTime1 time must be greater than scheduled time" + "msgEnqueueTime1 time must be greater than scheduled time", ); should.equal( msgEnqueueTime2 - scheduleTime.valueOf() >= 0, true, - "msgEnqueueTime2 time must be greater than scheduled time" + "msgEnqueueTime2 time must be greater than scheduled time", ); should.equal( testMessages.some((x) => x.messageId === msgs[0].messageId), true, - "MessageId of first message is different than expected" + "MessageId of first message is different than expected", ); should.equal( testMessages.some((x) => x.messageId === msgs[1].messageId), true, - "MessageId of second message is different than expected" + "MessageId of second message is different than expected", ); await receiver.completeMessage(msgs[0]); @@ -280,7 +280,7 @@ describe("Sender Tests", () => { await beforeEachTest(anyRandomTestClientType); const sequenceNumbers = await sender.scheduleMessages([], new Date()); should.equal(sequenceNumbers.length, 0); - } + }, ); it(anyRandomTestClientType + ": Schedule single message", async function (): Promise { @@ -317,7 +317,7 @@ describe("Sender Tests", () => { const scheduleTime = new Date(Date.now() + 30000); // 30 seconds from now as anything less gives inconsistent results for cancelling const [sequenceNumber1, sequenceNumber2] = await sender.scheduleMessages( [getTestMessage(), getTestMessage()], - scheduleTime + scheduleTime, ); await delay(2000); @@ -334,7 +334,7 @@ describe("Sender Tests", () => { async function (): Promise { await beforeEachTest(anyRandomTestClientType); await sender.cancelScheduledMessages([]); - } + }, ); it( @@ -342,7 +342,7 @@ describe("Sender Tests", () => { async function (): Promise { await beforeEachTest(anyRandomTestClientType); await testCancelSingleScheduledMessage(); - } + }, ); it( @@ -350,7 +350,7 @@ describe("Sender Tests", () => { async function (): Promise { await beforeEachTest(anyRandomTestClientType); await testCancelMultipleScheduleMessages(); - } + }, ); // This test occasionally fails on macOS. @@ -382,7 +382,7 @@ describe("Sender Tests", () => { should.equal( sequenceNumber1.compare(sequenceNumber2) !== 0, true, - "Returned sequence numbers for parallel requests are the same" + "Returned sequence numbers for parallel requests are the same", ); } @@ -390,17 +390,17 @@ describe("Sender Tests", () => { should.equal(receivedMsgs.length, 3, "Unexpected number of messages"); for (const seqNum of sequenceNumbers) { const msgWithSeqNum = receivedMsgs.find( - ({ sequenceNumber }) => sequenceNumber?.comp(seqNum) === 0 + ({ sequenceNumber }) => sequenceNumber?.comp(seqNum) === 0, ); should.equal( msgWithSeqNum === undefined, false, - `Sequence number ${seqNum} is not found in the received messages!` + `Sequence number ${seqNum} is not found in the received messages!`, ); should.equal( msgWithSeqNum?.body, messages[sequenceNumbers.indexOf(seqNum)].body, - "Message body did not match though the sequence numbers matched!" + "Message body did not match though the sequence numbers matched!", ); await receiver.completeMessage(msgWithSeqNum!); } @@ -416,7 +416,7 @@ describe("Sender Tests", () => { should.equal( receivedMsgs.length, expectedReceivedMsgsLength, - "Unexpected number of msgs found when receiving" + "Unexpected number of msgs found when receiving", ); } @@ -439,8 +439,8 @@ describe("Sender Tests", () => { .then((numbers) => { should.equal(numbers.length, 1, "Expect message scheduled"); return numbers[0]; - }) - ) + }), + ), ); should.equal(msgs.length, 5, "Expect total of 5 messages scheduled"); const received = await receiver.receiveMessages(5); @@ -448,7 +448,7 @@ describe("Sender Tests", () => { for (let i = 0; i < 5; i++) { await receiver.completeMessage(received[i]); } - } + }, ); it( @@ -465,7 +465,7 @@ describe("Sender Tests", () => { } catch (err: any) { err.message.should.equal(StandardAbortMessage); } - } + }, ); it( @@ -480,7 +480,7 @@ describe("Sender Tests", () => { } catch (err: any) { err.message.should.equal(StandardAbortMessage); } - } + }, ); }); diff --git a/sdk/servicebus/service-bus/test/public/sessionsRequiredCleanEntityTests.spec.ts b/sdk/servicebus/service-bus/test/public/sessionsRequiredCleanEntityTests.spec.ts index 7151521771fa..203fe4911e2e 100644 --- a/sdk/servicebus/service-bus/test/public/sessionsRequiredCleanEntityTests.spec.ts +++ b/sdk/servicebus/service-bus/test/public/sessionsRequiredCleanEntityTests.spec.ts @@ -30,7 +30,7 @@ describe("sessions tests - requires completely clean entity for each test", () const entityNames = await serviceBusClient.test.createTestEntities(testClientType); sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!) + serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!), ); // Observation - @@ -72,7 +72,7 @@ describe("sessions tests - requires completely clean entity for each test", () ].forEach((testClientType) => { describe(testClientType + "Peek session", function (): void { async function peekSession( - sessionReceiverType: "acceptsession" | "acceptnextsession" | ":hell" + sessionReceiverType: "acceptsession" | "acceptnextsession" | ":hell", ): Promise { const testMessage = TestMessage.getSessionSample(); await sender.sendMessages(testMessage); @@ -82,7 +82,7 @@ describe("sessions tests - requires completely clean entity for each test", () if (sessionReceiverType === "acceptsession") { receiver = await serviceBusClient.test.acceptSessionWithPeekLock( entityNames, - testMessage.sessionId! + testMessage.sessionId!, ); } else if (sessionReceiverType === "acceptnextsession") { receiver = await serviceBusClient.test.acceptNextSessionWithPeekLock(entityNames); @@ -98,17 +98,17 @@ describe("sessions tests - requires completely clean entity for each test", () should.equal( peekedMsgs[0].body, testMessage.body, - "MessageBody is different than expected" + "MessageBody is different than expected", ); should.equal( peekedMsgs[0].messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal( peekedMsgs[0].sessionId, testMessage.sessionId, - "SessionId is different than expected" + "SessionId is different than expected", ); const msgs = await receiver.receiveMessages(1); @@ -117,12 +117,12 @@ describe("sessions tests - requires completely clean entity for each test", () should.equal( msgs[0].messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal( msgs[0].sessionId, testMessage.sessionId, - "SessionId is different than expected" + "SessionId is different than expected", ); await receiver.completeMessage(msgs[0]); @@ -172,10 +172,10 @@ describe("sessions tests - requires completely clean entity for each test", () (x) => msgs[0].body === x.body && msgs[0].messageId === x.messageId && - msgs[0].sessionId === x.sessionId + msgs[0].sessionId === x.sessionId, ), true, - "Received Message doesnt match any of the test messages" + "Received Message doesnt match any of the test messages", ); await receiver.completeMessage(msgs[0]); await receiver.close(); @@ -192,10 +192,10 @@ describe("sessions tests - requires completely clean entity for each test", () (x) => msgs[0].body === x.body && msgs[0].messageId === x.messageId && - msgs[0].sessionId === x.sessionId + msgs[0].sessionId === x.sessionId, ), true, - "Received Message doesnt match any of the test messages" + "Received Message doesnt match any of the test messages", ); await receiver.completeMessage(msgs[0]); await testPeekMsgsLength(receiver, 0); @@ -206,7 +206,7 @@ describe("sessions tests - requires completely clean entity for each test", () async function (): Promise { await beforeEachNoSessionTest(randomTestClientType); await testComplete_batching(); - } + }, ); }); @@ -247,7 +247,7 @@ describe("sessions tests - requires completely clean entity for each test", () testMessagesWithDifferentSessionIds[1].messageId === msgs[0].messageId && testMessagesWithDifferentSessionIds[1].sessionId === msgs[0].sessionId, true, - "Received Message doesnt match expected test message" + "Received Message doesnt match expected test message", ); await receiver.completeMessage(msgs[0]); @@ -261,7 +261,7 @@ describe("sessions tests - requires completely clean entity for each test", () await beforeEachNoSessionTest(randomTestClientType); await testComplete_batching(); }); - } + }, ); }); diff --git a/sdk/servicebus/service-bus/test/public/sessionsTests.spec.ts b/sdk/servicebus/service-bus/test/public/sessionsTests.spec.ts index 7a09eb72c54e..d69d2e249ba4 100644 --- a/sdk/servicebus/service-bus/test/public/sessionsTests.spec.ts +++ b/sdk/servicebus/service-bus/test/public/sessionsTests.spec.ts @@ -51,7 +51,7 @@ describe("session tests", () => { } sender = serviceBusClient.test.addToCleanup( - serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!) + serviceBusClient.createSender(entityNames.queue ?? entityNames.topic!), ); // Observation - @@ -96,7 +96,7 @@ describe("session tests", () => { should.equal( expectedErrorThrown, true, - `Instead of ServiceTimeout or SessionCannotBeLocked, found ${unexpectedError}` + `Instead of ServiceTimeout or SessionCannotBeLocked, found ${unexpectedError}`, ); await serviceBusClient.close(); }); @@ -107,7 +107,7 @@ describe("session tests", () => { try { await serviceBusClient.test.acceptSessionWithPeekLock( { queue: receiver.entityPath, usesSessions: true }, - "boo" + "boo", ); } catch (error: any) { if (isServiceBusError(error) && error.code === "SessionCannotBeLocked") { @@ -119,7 +119,7 @@ describe("session tests", () => { should.equal( expectedErrorThrown, true, - `Instead of SessionCannotBeLockedError, found ${unexpectedError}` + `Instead of SessionCannotBeLockedError, found ${unexpectedError}`, ); await serviceBusClient.close(); }); @@ -147,7 +147,7 @@ describe("session tests", () => { should.equal( msgs[0].messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await receiver.completeMessage(msgs[0]); await testPeekMsgsLength(receiver, 0); @@ -184,14 +184,14 @@ describe("session tests", () => { should.equal( msg.messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); await receiver.completeMessage(msg); receivedMsgs.push(msg); }, processError, }, - { autoCompleteMessages: false } + { autoCompleteMessages: false }, ); const msgsCheck = await checkWithTimeout(() => receivedMsgs.length === 1); @@ -214,12 +214,12 @@ describe("session tests", () => { should.equal( msgs[0].messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal( msgs[0].sessionId, testMessage.sessionId, - "SessionId is different than expected" + "SessionId is different than expected", ); let testState = await receiver.getSessionState(); @@ -243,12 +243,12 @@ describe("session tests", () => { should.equal( msgs[0].messageId, testMessage.messageId, - "MessageId is different than expected" + "MessageId is different than expected", ); should.equal( msgs[0].sessionId, testMessage.sessionId, - "SessionId is different than expected" + "SessionId is different than expected", ); testState = await receiver.getSessionState(); @@ -338,7 +338,7 @@ describe.skip("SessionReceiver - disconnects - (if recovery is supported in futu testMessage.sessionId, { maxAutoLockRenewalDurationInMs: 10000, // Lower this value so that test can complete in time. - } + }, ); const sender = serviceBusClient.createSender(entityName.queue!); // Send a message so we can be sure when the receiver is open and active. @@ -430,7 +430,7 @@ describe("SessionReceiver - disconnects", function (): void { testMessage.sessionId, { maxAutoLockRenewalDurationInMs: 10000, // Lower this value so that test can complete in time. - } + }, ); let receiverSecondMessageResolver: (value: unknown) => void; @@ -446,7 +446,7 @@ describe("SessionReceiver - disconnects", function (): void { should.equal(receiver.isClosed, false, "Receiver should not have been closed"); const isCloseCalledSpy = sinon.spy( (receiver as ServiceBusSessionReceiverImpl)["_messageSession"], - "close" + "close", ); // Send a message so we can be sure when the receiver is open and active. @@ -461,7 +461,7 @@ describe("SessionReceiver - disconnects", function (): void { errorIsThrownResolver(err); }, }, - { autoCompleteMessages: false } + { autoCompleteMessages: false }, ); const err = await errorIsThrown; @@ -469,7 +469,7 @@ describe("SessionReceiver - disconnects", function (): void { should.equal( (err.error as ServiceBusError).code, "SessionLockLost", - "error code is not SessionLockLost" + "error code is not SessionLockLost", ); // NOTE: this is a hokey workaround. It used to be that you'd only get the single error @@ -488,7 +488,7 @@ describe("SessionReceiver - disconnects", function (): void { testMessage.sessionId, { maxAutoLockRenewalDurationInMs: 10000, // Lower this value so that test can complete in time. - } + }, ); receiver2.subscribe({ async processMessage(_message: ServiceBusReceivedMessage) { diff --git a/sdk/servicebus/service-bus/test/public/utils/abortSignalTestUtils.ts b/sdk/servicebus/service-bus/test/public/utils/abortSignalTestUtils.ts index 0647a83b27de..4576cd33a97c 100644 --- a/sdk/servicebus/service-bus/test/public/utils/abortSignalTestUtils.ts +++ b/sdk/servicebus/service-bus/test/public/utils/abortSignalTestUtils.ts @@ -8,14 +8,14 @@ import { AbortSignalLike } from "@azure/abort-controller"; * number of times. */ export function createCountdownAbortSignal( - numTimesTillAborted: number + numTimesTillAborted: number, ): ReturnType { const countdownFn = (): boolean => { --numTimesTillAborted; if (numTimesTillAborted < 0) { throw new Error( - "We're checking abortSignal more than we thought. Our count is probably incorrect." + "We're checking abortSignal more than we thought. Our count is probably incorrect.", ); } @@ -30,7 +30,7 @@ export function createCountdownAbortSignal( * custom function passed via isAborted. */ export function createAbortSignalForTest( - isAborted: boolean | (() => boolean) = false + isAborted: boolean | (() => boolean) = false, ): AbortSignalLike & { removeWasCalled: boolean; addWasCalled: boolean; diff --git a/sdk/servicebus/service-bus/test/public/utils/envVarUtils.ts b/sdk/servicebus/service-bus/test/public/utils/envVarUtils.ts index 543d45a4b65c..b1f6f9e7cf54 100644 --- a/sdk/servicebus/service-bus/test/public/utils/envVarUtils.ts +++ b/sdk/servicebus/service-bus/test/public/utils/envVarUtils.ts @@ -49,7 +49,7 @@ export function getEnvVars(): { [key in EnvVarNames]: string } { envVars = { [EnvVarNames.SERVICEBUS_CONNECTION_STRING]: getEnvVarValue( - EnvVarNames.SERVICEBUS_CONNECTION_STRING + EnvVarNames.SERVICEBUS_CONNECTION_STRING, ), [EnvVarNames.AZURE_CLIENT_ID]: getEnvVarValue(EnvVarNames.AZURE_CLIENT_ID), [EnvVarNames.AZURE_CLIENT_SECRET]: getEnvVarValue(EnvVarNames.AZURE_CLIENT_SECRET), diff --git a/sdk/servicebus/service-bus/test/public/utils/managementUtils.ts b/sdk/servicebus/service-bus/test/public/utils/managementUtils.ts index 11af3d17c585..e21389d60200 100644 --- a/sdk/servicebus/service-bus/test/public/utils/managementUtils.ts +++ b/sdk/servicebus/service-bus/test/public/utils/managementUtils.ts @@ -34,7 +34,7 @@ function getManagementClient(): ServiceBusAdministrationClient { async function retry( operationCallback: () => void, breakConditionCallback: () => Promise, - operationDescription: string + operationDescription: string, ): Promise { const retryAttempts = 5; const retryDelayInMs = 1000; @@ -74,7 +74,7 @@ async function retry( */ export async function recreateQueue( queueName: string, - parameters?: Omit + parameters?: Omit, ): Promise { getManagementClient(); @@ -100,7 +100,7 @@ export async function recreateQueue( async (): Promise => { return !(await checkIfQueueExistsOperation()); }, - `Delete queue "${queueName}"` + `Delete queue "${queueName}"`, ); await retry(createQueueOperation, checkIfQueueExistsOperation, `Create queue "${queueName}"`); } @@ -110,7 +110,7 @@ export async function recreateQueue( */ export async function recreateTopic( topicName: string, - parameters?: Omit + parameters?: Omit, ): Promise { getManagementClient(); @@ -136,7 +136,7 @@ export async function recreateTopic( async () => { return !(await checkIfTopicExistsOperation()); }, - `Delete topic "${topicName}"` + `Delete topic "${topicName}"`, ); await retry(createTopicOperation, checkIfTopicExistsOperation, `Create topic "${topicName}"`); } @@ -149,7 +149,7 @@ export async function recreateSubscription( subscriptionName: string, parameters?: Omit & { deleteFirst?: boolean; - } + }, ): Promise { getManagementClient(); /* @@ -179,14 +179,14 @@ export async function recreateSubscription( await retry( deleteSubscriptionOperation, async () => !(await checkIfSubscriptionExistsOperation()), - `Delete subscription "${subscriptionName}"` + `Delete subscription "${subscriptionName}"`, ); } await retry( createSubscriptionOperation, checkIfSubscriptionExistsOperation, - `Create subscription "${subscriptionName}"` + `Create subscription "${subscriptionName}"`, ); } @@ -197,7 +197,7 @@ export async function verifyMessageCount( expectedMessageCount: number, queueName?: string, topicName?: string, - subscriptionName?: string + subscriptionName?: string, ): Promise { getManagementClient(); should.equal( @@ -206,7 +206,7 @@ export async function verifyMessageCount( : (await client.getSubscriptionRuntimeProperties(topicName!, subscriptionName!)) .totalMessageCount, expectedMessageCount, - `Unexpected number of messages are present in the entity.` + `Unexpected number of messages are present in the entity.`, ); } diff --git a/sdk/servicebus/service-bus/test/public/utils/misc.ts b/sdk/servicebus/service-bus/test/public/utils/misc.ts index 538ccc52cff7..f55131dac39a 100644 --- a/sdk/servicebus/service-bus/test/public/utils/misc.ts +++ b/sdk/servicebus/service-bus/test/public/utils/misc.ts @@ -5,7 +5,7 @@ import { TestTracer, setTracer, resetTracer } from "@azure/test-utils"; // some functions useful as we transition between interfaces and classes. export function setTracerForTest( - tracer?: T + tracer?: T, ): { tracer: T; resetTracer: () => void } { tracer = tracer ?? (new TestTracer() as T); setTracer(tracer); diff --git a/sdk/servicebus/service-bus/test/public/utils/testUtils.ts b/sdk/servicebus/service-bus/test/public/utils/testUtils.ts index a6ecf632bfde..0afcce007fb8 100644 --- a/sdk/servicebus/service-bus/test/public/utils/testUtils.ts +++ b/sdk/servicebus/service-bus/test/public/utils/testUtils.ts @@ -65,7 +65,7 @@ export class TestMessage { sent: ServiceBusMessage, received: ServiceBusReceivedMessage, useSessions?: boolean, - usePartitions?: boolean + usePartitions?: boolean, ): void { if (sent.applicationProperties) { if (!received.applicationProperties) { @@ -78,7 +78,7 @@ export class TestMessage { chai.assert.equal( receivedUserProperties[key], expectedUserProperties[key], - `Unexpected value for user property for ${key}` + `Unexpected value for user property for ${key}`, ); }); } @@ -89,17 +89,17 @@ export class TestMessage { chai.assert.equal( received.contentType, sent.contentType, - `Unexpected contentType in received msg` + `Unexpected contentType in received msg`, ); chai.assert.equal( received.correlationId, sent.correlationId, - `Unexpected correlationId in received msg` + `Unexpected correlationId in received msg`, ); chai.assert.equal( received.timeToLive, sent.timeToLive, - `Unexpected timeToLive in received msg` + `Unexpected timeToLive in received msg`, ); chai.assert.equal(received.to, sent.to, `Unexpected to in received msg`); chai.assert.equal(received.replyTo, sent.replyTo, `Unexpected replyTo in received msg`); @@ -109,20 +109,20 @@ export class TestMessage { chai.assert.equal( received.replyToSessionId, sent.replyToSessionId, - `Unexpected replyToSessionId in received msg` + `Unexpected replyToSessionId in received msg`, ); if (usePartitions) { chai.assert.equal( received.partitionKey, sent.sessionId, - `Unexpected partitionKey in received msg` + `Unexpected partitionKey in received msg`, ); } } else { chai.assert.equal( received.partitionKey, sent.partitionKey, - `Unexpected partitionKey in received msg` + `Unexpected partitionKey in received msg`, ); } } @@ -150,7 +150,7 @@ export enum TestClientType { export async function checkWithTimeout( predicate: () => boolean | Promise, delayBetweenRetriesInMilliseconds: number = 1000, - maxWaitTimeInMilliseconds: number = 10000 + maxWaitTimeInMilliseconds: number = 10000, ): Promise { const maxTime = Date.now() + maxWaitTimeInMilliseconds; while (Date.now() < maxTime) { @@ -209,10 +209,10 @@ export enum EntityNames { export function assertThrows( fn: () => Promise, expectedErr: Record, - assertMessage?: string + assertMessage?: string, ): Promise { const testShouldHaveThrownError = new Error( - `assert failure, an error was expected, but none was thrown: ${assertMessage}` + `assert failure, an error was expected, but none was thrown: ${assertMessage}`, ); return fn() diff --git a/sdk/servicebus/service-bus/test/public/utils/testutils2.ts b/sdk/servicebus/service-bus/test/public/utils/testutils2.ts index a153963b9b68..0667f4fba4c9 100644 --- a/sdk/servicebus/service-bus/test/public/utils/testutils2.ts +++ b/sdk/servicebus/service-bus/test/public/utils/testutils2.ts @@ -92,7 +92,7 @@ function getEntityNames(testClientType: TestClientType): AutoGeneratedEntity { async function createTestEntities( testClientType: TestClientType, - options?: { maxMessageSizeInKilobytes: number } + options?: { maxMessageSizeInKilobytes: number }, ): Promise> { const relatedEntities = getEntityNames(testClientType); @@ -175,21 +175,21 @@ export function getRandomTestClientTypeWithNoSessions(): TestClientType { * sessions enabled */ export function getRandomTestClientTypeWithSessions( - type: "all" | "subscription" | "queue" = "all" + type: "all" | "subscription" | "queue" = "all", ): TestClientType { const withSessionTestClientTypes = []; if (type === "all" || type === "queue") { withSessionTestClientTypes.push( TestClientType.PartitionedQueueWithSessions, - TestClientType.UnpartitionedQueueWithSessions + TestClientType.UnpartitionedQueueWithSessions, ); } if (type === "all" || type === "subscription") { withSessionTestClientTypes.push( TestClientType.PartitionedSubscriptionWithSessions, - TestClientType.UnpartitionedSubscriptionWithSessions + TestClientType.UnpartitionedSubscriptionWithSessions, ); } @@ -228,7 +228,7 @@ export class ServiceBusTestHelpers { async verifyAndDeleteAllSentMessages( entityNames: EntityName, - sentMessages: ServiceBusMessage[] + sentMessages: ServiceBusMessage[], ): Promise { let receiver: ServiceBusReceiver | ServiceBusSessionReceiver; let receivedMsgs: ServiceBusReceivedMessage[]; @@ -267,7 +267,7 @@ export class ServiceBusTestHelpers { should.equal( msgs.length, numOfMsgsWithSessionId[id], - `Unexpected number of messages received with session-id - "${id}".` + `Unexpected number of messages received with session-id - "${id}".`, ); receivedMsgs = !receivedMsgs! ? msgs : receivedMsgs!.concat(msgs); await receiver.close(); @@ -276,7 +276,7 @@ export class ServiceBusTestHelpers { should.equal( receivedMsgs!.length, sentMessages.length, - "Unexpected number of messages received." + "Unexpected number of messages received.", ); receivedMsgs!.forEach((receivedMessage) => { sentMessages = sentMessages.filter((sentMessage) => { @@ -305,7 +305,7 @@ export class ServiceBusTestHelpers { async purgeForClientType(...testClientTypes: TestClientType[]): Promise { await Promise.all( - testClientTypes.map((tct) => purgeForTestClientType(this._serviceBusClient, tct)) + testClientTypes.map((tct) => purgeForTestClientType(this._serviceBusClient, tct)), ); } @@ -319,7 +319,7 @@ export class ServiceBusTestHelpers { testClientType: TestClientType, options?: { maxMessageSizeInKilobytes: number; - } + }, ): Promise> { // TODO: for now these aren't randomly named. This is prep so we can // do that soon. @@ -351,7 +351,7 @@ export class ServiceBusTestHelpers { */ async createPeekLockReceiver( entityNames: Omit, "isPartitioned">, - options?: ServiceBusReceiverOptions + options?: ServiceBusReceiverOptions, ): Promise { if (entityNames.usesSessions) { // if you're creating a receiver this way then you'll just use the default @@ -367,18 +367,18 @@ export class ServiceBusTestHelpers { : this._serviceBusClient.createReceiver( entityNames.topic!, entityNames.subscription!, - options - ) + options, + ), ); } async acceptNextSessionWithPeekLock( entityNames: Omit, "isPartitioned">, - options?: ServiceBusSessionReceiverOptions + options?: ServiceBusSessionReceiverOptions, ): Promise { if (!entityNames.usesSessions) { throw new TypeError( - "Not a session-full entity - can't create a session receiver type for it" + "Not a session-full entity - can't create a session receiver type for it", ); } @@ -388,19 +388,19 @@ export class ServiceBusTestHelpers { : await this._serviceBusClient.acceptNextSession( entityNames.topic!, entityNames.subscription!, - options - ) + options, + ), ); } async acceptSessionWithPeekLock( entityNames: Omit, "isPartitioned">, sessionId: string, - options?: ServiceBusSessionReceiverOptions + options?: ServiceBusSessionReceiverOptions, ): Promise { if (!entityNames.usesSessions) { throw new TypeError( - "Not a session-full entity - can't create a session receiver type for it" + "Not a session-full entity - can't create a session receiver type for it", ); } @@ -411,8 +411,8 @@ export class ServiceBusTestHelpers { entityNames.topic!, entityNames.subscription!, sessionId, - options - ) + options, + ), ); } @@ -426,7 +426,7 @@ export class ServiceBusTestHelpers { async createReceiveAndDeleteReceiver( entityNames: Omit, "isPartitioned"> & { sessionId?: string; - } + }, ): Promise { // TODO: we should generate a random ID here - there's no harm in // creating as many sessions as we wish. Some tests will need to change. @@ -444,8 +444,8 @@ export class ServiceBusTestHelpers { sessionId, { receiveMode: "receiveAndDelete", - } - ) + }, + ), ); } else { return this.addToCleanup( @@ -455,7 +455,7 @@ export class ServiceBusTestHelpers { }) : this._serviceBusClient.createReceiver(entityNames.topic!, entityNames.subscription!, { receiveMode: "receiveAndDelete", - }) + }), ); } } @@ -468,17 +468,17 @@ export class ServiceBusTestHelpers { }) : this._serviceBusClient.createReceiver(entityNames.topic!, entityNames.subscription!, { subQueueType: "deadLetter", - }) + }), ); } async createSender( - entityNames: Omit, "isPartitioned"> + entityNames: Omit, "isPartitioned">, ): Promise { return this.addToCleanup( entityNames.queue ? this._serviceBusClient.createSender(entityNames.queue) - : this._serviceBusClient.createSender(entityNames.topic!) + : this._serviceBusClient.createSender(entityNames.topic!), ); } @@ -488,7 +488,7 @@ export class ServiceBusTestHelpers { async function purgeForTestClientType( serviceBusClient: ServiceBusClient, - testClientType: TestClientType + testClientType: TestClientType, ): Promise { let receiver: ServiceBusReceiver | ServiceBusSessionReceiver | undefined; const entityPaths = getEntityNames(testClientType); @@ -507,7 +507,7 @@ async function purgeForTestClientType( deadLetterReceiver = serviceBusClient.createReceiver( entityPaths.topic, entityPaths.subscription, - { receiveMode: "receiveAndDelete", subQueueType: "deadLetter" } + { receiveMode: "receiveAndDelete", subQueueType: "deadLetter" }, ); } else { throw new Error(`Unsupported TestClientType for purge: ${testClientType}`); @@ -520,11 +520,11 @@ async function purgeForTestClientType( } export function createServiceBusClientForTests( - options?: ServiceBusClientOptions + options?: ServiceBusClientOptions, ): ServiceBusClientForTests { const serviceBusClient = new ServiceBusClient( getConnectionString(), - options + options, ) as ServiceBusClientForTests; serviceBusClient.test = new ServiceBusTestHelpers(serviceBusClient); @@ -546,7 +546,7 @@ export async function drainReceiveAndDeleteReceiver(receiver: ServiceBusReceiver export function getConnectionString(): string { if (env[EnvVarNames.SERVICEBUS_CONNECTION_STRING] == null) { throw new Error( - `No service bus connection string defined in ${EnvVarNames.SERVICEBUS_CONNECTION_STRING}. If you're in a unit test you should not be depending on the deployed environment!` + `No service bus connection string defined in ${EnvVarNames.SERVICEBUS_CONNECTION_STRING}. If you're in a unit test you should not be depending on the deployed environment!`, ); } @@ -555,14 +555,14 @@ export function getConnectionString(): string { export async function testPeekMsgsLength( peekableReceiver: ServiceBusReceiver, - expectedPeekLength: number + expectedPeekLength: number, ): Promise { const peekedMsgs = await peekableReceiver.peekMessages(expectedPeekLength + 1); should.equal( peekedMsgs.length, expectedPeekLength, - "Unexpected number of msgs found when peeking" + "Unexpected number of msgs found when peeking", ); } @@ -577,7 +577,7 @@ export function addServiceBusClientForLiveTesting( * The session ID to use if TestClientType is a session entity. */ sessionId?: string; - } + }, ): { client(): ServiceBusClientForTests; sender(): ServiceBusSender; diff --git a/sdk/servicebus/service-bus/test/stress/app/src/scenarioBatchReceive.ts b/sdk/servicebus/service-bus/test/stress/app/src/scenarioBatchReceive.ts index 02899215b783..81801dec49e5 100644 --- a/sdk/servicebus/service-bus/test/stress/app/src/scenarioBatchReceive.ts +++ b/sdk/servicebus/service-bus/test/stress/app/src/scenarioBatchReceive.ts @@ -94,7 +94,7 @@ export async function scenarioReceiveBatch() { ) { await stressBase.sendMessages( new Array(numberOfParallelSends).fill(sender), - numberOfMessagesPerSend + numberOfMessagesPerSend, ); elapsedTime = new Date().valueOf() - startedAt.valueOf(); await delay(delayBetweenSendsInMs); @@ -108,7 +108,7 @@ export async function scenarioReceiveBatch() { receiver, receiveBatchMaxMessageCount, receiveBatchMaxWaitTimeInMs, - settleMessageOnReceive + settleMessageOnReceive, ); elapsedTime = new Date().valueOf() - startedAt.valueOf(); await delay(delayBetweenReceivesInMs); @@ -119,7 +119,7 @@ export async function scenarioReceiveBatch() { await sendMessages(); } await Promise.all( - (!sendAllMessagesBeforeReceiveStarts ? [sendMessages()] : []).concat(receiveMessages()) + (!sendAllMessagesBeforeReceiveStarts ? [sendMessages()] : []).concat(receiveMessages()), ); }; diff --git a/sdk/servicebus/service-bus/test/stress/app/src/scenarioCloseOpen.ts b/sdk/servicebus/service-bus/test/stress/app/src/scenarioCloseOpen.ts index d44838462230..907a6fbabf67 100644 --- a/sdk/servicebus/service-bus/test/stress/app/src/scenarioCloseOpen.ts +++ b/sdk/servicebus/service-bus/test/stress/app/src/scenarioCloseOpen.ts @@ -52,7 +52,7 @@ export async function scenarioClose() { await stressBase.receiveMessages( receiver, receiveBatchMaxMessageCount, - receiveBatchMaxWaitTimeInMs + receiveBatchMaxWaitTimeInMs, ); await delay(delayBeforeCallingCloseInMs); await stressBase.callClose(sender, "sender"); diff --git a/sdk/servicebus/service-bus/test/stress/app/src/scenarioLongRunning.ts b/sdk/servicebus/service-bus/test/stress/app/src/scenarioLongRunning.ts index 9b4b88c32913..2d161f4e7b37 100644 --- a/sdk/servicebus/service-bus/test/stress/app/src/scenarioLongRunning.ts +++ b/sdk/servicebus/service-bus/test/stress/app/src/scenarioLongRunning.ts @@ -16,7 +16,7 @@ captureConsoleOutputToAppInsights(); async function sendMessagesForever( stressTest: ServiceBusStressTester, clientForSender: ServiceBusClient, - abortSignal: AbortSignalLike + abortSignal: AbortSignalLike, ) { console.log(`Started message sending`); @@ -49,7 +49,7 @@ async function sendMessagesForever( } }, 1000, - abortSignal + abortSignal, ); } @@ -85,7 +85,7 @@ async function main() { { autoCompleteMessages: false, maxConcurrentCalls: 10, - } + }, ); const clientForSender = createServiceBusClient(); diff --git a/sdk/servicebus/service-bus/test/stress/app/src/scenarioPeekMessages.ts b/sdk/servicebus/service-bus/test/stress/app/src/scenarioPeekMessages.ts index 8486a0cc9e35..bcfd9b30ae20 100644 --- a/sdk/servicebus/service-bus/test/stress/app/src/scenarioPeekMessages.ts +++ b/sdk/servicebus/service-bus/test/stress/app/src/scenarioPeekMessages.ts @@ -17,7 +17,7 @@ interface ScenarioPeekMessagesOptions { } function sanitizeOptions( - options: ScenarioPeekMessagesOptions + options: ScenarioPeekMessagesOptions, ): Required { return { testDurationInMs: options.testDurationInMs || 60 * 60 * 1000, // Default = 60 minutes @@ -77,7 +77,7 @@ export async function scenarioPeekMessages() { const peekedMessages: ServiceBusReceivedMessage[] = await stressBase.peekMessages( receiver, peekMaxMessageCount, - fromSequenceNumber + fromSequenceNumber, ); elapsedTime = new Date().valueOf() - startedAt.valueOf(); const numberOfMessages = peekedMessages.length; diff --git a/sdk/servicebus/service-bus/test/stress/app/src/scenarioRenewMessageLock.ts b/sdk/servicebus/service-bus/test/stress/app/src/scenarioRenewMessageLock.ts index cb8400095fc7..03e88af28966 100644 --- a/sdk/servicebus/service-bus/test/stress/app/src/scenarioRenewMessageLock.ts +++ b/sdk/servicebus/service-bus/test/stress/app/src/scenarioRenewMessageLock.ts @@ -77,7 +77,7 @@ export async function main() { const messages = await stressBase.receiveMessages( receiver, receiveBatchMaxMessageCount, - receiveBatchMaxWaitTimeInMs + receiveBatchMaxWaitTimeInMs, ); elapsedTime = new Date().valueOf() - startedAt.valueOf(); messages.map((msg) => @@ -85,8 +85,8 @@ export async function main() { msg, receiver, testDurationForLockRenewalInMs - elapsedTime, - completeMessageAfterDuration - ) + completeMessageAfterDuration, + ), ); await delay(delayBetweenReceivesInMs); } diff --git a/sdk/servicebus/service-bus/test/stress/app/src/scenarioRenewSessionLock.ts b/sdk/servicebus/service-bus/test/stress/app/src/scenarioRenewSessionLock.ts index 18bbd214011a..83f3e488fc52 100644 --- a/sdk/servicebus/service-bus/test/stress/app/src/scenarioRenewSessionLock.ts +++ b/sdk/servicebus/service-bus/test/stress/app/src/scenarioRenewSessionLock.ts @@ -84,7 +84,7 @@ export async function scenarioRenewSessionLock() { numberOfMessagesPerSend, useSessions, useScheduleApi, - numberOfSessions + numberOfSessions, ); elapsedTime = new Date().valueOf() - startedAt.valueOf(); await delay(delayBetweenSendsInMs); @@ -109,7 +109,7 @@ export async function scenarioRenewSessionLock() { receiver, receiveBatchMaxMessageCount, receiveBatchMaxWaitTimeInMs, - settleMessageOnReceive + settleMessageOnReceive, ); receivers.push(receiver); if (!autoLockRenewal) { diff --git a/sdk/servicebus/service-bus/test/stress/app/src/scenarioSend.ts b/sdk/servicebus/service-bus/test/stress/app/src/scenarioSend.ts index f00838a45853..cfaeca9535dd 100644 --- a/sdk/servicebus/service-bus/test/stress/app/src/scenarioSend.ts +++ b/sdk/servicebus/service-bus/test/stress/app/src/scenarioSend.ts @@ -58,7 +58,7 @@ async function main() { }, { additionalEventProperties: testOptions, - } + }, ); } diff --git a/sdk/servicebus/service-bus/test/stress/app/src/scenarioShortLivedReceivers.ts b/sdk/servicebus/service-bus/test/stress/app/src/scenarioShortLivedReceivers.ts index de8627951802..3f89fdfca31b 100644 --- a/sdk/servicebus/service-bus/test/stress/app/src/scenarioShortLivedReceivers.ts +++ b/sdk/servicebus/service-bus/test/stress/app/src/scenarioShortLivedReceivers.ts @@ -157,7 +157,7 @@ async function main() { if (missingUserVisibleMessages > 0 || missingInternalMessages > 0) { console.log( - `Messages were missing: user:${missingUserVisibleMessages}, internal:${missingInternalMessages}` + `Messages were missing: user:${missingUserVisibleMessages}, internal:${missingInternalMessages}`, ); process.exit(1); } else { @@ -180,7 +180,7 @@ async function main() { function assertAndAddMessageNumber( message: ServiceBusReceivedMessage, - receivedMessageIndices: Set + receivedMessageIndices: Set, ) { const messageNumber = message.applicationProperties?.[messageNumberPropertyName]; @@ -193,21 +193,21 @@ async function main() { console.log( `Message with id of ${ message.messageId - } had a messageNumber property with an incorrect type (${typeof messageNumber})` + } had a messageNumber property with an incorrect type (${typeof messageNumber})`, ); throw new TypeError( `Message with id of ${ message.messageId - } had a messageNumber property with an incorrect type (${typeof messageNumber})` + } had a messageNumber property with an incorrect type (${typeof messageNumber})`, ); } if (receivedMessageIndices.has(messageNumber)) { console.log( - `Message with id of ${message.messageId} and message number ${messageNumber} has already been received` + `Message with id of ${message.messageId} and message number ${messageNumber} has already been received`, ); throw new Error( - `Message with id of ${message.messageId} and message number ${messageNumber} has already been received` + `Message with id of ${message.messageId} and message number ${messageNumber} has already been received`, ); } @@ -238,7 +238,7 @@ main().catch((err) => { */ async function addValidatingListener( receiver: ServiceBusReceiver, - rawMessageNumbers: Set + rawMessageNumbers: Set, ): Promise { // warm up the receiver so the batching receiver will be available (and we can install our 'raw messages' hook // for some bookkeeping. @@ -254,7 +254,7 @@ async function addValidatingListener( if (linkEntity == null) { console.log( - "[raw message callback] Couldn't get a receiver._batchingReceiver._link property in the passed in receiver" + "[raw message callback] Couldn't get a receiver._batchingReceiver._link property in the passed in receiver", ); process.exit(1); } @@ -264,7 +264,7 @@ async function addValidatingListener( if (message == null) { console.log( - "[raw message callback] Fatal test error - no message was on EventContext, but we got a message callback." + "[raw message callback] Fatal test error - no message was on EventContext, but we got a message callback.", ); process.exit(1); } @@ -273,14 +273,14 @@ async function addValidatingListener( if (messageNumber == null || typeof messageNumber !== "number") { console.log( - `[raw message callback] Fatal test error - message arrived, but without the '${messageNumberPropertyName}' property, type: ${typeof messageNumber}` + `[raw message callback] Fatal test error - message arrived, but without the '${messageNumberPropertyName}' property, type: ${typeof messageNumber}`, ); process.exit(1); } if (rawMessageNumbers.has(messageNumber)) { console.log( - `[raw message callback] Fatal test error - ${messageNumber} was already received - we're receiving duplicates in our raw message callback` + `[raw message callback] Fatal test error - ${messageNumber} was already received - we're receiving duplicates in our raw message callback`, ); process.exit(1); } @@ -297,7 +297,7 @@ async function addValidatingListener( async function sendTestMessages( serviceBusClient: ServiceBusClient, queueName: string, - numMessagesToSend: number + numMessagesToSend: number, ): Promise { console.log(`Starting to send ${numMessagesToSend} messages to ${queueName}`); diff --git a/sdk/servicebus/service-bus/test/stress/app/src/serviceBusStressTester.ts b/sdk/servicebus/service-bus/test/stress/app/src/serviceBusStressTester.ts index a7f92b1b1ca4..cefe60c4210e 100644 --- a/sdk/servicebus/service-bus/test/stress/app/src/serviceBusStressTester.ts +++ b/sdk/servicebus/service-bus/test/stress/app/src/serviceBusStressTester.ts @@ -82,7 +82,7 @@ export class ServiceBusStressTester { sessionLockRenewalInfo = initializeLockRenewalOperationInfo(); // Queue Management serviceBusAdministrationClient = new ServiceBusAdministrationClient( - process.env.SERVICEBUS_CONNECTION_STRING! + process.env.SERVICEBUS_CONNECTION_STRING!, ); queueName!: string; @@ -132,7 +132,7 @@ export class ServiceBusStressTester { numberOfMessages = 1, useSessions = false, useScheduleApi = false, - numberOfSessions = 0 // Will be used only if useSessions is true + numberOfSessions = 0, // Will be used only if useSessions is true ) { for (const sender of senders) { try { @@ -170,7 +170,7 @@ export class ServiceBusStressTester { receiver: ServiceBusReceiver, maxMsgCount = 10, maxWaitTimeInMs = 10000, - settleMessageOnReceive = false + settleMessageOnReceive = false, ): Promise { try { const messages = await receiver.receiveMessages(maxMsgCount, { @@ -179,7 +179,7 @@ export class ServiceBusStressTester { this.addReceivedMessage(messages); if (settleMessageOnReceive && receiver.receiveMode === "peekLock") { await Promise.all( - messages.map((msg: ServiceBusReceivedMessage) => this.completeMessage(receiver, msg)) + messages.map((msg: ServiceBusReceivedMessage) => this.completeMessage(receiver, msg)), ); } return messages; @@ -204,7 +204,7 @@ export class ServiceBusStressTester { public async peekMessages( receiver: ServiceBusReceiver, maxMsgCount = 10, - fromSequenceNumber?: Long + fromSequenceNumber?: Long, ): Promise { try { const messages = await receiver.peekMessages(maxMsgCount, { @@ -229,7 +229,7 @@ export class ServiceBusStressTester { completeMessageAfterDuration: boolean; maxAutoRenewLockDurationInMs: number; settleMessageOnReceive: boolean; - } + }, ) { const startTime = new Date(); const processMessage = async (message: ServiceBusReceivedMessage) => { @@ -248,7 +248,7 @@ export class ServiceBusStressTester { message, receiver, duration - elapsedTime, - options.completeMessageAfterDuration + options.completeMessageAfterDuration, ); } } @@ -264,7 +264,7 @@ export class ServiceBusStressTester { processMessage, processError, }, - options + options, ); await delay(duration); await subscriber.close(); @@ -286,7 +286,7 @@ export class ServiceBusStressTester { | "sessionlockrenewal" | "close", exception: Error | unknown, - extraProperties?: Record + extraProperties?: Record, ) { ++this._numErrors; defaultClient.trackException({ @@ -304,7 +304,7 @@ export class ServiceBusStressTester { message: ServiceBusReceivedMessage, receiver: ServiceBusReceiver, duration: number, - completeMessageAfterDuration: boolean + completeMessageAfterDuration: boolean, ) { // TODO: pass in max number of lock renewals? const startTime = new Date(); @@ -329,14 +329,14 @@ export class ServiceBusStressTester { message, receiver, duration - elapsedTime, - completeMessageAfterDuration + completeMessageAfterDuration, ); } else { await this.completeMessage(receiver, message); clearTimeout(this.messageLockRenewalInfo.lockRenewalTimers[message.messageId as string]); } }, - message.lockedUntilUtc!.valueOf() - startTime.valueOf() - 10000 + message.lockedUntilUtc!.valueOf() - startTime.valueOf() - 10000, ); } @@ -358,31 +358,34 @@ export class ServiceBusStressTester { public renewSessionLockUntil(receiver: ServiceBusSessionReceiver, duration: number) { // TODO: pass in max number of lock renewals? and close the receiver at the end of max?? const startTime = new Date(); - this.sessionLockRenewalInfo.lockRenewalTimers[receiver.sessionId] = setTimeout(async () => { - try { - await receiver.renewSessionLock(); - this.sessionLockRenewalInfo.numberOfSuccesses++; - const currentRenewalCount = this.sessionLockRenewalInfo.renewalCount[receiver.sessionId]; - this.sessionLockRenewalInfo.renewalCount[receiver.sessionId] = - currentRenewalCount === undefined ? 1 : currentRenewalCount + 1; - const elapsedTime = new Date().valueOf() - startTime.valueOf(); - if (duration - elapsedTime > 0) { - this.renewSessionLockUntil(receiver, duration - elapsedTime); - } else { - // Code reaches here only after the duration given has passed by - // TODO: Close the receiver maybe? + this.sessionLockRenewalInfo.lockRenewalTimers[receiver.sessionId] = setTimeout( + async () => { + try { + await receiver.renewSessionLock(); + this.sessionLockRenewalInfo.numberOfSuccesses++; + const currentRenewalCount = this.sessionLockRenewalInfo.renewalCount[receiver.sessionId]; + this.sessionLockRenewalInfo.renewalCount[receiver.sessionId] = + currentRenewalCount === undefined ? 1 : currentRenewalCount + 1; + const elapsedTime = new Date().valueOf() - startTime.valueOf(); + if (duration - elapsedTime > 0) { + this.renewSessionLockUntil(receiver, duration - elapsedTime); + } else { + // Code reaches here only after the duration given has passed by + // TODO: Close the receiver maybe? + } + } catch (error: any) { + this.sessionLockRenewalInfo.numberOfFailures++; + this.trackError("sessionlockrenewal", error); + console.error("Error in session lock renewal: ", error); } - } catch (error: any) { - this.sessionLockRenewalInfo.numberOfFailures++; - this.trackError("sessionlockrenewal", error); - console.error("Error in session lock renewal: ", error); - } - }, receiver.sessionLockedUntilUtc!.valueOf() - startTime.valueOf() - 10000); + }, + receiver.sessionLockedUntilUtc!.valueOf() - startTime.valueOf() - 10000, + ); } public async callClose( object: ServiceBusSender | ServiceBusReceiver | ServiceBusSessionReceiver | ServiceBusClient, - type: "sender" | "receiver" | "client" + type: "sender" | "receiver" | "client", ) { try { await object.close(); @@ -477,7 +480,7 @@ export class ServiceBusStressTester { */ public async runStressTest( stressTest: (serviceBusClient: ServiceBusClient) => Promise, - initOptions?: StressTestInitOptions + initOptions?: StressTestInitOptions, ): Promise { let serviceBusClient: ServiceBusClient | undefined; @@ -529,7 +532,7 @@ export function getUniqueQueueName(): string { export async function createRandomQueue( queueName: string, - queueOptions?: CreateQueueOptions + queueOptions?: CreateQueueOptions, ): Promise { const serviceBusAdministrationClient = createAdminClient(); await serviceBusAdministrationClient.createQueue(queueName, queueOptions); @@ -562,7 +565,7 @@ export function createServiceBusClient(options?: ServiceBusClientOptions): Servi export async function loopForever( fn: () => Promise, delay: number, - abortSignal?: AbortSignalLike + abortSignal?: AbortSignalLike, ) { const timeout = () => new Promise((resolve) => setTimeout(() => resolve(true), delay)); diff --git a/sdk/servicebus/service-bus/test/stress/app/src/utils.ts b/sdk/servicebus/service-bus/test/stress/app/src/utils.ts index c6071e5ca1f8..f8ace1c4730d 100644 --- a/sdk/servicebus/service-bus/test/stress/app/src/utils.ts +++ b/sdk/servicebus/service-bus/test/stress/app/src/utils.ts @@ -66,7 +66,7 @@ export function generateMessage(useSessions: boolean, numberOfSessions: number) } export async function saveDiscrepanciesFromTrackedMessages( - trackedMessageIds: TrackedMessageIdsInfo + trackedMessageIds: TrackedMessageIdsInfo, ) { const output = { messages_sent_but_never_received: [] as string[], diff --git a/sdk/servicefabric/arm-servicefabric-rest/package.json b/sdk/servicefabric/arm-servicefabric-rest/package.json index 0bcc74f4a2e1..97371c3b088c 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/package.json +++ b/sdk/servicefabric/arm-servicefabric-rest/package.json @@ -47,11 +47,11 @@ "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && npm run format", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -85,7 +85,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^1.0.4", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/applicationTypesCreateOrUpdateSample.ts b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/applicationTypesCreateOrUpdateSample.ts index f122093b47c1..ebfbf47da3cd 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/applicationTypesCreateOrUpdateSample.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/applicationTypesCreateOrUpdateSample.ts @@ -33,7 +33,7 @@ async function putAnApplicationType() { subscriptionId, resourceGroupName, clusterName, - applicationTypeName + applicationTypeName, ) .put(parameters); console.log(result); diff --git a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/applicationTypesDeleteSample.ts b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/applicationTypesDeleteSample.ts index 09c970c8e022..a36140fc488f 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/applicationTypesDeleteSample.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/applicationTypesDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteAnApplicationType() { subscriptionId, resourceGroupName, clusterName, - applicationTypeName + applicationTypeName, ) .delete(); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/applicationTypesGetSample.ts b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/applicationTypesGetSample.ts index 36d13072261a..86dc48b9a2f3 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/applicationTypesGetSample.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/applicationTypesGetSample.ts @@ -30,7 +30,7 @@ async function getAnApplicationType() { subscriptionId, resourceGroupName, clusterName, - applicationTypeName + applicationTypeName, ) .get(); console.log(result); diff --git a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/applicationTypesListSample.ts b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/applicationTypesListSample.ts index 894b7e924c14..22724f47640a 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/applicationTypesListSample.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/applicationTypesListSample.ts @@ -28,7 +28,7 @@ async function getAListOfApplicationTypeNameResources() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes", subscriptionId, resourceGroupName, - clusterName + clusterName, ) .get(); console.log(result); diff --git a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersCreateOrUpdateSample.ts b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersCreateOrUpdateSample.ts index 9cc8d34b2d88..42457bba6244 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersCreateOrUpdateSample.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersCreateOrUpdateSample.ts @@ -189,7 +189,7 @@ async function putAClusterWithMaximumParameters() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}", subscriptionId, resourceGroupName, - clusterName + clusterName, ) .put(parameters); const poller = getLongRunningPoller(client, initialResponse); @@ -253,7 +253,7 @@ async function putAClusterWithMinimumParameters() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}", subscriptionId, resourceGroupName, - clusterName + clusterName, ) .put(parameters); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersDeleteSample.ts b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersDeleteSample.ts index 1ae37dfbcffe..9d5fc070a349 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersDeleteSample.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersDeleteSample.ts @@ -28,7 +28,7 @@ async function deleteACluster() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}", subscriptionId, resourceGroupName, - clusterName + clusterName, ) .delete(); console.log(result); diff --git a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersGetSample.ts b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersGetSample.ts index 6db689e777dd..c1ba7dbaa87a 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersGetSample.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersGetSample.ts @@ -28,7 +28,7 @@ async function getACluster() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}", subscriptionId, resourceGroupName, - clusterName + clusterName, ) .get(); console.log(result); diff --git a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersListByResourceGroupSample.ts b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersListByResourceGroupSample.ts index 9e7eabad965e..eeeb59c2dffc 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersListByResourceGroupSample.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersListByResourceGroupSample.ts @@ -26,7 +26,7 @@ async function listClusterByResourceGroup() { .path( "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters", subscriptionId, - resourceGroupName + resourceGroupName, ) .get(); console.log(result); diff --git a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersListSample.ts b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersListSample.ts index 51a242dc3764..04a149e0812c 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersListSample.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersListSample.ts @@ -24,7 +24,7 @@ async function listClusters() { const result = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/clusters", - subscriptionId + subscriptionId, ) .get(); console.log(result); diff --git a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersListUpgradableVersionsSample.ts b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersListUpgradableVersionsSample.ts index 41b01bd8658a..a4ff63c6e371 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersListUpgradableVersionsSample.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersListUpgradableVersionsSample.ts @@ -30,7 +30,7 @@ async function getMinimumAndMaximumCodeVersions() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/listUpgradableVersions", subscriptionId, resourceGroupName, - clusterName + clusterName, ) .post(); console.log(result); @@ -60,7 +60,7 @@ async function getUpgradePath() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/listUpgradableVersions", subscriptionId, resourceGroupName, - clusterName + clusterName, ) .post(options); console.log(result); diff --git a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersUpdateSample.ts b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersUpdateSample.ts index c15c93d987c3..66f0b4401ef5 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersUpdateSample.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/samples-dev/clustersUpdateSample.ts @@ -66,7 +66,7 @@ async function patchACluster() { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}", subscriptionId, resourceGroupName, - clusterName + clusterName, ) .patch(parameters); const poller = getLongRunningPoller(client, initialResponse); diff --git a/sdk/servicefabric/arm-servicefabric-rest/src/clientDefinitions.ts b/sdk/servicefabric/arm-servicefabric-rest/src/clientDefinitions.ts index d318296bb84f..edb9d9b98b62 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/src/clientDefinitions.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/src/clientDefinitions.ts @@ -107,11 +107,11 @@ import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface ClustersGet { /** Get a Service Fabric cluster resource created or in the process of being created in the specified resource group. */ get( - options?: ClustersGetParameters + options?: ClustersGetParameters, ): StreamableMethod; /** Create or update a Service Fabric cluster resource with the specified name. */ put( - options: ClustersCreateOrUpdateParameters + options: ClustersCreateOrUpdateParameters, ): StreamableMethod< | ClustersCreateOrUpdate200Response | ClustersCreateOrUpdate202Response @@ -119,13 +119,13 @@ export interface ClustersGet { >; /** Update the configuration of a Service Fabric cluster resource with the specified name. */ patch( - options: ClustersUpdateParameters + options: ClustersUpdateParameters, ): StreamableMethod< ClustersUpdate200Response | ClustersUpdate202Response | ClustersUpdatedefaultResponse >; /** Delete a Service Fabric cluster resource with the specified name. */ delete( - options?: ClustersDeleteParameters + options?: ClustersDeleteParameters, ): StreamableMethod< ClustersDelete200Response | ClustersDelete204Response | ClustersDeletedefaultResponse >; @@ -134,7 +134,7 @@ export interface ClustersGet { export interface ClustersListByResourceGroup { /** Gets all Service Fabric cluster resources created or in the process of being created in the resource group. */ get( - options?: ClustersListByResourceGroupParameters + options?: ClustersListByResourceGroupParameters, ): StreamableMethod< ClustersListByResourceGroup200Response | ClustersListByResourceGroupdefaultResponse >; @@ -143,14 +143,14 @@ export interface ClustersListByResourceGroup { export interface ClustersList { /** Gets all Service Fabric cluster resources created or in the process of being created in the subscription. */ get( - options?: ClustersListParameters + options?: ClustersListParameters, ): StreamableMethod; } export interface ClustersListUpgradableVersions { /** If a target is not provided, it will get the minimum and maximum versions available from the current cluster version. If a target is given, it will provide the required path to get from the current cluster version to the target version. */ post( - options?: ClustersListUpgradableVersionsParameters + options?: ClustersListUpgradableVersionsParameters, ): StreamableMethod< ClustersListUpgradableVersions200Response | ClustersListUpgradableVersionsdefaultResponse >; @@ -159,14 +159,14 @@ export interface ClustersListUpgradableVersions { export interface ClusterVersionsGet { /** Gets information about an available Service Fabric cluster code version. */ get( - options?: ClusterVersionsGetParameters + options?: ClusterVersionsGetParameters, ): StreamableMethod; } export interface ClusterVersionsGetByEnvironment { /** Gets information about an available Service Fabric cluster code version by environment. */ get( - options?: ClusterVersionsGetByEnvironmentParameters + options?: ClusterVersionsGetByEnvironmentParameters, ): StreamableMethod< ClusterVersionsGetByEnvironment200Response | ClusterVersionsGetByEnvironmentdefaultResponse >; @@ -175,14 +175,14 @@ export interface ClusterVersionsGetByEnvironment { export interface ClusterVersionsList { /** Gets all available code versions for Service Fabric cluster resources by location. */ get( - options?: ClusterVersionsListParameters + options?: ClusterVersionsListParameters, ): StreamableMethod; } export interface ClusterVersionsListByEnvironment { /** Gets all available code versions for Service Fabric cluster resources by environment. */ get( - options?: ClusterVersionsListByEnvironmentParameters + options?: ClusterVersionsListByEnvironmentParameters, ): StreamableMethod< ClusterVersionsListByEnvironment200Response | ClusterVersionsListByEnvironmentdefaultResponse >; @@ -191,24 +191,24 @@ export interface ClusterVersionsListByEnvironment { export interface OperationsList { /** Get the list of available Service Fabric resource provider API operations. */ get( - options?: OperationsListParameters + options?: OperationsListParameters, ): StreamableMethod; } export interface ApplicationTypesGet { /** Get a Service Fabric application type name resource created or in the process of being created in the Service Fabric cluster resource. */ get( - options?: ApplicationTypesGetParameters + options?: ApplicationTypesGetParameters, ): StreamableMethod; /** Create or update a Service Fabric application type name resource with the specified name. */ put( - options: ApplicationTypesCreateOrUpdateParameters + options: ApplicationTypesCreateOrUpdateParameters, ): StreamableMethod< ApplicationTypesCreateOrUpdate200Response | ApplicationTypesCreateOrUpdatedefaultResponse >; /** Delete a Service Fabric application type name resource with the specified name. */ delete( - options?: ApplicationTypesDeleteParameters + options?: ApplicationTypesDeleteParameters, ): StreamableMethod< | ApplicationTypesDelete202Response | ApplicationTypesDelete204Response @@ -219,27 +219,27 @@ export interface ApplicationTypesGet { export interface ApplicationTypesList { /** Gets all application type name resources created or in the process of being created in the Service Fabric cluster resource. */ get( - options?: ApplicationTypesListParameters + options?: ApplicationTypesListParameters, ): StreamableMethod; } export interface ApplicationTypeVersionsGet { /** Get a Service Fabric application type version resource created or in the process of being created in the Service Fabric application type name resource. */ get( - options?: ApplicationTypeVersionsGetParameters + options?: ApplicationTypeVersionsGetParameters, ): StreamableMethod< ApplicationTypeVersionsGet200Response | ApplicationTypeVersionsGetdefaultResponse >; /** Create or update a Service Fabric application type version resource with the specified name. */ put( - options: ApplicationTypeVersionsCreateOrUpdateParameters + options: ApplicationTypeVersionsCreateOrUpdateParameters, ): StreamableMethod< | ApplicationTypeVersionsCreateOrUpdate202Response | ApplicationTypeVersionsCreateOrUpdatedefaultResponse >; /** Delete a Service Fabric application type version resource with the specified name. */ delete( - options?: ApplicationTypeVersionsDeleteParameters + options?: ApplicationTypeVersionsDeleteParameters, ): StreamableMethod< | ApplicationTypeVersionsDelete202Response | ApplicationTypeVersionsDelete204Response @@ -250,7 +250,7 @@ export interface ApplicationTypeVersionsGet { export interface ApplicationTypeVersionsList { /** Gets all application type version resources created or in the process of being created in the Service Fabric application type name resource. */ get( - options?: ApplicationTypeVersionsListParameters + options?: ApplicationTypeVersionsListParameters, ): StreamableMethod< ApplicationTypeVersionsList200Response | ApplicationTypeVersionsListdefaultResponse >; @@ -259,21 +259,21 @@ export interface ApplicationTypeVersionsList { export interface ApplicationsGet { /** Get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource. */ get( - options?: ApplicationsGetParameters + options?: ApplicationsGetParameters, ): StreamableMethod; /** Create or update a Service Fabric application resource with the specified name. */ put( - options: ApplicationsCreateOrUpdateParameters + options: ApplicationsCreateOrUpdateParameters, ): StreamableMethod< ApplicationsCreateOrUpdate202Response | ApplicationsCreateOrUpdatedefaultResponse >; /** Update a Service Fabric application resource with the specified name. */ patch( - options: ApplicationsUpdateParameters + options: ApplicationsUpdateParameters, ): StreamableMethod; /** Delete a Service Fabric application resource with the specified name. */ delete( - options?: ApplicationsDeleteParameters + options?: ApplicationsDeleteParameters, ): StreamableMethod< | ApplicationsDelete202Response | ApplicationsDelete204Response @@ -284,26 +284,26 @@ export interface ApplicationsGet { export interface ApplicationsList { /** Gets all application resources created or in the process of being created in the Service Fabric cluster resource. */ get( - options?: ApplicationsListParameters + options?: ApplicationsListParameters, ): StreamableMethod; } export interface ServicesGet { /** Get a Service Fabric service resource created or in the process of being created in the Service Fabric application resource. */ get( - options?: ServicesGetParameters + options?: ServicesGetParameters, ): StreamableMethod; /** Create or update a Service Fabric service resource with the specified name. */ put( - options: ServicesCreateOrUpdateParameters + options: ServicesCreateOrUpdateParameters, ): StreamableMethod; /** Update a Service Fabric service resource with the specified name. */ patch( - options: ServicesUpdateParameters + options: ServicesUpdateParameters, ): StreamableMethod; /** Delete a Service Fabric service resource with the specified name. */ delete( - options?: ServicesDeleteParameters + options?: ServicesDeleteParameters, ): StreamableMethod< ServicesDelete202Response | ServicesDelete204Response | ServicesDeletedefaultResponse >; @@ -312,7 +312,7 @@ export interface ServicesGet { export interface ServicesList { /** Gets all service resources created or in the process of being created in the Service Fabric application resource. */ get( - options?: ServicesListParameters + options?: ServicesListParameters, ): StreamableMethod; } @@ -322,32 +322,32 @@ export interface Routes { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}", subscriptionId: string, resourceGroupName: string, - clusterName: string + clusterName: string, ): ClustersGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourcegroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters", subscriptionId: string, - resourceGroupName: string + resourceGroupName: string, ): ClustersListByResourceGroup; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.ServiceFabric/clusters' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/clusters", - subscriptionId: string + subscriptionId: string, ): ClustersList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}/listUpgradableVersions' has methods for the following verbs: post */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/listUpgradableVersions", subscriptionId: string, resourceGroupName: string, - clusterName: string + clusterName: string, ): ClustersListUpgradableVersions; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.ServiceFabric/locations/\{location\}/clusterVersions/\{clusterVersion\}' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions/{clusterVersion}", subscriptionId: string, location: string, - clusterVersion: string + clusterVersion: string, ): ClusterVersionsGet; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.ServiceFabric/locations/\{location\}/environments/\{environment\}/clusterVersions/\{clusterVersion\}' has methods for the following verbs: get */ ( @@ -355,20 +355,20 @@ export interface Routes { subscriptionId: string, location: string, environment: "Windows" | "Linux", - clusterVersion: string + clusterVersion: string, ): ClusterVersionsGetByEnvironment; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.ServiceFabric/locations/\{location\}/clusterVersions' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions", subscriptionId: string, - location: string + location: string, ): ClusterVersionsList; /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.ServiceFabric/locations/\{location\}/environments/\{environment\}/clusterVersions' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions", subscriptionId: string, location: string, - environment: "Windows" | "Linux" + environment: "Windows" | "Linux", ): ClusterVersionsListByEnvironment; /** Resource for '/providers/Microsoft.ServiceFabric/operations' has methods for the following verbs: get */ (path: "/providers/Microsoft.ServiceFabric/operations"): OperationsList; @@ -378,14 +378,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, clusterName: string, - applicationTypeName: string + applicationTypeName: string, ): ApplicationTypesGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}/applicationTypes' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes", subscriptionId: string, resourceGroupName: string, - clusterName: string + clusterName: string, ): ApplicationTypesList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}/applicationTypes/\{applicationTypeName\}/versions/\{version\}' has methods for the following verbs: get, put, delete */ ( @@ -394,7 +394,7 @@ export interface Routes { resourceGroupName: string, clusterName: string, applicationTypeName: string, - version: string + version: string, ): ApplicationTypeVersionsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}/applicationTypes/\{applicationTypeName\}/versions' has methods for the following verbs: get */ ( @@ -402,7 +402,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, clusterName: string, - applicationTypeName: string + applicationTypeName: string, ): ApplicationTypeVersionsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}/applications/\{applicationName\}' has methods for the following verbs: get, put, patch, delete */ ( @@ -410,14 +410,14 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, clusterName: string, - applicationName: string + applicationName: string, ): ApplicationsGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}/applications' has methods for the following verbs: get */ ( path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications", subscriptionId: string, resourceGroupName: string, - clusterName: string + clusterName: string, ): ApplicationsList; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}/applications/\{applicationName\}/services/\{serviceName\}' has methods for the following verbs: get, put, patch, delete */ ( @@ -426,7 +426,7 @@ export interface Routes { resourceGroupName: string, clusterName: string, applicationName: string, - serviceName: string + serviceName: string, ): ServicesGet; /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.ServiceFabric/clusters/\{clusterName\}/applications/\{applicationName\}/services' has methods for the following verbs: get */ ( @@ -434,7 +434,7 @@ export interface Routes { subscriptionId: string, resourceGroupName: string, clusterName: string, - applicationName: string + applicationName: string, ): ServicesList; } diff --git a/sdk/servicefabric/arm-servicefabric-rest/src/isUnexpected.ts b/sdk/servicefabric/arm-servicefabric-rest/src/isUnexpected.ts index ef3f6b2f824b..9244e480dd72 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/src/isUnexpected.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/src/isUnexpected.ts @@ -133,116 +133,116 @@ const responseMap: Record = { }; export function isUnexpected( - response: ClustersGet200Response | ClustersGetdefaultResponse + response: ClustersGet200Response | ClustersGetdefaultResponse, ): response is ClustersGetdefaultResponse; export function isUnexpected( response: | ClustersCreateOrUpdate200Response | ClustersCreateOrUpdate202Response - | ClustersCreateOrUpdatedefaultResponse + | ClustersCreateOrUpdatedefaultResponse, ): response is ClustersCreateOrUpdatedefaultResponse; export function isUnexpected( - response: ClustersUpdate200Response | ClustersUpdate202Response | ClustersUpdatedefaultResponse + response: ClustersUpdate200Response | ClustersUpdate202Response | ClustersUpdatedefaultResponse, ): response is ClustersUpdatedefaultResponse; export function isUnexpected( - response: ClustersDelete200Response | ClustersDelete204Response | ClustersDeletedefaultResponse + response: ClustersDelete200Response | ClustersDelete204Response | ClustersDeletedefaultResponse, ): response is ClustersDeletedefaultResponse; export function isUnexpected( - response: ClustersListByResourceGroup200Response | ClustersListByResourceGroupdefaultResponse + response: ClustersListByResourceGroup200Response | ClustersListByResourceGroupdefaultResponse, ): response is ClustersListByResourceGroupdefaultResponse; export function isUnexpected( - response: ClustersList200Response | ClustersListdefaultResponse + response: ClustersList200Response | ClustersListdefaultResponse, ): response is ClustersListdefaultResponse; export function isUnexpected( response: | ClustersListUpgradableVersions200Response - | ClustersListUpgradableVersionsdefaultResponse + | ClustersListUpgradableVersionsdefaultResponse, ): response is ClustersListUpgradableVersionsdefaultResponse; export function isUnexpected( - response: ClusterVersionsGet200Response | ClusterVersionsGetdefaultResponse + response: ClusterVersionsGet200Response | ClusterVersionsGetdefaultResponse, ): response is ClusterVersionsGetdefaultResponse; export function isUnexpected( response: | ClusterVersionsGetByEnvironment200Response - | ClusterVersionsGetByEnvironmentdefaultResponse + | ClusterVersionsGetByEnvironmentdefaultResponse, ): response is ClusterVersionsGetByEnvironmentdefaultResponse; export function isUnexpected( - response: ClusterVersionsList200Response | ClusterVersionsListdefaultResponse + response: ClusterVersionsList200Response | ClusterVersionsListdefaultResponse, ): response is ClusterVersionsListdefaultResponse; export function isUnexpected( response: | ClusterVersionsListByEnvironment200Response - | ClusterVersionsListByEnvironmentdefaultResponse + | ClusterVersionsListByEnvironmentdefaultResponse, ): response is ClusterVersionsListByEnvironmentdefaultResponse; export function isUnexpected( - response: OperationsList200Response | OperationsListdefaultResponse + response: OperationsList200Response | OperationsListdefaultResponse, ): response is OperationsListdefaultResponse; export function isUnexpected( - response: ApplicationTypesGet200Response | ApplicationTypesGetdefaultResponse + response: ApplicationTypesGet200Response | ApplicationTypesGetdefaultResponse, ): response is ApplicationTypesGetdefaultResponse; export function isUnexpected( response: | ApplicationTypesCreateOrUpdate200Response - | ApplicationTypesCreateOrUpdatedefaultResponse + | ApplicationTypesCreateOrUpdatedefaultResponse, ): response is ApplicationTypesCreateOrUpdatedefaultResponse; export function isUnexpected( response: | ApplicationTypesDelete202Response | ApplicationTypesDelete204Response - | ApplicationTypesDeletedefaultResponse + | ApplicationTypesDeletedefaultResponse, ): response is ApplicationTypesDeletedefaultResponse; export function isUnexpected( - response: ApplicationTypesList200Response | ApplicationTypesListdefaultResponse + response: ApplicationTypesList200Response | ApplicationTypesListdefaultResponse, ): response is ApplicationTypesListdefaultResponse; export function isUnexpected( - response: ApplicationTypeVersionsGet200Response | ApplicationTypeVersionsGetdefaultResponse + response: ApplicationTypeVersionsGet200Response | ApplicationTypeVersionsGetdefaultResponse, ): response is ApplicationTypeVersionsGetdefaultResponse; export function isUnexpected( response: | ApplicationTypeVersionsCreateOrUpdate202Response - | ApplicationTypeVersionsCreateOrUpdatedefaultResponse + | ApplicationTypeVersionsCreateOrUpdatedefaultResponse, ): response is ApplicationTypeVersionsCreateOrUpdatedefaultResponse; export function isUnexpected( response: | ApplicationTypeVersionsDelete202Response | ApplicationTypeVersionsDelete204Response - | ApplicationTypeVersionsDeletedefaultResponse + | ApplicationTypeVersionsDeletedefaultResponse, ): response is ApplicationTypeVersionsDeletedefaultResponse; export function isUnexpected( - response: ApplicationTypeVersionsList200Response | ApplicationTypeVersionsListdefaultResponse + response: ApplicationTypeVersionsList200Response | ApplicationTypeVersionsListdefaultResponse, ): response is ApplicationTypeVersionsListdefaultResponse; export function isUnexpected( - response: ApplicationsGet200Response | ApplicationsGetdefaultResponse + response: ApplicationsGet200Response | ApplicationsGetdefaultResponse, ): response is ApplicationsGetdefaultResponse; export function isUnexpected( - response: ApplicationsCreateOrUpdate202Response | ApplicationsCreateOrUpdatedefaultResponse + response: ApplicationsCreateOrUpdate202Response | ApplicationsCreateOrUpdatedefaultResponse, ): response is ApplicationsCreateOrUpdatedefaultResponse; export function isUnexpected( - response: ApplicationsUpdate202Response | ApplicationsUpdatedefaultResponse + response: ApplicationsUpdate202Response | ApplicationsUpdatedefaultResponse, ): response is ApplicationsUpdatedefaultResponse; export function isUnexpected( response: | ApplicationsDelete202Response | ApplicationsDelete204Response - | ApplicationsDeletedefaultResponse + | ApplicationsDeletedefaultResponse, ): response is ApplicationsDeletedefaultResponse; export function isUnexpected( - response: ApplicationsList200Response | ApplicationsListdefaultResponse + response: ApplicationsList200Response | ApplicationsListdefaultResponse, ): response is ApplicationsListdefaultResponse; export function isUnexpected( - response: ServicesGet200Response | ServicesGetdefaultResponse + response: ServicesGet200Response | ServicesGetdefaultResponse, ): response is ServicesGetdefaultResponse; export function isUnexpected( - response: ServicesCreateOrUpdate202Response | ServicesCreateOrUpdatedefaultResponse + response: ServicesCreateOrUpdate202Response | ServicesCreateOrUpdatedefaultResponse, ): response is ServicesCreateOrUpdatedefaultResponse; export function isUnexpected( - response: ServicesUpdate202Response | ServicesUpdatedefaultResponse + response: ServicesUpdate202Response | ServicesUpdatedefaultResponse, ): response is ServicesUpdatedefaultResponse; export function isUnexpected( - response: ServicesDelete202Response | ServicesDelete204Response | ServicesDeletedefaultResponse + response: ServicesDelete202Response | ServicesDelete204Response | ServicesDeletedefaultResponse, ): response is ServicesDeletedefaultResponse; export function isUnexpected( - response: ServicesList200Response | ServicesListdefaultResponse + response: ServicesList200Response | ServicesListdefaultResponse, ): response is ServicesListdefaultResponse; export function isUnexpected( response: @@ -312,7 +312,7 @@ export function isUnexpected( | ServicesDelete204Response | ServicesDeletedefaultResponse | ServicesList200Response - | ServicesListdefaultResponse + | ServicesListdefaultResponse, ): response is | ClustersGetdefaultResponse | ClustersCreateOrUpdatedefaultResponse diff --git a/sdk/servicefabric/arm-servicefabric-rest/src/paginateHelper.ts b/sdk/servicefabric/arm-servicefabric-rest/src/paginateHelper.ts index 532e2603f724..ae39a400b94b 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/src/paginateHelper.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/src/paginateHelper.ts @@ -14,7 +14,7 @@ export type GetArrayType = T extends Array ? TData : never; */ export type GetPage = ( pageLink: string, - maxPageSize?: number + maxPageSize?: number, ) => Promise<{ page: TPage; nextPageLink?: string; @@ -53,7 +53,7 @@ export type PaginateReturn = TResult extends { export function paginate( client: Client, initialResponse: TResponse, - options: PagingOptions = {} + options: PagingOptions = {}, ): PagedAsyncIterableIterator> { // Extract element type from initial response type TElement = PaginateReturn; @@ -110,7 +110,7 @@ function getElements(body: unknown, itemName: string): T[] { // type of elements in the page in PaginateReturn if (!Array.isArray(value)) { throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, ); } @@ -125,7 +125,7 @@ function checkPagingRequest(response: PathUncheckedResponse): void { if (!Http2xxStatusCodes.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, - response + response, ); } } diff --git a/sdk/servicefabric/arm-servicefabric-rest/src/pollingHelper.ts b/sdk/servicefabric/arm-servicefabric-rest/src/pollingHelper.ts index 27b9ed42834a..c95c1d612155 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/src/pollingHelper.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/src/pollingHelper.ts @@ -21,7 +21,7 @@ import { export function getLongRunningPoller( client: Client, initialResponse: TResult, - options: LroEngineOptions> = {} + options: LroEngineOptions> = {}, ): PollerLike, TResult> { const poller: LongRunningOperation = { requestMethod: initialResponse.request.method, diff --git a/sdk/servicefabric/arm-servicefabric-rest/src/serviceFabricClient.ts b/sdk/servicefabric/arm-servicefabric-rest/src/serviceFabricClient.ts index ff3cefa50afb..f354610b0402 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/src/serviceFabricClient.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/src/serviceFabricClient.ts @@ -8,7 +8,7 @@ import { customizedApiVersionPolicy } from "./customizedApiVersionPolicy"; export default function createClient( credentials: TokenCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): ServiceFabricClient { const baseUrl = options.baseUrl ?? "https://management.azure.com"; options.apiVersion = options.apiVersion ?? "2021-06-01"; diff --git a/sdk/servicefabric/arm-servicefabric-rest/test/public/servicefabric.spec.ts b/sdk/servicefabric/arm-servicefabric-rest/test/public/servicefabric.spec.ts index 8df7a9a4355d..9902023d244f 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/test/public/servicefabric.spec.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/test/public/servicefabric.spec.ts @@ -106,7 +106,7 @@ describe("Service Fabric Rest Level Client Test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}", subscriptionId, resourceGroup, - clusterName + clusterName, ) .put(parameters); const poller = getLongRunningPoller(client, initialResponse, testPollingOptions); @@ -138,7 +138,7 @@ describe("Service Fabric Rest Level Client Test", () => { subscriptionId, resourceGroup, clusterName, - applicationTypeName + applicationTypeName, ) .put(parameters); assert.equal(result.status, "200"); @@ -151,7 +151,7 @@ describe("Service Fabric Rest Level Client Test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}", subscriptionId, resourceGroup, - clusterName + clusterName, ) .get(); assert.equal(result.status, "200"); @@ -165,7 +165,7 @@ describe("Service Fabric Rest Level Client Test", () => { subscriptionId, resourceGroup, clusterName, - applicationTypeName + applicationTypeName, ) .get(); assert.equal(result.status, "200"); @@ -176,7 +176,7 @@ describe("Service Fabric Rest Level Client Test", () => { const result = await client .path( "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/clusters", - subscriptionId + subscriptionId, ) .get(); assert.equal(result.status, "200"); @@ -189,7 +189,7 @@ describe("Service Fabric Rest Level Client Test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes", subscriptionId, resourceGroup, - clusterName + clusterName, ) .get(); assert.equal(result.status, "200"); @@ -251,7 +251,7 @@ describe("Service Fabric Rest Level Client Test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}", subscriptionId, resourceGroup, - clusterName + clusterName, ) .patch(parameters); const poller = getLongRunningPoller(client, initialResponse, testPollingOptions); @@ -267,7 +267,7 @@ describe("Service Fabric Rest Level Client Test", () => { subscriptionId, resourceGroup, clusterName, - applicationTypeName + applicationTypeName, ) .delete(); const poller = getLongRunningPoller(client, initialResponse, testPollingOptions); @@ -279,7 +279,7 @@ describe("Service Fabric Rest Level Client Test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes", subscriptionId, resourceGroup, - clusterName + clusterName, ) .get(); assert.equal(result.status, "200"); @@ -292,7 +292,7 @@ describe("Service Fabric Rest Level Client Test", () => { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}", subscriptionId, resourceGroup, - clusterName + clusterName, ) .delete(); assert.equal(deleteResult.status, "200"); @@ -300,7 +300,7 @@ describe("Service Fabric Rest Level Client Test", () => { .path( "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters", subscriptionId, - resourceGroup + resourceGroup, ) .get(); assert.equal(result.status, "200"); diff --git a/sdk/servicefabric/arm-servicefabric-rest/test/public/utils/recordedClient.ts b/sdk/servicefabric/arm-servicefabric-rest/test/public/utils/recordedClient.ts index 820a71457e16..12dcfe5931ea 100644 --- a/sdk/servicefabric/arm-servicefabric-rest/test/public/utils/recordedClient.ts +++ b/sdk/servicefabric/arm-servicefabric-rest/test/public/utils/recordedClient.ts @@ -33,7 +33,7 @@ export async function createRecorder(context: Context): Promise { export async function createClient( recorder: Recorder, - options?: ClientOptions + options?: ClientOptions, ): Promise { const credential = createTestCredential(); return ServiceFabricManagementClient(credential, recorder.configureClientOptions({ ...options })); diff --git a/sdk/storage/perf-tests/storage-blob/package.json b/sdk/storage/perf-tests/storage-blob/package.json index 2f7937e6849e..b78d96961af9 100644 --- a/sdk/storage/perf-tests/storage-blob/package.json +++ b/sdk/storage/perf-tests/storage-blob/package.json @@ -17,11 +17,11 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -30,9 +30,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/storage/perf-tests/storage-blob/test/dowloadWithSAS.spec.ts b/sdk/storage/perf-tests/storage-blob/test/dowloadWithSAS.spec.ts index 03b7be1e2e19..a7a7fd0d48ba 100644 --- a/sdk/storage/perf-tests/storage-blob/test/dowloadWithSAS.spec.ts +++ b/sdk/storage/perf-tests/storage-blob/test/dowloadWithSAS.spec.ts @@ -35,7 +35,7 @@ export class StorageBlobDownloadWithSASTest extends StorageBlobTest extends PerfTest { const connectionString = getEnvVar("STORAGE_CONNECTION_STRING"); this.sharedKeyCredential = new StorageSharedKeyCredential( getValueInConnString(connectionString, "AccountName"), - getValueInConnString(connectionString, "AccountKey") + getValueInConnString(connectionString, "AccountKey"), ); this.blobServiceClient = BlobServiceClient.fromConnectionString(connectionString); const options = this.configureClientOptions({ additionalPolicies: [] }); diff --git a/sdk/storage/perf-tests/storage-blob/test/upload.spec.ts b/sdk/storage/perf-tests/storage-blob/test/upload.spec.ts index dc6cb6b1464f..a116ae18886c 100644 --- a/sdk/storage/perf-tests/storage-blob/test/upload.spec.ts +++ b/sdk/storage/perf-tests/storage-blob/test/upload.spec.ts @@ -32,7 +32,7 @@ export class StorageBlobUploadTest extends StorageBlobTest extends PerfTest { this.datalakeServiceClient = new DataLakeServiceClient( `https://${accountName}.dfs.core.windows.net`, - sharedKeyCredential + sharedKeyCredential, ); this.fileSystemClient = this.datalakeServiceClient.getFileSystemClient( - StorageDFSTest.fileSystemName + StorageDFSTest.fileSystemName, ); this.directoryClient = this.fileSystemClient.getDirectoryClient(StorageDFSTest.directoryName); @@ -54,7 +54,7 @@ export abstract class StorageDFSTest extends PerfTest { export function getValueInConnString( connectionString: string, - argument: "AccountName" | "AccountKey" + argument: "AccountName" | "AccountKey", ) { const elements = connectionString.split(";"); for (const element of elements) { diff --git a/sdk/storage/perf-tests/storage-file-share/package.json b/sdk/storage/perf-tests/storage-file-share/package.json index af5f7c1222a6..2b5c499bfbef 100644 --- a/sdk/storage/perf-tests/storage-file-share/package.json +++ b/sdk/storage/perf-tests/storage-file-share/package.json @@ -16,11 +16,11 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -29,9 +29,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/storage/perf-tests/storage-file-share/test/downloadToFile.spec.ts b/sdk/storage/perf-tests/storage-file-share/test/downloadToFile.spec.ts index e70683c389d4..12a4dd3df544 100644 --- a/sdk/storage/perf-tests/storage-file-share/test/downloadToFile.spec.ts +++ b/sdk/storage/perf-tests/storage-file-share/test/downloadToFile.spec.ts @@ -35,7 +35,7 @@ export class StorageFileShareDownloadToFileTest extends StorageFileShareTest extends PerfTest constructor() { super(); this.shareServiceClient = ShareServiceClient.fromConnectionString( - getEnvVar("STORAGE_CONNECTION_STRING") + getEnvVar("STORAGE_CONNECTION_STRING"), ); this.shareClient = this.shareServiceClient.getShareClient(StorageFileShareTest.shareName); this.directoryClient = this.shareClient.getDirectoryClient(StorageFileShareTest.dirName); diff --git a/sdk/storage/storage-blob-changefeed/package.json b/sdk/storage/storage-blob-changefeed/package.json index bd3f7bcffe9c..8665bf31c213 100644 --- a/sdk/storage/storage-blob-changefeed/package.json +++ b/sdk/storage/storage-blob-changefeed/package.json @@ -23,12 +23,12 @@ "build:prep-samples": "dev-tool samples prep && cd dist-samples && tsc", "build:test": "npm run build:es6 && dev-tool run bundle --browser-test=false", "build": "npm run clean && npm run build:es6 && dev-tool run bundle --browser-test=false && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types temp statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml", "clean:samples": "rimraf samples/v12-beta/javascript/node_modules samples/v12-beta/typescript/node_modules samples/v12-beta/typescript/dist samples/v12-beta/typescript/package-lock.json samples/v12-beta/javascript/package-lock.json", "extract-api": "tsc -p . && api-extractor run --local", "execute:samples": "dev-tool samples run samples-dev", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/storage-blob-changefeed/test/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -124,7 +124,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", diff --git a/sdk/storage/storage-blob-changefeed/samples-dev/blobChangeFeedClient.ts b/sdk/storage/storage-blob-changefeed/samples-dev/blobChangeFeedClient.ts index 5cf96e70764f..822a943c0051 100644 --- a/sdk/storage/storage-blob-changefeed/samples-dev/blobChangeFeedClient.ts +++ b/sdk/storage/storage-blob-changefeed/samples-dev/blobChangeFeedClient.ts @@ -23,7 +23,7 @@ export async function main() { const changeFeedClient = new BlobChangeFeedClient( // When using AnonymousCredential, following url should include a valid SAS or support public access `https://${account}.blob.core.windows.net`, - sharedKeyCredential + sharedKeyCredential, ); const start = new Date(Date.UTC(2020, 1, 21, 22, 30, 0)); // will be rounded down to 22:00 diff --git a/sdk/storage/storage-blob-changefeed/samples-dev/resumeListChanges.ts b/sdk/storage/storage-blob-changefeed/samples-dev/resumeListChanges.ts index 4893773d2c32..8c94094bc319 100644 --- a/sdk/storage/storage-blob-changefeed/samples-dev/resumeListChanges.ts +++ b/sdk/storage/storage-blob-changefeed/samples-dev/resumeListChanges.ts @@ -23,7 +23,7 @@ export async function main() { const changeFeedClient = new BlobChangeFeedClient( // When using AnonymousCredential, following url should include a valid SAS or support public access `https://${account}.blob.core.windows.net`, - sharedKeyCredential + sharedKeyCredential, ); const changeFeedEvents: BlobChangeFeedEvent[] = []; diff --git a/sdk/storage/storage-blob-changefeed/src/AvroReaderFactory.ts b/sdk/storage/storage-blob-changefeed/src/AvroReaderFactory.ts index ef66c17a26f4..64fe70028396 100644 --- a/sdk/storage/storage-blob-changefeed/src/AvroReaderFactory.ts +++ b/sdk/storage/storage-blob-changefeed/src/AvroReaderFactory.ts @@ -13,14 +13,14 @@ export class AvroReaderFactory { dataStream: AvroReadable, headerStream: AvroReadable, blockOffset: number, - eventIndex: number + eventIndex: number, ): AvroReader; public create( dataStream: AvroReadable, headerStream?: AvroReadable, blockOffset?: number, - eventIndex?: number + eventIndex?: number, ): AvroReader { if (headerStream) { return new AvroReader(dataStream, headerStream, blockOffset!, eventIndex!); diff --git a/sdk/storage/storage-blob-changefeed/src/BlobChangeFeedClient.ts b/sdk/storage/storage-blob-changefeed/src/BlobChangeFeedClient.ts index ee462ec78de4..9a8ad58650fe 100644 --- a/sdk/storage/storage-blob-changefeed/src/BlobChangeFeedClient.ts +++ b/sdk/storage/storage-blob-changefeed/src/BlobChangeFeedClient.ts @@ -45,7 +45,7 @@ export class BlobChangeFeedEventPage { */ export function newPipeline( credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - pipelineOptions: StoragePipelineOptions = {} + pipelineOptions: StoragePipelineOptions = {}, ): Pipeline { return newPipeline(credential, appendUserAgentPrefix(pipelineOptions)); } @@ -108,14 +108,14 @@ export class BlobChangeFeedClient { options?: StoragePipelineOptions, // Static method to construct an object, the option is for the object not for the method. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - changeFeedClientOptions?: BlobChangeFeedClientOptions + changeFeedClientOptions?: BlobChangeFeedClientOptions, ): BlobChangeFeedClient { const blobServiceClient = BlobServiceClient.fromConnectionString(connectionString, options); return new BlobChangeFeedClient( blobServiceClient.url, blobServiceClient.credential, appendUserAgentPrefix(options), - changeFeedClientOptions + changeFeedClientOptions, ); } @@ -159,7 +159,7 @@ export class BlobChangeFeedClient { // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ options?: StoragePipelineOptions, - changeFeedClientOptions?: BlobChangeFeedClientOptions + changeFeedClientOptions?: BlobChangeFeedClientOptions, ); /** @@ -182,11 +182,11 @@ export class BlobChangeFeedClient { // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ options?: StoragePipelineOptions, - changeFeedClientOptions?: BlobChangeFeedClientOptions + changeFeedClientOptions?: BlobChangeFeedClientOptions, ) { this.changeFeedClientOptions = changeFeedClientOptions || {}; this.changeFeedFactory = new ChangeFeedFactory( - this.changeFeedClientOptions.maximumTransferSize + this.changeFeedClientOptions.maximumTransferSize, ); if (credentialOrPipeline instanceof Pipeline) { @@ -195,18 +195,18 @@ export class BlobChangeFeedClient { this.blobServiceClient = new BlobServiceClient( urlOrClient, credentialOrPipeline, - appendUserAgentPrefix(options) + appendUserAgentPrefix(options), ); } } private async *getChange( - options: BlobChangeFeedListChangesOptions = {} + options: BlobChangeFeedListChangesOptions = {}, ): AsyncIterableIterator { const changeFeed: ChangeFeed = await this.changeFeedFactory.create( this.blobServiceClient, undefined, - options + options, ); while (changeFeed.hasNext()) { @@ -226,12 +226,12 @@ export class BlobChangeFeedClient { private async *getPage( continuationToken?: string, maxPageSize?: number, - options: BlobChangeFeedListChangesOptions = {} + options: BlobChangeFeedListChangesOptions = {}, ): AsyncIterableIterator { const changeFeed: ChangeFeed = await this.changeFeedFactory.create( this.blobServiceClient, continuationToken, - options + options, ); if (!maxPageSize || maxPageSize > CHANGE_FEED_MAX_PAGE_SIZE) { @@ -332,7 +332,7 @@ export class BlobChangeFeedClient { * @returns An asyncIterableIterator that supports paging. */ public listChanges( - options: BlobChangeFeedListChangesOptions = {} + options: BlobChangeFeedListChangesOptions = {}, ): PagedAsyncIterableIterator { const iter = this.getChange(options); return { diff --git a/sdk/storage/storage-blob-changefeed/src/ChangeFeed.ts b/sdk/storage/storage-blob-changefeed/src/ChangeFeed.ts index f12e715ab7bc..196abae62515 100644 --- a/sdk/storage/storage-blob-changefeed/src/ChangeFeed.ts +++ b/sdk/storage/storage-blob-changefeed/src/ChangeFeed.ts @@ -52,7 +52,7 @@ export class ChangeFeed { currentSegment: Segment, lastConsumable: Date, startTime?: Date, - endTime?: Date + endTime?: Date, ); constructor( @@ -63,7 +63,7 @@ export class ChangeFeed { currentSegment?: Segment, lastConsumable?: Date, startTime?: Date, - endTime?: Date + endTime?: Date, ) { this.containerClient = containerClient; this.segmentFactory = segmentFactory; @@ -101,7 +101,7 @@ export class ChangeFeed { { abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, - } + }, ); } // If segments is empty, refill it @@ -115,7 +115,7 @@ export class ChangeFeed { { abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, - } + }, ); if (this.segments.length > 0) { @@ -126,13 +126,13 @@ export class ChangeFeed { { abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, - } + }, ); } else { this.currentSegment = undefined; } } - } + }, ); } @@ -150,7 +150,7 @@ export class ChangeFeed { } public async getChange( - options: ChangeFeedGetChangeOptions = {} + options: ChangeFeedGetChangeOptions = {}, ): Promise { return tracingClient.withSpan("ChangeFeed-getChange", options, async (updatedOptions) => { let event: BlobChangeFeedEvent | undefined = undefined; diff --git a/sdk/storage/storage-blob-changefeed/src/ChangeFeedFactory.ts b/sdk/storage/storage-blob-changefeed/src/ChangeFeedFactory.ts index 4e9c320b3750..2bad78d5259e 100644 --- a/sdk/storage/storage-blob-changefeed/src/ChangeFeedFactory.ts +++ b/sdk/storage/storage-blob-changefeed/src/ChangeFeedFactory.ts @@ -53,9 +53,9 @@ export class ChangeFeedFactory { new ChunkFactory( new AvroReaderFactory(), new LazyLoadingBlobStreamFactory(), - this.maxTransferSize - ) - ) + this.maxTransferSize, + ), + ), ); } } @@ -72,7 +72,7 @@ export class ChangeFeedFactory { public async create( blobServiceClient: BlobServiceClient, continuationToken?: string, - options: BlobChangeFeedListChangesOptions = {} + options: BlobChangeFeedListChangesOptions = {}, ): Promise { return tracingClient.withSpan("ChangeFeedFactory-create", options, async (updatedOptions) => { const containerClient = blobServiceClient.getContainerClient(CHANGE_FEED_CONTAINER_NAME); @@ -97,7 +97,7 @@ export class ChangeFeedFactory { }); if (!changeFeedContainerExists) { throw new Error( - "Change Feed hasn't been enabled on this account, or is currently being enabled." + "Change Feed hasn't been enabled on this account, or is currently being enabled.", ); } @@ -121,7 +121,7 @@ export class ChangeFeedFactory { } } const lastConsumable = new Date( - (JSON.parse(await bodyToString(blobDownloadRes)) as MetaSegments).lastConsumable + (JSON.parse(await bodyToString(blobDownloadRes)) as MetaSegments).lastConsumable, ); // Get year paths @@ -151,7 +151,7 @@ export class ChangeFeedFactory { { abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, - } + }, ); } if (segments.length === 0) { @@ -164,7 +164,7 @@ export class ChangeFeedFactory { { abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, - } + }, ); return new ChangeFeed( @@ -175,7 +175,7 @@ export class ChangeFeedFactory { currentSegment, lastConsumable, options.start, - options.end + options.end, ); }); } diff --git a/sdk/storage/storage-blob-changefeed/src/Chunk.ts b/sdk/storage/storage-blob-changefeed/src/Chunk.ts index c85ddd5652a2..918a912214c8 100644 --- a/sdk/storage/storage-blob-changefeed/src/Chunk.ts +++ b/sdk/storage/storage-blob-changefeed/src/Chunk.ts @@ -38,7 +38,7 @@ export class Chunk { blockOffset: number, eventIndex: number, public readonly chunkPath: string, - avroOptions: AvroParseOptions = {} + avroOptions: AvroParseOptions = {}, ) { this.avroReader = avroReader; this._blockOffset = blockOffset; diff --git a/sdk/storage/storage-blob-changefeed/src/ChunkFactory.ts b/sdk/storage/storage-blob-changefeed/src/ChunkFactory.ts index 653dafbc4da2..67fa79236efb 100644 --- a/sdk/storage/storage-blob-changefeed/src/ChunkFactory.ts +++ b/sdk/storage/storage-blob-changefeed/src/ChunkFactory.ts @@ -29,7 +29,7 @@ export class ChunkFactory { constructor( avroReaderFactory: AvroReaderFactory, lazyLoadingBlobStreamFactory: LazyLoadingBlobStreamFactory, - maxTransferSize?: number + maxTransferSize?: number, ) { this.avroReaderFactory = avroReaderFactory; this.lazyLoadingBlobStreamFactory = lazyLoadingBlobStreamFactory; @@ -41,7 +41,7 @@ export class ChunkFactory { chunkPath: string, blockOffset?: number, eventIndex?: number, - options: CreateChunkOptions = {} + options: CreateChunkOptions = {}, ): Promise { const blobClient = containerClient.getBlobClient(chunkPath); blockOffset = blockOffset || 0; @@ -52,8 +52,8 @@ export class ChunkFactory { blobClient, blockOffset, this.maxTransferSize ? this.maxTransferSize : CHANGE_FEED_CHUNK_BLOCK_DOWNLOAD_SIZE, - options - ) + options, + ), ); let avroReader: AvroReader; @@ -63,8 +63,8 @@ export class ChunkFactory { blobClient, 0, this.maxTransferSize ? this.maxTransferSize : CHANGE_FEED_CHUNK_BLOCK_DOWNLOAD_SIZE, - options - ) + options, + ), ); avroReader = this.avroReaderFactory.create(dataStream, headerStream, blockOffset, eventIndex); } else { diff --git a/sdk/storage/storage-blob-changefeed/src/LazyLoadingBlobStream.ts b/sdk/storage/storage-blob-changefeed/src/LazyLoadingBlobStream.ts index 81453ae7f1b4..cf6cea046c53 100644 --- a/sdk/storage/storage-blob-changefeed/src/LazyLoadingBlobStream.ts +++ b/sdk/storage/storage-blob-changefeed/src/LazyLoadingBlobStream.ts @@ -58,7 +58,7 @@ export class LazyLoadingBlobStream extends Readable { blobClient: BlobClient, offset: number, blockSize: number, - options?: LazyLoadingBlobStreamOptions + options?: LazyLoadingBlobStreamOptions, ) { super(options); this.blobClient = blobClient; @@ -92,10 +92,10 @@ export class LazyLoadingBlobStream extends Readable { { abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, - } + }, ); this.offset += this.lastDownloadBytes; - } + }, ); } @@ -137,7 +137,7 @@ export class LazyLoadingBlobStream extends Readable { if (count < size) { this.push(null); } - } + }, ); } } diff --git a/sdk/storage/storage-blob-changefeed/src/LazyLoadingBlobStreamFactory.ts b/sdk/storage/storage-blob-changefeed/src/LazyLoadingBlobStreamFactory.ts index f8607315e11d..5f928e339376 100644 --- a/sdk/storage/storage-blob-changefeed/src/LazyLoadingBlobStreamFactory.ts +++ b/sdk/storage/storage-blob-changefeed/src/LazyLoadingBlobStreamFactory.ts @@ -9,7 +9,7 @@ export class LazyLoadingBlobStreamFactory { blobClient: BlobClient, offset: number, blockSize: number, - options?: LazyLoadingBlobStreamOptions + options?: LazyLoadingBlobStreamOptions, ): LazyLoadingBlobStream { return new LazyLoadingBlobStream(blobClient, offset, blockSize, options); } diff --git a/sdk/storage/storage-blob-changefeed/src/Segment.ts b/sdk/storage/storage-blob-changefeed/src/Segment.ts index 7dffa58b6e18..482e75a8436d 100644 --- a/sdk/storage/storage-blob-changefeed/src/Segment.ts +++ b/sdk/storage/storage-blob-changefeed/src/Segment.ts @@ -39,7 +39,7 @@ export class Segment { shards: Shard[], shardIndex: number, dateTime: Date, - private readonly manifestPath: string + private readonly manifestPath: string, ) { this.shards = shards; this.shardIndex = shardIndex; @@ -54,7 +54,7 @@ export class Segment { } public async getChange( - options: SegmentGetChangeOptions = {} + options: SegmentGetChangeOptions = {}, ): Promise { return tracingClient.withSpan("Segment-getChange", options, async (updatedOptions) => { if (this.shardIndex >= this.shards.length || this.shardIndex < 0) { diff --git a/sdk/storage/storage-blob-changefeed/src/SegmentFactory.ts b/sdk/storage/storage-blob-changefeed/src/SegmentFactory.ts index 6bbcfdfa421a..2ad727e26bcd 100644 --- a/sdk/storage/storage-blob-changefeed/src/SegmentFactory.ts +++ b/sdk/storage/storage-blob-changefeed/src/SegmentFactory.ts @@ -43,7 +43,7 @@ export class SegmentFactory { containerClient: ContainerClient, manifestPath: string, cursor?: SegmentCursor, - options: CreateSegmentOptions = {} + options: CreateSegmentOptions = {}, ): Promise { return tracingClient.withSpan("SegmentFactory-create", options, async (updatedOptions) => { const shards: Shard[] = []; @@ -62,7 +62,7 @@ export class SegmentFactory { for (const shardPath of segmentManifest.chunkFilePaths) { const shardPathSubStr = shardPath.substring(containerPrefixLength); const shardCursor = cursor?.ShardCursors.find((x) => - x.CurrentChunkPath.startsWith(shardPathSubStr) + x.CurrentChunkPath.startsWith(shardPathSubStr), ); const shard: Shard = await this.shardFactory.create( containerClient, @@ -71,7 +71,7 @@ export class SegmentFactory { { abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, - } + }, ); if (shard.hasNext()) { shards.push(shard); diff --git a/sdk/storage/storage-blob-changefeed/src/Shard.ts b/sdk/storage/storage-blob-changefeed/src/Shard.ts index 50cb2b28a84f..852091c771f5 100644 --- a/sdk/storage/storage-blob-changefeed/src/Shard.ts +++ b/sdk/storage/storage-blob-changefeed/src/Shard.ts @@ -34,7 +34,7 @@ export class Shard { chunkFactory: ChunkFactory, chunks: string[], currentChunk: Chunk | undefined, - public readonly shardPath: string + public readonly shardPath: string, ) { this.containerClient = containerClient; this.chunkFactory = chunkFactory; @@ -49,7 +49,7 @@ export class Shard { } public async getChange( - options: ShardGetChangeOptions = {} + options: ShardGetChangeOptions = {}, ): Promise { return tracingClient.withSpan("Shard-getChange", options, async (updatedOptions) => { let event: BlobChangeFeedEvent | undefined = undefined; @@ -66,7 +66,7 @@ export class Shard { { abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, - } + }, ); } } diff --git a/sdk/storage/storage-blob-changefeed/src/ShardFactory.ts b/sdk/storage/storage-blob-changefeed/src/ShardFactory.ts index 3fcac5833b57..bdce60a304de 100644 --- a/sdk/storage/storage-blob-changefeed/src/ShardFactory.ts +++ b/sdk/storage/storage-blob-changefeed/src/ShardFactory.ts @@ -31,7 +31,7 @@ export class ShardFactory { containerClient: ContainerClient, shardPath: string, shardCursor?: ShardCursor, - options: CreateShardOptions = {} + options: CreateShardOptions = {}, ): Promise { return tracingClient.withSpan("ShardFactory-create", options, async (updatedOptions) => { const chunks: string[] = []; @@ -79,7 +79,7 @@ export class ShardFactory { { abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, - } + }, ); } diff --git a/sdk/storage/storage-blob-changefeed/src/utils/utils.browser.ts b/sdk/storage/storage-blob-changefeed/src/utils/utils.browser.ts index ec96666edeae..701074aabe4b 100644 --- a/sdk/storage/storage-blob-changefeed/src/utils/utils.browser.ts +++ b/sdk/storage/storage-blob-changefeed/src/utils/utils.browser.ts @@ -14,7 +14,7 @@ export async function bodyToString( blobBody?: Promise; }, // tslint:disable-next-line:variable-name - _length?: number + _length?: number, ): Promise { const blob = await response.blobBody!; return blobToString(blob); diff --git a/sdk/storage/storage-blob-changefeed/src/utils/utils.common.ts b/sdk/storage/storage-blob-changefeed/src/utils/utils.common.ts index 714098061311..810c77384369 100644 --- a/sdk/storage/storage-blob-changefeed/src/utils/utils.common.ts +++ b/sdk/storage/storage-blob-changefeed/src/utils/utils.common.ts @@ -45,7 +45,7 @@ export interface GetYearsPathsOptions extends CommonOptions { export async function getYearsPaths( containerClient: ContainerClient, - options: GetYearsPathsOptions = {} + options: GetYearsPathsOptions = {}, ): Promise { return tracingClient.withSpan("getYearsPaths", options, async (updatedOptions) => { const years: number[] = []; @@ -79,7 +79,7 @@ export async function getSegmentsInYear( year: number, startTime?: Date, endTime?: Date, - options: GetSegmentsInYearOptions = {} + options: GetSegmentsInYearOptions = {}, ): Promise { return tracingClient.withSpan("getSegmentsInYear", options, async (updatedOptions) => { const segments: string[] = []; diff --git a/sdk/storage/storage-blob-changefeed/src/utils/utils.node.ts b/sdk/storage/storage-blob-changefeed/src/utils/utils.node.ts index 75fe82697e01..6c869e2b5d33 100644 --- a/sdk/storage/storage-blob-changefeed/src/utils/utils.node.ts +++ b/sdk/storage/storage-blob-changefeed/src/utils/utils.node.ts @@ -15,7 +15,7 @@ export async function bodyToString( readableStreamBody?: NodeJS.ReadableStream; blobBody?: Promise; }, - length?: number + length?: number, ): Promise { return new Promise((resolve, reject) => { response.readableStreamBody!.on("readable", () => { diff --git a/sdk/storage/storage-blob-changefeed/test/blobchangefeedclient.spec.ts b/sdk/storage/storage-blob-changefeed/test/blobchangefeedclient.spec.ts index 2ce700aa90b4..aed446f92149 100644 --- a/sdk/storage/storage-blob-changefeed/test/blobchangefeedclient.spec.ts +++ b/sdk/storage/storage-blob-changefeed/test/blobchangefeedclient.spec.ts @@ -177,7 +177,7 @@ describe("BlobChangeFeedClient", async () => { const pageIter = changeFeedClient.listChanges(options); await pageIter.next(); }, - ["ChangeFeedFactory-create", "ChangeFeed-getChange"] + ["ChangeFeedFactory-create", "ChangeFeed-getChange"], ); }); }); @@ -245,16 +245,16 @@ describe("Change feed event schema test", async () => { assert.equal(1, changeFeedEvent.schemaVersion); assert.equal( "/subscriptions/dd40261b-437d-43d0-86cf-ef222b78fd15/resourceGroups/haambaga/providers/Microsoft.Storage/storageAccounts/HAAMBAGA-DEV", - changeFeedEvent.topic + changeFeedEvent.topic, ); assert.equal( "/blobServices/default/containers/apitestcontainerver/blobs/20220217_125928329_Blob_oaG6iu7ImEB1cX8M", - changeFeedEvent.subject + changeFeedEvent.subject, ); assert.equal("BlobCreated", changeFeedEvent.eventType); assert.equal( new Date("2022-02-17T12:59:41.4003102Z").valueOf(), - changeFeedEvent.eventTime.valueOf() + changeFeedEvent.eventTime.valueOf(), ); assert.equal("322343e3-8020-0000-00fe-233467066726", changeFeedEvent.id); assert.equal("PutBlob", changeFeedEvent.data.api); @@ -267,7 +267,7 @@ describe("Change feed event schema test", async () => { assert.equal("https://www.myurl.com", changeFeedEvent.data.url); assert.equal( "00000000000000010000000000000002000000000000001d", - changeFeedEvent.data.sequencer + changeFeedEvent.data.sequencer, ); }); @@ -280,16 +280,16 @@ describe("Change feed event schema test", async () => { assert.equal(3, changeFeedEvent.schemaVersion); assert.equal( "/subscriptions/dd40261b-437d-43d0-86cf-ef222b78fd15/resourceGroups/haambaga/providers/Microsoft.Storage/storageAccounts/HAAMBAGA-DEV", - changeFeedEvent.topic + changeFeedEvent.topic, ); assert.equal( "/blobServices/default/containers/apitestcontainerver/blobs/20220217_130510699_Blob_oaG6iu7ImEB1cX8M", - changeFeedEvent.subject + changeFeedEvent.subject, ); assert.equal("BlobCreated", changeFeedEvent.eventType); assert.equal( new Date("2022-02-17T13:05:19.6798242Z").valueOf(), - changeFeedEvent.eventTime.valueOf() + changeFeedEvent.eventTime.valueOf(), ); assert.equal("eefe8fc8-8020-0000-00fe-23346706daaa", changeFeedEvent.id); assert.equal("PutBlob", changeFeedEvent.data.api); @@ -302,12 +302,12 @@ describe("Change feed event schema test", async () => { assert.equal("https://www.myurl.com", changeFeedEvent.data.url); assert.equal( "00000000000000010000000000000002000000000000001d", - changeFeedEvent.data.sequencer + changeFeedEvent.data.sequencer, ); assert.equal( "2022-02-17T13:08:42.4825913Z", - changeFeedEvent.data.previousInfo?.softDeleteSnapshot + changeFeedEvent.data.previousInfo?.softDeleteSnapshot, ); assert.ok(changeFeedEvent.data.previousInfo?.isBlobSoftDeleted === true); assert.equal("2024-02-17T16:11:52.0781797Z", changeFeedEvent.data.previousInfo?.newBlobVersion); @@ -318,65 +318,65 @@ describe("Change feed event schema test", async () => { assert.equal( "ContentLanguage", - changeFeedEvent.data.updatedBlobProperties!["ContentLanguage"].propertyName + changeFeedEvent.data.updatedBlobProperties!["ContentLanguage"].propertyName, ); assert.equal("pl-Pl", changeFeedEvent.data.updatedBlobProperties!["ContentLanguage"].newValue); assert.equal("nl-NL", changeFeedEvent.data.updatedBlobProperties!["ContentLanguage"].oldValue); assert.equal( "CacheControl", - changeFeedEvent.data.updatedBlobProperties!["CacheControl"].propertyName + changeFeedEvent.data.updatedBlobProperties!["CacheControl"].propertyName, ); assert.equal( "max-age=100", - changeFeedEvent.data.updatedBlobProperties!["CacheControl"].newValue + changeFeedEvent.data.updatedBlobProperties!["CacheControl"].newValue, ); assert.equal( "max-age=99", - changeFeedEvent.data.updatedBlobProperties!["CacheControl"].oldValue + changeFeedEvent.data.updatedBlobProperties!["CacheControl"].oldValue, ); assert.equal( "ContentEncoding", - changeFeedEvent.data.updatedBlobProperties!["ContentEncoding"].propertyName + changeFeedEvent.data.updatedBlobProperties!["ContentEncoding"].propertyName, ); assert.equal( "gzip, identity", - changeFeedEvent.data.updatedBlobProperties!["ContentEncoding"].newValue + changeFeedEvent.data.updatedBlobProperties!["ContentEncoding"].newValue, ); assert.equal("gzip", changeFeedEvent.data.updatedBlobProperties!["ContentEncoding"].oldValue); assert.equal( "ContentMD5", - changeFeedEvent.data.updatedBlobProperties!["ContentMD5"].propertyName + changeFeedEvent.data.updatedBlobProperties!["ContentMD5"].propertyName, ); assert.equal( "Q2h1Y2sgSW51ZwDIAXR5IQ==", - changeFeedEvent.data.updatedBlobProperties!["ContentMD5"].newValue + changeFeedEvent.data.updatedBlobProperties!["ContentMD5"].newValue, ); assert.equal("Q2h1Y2sgSW=", changeFeedEvent.data.updatedBlobProperties!["ContentMD5"].oldValue); assert.equal( "ContentDisposition", - changeFeedEvent.data.updatedBlobProperties!["ContentDisposition"].propertyName + changeFeedEvent.data.updatedBlobProperties!["ContentDisposition"].propertyName, ); assert.equal( "attachment", - changeFeedEvent.data.updatedBlobProperties!["ContentDisposition"].newValue + changeFeedEvent.data.updatedBlobProperties!["ContentDisposition"].newValue, ); assert.equal("", changeFeedEvent.data.updatedBlobProperties!["ContentDisposition"].oldValue); assert.equal( "ContentType", - changeFeedEvent.data.updatedBlobProperties!["ContentType"].propertyName + changeFeedEvent.data.updatedBlobProperties!["ContentType"].propertyName, ); assert.equal( "application/json", - changeFeedEvent.data.updatedBlobProperties!["ContentType"].newValue + changeFeedEvent.data.updatedBlobProperties!["ContentType"].newValue, ); assert.equal( "application/octet-stream", - changeFeedEvent.data.updatedBlobProperties!["ContentType"].oldValue + changeFeedEvent.data.updatedBlobProperties!["ContentType"].oldValue, ); }); @@ -389,16 +389,16 @@ describe("Change feed event schema test", async () => { assert.equal(4, changeFeedEvent.schemaVersion); assert.equal( "/subscriptions/dd40261b-437d-43d0-86cf-ef222b78fd15/resourceGroups/haambaga/providers/Microsoft.Storage/storageAccounts/HAAMBAGA-DEV", - changeFeedEvent.topic + changeFeedEvent.topic, ); assert.equal( "/blobServices/default/containers/apitestcontainerver/blobs/20220217_130833395_Blob_oaG6iu7ImEB1cX8M", - changeFeedEvent.subject + changeFeedEvent.subject, ); assert.equal("BlobCreated", changeFeedEvent.eventType); assert.equal( new Date("2022-02-17T13:08:42.4835902Z").valueOf(), - changeFeedEvent.eventTime.valueOf() + changeFeedEvent.eventTime.valueOf(), ); assert.equal("ca76bce1-8020-0000-00ff-23346706e769", changeFeedEvent.id); assert.equal("PutBlob", changeFeedEvent.data.api); @@ -414,12 +414,12 @@ describe("Change feed event schema test", async () => { assert.equal("https://www.myurl.com", changeFeedEvent.data.url); assert.equal( "00000000000000010000000000000002000000000000001d", - changeFeedEvent.data.sequencer + changeFeedEvent.data.sequencer, ); assert.equal( "2022-02-17T13:08:42.4825913Z", - changeFeedEvent.data.previousInfo?.softDeleteSnapshot + changeFeedEvent.data.previousInfo?.softDeleteSnapshot, ); assert.ok(changeFeedEvent.data.previousInfo?.isBlobSoftDeleted === true); assert.equal("2024-02-17T16:11:52.0781797Z", changeFeedEvent.data.previousInfo?.newBlobVersion); @@ -430,65 +430,65 @@ describe("Change feed event schema test", async () => { assert.equal( "ContentLanguage", - changeFeedEvent.data.updatedBlobProperties!["ContentLanguage"].propertyName + changeFeedEvent.data.updatedBlobProperties!["ContentLanguage"].propertyName, ); assert.equal("pl-Pl", changeFeedEvent.data.updatedBlobProperties!["ContentLanguage"].newValue); assert.equal("nl-NL", changeFeedEvent.data.updatedBlobProperties!["ContentLanguage"].oldValue); assert.equal( "CacheControl", - changeFeedEvent.data.updatedBlobProperties!["CacheControl"].propertyName + changeFeedEvent.data.updatedBlobProperties!["CacheControl"].propertyName, ); assert.equal( "max-age=100", - changeFeedEvent.data.updatedBlobProperties!["CacheControl"].newValue + changeFeedEvent.data.updatedBlobProperties!["CacheControl"].newValue, ); assert.equal( "max-age=99", - changeFeedEvent.data.updatedBlobProperties!["CacheControl"].oldValue + changeFeedEvent.data.updatedBlobProperties!["CacheControl"].oldValue, ); assert.equal( "ContentEncoding", - changeFeedEvent.data.updatedBlobProperties!["ContentEncoding"].propertyName + changeFeedEvent.data.updatedBlobProperties!["ContentEncoding"].propertyName, ); assert.equal( "gzip, identity", - changeFeedEvent.data.updatedBlobProperties!["ContentEncoding"].newValue + changeFeedEvent.data.updatedBlobProperties!["ContentEncoding"].newValue, ); assert.equal("gzip", changeFeedEvent.data.updatedBlobProperties!["ContentEncoding"].oldValue); assert.equal( "ContentMD5", - changeFeedEvent.data.updatedBlobProperties!["ContentMD5"].propertyName + changeFeedEvent.data.updatedBlobProperties!["ContentMD5"].propertyName, ); assert.equal( "Q2h1Y2sgSW51ZwDIAXR5IQ==", - changeFeedEvent.data.updatedBlobProperties!["ContentMD5"].newValue + changeFeedEvent.data.updatedBlobProperties!["ContentMD5"].newValue, ); assert.equal("Q2h1Y2sgSW=", changeFeedEvent.data.updatedBlobProperties!["ContentMD5"].oldValue); assert.equal( "ContentDisposition", - changeFeedEvent.data.updatedBlobProperties!["ContentDisposition"].propertyName + changeFeedEvent.data.updatedBlobProperties!["ContentDisposition"].propertyName, ); assert.equal( "attachment", - changeFeedEvent.data.updatedBlobProperties!["ContentDisposition"].newValue + changeFeedEvent.data.updatedBlobProperties!["ContentDisposition"].newValue, ); assert.equal("", changeFeedEvent.data.updatedBlobProperties!["ContentDisposition"].oldValue); assert.equal( "ContentType", - changeFeedEvent.data.updatedBlobProperties!["ContentType"].propertyName + changeFeedEvent.data.updatedBlobProperties!["ContentType"].propertyName, ); assert.equal( "application/json", - changeFeedEvent.data.updatedBlobProperties!["ContentType"].newValue + changeFeedEvent.data.updatedBlobProperties!["ContentType"].newValue, ); assert.equal( "application/octet-stream", - changeFeedEvent.data.updatedBlobProperties!["ContentType"].oldValue + changeFeedEvent.data.updatedBlobProperties!["ContentType"].oldValue, ); assert.equal("Hot", changeFeedEvent.data.longRunningOperationInfo?.destinationAccessTier); @@ -504,16 +504,16 @@ describe("Change feed event schema test", async () => { assert.equal(5, changeFeedEvent.schemaVersion); assert.equal( "/subscriptions/dd40261b-437d-43d0-86cf-ef222b78fd15/resourceGroups/haambaga/providers/Microsoft.Storage/storageAccounts/HAAMBAGA-DEV", - changeFeedEvent.topic + changeFeedEvent.topic, ); assert.equal( "/blobServices/default/containers/apitestcontainerver/blobs/20220217_131202494_Blob_oaG6iu7ImEB1cX8M", - changeFeedEvent.subject + changeFeedEvent.subject, ); assert.equal("BlobCreated", changeFeedEvent.eventType); assert.equal( new Date("2022-02-17T13:12:11.5746587Z").valueOf(), - changeFeedEvent.eventTime.valueOf() + changeFeedEvent.eventTime.valueOf(), ); assert.equal("62616073-8020-0000-00ff-233467060cc0", changeFeedEvent.id); assert.equal("PutBlob", changeFeedEvent.data.api); @@ -529,12 +529,12 @@ describe("Change feed event schema test", async () => { assert.equal("https://www.myurl.com", changeFeedEvent.data.url); assert.equal( "00000000000000010000000000000002000000000000001d", - changeFeedEvent.data.sequencer + changeFeedEvent.data.sequencer, ); assert.equal( "2022-02-17T13:12:11.5726507Z", - changeFeedEvent.data.previousInfo?.softDeleteSnapshot + changeFeedEvent.data.previousInfo?.softDeleteSnapshot, ); assert.ok(changeFeedEvent.data.previousInfo?.isBlobSoftDeleted === true); assert.equal("2024-02-17T16:11:52.0781797Z", changeFeedEvent.data.previousInfo?.newBlobVersion); @@ -545,65 +545,65 @@ describe("Change feed event schema test", async () => { assert.equal( "ContentLanguage", - changeFeedEvent.data.updatedBlobProperties!["ContentLanguage"].propertyName + changeFeedEvent.data.updatedBlobProperties!["ContentLanguage"].propertyName, ); assert.equal("pl-Pl", changeFeedEvent.data.updatedBlobProperties!["ContentLanguage"].newValue); assert.equal("nl-NL", changeFeedEvent.data.updatedBlobProperties!["ContentLanguage"].oldValue); assert.equal( "CacheControl", - changeFeedEvent.data.updatedBlobProperties!["CacheControl"].propertyName + changeFeedEvent.data.updatedBlobProperties!["CacheControl"].propertyName, ); assert.equal( "max-age=100", - changeFeedEvent.data.updatedBlobProperties!["CacheControl"].newValue + changeFeedEvent.data.updatedBlobProperties!["CacheControl"].newValue, ); assert.equal( "max-age=99", - changeFeedEvent.data.updatedBlobProperties!["CacheControl"].oldValue + changeFeedEvent.data.updatedBlobProperties!["CacheControl"].oldValue, ); assert.equal( "ContentEncoding", - changeFeedEvent.data.updatedBlobProperties!["ContentEncoding"].propertyName + changeFeedEvent.data.updatedBlobProperties!["ContentEncoding"].propertyName, ); assert.equal( "gzip, identity", - changeFeedEvent.data.updatedBlobProperties!["ContentEncoding"].newValue + changeFeedEvent.data.updatedBlobProperties!["ContentEncoding"].newValue, ); assert.equal("gzip", changeFeedEvent.data.updatedBlobProperties!["ContentEncoding"].oldValue); assert.equal( "ContentMD5", - changeFeedEvent.data.updatedBlobProperties!["ContentMD5"].propertyName + changeFeedEvent.data.updatedBlobProperties!["ContentMD5"].propertyName, ); assert.equal( "Q2h1Y2sgSW51ZwDIAXR5IQ==", - changeFeedEvent.data.updatedBlobProperties!["ContentMD5"].newValue + changeFeedEvent.data.updatedBlobProperties!["ContentMD5"].newValue, ); assert.equal("Q2h1Y2sgSW=", changeFeedEvent.data.updatedBlobProperties!["ContentMD5"].oldValue); assert.equal( "ContentDisposition", - changeFeedEvent.data.updatedBlobProperties!["ContentDisposition"].propertyName + changeFeedEvent.data.updatedBlobProperties!["ContentDisposition"].propertyName, ); assert.equal( "attachment", - changeFeedEvent.data.updatedBlobProperties!["ContentDisposition"].newValue + changeFeedEvent.data.updatedBlobProperties!["ContentDisposition"].newValue, ); assert.equal("", changeFeedEvent.data.updatedBlobProperties!["ContentDisposition"].oldValue); assert.equal( "ContentType", - changeFeedEvent.data.updatedBlobProperties!["ContentType"].propertyName + changeFeedEvent.data.updatedBlobProperties!["ContentType"].propertyName, ); assert.equal( "application/json", - changeFeedEvent.data.updatedBlobProperties!["ContentType"].newValue + changeFeedEvent.data.updatedBlobProperties!["ContentType"].newValue, ); assert.equal( "application/octet-stream", - changeFeedEvent.data.updatedBlobProperties!["ContentType"].oldValue + changeFeedEvent.data.updatedBlobProperties!["ContentType"].oldValue, ); assert.equal("Hot", changeFeedEvent.data.longRunningOperationInfo?.destinationAccessTier); diff --git a/sdk/storage/storage-blob-changefeed/test/chunk.spec.ts b/sdk/storage/storage-blob-changefeed/test/chunk.spec.ts index 5ed80506d85f..1a314e0d1f56 100644 --- a/sdk/storage/storage-blob-changefeed/test/chunk.spec.ts +++ b/sdk/storage/storage-blob-changefeed/test/chunk.spec.ts @@ -13,7 +13,7 @@ class FakeAvroReader { public objectIndex: number, public hasNext: boolean, private _record: any, - public blockSize?: number + public blockSize?: number, ) {} public async *parseObjects(): AsyncIterableIterator | null> { @@ -59,7 +59,7 @@ describe("Chunk", async () => { avroReaderStub as any, avroReaderStub.blockOffset, avroReaderStub.objectIndex, - "log/00/2020/07/30/2300/" + "log/00/2020/07/30/2300/", ); // act and verify diff --git a/sdk/storage/storage-blob-changefeed/test/segment.spec.ts b/sdk/storage/storage-blob-changefeed/test/segment.spec.ts index 48a85e4e55e9..52402facd0ea 100644 --- a/sdk/storage/storage-blob-changefeed/test/segment.spec.ts +++ b/sdk/storage/storage-blob-changefeed/test/segment.spec.ts @@ -69,7 +69,7 @@ describe("Segment", async () => { const changedEvent = await segment.getChange(); assert.equal( changedEvent, - ((i + 2) % shardCount) as unknown as BlobChangeFeedEvent | undefined + ((i + 2) % shardCount) as unknown as BlobChangeFeedEvent | undefined, ); } const event2 = await segment.getChange(); diff --git a/sdk/storage/storage-blob-changefeed/test/shard.spec.ts b/sdk/storage/storage-blob-changefeed/test/shard.spec.ts index 89779e118b86..08f64a924810 100644 --- a/sdk/storage/storage-blob-changefeed/test/shard.spec.ts +++ b/sdk/storage/storage-blob-changefeed/test/shard.spec.ts @@ -48,13 +48,13 @@ describe("Shard", async () => { const shard = await shardFactory.create( containerClientSub as any, shardPathWithoutContainer, - shardCursor + shardCursor, ); assert.ok( chunkFactoryStub.create.calledWith( containerClientSub, - `${shardPathWithoutContainer}0000${chunkIndex}.avro` - ) + `${shardPathWithoutContainer}0000${chunkIndex}.avro`, + ), ); // shift to next chunk when currentChunk is done @@ -70,8 +70,8 @@ describe("Shard", async () => { assert.ok( chunkFactoryStub.create.calledWith( containerClientSub, - `${shardPathWithoutContainer}0000${chunkIndex + 1}.avro` - ) + `${shardPathWithoutContainer}0000${chunkIndex + 1}.avro`, + ), ); assert.deepStrictEqual(change, event as BlobChangeFeedEvent); const cursor2 = shard.getCursor(); @@ -89,8 +89,8 @@ describe("Shard", async () => { assert.ok( chunkFactoryStub.create.calledWith( containerClientSub, - `${shardPathWithoutContainer}0000${chunkIndex + 2}.avro` - ) + `${shardPathWithoutContainer}0000${chunkIndex + 2}.avro`, + ), ); assert.equal(change2, undefined); const cursor3 = shard.getCursor(); diff --git a/sdk/storage/storage-blob-changefeed/test/utils/index.ts b/sdk/storage/storage-blob-changefeed/test/utils/index.ts index 495f25312f1e..83d47fec3cc3 100644 --- a/sdk/storage/storage-blob-changefeed/test/utils/index.ts +++ b/sdk/storage/storage-blob-changefeed/test/utils/index.ts @@ -21,7 +21,7 @@ export function getGenericCredential(accountType: string): StorageSharedKeyCrede const accountKey = env[accountKeyEnvVar]; if (!accountName || !accountKey || accountName === "" || accountKey === "") { throw new Error( - `${accountNameEnvVar} and/or ${accountKeyEnvVar} environment variables not specified.` + `${accountNameEnvVar} and/or ${accountKeyEnvVar} environment variables not specified.`, ); } @@ -30,7 +30,7 @@ export function getGenericCredential(accountType: string): StorageSharedKeyCrede export function getGenericBSU( accountType: string, - accountNameSuffix: string = "" + accountNameSuffix: string = "", ): BlobServiceClient { if ( env.STORAGE_CONNECTION_STRING && @@ -91,7 +91,7 @@ export function getBlobChangeFeedClient( recorder: Recorder, accountType: string = "", accountNameSuffix: string = "", - options: StoragePipelineOptions = {} + options: StoragePipelineOptions = {}, ): BlobChangeFeedClient { let client: BlobChangeFeedClient; if ( diff --git a/sdk/storage/storage-blob-changefeed/test/utils/testutils.common.ts b/sdk/storage/storage-blob-changefeed/test/utils/testutils.common.ts index d1af1399a615..5766588c5a5c 100644 --- a/sdk/storage/storage-blob-changefeed/test/utils/testutils.common.ts +++ b/sdk/storage/storage-blob-changefeed/test/utils/testutils.common.ts @@ -95,7 +95,7 @@ export class SimpleTokenCredential implements TokenCredential { */ async getToken( _scopes: string | string[], - _options?: GetTokenOptions + _options?: GetTokenOptions, ): Promise { return { token: this.token, diff --git a/sdk/storage/storage-blob/package.json b/sdk/storage/storage-blob/package.json index 622b7aeddd73..c231413244ec 100644 --- a/sdk/storage/storage-blob/package.json +++ b/sdk/storage/storage-blob/package.json @@ -35,12 +35,12 @@ "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", "build:samples": "echo Obsolete;", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types temp statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml", "clean:samples": "rimraf samples/v12/javascript/node_modules samples/v12/typescript/node_modules samples/v12/typescript/dist samples/v12/typescript/package-lock.json samples/v12/javascript/package-lock.json", "extract-api": "tsc -p . && api-extractor run --local", "execute:samples": "dev-tool samples run samples-dev", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/storage-blob/test/*.spec.js' 'dist-esm/storage-blob/test/node/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -167,7 +167,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", diff --git a/sdk/storage/storage-blob/samples-dev/advancedRequestOptions.ts b/sdk/storage/storage-blob/samples-dev/advancedRequestOptions.ts index cc85e8cc45f5..3d2b4fb9cd26 100644 --- a/sdk/storage/storage-blob/samples-dev/advancedRequestOptions.ts +++ b/sdk/storage/storage-blob/samples-dev/advancedRequestOptions.ts @@ -40,7 +40,7 @@ async function main() { const blobServiceClient = new BlobServiceClient( `https://${account}.blob.core.windows.net${accountSas}`, - pipeline + pipeline, ); // Create a container @@ -50,7 +50,7 @@ async function main() { await containerClient.create(); } catch (err: any) { console.log( - `Creating a container failed, requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}` + `Creating a container failed, requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}`, ); } @@ -69,7 +69,7 @@ async function main() { console.log("Successfully uploaded file:", blockBlobClient.name); } catch (err: any) { console.log( - `uploadFile failed, requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}` + `uploadFile failed, requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}`, ); } @@ -83,7 +83,7 @@ async function main() { console.log("uploadStream succeeds"); } catch (err: any) { console.log( - `uploadStream failed, requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}` + `uploadStream failed, requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}`, ); } @@ -112,7 +112,7 @@ async function main() { console.log("downloadToBuffer succeeds"); } catch (err: any) { console.log( - `downloadToBuffer failed, requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}` + `downloadToBuffer failed, requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}`, ); } @@ -125,7 +125,7 @@ async function main() { } catch (err: any) { // BlobArchived Conflict (409) This operation is not permitted on an archived blob. console.log( - `requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}` + `requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}`, ); console.log(`error message - ${err.details.message}\n`); } diff --git a/sdk/storage/storage-blob/samples-dev/anonymousAuth.ts b/sdk/storage/storage-blob/samples-dev/anonymousAuth.ts index 8b2777c22e04..7cb984517aba 100644 --- a/sdk/storage/storage-blob/samples-dev/anonymousAuth.ts +++ b/sdk/storage/storage-blob/samples-dev/anonymousAuth.ts @@ -21,7 +21,7 @@ async function main() { const blobServiceClient = new BlobServiceClient( // When using AnonymousCredential, following url should include a valid SAS or support public access `https://${account}.blob.core.windows.net${accountSas}`, - new AnonymousCredential() + new AnonymousCredential(), ); console.log("Containers:"); diff --git a/sdk/storage/storage-blob/samples-dev/azureAdAuth.ts b/sdk/storage/storage-blob/samples-dev/azureAdAuth.ts index 8ff26ef72286..b0447bafa198 100644 --- a/sdk/storage/storage-blob/samples-dev/azureAdAuth.ts +++ b/sdk/storage/storage-blob/samples-dev/azureAdAuth.ts @@ -52,7 +52,7 @@ async function main() { const blobServiceClient = new BlobServiceClient( `https://${account}.blob.core.windows.net`, - new DefaultAzureCredential() + new DefaultAzureCredential(), ); // Create a container diff --git a/sdk/storage/storage-blob/samples-dev/customPipeline.ts b/sdk/storage/storage-blob/samples-dev/customPipeline.ts index 7793baf91acb..b8bc69b10a03 100644 --- a/sdk/storage/storage-blob/samples-dev/customPipeline.ts +++ b/sdk/storage/storage-blob/samples-dev/customPipeline.ts @@ -31,7 +31,7 @@ async function main() { // List containers const blobServiceClient = new BlobServiceClient( `https://${account}.blob.core.windows.net`, - pipeline + pipeline, ); let i = 1; diff --git a/sdk/storage/storage-blob/samples-dev/customizedClientHeaders.ts b/sdk/storage/storage-blob/samples-dev/customizedClientHeaders.ts index ec798bc27304..29f4fd2e9f91 100644 --- a/sdk/storage/storage-blob/samples-dev/customizedClientHeaders.ts +++ b/sdk/storage/storage-blob/samples-dev/customizedClientHeaders.ts @@ -55,7 +55,7 @@ class RequestIDPolicy extends BaseRequestPolicy { // Customize client request ID header request.headers.set( "x-ms-client-request-id", - `${this.prefix}_SOME_PATTERN_${new Date().getTime()}` + `${this.prefix}_SOME_PATTERN_${new Date().getTime()}`, ); // response is HttpOperationResponse type @@ -80,7 +80,7 @@ async function main() { const blobServiceClient = new BlobServiceClient( `https://${account}.blob.core.windows.net${accountSas}`, - pipeline + pipeline, ); const result = await blobServiceClient.listContainers().byPage().next(); diff --git a/sdk/storage/storage-blob/samples-dev/errorsAndResponses.ts b/sdk/storage/storage-blob/samples-dev/errorsAndResponses.ts index 8d3a7478046d..5823cdfa8ac6 100644 --- a/sdk/storage/storage-blob/samples-dev/errorsAndResponses.ts +++ b/sdk/storage/storage-blob/samples-dev/errorsAndResponses.ts @@ -30,7 +30,7 @@ async function main() { let createContainerResponse = await containerClient.create(); console.log(`Created container ${containerName} successfully,`); console.log( - `requestId - ${createContainerResponse.requestId}, statusCode - ${createContainerResponse._response.status}\n` + `requestId - ${createContainerResponse.requestId}, statusCode - ${createContainerResponse._response.status}\n`, ); try { @@ -39,7 +39,7 @@ async function main() { createContainerResponse = await containerClient.create(); } catch (err: any) { console.log( - `requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}\n` + `requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}\n`, ); } @@ -55,7 +55,7 @@ async function main() { } catch (err: any) { console.log(`getProperties() failed as expected,`); console.log( - `requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}\n` + `requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}\n`, ); // Create a new block blob @@ -63,7 +63,7 @@ async function main() { const uploadBlobResponse = await blockBlobClient.upload(content, Buffer.byteLength(content)); console.log(`Uploaded block blob ${blobName} successfully,`); console.log( - `requestId - ${uploadBlobResponse.requestId}, statusCode - ${uploadBlobResponse._response.status}\n` + `requestId - ${uploadBlobResponse.requestId}, statusCode - ${uploadBlobResponse._response.status}\n`, ); } @@ -72,10 +72,10 @@ async function main() { blockBlobClient = containerClient.getBlockBlobClient(blobName); const blobProperties = await blockBlobClient.getProperties(); console.log( - `getProperties() on blob - ${blobName}, blobType = ${blobProperties.blobType}, accessTier = ${blobProperties.accessTier} ` + `getProperties() on blob - ${blobName}, blobType = ${blobProperties.blobType}, accessTier = ${blobProperties.accessTier} `, ); console.log( - `requestId - ${blobProperties.requestId}, statusCode - ${blobProperties._response.status}\n` + `requestId - ${blobProperties.requestId}, statusCode - ${blobProperties._response.status}\n`, ); try { @@ -86,7 +86,7 @@ async function main() { } catch (err: any) { console.log(`download() failed as expected,`); console.log( - `requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}\n` + `requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}\n`, ); // Download blob content @@ -96,10 +96,10 @@ async function main() { console.log( `Downloaded blob content - ${( await streamToBuffer(downloadBlockBlobResponse.readableStreamBody!) - ).toString()},` + ).toString()},`, ); console.log( - `requestId - ${downloadBlockBlobResponse.requestId}, statusCode - ${downloadBlockBlobResponse._response.status}\n` + `requestId - ${downloadBlockBlobResponse.requestId}, statusCode - ${downloadBlockBlobResponse._response.status}\n`, ); } @@ -113,7 +113,7 @@ async function main() { } catch (err: any) { // BlobArchived Conflict (409) This operation is not permitted on an archived blob. console.log( - `requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}` + `requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}`, ); console.log(`error message - ${err.details.message}\n`); } @@ -127,7 +127,7 @@ async function main() { } catch (err: any) { console.log(`Deleting a non-existing container fails as expected`); console.log( - `requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}` + `requestId - ${err.request.requestId}, statusCode - ${err.statusCode}, errorCode - ${err.details.errorCode}`, ); console.log(`error message - \n${err.details.message}\n`); @@ -136,7 +136,7 @@ async function main() { const deleteContainerResponse = await containerClient.delete(); console.log("Deleted container successfully -"); console.log( - `requestId - ${deleteContainerResponse.requestId}, statusCode - ${deleteContainerResponse._response.status}\n` + `requestId - ${deleteContainerResponse.requestId}, statusCode - ${deleteContainerResponse._response.status}\n`, ); } } diff --git a/sdk/storage/storage-blob/samples-dev/listBlobsByHierarchy.ts b/sdk/storage/storage-blob/samples-dev/listBlobsByHierarchy.ts index 1ec894582752..cc0e41b51100 100644 --- a/sdk/storage/storage-blob/samples-dev/listBlobsByHierarchy.ts +++ b/sdk/storage/storage-blob/samples-dev/listBlobsByHierarchy.ts @@ -25,7 +25,7 @@ async function main() { const containerName = `newcontainer${new Date().getTime()}`; const containerClient = new ContainerClient( `https://${account}.blob.core.windows.net/${containerName}`, - sharedKeyCredential + sharedKeyCredential, ); const createContainerResponse = await containerClient.create(); @@ -57,7 +57,7 @@ async function main() { console.log(`\tBlobPrefix: ${item.name}`); } else { console.log( - `\tBlobItem: name - ${item.name}, last modified - ${item.properties.lastModified}` + `\tBlobItem: name - ${item.name}, last modified - ${item.properties.lastModified}`, ); } } @@ -70,7 +70,7 @@ async function main() { console.log(`\tBlobPrefix: ${item.name}`); } else { console.log( - `\tBlobItem: name - ${item.name}, last modified - ${item.properties.lastModified}` + `\tBlobItem: name - ${item.name}, last modified - ${item.properties.lastModified}`, ); } } @@ -87,7 +87,7 @@ async function main() { } for (const blob of page.segment.blobItems) { console.log( - `\tBlobItem: name - ${blob.name}, last modified - ${blob.properties.lastModified}` + `\tBlobItem: name - ${blob.name}, last modified - ${blob.properties.lastModified}`, ); } } diff --git a/sdk/storage/storage-blob/samples-dev/listBlobsFlat.ts b/sdk/storage/storage-blob/samples-dev/listBlobsFlat.ts index a4e91202d9f9..b71ce770f71e 100644 --- a/sdk/storage/storage-blob/samples-dev/listBlobsFlat.ts +++ b/sdk/storage/storage-blob/samples-dev/listBlobsFlat.ts @@ -25,7 +25,7 @@ async function main() { const containerName = `newcontainer${new Date().getTime()}`; const containerClient = new ContainerClient( `https://${account}.blob.core.windows.net/${containerName}`, - sharedKeyCredential + sharedKeyCredential, ); const createContainerResponse = await containerClient.create(); @@ -75,7 +75,7 @@ async function main() { if (!continuationToken) { throw new Error( - "Expected a continuation token from the blob service, but one was not returned." + "Expected a continuation token from the blob service, but one was not returned.", ); } diff --git a/sdk/storage/storage-blob/samples-dev/listContainers.ts b/sdk/storage/storage-blob/samples-dev/listContainers.ts index a07328031325..9da6be1191bc 100644 --- a/sdk/storage/storage-blob/samples-dev/listContainers.ts +++ b/sdk/storage/storage-blob/samples-dev/listContainers.ts @@ -24,7 +24,7 @@ async function main() { // List containers const blobServiceClient = new BlobServiceClient( `https://${account}.blob.core.windows.net`, - sharedKeyCredential + sharedKeyCredential, ); // Iterate over all containers in the account diff --git a/sdk/storage/storage-blob/samples-dev/proxyAuth.ts b/sdk/storage/storage-blob/samples-dev/proxyAuth.ts index fd39b682a6b8..a303e6449629 100644 --- a/sdk/storage/storage-blob/samples-dev/proxyAuth.ts +++ b/sdk/storage/storage-blob/samples-dev/proxyAuth.ts @@ -42,7 +42,7 @@ async function main() { password: "" } */ - } + }, ); // Create a container diff --git a/sdk/storage/storage-blob/samples-dev/sharedKeyAuth.ts b/sdk/storage/storage-blob/samples-dev/sharedKeyAuth.ts index c85c35abac78..4d8586ce7dca 100644 --- a/sdk/storage/storage-blob/samples-dev/sharedKeyAuth.ts +++ b/sdk/storage/storage-blob/samples-dev/sharedKeyAuth.ts @@ -24,7 +24,7 @@ async function main() { // List containers const blobServiceClient = new BlobServiceClient( `https://${account}.blob.core.windows.net`, - sharedKeyCredential + sharedKeyCredential, ); let i = 1; diff --git a/sdk/storage/storage-blob/samples-dev/snapshots.ts b/sdk/storage/storage-blob/samples-dev/snapshots.ts index c6cd5463fd53..94ea38906581 100644 --- a/sdk/storage/storage-blob/samples-dev/snapshots.ts +++ b/sdk/storage/storage-blob/samples-dev/snapshots.ts @@ -42,7 +42,7 @@ async function main() { const containerName = `newcontainer${new Date().getTime()}`; const containerClient = new ContainerClient( `https://${account}.blob.core.windows.net/${containerName}`, - sharedKeyCredential + sharedKeyCredential, ); const createContainerResponse = await containerClient.create(); @@ -63,12 +63,12 @@ async function main() { const response = await blobSnapshotClient.download(0); console.log( "Reading response to string...", - (await blobSnapshotClient.getProperties()).contentLength + (await blobSnapshotClient.getProperties()).contentLength, ); console.log( "Downloaded blob content", - (await streamToBuffer(response.readableStreamBody!)).toString() + (await streamToBuffer(response.readableStreamBody!)).toString(), ); // Delete container diff --git a/sdk/storage/storage-blob/src/BatchResponseParser.ts b/sdk/storage/storage-blob/src/BatchResponseParser.ts index 6ca72da689d2..ca74750f607c 100644 --- a/sdk/storage/storage-blob/src/BatchResponseParser.ts +++ b/sdk/storage/storage-blob/src/BatchResponseParser.ts @@ -32,7 +32,7 @@ export class BatchResponseParser { constructor( batchResponse: ServiceSubmitBatchResponseModel, - subRequests: Map + subRequests: Map, ) { if (!batchResponse || !batchResponse.contentType) { // In special case(reported), server may return invalid content-type which could not be parsed. @@ -57,7 +57,7 @@ export class BatchResponseParser { // sub request's response. if (this.batchResponse._response.status !== HTTPURLConnection.HTTP_ACCEPTED) { throw new Error( - `Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.` + `Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`, ); } @@ -127,7 +127,7 @@ export class BatchResponseParser { if (responseLine.indexOf(HTTP_HEADER_DELIMITER) === -1) { // Defensive coding to prevent from missing valuable lines. throw new Error( - `Invalid state: find non-empty line '${responseLine}' without HTTP header delimiter '${HTTP_HEADER_DELIMITER}'.` + `Invalid state: find non-empty line '${responseLine}' without HTTP header delimiter '${HTTP_HEADER_DELIMITER}'.`, ); } @@ -163,7 +163,7 @@ export class BatchResponseParser { deserializedSubResponses[contentId] = deserializedSubResponse; } else { logger.error( - `subResponses[${index}] is dropped as the Content-ID is not found or invalid, Content-ID: ${contentId}` + `subResponses[${index}] is dropped as the Content-ID is not found or invalid, Content-ID: ${contentId}`, ); } diff --git a/sdk/storage/storage-blob/src/BatchUtils.browser.ts b/sdk/storage/storage-blob/src/BatchUtils.browser.ts index 2971924e12a8..f22f5a2c5778 100644 --- a/sdk/storage/storage-blob/src/BatchUtils.browser.ts +++ b/sdk/storage/storage-blob/src/BatchUtils.browser.ts @@ -5,7 +5,7 @@ import { ServiceSubmitBatchResponseModel } from "./generatedModels"; import { blobToString } from "./utils/utils.browser"; export async function getBodyAsText( - batchResponse: ServiceSubmitBatchResponseModel + batchResponse: ServiceSubmitBatchResponseModel, ): Promise { const blob = (await batchResponse.blobBody) as Blob; return blobToString(blob); diff --git a/sdk/storage/storage-blob/src/BatchUtils.ts b/sdk/storage/storage-blob/src/BatchUtils.ts index 0b1d49dbcb41..e442a78e9566 100644 --- a/sdk/storage/storage-blob/src/BatchUtils.ts +++ b/sdk/storage/storage-blob/src/BatchUtils.ts @@ -6,13 +6,13 @@ import { streamToBuffer2 } from "./utils/utils.node"; import { BATCH_MAX_PAYLOAD_IN_BYTES } from "./utils/constants"; export async function getBodyAsText( - batchResponse: ServiceSubmitBatchResponseModel + batchResponse: ServiceSubmitBatchResponseModel, ): Promise { let buffer = Buffer.alloc(BATCH_MAX_PAYLOAD_IN_BYTES); const responseLength = await streamToBuffer2( batchResponse.readableStreamBody as NodeJS.ReadableStream, - buffer + buffer, ); // Slice the buffer to trim the empty ending. diff --git a/sdk/storage/storage-blob/src/BlobBatch.ts b/sdk/storage/storage-blob/src/BlobBatch.ts index f5b16a789f7d..8578f2f2a0b2 100644 --- a/sdk/storage/storage-blob/src/BlobBatch.ts +++ b/sdk/storage/storage-blob/src/BlobBatch.ts @@ -87,7 +87,7 @@ export class BlobBatch { private async addSubRequestInternal( subRequest: BatchSubRequest, - assembleSubRequestFunc: () => Promise + assembleSubRequestFunc: () => Promise, ): Promise { await Mutex.lock(this.batch); @@ -106,7 +106,7 @@ export class BlobBatch { } if (this.batchType !== batchType) { throw new RangeError( - `BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.` + `BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`, ); } } @@ -128,7 +128,7 @@ export class BlobBatch { public async deleteBlob( url: string, credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - options?: BlobDeleteOptions + options?: BlobDeleteOptions, ): Promise; /** @@ -154,7 +154,7 @@ export class BlobBatch { | TokenCredential | BlobDeleteOptions | undefined, - options?: BlobDeleteOptions + options?: BlobDeleteOptions, ): Promise { let url: string; let credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential; @@ -175,7 +175,7 @@ export class BlobBatch { options = credentialOrOptions as BlobDeleteOptions; } else { throw new RangeError( - "Invalid arguments. Either url and credential, or BlobClient need be provided." + "Invalid arguments. Either url and credential, or BlobClient need be provided.", ); } @@ -195,11 +195,11 @@ export class BlobBatch { }, async () => { await new BlobClient(url, this.batchRequest.createPipeline(credential)).delete( - updatedOptions + updatedOptions, ); - } + }, ); - } + }, ); } @@ -224,7 +224,7 @@ export class BlobBatch { url: string, credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, tier: AccessTier, - options?: BlobSetTierOptions + options?: BlobSetTierOptions, ): Promise; /** @@ -246,7 +246,7 @@ export class BlobBatch { public async setBlobAccessTier( blobClient: BlobClient, tier: AccessTier, - options?: BlobSetTierOptions + options?: BlobSetTierOptions, ): Promise; public async setBlobAccessTier( @@ -257,7 +257,7 @@ export class BlobBatch { | TokenCredential | AccessTier, tierOrOptions?: AccessTier | BlobSetTierOptions, - options?: BlobSetTierOptions + options?: BlobSetTierOptions, ): Promise { let url: string; let credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential; @@ -284,7 +284,7 @@ export class BlobBatch { options = tierOrOptions as BlobSetTierOptions; } else { throw new RangeError( - "Invalid arguments. Either url and credential, or BlobClient need be provided." + "Invalid arguments. Either url and credential, or BlobClient need be provided.", ); } @@ -305,11 +305,11 @@ export class BlobBatch { async () => { await new BlobClient(url, this.batchRequest.createPipeline(credential)).setAccessTier( tier, - updatedOptions + updatedOptions, ); - } + }, ); - } + }, ); } } @@ -355,7 +355,7 @@ class InnerBatchRequest { * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used. */ public createPipeline( - credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential + credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, ): Pipeline { const corePipeline = createEmptyPipeline(); corePipeline.addPolicy( @@ -367,7 +367,7 @@ class InnerBatchRequest { }, }, }), - { phase: "Serialize" } + { phase: "Serialize" }, ); // Use batch header filter policy to exclude unnecessary headers corePipeline.addPolicy(batchHeaderFilterPolicy()); @@ -380,7 +380,7 @@ class InnerBatchRequest { scopes: StorageOAuthScopes, challengeCallbacks: { authorizeRequestOnChallenge: authorizeRequestOnTenantChallenge }, }), - { phase: "Sign" } + { phase: "Sign" }, ); } else if (credential instanceof StorageSharedKeyCredential) { corePipeline.addPolicy( @@ -388,7 +388,7 @@ class InnerBatchRequest { accountName: credential.accountName, accountKey: (credential as any).accountKey, }), - { phase: "Sign" } + { phase: "Sign" }, ); } const pipeline = new Pipeline([]); @@ -406,7 +406,7 @@ class InnerBatchRequest { `${HeaderConstants.CONTENT_ID}: ${this.operationCount}`, // sub request's content ID "", // empty line after sub request's content ID `${request.method.toString()} ${getURLPathAndQuery( - request.url + request.url, )} ${HTTP_VERSION_1_1}${HTTP_LINE_ENDING}`, // sub request start line with method ].join(HTTP_LINE_ENDING); diff --git a/sdk/storage/storage-blob/src/BlobBatchClient.ts b/sdk/storage/storage-blob/src/BlobBatchClient.ts index 0e0c9d86ecfa..5dd22243f99f 100644 --- a/sdk/storage/storage-blob/src/BlobBatchClient.ts +++ b/sdk/storage/storage-blob/src/BlobBatchClient.ts @@ -72,7 +72,7 @@ export class BlobBatchClient { credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ); /** @@ -94,7 +94,7 @@ export class BlobBatchClient { | PipelineLike, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ) { let pipeline: PipelineLike; if (isPipelineLike(credentialOrPipeline)) { @@ -141,7 +141,7 @@ export class BlobBatchClient { credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: BlobDeleteOptions + options?: BlobDeleteOptions, ): Promise; /** @@ -158,7 +158,7 @@ export class BlobBatchClient { blobClients: BlobClient[], // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: BlobDeleteOptions + options?: BlobDeleteOptions, ): Promise; public async deleteBlobs( @@ -171,7 +171,7 @@ export class BlobBatchClient { | undefined, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: BlobDeleteOptions + options?: BlobDeleteOptions, ): Promise { const batch = new BlobBatch(); for (const urlOrBlobClient of urlsOrBlobClients) { @@ -206,7 +206,7 @@ export class BlobBatchClient { tier: AccessTier, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: BlobSetTierOptions + options?: BlobSetTierOptions, ): Promise; /** @@ -229,7 +229,7 @@ export class BlobBatchClient { tier: AccessTier, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: BlobSetTierOptions + options?: BlobSetTierOptions, ): Promise; public async setBlobsAccessTier( @@ -242,7 +242,7 @@ export class BlobBatchClient { tierOrOptions?: AccessTier | BlobSetTierOptions, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: BlobSetTierOptions + options?: BlobSetTierOptions, ): Promise { const batch = new BlobBatch(); for (const urlOrBlobClient of urlsOrBlobClients) { @@ -251,13 +251,13 @@ export class BlobBatchClient { urlOrBlobClient, credentialOrTier as TokenCredential, tierOrOptions as AccessTier, - options + options, ); } else { await batch.setBlobAccessTier( urlOrBlobClient, credentialOrTier as AccessTier, - tierOrOptions as BlobSetTierOptions + tierOrOptions as BlobSetTierOptions, ); } } @@ -301,7 +301,7 @@ export class BlobBatchClient { */ public async submitBatch( batchRequest: BlobBatch, - options: BlobBatchSubmitBatchOptionalParams = {} + options: BlobBatchSubmitBatchOptionalParams = {}, ): Promise { if (!batchRequest || batchRequest.getSubRequests().size === 0) { throw new RangeError("Batch request should contain one or more sub requests."); @@ -321,14 +321,14 @@ export class BlobBatchClient { batchRequestBody, { ...updatedOptions, - } - ) + }, + ), ); // Parse the sub responses result, if logic reaches here(i.e. the batch request succeeded with status code 202). const batchResponseParser = new BatchResponseParser( rawBatchResponse, - batchRequest.getSubRequests() + batchRequest.getSubRequests(), ); const responseSummary = await batchResponseParser.parseBatchResponse(); @@ -345,7 +345,7 @@ export class BlobBatchClient { }; return res; - } + }, ); } } diff --git a/sdk/storage/storage-blob/src/BlobDownloadResponse.ts b/sdk/storage/storage-blob/src/BlobDownloadResponse.ts index b847ebb965f5..695634a48f45 100644 --- a/sdk/storage/storage-blob/src/BlobDownloadResponse.ts +++ b/sdk/storage/storage-blob/src/BlobDownloadResponse.ts @@ -527,7 +527,7 @@ export class BlobDownloadResponse implements BlobDownloadResponseParsed { getter: ReadableStreamGetter, offset: number, count: number, - options: RetriableReadableStreamOptions = {} + options: RetriableReadableStreamOptions = {}, ) { this.originalResponse = originalResponse; this.blobDownloadStream = new RetriableReadableStream( @@ -535,7 +535,7 @@ export class BlobDownloadResponse implements BlobDownloadResponseParsed { getter, offset, count, - options + options, ); } } diff --git a/sdk/storage/storage-blob/src/BlobLeaseClient.ts b/sdk/storage/storage-blob/src/BlobLeaseClient.ts index 94af145c2ab4..6d934d12ef40 100644 --- a/sdk/storage/storage-blob/src/BlobLeaseClient.ts +++ b/sdk/storage/storage-blob/src/BlobLeaseClient.ts @@ -153,7 +153,7 @@ export class BlobLeaseClient { */ public async acquireLease( duration: number, - options: LeaseOperationOptions = {} + options: LeaseOperationOptions = {}, ): Promise { if ( this._isContainer && @@ -162,7 +162,7 @@ export class BlobLeaseClient { options.conditions?.tagConditions) ) { throw new RangeError( - "The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable." + "The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.", ); } return tracingClient.withSpan( @@ -179,9 +179,9 @@ export class BlobLeaseClient { }, proposedLeaseId: this._leaseId, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -197,7 +197,7 @@ export class BlobLeaseClient { */ public async changeLease( proposedLeaseId: string, - options: LeaseOperationOptions = {} + options: LeaseOperationOptions = {}, ): Promise { if ( this._isContainer && @@ -206,7 +206,7 @@ export class BlobLeaseClient { options.conditions?.tagConditions) ) { throw new RangeError( - "The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable." + "The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.", ); } @@ -222,11 +222,11 @@ export class BlobLeaseClient { ifTags: options.conditions?.tagConditions, }, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); this._leaseId = proposedLeaseId; return response; - } + }, ); } @@ -248,7 +248,7 @@ export class BlobLeaseClient { options.conditions?.tagConditions) ) { throw new RangeError( - "The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable." + "The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.", ); } return tracingClient.withSpan( @@ -263,9 +263,9 @@ export class BlobLeaseClient { ifTags: options.conditions?.tagConditions, }, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -286,7 +286,7 @@ export class BlobLeaseClient { options.conditions?.tagConditions) ) { throw new RangeError( - "The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable." + "The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.", ); } return tracingClient.withSpan("BlobLeaseClient-renewLease", options, async (updatedOptions) => { @@ -314,7 +314,7 @@ export class BlobLeaseClient { */ public async breakLease( breakPeriod: number, - options: LeaseOperationOptions = {} + options: LeaseOperationOptions = {}, ): Promise { if ( this._isContainer && @@ -323,7 +323,7 @@ export class BlobLeaseClient { options.conditions?.tagConditions) ) { throw new RangeError( - "The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable." + "The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.", ); } @@ -338,7 +338,7 @@ export class BlobLeaseClient { tracingOptions: updatedOptions.tracingOptions, }; return assertResponse( - await this._containerOrBlobOperation.breakLease(operationOptions) + await this._containerOrBlobOperation.breakLease(operationOptions), ); }); } diff --git a/sdk/storage/storage-blob/src/BlobQueryResponse.browser.ts b/sdk/storage/storage-blob/src/BlobQueryResponse.browser.ts index 021cdef051dc..3383c39624bc 100644 --- a/sdk/storage/storage-blob/src/BlobQueryResponse.browser.ts +++ b/sdk/storage/storage-blob/src/BlobQueryResponse.browser.ts @@ -410,7 +410,7 @@ export class BlobQueryResponse implements BlobDownloadResponseModel { */ public constructor( originalResponse: BlobQueryResponseModel, - _options: BlobQuickQueryStreamOptions = {} + _options: BlobQuickQueryStreamOptions = {}, ) { this.originalResponse = originalResponse; } diff --git a/sdk/storage/storage-blob/src/BlobQueryResponse.ts b/sdk/storage/storage-blob/src/BlobQueryResponse.ts index 3e96e84a26a9..241daae04173 100644 --- a/sdk/storage/storage-blob/src/BlobQueryResponse.ts +++ b/sdk/storage/storage-blob/src/BlobQueryResponse.ts @@ -415,12 +415,12 @@ export class BlobQueryResponse implements BlobDownloadResponseModel { */ public constructor( originalResponse: BlobQueryResponseModel, - options: BlobQuickQueryStreamOptions = {} + options: BlobQuickQueryStreamOptions = {}, ) { this.originalResponse = originalResponse; this.blobDownloadStream = new BlobQuickQueryStream( this.originalResponse.readableStreamBody!, - options + options, ); } } diff --git a/sdk/storage/storage-blob/src/BlobServiceClient.ts b/sdk/storage/storage-blob/src/BlobServiceClient.ts index 5215cbf5f31d..061367c50625 100644 --- a/sdk/storage/storage-blob/src/BlobServiceClient.ts +++ b/sdk/storage/storage-blob/src/BlobServiceClient.ts @@ -355,7 +355,7 @@ export class BlobServiceClient extends StorageClient { connectionString: string, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ): BlobServiceClient { options = options || {}; const extractedCreds = extractConnectionStringParts(connectionString); @@ -363,7 +363,7 @@ export class BlobServiceClient extends StorageClient { if (isNode) { const sharedKeyCredential = new StorageSharedKeyCredential( extractedCreds.accountName!, - extractedCreds.accountKey + extractedCreds.accountKey, ); if (!options.proxyOptions) { @@ -380,7 +380,7 @@ export class BlobServiceClient extends StorageClient { return new BlobServiceClient(extractedCreds.url + "?" + extractedCreds.accountSas, pipeline); } else { throw new Error( - "Connection string must be either an Account connection string or a SAS connection string" + "Connection string must be either an Account connection string or a SAS connection string", ); } } @@ -424,7 +424,7 @@ export class BlobServiceClient extends StorageClient { credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ); /** * Creates an instance of BlobServiceClient. @@ -445,7 +445,7 @@ export class BlobServiceClient extends StorageClient { | PipelineLike, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ) { let pipeline: PipelineLike; if (isPipelineLike(credentialOrPipeline)) { @@ -479,7 +479,7 @@ export class BlobServiceClient extends StorageClient { public getContainerClient(containerName: string): ContainerClient { return new ContainerClient( appendToURLPath(this.url, encodeURIComponent(containerName)), - this.pipeline + this.pipeline, ); } @@ -492,7 +492,7 @@ export class BlobServiceClient extends StorageClient { */ public async createContainer( containerName: string, - options: ContainerCreateOptions = {} + options: ContainerCreateOptions = {}, ): Promise<{ containerClient: ContainerClient; containerCreateResponse: ContainerCreateResponse; @@ -507,7 +507,7 @@ export class BlobServiceClient extends StorageClient { containerClient, containerCreateResponse, }; - } + }, ); } @@ -520,7 +520,7 @@ export class BlobServiceClient extends StorageClient { */ public async deleteContainer( containerName: string, - options: ContainerDeleteMethodOptions = {} + options: ContainerDeleteMethodOptions = {}, ): Promise { return tracingClient.withSpan( "BlobServiceClient-deleteContainer", @@ -528,7 +528,7 @@ export class BlobServiceClient extends StorageClient { async (updatedOptions) => { const containerClient = this.getContainerClient(containerName); return containerClient.delete(updatedOptions); - } + }, ); } @@ -544,7 +544,7 @@ export class BlobServiceClient extends StorageClient { public async undeleteContainer( deletedContainerName: string, deletedContainerVersion: string, - options: ServiceUndeleteContainerOptions = {} + options: ServiceUndeleteContainerOptions = {}, ): Promise<{ containerClient: ContainerClient; containerUndeleteResponse: ContainerUndeleteResponse; @@ -554,7 +554,7 @@ export class BlobServiceClient extends StorageClient { options, async (updatedOptions) => { const containerClient = this.getContainerClient( - options.destinationContainerName || deletedContainerName + options.destinationContainerName || deletedContainerName, ); // Hack to access a protected member. const containerContext = containerClient["storageClientContext"].container; @@ -566,10 +566,10 @@ export class BlobServiceClient extends StorageClient { deletedContainerName, deletedContainerVersion, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); return { containerClient, containerUndeleteResponse }; - } + }, ); } @@ -585,7 +585,7 @@ export class BlobServiceClient extends StorageClient { private async renameContainer( sourceContainerName: string, destinationContainerName: string, - options: ServiceRenameContainerOptions = {} + options: ServiceRenameContainerOptions = {}, ): Promise<{ containerClient: ContainerClient; containerRenameResponse: ContainerRenameResponse; @@ -604,10 +604,10 @@ export class BlobServiceClient extends StorageClient { await containerContext.rename(sourceContainerName, { ...updatedOptions, sourceLeaseId: options.sourceCondition?.leaseId, - }) + }), ); return { containerClient, containerRenameResponse }; - } + }, ); } @@ -620,7 +620,7 @@ export class BlobServiceClient extends StorageClient { * @returns Response data for the Service Get Properties operation. */ public async getProperties( - options: ServiceGetPropertiesOptions = {} + options: ServiceGetPropertiesOptions = {}, ): Promise { return tracingClient.withSpan( "BlobServiceClient-getProperties", @@ -630,9 +630,9 @@ export class BlobServiceClient extends StorageClient { await this.serviceContext.getProperties({ abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -647,7 +647,7 @@ export class BlobServiceClient extends StorageClient { */ public async setProperties( properties: BlobServiceProperties, - options: ServiceSetPropertiesOptions = {} + options: ServiceSetPropertiesOptions = {}, ): Promise { return tracingClient.withSpan( "BlobServiceClient-setProperties", @@ -657,9 +657,9 @@ export class BlobServiceClient extends StorageClient { await this.serviceContext.setProperties(properties, { abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -673,7 +673,7 @@ export class BlobServiceClient extends StorageClient { * @returns Response data for the Service Get Statistics operation. */ public async getStatistics( - options: ServiceGetStatisticsOptions = {} + options: ServiceGetStatisticsOptions = {}, ): Promise { return tracingClient.withSpan( "BlobServiceClient-getStatistics", @@ -683,9 +683,9 @@ export class BlobServiceClient extends StorageClient { await this.serviceContext.getStatistics({ abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -700,7 +700,7 @@ export class BlobServiceClient extends StorageClient { * @returns Response data for the Service Get Account Info operation. */ public async getAccountInfo( - options: ServiceGetAccountInfoOptions = {} + options: ServiceGetAccountInfoOptions = {}, ): Promise { return tracingClient.withSpan( "BlobServiceClient-getAccountInfo", @@ -710,9 +710,9 @@ export class BlobServiceClient extends StorageClient { await this.serviceContext.getAccountInfo({ abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -732,7 +732,7 @@ export class BlobServiceClient extends StorageClient { */ private async listContainersSegment( marker?: string, - options: ServiceListContainersSegmentOptions = {} + options: ServiceListContainersSegmentOptions = {}, ): Promise { return tracingClient.withSpan( "BlobServiceClient-listContainersSegment", @@ -748,9 +748,9 @@ export class BlobServiceClient extends StorageClient { ...options, include: typeof options.include === "string" ? [options.include] : options.include, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -775,7 +775,7 @@ export class BlobServiceClient extends StorageClient { private async findBlobsByTagsSegment( tagFilterSqlExpression: string, marker?: string, - options: ServiceFindBlobsByTagsSegmentOptions = {} + options: ServiceFindBlobsByTagsSegmentOptions = {}, ): Promise { return tracingClient.withSpan( "BlobServiceClient-findBlobsByTagsSegment", @@ -792,7 +792,7 @@ export class BlobServiceClient extends StorageClient { marker, maxPageSize: options.maxPageSize, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); const wrappedResponse: ServiceFindBlobsByTagsSegmentResponse = { @@ -807,7 +807,7 @@ export class BlobServiceClient extends StorageClient { }), }; return wrappedResponse; - } + }, ); } @@ -830,7 +830,7 @@ export class BlobServiceClient extends StorageClient { private async *findBlobsByTagsSegments( tagFilterSqlExpression: string, marker?: string, - options: ServiceFindBlobsByTagsSegmentOptions = {} + options: ServiceFindBlobsByTagsSegmentOptions = {}, ): AsyncIterableIterator { let response; if (!!marker || marker === undefined) { @@ -854,13 +854,13 @@ export class BlobServiceClient extends StorageClient { */ private async *findBlobsByTagsItems( tagFilterSqlExpression: string, - options: ServiceFindBlobsByTagsSegmentOptions = {} + options: ServiceFindBlobsByTagsSegmentOptions = {}, ): AsyncIterableIterator { let marker: string | undefined; for await (const segment of this.findBlobsByTagsSegments( tagFilterSqlExpression, marker, - options + options, )) { yield* segment.blobs; } @@ -947,7 +947,7 @@ export class BlobServiceClient extends StorageClient { */ public findBlobsByTags( tagFilterSqlExpression: string, - options: ServiceFindBlobByTagsOptions = {} + options: ServiceFindBlobByTagsOptions = {}, ): PagedAsyncIterableIterator { // AsyncIterableIterator to iterate over blobs const listSegmentOptions: ServiceFindBlobsByTagsSegmentOptions = { @@ -994,7 +994,7 @@ export class BlobServiceClient extends StorageClient { */ private async *listSegments( marker?: string, - options: ServiceListContainersSegmentOptions = {} + options: ServiceListContainersSegmentOptions = {}, ): AsyncIterableIterator { let listContainersSegmentResponse; if (!!marker || marker === undefined) { @@ -1014,7 +1014,7 @@ export class BlobServiceClient extends StorageClient { * @param options - Options to list containers operation. */ private async *listItems( - options: ServiceListContainersSegmentOptions = {} + options: ServiceListContainersSegmentOptions = {}, ): AsyncIterableIterator { let marker: string | undefined; for await (const segment of this.listSegments(marker, options)) { @@ -1097,7 +1097,7 @@ export class BlobServiceClient extends StorageClient { * @returns An asyncIterableIterator that supports paging. */ public listContainers( - options: ServiceListContainersOptions = {} + options: ServiceListContainersOptions = {}, ): PagedAsyncIterableIterator { if (options.prefix === "") { options.prefix = undefined; @@ -1160,7 +1160,7 @@ export class BlobServiceClient extends StorageClient { public async getUserDelegationKey( startsOn: Date, expiresOn: Date, - options: ServiceGetUserDelegationKeyOptions = {} + options: ServiceGetUserDelegationKeyOptions = {}, ): Promise { return tracingClient.withSpan( "BlobServiceClient-getUserDelegationKey", @@ -1179,8 +1179,8 @@ export class BlobServiceClient extends StorageClient { { abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, - } - ) + }, + ), ); const userDelegationKey = { @@ -1204,7 +1204,7 @@ export class BlobServiceClient extends StorageClient { }; return res; - } + }, ); } @@ -1237,11 +1237,11 @@ export class BlobServiceClient extends StorageClient { expiresOn?: Date, permissions: AccountSASPermissions = AccountSASPermissions.parse("r"), resourceTypes: string = "sco", - options: ServiceGenerateAccountSasUrlOptions = {} + options: ServiceGenerateAccountSasUrlOptions = {}, ): string { if (!(this.credential instanceof StorageSharedKeyCredential)) { throw RangeError( - "Can only generate the account SAS when the client is initialized with a shared key credential" + "Can only generate the account SAS when the client is initialized with a shared key credential", ); } @@ -1258,7 +1258,7 @@ export class BlobServiceClient extends StorageClient { services: AccountSASServices.parse("b").toString(), ...options, }, - this.credential + this.credential, ).toString(); return appendToURLQuery(this.url, sas); diff --git a/sdk/storage/storage-blob/src/Clients.ts b/sdk/storage/storage-blob/src/Clients.ts index 38e34db7178d..14471ab51478 100644 --- a/sdk/storage/storage-blob/src/Clients.ts +++ b/sdk/storage/storage-blob/src/Clients.ts @@ -936,7 +936,7 @@ export class BlobClient extends StorageClient { blobName: string, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ); /** * Creates an instance of BlobClient. @@ -955,7 +955,7 @@ export class BlobClient extends StorageClient { credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ); /** * Creates an instance of BlobClient. @@ -986,7 +986,7 @@ export class BlobClient extends StorageClient { blobNameOrOptions?: string | StoragePipelineOptions, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ) { options = options || {}; let pipeline: PipelineLike; @@ -1030,11 +1030,11 @@ export class BlobClient extends StorageClient { if (isNode) { const sharedKeyCredential = new StorageSharedKeyCredential( extractedCreds.accountName!, - extractedCreds.accountKey + extractedCreds.accountKey, ); url = appendToURLPath( appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), - encodeURIComponent(blobName) + encodeURIComponent(blobName), ); if (!options.proxyOptions) { @@ -1049,14 +1049,14 @@ export class BlobClient extends StorageClient { url = appendToURLPath( appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), - encodeURIComponent(blobName) + encodeURIComponent(blobName), ) + "?" + extractedCreds.accountSas; pipeline = newPipeline(new AnonymousCredential(), options); } else { throw new Error( - "Connection string must be either an Account connection string or a SAS connection string" + "Connection string must be either an Account connection string or a SAS connection string", ); } } else { @@ -1084,9 +1084,9 @@ export class BlobClient extends StorageClient { setURLParameter( this.url, URLConstants.Parameters.SNAPSHOT, - snapshot.length === 0 ? undefined : snapshot + snapshot.length === 0 ? undefined : snapshot, ), - this.pipeline + this.pipeline, ); } @@ -1102,9 +1102,9 @@ export class BlobClient extends StorageClient { setURLParameter( this.url, URLConstants.Parameters.VERSIONID, - versionId.length === 0 ? undefined : versionId + versionId.length === 0 ? undefined : versionId, ), - this.pipeline + this.pipeline, ); } @@ -1194,7 +1194,7 @@ export class BlobClient extends StorageClient { public async download( offset: number = 0, count?: number, - options: BlobDownloadOptions = {} + options: BlobDownloadOptions = {}, ): Promise { options.conditions = options.conditions || {}; options.conditions = options.conditions || {}; @@ -1218,7 +1218,7 @@ export class BlobClient extends StorageClient { snapshot: options.snapshot, cpkInfo: options.customerProvidedKey, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); const wrappedRes: BlobDownloadResponseParsed = { @@ -1291,7 +1291,7 @@ export class BlobClient extends StorageClient { { maxRetryRequests: options.maxRetryRequests, onProgress: options.onProgress, - } + }, ); }); } @@ -1346,7 +1346,7 @@ export class BlobClient extends StorageClient { * @param options - Optional options to Get Properties operation. */ public async getProperties( - options: BlobGetPropertiesOptions = {} + options: BlobGetPropertiesOptions = {}, ): Promise { options.conditions = options.conditions || {}; ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps); @@ -1361,7 +1361,7 @@ export class BlobClient extends StorageClient { }, cpkInfo: options.customerProvidedKey, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); return { @@ -1395,7 +1395,7 @@ export class BlobClient extends StorageClient { ifTags: options.conditions?.tagConditions, }, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -1410,7 +1410,7 @@ export class BlobClient extends StorageClient { * @param options - Optional options to Blob Delete operation. */ public async deleteIfExists( - options: BlobDeleteOptions = {} + options: BlobDeleteOptions = {}, ): Promise { return tracingClient.withSpan("BlobClient-deleteIfExists", options, async (updatedOptions) => { try { @@ -1447,7 +1447,7 @@ export class BlobClient extends StorageClient { await this.blobContext.undelete({ abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -1469,7 +1469,7 @@ export class BlobClient extends StorageClient { */ public async setHTTPHeaders( blobHTTPHeaders?: BlobHTTPHeaders, - options: BlobSetHTTPHeadersOptions = {} + options: BlobSetHTTPHeadersOptions = {}, ): Promise { options.conditions = options.conditions || {}; ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps); @@ -1485,7 +1485,7 @@ export class BlobClient extends StorageClient { }, // cpkInfo: options.customerProvidedKey, // CPK is not included in Swagger, should change this back when this issue is fixed in Swagger. tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -1503,7 +1503,7 @@ export class BlobClient extends StorageClient { */ public async setMetadata( metadata?: Metadata, - options: BlobSetMetadataOptions = {} + options: BlobSetMetadataOptions = {}, ): Promise { options.conditions = options.conditions || {}; ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps); @@ -1520,7 +1520,7 @@ export class BlobClient extends StorageClient { cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -1546,7 +1546,7 @@ export class BlobClient extends StorageClient { }, tracingOptions: updatedOptions.tracingOptions, tags: toBlobTags(tags), - }) + }), ); }); } @@ -1567,7 +1567,7 @@ export class BlobClient extends StorageClient { ifTags: options.conditions?.tagConditions, }, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); const wrappedResponse: BlobGetTagsResponse = { ...response, @@ -1595,7 +1595,7 @@ export class BlobClient extends StorageClient { * @param options - Optional options to the Blob Create Snapshot operation. */ public async createSnapshot( - options: BlobCreateSnapshotOptions = {} + options: BlobCreateSnapshotOptions = {}, ): Promise { options.conditions = options.conditions || {}; ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps); @@ -1612,7 +1612,7 @@ export class BlobClient extends StorageClient { cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -1691,7 +1691,7 @@ export class BlobClient extends StorageClient { */ public async beginCopyFromURL( copySource: string, - options: BlobBeginCopyFromURLOptions = {} + options: BlobBeginCopyFromURLOptions = {}, ): Promise< PollerLikeWithCancellation< PollOperationState, @@ -1729,7 +1729,7 @@ export class BlobClient extends StorageClient { */ public async abortCopyFromURL( copyId: string, - options: BlobAbortCopyFromURLOptions = {} + options: BlobAbortCopyFromURLOptions = {}, ): Promise { return tracingClient.withSpan( "BlobClient-abortCopyFromURL", @@ -1740,9 +1740,9 @@ export class BlobClient extends StorageClient { abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -1756,7 +1756,7 @@ export class BlobClient extends StorageClient { */ public async syncCopyFromURL( copySource: string, - options: BlobSyncCopyFromURLOptions = {} + options: BlobSyncCopyFromURLOptions = {}, ): Promise { options.conditions = options.conditions || {}; options.sourceConditions = options.sourceConditions || {}; @@ -1786,7 +1786,7 @@ export class BlobClient extends StorageClient { encryptionScope: options.encryptionScope, copySourceTags: options.copySourceTags, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -1804,7 +1804,7 @@ export class BlobClient extends StorageClient { */ public async setAccessTier( tier: BlockBlobTier | PremiumPageBlobTier | string, - options: BlobSetTierOptions = {} + options: BlobSetTierOptions = {}, ): Promise { return tracingClient.withSpan("BlobClient-setAccessTier", options, async (updatedOptions) => { return assertResponse( @@ -1817,7 +1817,7 @@ export class BlobClient extends StorageClient { }, rehydratePriority: options.rehydratePriority, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -1841,7 +1841,7 @@ export class BlobClient extends StorageClient { public async downloadToBuffer( offset?: number, count?: number, - options?: BlobDownloadToBufferOptions + options?: BlobDownloadToBufferOptions, ): Promise; /** @@ -1863,14 +1863,14 @@ export class BlobClient extends StorageClient { buffer: Buffer, offset?: number, count?: number, - options?: BlobDownloadToBufferOptions + options?: BlobDownloadToBufferOptions, ): Promise; public async downloadToBuffer( param1?: Buffer | number, param2?: number, param3?: BlobDownloadToBufferOptions | number, - param4: BlobDownloadToBufferOptions = {} + param4: BlobDownloadToBufferOptions = {}, ): Promise { let buffer: Buffer | undefined; let offset = 0; @@ -1920,7 +1920,7 @@ export class BlobClient extends StorageClient { count = response.contentLength! - offset; if (count < 0) { throw new RangeError( - `offset ${offset} shouldn't be larger than blob size ${response.contentLength!}` + `offset ${offset} shouldn't be larger than blob size ${response.contentLength!}`, ); } } @@ -1931,14 +1931,14 @@ export class BlobClient extends StorageClient { buffer = Buffer.alloc(count); } catch (error: any) { throw new Error( - `Unable to allocate the buffer of size: ${count}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${error.message}` + `Unable to allocate the buffer of size: ${count}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${error.message}`, ); } } if (buffer.length < count) { throw new RangeError( - `The buffer's size should be equal to or larger than the request count of bytes: ${count}` + `The buffer's size should be equal to or larger than the request count of bytes: ${count}`, ); } @@ -1971,7 +1971,7 @@ export class BlobClient extends StorageClient { } await batch.do(); return buffer; - } + }, ); } @@ -1995,7 +1995,7 @@ export class BlobClient extends StorageClient { filePath: string, offset: number = 0, count?: number, - options: BlobDownloadOptions = {} + options: BlobDownloadOptions = {}, ): Promise { return tracingClient.withSpan("BlobClient-downloadToFile", options, async (updatedOptions) => { const response = await this.download(offset, count, { @@ -2080,7 +2080,7 @@ export class BlobClient extends StorageClient { */ private async startCopyFromURL( copySource: string, - options: BlobStartCopyFromURLOptions = {} + options: BlobStartCopyFromURLOptions = {}, ): Promise { return tracingClient.withSpan( "BlobClient-startCopyFromURL", @@ -2112,9 +2112,9 @@ export class BlobClient extends StorageClient { blobTagsString: toBlobTagsString(options.tags), sealBlob: options.sealBlob, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -2133,7 +2133,7 @@ export class BlobClient extends StorageClient { return new Promise((resolve) => { if (!(this.credential instanceof StorageSharedKeyCredential)) { throw new RangeError( - "Can only generate the SAS when the client is initialized with a shared key credential" + "Can only generate the SAS when the client is initialized with a shared key credential", ); } @@ -2145,7 +2145,7 @@ export class BlobClient extends StorageClient { versionId: this._versionId, ...options, }, - this.credential + this.credential, ).toString(); resolve(appendToURLQuery(this.url, sas)); @@ -2158,7 +2158,7 @@ export class BlobClient extends StorageClient { * @param options - Optional options to delete immutability policy on the blob. */ public async deleteImmutabilityPolicy( - options: BlobDeleteImmutabilityPolicyOptions = {} + options: BlobDeleteImmutabilityPolicyOptions = {}, ): Promise { return tracingClient.withSpan( "BlobClient-deleteImmutabilityPolicy", @@ -2170,9 +2170,9 @@ export class BlobClient extends StorageClient { >( await this.blobContext.deleteImmutabilityPolicy({ tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -2183,7 +2183,7 @@ export class BlobClient extends StorageClient { */ public async setImmutabilityPolicy( immutabilityPolicy: BlobImmutabilityPolicy, - options: BlobSetImmutabilityPolicyOptions = {} + options: BlobSetImmutabilityPolicyOptions = {}, ): Promise { return tracingClient.withSpan( "BlobClient-setImmutabilityPolicy", @@ -2194,9 +2194,9 @@ export class BlobClient extends StorageClient { immutabilityPolicyExpiry: immutabilityPolicy.expiriesOn, immutabilityPolicyMode: immutabilityPolicy.policyMode, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -2207,13 +2207,13 @@ export class BlobClient extends StorageClient { */ public async setLegalHold( legalHoldEnabled: boolean, - options: BlobSetLegalHoldOptions = {} + options: BlobSetLegalHoldOptions = {}, ): Promise { return tracingClient.withSpan("BlobClient-setLegalHold", options, async (updatedOptions) => { return assertResponse( await this.blobContext.setLegalHold(legalHoldEnabled, { tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -2466,7 +2466,7 @@ export class AppendBlobClient extends BlobClient { blobName: string, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ); /** * Creates an instance of AppendBlobClient. @@ -2490,7 +2490,7 @@ export class AppendBlobClient extends BlobClient { credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ); /** * Creates an instance of AppendBlobClient. @@ -2521,7 +2521,7 @@ export class AppendBlobClient extends BlobClient { blobNameOrOptions?: string | StoragePipelineOptions, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ) { // In TypeScript we cannot simply pass all parameters to super() like below so have to duplicate the code instead. // super(s, credentialOrPipelineOrContainerNameOrOptions, blobNameOrOptions, options); @@ -2564,11 +2564,11 @@ export class AppendBlobClient extends BlobClient { if (isNode) { const sharedKeyCredential = new StorageSharedKeyCredential( extractedCreds.accountName!, - extractedCreds.accountKey + extractedCreds.accountKey, ); url = appendToURLPath( appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), - encodeURIComponent(blobName) + encodeURIComponent(blobName), ); if (!options.proxyOptions) { @@ -2583,14 +2583,14 @@ export class AppendBlobClient extends BlobClient { url = appendToURLPath( appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), - encodeURIComponent(blobName) + encodeURIComponent(blobName), ) + "?" + extractedCreds.accountSas; pipeline = newPipeline(new AnonymousCredential(), options); } else { throw new Error( - "Connection string must be either an Account connection string or a SAS connection string" + "Connection string must be either an Account connection string or a SAS connection string", ); } } else { @@ -2613,9 +2613,9 @@ export class AppendBlobClient extends BlobClient { setURLParameter( this.url, URLConstants.Parameters.SNAPSHOT, - snapshot.length === 0 ? undefined : snapshot + snapshot.length === 0 ? undefined : snapshot, ), - this.pipeline + this.pipeline, ); } @@ -2654,7 +2654,7 @@ export class AppendBlobClient extends BlobClient { legalHold: options.legalHold, blobTagsString: toBlobTagsString(options.tags), tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -2667,7 +2667,7 @@ export class AppendBlobClient extends BlobClient { * @param options - */ public async createIfNotExists( - options: AppendBlobCreateIfNotExistsOptions = {} + options: AppendBlobCreateIfNotExistsOptions = {}, ): Promise { const conditions = { ifNoneMatch: ETagAny }; return tracingClient.withSpan( @@ -2679,7 +2679,7 @@ export class AppendBlobClient extends BlobClient { await this.create({ ...updatedOptions, conditions, - }) + }), ); return { succeeded: true, @@ -2696,7 +2696,7 @@ export class AppendBlobClient extends BlobClient { } throw e; } - } + }, ); } @@ -2718,7 +2718,7 @@ export class AppendBlobClient extends BlobClient { ifTags: options.conditions?.tagConditions, }, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -2750,7 +2750,7 @@ export class AppendBlobClient extends BlobClient { public async appendBlock( body: HttpRequestBody, contentLength: number, - options: AppendBlobAppendBlockOptions = {} + options: AppendBlobAppendBlockOptions = {}, ): Promise { options.conditions = options.conditions || {}; ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps); @@ -2775,9 +2775,9 @@ export class AppendBlobClient extends BlobClient { cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -2799,7 +2799,7 @@ export class AppendBlobClient extends BlobClient { sourceURL: string, sourceOffset: number, count: number, - options: AppendBlobAppendBlockFromURLOptions = {} + options: AppendBlobAppendBlockFromURLOptions = {}, ): Promise { options.conditions = options.conditions || {}; options.sourceConditions = options.sourceConditions || {}; @@ -2834,9 +2834,9 @@ export class AppendBlobClient extends BlobClient { cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } } @@ -3450,7 +3450,7 @@ export class BlockBlobClient extends BlobClient { blobName: string, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ); /** * Creates an instance of BlockBlobClient. @@ -3474,7 +3474,7 @@ export class BlockBlobClient extends BlobClient { credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ); /** * Creates an instance of BlockBlobClient. @@ -3505,7 +3505,7 @@ export class BlockBlobClient extends BlobClient { blobNameOrOptions?: string | StoragePipelineOptions, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ) { // In TypeScript we cannot simply pass all parameters to super() like below so have to duplicate the code instead. // super(s, credentialOrPipelineOrContainerNameOrOptions, blobNameOrOptions, options); @@ -3551,11 +3551,11 @@ export class BlockBlobClient extends BlobClient { if (isNode) { const sharedKeyCredential = new StorageSharedKeyCredential( extractedCreds.accountName!, - extractedCreds.accountKey + extractedCreds.accountKey, ); url = appendToURLPath( appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), - encodeURIComponent(blobName) + encodeURIComponent(blobName), ); if (!options.proxyOptions) { @@ -3570,14 +3570,14 @@ export class BlockBlobClient extends BlobClient { url = appendToURLPath( appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), - encodeURIComponent(blobName) + encodeURIComponent(blobName), ) + "?" + extractedCreds.accountSas; pipeline = newPipeline(new AnonymousCredential(), options); } else { throw new Error( - "Connection string must be either an Account connection string or a SAS connection string" + "Connection string must be either an Account connection string or a SAS connection string", ); } } else { @@ -3601,9 +3601,9 @@ export class BlockBlobClient extends BlobClient { setURLParameter( this.url, URLConstants.Parameters.SNAPSHOT, - snapshot.length === 0 ? undefined : snapshot + snapshot.length === 0 ? undefined : snapshot, ), - this.pipeline + this.pipeline, ); } @@ -3639,7 +3639,7 @@ export class BlockBlobClient extends BlobClient { */ public async query( query: string, - options: BlockBlobQueryOptions = {} + options: BlockBlobQueryOptions = {}, ): Promise { ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps); if (!isNode) { @@ -3663,7 +3663,7 @@ export class BlockBlobClient extends BlobClient { }, cpkInfo: options.customerProvidedKey, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); return new BlobQueryResponse(response, { abortSignal: options.abortSignal, @@ -3703,7 +3703,7 @@ export class BlockBlobClient extends BlobClient { public async upload( body: HttpRequestBody, contentLength: number, - options: BlockBlobUploadOptions = {} + options: BlockBlobUploadOptions = {}, ): Promise { options.conditions = options.conditions || {}; ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps); @@ -3729,7 +3729,7 @@ export class BlockBlobClient extends BlobClient { tier: toAccessTier(options.tier), blobTagsString: toBlobTagsString(options.tags), tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -3755,7 +3755,7 @@ export class BlockBlobClient extends BlobClient { public async syncUploadFromURL( sourceURL: string, - options: BlockBlobSyncUploadFromURLOptions = {} + options: BlockBlobSyncUploadFromURLOptions = {}, ): Promise { options.conditions = options.conditions || {}; ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps); @@ -3785,9 +3785,9 @@ export class BlockBlobClient extends BlobClient { blobTagsString: toBlobTagsString(options.tags), copySourceTags: options.copySourceTags, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -3806,7 +3806,7 @@ export class BlockBlobClient extends BlobClient { blockId: string, body: HttpRequestBody, contentLength: number, - options: BlockBlobStageBlockOptions = {} + options: BlockBlobStageBlockOptions = {}, ): Promise { ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps); return tracingClient.withSpan("BlockBlobClient-stageBlock", options, async (updatedOptions) => { @@ -3822,7 +3822,7 @@ export class BlockBlobClient extends BlobClient { cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -3853,7 +3853,7 @@ export class BlockBlobClient extends BlobClient { sourceURL: string, offset: number = 0, count?: number, - options: BlockBlobStageBlockFromURLOptions = {} + options: BlockBlobStageBlockFromURLOptions = {}, ): Promise { ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps); return tracingClient.withSpan( @@ -3871,9 +3871,9 @@ export class BlockBlobClient extends BlobClient { encryptionScope: options.encryptionScope, copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization), tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -3891,7 +3891,7 @@ export class BlockBlobClient extends BlobClient { */ public async commitBlockList( blocks: string[], - options: BlockBlobCommitBlockListOptions = {} + options: BlockBlobCommitBlockListOptions = {}, ): Promise { options.conditions = options.conditions || {}; ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps); @@ -3919,10 +3919,10 @@ export class BlockBlobClient extends BlobClient { tier: toAccessTier(options.tier), blobTagsString: toBlobTagsString(options.tags), tracingOptions: updatedOptions.tracingOptions, - } - ) + }, + ), ); - } + }, ); } @@ -3938,7 +3938,7 @@ export class BlockBlobClient extends BlobClient { */ public async getBlockList( listType: BlockListType, - options: BlockBlobGetBlockListOptions = {} + options: BlockBlobGetBlockListOptions = {}, ): Promise { return tracingClient.withSpan( "BlockBlobClient-getBlockList", @@ -3956,7 +3956,7 @@ export class BlockBlobClient extends BlobClient { ifTags: options.conditions?.tagConditions, }, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); if (!res.committedBlocks) { @@ -3968,7 +3968,7 @@ export class BlockBlobClient extends BlobClient { } return res; - } + }, ); } @@ -3991,7 +3991,7 @@ export class BlockBlobClient extends BlobClient { */ public async uploadData( data: Buffer | Blob | ArrayBuffer | ArrayBufferView, - options: BlockBlobParallelUploadOptions = {} + options: BlockBlobParallelUploadOptions = {}, ): Promise { return tracingClient.withSpan("BlockBlobClient-uploadData", options, async (updatedOptions) => { if (isNode) { @@ -4008,14 +4008,14 @@ export class BlockBlobClient extends BlobClient { return this.uploadSeekableInternal( (offset: number, size: number): Buffer => buffer.slice(offset, offset + size), buffer.byteLength, - updatedOptions + updatedOptions, ); } else { const browserBlob = new Blob([data]); return this.uploadSeekableInternal( (offset: number, size: number): Blob => browserBlob.slice(offset, offset + size), browserBlob.size, - updatedOptions + updatedOptions, ); } }); @@ -4042,7 +4042,7 @@ export class BlockBlobClient extends BlobClient { */ public async uploadBrowserData( browserData: Blob | ArrayBuffer | ArrayBufferView, - options: BlockBlobParallelUploadOptions = {} + options: BlockBlobParallelUploadOptions = {}, ): Promise { return tracingClient.withSpan( "BlockBlobClient-uploadBrowserData", @@ -4052,9 +4052,9 @@ export class BlockBlobClient extends BlobClient { return this.uploadSeekableInternal( (offset: number, size: number): Blob => browserBlob.slice(offset, offset + size), browserBlob.size, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -4076,12 +4076,12 @@ export class BlockBlobClient extends BlobClient { private async uploadSeekableInternal( bodyFactory: (offset: number, size: number) => HttpRequestBody, size: number, - options: BlockBlobParallelUploadOptions = {} + options: BlockBlobParallelUploadOptions = {}, ): Promise { let blockSize = options.blockSize ?? 0; if (blockSize < 0 || blockSize > BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES) { throw new RangeError( - `blockSize option must be >= 0 and <= ${BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES}` + `blockSize option must be >= 0 and <= ${BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES}`, ); } @@ -4089,7 +4089,7 @@ export class BlockBlobClient extends BlobClient { if (maxSingleShotSize < 0 || maxSingleShotSize > BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES) { throw new RangeError( - `maxSingleShotSize option must be >= 0 and <= ${BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}` + `maxSingleShotSize option must be >= 0 and <= ${BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`, ); } @@ -4123,7 +4123,7 @@ export class BlockBlobClient extends BlobClient { if (numBlocks > BLOCK_BLOB_MAX_BLOCKS) { throw new RangeError( `The buffer's size is too big or the BlockSize is too small;` + - `the number of blocks must be <= ${BLOCK_BLOB_MAX_BLOCKS}` + `the number of blocks must be <= ${BLOCK_BLOB_MAX_BLOCKS}`, ); } @@ -4158,7 +4158,7 @@ export class BlockBlobClient extends BlobClient { await batch.do(); return this.commitBlockList(blockList, updatedOptions); - } + }, ); } @@ -4177,7 +4177,7 @@ export class BlockBlobClient extends BlobClient { */ public async uploadFile( filePath: string, - options: BlockBlobParallelUploadOptions = {} + options: BlockBlobParallelUploadOptions = {}, ): Promise { return tracingClient.withSpan("BlockBlobClient-uploadFile", options, async (updatedOptions) => { const size = (await fsStat(filePath)).size; @@ -4194,7 +4194,7 @@ export class BlockBlobClient extends BlobClient { { ...options, tracingOptions: updatedOptions.tracingOptions, - } + }, ); }); } @@ -4219,7 +4219,7 @@ export class BlockBlobClient extends BlobClient { stream: Readable, bufferSize: number = DEFAULT_BLOCK_BUFFER_SIZE_BYTES, maxConcurrency: number = 5, - options: BlockBlobUploadStreamOptions = {} + options: BlockBlobUploadStreamOptions = {}, ): Promise { if (!options.blobHTTPHeaders) { options.blobHTTPHeaders = {}; @@ -4262,7 +4262,7 @@ export class BlockBlobClient extends BlobClient { // reduce the possibility when a outgoing handler waits for stream data, in // this situation, outgoing handlers are blocked. // Outgoing queue shouldn't be empty. - Math.ceil((maxConcurrency / 4) * 3) + Math.ceil((maxConcurrency / 4) * 3), ); await scheduler.do(); @@ -4270,9 +4270,9 @@ export class BlockBlobClient extends BlobClient { await this.commitBlockList(blockList, { ...options, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } } @@ -4724,7 +4724,7 @@ export class PageBlobClient extends BlobClient { blobName: string, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ); /** * Creates an instance of PageBlobClient. @@ -4743,7 +4743,7 @@ export class PageBlobClient extends BlobClient { credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ); /** * Creates an instance of PageBlobClient. @@ -4771,7 +4771,7 @@ export class PageBlobClient extends BlobClient { blobNameOrOptions?: string | StoragePipelineOptions, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ) { // In TypeScript we cannot simply pass all parameters to super() like below so have to duplicate the code instead. // super(s, credentialOrPipelineOrContainerNameOrOptions, blobNameOrOptions, options); @@ -4814,11 +4814,11 @@ export class PageBlobClient extends BlobClient { if (isNode) { const sharedKeyCredential = new StorageSharedKeyCredential( extractedCreds.accountName!, - extractedCreds.accountKey + extractedCreds.accountKey, ); url = appendToURLPath( appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), - encodeURIComponent(blobName) + encodeURIComponent(blobName), ); if (!options.proxyOptions) { @@ -4833,14 +4833,14 @@ export class PageBlobClient extends BlobClient { url = appendToURLPath( appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), - encodeURIComponent(blobName) + encodeURIComponent(blobName), ) + "?" + extractedCreds.accountSas; pipeline = newPipeline(new AnonymousCredential(), options); } else { throw new Error( - "Connection string must be either an Account connection string or a SAS connection string" + "Connection string must be either an Account connection string or a SAS connection string", ); } } else { @@ -4863,9 +4863,9 @@ export class PageBlobClient extends BlobClient { setURLParameter( this.url, URLConstants.Parameters.SNAPSHOT, - snapshot.length === 0 ? undefined : snapshot + snapshot.length === 0 ? undefined : snapshot, ), - this.pipeline + this.pipeline, ); } @@ -4880,7 +4880,7 @@ export class PageBlobClient extends BlobClient { */ public async create( size: number, - options: PageBlobCreateOptions = {} + options: PageBlobCreateOptions = {}, ): Promise { options.conditions = options.conditions || {}; ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps); @@ -4904,7 +4904,7 @@ export class PageBlobClient extends BlobClient { tier: toAccessTier(options.tier), blobTagsString: toBlobTagsString(options.tags), tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -4920,7 +4920,7 @@ export class PageBlobClient extends BlobClient { */ public async createIfNotExists( size: number, - options: PageBlobCreateIfNotExistsOptions = {} + options: PageBlobCreateIfNotExistsOptions = {}, ): Promise { return tracingClient.withSpan( "PageBlobClient-createIfNotExists", @@ -4933,7 +4933,7 @@ export class PageBlobClient extends BlobClient { ...options, conditions, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); return { succeeded: true, @@ -4951,7 +4951,7 @@ export class PageBlobClient extends BlobClient { throw e; } - } + }, ); } @@ -4969,7 +4969,7 @@ export class PageBlobClient extends BlobClient { body: HttpRequestBody, offset: number, count: number, - options: PageBlobUploadPagesOptions = {} + options: PageBlobUploadPagesOptions = {}, ): Promise { options.conditions = options.conditions || {}; ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps); @@ -4992,7 +4992,7 @@ export class PageBlobClient extends BlobClient { cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -5013,7 +5013,7 @@ export class PageBlobClient extends BlobClient { sourceOffset: number, destOffset: number, count: number, - options: PageBlobUploadPagesFromURLOptions = {} + options: PageBlobUploadPagesFromURLOptions = {}, ): Promise { options.conditions = options.conditions || {}; options.sourceConditions = options.sourceConditions || {}; @@ -5048,10 +5048,10 @@ export class PageBlobClient extends BlobClient { encryptionScope: options.encryptionScope, copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization), tracingOptions: updatedOptions.tracingOptions, - } - ) + }, + ), ); - } + }, ); } @@ -5067,7 +5067,7 @@ export class PageBlobClient extends BlobClient { public async clearPages( offset: number = 0, count?: number, - options: PageBlobClearPagesOptions = {} + options: PageBlobClearPagesOptions = {}, ): Promise { options.conditions = options.conditions || {}; return tracingClient.withSpan("PageBlobClient-clearPages", options, async (updatedOptions) => { @@ -5084,7 +5084,7 @@ export class PageBlobClient extends BlobClient { cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -5101,7 +5101,7 @@ export class PageBlobClient extends BlobClient { public async getPageRanges( offset: number = 0, count?: number, - options: PageBlobGetPageRangesOptions = {} + options: PageBlobGetPageRangesOptions = {}, ): Promise { options.conditions = options.conditions || {}; return tracingClient.withSpan( @@ -5122,10 +5122,10 @@ export class PageBlobClient extends BlobClient { }, range: rangeToString({ offset, count }), tracingOptions: updatedOptions.tracingOptions, - }) + }), ); return rangeResponseFromModel(response); - } + }, ); } @@ -5145,7 +5145,7 @@ export class PageBlobClient extends BlobClient { offset: number = 0, count?: number, marker?: string, - options: PageBlobListPageRangesSegmentOptions = {} + options: PageBlobListPageRangesSegmentOptions = {}, ): Promise { return tracingClient.withSpan( "PageBlobClient-getPageRangesSegment", @@ -5167,9 +5167,9 @@ export class PageBlobClient extends BlobClient { marker: marker, maxPageSize: options.maxPageSize, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } /** @@ -5190,7 +5190,7 @@ export class PageBlobClient extends BlobClient { offset: number = 0, count?: number, marker?: string, - options: PageBlobListPageRangesSegmentOptions = {} + options: PageBlobListPageRangesSegmentOptions = {}, ): AsyncIterableIterator { let getPageRangeItemSegmentsResponse; if (!!marker || marker === undefined) { @@ -5199,7 +5199,7 @@ export class PageBlobClient extends BlobClient { offset, count, marker, - options + options, ); marker = getPageRangeItemSegmentsResponse.continuationToken; yield await getPageRangeItemSegmentsResponse; @@ -5217,14 +5217,14 @@ export class PageBlobClient extends BlobClient { private async *listPageRangeItems( offset: number = 0, count?: number, - options: PageBlobListPageRangesSegmentOptions = {} + options: PageBlobListPageRangesSegmentOptions = {}, ): AsyncIterableIterator { let marker: string | undefined; for await (const getPageRangesSegment of this.listPageRangeItemSegments( offset, count, marker, - options + options, )) { yield* ExtractPageRangeInfoItems(getPageRangesSegment); } @@ -5304,7 +5304,7 @@ export class PageBlobClient extends BlobClient { public listPageRanges( offset: number = 0, count?: number, - options: PageBlobListPageRangesOptions = {} + options: PageBlobListPageRangesOptions = {}, ): PagedAsyncIterableIterator { options.conditions = options.conditions || {}; // AsyncIterableIterator to iterate over blobs @@ -5348,7 +5348,7 @@ export class PageBlobClient extends BlobClient { offset: number, count: number, prevSnapshot: string, - options: PageBlobGetPageRangesDiffOptions = {} + options: PageBlobGetPageRangesDiffOptions = {}, ): Promise { options.conditions = options.conditions || {}; return tracingClient.withSpan( @@ -5370,10 +5370,10 @@ export class PageBlobClient extends BlobClient { prevsnapshot: prevSnapshot, range: rangeToString({ offset, count }), tracingOptions: updatedOptions.tracingOptions, - }) + }), ); return rangeResponseFromModel(result); - } + }, ); } @@ -5396,7 +5396,7 @@ export class PageBlobClient extends BlobClient { count: number, prevSnapshotOrUrl: string, marker?: string, - options: PageBlobListPageRangesDiffSegmentOptions = {} + options: PageBlobListPageRangesDiffSegmentOptions = {}, ): Promise { return tracingClient.withSpan( "PageBlobClient-getPageRangesDiffSegment", @@ -5422,9 +5422,9 @@ export class PageBlobClient extends BlobClient { marker: marker, maxPageSize: options?.maxPageSize, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } /** @@ -5448,7 +5448,7 @@ export class PageBlobClient extends BlobClient { count: number, prevSnapshotOrUrl: string, marker?: string, - options?: PageBlobListPageRangesDiffSegmentOptions + options?: PageBlobListPageRangesDiffSegmentOptions, ): AsyncIterableIterator { let getPageRangeItemSegmentsResponse: PageBlobGetPageRangesResponseModel; if (!!marker || marker === undefined) { @@ -5458,7 +5458,7 @@ export class PageBlobClient extends BlobClient { count, prevSnapshotOrUrl, marker, - options + options, ); marker = getPageRangeItemSegmentsResponse.continuationToken; yield await getPageRangeItemSegmentsResponse; @@ -5478,7 +5478,7 @@ export class PageBlobClient extends BlobClient { offset: number, count: number, prevSnapshotOrUrl: string, - options?: PageBlobListPageRangesDiffSegmentOptions + options?: PageBlobListPageRangesDiffSegmentOptions, ): AsyncIterableIterator { let marker: string | undefined; for await (const getPageRangesSegment of this.listPageRangeDiffItemSegments( @@ -5486,7 +5486,7 @@ export class PageBlobClient extends BlobClient { count, prevSnapshotOrUrl, marker, - options + options, )) { yield* ExtractPageRangeInfoItems(getPageRangesSegment); } @@ -5568,7 +5568,7 @@ export class PageBlobClient extends BlobClient { offset: number, count: number, prevSnapshot: string, - options: PageBlobListPageRangesDiffOptions = {} + options: PageBlobListPageRangesDiffOptions = {}, ): PagedAsyncIterableIterator { options.conditions = options.conditions || {}; @@ -5601,7 +5601,7 @@ export class PageBlobClient extends BlobClient { { maxPageSize: settings.maxPageSize, ...options, - } + }, ); }, }; @@ -5621,7 +5621,7 @@ export class PageBlobClient extends BlobClient { offset: number, count: number, prevSnapshotUrl: string, - options: PageBlobGetPageRangesDiffOptions = {} + options: PageBlobGetPageRangesDiffOptions = {}, ): Promise { options.conditions = options.conditions || {}; return tracingClient.withSpan( @@ -5643,10 +5643,10 @@ export class PageBlobClient extends BlobClient { prevSnapshotUrl, range: rangeToString({ offset, count }), tracingOptions: updatedOptions.tracingOptions, - }) + }), ); return rangeResponseFromModel(response); - } + }, ); } @@ -5660,7 +5660,7 @@ export class PageBlobClient extends BlobClient { */ public async resize( size: number, - options: PageBlobResizeOptions = {} + options: PageBlobResizeOptions = {}, ): Promise { options.conditions = options.conditions || {}; return tracingClient.withSpan("PageBlobClient-resize", options, async (updatedOptions) => { @@ -5674,7 +5674,7 @@ export class PageBlobClient extends BlobClient { }, encryptionScope: options.encryptionScope, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -5691,7 +5691,7 @@ export class PageBlobClient extends BlobClient { public async updateSequenceNumber( sequenceNumberAction: SequenceNumberActionType, sequenceNumber?: number, - options: PageBlobUpdateSequenceNumberOptions = {} + options: PageBlobUpdateSequenceNumberOptions = {}, ): Promise { options.conditions = options.conditions || {}; return tracingClient.withSpan( @@ -5711,9 +5711,9 @@ export class PageBlobClient extends BlobClient { ifTags: options.conditions?.tagConditions, }, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -5732,7 +5732,7 @@ export class PageBlobClient extends BlobClient { */ public async startCopyIncremental( copySource: string, - options: PageBlobStartCopyIncrementalOptions = {} + options: PageBlobStartCopyIncrementalOptions = {}, ): Promise { return tracingClient.withSpan( "PageBlobClient-startCopyIncremental", @@ -5746,9 +5746,9 @@ export class PageBlobClient extends BlobClient { ifTags: options.conditions?.tagConditions, }, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } } diff --git a/sdk/storage/storage-blob/src/ContainerClient.ts b/sdk/storage/storage-blob/src/ContainerClient.ts index c54a421cf3c9..a64101bd8c96 100644 --- a/sdk/storage/storage-blob/src/ContainerClient.ts +++ b/sdk/storage/storage-blob/src/ContainerClient.ts @@ -623,7 +623,7 @@ export class ContainerClient extends StorageClient { credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ); /** * Creates an instance of ContainerClient. @@ -649,7 +649,7 @@ export class ContainerClient extends StorageClient { | PipelineLike, // Legacy, no fix for eslint error without breaking. Disable it for this interface. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ) { let pipeline: PipelineLike; let url: string; @@ -686,7 +686,7 @@ export class ContainerClient extends StorageClient { if (isNode) { const sharedKeyCredential = new StorageSharedKeyCredential( extractedCreds.accountName!, - extractedCreds.accountKey + extractedCreds.accountKey, ); url = appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)); @@ -706,7 +706,7 @@ export class ContainerClient extends StorageClient { pipeline = newPipeline(new AnonymousCredential(), options); } else { throw new Error( - "Connection string must be either an Account connection string or a SAS connection string" + "Connection string must be either an Account connection string or a SAS connection string", ); } } else { @@ -737,7 +737,7 @@ export class ContainerClient extends StorageClient { public async create(options: ContainerCreateOptions = {}): Promise { return tracingClient.withSpan("ContainerClient-create", options, async (updatedOptions) => { return assertResponse( - await this.containerContext.create(updatedOptions) + await this.containerContext.create(updatedOptions), ); }); } @@ -751,7 +751,7 @@ export class ContainerClient extends StorageClient { * @param options - */ public async createIfNotExists( - options: ContainerCreateOptions = {} + options: ContainerCreateOptions = {}, ): Promise { return tracingClient.withSpan( "ContainerClient-createIfNotExists", @@ -775,7 +775,7 @@ export class ContainerClient extends StorageClient { throw e; } } - } + }, ); } @@ -865,7 +865,7 @@ export class ContainerClient extends StorageClient { * @param options - Options to Container Get Properties operation. */ public async getProperties( - options: ContainerGetPropertiesOptions = {} + options: ContainerGetPropertiesOptions = {}, ): Promise { if (!options.conditions) { options.conditions = {}; @@ -880,9 +880,9 @@ export class ContainerClient extends StorageClient { abortSignal: options.abortSignal, ...options.conditions, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -894,7 +894,7 @@ export class ContainerClient extends StorageClient { * @param options - Options to Container Delete operation. */ public async delete( - options: ContainerDeleteMethodOptions = {} + options: ContainerDeleteMethodOptions = {}, ): Promise { if (!options.conditions) { options.conditions = {}; @@ -907,7 +907,7 @@ export class ContainerClient extends StorageClient { leaseAccessConditions: options.conditions, modifiedAccessConditions: options.conditions, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -920,7 +920,7 @@ export class ContainerClient extends StorageClient { * @param options - Options to Container Delete operation. */ public async deleteIfExists( - options: ContainerDeleteMethodOptions = {} + options: ContainerDeleteMethodOptions = {}, ): Promise { return tracingClient.withSpan( "ContainerClient-deleteIfExists", @@ -943,7 +943,7 @@ export class ContainerClient extends StorageClient { } throw e; } - } + }, ); } @@ -961,7 +961,7 @@ export class ContainerClient extends StorageClient { */ public async setMetadata( metadata?: Metadata, - options: ContainerSetMetadataOptions = {} + options: ContainerSetMetadataOptions = {}, ): Promise { if (!options.conditions) { options.conditions = {}; @@ -969,7 +969,7 @@ export class ContainerClient extends StorageClient { if (options.conditions.ifUnmodifiedSince) { throw new RangeError( - "the IfUnmodifiedSince must have their default values because they are ignored by the blob service" + "the IfUnmodifiedSince must have their default values because they are ignored by the blob service", ); } @@ -984,9 +984,9 @@ export class ContainerClient extends StorageClient { metadata, modifiedAccessConditions: options.conditions, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -1002,7 +1002,7 @@ export class ContainerClient extends StorageClient { * @param options - Options to Container Get Access Policy operation. */ public async getAccessPolicy( - options: ContainerGetAccessPolicyOptions = {} + options: ContainerGetAccessPolicyOptions = {}, ): Promise { if (!options.conditions) { options.conditions = {}; @@ -1021,7 +1021,7 @@ export class ContainerClient extends StorageClient { abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); const res: ContainerGetAccessPolicyResponse = { @@ -1060,7 +1060,7 @@ export class ContainerClient extends StorageClient { } return res; - } + }, ); } @@ -1084,7 +1084,7 @@ export class ContainerClient extends StorageClient { public async setAccessPolicy( access?: PublicAccessType, containerAcl?: SignedIdentifier[], - options: ContainerSetAccessPolicyOptions = {} + options: ContainerSetAccessPolicyOptions = {}, ): Promise { options.conditions = options.conditions || {}; return tracingClient.withSpan( @@ -1115,9 +1115,9 @@ export class ContainerClient extends StorageClient { leaseAccessConditions: options.conditions, modifiedAccessConditions: options.conditions, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -1157,7 +1157,7 @@ export class ContainerClient extends StorageClient { blobName: string, body: HttpRequestBody, contentLength: number, - options: BlockBlobUploadOptions = {} + options: BlockBlobUploadOptions = {}, ): Promise<{ blockBlobClient: BlockBlobClient; response: BlockBlobUploadResponse }> { return tracingClient.withSpan( "ContainerClient-uploadBlockBlob", @@ -1169,7 +1169,7 @@ export class ContainerClient extends StorageClient { blockBlobClient, response, }; - } + }, ); } @@ -1186,7 +1186,7 @@ export class ContainerClient extends StorageClient { */ public async deleteBlob( blobName: string, - options: ContainerDeleteBlobOptions = {} + options: ContainerDeleteBlobOptions = {}, ): Promise { return tracingClient.withSpan("ContainerClient-deleteBlob", options, async (updatedOptions) => { let blobClient = this.getBlobClient(blobName); @@ -1209,7 +1209,7 @@ export class ContainerClient extends StorageClient { */ private async listBlobFlatSegment( marker?: string, - options: ContainerListBlobsSegmentOptions = {} + options: ContainerListBlobsSegmentOptions = {}, ): Promise { return tracingClient.withSpan( "ContainerClient-listBlobFlatSegment", @@ -1224,7 +1224,7 @@ export class ContainerClient extends StorageClient { marker, ...options, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); const wrappedResponse: ContainerListBlobFlatSegmentResponse = { @@ -1241,7 +1241,7 @@ export class ContainerClient extends StorageClient { name: BlobNameToString(blobItemInternal.name), tags: toTags(blobItemInternal.blobTags), objectReplicationSourceProperties: parseObjectReplicationRecord( - blobItemInternal.objectReplicationMetadata + blobItemInternal.objectReplicationMetadata, ), }; return blobItem; @@ -1249,7 +1249,7 @@ export class ContainerClient extends StorageClient { }, }; return wrappedResponse; - } + }, ); } @@ -1267,7 +1267,7 @@ export class ContainerClient extends StorageClient { private async listBlobHierarchySegment( delimiter: string, marker?: string, - options: ContainerListBlobsSegmentOptions = {} + options: ContainerListBlobsSegmentOptions = {}, ): Promise { return tracingClient.withSpan( "ContainerClient-listBlobHierarchySegment", @@ -1282,7 +1282,7 @@ export class ContainerClient extends StorageClient { marker, ...options, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); const wrappedResponse: ContainerListBlobHierarchySegmentResponse = { @@ -1299,7 +1299,7 @@ export class ContainerClient extends StorageClient { name: BlobNameToString(blobItemInternal.name), tags: toTags(blobItemInternal.blobTags), objectReplicationSourceProperties: parseObjectReplicationRecord( - blobItemInternal.objectReplicationMetadata + blobItemInternal.objectReplicationMetadata, ), }; return blobItem; @@ -1314,7 +1314,7 @@ export class ContainerClient extends StorageClient { }, }; return wrappedResponse; - } + }, ); } @@ -1332,7 +1332,7 @@ export class ContainerClient extends StorageClient { */ private async *listSegments( marker?: string, - options: ContainerListBlobsSegmentOptions = {} + options: ContainerListBlobsSegmentOptions = {}, ): AsyncIterableIterator { let listBlobsFlatSegmentResponse; if (!!marker || marker === undefined) { @@ -1350,7 +1350,7 @@ export class ContainerClient extends StorageClient { * @param options - Options to list blobs operation. */ private async *listItems( - options: ContainerListBlobsSegmentOptions = {} + options: ContainerListBlobsSegmentOptions = {}, ): AsyncIterableIterator { let marker: string | undefined; for await (const listBlobsFlatSegmentResponse of this.listSegments(marker, options)) { @@ -1429,7 +1429,7 @@ export class ContainerClient extends StorageClient { * @returns An asyncIterableIterator that supports paging. */ public listBlobsFlat( - options: ContainerListBlobsOptions = {} + options: ContainerListBlobsOptions = {}, ): PagedAsyncIterableIterator { const include: ListBlobsIncludeItem[] = []; if (options.includeCopy) { @@ -1514,7 +1514,7 @@ export class ContainerClient extends StorageClient { private async *listHierarchySegments( delimiter: string, marker?: string, - options: ContainerListBlobsSegmentOptions = {} + options: ContainerListBlobsSegmentOptions = {}, ): AsyncIterableIterator { let listBlobsHierarchySegmentResponse; if (!!marker || marker === undefined) { @@ -1522,7 +1522,7 @@ export class ContainerClient extends StorageClient { listBlobsHierarchySegmentResponse = await this.listBlobHierarchySegment( delimiter, marker, - options + options, ); marker = listBlobsHierarchySegmentResponse.continuationToken; yield await listBlobsHierarchySegmentResponse; @@ -1538,13 +1538,13 @@ export class ContainerClient extends StorageClient { */ private async *listItemsByHierarchy( delimiter: string, - options: ContainerListBlobsSegmentOptions = {} + options: ContainerListBlobsSegmentOptions = {}, ): AsyncIterableIterator<({ kind: "prefix" } & BlobPrefix) | ({ kind: "blob" } & BlobItem)> { let marker: string | undefined; for await (const listBlobsHierarchySegmentResponse of this.listHierarchySegments( delimiter, marker, - options + options, )) { const segment = listBlobsHierarchySegmentResponse.segment; if (segment.blobPrefixes) { @@ -1641,7 +1641,7 @@ export class ContainerClient extends StorageClient { */ public listBlobsByHierarchy( delimiter: string, - options: ContainerListBlobsOptions = {} + options: ContainerListBlobsOptions = {}, ): PagedAsyncIterableIterator< ({ kind: "prefix" } & BlobPrefix) | ({ kind: "blob" } & BlobItem), ContainerListBlobHierarchySegmentResponse @@ -1736,7 +1736,7 @@ export class ContainerClient extends StorageClient { private async findBlobsByTagsSegment( tagFilterSqlExpression: string, marker?: string, - options: ContainerFindBlobsByTagsSegmentOptions = {} + options: ContainerFindBlobsByTagsSegmentOptions = {}, ): Promise { return tracingClient.withSpan( "ContainerClient-findBlobsByTagsSegment", @@ -1753,7 +1753,7 @@ export class ContainerClient extends StorageClient { marker, maxPageSize: options.maxPageSize, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); const wrappedResponse: ContainerFindBlobsByTagsSegmentResponse = { @@ -1768,7 +1768,7 @@ export class ContainerClient extends StorageClient { }), }; return wrappedResponse; - } + }, ); } @@ -1791,7 +1791,7 @@ export class ContainerClient extends StorageClient { private async *findBlobsByTagsSegments( tagFilterSqlExpression: string, marker?: string, - options: ContainerFindBlobsByTagsSegmentOptions = {} + options: ContainerFindBlobsByTagsSegmentOptions = {}, ): AsyncIterableIterator { let response; if (!!marker || marker === undefined) { @@ -1815,13 +1815,13 @@ export class ContainerClient extends StorageClient { */ private async *findBlobsByTagsItems( tagFilterSqlExpression: string, - options: ContainerFindBlobsByTagsSegmentOptions = {} + options: ContainerFindBlobsByTagsSegmentOptions = {}, ): AsyncIterableIterator { let marker: string | undefined; for await (const segment of this.findBlobsByTagsSegments( tagFilterSqlExpression, marker, - options + options, )) { yield* segment.blobs; } @@ -1906,7 +1906,7 @@ export class ContainerClient extends StorageClient { */ public findBlobsByTags( tagFilterSqlExpression: string, - options: ContainerFindBlobByTagsOptions = {} + options: ContainerFindBlobByTagsOptions = {}, ): PagedAsyncIterableIterator { // AsyncIterableIterator to iterate over blobs const listSegmentOptions: ContainerFindBlobsByTagsSegmentOptions = { @@ -1994,7 +1994,7 @@ export class ContainerClient extends StorageClient { return new Promise((resolve) => { if (!(this.credential instanceof StorageSharedKeyCredential)) { throw new RangeError( - "Can only generate the SAS when the client is initialized with a shared key credential" + "Can only generate the SAS when the client is initialized with a shared key credential", ); } @@ -2003,7 +2003,7 @@ export class ContainerClient extends StorageClient { containerName: this._containerName, ...options, }, - this.credential + this.credential, ).toString(); resolve(appendToURLQuery(this.url, sas)); diff --git a/sdk/storage/storage-blob/src/PageBlobRangeResponse.ts b/sdk/storage/storage-blob/src/PageBlobRangeResponse.ts index cfc575b071a1..7ef403346a2b 100644 --- a/sdk/storage/storage-blob/src/PageBlobRangeResponse.ts +++ b/sdk/storage/storage-blob/src/PageBlobRangeResponse.ts @@ -48,7 +48,7 @@ export interface PageBlobGetPageRangesDiffResponse * @param response - Model PageBlob Range response */ export function rangeResponseFromModel( - response: PageBlobGetPageRangesResponseModel | PageBlobGetPageRangesDiffResponseModel + response: PageBlobGetPageRangesResponseModel | PageBlobGetPageRangesDiffResponseModel, ): PageBlobGetPageRangesResponse | PageBlobGetPageRangesDiffResponse { const pageRange = (response._response.parsedBody.pageRange || []).map((x) => ({ offset: x.start, diff --git a/sdk/storage/storage-blob/src/Pipeline.ts b/sdk/storage/storage-blob/src/Pipeline.ts index 889bd2f7418f..b70cd2215c3f 100644 --- a/sdk/storage/storage-blob/src/Pipeline.ts +++ b/sdk/storage/storage-blob/src/Pipeline.ts @@ -212,7 +212,7 @@ export interface StoragePipelineOptions { */ export function newPipeline( credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - pipelineOptions: StoragePipelineOptions = {} + pipelineOptions: StoragePipelineOptions = {}, ): Pipeline { if (!credential) { credential = new AnonymousCredential(); @@ -223,7 +223,7 @@ export function newPipeline( } function processDownlevelPipeline( - pipeline: PipelineLike + pipeline: PipelineLike, ): { wrappedPolicies: PipelinePolicy; afterRetry: boolean } | undefined { const knownFactoryFunctions = [ isAnonymousCredential, @@ -305,7 +305,7 @@ export function getCoreClientOptions(pipeline: PipelineLike): ExtendedServiceCli if (downlevelResults) { corePipeline.addPolicy( downlevelResults.wrappedPolicies, - downlevelResults.afterRetry ? { afterPhase: "Retry" } : undefined + downlevelResults.afterRetry ? { afterPhase: "Retry" } : undefined, ); } const credential = getCredentialFromPipeline(pipeline); @@ -316,7 +316,7 @@ export function getCoreClientOptions(pipeline: PipelineLike): ExtendedServiceCli scopes: restOptions.audience ?? StorageOAuthScopes, challengeCallbacks: { authorizeRequestOnChallenge: authorizeRequestOnTenantChallenge }, }), - { phase: "Sign" } + { phase: "Sign" }, ); } else if (credential instanceof StorageSharedKeyCredential) { corePipeline.addPolicy( @@ -324,7 +324,7 @@ export function getCoreClientOptions(pipeline: PipelineLike): ExtendedServiceCli accountName: credential.accountName, accountKey: (credential as any).accountKey, }), - { phase: "Sign" } + { phase: "Sign" }, ); } (pipeline as any)._corePipeline = corePipeline; @@ -338,7 +338,7 @@ export function getCoreClientOptions(pipeline: PipelineLike): ExtendedServiceCli } export function getCredentialFromPipeline( - pipeline: PipelineLike + pipeline: PipelineLike, ): StorageSharedKeyCredential | AnonymousCredential | TokenCredential { // see if we squirreled one away on the type itself if ((pipeline as any)._credential) { @@ -359,7 +359,7 @@ export function getCredentialFromPipeline( } function isStorageSharedKeyCredential( - factory: RequestPolicyFactory + factory: RequestPolicyFactory, ): factory is StorageSharedKeyCredential { if (factory instanceof StorageSharedKeyCredential) { return true; @@ -379,7 +379,7 @@ function isCoreHttpBearerTokenFactory(factory: RequestPolicyFactory): boolean { } function isStorageBrowserPolicyFactory( - factory: RequestPolicyFactory + factory: RequestPolicyFactory, ): factory is StorageBrowserPolicyFactory { if (factory instanceof StorageBrowserPolicyFactory) { return true; @@ -388,7 +388,7 @@ function isStorageBrowserPolicyFactory( } function isStorageRetryPolicyFactory( - factory: RequestPolicyFactory + factory: RequestPolicyFactory, ): factory is StorageRetryPolicyFactory { if (factory instanceof StorageRetryPolicyFactory) { return true; diff --git a/sdk/storage/storage-blob/src/Range.ts b/sdk/storage/storage-blob/src/Range.ts index 3d4efbffd292..fd282fa78538 100644 --- a/sdk/storage/storage-blob/src/Range.ts +++ b/sdk/storage/storage-blob/src/Range.ts @@ -30,7 +30,7 @@ export function rangeToString(iRange: Range): string { } if (iRange.count && iRange.count <= 0) { throw new RangeError( - `Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.` + `Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`, ); } return iRange.count diff --git a/sdk/storage/storage-blob/src/StorageContextClient.ts b/sdk/storage/storage-blob/src/StorageContextClient.ts index 878a3cabf9cd..a7df9f34d2ca 100644 --- a/sdk/storage/storage-blob/src/StorageContextClient.ts +++ b/sdk/storage/storage-blob/src/StorageContextClient.ts @@ -10,7 +10,7 @@ import { StorageClient } from "./generated/src"; export class StorageContextClient extends StorageClient { async sendOperationRequest( operationArguments: OperationArguments, - operationSpec: OperationSpec + operationSpec: OperationSpec, ): Promise { const operationSpecToSend = { ...operationSpec }; diff --git a/sdk/storage/storage-blob/src/credentials/AnonymousCredential.ts b/sdk/storage/storage-blob/src/credentials/AnonymousCredential.ts index efd6f603d59e..b2da4725609c 100644 --- a/sdk/storage/storage-blob/src/credentials/AnonymousCredential.ts +++ b/sdk/storage/storage-blob/src/credentials/AnonymousCredential.ts @@ -24,7 +24,7 @@ export class AnonymousCredential extends Credential { */ public create( nextPolicy: RequestPolicy, - options: RequestPolicyOptions + options: RequestPolicyOptions, ): AnonymousCredentialPolicy { return new AnonymousCredentialPolicy(nextPolicy, options); } diff --git a/sdk/storage/storage-blob/src/credentials/Credential.ts b/sdk/storage/storage-blob/src/credentials/Credential.ts index 1e2f07f7a2a2..af1ab7c56677 100644 --- a/sdk/storage/storage-blob/src/credentials/Credential.ts +++ b/sdk/storage/storage-blob/src/credentials/Credential.ts @@ -29,5 +29,5 @@ export abstract class Credential implements RequestPolicyFactory { */ export type CredentialPolicyCreator = ( nextPolicy: RequestPolicy, - options: RequestPolicyOptions + options: RequestPolicyOptions, ) => CredentialPolicy; diff --git a/sdk/storage/storage-blob/src/credentials/StorageSharedKeyCredential.ts b/sdk/storage/storage-blob/src/credentials/StorageSharedKeyCredential.ts index 5a8e04b05421..5bde73c43db7 100644 --- a/sdk/storage/storage-blob/src/credentials/StorageSharedKeyCredential.ts +++ b/sdk/storage/storage-blob/src/credentials/StorageSharedKeyCredential.ts @@ -45,7 +45,7 @@ export class StorageSharedKeyCredential extends Credential { */ public create( nextPolicy: RequestPolicy, - options: RequestPolicyOptions + options: RequestPolicyOptions, ): StorageSharedKeyCredentialPolicy { return new StorageSharedKeyCredentialPolicy(nextPolicy, options, this); } diff --git a/sdk/storage/storage-blob/src/models.ts b/sdk/storage/storage-blob/src/models.ts index adb427a752a4..29a5e8d3fd3d 100644 --- a/sdk/storage/storage-blob/src/models.ts +++ b/sdk/storage/storage-blob/src/models.ts @@ -178,7 +178,7 @@ export enum PremiumPageBlobTier { } export function toAccessTier( - tier: BlockBlobTier | PremiumPageBlobTier | string | undefined + tier: BlockBlobTier | PremiumPageBlobTier | string | undefined, ): AccessTier | undefined { if (tier === undefined) { return undefined; diff --git a/sdk/storage/storage-blob/src/policies/RequestPolicy.ts b/sdk/storage/storage-blob/src/policies/RequestPolicy.ts index 295ea9beab97..6c90f8bf5738 100644 --- a/sdk/storage/storage-blob/src/policies/RequestPolicy.ts +++ b/sdk/storage/storage-blob/src/policies/RequestPolicy.ts @@ -24,7 +24,7 @@ export abstract class BaseRequestPolicy implements RequestPolicy { /** * The options that can be passed to a given request policy. */ - readonly _options: RequestPolicyOptionsLike + readonly _options: RequestPolicyOptionsLike, ) {} /** diff --git a/sdk/storage/storage-blob/src/policies/StorageBrowserPolicy.ts b/sdk/storage/storage-blob/src/policies/StorageBrowserPolicy.ts index 3f562c4e6474..c40e2f17371a 100644 --- a/sdk/storage/storage-blob/src/policies/StorageBrowserPolicy.ts +++ b/sdk/storage/storage-blob/src/policies/StorageBrowserPolicy.ts @@ -50,7 +50,7 @@ export class StorageBrowserPolicy extends BaseRequestPolicy { request.url = setURLParameter( request.url, URLConstants.Parameters.FORCE_BROWSER_NO_CACHE, - new Date().getTime().toString() + new Date().getTime().toString(), ); } diff --git a/sdk/storage/storage-blob/src/policies/StorageBrowserPolicyV2.ts b/sdk/storage/storage-blob/src/policies/StorageBrowserPolicyV2.ts index 575624e9306c..f6d816e3abd0 100644 --- a/sdk/storage/storage-blob/src/policies/StorageBrowserPolicyV2.ts +++ b/sdk/storage/storage-blob/src/policies/StorageBrowserPolicyV2.ts @@ -32,7 +32,7 @@ export function storageBrowserPolicy(): PipelinePolicy { request.url = setURLParameter( request.url, URLConstants.Parameters.FORCE_BROWSER_NO_CACHE, - new Date().getTime().toString() + new Date().getTime().toString(), ); } diff --git a/sdk/storage/storage-blob/src/policies/StorageRetryPolicy.ts b/sdk/storage/storage-blob/src/policies/StorageRetryPolicy.ts index 90e39cd4d603..1a1cee76bef1 100644 --- a/sdk/storage/storage-blob/src/policies/StorageRetryPolicy.ts +++ b/sdk/storage/storage-blob/src/policies/StorageRetryPolicy.ts @@ -76,7 +76,7 @@ export class StorageRetryPolicy extends BaseRequestPolicy { constructor( nextPolicy: RequestPolicy, options: RequestPolicyOptions, - retryOptions: StorageRetryOptions = DEFAULT_RETRY_OPTIONS + retryOptions: StorageRetryOptions = DEFAULT_RETRY_OPTIONS, ) { super(nextPolicy, options); @@ -102,7 +102,7 @@ export class StorageRetryPolicy extends BaseRequestPolicy { retryOptions.retryDelayInMs, retryOptions.maxRetryDelayInMs ? retryOptions.maxRetryDelayInMs - : DEFAULT_RETRY_OPTIONS.maxRetryDelayInMs! + : DEFAULT_RETRY_OPTIONS.maxRetryDelayInMs!, ) : DEFAULT_RETRY_OPTIONS.retryDelayInMs, @@ -139,7 +139,7 @@ export class StorageRetryPolicy extends BaseRequestPolicy { protected async attemptSendRequest( request: WebResource, secondaryHas404: boolean, - attempt: number + attempt: number, ): Promise { const newRequest: WebResource = request.clone(); @@ -158,7 +158,7 @@ export class StorageRetryPolicy extends BaseRequestPolicy { newRequest.url = setURLParameter( newRequest.url, URLConstants.Parameters.TIMEOUT, - Math.floor(this.retryOptions.tryTimeoutInMs! / 1000).toString() + Math.floor(this.retryOptions.tryTimeoutInMs! / 1000).toString(), ); } @@ -194,12 +194,12 @@ export class StorageRetryPolicy extends BaseRequestPolicy { isPrimaryRetry: boolean, attempt: number, response?: HttpOperationResponse, - err?: RestError + err?: RestError, ): boolean { if (attempt >= this.retryOptions.maxTries!) { logger.info( `RetryPolicy: Attempt(s) ${attempt} >= maxTries ${this.retryOptions - .maxTries!}, no further try.` + .maxTries!}, no further try.`, ); return false; } @@ -249,7 +249,7 @@ export class StorageRetryPolicy extends BaseRequestPolicy { if (err?.code === "PARSE_ERROR" && err?.message.startsWith(`Error "Error: Unclosed root tag`)) { logger.info( - "RetryPolicy: Incomplete XML response likely due to service timeout, will retry." + "RetryPolicy: Incomplete XML response likely due to service timeout, will retry.", ); return true; } @@ -272,7 +272,7 @@ export class StorageRetryPolicy extends BaseRequestPolicy { case StorageRetryPolicyType.EXPONENTIAL: delayTimeInMs = Math.min( (Math.pow(2, attempt - 1) - 1) * this.retryOptions.retryDelayInMs!, - this.retryOptions.maxRetryDelayInMs! + this.retryOptions.maxRetryDelayInMs!, ); break; case StorageRetryPolicyType.FIXED: diff --git a/sdk/storage/storage-blob/src/policies/StorageRetryPolicyV2.ts b/sdk/storage/storage-blob/src/policies/StorageRetryPolicyV2.ts index c887cde113ed..4569aa2b0945 100644 --- a/sdk/storage/storage-blob/src/policies/StorageRetryPolicyV2.ts +++ b/sdk/storage/storage-blob/src/policies/StorageRetryPolicyV2.ts @@ -101,7 +101,7 @@ export function storageRetryPolicy(options: StorageRetryOptions = {}): PipelineP error?.message.startsWith(`Error "Error: Unclosed root tag`) ) { logger.info( - "RetryPolicy: Incomplete XML response likely due to service timeout, will retry." + "RetryPolicy: Incomplete XML response likely due to service timeout, will retry.", ); return true; } @@ -133,7 +133,7 @@ export function storageRetryPolicy(options: StorageRetryOptions = {}): PipelineP case StorageRetryPolicyType.EXPONENTIAL: delayTimeInMs = Math.min( (Math.pow(2, attempt - 1) - 1) * retryDelayInMs, - maxRetryDelayInMs + maxRetryDelayInMs, ); break; case StorageRetryPolicyType.FIXED: @@ -155,7 +155,7 @@ export function storageRetryPolicy(options: StorageRetryOptions = {}): PipelineP request.url = setURLParameter( request.url, URLConstants.Parameters.TIMEOUT, - String(Math.floor(tryTimeoutInMs / 1000)) + String(Math.floor(tryTimeoutInMs / 1000)), ); } const primaryUrl = request.url; @@ -176,7 +176,7 @@ export function storageRetryPolicy(options: StorageRetryOptions = {}): PipelineP error = undefined; try { logger.info( - `RetryPolicy: =====> Try=${attempt} ${isPrimaryRetry ? "Primary" : "Secondary"}` + `RetryPolicy: =====> Try=${attempt} ${isPrimaryRetry ? "Primary" : "Secondary"}`, ); response = await next(request); secondaryHas404 = secondaryHas404 || (!isPrimaryRetry && response.status === 404); @@ -194,7 +194,7 @@ export function storageRetryPolicy(options: StorageRetryOptions = {}): PipelineP await delay( calculateDelay(isPrimaryRetry, attempt), request.abortSignal, - RETRY_ABORT_ERROR + RETRY_ABORT_ERROR, ); } attempt++; diff --git a/sdk/storage/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.ts b/sdk/storage/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.ts index 00061ba2d48b..bd0f5e321dc4 100644 --- a/sdk/storage/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.ts +++ b/sdk/storage/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.ts @@ -29,7 +29,7 @@ export class StorageSharedKeyCredentialPolicy extends CredentialPolicy { constructor( nextPolicy: RequestPolicy, options: RequestPolicyOptions, - factory: StorageSharedKeyCredential + factory: StorageSharedKeyCredential, ) { super(nextPolicy, options); this.factory = factory; @@ -73,7 +73,7 @@ export class StorageSharedKeyCredentialPolicy extends CredentialPolicy { const signature: string = this.factory.computeHMACSHA256(stringToSign); request.headers.set( HeaderConstants.AUTHORIZATION, - `SharedKey ${this.factory.accountName}:${signature}` + `SharedKey ${this.factory.accountName}:${signature}`, ); // console.log(`[URL]:${request.url}`); diff --git a/sdk/storage/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.ts b/sdk/storage/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.ts index a86d43f6689a..84b07a669dba 100644 --- a/sdk/storage/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.ts +++ b/sdk/storage/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.ts @@ -24,7 +24,7 @@ export interface StorageSharedKeyCredentialPolicyOptions { * storageSharedKeyCredentialPolicy handles signing requests using storage account keys. */ export function storageSharedKeyCredentialPolicy( - _options: StorageSharedKeyCredentialPolicyOptions + _options: StorageSharedKeyCredentialPolicyOptions, ): PipelinePolicy { return { name: storageSharedKeyCredentialPolicyName, diff --git a/sdk/storage/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.ts b/sdk/storage/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.ts index e75860d42d13..b03a9c92a1c3 100644 --- a/sdk/storage/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.ts +++ b/sdk/storage/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.ts @@ -28,7 +28,7 @@ export interface StorageSharedKeyCredentialPolicyOptions { * storageSharedKeyCredentialPolicy handles signing requests using storage account keys. */ export function storageSharedKeyCredentialPolicy( - options: StorageSharedKeyCredentialPolicyOptions + options: StorageSharedKeyCredentialPolicyOptions, ): PipelinePolicy { function signRequest(request: PipelineRequest): void { request.headers.set(HeaderConstants.X_MS_DATE, new Date().toUTCString()); @@ -65,7 +65,7 @@ export function storageSharedKeyCredentialPolicy( .digest("base64"); request.headers.set( HeaderConstants.AUTHORIZATION, - `SharedKey ${options.accountName}:${signature}` + `SharedKey ${options.accountName}:${signature}`, ); // console.log(`[URL]:${request.url}`); diff --git a/sdk/storage/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.ts b/sdk/storage/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.ts index d899f6680f86..96c239b0aaf1 100644 --- a/sdk/storage/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.ts +++ b/sdk/storage/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.ts @@ -12,7 +12,7 @@ import { BlobClient, BlobStartCopyFromURLOptions, BlobBeginCopyFromURLResponse } export type CopyPollerBlobClient = Pick & { startCopyFromURL( copySource: string, - options?: BlobStartCopyFromURLOptions + options?: BlobStartCopyFromURLOptions, ): Promise; }; @@ -129,7 +129,7 @@ export class BlobBeginCopyFromUrlPoller extends Poller< */ const cancel: BlobBeginCopyFromURLPollOperation["cancel"] = async function cancel( this: BlobBeginCopyFromURLPollOperation, - options = {} + options = {}, ) { const state = this.state; const { copyId } = state; @@ -159,7 +159,7 @@ const cancel: BlobBeginCopyFromURLPollOperation["cancel"] = async function cance */ const update: BlobBeginCopyFromURLPollOperation["update"] = async function update( this: BlobBeginCopyFromURLPollOperation, - options = {} + options = {}, ): Promise { const state = this.state; const { blobClient, copySource, startCopyFromURLOptions } = state; @@ -194,7 +194,7 @@ const update: BlobBeginCopyFromURLPollOperation["update"] = async function updat state.isCompleted = true; } else if (copyStatus === "failed") { state.error = new Error( - `Blob copy failed with reason: "${result.copyStatusDescription || "unknown"}"` + `Blob copy failed with reason: "${result.copyStatusDescription || "unknown"}"`, ); state.isCompleted = true; } @@ -214,7 +214,7 @@ const update: BlobBeginCopyFromURLPollOperation["update"] = async function updat * @hidden */ const toString: BlobBeginCopyFromURLPollOperation["toString"] = function toString( - this: BlobBeginCopyFromURLPollOperation + this: BlobBeginCopyFromURLPollOperation, ) { return JSON.stringify({ state: this.state }, (key, value) => { // remove blobClient from serialized state since a client can't be hydrated from this info. @@ -230,7 +230,7 @@ const toString: BlobBeginCopyFromURLPollOperation["toString"] = function toStrin * @hidden */ function makeBlobBeginCopyFromURLPollOperation( - state: BlobBeginCopyFromUrlPollState + state: BlobBeginCopyFromUrlPollState, ): BlobBeginCopyFromURLPollOperation { return { state: { ...state }, diff --git a/sdk/storage/storage-blob/src/sas/AccountSASSignatureValues.ts b/sdk/storage/storage-blob/src/sas/AccountSASSignatureValues.ts index b4278928537b..42e854a8b6ce 100644 --- a/sdk/storage/storage-blob/src/sas/AccountSASSignatureValues.ts +++ b/sdk/storage/storage-blob/src/sas/AccountSASSignatureValues.ts @@ -88,7 +88,7 @@ export interface AccountSASSignatureValues { */ export function generateAccountSASQueryParameters( accountSASSignatureValues: AccountSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential + sharedKeyCredential: StorageSharedKeyCredential, ): SASQueryParameters { const version = accountSASSignatureValues.version ? accountSASSignatureValues.version @@ -139,11 +139,11 @@ export function generateAccountSASQueryParameters( } const parsedPermissions = AccountSASPermissions.parse( - accountSASSignatureValues.permissions.toString() + accountSASSignatureValues.permissions.toString(), ); const parsedServices = AccountSASServices.parse(accountSASSignatureValues.services).toString(); const parsedResourceTypes = AccountSASResourceTypes.parse( - accountSASSignatureValues.resourceTypes + accountSASSignatureValues.resourceTypes, ).toString(); let stringToSign: string; @@ -203,6 +203,6 @@ export function generateAccountSASQueryParameters( undefined, undefined, undefined, - accountSASSignatureValues.encryptionScope + accountSASSignatureValues.encryptionScope, ); } diff --git a/sdk/storage/storage-blob/src/sas/BlobSASSignatureValues.ts b/sdk/storage/storage-blob/src/sas/BlobSASSignatureValues.ts index 12471e312c12..fee8f405bf28 100644 --- a/sdk/storage/storage-blob/src/sas/BlobSASSignatureValues.ts +++ b/sdk/storage/storage-blob/src/sas/BlobSASSignatureValues.ts @@ -206,7 +206,7 @@ export interface BlobSASSignatureValues { */ export function generateBlobSASQueryParameters( blobSASSignatureValues: BlobSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential + sharedKeyCredential: StorageSharedKeyCredential, ): SASQueryParameters; /** @@ -241,13 +241,13 @@ export function generateBlobSASQueryParameters( export function generateBlobSASQueryParameters( blobSASSignatureValues: BlobSASSignatureValues, userDelegationKey: UserDelegationKey, - accountName: string + accountName: string, ): SASQueryParameters; export function generateBlobSASQueryParameters( blobSASSignatureValues: BlobSASSignatureValues, sharedKeyCredentialOrUserDelegationKey: StorageSharedKeyCredential | UserDelegationKey, - accountName?: string + accountName?: string, ): SASQueryParameters { const version = blobSASSignatureValues.version ? blobSASSignatureValues.version : SERVICE_VERSION; @@ -260,7 +260,7 @@ export function generateBlobSASQueryParameters( if (sharedKeyCredential === undefined && accountName !== undefined) { userDelegationKeyCredential = new UserDelegationKeyCredential( accountName, - sharedKeyCredentialOrUserDelegationKey as UserDelegationKey + sharedKeyCredentialOrUserDelegationKey as UserDelegationKey, ); } @@ -275,7 +275,7 @@ export function generateBlobSASQueryParameters( } else { return generateBlobSASQueryParametersUDK20201206( blobSASSignatureValues, - userDelegationKeyCredential! + userDelegationKeyCredential!, ); } } @@ -291,12 +291,12 @@ export function generateBlobSASQueryParameters( if (version >= "2020-02-10") { return generateBlobSASQueryParametersUDK20200210( blobSASSignatureValues, - userDelegationKeyCredential! + userDelegationKeyCredential!, ); } else { return generateBlobSASQueryParametersUDK20181109( blobSASSignatureValues, - userDelegationKeyCredential! + userDelegationKeyCredential!, ); } } @@ -307,7 +307,7 @@ export function generateBlobSASQueryParameters( return generateBlobSASQueryParameters20150405(blobSASSignatureValues, sharedKeyCredential); } else { throw new RangeError( - "'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key." + "'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.", ); } } @@ -333,7 +333,7 @@ export function generateBlobSASQueryParameters( */ function generateBlobSASQueryParameters20150405( blobSASSignatureValues: BlobSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential + sharedKeyCredential: StorageSharedKeyCredential, ): SASQueryParameters { blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues); @@ -342,7 +342,7 @@ function generateBlobSASQueryParameters20150405( !(blobSASSignatureValues.permissions && blobSASSignatureValues.expiresOn) ) { throw new RangeError( - "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided." + "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.", ); } @@ -356,11 +356,11 @@ function generateBlobSASQueryParameters20150405( if (blobSASSignatureValues.permissions) { if (blobSASSignatureValues.blobName) { verifiedPermissions = BlobSASPermissions.parse( - blobSASSignatureValues.permissions.toString() + blobSASSignatureValues.permissions.toString(), ).toString(); } else { verifiedPermissions = ContainerSASPermissions.parse( - blobSASSignatureValues.permissions.toString() + blobSASSignatureValues.permissions.toString(), ).toString(); } } @@ -377,7 +377,7 @@ function generateBlobSASQueryParameters20150405( getCanonicalName( sharedKeyCredential.accountName, blobSASSignatureValues.containerName, - blobSASSignatureValues.blobName + blobSASSignatureValues.blobName, ), blobSASSignatureValues.identifier, blobSASSignatureValues.ipRange ? ipRangeToString(blobSASSignatureValues.ipRange) : "", @@ -408,7 +408,7 @@ function generateBlobSASQueryParameters20150405( blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, - blobSASSignatureValues.contentType + blobSASSignatureValues.contentType, ); } @@ -430,7 +430,7 @@ function generateBlobSASQueryParameters20150405( */ function generateBlobSASQueryParameters20181109( blobSASSignatureValues: BlobSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential + sharedKeyCredential: StorageSharedKeyCredential, ): SASQueryParameters { blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues); @@ -439,7 +439,7 @@ function generateBlobSASQueryParameters20181109( !(blobSASSignatureValues.permissions && blobSASSignatureValues.expiresOn) ) { throw new RangeError( - "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided." + "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.", ); } @@ -460,11 +460,11 @@ function generateBlobSASQueryParameters20181109( if (blobSASSignatureValues.permissions) { if (blobSASSignatureValues.blobName) { verifiedPermissions = BlobSASPermissions.parse( - blobSASSignatureValues.permissions.toString() + blobSASSignatureValues.permissions.toString(), ).toString(); } else { verifiedPermissions = ContainerSASPermissions.parse( - blobSASSignatureValues.permissions.toString() + blobSASSignatureValues.permissions.toString(), ).toString(); } } @@ -481,7 +481,7 @@ function generateBlobSASQueryParameters20181109( getCanonicalName( sharedKeyCredential.accountName, blobSASSignatureValues.containerName, - blobSASSignatureValues.blobName + blobSASSignatureValues.blobName, ), blobSASSignatureValues.identifier, blobSASSignatureValues.ipRange ? ipRangeToString(blobSASSignatureValues.ipRange) : "", @@ -514,7 +514,7 @@ function generateBlobSASQueryParameters20181109( blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, - blobSASSignatureValues.contentType + blobSASSignatureValues.contentType, ); } @@ -536,7 +536,7 @@ function generateBlobSASQueryParameters20181109( */ function generateBlobSASQueryParameters20201206( blobSASSignatureValues: BlobSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential + sharedKeyCredential: StorageSharedKeyCredential, ): SASQueryParameters { blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues); @@ -545,7 +545,7 @@ function generateBlobSASQueryParameters20201206( !(blobSASSignatureValues.permissions && blobSASSignatureValues.expiresOn) ) { throw new RangeError( - "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided." + "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.", ); } @@ -566,11 +566,11 @@ function generateBlobSASQueryParameters20201206( if (blobSASSignatureValues.permissions) { if (blobSASSignatureValues.blobName) { verifiedPermissions = BlobSASPermissions.parse( - blobSASSignatureValues.permissions.toString() + blobSASSignatureValues.permissions.toString(), ).toString(); } else { verifiedPermissions = ContainerSASPermissions.parse( - blobSASSignatureValues.permissions.toString() + blobSASSignatureValues.permissions.toString(), ).toString(); } } @@ -587,7 +587,7 @@ function generateBlobSASQueryParameters20201206( getCanonicalName( sharedKeyCredential.accountName, blobSASSignatureValues.containerName, - blobSASSignatureValues.blobName + blobSASSignatureValues.blobName, ), blobSASSignatureValues.identifier, blobSASSignatureValues.ipRange ? ipRangeToString(blobSASSignatureValues.ipRange) : "", @@ -625,7 +625,7 @@ function generateBlobSASQueryParameters20201206( undefined, undefined, undefined, - blobSASSignatureValues.encryptionScope + blobSASSignatureValues.encryptionScope, ); } @@ -645,14 +645,14 @@ function generateBlobSASQueryParameters20201206( */ function generateBlobSASQueryParametersUDK20181109( blobSASSignatureValues: BlobSASSignatureValues, - userDelegationKeyCredential: UserDelegationKeyCredential + userDelegationKeyCredential: UserDelegationKeyCredential, ): SASQueryParameters { blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues); // Stored access policies are not supported for a user delegation SAS. if (!blobSASSignatureValues.permissions || !blobSASSignatureValues.expiresOn) { throw new RangeError( - "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS." + "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.", ); } @@ -673,11 +673,11 @@ function generateBlobSASQueryParametersUDK20181109( if (blobSASSignatureValues.permissions) { if (blobSASSignatureValues.blobName) { verifiedPermissions = BlobSASPermissions.parse( - blobSASSignatureValues.permissions.toString() + blobSASSignatureValues.permissions.toString(), ).toString(); } else { verifiedPermissions = ContainerSASPermissions.parse( - blobSASSignatureValues.permissions.toString() + blobSASSignatureValues.permissions.toString(), ).toString(); } } @@ -694,7 +694,7 @@ function generateBlobSASQueryParametersUDK20181109( getCanonicalName( userDelegationKeyCredential.accountName, blobSASSignatureValues.containerName, - blobSASSignatureValues.blobName + blobSASSignatureValues.blobName, ), userDelegationKeyCredential.userDelegationKey.signedObjectId, userDelegationKeyCredential.userDelegationKey.signedTenantId, @@ -736,7 +736,7 @@ function generateBlobSASQueryParametersUDK20181109( blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType, - userDelegationKeyCredential.userDelegationKey + userDelegationKeyCredential.userDelegationKey, ); } @@ -756,14 +756,14 @@ function generateBlobSASQueryParametersUDK20181109( */ function generateBlobSASQueryParametersUDK20200210( blobSASSignatureValues: BlobSASSignatureValues, - userDelegationKeyCredential: UserDelegationKeyCredential + userDelegationKeyCredential: UserDelegationKeyCredential, ): SASQueryParameters { blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues); // Stored access policies are not supported for a user delegation SAS. if (!blobSASSignatureValues.permissions || !blobSASSignatureValues.expiresOn) { throw new RangeError( - "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS." + "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.", ); } @@ -784,11 +784,11 @@ function generateBlobSASQueryParametersUDK20200210( if (blobSASSignatureValues.permissions) { if (blobSASSignatureValues.blobName) { verifiedPermissions = BlobSASPermissions.parse( - blobSASSignatureValues.permissions.toString() + blobSASSignatureValues.permissions.toString(), ).toString(); } else { verifiedPermissions = ContainerSASPermissions.parse( - blobSASSignatureValues.permissions.toString() + blobSASSignatureValues.permissions.toString(), ).toString(); } } @@ -805,7 +805,7 @@ function generateBlobSASQueryParametersUDK20200210( getCanonicalName( userDelegationKeyCredential.accountName, blobSASSignatureValues.containerName, - blobSASSignatureValues.blobName + blobSASSignatureValues.blobName, ), userDelegationKeyCredential.userDelegationKey.signedObjectId, userDelegationKeyCredential.userDelegationKey.signedTenantId, @@ -852,7 +852,7 @@ function generateBlobSASQueryParametersUDK20200210( blobSASSignatureValues.contentType, userDelegationKeyCredential.userDelegationKey, blobSASSignatureValues.preauthorizedAgentObjectId, - blobSASSignatureValues.correlationId + blobSASSignatureValues.correlationId, ); } @@ -872,14 +872,14 @@ function generateBlobSASQueryParametersUDK20200210( */ function generateBlobSASQueryParametersUDK20201206( blobSASSignatureValues: BlobSASSignatureValues, - userDelegationKeyCredential: UserDelegationKeyCredential + userDelegationKeyCredential: UserDelegationKeyCredential, ): SASQueryParameters { blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues); // Stored access policies are not supported for a user delegation SAS. if (!blobSASSignatureValues.permissions || !blobSASSignatureValues.expiresOn) { throw new RangeError( - "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS." + "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.", ); } @@ -900,11 +900,11 @@ function generateBlobSASQueryParametersUDK20201206( if (blobSASSignatureValues.permissions) { if (blobSASSignatureValues.blobName) { verifiedPermissions = BlobSASPermissions.parse( - blobSASSignatureValues.permissions.toString() + blobSASSignatureValues.permissions.toString(), ).toString(); } else { verifiedPermissions = ContainerSASPermissions.parse( - blobSASSignatureValues.permissions.toString() + blobSASSignatureValues.permissions.toString(), ).toString(); } } @@ -921,7 +921,7 @@ function generateBlobSASQueryParametersUDK20201206( getCanonicalName( userDelegationKeyCredential.accountName, blobSASSignatureValues.containerName, - blobSASSignatureValues.blobName + blobSASSignatureValues.blobName, ), userDelegationKeyCredential.userDelegationKey.signedObjectId, userDelegationKeyCredential.userDelegationKey.signedTenantId, @@ -970,7 +970,7 @@ function generateBlobSASQueryParametersUDK20201206( userDelegationKeyCredential.userDelegationKey, blobSASSignatureValues.preauthorizedAgentObjectId, blobSASSignatureValues.correlationId, - blobSASSignatureValues.encryptionScope + blobSASSignatureValues.encryptionScope, ); } @@ -985,7 +985,7 @@ function getCanonicalName(accountName: string, containerName: string, blobName?: } function SASSignatureValuesSanityCheckAndAutofill( - blobSASSignatureValues: BlobSASSignatureValues + blobSASSignatureValues: BlobSASSignatureValues, ): BlobSASSignatureValues { const version = blobSASSignatureValues.version ? blobSASSignatureValues.version : SERVICE_VERSION; if (blobSASSignatureValues.snapshotTime && version < "2018-11-09") { @@ -1055,7 +1055,7 @@ function SASSignatureValuesSanityCheckAndAutofill( (blobSASSignatureValues.preauthorizedAgentObjectId || blobSASSignatureValues.correlationId) ) { throw RangeError( - "'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'." + "'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.", ); } diff --git a/sdk/storage/storage-blob/src/sas/SASQueryParameters.ts b/sdk/storage/storage-blob/src/sas/SASQueryParameters.ts index d59d4ecb5fdb..97c01cd27728 100644 --- a/sdk/storage/storage-blob/src/sas/SASQueryParameters.ts +++ b/sdk/storage/storage-blob/src/sas/SASQueryParameters.ts @@ -321,7 +321,7 @@ export class SASQueryParameters { userDelegationKey?: UserDelegationKey, preauthorizedAgentObjectId?: string, correlationId?: string, - encryptionScope?: string + encryptionScope?: string, ); /** @@ -353,7 +353,7 @@ export class SASQueryParameters { userDelegationKey?: UserDelegationKey, preauthorizedAgentObjectId?: string, correlationId?: string, - encryptionScope?: string + encryptionScope?: string, ) { this.version = version; this.signature = signature; @@ -470,21 +470,21 @@ export class SASQueryParameters { this.tryAppendQueryParameter( queries, param, - this.startsOn ? truncatedISO8061Date(this.startsOn, false) : undefined + this.startsOn ? truncatedISO8061Date(this.startsOn, false) : undefined, ); break; case "se": this.tryAppendQueryParameter( queries, param, - this.expiresOn ? truncatedISO8061Date(this.expiresOn, false) : undefined + this.expiresOn ? truncatedISO8061Date(this.expiresOn, false) : undefined, ); break; case "sip": this.tryAppendQueryParameter( queries, param, - this.ipRange ? ipRangeToString(this.ipRange) : undefined + this.ipRange ? ipRangeToString(this.ipRange) : undefined, ); break; case "si": @@ -503,14 +503,14 @@ export class SASQueryParameters { this.tryAppendQueryParameter( queries, param, - this.signedStartsOn ? truncatedISO8061Date(this.signedStartsOn, false) : undefined + this.signedStartsOn ? truncatedISO8061Date(this.signedStartsOn, false) : undefined, ); break; case "ske": // Signed key expiry time this.tryAppendQueryParameter( queries, param, - this.signedExpiresOn ? truncatedISO8061Date(this.signedExpiresOn, false) : undefined + this.signedExpiresOn ? truncatedISO8061Date(this.signedExpiresOn, false) : undefined, ); break; case "sks": // Signed key service diff --git a/sdk/storage/storage-blob/src/utils/RetriableReadableStream.ts b/sdk/storage/storage-blob/src/utils/RetriableReadableStream.ts index 6abe971b660d..73392969bff7 100644 --- a/sdk/storage/storage-blob/src/utils/RetriableReadableStream.ts +++ b/sdk/storage/storage-blob/src/utils/RetriableReadableStream.ts @@ -66,7 +66,7 @@ export class RetriableReadableStream extends Readable { getter: ReadableStreamGetter, offset: number, count: number, - options: RetriableReadableStreamOptions = {} + options: RetriableReadableStreamOptions = {}, ) { super({ highWaterMark: options.highWaterMark }); this.getter = getter; @@ -163,8 +163,8 @@ export class RetriableReadableStream extends Readable { this.offset - 1 }, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${ this.maxRetryRequests - }` - ) + }`, + ), ); } } else { @@ -172,8 +172,8 @@ export class RetriableReadableStream extends Readable { new Error( `Data corruption failure: Received more data than original request, data needed offset is ${ this.end - }, received offset: ${this.offset - 1}` - ) + }, received offset: ${this.offset - 1}`, + ), ); } }; diff --git a/sdk/storage/storage-blob/src/utils/utils.common.ts b/sdk/storage/storage-blob/src/utils/utils.common.ts index 86e0bff72feb..9edd2b82d924 100644 --- a/sdk/storage/storage-blob/src/utils/utils.common.ts +++ b/sdk/storage/storage-blob/src/utils/utils.common.ts @@ -141,7 +141,7 @@ export function getValueInConnString( | "AccountKey" | "DefaultEndpointsProtocol" | "EndpointSuffix" - | "SharedAccessSignature" + | "SharedAccessSignature", ): string { const elements = connectionString.split(";"); for (const element of elements) { @@ -196,7 +196,7 @@ export function extractConnectionStringParts(connectionString: string): Connecti const protocol = defaultEndpointsProtocol!.toLowerCase(); if (protocol !== "https" && protocol !== "http") { throw new Error( - "Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'" + "Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'", ); } @@ -506,7 +506,7 @@ export function generateBlockID(blockIDPrefix: string, blockIndex: number): stri export async function delay( timeInMs: number, aborter?: AbortSignalLike, - abortError?: Error + abortError?: Error, ): Promise { return new Promise((resolve, reject) => { /* eslint-disable-next-line prefer-const */ @@ -544,7 +544,7 @@ export async function delay( export function padStart( currentString: string, targetLength: number, - padString: string = " " + padString: string = " ", ): string { // @ts-expect-error: TS doesn't know this code needs to run downlevel sometimes if (String.prototype.padStart) { @@ -632,7 +632,7 @@ export function isIpEndpointStyle(parsedUrl: URL): boolean { // For valid host please refer to https://man7.org/linux/man-pages/man7/hostname.7.html. return ( /^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test( - host + host, ) || (Boolean(parsedUrl.port) && PathStylePorts.includes(parsedUrl.port)) ); @@ -712,7 +712,7 @@ export function toQuerySerialization( | BlobQueryJsonTextConfiguration | BlobQueryCsvTextConfiguration | BlobQueryArrowConfiguration - | BlobQueryParquetConfiguration + | BlobQueryParquetConfiguration, ): QuerySerialization | undefined { if (textConfiguration === undefined) { return undefined; @@ -763,7 +763,7 @@ export function toQuerySerialization( } export function parseObjectReplicationRecord( - objectReplicationRecord?: Record + objectReplicationRecord?: Record, ): ObjectReplicationPolicy[] | undefined { if (!objectReplicationRecord) { return undefined; @@ -811,7 +811,7 @@ export function attachCredential(thing: T, credential: TokenCredential): T { } export function httpAuthorizationToString( - httpAuthorization?: HttpAuthorization + httpAuthorization?: HttpAuthorization, ): string | undefined { return httpAuthorization ? httpAuthorization.scheme + " " + httpAuthorization.value : undefined; } @@ -825,7 +825,7 @@ export function BlobNameToString(name: BlobName): string { } export function ConvertInternalResponseOfListBlobFlat( - internalResponse: ListBlobsFlatSegmentResponse + internalResponse: ListBlobsFlatSegmentResponse, ): ListBlobsFlatSegmentResponseModel { return { ...internalResponse, @@ -842,7 +842,7 @@ export function ConvertInternalResponseOfListBlobFlat( } export function ConvertInternalResponseOfListBlobHierarchy( - internalResponse: ListBlobsHierarchySegmentResponse + internalResponse: ListBlobsHierarchySegmentResponse, ): ListBlobsHierarchySegmentResponseModel { return { ...internalResponse, @@ -866,7 +866,7 @@ export function ConvertInternalResponseOfListBlobHierarchy( } export function* ExtractPageRangeInfoItems( - getPageRangesSegment: PageBlobGetPageRangesDiffResponseModel + getPageRangesSegment: PageBlobGetPageRangesDiffResponseModel, ): IterableIterator { let pageRange: PageRange[] = []; let clearRange: ClearRange[] = []; @@ -1000,8 +1000,8 @@ export type WithResponse = T & (Body extends object ? ResponseWithBody : Headers extends object - ? ResponseWithHeaders - : ResponseLike); + ? ResponseWithHeaders + : ResponseLike); /** * A typesafe helper for ensuring that a given response object has @@ -1010,7 +1010,7 @@ export type WithResponse = T & * @returns The same object, but with known _response property */ export function assertResponse( - response: T + response: T, ): WithResponse { if (`_response` in response) { return response as WithResponse; diff --git a/sdk/storage/storage-blob/src/utils/utils.node.ts b/sdk/storage/storage-blob/src/utils/utils.node.ts index 48e979d6ff15..e8418806a298 100644 --- a/sdk/storage/storage-blob/src/utils/utils.node.ts +++ b/sdk/storage/storage-blob/src/utils/utils.node.ts @@ -19,7 +19,7 @@ export async function streamToBuffer( buffer: Buffer, offset: number, end: number, - encoding?: BufferEncoding + encoding?: BufferEncoding, ): Promise { let pos = 0; // Position in stream const count = end - offset; // Total amount of data needed in stream @@ -27,7 +27,7 @@ export async function streamToBuffer( return new Promise((resolve, reject) => { const timeout = setTimeout( () => reject(new Error(`The operation cannot be completed in timeout.`)), - REQUEST_TIMEOUT + REQUEST_TIMEOUT, ); stream.on("readable", () => { @@ -57,8 +57,8 @@ export async function streamToBuffer( if (pos < count) { reject( new Error( - `Stream drains before getting enough data needed. Data read: ${pos}, data need: ${count}` - ) + `Stream drains before getting enough data needed. Data read: ${pos}, data need: ${count}`, + ), ); } resolve(); @@ -83,7 +83,7 @@ export async function streamToBuffer( export async function streamToBuffer2( stream: NodeJS.ReadableStream, buffer: Buffer, - encoding?: BufferEncoding + encoding?: BufferEncoding, ): Promise { let pos = 0; // Position in stream const bufferSize = buffer.length; @@ -124,7 +124,7 @@ export async function streamToBuffer2( */ export async function streamToBuffer3( readableStream: NodeJS.ReadableStream, - encoding?: BufferEncoding + encoding?: BufferEncoding, ): Promise { return new Promise((resolve, reject) => { const chunks: Buffer[] = []; @@ -148,7 +148,7 @@ export async function streamToBuffer3( */ export async function readStreamToLocalFile( rs: NodeJS.ReadableStream, - file: string + file: string, ): Promise { return new Promise((resolve, reject) => { const ws = fs.createWriteStream(file); diff --git a/sdk/storage/storage-blob/test/aborter.spec.ts b/sdk/storage/storage-blob/test/aborter.spec.ts index 2c10f6256b0c..cde99a4646c8 100644 --- a/sdk/storage/storage-blob/test/aborter.spec.ts +++ b/sdk/storage/storage-blob/test/aborter.spec.ts @@ -64,7 +64,7 @@ describe("Aborter", () => { const aborter = new AbortController(); const childAborter = new AbortController( aborter.signal, - AbortController.timeout(10 * 60 * 1000) + AbortController.timeout(10 * 60 * 1000), ); const response = containerClient.create({ abortSignal: childAborter.signal, diff --git a/sdk/storage/storage-blob/test/appendblobclient.spec.ts b/sdk/storage/storage-blob/test/appendblobclient.spec.ts index bbb572dd808d..e25390a2f2aa 100644 --- a/sdk/storage/storage-blob/test/appendblobclient.spec.ts +++ b/sdk/storage/storage-blob/test/appendblobclient.spec.ts @@ -30,7 +30,7 @@ describe("AppendBlobClient", () => { // make sure we add the sanitizers on playback for SAS strings await recorder.addSanitizers( { uriSanitizers, removeHeaderSanitizer: { headersForRemoval: ["x-ms-copy-source"] } }, - ["record", "playback"] + ["record", "playback"], ); const blobServiceClient = getBSU(recorder); containerName = recorder.variable("container", getUniqueName("container")); @@ -115,7 +115,7 @@ describe("AppendBlobClient", () => { const newClient = new AppendBlobClient( getSASConnectionStringFromEnvironment(recorder), containerName, - blobName + blobName, ); configureBlobStorageClient(recorder, newClient); @@ -131,7 +131,7 @@ describe("AppendBlobClient", () => { assert.equal( "Expecting non-empty strings for containerName and blobName parameters", error.message, - "Error message is different than expected." + "Error message is different than expected.", ); } }); @@ -145,7 +145,7 @@ describe("AppendBlobClient", () => { assert.equal( "Expecting non-empty strings for containerName and blobName parameters", error.message, - "Error message is different than expected." + "Error message is different than expected.", ); } }); @@ -163,7 +163,7 @@ describe("AppendBlobClient", () => { if ( err instanceof Error && err.message.startsWith( - "The CRC64 value specified in the request did not match with the CRC64 value calculated by the server." + "The CRC64 value specified in the request did not match with the CRC64 value calculated by the server.", ) ) { exceptionCaught = true; @@ -172,7 +172,7 @@ describe("AppendBlobClient", () => { assert.equal( err.details.errorCode, "Crc64Mismatch", - "Error does not contain details property" + "Error does not contain details property", ); } @@ -199,7 +199,7 @@ describe("AppendBlobClient", () => { await appendBlobClient.seal(); let destBlobClient = containerClient.getAppendBlobClient( - recorder.variable("copiedblob1", getUniqueName("copiedblob1")) + recorder.variable("copiedblob1", getUniqueName("copiedblob1")), ); await ( await destBlobClient.beginCopyFromURL(appendBlobClient.url, { @@ -210,14 +210,14 @@ describe("AppendBlobClient", () => { assert.deepStrictEqual(properties.isSealed, undefined); destBlobClient = containerClient.getAppendBlobClient( - recorder.variable("copiedblob2", getUniqueName("copiedblob2")) + recorder.variable("copiedblob2", getUniqueName("copiedblob2")), ); await (await destBlobClient.beginCopyFromURL(appendBlobClient.url, {})).pollUntilDone(); properties = await destBlobClient.getProperties(); assert.deepStrictEqual(properties.isSealed, true); destBlobClient = containerClient.getAppendBlobClient( - recorder.variable("copiedblob3", getUniqueName("copiedblob3")) + recorder.variable("copiedblob3", getUniqueName("copiedblob3")), ); await ( await destBlobClient.beginCopyFromURL(appendBlobClient.url, { diff --git a/sdk/storage/storage-blob/test/blobbatch.spec.ts b/sdk/storage/storage-blob/test/blobbatch.spec.ts index ffe4e4342d05..6645fc7b1cc3 100644 --- a/sdk/storage/storage-blob/test/blobbatch.spec.ts +++ b/sdk/storage/storage-blob/test/blobbatch.spec.ts @@ -432,10 +432,10 @@ describe("BlobBatch", () => { const resp = await blockBlobClients[i].setMetadata(metadata); assert.isDefined( resp.versionId, - "expected versionId; check if 'Enable versioning for blobs' is enabled for your storage account " + "expected versionId; check if 'Enable versioning for blobs' is enabled for your storage account ", ); blockBlobClientsWithVersion[i] = blockBlobClients[i].withVersion( - resp.versionId! + resp.versionId!, ) as BlockBlobClient; } @@ -479,7 +479,7 @@ describe("BlobBatch", () => { for (let i = 0; i < blockBlobClients.length; i++) { const resp = await blockBlobClients[i].createSnapshot(); blockBlobClientsWithSnapshot[i] = blockBlobClients[i].withSnapshot( - resp.snapshot! + resp.snapshot!, ) as BlockBlobClient; } @@ -526,7 +526,7 @@ describe("BlobBatch", () => { // remove query part for this testing for ease blockBlobClient1WithoutSAS = blockBlobClients[1].url.substring( 0, - blockBlobClients[1].url.indexOf("?") + blockBlobClients[1].url.indexOf("?"), ); } @@ -542,7 +542,7 @@ describe("BlobBatch", () => { await batchSetTierRequest.setBlobAccessTier( blockBlobClient1WithoutSAS, tokenCredential, - "Cool" + "Cool", ); // Submit batch request and verify response. @@ -639,7 +639,7 @@ describe("BlobBatch", () => { const invalidCredServiceClient = new BlobServiceClient( blobServiceClient.url, - newPipeline(new SimpleTokenCredential("invalidtoken")) + newPipeline(new SimpleTokenCredential("invalidtoken")), ).getBlobBatchClient(); let exceptionCaught = false; diff --git a/sdk/storage/storage-blob/test/blobclient.spec.ts b/sdk/storage/storage-blob/test/blobclient.spec.ts index 9fa92a82e95e..32fbe9e58fda 100644 --- a/sdk/storage/storage-blob/test/blobclient.spec.ts +++ b/sdk/storage/storage-blob/test/blobclient.spec.ts @@ -53,7 +53,7 @@ describe("BlobClient", () => { uriSanitizers, removeHeaderSanitizer: { headersForRemoval: ["x-ms-copy-source", "x-ms-encryption-key"] }, }, - ["record", "playback"] + ["record", "playback"], ); blobServiceClient = getBSU(recorder); containerName = recorder.variable("container", getUniqueName("container")); @@ -74,7 +74,7 @@ describe("BlobClient", () => { it("upload blob with cold tier should work", async function () { const newBlobClient = containerClient.getBlockBlobClient( - recorder.variable("coldtierblob", getUniqueName("coldtierblob")) + recorder.variable("coldtierblob", getUniqueName("coldtierblob")), ); await newBlobClient.upload(content, content.length, { @@ -110,7 +110,7 @@ describe("BlobClient", () => { try { await blockBlobClient.setTags(tags1); assert.fail( - "Should have failed when setting tags without the right lease condition of a leased blob" + "Should have failed when setting tags without the right lease condition of a leased blob", ); } catch (err: any) { assert.deepStrictEqual(err.code, "LeaseIdMissing", err.msg); @@ -120,7 +120,7 @@ describe("BlobClient", () => { const newGuid = "3c7e72ebb4304526bc53d8ecef03798f"; await blockBlobClient.getTags({ conditions: { leaseId: newGuid } }); assert.fail( - "Should have failed when setting tags without the right lease condition of a leased blob" + "Should have failed when setting tags without the right lease condition of a leased blob", ); } catch (err: any) { assert.deepStrictEqual(err.code, "LeaseIdMismatchWithBlobOperation"); @@ -408,7 +408,7 @@ describe("BlobClient", () => { assert.deepStrictEqual( result3.segment.blobItems![0].properties, - result3.segment.blobItems![1].properties + result3.segment.blobItems![1].properties, ); assert.ok(result3.segment.blobItems![0].snapshot || result3.segment.blobItems![1].snapshot); }); @@ -426,7 +426,7 @@ describe("BlobClient", () => { properties = await blobServiceClient.getProperties(); assert.ok( properties.deleteRetentionPolicy!.enabled, - "deleteRetentionPolicy should be enabled." + "deleteRetentionPolicy should be enabled.", ); } @@ -459,18 +459,18 @@ describe("BlobClient", () => { assert.ok( result.segment.blobItems, - "Expect non empty result from list blobs({ includeDeleted: true, includeVersions: true }) with page size of 1." + "Expect non empty result from list blobs({ includeDeleted: true, includeVersions: true }) with page size of 1.", ); assert.equal( result.segment.blobItems.length, 1, - `Expect result.segment.blobItems.length === 1 but got ${result.segment.blobItems.length}.` + `Expect result.segment.blobItems.length === 1 but got ${result.segment.blobItems.length}.`, ); assert.ok( result.segment.blobItems![0], - "Expect a valid element in result array from list blobs({ includeDeleted: true }) with page size of 1." + "Expect a valid element in result array from list blobs({ includeDeleted: true }) with page size of 1.", ); await blobClient.undelete(); @@ -503,13 +503,13 @@ describe("BlobClient", () => { assert.ok(result.segment.blobItems, "Expect non empty result from list blobs()."); assert.ok( !result.segment.blobItems![0].deleted, - "Expect that the blob is NOT marked for deletion" + "Expect that the blob is NOT marked for deletion", ); }); it("abortCopyFromClient should failed for a completed copy operation", async function () { const newBlobClient = containerClient.getBlobClient( - recorder.variable("copiedblob", getUniqueName("copiedblob")) + recorder.variable("copiedblob", getUniqueName("copiedblob")), ); const result = await (await newBlobClient.beginCopyFromURL(blobClient.url)).pollUntilDone(); assert.ok(result.copyId); @@ -518,7 +518,7 @@ describe("BlobClient", () => { try { await newBlobClient.abortCopyFromURL(result.copyId!); assert.fail( - "AbortCopyFromClient should be failed and throw exception for an completed copy operation." + "AbortCopyFromClient should be failed and throw exception for an completed copy operation.", ); } catch (err: any) { assert.ok((err.details.errorCode = "NoPendingCopyOperation")); @@ -527,7 +527,7 @@ describe("BlobClient", () => { it("sync copy with cold tier", async function () { const newBlobClient = containerClient.getBlockBlobClient( - recorder.variable("copiedblob", getUniqueName("copiedblob")) + recorder.variable("copiedblob", getUniqueName("copiedblob")), ); await newBlobClient.syncCopyFromURL("https://azure.github.io/azure-sdk-for-js/index.html", { @@ -570,7 +570,7 @@ describe("BlobClient", () => { if (blobItem.properties.archiveStatus) { assert.equal( blobItem.properties.archiveStatus.toLowerCase(), - "rehydrate-pending-to-cold" + "rehydrate-pending-to-cold", ); } } @@ -625,7 +625,7 @@ describe("BlobClient", () => { const newClient = new BlobClient( getSASConnectionStringFromEnvironment(recorder), containerName, - blobName + blobName, ); configureBlobStorageClient(recorder, newClient); const metadata = { @@ -646,7 +646,7 @@ describe("BlobClient", () => { assert.equal( "Expecting non-empty strings for containerName and blobName parameters", error.message, - "Error message is different than expected." + "Error message is different than expected.", ); } }); @@ -660,7 +660,7 @@ describe("BlobClient", () => { assert.equal( "Expecting non-empty strings for containerName and blobName parameters", error.message, - "Error message is different than expected." + "Error message is different than expected.", ); } }); @@ -748,7 +748,7 @@ describe("BlobClient", () => { this.skip(); } const newBlobURL = containerClient.getBlobClient( - recorder.variable("copiedblobrehydrate", getUniqueName("copiedblobrehydrate")) + recorder.variable("copiedblobrehydrate", getUniqueName("copiedblobrehydrate")), ); const initialTier = BlockBlobTier.Archive; const result = await ( @@ -781,7 +781,7 @@ describe("BlobClient", () => { assert.strictEqual( sanitizedActualUrl.toString(), sanitizedExpectedUrl.toString(), - "copySource does not match original source" + "copySource does not match original source", ); } @@ -792,7 +792,7 @@ describe("BlobClient", () => { it("beginCopyFromURL with cold tier", async function () { const newBlobURL = containerClient.getBlobClient( - recorder.variable("copiedblob", getUniqueName("copiedblob")) + recorder.variable("copiedblob", getUniqueName("copiedblob")), ); const newTier = BlockBlobTier.Cold; const result = await ( @@ -822,7 +822,7 @@ describe("BlobClient", () => { it("download with default parameters and tracing", async function (this: Context) { await assert.supportsTracing( (options) => blobClient.download(undefined, undefined, options), - ["BlobClient-download"] + ["BlobClient-download"], ); }); @@ -833,7 +833,7 @@ describe("BlobClient", () => { it("exists returns false on non-existing blob", async () => { const newBlobClient = containerClient.getBlobClient( - recorder.variable("newblob", getUniqueName("newblob")) + recorder.variable("newblob", getUniqueName("newblob")), ); const result = await newBlobClient.exists(); assert.ok(result === false, "exists() should return true for an existing blob"); @@ -908,7 +908,7 @@ describe("BlobClient", () => { if (isBrowser()) { const anonymousBlobServiceClient = new BlobServiceClient( - `https://${blobServiceClient.accountName}.blob.core.windows.net/` + `https://${blobServiceClient.accountName}.blob.core.windows.net/`, ); anonymousBlobClient = anonymousBlobServiceClient .getContainerClient(containerName) @@ -1029,7 +1029,7 @@ describe("BlobClient", () => { await throwExpectedError( blobClient.getTags({ conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); }); @@ -1041,7 +1041,7 @@ describe("BlobClient", () => { await throwExpectedError( blobClient.setTags(tags, { conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); }); @@ -1059,7 +1059,7 @@ describe("BlobClient", () => { const newGuid = "3c7e72ebb4304526bc53d8ecef03798f"; await throwExpectedError( leaseClient.changeLease(newGuid, { conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); }); @@ -1074,7 +1074,7 @@ describe("BlobClient", () => { it("async copy's destination blob", async () => { const newBlobClient = containerClient.getBlockBlobClient( - recorder.variable("copiedblob", getUniqueName("copiedblob")) + recorder.variable("copiedblob", getUniqueName("copiedblob")), ); const tags2 = { tag: "val", @@ -1083,7 +1083,7 @@ describe("BlobClient", () => { await throwExpectedError( newBlobClient.beginCopyFromURL(blobClient.url, { conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await newBlobClient.beginCopyFromURL(blobClient.url, { @@ -1093,12 +1093,12 @@ describe("BlobClient", () => { it("async copy's source blob", async () => { const newBlobClient = containerClient.getBlockBlobClient( - recorder.variable("copiedblob", getUniqueName("copiedblob")) + recorder.variable("copiedblob", getUniqueName("copiedblob")), ); await throwExpectedError( newBlobClient.beginCopyFromURL(blobClient.url, { sourceConditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await newBlobClient.beginCopyFromURL(blobClient.url, { @@ -1108,7 +1108,7 @@ describe("BlobClient", () => { it("sync copy's destination blob", async () => { const newBlobClient = containerClient.getBlockBlobClient( - recorder.variable("copiedblob", getUniqueName("copiedblob")) + recorder.variable("copiedblob", getUniqueName("copiedblob")), ); const tags2 = { tag: "val", @@ -1118,7 +1118,7 @@ describe("BlobClient", () => { newBlobClient.syncCopyFromURL("https://azure.github.io/azure-sdk-for-js/index.html", { conditions: tagConditionUnmet, }), - "ConditionNotMet" + "ConditionNotMet", ); await newBlobClient.syncCopyFromURL("https://azure.github.io/azure-sdk-for-js/index.html", { @@ -1129,7 +1129,7 @@ describe("BlobClient", () => { it("download", async function () { await throwExpectedError( blobClient.download(undefined, undefined, { conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await blobClient.download(undefined, undefined, { conditions: tagConditionMet }); }); @@ -1137,7 +1137,7 @@ describe("BlobClient", () => { it("getProperties", async function () { await throwExpectedError( blobClient.getProperties({ conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await blobClient.getProperties({ conditions: tagConditionMet }); }); @@ -1145,7 +1145,7 @@ describe("BlobClient", () => { it("delete", async function () { await throwExpectedError( blobClient.delete({ conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await blobClient.delete({ conditions: tagConditionMet }); }); @@ -1153,7 +1153,7 @@ describe("BlobClient", () => { it("setHTTPHeaders", async function () { await throwExpectedError( blobClient.setHTTPHeaders({}, { conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await blobClient.setHTTPHeaders({}, { conditions: tagConditionMet }); }); @@ -1165,7 +1165,7 @@ describe("BlobClient", () => { }; await throwExpectedError( blobClient.setMetadata(metadata, { conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await blobClient.setMetadata(metadata, { conditions: tagConditionMet }); }); @@ -1173,7 +1173,7 @@ describe("BlobClient", () => { it("createSnapshot", async function () { await throwExpectedError( blobClient.createSnapshot({ conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await blobClient.createSnapshot({ conditions: tagConditionMet }); }); @@ -1181,31 +1181,31 @@ describe("BlobClient", () => { it("setAccessTier", async function () { await throwExpectedError( blobClient.setAccessTier("Hot", { conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await blobClient.setAccessTier("Hot", { conditions: tagConditionMet }); }); it("AppendBlobClient.create", async () => { const newBlobClient = containerClient.getAppendBlobClient( - recorder.variable("appendBlob", getUniqueName("appendBlob")) + recorder.variable("appendBlob", getUniqueName("appendBlob")), ); await newBlobClient.create({ tags }); await throwExpectedError( newBlobClient.create({ conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await newBlobClient.create({ conditions: tagConditionMet }); }); it("AppendBlobClient.appendBlock", async () => { const newBlobClient = containerClient.getAppendBlobClient( - recorder.variable("appendBlob", getUniqueName("appendBlob")) + recorder.variable("appendBlob", getUniqueName("appendBlob")), ); await newBlobClient.create({ tags }); await throwExpectedError( newBlobClient.appendBlock(content, content.length, { conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await newBlobClient.appendBlock(content, content.length, { conditions: tagConditionMet }); }); @@ -1213,7 +1213,7 @@ describe("BlobClient", () => { it("BlockBlobClient.upload", async () => { await throwExpectedError( blockBlobClient.upload(content, content.length, { conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await blockBlobClient.upload(content, content.length, { conditions: tagConditionMet }); }); @@ -1227,7 +1227,7 @@ describe("BlobClient", () => { blockBlobClient.commitBlockList([base64encode("1"), base64encode("2")], { conditions: tagConditionUnmet, }), - "ConditionNotMet" + "ConditionNotMet", ); await blockBlobClient.commitBlockList([base64encode("1"), base64encode("2")], { conditions: tagConditionMet, @@ -1242,50 +1242,50 @@ describe("BlobClient", () => { await throwExpectedError( blockBlobClient.getBlockList("all", { conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await blockBlobClient.getBlockList("all", { conditions: tagConditionMet }); }); it("PageBlobClient.create", async () => { const newBlobClient = containerClient.getPageBlobClient( - recorder.variable("pageBlob", getUniqueName("pageBlob")) + recorder.variable("pageBlob", getUniqueName("pageBlob")), ); await newBlobClient.create(512, { tags }); await throwExpectedError( newBlobClient.create(512, { conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await newBlobClient.create(512, { conditions: tagConditionMet }); }); it("PageBlobClient.uploadPages", async () => { const newBlobClient = containerClient.getPageBlobClient( - recorder.variable("pageBlob", getUniqueName("pageBlob")) + recorder.variable("pageBlob", getUniqueName("pageBlob")), ); await newBlobClient.create(512, { tags }); await throwExpectedError( newBlobClient.uploadPages("a".repeat(512), 0, 512, { conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await newBlobClient.uploadPages("a".repeat(512), 0, 512, { conditions: tagConditionMet }); }); it("PageBlobClient.clearPages", async () => { const newBlobClient = containerClient.getPageBlobClient( - recorder.variable("pageBlob", getUniqueName("pageBlob")) + recorder.variable("pageBlob", getUniqueName("pageBlob")), ); await newBlobClient.create(512, { tags }); await throwExpectedError( newBlobClient.clearPages(0, 512, { conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await newBlobClient.clearPages(0, 512, { conditions: tagConditionMet }); }); it("PageBlobClient.listPageRanges", async () => { const newBlobClient = containerClient.getPageBlobClient( - recorder.variable("pageBlob", getUniqueName("pageBlob")) + recorder.variable("pageBlob", getUniqueName("pageBlob")), ); await newBlobClient.create(512, { tags }); await throwExpectedError( @@ -1295,7 +1295,7 @@ describe("BlobClient", () => { }) .byPage() .next(), - "ConditionNotMet" + "ConditionNotMet", ); await newBlobClient .listPageRanges(0, 512, { @@ -1307,7 +1307,7 @@ describe("BlobClient", () => { it("PageBlobClient.listPageRangesDiff", async () => { const newBlobClient = containerClient.getPageBlobClient( - recorder.variable("pageBlob", getUniqueName("pageBlob")) + recorder.variable("pageBlob", getUniqueName("pageBlob")), ); await newBlobClient.create(512, { tags }); const snapshotResult = await newBlobClient.createSnapshot(); @@ -1321,7 +1321,7 @@ describe("BlobClient", () => { }) .byPage() .next(), - "ConditionNotMet" + "ConditionNotMet", ); await newBlobClient .listPageRangesDiff(0, 512, snapshotResult.snapshot!, { @@ -1333,19 +1333,19 @@ describe("BlobClient", () => { it("PageBlobClient.getPageRanges", async () => { const newBlobClient = containerClient.getPageBlobClient( - recorder.variable("pageBlob", getUniqueName("pageBlob")) + recorder.variable("pageBlob", getUniqueName("pageBlob")), ); await newBlobClient.create(512, { tags }); await throwExpectedError( newBlobClient.getPageRanges(0, 512, { conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await newBlobClient.getPageRanges(0, 512, { conditions: tagConditionMet }); }); it("PageBlobClient.getPageRangesDiff", async () => { const newBlobClient = containerClient.getPageBlobClient( - recorder.variable("pageBlob", getUniqueName("pageBlob")) + recorder.variable("pageBlob", getUniqueName("pageBlob")), ); await newBlobClient.create(512, { tags }); const snapshotResult = await newBlobClient.createSnapshot(); @@ -1356,7 +1356,7 @@ describe("BlobClient", () => { newBlobClient.getPageRangesDiff(0, 512, snapshotResult.snapshot!, { conditions: tagConditionUnmet, }), - "ConditionNotMet" + "ConditionNotMet", ); await newBlobClient.getPageRangesDiff(0, 512, snapshotResult.snapshot!, { conditions: tagConditionMet, @@ -1365,26 +1365,26 @@ describe("BlobClient", () => { it("PageBlobClient.resize", async () => { const newBlobClient = containerClient.getPageBlobClient( - recorder.variable("pageBlob", getUniqueName("pageBlob")) + recorder.variable("pageBlob", getUniqueName("pageBlob")), ); await newBlobClient.create(512, { tags }); await throwExpectedError( newBlobClient.resize(1024, { conditions: tagConditionUnmet }), - "ConditionNotMet" + "ConditionNotMet", ); await newBlobClient.resize(1024, { conditions: tagConditionMet }); }); it("PageBlobClient.updateSequenceNumber", async () => { const newBlobClient = containerClient.getPageBlobClient( - recorder.variable("pageBlob", getUniqueName("pageBlob")) + recorder.variable("pageBlob", getUniqueName("pageBlob")), ); await newBlobClient.create(512, { tags }); await throwExpectedError( newBlobClient.updateSequenceNumber("increment", undefined, { conditions: tagConditionUnmet, }), - "ConditionNotMet" + "ConditionNotMet", ); await newBlobClient.updateSequenceNumber("increment", undefined, { conditions: tagConditionMet, @@ -1403,19 +1403,19 @@ describe("BlobClient - Verify Name Properties", () => { assert.equal( newClient.containerName, containerName, - "Container name is not the same as the one provided." + "Container name is not the same as the one provided.", ); assert.equal(newClient.name, blobName, "Blob name is not the same as the one provided."); assert.equal( newClient.accountName, accountName, - "Account name is not the same as the one provided." + "Account name is not the same as the one provided.", ); } it("verify endpoint from the portal", async function () { verifyNameProperties( - `https://${accountName}.blob.core.windows.net/${containerName}/${blobName}` + `https://${accountName}.blob.core.windows.net/${containerName}/${blobName}`, ); }); @@ -1425,7 +1425,7 @@ describe("BlobClient - Verify Name Properties", () => { it("verify IPv6 host address as Endpoint", async function () { verifyNameProperties( - `https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/${accountName}/${containerName}/${blobName}` + `https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/${accountName}/${containerName}/${blobName}`, ); }); @@ -1439,7 +1439,7 @@ describe("BlobClient - Verify Name Properties", () => { assert.equal( newClient.containerName, containerName, - "Container name is not the same as the one provided." + "Container name is not the same as the one provided.", ); assert.equal(newClient.name, blobName, "Blob name is not the same as the one provided."); }); @@ -1503,7 +1503,7 @@ describe("BlobClient - Object Replication", () => { const getRes = await srcBlobClient.getProperties(); assert.deepStrictEqual( getRes.objectReplicationSourceProperties, - expectedObjectReplicateSourceProperties as ObjectReplicationPolicy[] | undefined + expectedObjectReplicateSourceProperties as ObjectReplicationPolicy[] | undefined, ); assert.equal(getRes.objectReplicationDestinationPolicyId, undefined); }); @@ -1513,7 +1513,7 @@ describe("BlobClient - Object Replication", () => { assert.equal(getRes.objectReplicationSourceProperties, undefined); assert.equal( getRes.objectReplicationDestinationPolicyId, - "d685bc41-c8ab-4ea5-889c-2503f02954d8" + "d685bc41-c8ab-4ea5-889c-2503f02954d8", ); }); @@ -1522,7 +1522,7 @@ describe("BlobClient - Object Replication", () => { if (blobItem.name === blobName) { assert.deepStrictEqual( blobItem.objectReplicationSourceProperties, - expectedObjectReplicateSourceProperties as ObjectReplicationPolicy[] | undefined + expectedObjectReplicateSourceProperties as ObjectReplicationPolicy[] | undefined, ); } } @@ -1539,13 +1539,13 @@ describe("BlobClient - Object Replication", () => { assert.equal(srcRes.objectReplicationDestinationPolicyId, undefined); assert.deepStrictEqual( srcRes.objectReplicationSourceProperties, - expectedObjectReplicateSourceProperties as ObjectReplicationPolicy[] | undefined + expectedObjectReplicateSourceProperties as ObjectReplicationPolicy[] | undefined, ); const destRes = await destBlobClient.download(); assert.equal( destRes.objectReplicationDestinationPolicyId, - "d685bc41-c8ab-4ea5-889c-2503f02954d8" + "d685bc41-c8ab-4ea5-889c-2503f02954d8", ); assert.equal(destRes.objectReplicationSourceProperties, undefined); }); @@ -1556,24 +1556,24 @@ describe("BlobClient - Object Replication", () => { } const srcDownloadedFilePath = recorder.variable( "srcdownloadedfile", - getUniqueName("srcdownloadedfile") + getUniqueName("srcdownloadedfile"), ); const srcRes = await srcBlobClient.downloadToFile(srcDownloadedFilePath); assert.equal(srcRes.objectReplicationDestinationPolicyId, undefined); assert.deepStrictEqual( srcRes.objectReplicationSourceProperties, - expectedObjectReplicateSourceProperties as ObjectReplicationPolicy[] | undefined + expectedObjectReplicateSourceProperties as ObjectReplicationPolicy[] | undefined, ); fs.unlinkSync(srcDownloadedFilePath); const dstDownloadedFilePath = recorder.variable( "dstdownloadedfile", - getUniqueName("dstdownloadedfile") + getUniqueName("dstdownloadedfile"), ); const destRes = await destBlobClient.downloadToFile(dstDownloadedFilePath); assert.equal( destRes.objectReplicationDestinationPolicyId, - "d685bc41-c8ab-4ea5-889c-2503f02954d8" + "d685bc41-c8ab-4ea5-889c-2503f02954d8", ); assert.equal(destRes.objectReplicationSourceProperties, undefined); fs.unlinkSync(dstDownloadedFilePath); @@ -1599,7 +1599,7 @@ describe("BlobClient - ImmutabilityPolicy", () => { { uriSanitizers, }, - ["record", "playback"] + ["record", "playback"], ); blobServiceClient = getBSU(recorder); @@ -1617,7 +1617,7 @@ describe("BlobClient - ImmutabilityPolicy", () => { for (let i = 0; i < listResult.segment.blobItems!.length; ++i) { const deleteBlobClient = containerClient.getBlobClient( - listResult.segment.blobItems[i].name + listResult.segment.blobItems[i].name, ); await deleteBlobClient.setLegalHold(false); @@ -1646,7 +1646,7 @@ describe("BlobClient - ImmutabilityPolicy", () => { assert.ok(result.immutabilityPolicyExpiry); assert.equal( result.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); const propertiesResult = await blobClient.getProperties(); @@ -1654,7 +1654,7 @@ describe("BlobClient - ImmutabilityPolicy", () => { assert.ok(propertiesResult.immutabilityPolicyExpiresOn); assert.equal( propertiesResult.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); const listResult = ( @@ -1673,7 +1673,7 @@ describe("BlobClient - ImmutabilityPolicy", () => { assert.ok(downloadResult.immutabilityPolicyExpiresOn); assert.equal( downloadResult.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); }); @@ -1695,13 +1695,13 @@ describe("BlobClient - ImmutabilityPolicy", () => { modifiedAccessCondition: { ifModifiedSince: minutesBefore, }, - } + }, ); assert.ok(result.immutabilityPolicyExpiry); assert.equal( result.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); const propertiesResult = await blobClient.getProperties(); @@ -1709,7 +1709,7 @@ describe("BlobClient - ImmutabilityPolicy", () => { assert.ok(propertiesResult.immutabilityPolicyExpiresOn); assert.equal( propertiesResult.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); const listResult = ( @@ -1744,7 +1744,7 @@ describe("BlobClient - ImmutabilityPolicy", () => { assert.ok(result.immutabilityPolicyExpiry); assert.equal( result.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); let setLegalHoldResult = await blobClient.setLegalHold(true); @@ -1769,7 +1769,7 @@ describe("BlobClient - ImmutabilityPolicy", () => { assert.ok(downloadResult.immutabilityPolicyExpiresOn); assert.equal( downloadResult.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); assert.equal(downloadResult.legalHold, true); @@ -1796,7 +1796,7 @@ describe("BlobClient - ImmutabilityPolicy", () => { } assert.ok( caughtException, - "Should catch exception when setImmutabilityPolicy against a non-exist blob" + "Should catch exception when setImmutabilityPolicy against a non-exist blob", ); }); @@ -1819,7 +1819,7 @@ describe("BlobClient - ImmutabilityPolicy", () => { } assert.ok( caughtException, - "Should catch exception when setting ImmutabilityPolicy mode to Mutable" + "Should catch exception when setting ImmutabilityPolicy mode to Mutable", ); }); @@ -1845,7 +1845,7 @@ describe("BlobClient - ImmutabilityPolicy", () => { } assert.ok( caughtException, - "Should catch exception when deleting immutability policy against a non-exist blob" + "Should catch exception when deleting immutability policy against a non-exist blob", ); }); @@ -1866,7 +1866,7 @@ describe("BlobClient - ImmutabilityPolicy", () => { assert.ok(properties.immutabilityPolicyExpiresOn); assert.equal( properties.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); }); @@ -1898,7 +1898,7 @@ describe("BlobClient - ImmutabilityPolicy", () => { assert.ok(properties.immutabilityPolicyExpiresOn); assert.equal( properties.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); }); @@ -1932,7 +1932,7 @@ describe("BlobClient - ImmutabilityPolicy", () => { assert.ok(properties.immutabilityPolicyExpiresOn); assert.equal( properties.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); }); @@ -1968,7 +1968,7 @@ describe("BlobClient - ImmutabilityPolicy", () => { assert.ok(properties.immutabilityPolicyExpiresOn); assert.equal( properties.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); }); diff --git a/sdk/storage/storage-blob/test/blobclientpollers.spec.ts b/sdk/storage/storage-blob/test/blobclientpollers.spec.ts index ef1b064c8a9f..d94449289476 100644 --- a/sdk/storage/storage-blob/test/blobclientpollers.spec.ts +++ b/sdk/storage/storage-blob/test/blobclientpollers.spec.ts @@ -60,7 +60,7 @@ describe("BlobClient beginCopyFromURL Poller", () => { this.skip(); } const newBlobClient = destinationContainerClient.getBlobClient( - recorder.variable("copiedblob", getUniqueName("copiedblob")) + recorder.variable("copiedblob", getUniqueName("copiedblob")), ); // specify poller type to ensure types are properly exported @@ -87,7 +87,7 @@ describe("BlobClient beginCopyFromURL Poller", () => { assert.strictEqual( sanitizedActualUrl.toString(), sanitizedExpectedUrl.toString(), - "copySource does not match original source" + "copySource does not match original source", ); }); @@ -96,7 +96,7 @@ describe("BlobClient beginCopyFromURL Poller", () => { this.skip(); } const newBlobClient = destinationContainerClient.getBlobClient( - recorder.variable("copiedblob", getUniqueName("copiedblob")) + recorder.variable("copiedblob", getUniqueName("copiedblob")), ); const poller = await newBlobClient.beginCopyFromURL(blobClient.url, testPollerProperties); let result: BlobBeginCopyFromURLResponse; @@ -128,7 +128,7 @@ describe("BlobClient beginCopyFromURL Poller", () => { assert.strictEqual( sanitizedActualUrl.toString(), sanitizedExpectedUrl.toString(), - "copySource does not match original source" + "copySource does not match original source", ); }); @@ -144,11 +144,11 @@ describe("BlobClient beginCopyFromURL Poller", () => { } const newBlobClient = destinationContainerClient.getBlobClient( - recorder.variable("copiedblob", getUniqueName("copiedblob")) + recorder.variable("copiedblob", getUniqueName("copiedblob")), ); const poller = await newBlobClient.beginCopyFromURL( "https://azure.github.io/azure-sdk-for-js/index.html", - testPollerProperties + testPollerProperties, ); await poller.cancelOperation(); try { @@ -171,7 +171,7 @@ describe("BlobClient beginCopyFromURL Poller", () => { } const newBlobClient = destinationContainerClient.getBlobClient( - recorder.variable("copiedblob", getUniqueName("copiedblob")) + recorder.variable("copiedblob", getUniqueName("copiedblob")), ); let onProgressCalled = false; const poller = await newBlobClient.beginCopyFromURL( @@ -181,7 +181,7 @@ describe("BlobClient beginCopyFromURL Poller", () => { onProgressCalled = true; }, ...testPollerProperties, - } + }, ); await poller.pollUntilDone(); assert.equal(onProgressCalled, true, "onProgress handler was not called."); @@ -193,7 +193,7 @@ describe("BlobClient beginCopyFromURL Poller", () => { } const newBlobClient = destinationContainerClient.getBlobClient( - recorder.variable("copiedblob", getUniqueName("copiedblob")) + recorder.variable("copiedblob", getUniqueName("copiedblob")), ); const copySourceUrl = "https://azure.github.io/azure-sdk-for-js/index.html"; diff --git a/sdk/storage/storage-blob/test/blobserviceclient.spec.ts b/sdk/storage/storage-blob/test/blobserviceclient.spec.ts index 1ca99df1a4b4..1f87a2c00e74 100644 --- a/sdk/storage/storage-blob/test/blobserviceclient.spec.ts +++ b/sdk/storage/storage-blob/test/blobserviceclient.spec.ts @@ -445,7 +445,7 @@ describe("BlobServiceClient", () => { try { await containerClient.getProperties(); assert.fail( - "Expecting an error in getting properties from a deleted block blob but didn't get one." + "Expecting an error in getting properties from a deleted block blob but didn't get one.", ); } catch (error: any) { assert.ok((error.statusCode as number) === 404); @@ -454,7 +454,7 @@ describe("BlobServiceClient", () => { it("can be created from a sas connection string", async function () { const newClient = BlobServiceClient.fromConnectionString( - getSASConnectionStringFromEnvironment(recorder) + getSASConnectionStringFromEnvironment(recorder), ); configureBlobStorageClient(recorder, newClient); @@ -556,7 +556,7 @@ describe("BlobServiceClient", () => { assert.deepStrictEqual(blobsWithTag2.length, 3); for await (const blob of blobServiceClient.findBlobsByTags( - `@container='${containerName}' AND ${key1}='${tags1[key1]}' AND ${key2}='default'` + `@container='${containerName}' AND ${key1}='${tags1[key1]}' AND ${key2}='default'`, )) { assert.deepStrictEqual(blob.containerName, containerName); assert.deepStrictEqual(blob.name, blobName1); @@ -618,7 +618,7 @@ describe("BlobServiceClient", () => { const restoreRes = await blobServiceClient.undeleteContainer( containerName, - containerItem.version! + containerItem.version!, ); assert.equal(restoreRes.containerClient.containerName, containerName); await restoreRes.containerClient.delete(); diff --git a/sdk/storage/storage-blob/test/blobversioning.spec.ts b/sdk/storage/storage-blob/test/blobversioning.spec.ts index 508eb3961851..75405d1db30d 100644 --- a/sdk/storage/storage-blob/test/blobversioning.spec.ts +++ b/sdk/storage/storage-blob/test/blobversioning.spec.ts @@ -42,7 +42,7 @@ describe("Blob versioning", () => { await recorder.start(recorderEnvSetup); await recorder.addSanitizers( { uriSanitizers, removeHeaderSanitizer: { headersForRemoval: ["x-ms-copy-source"] } }, - ["playback", "record"] + ["playback", "record"], ); blobServiceClient = getBSU(recorder); containerName = recorder.variable("container", getUniqueName("container")); @@ -67,7 +67,7 @@ describe("Blob versioning", () => { const prefix = "blockblob"; for (let i = 0; i < 2; i++) { const tmpBlobClient = containerClient.getBlobClient( - recorder.variable(`${prefix}/${i}`, getUniqueName(`${prefix}/${i}`)) + recorder.variable(`${prefix}/${i}`, getUniqueName(`${prefix}/${i}`)), ); const tmpBlockBlobClient = tmpBlobClient.getBlockBlobClient(); await tmpBlockBlobClient.upload("", 0); @@ -112,7 +112,7 @@ describe("Blob versioning", () => { } const downloadedFilePath = recorder.variable( "downloadedtofile", - getUniqueName("downloadedtofile") + getUniqueName("downloadedtofile"), ); await blobClient.withVersion(uploadRes.versionId!).downloadToFile(downloadedFilePath); const downloadedFileContent = fs.readFileSync(downloadedFilePath); @@ -184,7 +184,7 @@ describe("Blob versioning", () => { for (let i = 0; i < blockBlobCount; i++) { await batchDeleteRequest.deleteBlob( blockBlobClients[i].withVersion(versions[i]!).url, - credential + credential, ); } @@ -202,7 +202,7 @@ describe("Blob versioning", () => { assert.ok(resp.subResponses[i].headers.contains("x-ms-request-id")); assert.equal( resp.subResponses[i]._request.url, - blockBlobClients[i].withVersion(versions[i]!).url + blockBlobClients[i].withVersion(versions[i]!).url, ); } @@ -348,7 +348,7 @@ describe("Blob versioning", () => { const containerUploadRes = await containerClient.uploadBlockBlob( blobName, content, - content.length + content.length, ); assert.ok(containerUploadRes.response.versionId); @@ -360,7 +360,7 @@ describe("Blob versioning", () => { it("asynchorous copy return versionId", async function () { const newBlobClient = containerClient.getBlobClient( - recorder.variable("copiedblob", getUniqueName("copiedblob")) + recorder.variable("copiedblob", getUniqueName("copiedblob")), ); const result = await (await newBlobClient.beginCopyFromURL(blobClient.url)).pollUntilDone(); assert.ok(result.versionId); @@ -388,7 +388,7 @@ describe("Blob versioning", () => { properties = await blobServiceClient.getProperties(); assert.ok( properties.deleteRetentionPolicy!.enabled, - "deleteRetentionPolicy should be enabled." + "deleteRetentionPolicy should be enabled.", ); } diff --git a/sdk/storage/storage-blob/test/blockblobclient.spec.ts b/sdk/storage/storage-blob/test/blockblobclient.spec.ts index be5dbb22f687..372b7b6b73de 100644 --- a/sdk/storage/storage-blob/test/blockblobclient.spec.ts +++ b/sdk/storage/storage-blob/test/blockblobclient.spec.ts @@ -37,7 +37,7 @@ describe("BlockBlobClient", () => { uriSanitizers, removeHeaderSanitizer: { headersForRemoval: ["x-ms-copy-source", "x-ms-encryption-key"] }, }, - ["playback", "record"] + ["playback", "record"], ); const blobServiceClient = getBSU(recorder); containerName = recorder.variable("container", getUniqueName("container")); @@ -148,7 +148,7 @@ describe("BlockBlobClient", () => { } const newBlockBlobClient = containerClient.getBlockBlobClient( - recorder.variable("newblockblob", getUniqueName("newblockblob")) + recorder.variable("newblockblob", getUniqueName("newblockblob")), ); await newBlockBlobClient.stageBlockFromURL(base64encode("1"), blockBlobClient.url); @@ -169,7 +169,7 @@ describe("BlockBlobClient", () => { } const newBlockBlobClient = containerClient.getBlockBlobClient( - recorder.variable("newblockblob", getUniqueName("newblockblob")) + recorder.variable("newblockblob", getUniqueName("newblockblob")), ); await newBlockBlobClient.stageBlockFromURL(base64encode("1"), blockBlobClient.url, 0, 4); await newBlockBlobClient.stageBlockFromURL(base64encode("2"), blockBlobClient.url, 4, 4); @@ -283,7 +283,7 @@ describe("BlockBlobClient", () => { const newClient = new BlockBlobClient( getSASConnectionStringFromEnvironment(recorder), containerName, - blobName + blobName, ); configureBlobStorageClient(recorder, newClient); @@ -301,7 +301,7 @@ describe("BlockBlobClient", () => { assert.equal( "Expecting non-empty strings for containerName and blobName parameters", error.message, - "Error message is different than expected." + "Error message is different than expected.", ); } }); @@ -315,7 +315,7 @@ describe("BlockBlobClient", () => { assert.equal( "Expecting non-empty strings for containerName and blobName parameters", error.message, - "Error message is different than expected." + "Error message is different than expected.", ); } }); @@ -362,7 +362,7 @@ describe("BlockBlobClient", () => { } const newBlockBlobURL = containerClient.getBlockBlobClient( - recorder.variable("newblockblob", getUniqueName("newblockblob")) + recorder.variable("newblockblob", getUniqueName("newblockblob")), ); const sResp = await newBlockBlobURL.stageBlock(base64encode("1"), body.substring(0, 4), 4, { customerProvidedKey: Test_CPK_INFO, @@ -374,7 +374,7 @@ describe("BlockBlobClient", () => { blockBlobClient.url, 4, 4, - { customerProvidedKey: Test_CPK_INFO } + { customerProvidedKey: Test_CPK_INFO }, ); assert.equal(sResp2.encryptionKeySha256, Test_CPK_INFO.encryptionKeySha256); @@ -393,7 +393,7 @@ describe("BlockBlobClient", () => { const cmResp = await newBlockBlobURL.commitBlockList( [base64encode("1"), base64encode("2"), base64encode("3")], - { customerProvidedKey: Test_CPK_INFO } + { customerProvidedKey: Test_CPK_INFO }, ); assert.equal(cmResp.encryptionKeySha256, Test_CPK_INFO.encryptionKeySha256); @@ -431,7 +431,7 @@ describe("BlockBlobClient", () => { if ( err instanceof Error && err.message.startsWith( - "The CRC64 value specified in the request did not match with the CRC64 value calculated by the server." + "The CRC64 value specified in the request did not match with the CRC64 value calculated by the server.", ) ) { exceptionCaught = true; @@ -465,7 +465,7 @@ describe("BlockBlobClient", () => { ifNoneMatch: "*", }, metadata, - } + }, ); assert.fail(); } catch (err: any) { diff --git a/sdk/storage/storage-blob/test/browser/highlevel.browser.spec.ts b/sdk/storage/storage-blob/test/browser/highlevel.browser.spec.ts index 2e078c6d50e3..0bf06828ef8f 100644 --- a/sdk/storage/storage-blob/test/browser/highlevel.browser.spec.ts +++ b/sdk/storage/storage-blob/test/browser/highlevel.browser.spec.ts @@ -262,7 +262,7 @@ describe("Highlevel", () => { const downloadedBlob2 = await (await blockBlobClient.download()).blobBody!; await assertSameBlob( downloadedBlob2, - new Blob([uint8ArrayPartial], { type: "application/octet-stream" }) + new Blob([uint8ArrayPartial], { type: "application/octet-stream" }), ); const uint16Array = new Uint16Array(arrayBuf, 4, 2); @@ -270,7 +270,7 @@ describe("Highlevel", () => { const downloadedBlob3 = await (await blockBlobClient.download()).blobBody!; await assertSameBlob( downloadedBlob3, - new Blob([uint16Array], { type: "application/octet-stream" }) + new Blob([uint16Array], { type: "application/octet-stream" }), ); }); }); diff --git a/sdk/storage/storage-blob/test/containerclient.spec.ts b/sdk/storage/storage-blob/test/containerclient.spec.ts index 76d2595600ae..f6d6bb099db9 100644 --- a/sdk/storage/storage-blob/test/containerclient.spec.ts +++ b/sdk/storage/storage-blob/test/containerclient.spec.ts @@ -44,7 +44,7 @@ describe("ContainerClient", () => { headersForRemoval: ["x-ms-encryption-key"], }, }, - ["playback", "record"] + ["playback", "record"], ); blobServiceClient = getBSU(recorder); containerName = recorder.variable("container", getUniqueName("container")); @@ -118,7 +118,7 @@ describe("ContainerClient", () => { it("create with all parameters configured", async function () { const cClient = blobServiceClient.getContainerClient( - recorder.variable(containerName, getUniqueName(containerName)) + recorder.variable(containerName, getUniqueName(containerName)), ); const metadata = { key: "value" }; const access = "container"; @@ -137,7 +137,7 @@ describe("ContainerClient", () => { const blobClients = []; for (let i = 0; i < 3; i++) { const blobClient = containerClient.getBlobClient( - getRecorderUniqueVariable(recorder, `blockblob/${i}`) + getRecorderUniqueVariable(recorder, `blockblob/${i}`), ); const blockBlobClient = blobClient.getBlockBlobClient(); await blockBlobClient.upload("", 0); @@ -160,7 +160,7 @@ describe("ContainerClient", () => { const blobClients = []; for (let i = 0; i < 3; i++) { const blobClient = containerClient.getBlobClient( - getRecorderUniqueVariable(recorder, `blockblob/${i}`) + getRecorderUniqueVariable(recorder, `blockblob/${i}`), ); const blockBlobClient = blobClient.getBlockBlobClient(); await blockBlobClient.stageBlock(base64encode("1"), "Hello", 5); @@ -208,7 +208,7 @@ describe("ContainerClient", () => { const blobClients = []; for (let i = 0; i < 3; i++) { const blobClient = containerClient.getBlobClient( - getRecorderUniqueVariable(recorder, `blockblob/${i}`) + getRecorderUniqueVariable(recorder, `blockblob/${i}`), ); const blockBlobClient = blobClient.getBlockBlobClient(); await blockBlobClient.upload("", 0); @@ -236,7 +236,7 @@ describe("ContainerClient", () => { }; for (let i = 0; i < 2; i++) { const blobClient = containerClient.getBlobClient( - getRecorderUniqueVariable(recorder, `${prefix}/${i}`) + getRecorderUniqueVariable(recorder, `${prefix}/${i}`), ); const blockBlobClient = blobClient.getBlockBlobClient(); await blockBlobClient.upload("", 0, { @@ -326,7 +326,7 @@ describe("ContainerClient", () => { }; for (let i = 0; i < 2; i++) { const blobClient = containerClient.getBlobClient( - getRecorderUniqueVariable(recorder, `${prefix}/${i}`) + getRecorderUniqueVariable(recorder, `${prefix}/${i}`), ); const blockBlobClient = blobClient.getBlockBlobClient(); await blockBlobClient.upload("", 0, { @@ -365,7 +365,7 @@ describe("ContainerClient", () => { }; for (let i = 0; i < 4; i++) { const blobClient = containerClient.getBlobClient( - getRecorderUniqueVariable(recorder, `${prefix}/${i}`) + getRecorderUniqueVariable(recorder, `${prefix}/${i}`), ); const blockBlobClient = blobClient.getBlockBlobClient(); await blockBlobClient.upload("", 0, { @@ -402,7 +402,7 @@ describe("ContainerClient", () => { }; for (let i = 0; i < 2; i++) { const blobClient = containerClient.getBlobClient( - getRecorderUniqueVariable(recorder, `${prefix}/${i}`) + getRecorderUniqueVariable(recorder, `${prefix}/${i}`), ); const blockBlobClient = blobClient.getBlockBlobClient(); await blockBlobClient.upload("", 0, { @@ -442,7 +442,7 @@ describe("ContainerClient", () => { }; for (let i = 0; i < 4; i++) { const blobClient = containerClient.getBlobClient( - getRecorderUniqueVariable(recorder, `${prefix}/${i}`) + getRecorderUniqueVariable(recorder, `${prefix}/${i}`), ); const blockBlobClient = blobClient.getBlockBlobClient(); await blockBlobClient.upload("", 0, { @@ -483,7 +483,7 @@ describe("ContainerClient", () => { }; for (let i = 0; i < 4; i++) { const blobClient = containerClient.getBlobClient( - getRecorderUniqueVariable(recorder, `${prefix}/${i}`) + getRecorderUniqueVariable(recorder, `${prefix}/${i}`), ); const blockBlobClient = blobClient.getBlockBlobClient(); await blockBlobClient.upload("", 0, { @@ -539,7 +539,7 @@ describe("ContainerClient", () => { const blobClients = []; for (let i = 0; i < 3; i++) { const blobClient = containerClient.getBlobClient( - getRecorderUniqueVariable(recorder, `blockblob${i}/${i}`) + getRecorderUniqueVariable(recorder, `blockblob${i}/${i}`), ); const blockBlobClient = blobClient.getBlockBlobClient(); await blockBlobClient.upload("", 0); @@ -569,7 +569,7 @@ describe("ContainerClient", () => { const blobClients = []; for (let i = 0; i < 3; i++) { const blobClient = containerClient.getBlobClient( - getRecorderUniqueVariable(recorder, `blockblob${i}`) + getRecorderUniqueVariable(recorder, `blockblob${i}`), ); const blockBlobClient = blobClient.getBlockBlobClient(); await blockBlobClient.stageBlock(base64encode("1"), "Hello", 5); @@ -603,7 +603,7 @@ describe("ContainerClient", () => { for (let i = 0; i < dirNames.length; ++i) { const encodedCharBlockBlobClient = containerClient.getBlockBlobClient( - dirNames[i] + "file\uFFFF.blob" + dirNames[i] + "file\uFFFF.blob", ); await encodedCharBlockBlobClient.upload("", 0); } @@ -625,14 +625,14 @@ describe("ContainerClient", () => { for (let i = 0; i < result.segment.blobPrefixes.length; ++i) { assert.ok( dirNames.includes(result.segment.blobPrefixes[i].name), - "Directory name for the uploaded blob should be in the prefix list" + "Directory name for the uploaded blob should be in the prefix list", ); } for (let i = 0; i < result.segment.blobItems.length; ++i) { assert.ok( blobNames.includes(result.segment.blobItems[i].name), - "Uploaded blob should be in the list" + "Uploaded blob should be in the list", ); } }); @@ -641,7 +641,7 @@ describe("ContainerClient", () => { const blobClients = []; for (let i = 0; i < 3; i++) { const blobClient = containerClient.getBlobClient( - getRecorderUniqueVariable(recorder, `blockblob${i}/${i}`) + getRecorderUniqueVariable(recorder, `blockblob${i}/${i}`), ); const blockBlobClient = blobClient.getBlockBlobClient(); await blockBlobClient.upload("", 0); @@ -679,7 +679,7 @@ describe("ContainerClient", () => { const delimiter = "/"; for (let i = 0; i < 2; i++) { const blobClient = containerClient.getBlobClient( - getRecorderUniqueVariable(recorder, `${prefix}${i}${delimiter}${i}`) + getRecorderUniqueVariable(recorder, `${prefix}${i}${delimiter}${i}`), ); const blockBlobClient = blobClient.getBlockBlobClient(); await blockBlobClient.upload("", 0, { @@ -799,7 +799,7 @@ describe("ContainerClient", () => { assert.equal( "delimiter should contain one or more characters", error.message, - "Error message is different than expected." + "Error message is different than expected.", ); } }); @@ -830,7 +830,7 @@ describe("ContainerClient", () => { try { await blockBlobClient.getProperties(); assert.fail( - "Expecting an error in getting properties from a deleted block blob but didn't get one." + "Expecting an error in getting properties from a deleted block blob but didn't get one.", ); } catch (error: any) { assert.ok((error.statusCode as number) === 404); @@ -860,7 +860,7 @@ describe("ContainerClient", () => { }); blockBlobClient = result.blockBlobClient; }, - ["ContainerClient-uploadBlockBlob"] + ["ContainerClient-uploadBlockBlob"], ); await containerClient.deleteBlob(blobName); @@ -870,7 +870,7 @@ describe("ContainerClient", () => { } await blockBlobClient.getProperties(); assert.fail( - "Expecting an error in getting properties from a deleted block blob but didn't get one." + "Expecting an error in getting properties from a deleted block blob but didn't get one.", ); } catch (error: any) { assert.ok((error.statusCode as number) === 404); @@ -880,7 +880,7 @@ describe("ContainerClient", () => { it("can be created with a sas connection string", async function () { const newClient = new ContainerClient( getSASConnectionStringFromEnvironment(recorder), - containerName + containerName, ); configureBlobStorageClient(recorder, newClient); @@ -905,7 +905,7 @@ describe("ContainerClient", () => { retryOptions: { maxTries: 5, }, - } + }, ); configureBlobStorageClient(recorder, newClient); @@ -931,7 +931,7 @@ describe("ContainerClient", () => { assert.equal( "Expecting non-empty strings for containerName parameter", error.message, - "Error message is different than expected." + "Error message is different than expected.", ); } }); @@ -943,7 +943,7 @@ describe("ContainerClient", () => { it("exists returns false on non-existing container", async () => { const newContainerClient = blobServiceClient.getContainerClient( - recorder.variable("newcontainer", getUniqueName("newcontainer")) + recorder.variable("newcontainer", getUniqueName("newcontainer")), ); const result = await newContainerClient.exists(); assert.ok(result === false, "exists() should return true for an existing container"); @@ -963,7 +963,7 @@ describe("ContainerClient", () => { }, }; const newContainerClient = blobServiceClient.getContainerClient( - recorder.variable("listingcontainer", getUniqueName("listingcontainer")) + recorder.variable("listingcontainer", getUniqueName("listingcontainer")), ); await newContainerClient.create(); await newContainerClient.uploadBlockBlob( @@ -973,7 +973,7 @@ describe("ContainerClient", () => { { blobHTTPHeaders: options, metadata: options.metadata, - } + }, ); const iterator = newContainerClient @@ -1047,7 +1047,7 @@ describe("ContainerClient", () => { assert.deepStrictEqual(blobsWithTag2.length, 3); for await (const blob of containerClient.findBlobsByTags( - `${key1}='${tags1[key1]}' AND ${key2}='default'` + `${key1}='${tags1[key1]}' AND ${key2}='default'`, )) { assert.deepStrictEqual(blob.name, blobName1); assert.deepStrictEqual(blob.tags, tags1); @@ -1065,12 +1065,12 @@ describe("ContainerClient - Verify Name Properties", () => { assert.equal( newClient.containerName, containerName, - "Container name is not the same as the one provided." + "Container name is not the same as the one provided.", ); assert.equal( newClient.accountName, accountName, - "Account name is not the same as the one provided." + "Account name is not the same as the one provided.", ); } @@ -1084,7 +1084,7 @@ describe("ContainerClient - Verify Name Properties", () => { it("verify IPv6 host address as Endpoint", async function () { verifyNameProperties( - `https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/${accountName}/${containerName}` + `https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/${accountName}/${containerName}`, ); }); @@ -1098,7 +1098,7 @@ describe("ContainerClient - Verify Name Properties", () => { assert.equal( newClient.containerName, containerName, - "Container name is not the same as the one provided." + "Container name is not the same as the one provided.", ); }); }); diff --git a/sdk/storage/storage-blob/test/leaseclient.spec.ts b/sdk/storage/storage-blob/test/leaseclient.spec.ts index 7e7d99dddbb8..cc5baf7e51bc 100644 --- a/sdk/storage/storage-blob/test/leaseclient.spec.ts +++ b/sdk/storage/storage-blob/test/leaseclient.spec.ts @@ -23,7 +23,7 @@ describe("LeaseClient from Container", () => { uriSanitizers, removeHeaderSanitizer: { headersForRemoval: ["x-ms-proposed-lease-id", "x-ms-lease-id"] }, }, - ["record", "playback"] + ["record", "playback"], ); blobServiceClient = getBSU(recorder); containerName = recorder.variable("container", getUniqueName("container")); diff --git a/sdk/storage/storage-blob/test/node/appendblobclient.spec.ts b/sdk/storage/storage-blob/test/node/appendblobclient.spec.ts index 3fdfbde0d565..ddd592758a9a 100644 --- a/sdk/storage/storage-blob/test/node/appendblobclient.spec.ts +++ b/sdk/storage/storage-blob/test/node/appendblobclient.spec.ts @@ -52,7 +52,7 @@ describe("AppendBlobClient Node.js only", () => { ], }, }, - ["playback", "record"] + ["playback", "record"], ); blobServiceClient = getBSU(recorder); containerName = recorder.variable("container", getUniqueName("container")); @@ -113,7 +113,7 @@ describe("AppendBlobClient Node.js only", () => { const newClient = new AppendBlobClient( getConnectionStringFromEnvironment(), containerName, - blobName + blobName, ); configureBlobStorageClient(recorder, newClient); @@ -130,7 +130,7 @@ describe("AppendBlobClient Node.js only", () => { retryOptions: { maxTries: 5, }, - } + }, ); configureBlobStorageClient(recorder, newClient); @@ -160,7 +160,7 @@ describe("AppendBlobClient Node.js only", () => { blobName: blockBlobName, permissions: BlobSASPermissions.parse("r"), }, - credential + credential, ); await appendBlobClient.appendBlock(content, content.length); @@ -192,7 +192,7 @@ describe("AppendBlobClient Node.js only", () => { blobName: blockBlobName, permissions: BlobSASPermissions.parse("r"), }, - credential + credential, ); const tokenBlobServiceClient = getTokenBSUWithDefaultCredential(recorder); @@ -203,7 +203,7 @@ describe("AppendBlobClient Node.js only", () => { await tokenAppendBlobClient.appendBlockFromURL( `${blockBlobClient.url}?${sas}`, 0, - content.length + content.length, ); const downloadResponse = await appendBlobClient.download(0); @@ -256,7 +256,7 @@ describe("AppendBlobClient Node.js only", () => { it("conditional tags for appendBlockFromURL's destination blob", async () => { const newBlobClient = containerClient.getAppendBlobClient( - recorder.variable("copiedblob", getUniqueName("copiedblob")) + recorder.variable("copiedblob", getUniqueName("copiedblob")), ); const tags2 = { tag: "val", @@ -278,7 +278,7 @@ describe("AppendBlobClient Node.js only", () => { blobName: blockBlobName, permissions: BlobSASPermissions.parse("r"), }, - credential + credential, ); let exceptionCaught = false; @@ -319,7 +319,7 @@ describe("AppendBlobClient Node.js only", () => { blobName: blockBlobName, permissions: BlobSASPermissions.parse("r"), }, - credential + credential, ); const aResp = await appendBlobClient.appendBlock(content, content.length, { @@ -331,7 +331,7 @@ describe("AppendBlobClient Node.js only", () => { `${blobClient.url}?${sas}`, 0, content.length, - { customerProvidedKey: Test_CPK_INFO } + { customerProvidedKey: Test_CPK_INFO }, ); assert.equal(aResp2.encryptionKeySha256, Test_CPK_INFO.encryptionKeySha256); diff --git a/sdk/storage/storage-blob/test/node/blobclient.spec.ts b/sdk/storage/storage-blob/test/node/blobclient.spec.ts index 557c9697eb83..69fe370135bc 100644 --- a/sdk/storage/storage-blob/test/node/blobclient.spec.ts +++ b/sdk/storage/storage-blob/test/node/blobclient.spec.ts @@ -65,7 +65,7 @@ describe("BlobClient Node.js only", () => { ], }, }, - ["playback", "record"] + ["playback", "record"], ); blobServiceClient = getBSU(recorder); containerName = recorder.variable("container", getUniqueName("container")); @@ -221,7 +221,7 @@ describe("BlobClient Node.js only", () => { assert.deepStrictEqual( result3.segment.blobItems![0].properties, - result3.segment.blobItems![1].properties + result3.segment.blobItems![1].properties, ); assert.ok(result3.segment.blobItems![0].snapshot || result3.segment.blobItems![1].snapshot); }); @@ -251,7 +251,7 @@ describe("BlobClient Node.js only", () => { containerName, blobName, }, - credential + credential, ); const copyURL = blobClient.url + "?" + sas; @@ -288,7 +288,7 @@ describe("BlobClient Node.js only", () => { containerName, blobName, }, - credential + credential, ); const copyURL = blobClient.url + "?" + sas; @@ -340,7 +340,7 @@ describe("BlobClient Node.js only", () => { it("syncCopyFromURL", async function () { const newBlobClient = containerClient.getBlobClient( - recorder.variable("copiedblob", getUniqueName("copiedblob")) + recorder.variable("copiedblob", getUniqueName("copiedblob")), ); // Different from startCopyFromURL, syncCopyFromURL requires sourceURL includes a valid SAS @@ -356,7 +356,7 @@ describe("BlobClient Node.js only", () => { containerName, blobName, }, - credential + credential, ); const copyURL = blobClient.url + "?" + sas; @@ -371,7 +371,7 @@ describe("BlobClient Node.js only", () => { it("syncCopyFromURL - with COPY tags", async () => { const newBlobClient = containerClient.getBlobClient( - recorder.variable("copiedblob", getUniqueName("copiedblob")) + recorder.variable("copiedblob", getUniqueName("copiedblob")), ); await blobClient.setTags({ tag1: "val1", @@ -390,7 +390,7 @@ describe("BlobClient Node.js only", () => { containerName, blobName, }, - credential + credential, ); const copyURL = blobClient.url + "?" + sas; @@ -409,7 +409,7 @@ describe("BlobClient Node.js only", () => { it("syncCopyFromURL - with REPLACE tags", async () => { const newBlobClient = containerClient.getBlobClient( - recorder.variable("copiedblob", getUniqueName("copiedblob")) + recorder.variable("copiedblob", getUniqueName("copiedblob")), ); await blobClient.setTags({ tag1: "val1", @@ -428,7 +428,7 @@ describe("BlobClient Node.js only", () => { containerName, blobName, }, - credential + credential, ); const copyURL = blobClient.url + "?" + sas; @@ -450,7 +450,7 @@ describe("BlobClient Node.js only", () => { it("abortCopyFromClient should failed for a completed copy operation", async function () { const newBlobClient = containerClient.getBlobClient( - recorder.variable("copiedblob", getUniqueName("copiedblob")) + recorder.variable("copiedblob", getUniqueName("copiedblob")), ); const result = await (await newBlobClient.beginCopyFromURL(blobClient.url)).pollUntilDone(); assert.ok(result.copyId); @@ -459,7 +459,7 @@ describe("BlobClient Node.js only", () => { try { await newBlobClient.beginCopyFromURL(result.copyId!); assert.fail( - "AbortCopyFromClient should be failed and throw exception for an completed copy operation." + "AbortCopyFromClient should be failed and throw exception for an completed copy operation.", ); } catch (err: any) { assert.ok(err.code === "InvalidHeaderValue"); @@ -564,7 +564,7 @@ describe("BlobClient Node.js only", () => { retryOptions: { maxTries: 5, }, - } + }, ); const metadata = { a: "a", @@ -708,7 +708,7 @@ describe("BlobClient Node.js only", () => { const tempFileLarge = await createRandomLocalFile( tempFolderPath, 1024 * 1024, - Buffer.from(csvContentUnit) + Buffer.from(csvContentUnit), ); await blockBlobClient.uploadFile(tempFileLarge); @@ -716,7 +716,7 @@ describe("BlobClient Node.js only", () => { const downloadedFile = join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(response.readableStreamBody!, downloadedFile); @@ -737,7 +737,7 @@ describe("BlobClient Node.js only", () => { const tempFileLarge = await createRandomLocalFile( tempFolderPath, 1024 * 256 * 2, - Buffer.from(csvContentUnit) + Buffer.from(csvContentUnit), ); await blockBlobClient.uploadFile(tempFileLarge); @@ -752,7 +752,7 @@ describe("BlobClient Node.js only", () => { const downloadedFile = join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); try { @@ -806,8 +806,8 @@ describe("BlobClient Node.js only", () => { assert.deepStrictEqual(err.position, 0); assert.ok( err.description.startsWith( - "Unexpected token ',' at [byte: 3]. Expecting tokens '{', or '['." - ) + "Unexpected token ',' at [byte: 3]. Expecting tokens '{', or '['.", + ), ); return; }, @@ -898,7 +898,7 @@ describe("BlobClient Node.js only", () => { }); assert.equal( (await streamToBuffer3(response.readableStreamBody!)).toString("hex"), - "ffffffff800000001000000000000a000c000600050008000a000000000104000c000000080008000000040008000000040000000100000014000000100014000800060007000c0000001000100000000000010710000000200000000400000000000000040000006e616d650000000008000c000400080008000000040000000200000000000000ffffffff700000001000000000000a000e000600050008000a000000000304001000000000000a000c000000040008000a0000003000000004000000020000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000" + "ffffffff800000001000000000000a000c000600050008000a000000000104000c000000080008000000040008000000040000000100000014000000100014000800060007000c0000001000100000000000010710000000200000000400000000000000040000006e616d650000000008000c000400080008000000040000000200000000000000ffffffff700000001000000000000a000e000600050008000a000000000304001000000000000a000c000000040008000a0000003000000004000000020000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000", ); }); @@ -968,7 +968,7 @@ describe("BlobClient Node.js Only - ImmutabilityPolicy", () => { await recorder.start(recorderEnvSetup); await recorder.addSanitizers( { removeHeaderSanitizer: { headersForRemoval: ["x-ms-copy-source"] } }, - ["playback"] + ["playback"], ); blobServiceClient = getBSU(recorder); containerClient = blobServiceClient.getContainerClient(containerName); @@ -989,7 +989,7 @@ describe("BlobClient Node.js Only - ImmutabilityPolicy", () => { for (let i = 0; i < listResult.segment.blobItems!.length; ++i) { const deleteBlobClient = containerClient.getBlobClient( - listResult.segment.blobItems[i].name + listResult.segment.blobItems[i].name, ); await deleteBlobClient.setLegalHold(false); await deleteBlobClient.deleteImmutabilityPolicy(); @@ -1027,7 +1027,7 @@ describe("BlobClient Node.js Only - ImmutabilityPolicy", () => { assert.ok(properties.immutabilityPolicyExpiresOn); assert.equal( properties.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); }); diff --git a/sdk/storage/storage-blob/test/node/blockblobclient.spec.ts b/sdk/storage/storage-blob/test/node/blockblobclient.spec.ts index 4f04e47354f5..5874665ef66f 100644 --- a/sdk/storage/storage-blob/test/node/blockblobclient.spec.ts +++ b/sdk/storage/storage-blob/test/node/blockblobclient.spec.ts @@ -145,7 +145,7 @@ describe("BlockBlobClient Node.js only", () => { const newClient = new BlockBlobClient( getConnectionStringFromEnvironment(), containerName, - blobName + blobName, ); configureBlobStorageClient(recorder, newClient); @@ -164,7 +164,7 @@ describe("BlockBlobClient Node.js only", () => { retryOptions: { maxTries: 5, }, - } + }, ); configureBlobStorageClient(recorder, newClient); @@ -230,7 +230,7 @@ describe("syncUploadFromURL", () => { ], }, }, - ["playback", "record"] + ["playback", "record"], ); const blobServiceClient = getBSU(recorder); const containerName = recorder.variable("container", getUniqueName("container")); @@ -257,7 +257,7 @@ describe("syncUploadFromURL", () => { containerName, blobName: srcBlobName, }, - sourceBlob.credential as StorageSharedKeyCredential + sourceBlob.credential as StorageSharedKeyCredential, ); sourceBlobURLWithSAS = sourceBlob.url + "?" + sas; }); @@ -279,13 +279,13 @@ describe("syncUploadFromURL", () => { base64encode("1"), sourceBlobURLWithSAS, 0, - content.length + content.length, ); await tokenNewBlockBlobClient.stageBlockFromURL( base64encode("2"), sourceBlobURLWithSAS, 0, - content.length + content.length, ); await blockBlobClient.commitBlockList([base64encode("1"), base64encode("2")]); @@ -304,7 +304,7 @@ describe("syncUploadFromURL", () => { const accessToken = await getStorageAccessTokenWithDefaultCredential(); const newBlockBlobClient = containerClient.getBlockBlobClient( - recorder.variable("newblockblob", getUniqueName("newblockblob")) + recorder.variable("newblockblob", getUniqueName("newblockblob")), ); await newBlockBlobClient.stageBlockFromURL( @@ -317,7 +317,7 @@ describe("syncUploadFromURL", () => { scheme: "Bearer", value: accessToken!.token, }, - } + }, ); await newBlockBlobClient.stageBlockFromURL( @@ -330,7 +330,7 @@ describe("syncUploadFromURL", () => { scheme: "Bearer", value: accessToken!.token, }, - } + }, ); await newBlockBlobClient.commitBlockList([base64encode("1"), base64encode("2")]); @@ -365,7 +365,7 @@ describe("syncUploadFromURL", () => { scheme: "Bearer", value: accessToken!.token, }, - } + }, ); await tokenNewBlockBlobClient.stageBlockFromURL( @@ -378,7 +378,7 @@ describe("syncUploadFromURL", () => { scheme: "Bearer", value: accessToken!.token, }, - } + }, ); await newBlockBlobClient.commitBlockList([base64encode("1"), base64encode("2")]); @@ -411,7 +411,7 @@ describe("syncUploadFromURL", () => { const accessToken = await getStorageAccessTokenWithDefaultCredential(); const newBlockBlobClient = containerClient.getBlockBlobClient( - recorder.variable("newblockblob", getUniqueName("newblockblob")) + recorder.variable("newblockblob", getUniqueName("newblockblob")), ); await newBlockBlobClient.syncUploadFromURL(blockBlobClient.url, { @@ -511,7 +511,7 @@ describe("syncUploadFromURL", () => { containerName: sourceBlob.containerName, blobName: sourceBlob.name, }, - sourceBlob.credential as StorageSharedKeyCredential + sourceBlob.credential as StorageSharedKeyCredential, ); const urlWithSAS = sourceBlob.url + "?" + sas; await blockBlobClient.syncUploadFromURL(urlWithSAS, { copySourceTags: "COPY" }); diff --git a/sdk/storage/storage-blob/test/node/emulator-tests.spec.ts b/sdk/storage/storage-blob/test/node/emulator-tests.spec.ts index 513ee7ce5165..aa2e2da92333 100644 --- a/sdk/storage/storage-blob/test/node/emulator-tests.spec.ts +++ b/sdk/storage/storage-blob/test/node/emulator-tests.spec.ts @@ -29,7 +29,7 @@ describe("Emulator Tests", () => { this.skip(); } blobServiceClient = BlobServiceClient.fromConnectionString( - getConnectionStringFromEnvironment() + getConnectionStringFromEnvironment(), ); containerName = getUniqueName("container"); blobName = getUniqueName("blob"); @@ -56,7 +56,7 @@ describe("Emulator Tests", () => { assert.equal( containerName, newClient.containerName, - "Container name didn't match with the provided one." + "Container name didn't match with the provided one.", ); assert.equal(newClient.name, blobName, "Blob name didn't match with the provided one."); const result = await newClient.getProperties(); @@ -76,13 +76,13 @@ describe("Emulator Tests", () => { const newClient = new BlockBlobClient( getConnectionStringFromEnvironment(), containerName, - blobName + blobName, ); assert.equal( newClient.containerName, containerName, - "Container name didn't match with the provided one." + "Container name didn't match with the provided one.", ); assert.equal(newClient.name, blobName, "Blob name didn't match with the provided one."); const body: string = "randomstring"; @@ -103,7 +103,7 @@ describe("Emulator Tests", () => { assert.equal( newClient.containerName, containerName, - "Container name didn't match with the provided one." + "Container name didn't match with the provided one.", ); assert.ok(result.etag!.length > 0); assert.ok(result.lastModified); @@ -124,7 +124,7 @@ describe("Emulator Tests", () => { assert.equal( newClient.containerName, containerName, - "Container name didn't match with the provided one." + "Container name didn't match with the provided one.", ); assert.ok(result.etag!.length > 0); assert.ok(result.lastModified); @@ -135,13 +135,13 @@ describe("Emulator Tests", () => { const newClient = new PageBlobClient( getConnectionStringFromEnvironment(), containerName, - blobName + blobName, ); assert.equal( newClient.containerName, containerName, - "Container name didn't match with the provided one." + "Container name didn't match with the provided one.", ); assert.equal(newClient.name, blobName, "Blob name didn't match with the provided one."); await newClient.create(512); diff --git a/sdk/storage/storage-blob/test/node/highlevel.node.spec.ts b/sdk/storage/storage-blob/test/node/highlevel.node.spec.ts index 3f11167876c1..97b88669b2fe 100644 --- a/sdk/storage/storage-blob/test/node/highlevel.node.spec.ts +++ b/sdk/storage/storage-blob/test/node/highlevel.node.spec.ts @@ -51,7 +51,7 @@ describe("Highlevel", () => { headersForRemoval: ["x-ms-encryption-key"], }, }, - ["playback", "record"] + ["playback", "record"], ); blobServiceClient = getBSU(recorder, { keepAliveOptions: { @@ -82,13 +82,13 @@ describe("Highlevel", () => { tempFileLarge = await createRandomLocalFileWithTotalSize( tempFolderPath, tempFileLargeLength, - MB + MB, ); tempFileSmallLength = 4 * MB + 37; // First prime number after 4MB. tempFileSmall = await createRandomLocalFileWithTotalSize( tempFolderPath, tempFileSmallLength, - MB + MB, ); }); @@ -129,7 +129,7 @@ describe("Highlevel", () => { const downloadResponse = await blockBlobClient.download(0); const downloadedFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(downloadResponse.readableStreamBody!, downloadedFile); @@ -172,7 +172,7 @@ describe("Highlevel", () => { const downloadResponse = await blockBlobClient.download(0); const downloadedFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(downloadResponse.readableStreamBody!, downloadedFile); @@ -194,7 +194,7 @@ describe("Highlevel", () => { const downloadResponse = await blockBlobClient.download(0); const downloadedFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(downloadResponse.readableStreamBody!, downloadedFile); @@ -288,7 +288,7 @@ describe("Highlevel", () => { const tempFile = await createRandomLocalFile( tempFolderPath, BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES / (1024 * 1024) + 1, - 1024 * 1024 + 1024 * 1024, ); try { await blockBlobClient.uploadFile(tempFile, { @@ -313,7 +313,7 @@ describe("Highlevel", () => { const downloadFilePath = path.join( tempFolderPath, - recorder.variable("downloadFile", getUniqueName("downloadFile")) + recorder.variable("downloadFile", getUniqueName("downloadFile")), ); await readStreamToLocalFileWithLogs(downloadResponse.readableStreamBody!, downloadFilePath); @@ -414,7 +414,7 @@ describe("Highlevel", () => { const tempFile = await createRandomLocalFile( tempFolderPath, BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES / (1024 * 1024) + 1, - 1024 * 1024 + 1024 * 1024, ); const rs = fs.createReadStream(tempFile); @@ -428,7 +428,7 @@ describe("Highlevel", () => { } fs.unlinkSync(tempFile); - } + }, ).timeout(timeoutForLargeFileUploadingTest); it("downloadToBuffer should success - without passing the buffer", async function () { @@ -459,7 +459,7 @@ describe("Highlevel", () => { } assert.ok( error.message.includes("Unable to allocate the buffer of size:"), - "Error is not thrown when the count(size provided in bytes) is too large." + "Error is not thrown when the count(size provided in bytes) is too large.", ); }); @@ -613,7 +613,7 @@ describe("Highlevel", () => { const downloadedFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(downloadResponse.readableStreamBody!, downloadedFile); @@ -653,7 +653,7 @@ describe("Highlevel", () => { const downloadedFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(downloadResponse.readableStreamBody!, downloadedFile); @@ -695,7 +695,7 @@ describe("Highlevel", () => { const downloadedFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(downloadResponse.readableStreamBody!, downloadedFile); @@ -717,7 +717,7 @@ describe("Highlevel", () => { const downloadedFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); let retirableReadableStreamOptions: RetriableReadableStreamOptions; @@ -757,7 +757,7 @@ describe("Highlevel", () => { const downloadedFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); let retirableReadableStreamOptions: RetriableReadableStreamOptions; @@ -823,7 +823,7 @@ describe("Highlevel", () => { } const downloadedFilePath = recorder.variable( "downloadedtofile.", - getUniqueName("downloadedtofile.") + getUniqueName("downloadedtofile."), ); const rs = fs.createReadStream(tempFileSmall); await blockBlobClient.uploadStream(rs, 4 * 1024 * 1024, 20); @@ -832,12 +832,12 @@ describe("Highlevel", () => { assert.ok( response.contentLength === tempFileSmallLength, - "response.contentLength doesn't match tempFileSmallLength" + "response.contentLength doesn't match tempFileSmallLength", ); assert.equal( response.readableStreamBody, undefined, - "Expecting response.readableStreamBody to be undefined." + "Expecting response.readableStreamBody to be undefined.", ); const localFileContent = fs.readFileSync(tempFileSmall); diff --git a/sdk/storage/storage-blob/test/node/pageblobclient.spec.ts b/sdk/storage/storage-blob/test/node/pageblobclient.spec.ts index 6a6bfbc3f20d..405f5c6b197e 100644 --- a/sdk/storage/storage-blob/test/node/pageblobclient.spec.ts +++ b/sdk/storage/storage-blob/test/node/pageblobclient.spec.ts @@ -54,7 +54,7 @@ describe("PageBlobClient Node.js only", () => { ], }, }, - ["playback", "record"] + ["playback", "record"], ); blobServiceClient = getBSU(recorder); containerName = recorder.variable("container", getUniqueName("container")); @@ -77,7 +77,7 @@ describe("PageBlobClient Node.js only", () => { } const diskBlobClient = new PageBlobClient( "https://md-hdd-jxsm54fzq3jc.z8.blob.storage.azure.net/wmkmgnjxxnjt/abcd?sv=2018-03-28&sr=b&si=9a01f5e5-ae40-4251-917d-66ac35cda429&sig=***", - new DefaultAzureCredential() + new DefaultAzureCredential(), ); const result = await diskBlobClient.getProperties(); @@ -94,7 +94,7 @@ describe("PageBlobClient Node.js only", () => { new DefaultAzureCredential(), { audience: StorageBlobAudience.DiskComputeOAuthScopes, - } + }, ); const result = await diskBlobClient.getProperties(); @@ -113,7 +113,7 @@ describe("PageBlobClient Node.js only", () => { assert.ok(snapshotResult.snapshot); const destPageBlobClient = containerClient.getPageBlobClient( - recorder.variable("page", getUniqueName("page")) + recorder.variable("page", getUniqueName("page")), ); await containerClient.setAccessPolicy("container"); @@ -205,7 +205,7 @@ describe("PageBlobClient Node.js only", () => { blobName: blockBlobName, permissions: BlobSASPermissions.parse("r"), }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); await pageBlobClient.uploadPagesFromURL(`${blockBlobClient.url}?${sas}`, 0, 0, 512); @@ -240,7 +240,7 @@ describe("PageBlobClient Node.js only", () => { blobName: blockBlobName, permissions: BlobSASPermissions.parse("r"), }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const tokenBlobServiceClient = getTokenBSUWithDefaultCredential(recorder); @@ -370,7 +370,7 @@ describe("PageBlobClient Node.js only", () => { const newClient = new PageBlobClient( getConnectionStringFromEnvironment(), containerName, - blobName + blobName, ); configureBlobStorageClient(recorder, newClient); @@ -388,7 +388,7 @@ describe("PageBlobClient Node.js only", () => { retryOptions: { maxTries: 5, }, - } + }, ); configureBlobStorageClient(recorder, newClient); @@ -428,7 +428,7 @@ describe("PageBlobClient Node.js only", () => { blobName: blockBlobName, permissions: BlobSASPermissions.parse("r"), }, - credential + credential, ); const uResp = await pageBlobClient.uploadPages("a".repeat(512), 0, 512, { @@ -440,7 +440,7 @@ describe("PageBlobClient Node.js only", () => { 0, 512, 512, - { customerProvidedKey: Test_CPK_INFO } + { customerProvidedKey: Test_CPK_INFO }, ); assert.equal(uResp2.encryptionKeySha256, Test_CPK_INFO.encryptionKeySha256); @@ -520,7 +520,7 @@ describe("PageBlobClient Node.js only", () => { await delay(30 * 1000); const destPageBlobClient = containerClient.getPageBlobClient( - recorder.variable("destPageBlob", getUniqueName("destPageBlob")) + recorder.variable("destPageBlob", getUniqueName("destPageBlob")), ); const copyResponse = await destPageBlobClient.startCopyIncremental(copySource); @@ -541,8 +541,8 @@ describe("PageBlobClient Node.js only", () => { assert.ok( await throwExpectedError( destPageBlobClient.startCopyIncremental(copySource1, { conditions: tagConditionUnmet }), - "ConditionNotMet" - ) + "ConditionNotMet", + ), ); await destPageBlobClient.startCopyIncremental(copySource1, { conditions: tagConditionMet }); }); @@ -567,7 +567,7 @@ describe("PageBlobClient Node.js only", () => { blobName: blockBlobName, permissions: BlobSASPermissions.parse("r"), }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); assert.ok( @@ -575,8 +575,8 @@ describe("PageBlobClient Node.js only", () => { pageBlobClient.uploadPagesFromURL(`${blockBlobClient.url}?${sas}`, 0, 0, 512, { conditions: tagConditionUnmet, }), - "ConditionNotMet" - ) + "ConditionNotMet", + ), ); await pageBlobClient.uploadPagesFromURL(`${blockBlobClient.url}?${sas}`, 0, 0, 512, { diff --git a/sdk/storage/storage-blob/test/node/sas.spec.ts b/sdk/storage/storage-blob/test/node/sas.spec.ts index def56391e4f2..dc7af5a2c9cd 100644 --- a/sdk/storage/storage-blob/test/node/sas.spec.ts +++ b/sdk/storage/storage-blob/test/node/sas.spec.ts @@ -73,7 +73,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2016-05-31", }, - sharedKeyCredential + sharedKeyCredential, ).toString(); const sasClient = `${blobServiceClient.url}?${sas}`; @@ -101,7 +101,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { services: AccountSASServices.parse("btqf").toString(), startsOn: now, }, - sharedKeyCredential + sharedKeyCredential, ).toString(); const sasClient = `${blobServiceClient.url}?${sas}`; @@ -129,13 +129,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { resourceTypes: AccountSASResourceTypes.parse("sco").toString(), services: AccountSASServices.parse("btqf").toString(), }, - sharedKeyCredential + sharedKeyCredential, ).toString(); const sasClient = `${blobServiceClient.url}?${sas}`; const serviceClientWithSAS = new BlobServiceClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureBlobStorageClient(recorder, serviceClientWithSAS); @@ -162,13 +162,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { resourceTypes: AccountSASResourceTypes.parse("sco").toString(), services: AccountSASServices.parse("tqf").toString(), }, - sharedKeyCredential + sharedKeyCredential, ).toString(); const sasClient = `${blobServiceClient.url}?${sas}`; const serviceClientWithSAS = new BlobServiceClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureBlobStorageClient(recorder, serviceClientWithSAS); @@ -198,13 +198,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { services: AccountSASServices.parse("btqf").toString(), version: "2016-05-31", }, - sharedKeyCredential + sharedKeyCredential, ).toString(); const sasClient = `${blobServiceClient.url}?${sas}`; const serviceClientWithSAS = new BlobServiceClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureBlobStorageClient(recorder, serviceClientWithSAS); @@ -245,7 +245,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, encryptionScope: encryptionScopeName, }, - sharedKeyCredential + sharedKeyCredential, ).toString(); const sasClient = `${blobServiceClient.url}?${sas}`; @@ -290,13 +290,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2016-05-31", }, - sharedKeyCredential + sharedKeyCredential, ); const sasClient = `${containerClient.url}?${containerSAS}`; const containerClientWithSAS = new ContainerClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureBlobStorageClient(recorder, containerClientWithSAS); @@ -337,13 +337,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { version: "2020-12-06", encryptionScope: encryptionScopeName, }, - sharedKeyCredential + sharedKeyCredential, ); const sasClient = `${containerClient.url}?${containerSAS}`; const containerClientWithSAS = new ContainerClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureBlobStorageClient(recorder, containerClientWithSAS); @@ -391,7 +391,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2016-05-31", }, - sharedKeyCredential + sharedKeyCredential, ); const sasClient = `${blobClient.url}?${blobSAS}`; @@ -444,7 +444,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { protocol: SASProtocol.HttpsAndHttp, startsOn: now, }, - sharedKeyCredential + sharedKeyCredential, ); const sasURL = `${blobClient.url}?${blobSAS}`; @@ -488,7 +488,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { protocol: SASProtocol.HttpsAndHttp, startsOn: now, }, - sharedKeyCredential + sharedKeyCredential, ); const sasURL = `${blobClient.url}?${blobSAS}`; @@ -537,7 +537,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { protocol: SASProtocol.HttpsAndHttp, startsOn: now, }, - sharedKeyCredential + sharedKeyCredential, ); const sasURL = `${blobClient.url}?${blobSAS}`; @@ -596,7 +596,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { protocol: SASProtocol.HttpsAndHttp, startsOn: now, }, - sharedKeyCredential + sharedKeyCredential, ); const sasURL = `${blobClient.url}?${blobSAS}`; @@ -654,7 +654,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { protocol: SASProtocol.HttpsAndHttp, startsOn: now, }, - sharedKeyCredential + sharedKeyCredential, ); const sasURL = `${blobClient.url}?${blobSAS}`; @@ -716,7 +716,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, snapshotTime: response.snapshot, }, - sharedKeyCredential + sharedKeyCredential, ); const sasURL = `${blobClient.withSnapshot(response.snapshot!).url}&${blobSAS}`; @@ -768,7 +768,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, snapshotTime: response.snapshot, }, - sharedKeyCredential + sharedKeyCredential, ); const sasURL = `${blobClient.withSnapshot(response.snapshot!).url}&${blobSAS}`; @@ -790,7 +790,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { const containerName = recorder.variable( "container-with-dash", - getUniqueName("container-with-dash") + getUniqueName("container-with-dash"), ); const containerClient = blobServiceClient.getContainerClient(containerName); await containerClient.create(); @@ -799,8 +799,8 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { const blobName = recorder.variable( "////Upper/blob/empty /adir/./adir1/../another 汉字 ру́сский язы́к ру́сский язы́к عربي/عربى にっぽんご/にほんご . special ~!@#$%^&*()_+`1234567890-={}|[]\\:\";'<>?,/'", getUniqueName( - "////Upper/blob/empty /another 汉字 ру́сский язы́к ру́сский язы́к عربي/عربى にっぽんご/にほんご . special ~!@#$%^&*()_+`1234567890-={}|[]\\:\";'<>?,/'" - ) + "////Upper/blob/empty /another 汉字 ру́сский язы́к ру́сский язы́к عربي/عربى にっぽんご/にほんご . special ~!@#$%^&*()_+`1234567890-={}|[]\\:\";'<>?,/'", + ), ); const blobClient = containerClient.getPageBlobClient(blobName); await blobClient.create(1024, { @@ -824,7 +824,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2016-05-31", }, - sharedKeyCredential + sharedKeyCredential, ); const sasClient = `${blobClient.url}?${blobSAS}`; @@ -884,7 +884,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { permissions: ContainerSASPermissions.parse("racwdl"), identifier: id, }, - sharedKeyCredential + sharedKeyCredential, ); const sasClient = `${blobClient.url}?${blobSAS}`; @@ -939,7 +939,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { containerName: containerName, identifier: id, }, - sharedKeyCredential + sharedKeyCredential, ); const sasClient = `${blobClient.url}?${blobSAS}`; @@ -987,13 +987,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { version: SERVICE_VERSION, }, userDelegationKey, - accountName + accountName, ); const sasClient = `${containerClient.url}?${containerSAS}`; const containerClientWithSAS = new ContainerClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureBlobStorageClient(recorder, containerClientWithSAS); @@ -1036,13 +1036,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { permissions: ContainerSASPermissions.parse("racwdl"), }, userDelegationKey, - accountName + accountName, ); const sasClient = `${containerClient.url}?${containerSAS}`; const containerClientWithSAS = new ContainerClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureBlobStorageClient(recorder, containerClientWithSAS); @@ -1102,7 +1102,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, }, userDelegationKey, - accountName + accountName, ); const sasClient = `${blobClient.url}?${blobSAS}`; @@ -1169,7 +1169,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, }, userDelegationKey, - accountName + accountName, ); const sasClient = `${blobClient.url}?${blobSAS}`; @@ -1233,7 +1233,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { encryptionScope: encryptionScopeName, }, userDelegationKey, - accountName + accountName, ); const sasClient = `${blobClient.url}?${blobSAS}`; @@ -1300,7 +1300,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { snapshotTime: response.snapshot, }, userDelegationKey, - accountName + accountName, ); const sasURL = `${blobClient.withSnapshot(response.snapshot!).url}&${blobSAS}`; @@ -1365,7 +1365,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { snapshotTime: response.snapshot, }, userDelegationKey, - accountName + accountName, ); const sasURL = `${blobClient.withSnapshot(response.snapshot!).url}&${blobSAS}`; @@ -1405,13 +1405,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2019-10-10", }, - blobServiceClient.credential as StorageSharedKeyCredential + blobServiceClient.credential as StorageSharedKeyCredential, ).toString(); const sasClient = `${blobServiceClient.url}?${sas}`; const serviceClientWithSAS = new BlobServiceClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureBlobStorageClient(recorder, serviceClientWithSAS); const containerClientWithSAS = serviceClientWithSAS.getContainerClient(containerName); @@ -1448,13 +1448,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2019-10-10", }, - blobServiceClient.credential as StorageSharedKeyCredential + blobServiceClient.credential as StorageSharedKeyCredential, ).toString(); const sasClient = `${blobServiceClient.url}?${sas}`; const serviceClientWithSAS = new BlobServiceClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureBlobStorageClient(recorder, serviceClientWithSAS); const containerClientWithSAS = serviceClientWithSAS.getContainerClient(containerName); @@ -1493,7 +1493,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { protocol: SASProtocol.HttpsAndHttp, versionId: uploadRes.versionId, }, - sharedKeyCredential + sharedKeyCredential, ); const sasURL = `${blobClient.withVersion(uploadRes.versionId!).url}&${blobSAS}`; @@ -1536,7 +1536,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { protocol: SASProtocol.HttpsAndHttp, versionId: uploadRes.versionId, }, - sharedKeyCredential + sharedKeyCredential, ); const sasURL = `${blobClient.withVersion(uploadRes.versionId!).url}&${blobSAS}`; @@ -1595,7 +1595,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { version: "2019-12-12", }, userDelegationKey, - accountName + accountName, ); const sasURL = `${blobClient.withVersion(uploadRes.versionId!).url}&${blobSAS}`; @@ -1653,7 +1653,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { versionId: uploadRes.versionId, }, userDelegationKey, - accountName + accountName, ); const sasURL = `${blobClient.withVersion(uploadRes.versionId!).url}&${blobSAS}`; @@ -1696,7 +1696,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { protocol: SASProtocol.HttpsAndHttp, versionId: uploadRes.versionId, }, - sharedKeyCredential + sharedKeyCredential, ); const sasURL = `${blobClient.withVersion(uploadRes.versionId!).url}&${blobSAS}`; @@ -1734,13 +1734,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2019-12-12", }, - sharedKeyCredential + sharedKeyCredential, ).toString(); const sasClient = `${blobServiceClient.url}?${sas}`; const serviceClientWithSAS = new BlobServiceClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureBlobStorageClient(recorder, serviceClientWithSAS); @@ -1798,13 +1798,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2019-12-12", }, - sharedKeyCredential + sharedKeyCredential, ).toString(); const sasClient = `${blobServiceClient.url}?${sas}`; const serviceClientWithSAS = new BlobServiceClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureBlobStorageClient(recorder, serviceClientWithSAS); @@ -1850,7 +1850,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { permissions: BlobSASPermissions.parse("racwdxtme"), version: "2020-02-10", }, - sharedKeyCredential + sharedKeyCredential, ); const blobClientWithSAS = new BlobClient(`${blobClient.url}?${sas}`); @@ -1878,7 +1878,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { permissions: ContainerSASPermissions.parse("racwdltxme"), version: "2020-02-10", }, - sharedKeyCredential + sharedKeyCredential, ); const containerClientWithSAS = new ContainerClient(`${containerClient.url}?${sas}`); @@ -1901,7 +1901,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { protocol: SASProtocol.HttpsAndHttp, ipRange: { start: "0.0.0.0", end: "255.255.255.255" }, startsOn: now, - } + }, ); const serviceClientWithSAS = new BlobServiceClient(sasURL); configureBlobStorageClient(recorder, serviceClientWithSAS); @@ -1939,7 +1939,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { ipRange: { start: "0.0.0.0", end: "255.255.255.255" }, startsOn: now, encryptionScope: encryptionScopeName, - } + }, ); const serviceClientWithSAS = new BlobServiceClient(sasURL); @@ -1973,7 +1973,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { protocol: SASProtocol.HttpsAndHttp, ipRange: { start: "0.0.0.0", end: "255.255.255.255" }, startsOn: now, - } + }, ); const serviceClientWithSAS = new BlobServiceClient(sasURL); @@ -2256,7 +2256,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { const blobClientWithSnapshotAndSAS = new PageBlobClient( sasURL, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureBlobStorageClient(recorder, blobClientWithSnapshotAndSAS); @@ -2292,7 +2292,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { }); const blobClientWithVersionIdAndSAS = new PageBlobClient( sasURL, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureBlobStorageClient(recorder, blobClientWithVersionIdAndSAS); @@ -2346,7 +2346,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { const blobClientWithSnapshotAndSAS = new PageBlobClient( sasURL, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureBlobStorageClient(recorder, blobClientWithSnapshotAndSAS); @@ -2375,7 +2375,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { }); const blobClientWithVersionIdAndSAS = new PageBlobClient( sasURL, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureBlobStorageClient(recorder, blobClientWithVersionIdAndSAS); @@ -2395,7 +2395,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { const containerName = recorder.variable( "container-with-dash", - getUniqueName("container-with-dash") + getUniqueName("container-with-dash"), ); const containerClient = blobServiceClient.getContainerClient(containerName); await containerClient.create(); @@ -2404,8 +2404,8 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { const blobName = recorder.variable( "////Upper/blob/empty /another 汉字 ру́сский язы́к ру́сский язы́к عربي/عربى にっぽんご/にほんご . special ~!@#$%^&*()_+`1234567890-={}|[]\\:\";'<>?,/'+%2F'%25%", getUniqueName( - "////Upper/blob/empty /another 汉字 ру́сский язы́к ру́сский язы́к عربي/عربى にっぽんご/にほんご . special ~!@#$%^&*()_+`1234567890-={}|[]\\:\";'<>?,/'+%2F'%25%" - ) + "////Upper/blob/empty /another 汉字 ру́сский язы́к ру́сский язы́к عربي/عربى にっぽんご/にほんご . special ~!@#$%^&*()_+`1234567890-={}|[]\\:\";'<>?,/'+%2F'%25%", + ), ); const blobClient = containerClient.getPageBlobClient(blobName); await blobClient.create(1024); @@ -2426,21 +2426,21 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { const blobPermission = BlobSASPermissions.parse(orderedBlobPermissionStr); assert.deepStrictEqual( BlobSASPermissions.from(blobPermission).toString(), - orderedBlobPermissionStr + orderedBlobPermissionStr, ); const orderedContainerPermissionStr = "racwdxltme"; const containerPermission = ContainerSASPermissions.parse(orderedContainerPermissionStr); assert.deepStrictEqual( ContainerSASPermissions.from(containerPermission).toString(), - orderedContainerPermissionStr + orderedContainerPermissionStr, ); const orderedAccountPermissionStr = "rwdxftlacup"; const accountPermission = AccountSASPermissions.parse(orderedAccountPermissionStr); assert.deepStrictEqual( AccountSASPermissions.from(accountPermission).toString(), - orderedAccountPermissionStr + orderedAccountPermissionStr, ); }); @@ -2467,7 +2467,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { expiresOn: tmr, permissions: ContainerSASPermissions.parse("racwdl"), }, - sharedKeyCredential + sharedKeyCredential, ); const sasClient = `${containerClient.url}?${containerSAS}`; @@ -2574,7 +2574,7 @@ describe("Generation for user delegation SAS Node.js only", () => { version: "2020-02-10", }, userDelegationKey, - accountName + accountName, ); const blobClientWithSAS = new BlobClient(`${blobClient.url}?${blobSAS}`); @@ -2591,7 +2591,7 @@ describe("Generation for user delegation SAS Node.js only", () => { version: "2020-02-10", }, userDelegationKey, - accountName + accountName, ); const containerClientWithSAS = new ContainerClient(`${containerClient.url}?${sas}`); @@ -2613,7 +2613,7 @@ describe("Generation for user delegation SAS Node.js only", () => { correlationId: guid, }, userDelegationKey, - accountName + accountName, ); const blobClientWithSAS = new BlobClient(`${blobClient.url}?${blobSAS}`); @@ -2660,7 +2660,7 @@ describe("Shared Access Signature (SAS) generation Node.js Only - ImmutabilityPo for (let i = 0; i < listResult.segment.blobItems!.length; ++i) { const deleteBlobClient = containerClient.getBlobClient( - listResult.segment.blobItems[i].name + listResult.segment.blobItems[i].name, ); await deleteBlobClient.setLegalHold(false); await deleteBlobClient.deleteImmutabilityPolicy(); @@ -2689,7 +2689,7 @@ describe("Shared Access Signature (SAS) generation Node.js Only - ImmutabilityPo services: AccountSASServices.parse("btqf").toString(), version: "2020-08-04", }, - blobServiceClient.credential as StorageSharedKeyCredential + blobServiceClient.credential as StorageSharedKeyCredential, ).toString(); const sasClient = `${blobServiceClient.url}?${sas}`; @@ -2711,7 +2711,7 @@ describe("Shared Access Signature (SAS) generation Node.js Only - ImmutabilityPo assert.ok(result.immutabilityPolicyExpiry); assert.equal( result.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); const setLegalHoldResult = await sasBlobClient.setLegalHold(true); @@ -2722,7 +2722,7 @@ describe("Shared Access Signature (SAS) generation Node.js Only - ImmutabilityPo assert.ok(propertiesResult.immutabilityPolicyExpiresOn); assert.equal( propertiesResult.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); assert.ok(propertiesResult.legalHold); }); @@ -2742,7 +2742,7 @@ describe("Shared Access Signature (SAS) generation Node.js Only - ImmutabilityPo protocol: SASProtocol.HttpsAndHttp, version: "2020-08-04", }, - blobServiceClient.credential as StorageSharedKeyCredential + blobServiceClient.credential as StorageSharedKeyCredential, ); const sasContainerClient = new ContainerClient(`${containerClient.url}?${containerSAS}`); configureBlobStorageClient(recorder, sasContainerClient); @@ -2759,7 +2759,7 @@ describe("Shared Access Signature (SAS) generation Node.js Only - ImmutabilityPo assert.ok(result.immutabilityPolicyExpiry); assert.equal( result.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); const setLegalHoldResult = await sasBlobClient.setLegalHold(true); @@ -2770,7 +2770,7 @@ describe("Shared Access Signature (SAS) generation Node.js Only - ImmutabilityPo assert.ok(propertiesResult.immutabilityPolicyExpiresOn); assert.equal( propertiesResult.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); assert.ok(propertiesResult.legalHold); }); @@ -2789,7 +2789,7 @@ describe("Shared Access Signature (SAS) generation Node.js Only - ImmutabilityPo permissions: BlobSASPermissions.parse("i"), version: "2020-08-04", }, - blobServiceClient.credential as StorageSharedKeyCredential + blobServiceClient.credential as StorageSharedKeyCredential, ); const sasBlobClient = new BlobClient(`${blobClient.url}?${blobSAS}`); configureBlobStorageClient(recorder, sasBlobClient); @@ -2805,7 +2805,7 @@ describe("Shared Access Signature (SAS) generation Node.js Only - ImmutabilityPo assert.ok(result.immutabilityPolicyExpiry); assert.equal( result.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); const setLegalHoldResult = await sasBlobClient.setLegalHold(true); @@ -2816,7 +2816,7 @@ describe("Shared Access Signature (SAS) generation Node.js Only - ImmutabilityPo assert.ok(propertiesResult.immutabilityPolicyExpiresOn); assert.equal( propertiesResult.immutabilityPolicyMode, - "unlocked" as BlobImmutabilityPolicyMode | undefined + "unlocked" as BlobImmutabilityPolicyMode | undefined, ); assert.ok(propertiesResult.legalHold); }); diff --git a/sdk/storage/storage-blob/test/node/utils.spec.ts b/sdk/storage/storage-blob/test/node/utils.spec.ts index bde1e6a96bcc..dd711058ebf1 100644 --- a/sdk/storage/storage-blob/test/node/utils.spec.ts +++ b/sdk/storage/storage-blob/test/node/utils.spec.ts @@ -29,30 +29,30 @@ describe("Utility Helpers Node.js only", () => { assert.equal( "AccountConnString", connectionStringParts.kind, - "extractConnectionStringParts().kind is different than expected." + "extractConnectionStringParts().kind is different than expected.", ); assert.equal( blobEndpoint, connectionStringParts.url, - "extractConnectionStringParts().url is different than expected." + "extractConnectionStringParts().url is different than expected.", ); assert.equal( accountName, connectionStringParts.accountName, - "extractConnectionStringParts().accountName is different than expected." + "extractConnectionStringParts().accountName is different than expected.", ); } it("extractConnectionStringParts throws error when passed an invalid protocol in the connection string", async function () { try { extractConnectionStringParts( - "DefaultEndpointsProtocol=a;AccountName=b;AccountKey=c;EndpointSuffix=d" + "DefaultEndpointsProtocol=a;AccountName=b;AccountKey=c;EndpointSuffix=d", ); assert.fail("Expecting an thrown error but didn't get one."); } catch (error: any) { assert.ok( error.message === - "Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'" + "Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'", ); } }); @@ -61,7 +61,7 @@ describe("Utility Helpers Node.js only", () => { try { extractConnectionStringParts( // Typo in the attributes - "DefaultEndpointsProtocol=https;Name=b;AccountKey=c;EndpointSuffix=d" + "DefaultEndpointsProtocol=https;Name=b;AccountKey=c;EndpointSuffix=d", ); assert.fail("Expecting an thrown error but didn't get one."); @@ -69,7 +69,7 @@ describe("Utility Helpers Node.js only", () => { assert.equal( "Invalid AccountName in the provided Connection String", error.message, - "Connection string error message is different than expected" + "Connection string error message is different than expected", ); } }); @@ -77,14 +77,14 @@ describe("Utility Helpers Node.js only", () => { it("extractConnectionStringParts throws error with empty EndpointSuffix in the connection string", async function () { try { extractConnectionStringParts( - "DefaultEndpointsProtocol=https;AccountName=b;AccountKey=cdefg;EndpointSuffix=" + "DefaultEndpointsProtocol=https;AccountName=b;AccountKey=cdefg;EndpointSuffix=", ); assert.fail("Expecting an thrown error but didn't get one."); } catch (error: any) { assert.equal( "Invalid EndpointSuffix in the provided Connection String", error.message, - "Connection string error message is different than expected" + "Connection string error message is different than expected", ); } }); @@ -92,14 +92,14 @@ describe("Utility Helpers Node.js only", () => { it("extractConnectionStringParts throws error with empty AccountKey in the connection string", async function () { try { extractConnectionStringParts( - "DefaultEndpointsProtocol=https;AccountName=b;AccountKey=;EndpointSuffix=d" + "DefaultEndpointsProtocol=https;AccountName=b;AccountKey=;EndpointSuffix=d", ); assert.fail("Expecting an thrown error but didn't get one."); } catch (error: any) { assert.equal( "Invalid AccountKey in the provided Connection String", error.message, - "Connection string error message is different than expected" + "Connection string error message is different than expected", ); } }); @@ -107,14 +107,14 @@ describe("Utility Helpers Node.js only", () => { it("extractConnectionStringParts throws error with empty AccountName in the connection string", async function () { try { extractConnectionStringParts( - "DefaultEndpointsProtocol=https;AccountName=;AccountKey=c;EndpointSuffix=d" + "DefaultEndpointsProtocol=https;AccountName=;AccountKey=c;EndpointSuffix=d", ); assert.fail("Expecting an thrown error but didn't get one."); } catch (error: any) { assert.equal( "Invalid AccountName in the provided Connection String", error.message, - "Connection string error message is different than expected" + "Connection string error message is different than expected", ); } }); @@ -122,14 +122,14 @@ describe("Utility Helpers Node.js only", () => { it("extractConnectionStringParts throws error with empty DefaultEndpointsProtocol in the connection string", async function () { try { extractConnectionStringParts( - "DefaultEndpointsProtocol=;AccountName=b;AccountKey=c;EndpointSuffix=d" + "DefaultEndpointsProtocol=;AccountName=b;AccountKey=c;EndpointSuffix=d", ); assert.fail("Expecting an thrown error but didn't get one."); } catch (error: any) { assert.equal( "Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'", error.message, - "Connection string error message is different than expected" + "Connection string error message is different than expected", ); } }); @@ -142,7 +142,7 @@ describe("Utility Helpers Node.js only", () => { QueueEndpoint=myQueueEndpoint; TableEndpoint=myTableEndpoint; AccountName=${accountName}; - AccountKey=${accountKey}` + AccountKey=${accountKey}`, ); }); @@ -151,7 +151,7 @@ describe("Utility Helpers Node.js only", () => { `DefaultEndpointsProtocol=${protocol}; BlobEndpoint=${blobEndpoint}; AccountName=${accountName}; - AccountKey=${accountKey}` + AccountKey=${accountKey}`, ); }); @@ -160,7 +160,7 @@ describe("Utility Helpers Node.js only", () => { `DefaultEndpointsProtocol=${protocol}; AccountName=${accountName}; AccountKey=${accountKey}; - EndpointSuffix=${endpointSuffix};` + EndpointSuffix=${endpointSuffix};`, ); }); @@ -170,7 +170,7 @@ describe("Utility Helpers Node.js only", () => { constructor( private sizeInBytes: number, private errorInMiddle: boolean = false, - options?: ReadableOptions + options?: ReadableOptions, ) { super(options); } @@ -206,7 +206,7 @@ describe("Utility Helpers Node.js only", () => { assert.equal( file.length, numBytes, - "Local file from readStreamToLocalFile is not the expected length." + "Local file from readStreamToLocalFile is not the expected length.", ); }); @@ -222,7 +222,7 @@ describe("Utility Helpers Node.js only", () => { assert.equal( err.message, "Expected error.", - "readStreamToLocalFile should have rejected on readStream error" + "readStreamToLocalFile should have rejected on readStream error", ); } }); @@ -258,7 +258,7 @@ describe("Utility Helpers Node.js only", () => { if (this._numBytesSent < this._buffer.length) { const bytesToSend = Math.min( this._bytesPerRead, - this._buffer.length - this._numBytesSent + this._buffer.length - this._numBytesSent, ); this.push(this._buffer.slice(this._numBytesSent, this._numBytesSent + bytesToSend)); this._numBytesSent += bytesToSend; @@ -398,7 +398,7 @@ describe("RetriableReadableStream", () => { constructor( private _max: number = counterMax, public index: number = 0, - opt: ReadableOptions = {} + opt: ReadableOptions = {}, ) { super(opt); } diff --git a/sdk/storage/storage-blob/test/pageblobclient.spec.ts b/sdk/storage/storage-blob/test/pageblobclient.spec.ts index 15a804152b12..66b533831153 100644 --- a/sdk/storage/storage-blob/test/pageblobclient.spec.ts +++ b/sdk/storage/storage-blob/test/pageblobclient.spec.ts @@ -236,7 +236,7 @@ describe("PageBlobClient", () => { const rangesDiff = await mdPageBlobClient.getPageRangesDiffForManagedDisks( 0, 1024, - snapshotUrl + snapshotUrl, ); assert.equal(rangesDiff.pageRange![0].offset, 0); @@ -386,7 +386,7 @@ describe("PageBlobClient", () => { for await (const pageRange of pageBlobClient.listPageRangesDiff( 0, 4096, - snapshotResult.snapshot! + snapshotResult.snapshot!, )) { assert.equal(pageRange.start, index * 512); assert.equal(pageRange.end, index * 512 + 511); @@ -509,7 +509,7 @@ describe("PageBlobClient", () => { if ( err instanceof Error && err.message.startsWith( - "The CRC64 value specified in the request did not match with the CRC64 value calculated by the server." + "The CRC64 value specified in the request did not match with the CRC64 value calculated by the server.", ) ) { exceptionCaught = true; @@ -523,7 +523,7 @@ describe("PageBlobClient", () => { const newClient = new PageBlobClient( getSASConnectionStringFromEnvironment(recorder), containerName, - blobName + blobName, ); configureBlobStorageClient(recorder, newClient); @@ -540,7 +540,7 @@ describe("PageBlobClient", () => { assert.equal( "Expecting non-empty strings for containerName and blobName parameters", error.message, - "Error message is different than expected." + "Error message is different than expected.", ); } }); @@ -553,7 +553,7 @@ describe("PageBlobClient", () => { assert.equal( "Expecting non-empty strings for containerName and blobName parameters", error.message, - "Error message is different than expected." + "Error message is different than expected.", ); } }); diff --git a/sdk/storage/storage-blob/test/retrypolicy.spec.ts b/sdk/storage/storage-blob/test/retrypolicy.spec.ts index 209af34ffaec..dfa2fc32fea7 100644 --- a/sdk/storage/storage-blob/test/retrypolicy.spec.ts +++ b/sdk/storage/storage-blob/test/retrypolicy.spec.ts @@ -169,7 +169,7 @@ describe("RetryPolicy", () => { return next(req); }, }, - { afterPhase: "Retry" } + { afterPhase: "Retry" }, ); } diff --git a/sdk/storage/storage-blob/test/specialnaming.spec.ts b/sdk/storage/storage-blob/test/specialnaming.spec.ts index c14ad4eb606c..8b8fb9e3f114 100644 --- a/sdk/storage/storage-blob/test/specialnaming.spec.ts +++ b/sdk/storage/storage-blob/test/specialnaming.spec.ts @@ -58,7 +58,7 @@ describe("Special Naming Tests", () => { const blobName: string = getRecorderUniqueVariable(recorder, "blob empty"); const blockBlobClient = new BlockBlobClient( appendToURLPath(containerClient.url, blobName), - (containerClient as any).pipeline + (containerClient as any).pipeline, ); await blockBlobClient.upload("A", 1); @@ -96,7 +96,7 @@ describe("Special Naming Tests", () => { const blobName: string = getRecorderUniqueVariable(recorder, "////blob/empty /another"); const blockBlobClient = new BlockBlobClient( appendToURLPath(containerClient.url, blobName), - (containerClient as any).pipeline + (containerClient as any).pipeline, ); await blockBlobClient.upload("A", 1); @@ -134,11 +134,11 @@ describe("Special Naming Tests", () => { it("Should work with special container and blob names with dots in blobname", async () => { const blobName: string = recorder.variable( "blobNameWithDots", - getUniqueName("/blobname/./blobname1/../blobname2/blobname3") + getUniqueName("/blobname/./blobname1/../blobname2/blobname3"), ); const blockBlobClient = new BlockBlobClient( appendToURLPath(containerClient.url, blobName), - (containerClient as any).pipeline + (containerClient as any).pipeline, ); await blockBlobClient.upload("A", 1); @@ -161,7 +161,7 @@ describe("Special Naming Tests", () => { const blobName: string = getRecorderUniqueVariable(recorder, "////Upper/blob/empty /another"); const blockBlobClient = new BlockBlobClient( appendToURLPath(containerClient.url, blobName), - (containerClient as any).pipeline + (containerClient as any).pipeline, ); await blockBlobClient.upload("A", 1); @@ -181,7 +181,7 @@ describe("Special Naming Tests", () => { it("Should work with special blob names Chinese characters", async function () { const blobName: string = getRecorderUniqueVariable( recorder, - "////Upper/blob/empty /another 汉字" + "////Upper/blob/empty /another 汉字", ); const blockBlobClient = containerClient.getBlockBlobClient(blobName); @@ -202,11 +202,11 @@ describe("Special Naming Tests", () => { it("Should work with special blob names Chinese characters in URL string", async function () { const blobName: string = getRecorderUniqueVariable( recorder, - "////Upper/blob/empty /another 汉字" + "////Upper/blob/empty /another 汉字", ); const blockBlobClient = new BlockBlobClient( appendToURLPath(containerClient.url, blobName), - (containerClient as any).pipeline + (containerClient as any).pipeline, ); await blockBlobClient.upload("A", 1); @@ -226,7 +226,7 @@ describe("Special Naming Tests", () => { it("Should work with special blob name characters", async function () { const blobName = getRecorderUniqueVariable( recorder, - "汉字. special ~!@#$%^&*()_+`1234567890-={}|[]\\:\";'<>?,/'" + "汉字. special ~!@#$%^&*()_+`1234567890-={}|[]\\:\";'<>?,/'", ); const blockBlobClient = containerClient.getBlockBlobClient(blobName); @@ -248,11 +248,11 @@ describe("Special Naming Tests", () => { it("Should work with special blob name characters in URL string", async function () { const blobName = getRecorderUniqueVariable( recorder, - "汉字. special ~!@#$%^&*()_+`1234567890-={}|[]\\:\";'<>?,/'" + "汉字. special ~!@#$%^&*()_+`1234567890-={}|[]\\:\";'<>?,/'", ); const blockBlobClient = new BlockBlobClient( appendToURLPath(containerClient.url, EscapePath(blobName)), - (containerClient as any).pipeline + (containerClient as any).pipeline, ); await blockBlobClient.upload("A", 1); @@ -311,7 +311,7 @@ describe("Special Naming Tests", () => { const blobName: string = getRecorderUniqueVariable(recorder, "ру́сский язы́к"); const blockBlobClient = new BlockBlobClient( appendToURLPath(containerClient.url, blobName), - (containerClient as any).pipeline + (containerClient as any).pipeline, ); await blockBlobClient.upload("A", 1); @@ -369,7 +369,7 @@ describe("Special Naming Tests", () => { const blobName: string = getRecorderUniqueVariable(recorder, "عربي/عربى"); const blockBlobClient = new BlockBlobClient( appendToURLPath(containerClient.url, blobName), - (containerClient as any).pipeline + (containerClient as any).pipeline, ); await blockBlobClient.upload("A", 1); @@ -427,7 +427,7 @@ describe("Special Naming Tests", () => { const blobName: string = getRecorderUniqueVariable(recorder, "にっぽんご/にほんご"); const blockBlobClient = new BlockBlobClient( appendToURLPath(containerClient.url, blobName), - (containerClient as any).pipeline + (containerClient as any).pipeline, ); await blockBlobClient.upload("A", 1); diff --git a/sdk/storage/storage-blob/test/utils.spec.ts b/sdk/storage/storage-blob/test/utils.spec.ts index 471c8a5d1748..9a10f3e8660f 100644 --- a/sdk/storage/storage-blob/test/utils.spec.ts +++ b/sdk/storage/storage-blob/test/utils.spec.ts @@ -24,17 +24,17 @@ describe("Utility Helpers", () => { assert.equal( "SASConnString", connectionStringParts.kind, - "extractConnectionStringParts().kind is different than expected." + "extractConnectionStringParts().kind is different than expected.", ); assert.equal( blobEndpoint, connectionStringParts.url, - "extractConnectionStringParts().url is different than expected." + "extractConnectionStringParts().url is different than expected.", ); assert.equal( accountName, connectionStringParts.accountName, - "extractConnectionStringParts().accountName is different than expected." + "extractConnectionStringParts().accountName is different than expected.", ); } @@ -42,35 +42,35 @@ describe("Utility Helpers", () => { assert.equal(setURLParameter("http://test.com/", "a", "b"), "http://test.com/?a=b"); assert.equal( setURLParameter("http://test.com/container/blob", "a", "b"), - "http://test.com/container/blob?a=b" + "http://test.com/container/blob?a=b", ); assert.equal( setURLParameter("http://test.com/container/blob?a=b", "a", ""), - "http://test.com/container/blob" + "http://test.com/container/blob", ); assert.equal( setURLParameter("http://test.com/container/blob?a=b", "a"), - "http://test.com/container/blob" + "http://test.com/container/blob", ); assert.equal( setURLParameter("http://test.com/container/blob?a=b", "a", "c"), - "http://test.com/container/blob?a=c" + "http://test.com/container/blob?a=c", ); assert.equal( setURLParameter("http://test.com/container/blob?a=b", "c", "d"), - "http://test.com/container/blob?a=b&c=d" + "http://test.com/container/blob?a=b&c=d", ); assert.equal( setURLParameter("http://test.com/container/blob?a=b", "c", ""), - "http://test.com/container/blob?a=b" + "http://test.com/container/blob?a=b", ); assert.equal( setURLParameter( "http://test.com/container/blob", "versionid", - "2022-12-10T19:55:31.5767937Z" + "2022-12-10T19:55:31.5767937Z", ), - "http://test.com/container/blob?versionid=2022-12-10T19%3A55%3A31.5767937Z" + "http://test.com/container/blob?versionid=2022-12-10T19%3A55%3A31.5767937Z", ); }); @@ -91,20 +91,20 @@ describe("Utility Helpers", () => { const sanitized = sanitizeHeaders(headers); assert.ok( sanitized.get("x-ms-copy-source")!.indexOf("sasstring") === -1, - "Expecting SAS string to be redacted." + "Expecting SAS string to be redacted.", ); assert.ok( sanitized.get("x-ms-copy-source")!.indexOf("*****") !== -1, - "Expecting SAS string to be redacted." + "Expecting SAS string to be redacted.", ); assert.ok( sanitized.get("authorization")! === "*****", - "Expecting authorization header value to be redacted." + "Expecting authorization header value to be redacted.", ); assert.ok( sanitized.get("otherheader")!.indexOf("sasstring") !== -1, - "Other header should not be changed." + "Other header should not be changed.", ); }); @@ -112,7 +112,7 @@ describe("Utility Helpers", () => { verifySASConnectionString( `BlobEndpoint=${blobEndpoint}; FileEndpoint=https://storagesample.file.core.windows.net; - SharedAccessSignature=${sharedAccessSignature}` + SharedAccessSignature=${sharedAccessSignature}`, ); }); @@ -120,7 +120,7 @@ describe("Utility Helpers", () => { verifySASConnectionString( `BlobEndpoint=${blobEndpoint}; FileEndpoint=https://storagesample.file.core.windows.net; - SharedAccessSignature=${sharedAccessSignature}` + SharedAccessSignature=${sharedAccessSignature}`, ); }); @@ -131,17 +131,17 @@ describe("Utility Helpers", () => { assert.equal( "SASConnString", connectionStringParts.kind, - "extractConnectionStringParts().kind is different than expected." + "extractConnectionStringParts().kind is different than expected.", ); assert.equal( customDomainBlobEndpoint, connectionStringParts.url, - "extractConnectionStringParts().url is different than expected." + "extractConnectionStringParts().url is different than expected.", ); assert.equal( "", connectionStringParts.accountName, - "extractConnectionStringParts().accountName is different than expected." + "extractConnectionStringParts().accountName is different than expected.", ); }); @@ -153,17 +153,17 @@ describe("Utility Helpers", () => { assert.equal( "SASConnString", connectionStringParts.kind, - "extractConnectionStringParts().kind is different than expected." + "extractConnectionStringParts().kind is different than expected.", ); assert.equal( localDomain, connectionStringParts.url, - "extractConnectionStringParts().url is different than expected." + "extractConnectionStringParts().url is different than expected.", ); assert.equal( "devstoreaccount1", connectionStringParts.accountName, - "extractConnectionStringParts().accountName is different than expected." + "extractConnectionStringParts().accountName is different than expected.", ); }); @@ -175,17 +175,17 @@ describe("Utility Helpers", () => { assert.equal( "SASConnString", connectionStringParts.kind, - "extractConnectionStringParts().kind is different than expected." + "extractConnectionStringParts().kind is different than expected.", ); assert.equal( localDomain, connectionStringParts.url, - "extractConnectionStringParts().url is different than expected." + "extractConnectionStringParts().url is different than expected.", ); assert.equal( "", connectionStringParts.accountName, - "extractConnectionStringParts().accountName is different than expected." + "extractConnectionStringParts().accountName is different than expected.", ); }); @@ -198,36 +198,36 @@ describe("Utility Helpers", () => { assert.equal( "SASConnString", connectionStringParts.kind, - "extractConnectionStringParts().kind is different than expected." + "extractConnectionStringParts().kind is different than expected.", ); assert.equal( localDomain, connectionStringParts.url, - "extractConnectionStringParts().url is different than expected." + "extractConnectionStringParts().url is different than expected.", ); assert.equal( localAccountName, connectionStringParts.accountName, - "extractConnectionStringParts().accountName is different than expected." + "extractConnectionStringParts().accountName is different than expected.", ); }); it("isIpEndpointStyle", async function () { assert.equal( isIpEndpointStyle(new URL("https://192.0.0.10:1900/accountName/containerName/blobName")), - true + true, ); assert.equal( isIpEndpointStyle( new URL( - "https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/accountName/containerName/blobName" - ) + "https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/accountName/containerName/blobName", + ), ), - true + true, ); assert.equal( isIpEndpointStyle(new URL("https://localhost:80/accountName/containerName/blobName")), - true + true, ); assert.equal(isIpEndpointStyle(new URL("https://192.0.0.10:1900/")), true); @@ -235,9 +235,9 @@ describe("Utility Helpers", () => { assert.equal( isIpEndpointStyle( - new URL("https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]/accountName/containerName") + new URL("https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]/accountName/containerName"), ), - true + true, ); assert.equal(isIpEndpointStyle(new URL("https://[::1]")), true); assert.equal(isIpEndpointStyle(new URL("https://a.b.c.d")), false); diff --git a/sdk/storage/storage-blob/test/utils/index.browser.ts b/sdk/storage/storage-blob/test/utils/index.browser.ts index a5a3bd4a9533..d8f06f96741e 100644 --- a/sdk/storage/storage-blob/test/utils/index.browser.ts +++ b/sdk/storage/storage-blob/test/utils/index.browser.ts @@ -17,7 +17,7 @@ export function getGenericBSU( recorder: Recorder, accountType: string, accountNameSuffix: string = "", - pipelineOptions: StoragePipelineOptions = {} + pipelineOptions: StoragePipelineOptions = {}, ): BlobServiceClient { const accountNameEnvVar = `${accountType}ACCOUNT_NAME`; const accountSASEnvVar = `${accountType}ACCOUNT_SAS`; @@ -27,7 +27,7 @@ export function getGenericBSU( if (!accountName || !accountSAS) { throw new Error( - `${accountNameEnvVar} and/or ${accountSASEnvVar} environment variables not specified.` + `${accountNameEnvVar} and/or ${accountSASEnvVar} environment variables not specified.`, ); } @@ -108,7 +108,7 @@ export function getImmutableContainerName(): string { export function getBSU( recorder: Recorder, - pipelineOptions: StoragePipelineOptions = {} + pipelineOptions: StoragePipelineOptions = {}, ): BlobServiceClient { return getGenericBSU(recorder, "", undefined, pipelineOptions); } @@ -129,7 +129,7 @@ export async function bodyToString( readableStreamBody?: NodeJS.ReadableStream; blobBody?: Promise; }, - _length?: number + _length?: number, ): Promise { const blob = await response.blobBody!; return blobToString(blob); diff --git a/sdk/storage/storage-blob/test/utils/index.ts b/sdk/storage/storage-blob/test/utils/index.ts index b6fe666f2985..c49726700cce 100644 --- a/sdk/storage/storage-blob/test/utils/index.ts +++ b/sdk/storage/storage-blob/test/utils/index.ts @@ -35,7 +35,7 @@ export function getGenericCredential(accountType: string): StorageSharedKeyCrede if (!accountName || !accountKey || accountName === "" || accountKey === "") { throw new Error( - `${accountNameEnvVar} and/or ${accountKeyEnvVar} environment variables not specified.` + `${accountNameEnvVar} and/or ${accountKeyEnvVar} environment variables not specified.`, ); } @@ -68,7 +68,7 @@ export function getGenericBSU( recorder: Recorder, accountType: string, accountNameSuffix: string = "", - pipelineOptions: StoragePipelineOptions = {} + pipelineOptions: StoragePipelineOptions = {}, ): BlobServiceClient { if ( env.STORAGE_CONNECTION_STRING && @@ -119,7 +119,7 @@ export function getTokenBSUWithDefaultCredential( recorder: Recorder, pipelineOptions: StoragePipelineOptions = {}, accountType: string = "", - accountNameSuffix: string = "" + accountNameSuffix: string = "", ): BlobServiceClient { const accountNameEnvVar = `${accountType}ACCOUNT_NAME`; const accountName = env[accountNameEnvVar]; @@ -144,7 +144,7 @@ export async function getStorageAccessTokenWithDefaultCredential(): Promise; }, - length?: number + length?: number, ): Promise { return new Promise((resolve, reject) => { response.readableStreamBody!.on("readable", () => { @@ -207,12 +207,12 @@ export async function bodyToString( export async function createRandomLocalFile( folder: string, blockNumber: number, - blockContent: Buffer + blockContent: Buffer, ): Promise; export async function createRandomLocalFile( folder: string, blockNumber: number, - blockSize: number + blockSize: number, ): Promise; // Total file size = (blockNumber -1)*blockSize + lastBlockSize @@ -220,13 +220,13 @@ export async function createRandomLocalFile( folder: string, blockNumber: number, blockSize: number, - lastBlockSize: number + lastBlockSize: number, ): Promise; export async function createRandomLocalFile( folder: string, blockNumber: number, blockSizeOrContent: number | Buffer, - lastBlockSize: number = 0 + lastBlockSize: number = 0, ): Promise { return new Promise((resolve, reject) => { const destFile = path.join(folder, getUniqueName("tempfile.")); @@ -273,7 +273,7 @@ export async function createRandomLocalFile( export async function createRandomLocalFileWithTotalSize( folder: string, totalSize: number, - blockSize?: number + blockSize?: number, ): Promise { if (blockSize === undefined || isNaN(blockSize) || blockSize <= 0) { blockSize = 1024 * 1024; @@ -304,16 +304,16 @@ export function getSASConnectionStringFromEnvironment(recorder: Recorder): strin startsOn: now, version: "2020-08-04", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const blobEndpoint = extractConnectionStringParts(getConnectionStringFromEnvironment()).url; return `BlobEndpoint=${blobEndpoint}/;QueueEndpoint=${blobEndpoint.replace( ".blob.", - ".queue." + ".queue.", )}/;FileEndpoint=${blobEndpoint.replace( ".queue.", - ".file." + ".file.", )}/;TableEndpoint=${blobEndpoint.replace(".queue.", ".table.")}/;SharedAccessSignature=${sas}`; } diff --git a/sdk/storage/storage-blob/test/utils/testutils.common.ts b/sdk/storage/storage-blob/test/utils/testutils.common.ts index 46e1489baf29..6add72bdd67f 100644 --- a/sdk/storage/storage-blob/test/utils/testutils.common.ts +++ b/sdk/storage/storage-blob/test/utils/testutils.common.ts @@ -182,7 +182,7 @@ export class SimpleTokenCredential implements TokenCredential { */ async getToken( _scopes: string | string[], - _options?: GetTokenOptions + _options?: GetTokenOptions, ): Promise { return { token: this.token, @@ -199,7 +199,7 @@ export function getUniqueName(prefix: string): string { return `${prefix}${new Date().getTime()}${padStart( Math.floor(Math.random() * 10000).toString(), 5, - "00000" + "00000", )}`; } diff --git a/sdk/storage/storage-blob/test/utils/testutils.node.ts b/sdk/storage/storage-blob/test/utils/testutils.node.ts index 4cb0ba3b946f..32e64c008fb7 100644 --- a/sdk/storage/storage-blob/test/utils/testutils.node.ts +++ b/sdk/storage/storage-blob/test/utils/testutils.node.ts @@ -18,7 +18,7 @@ const pipeline = util.promisify(stream.pipeline); */ export async function readStreamToLocalFileWithLogs( rs: NodeJS.ReadableStream, - file: string + file: string, ): Promise { const ws = fs.createWriteStream(file); diff --git a/sdk/storage/storage-file-datalake/execute-samples.js b/sdk/storage/storage-file-datalake/execute-samples.js index 248726dac9bd..b07710daa53b 100644 --- a/sdk/storage/storage-file-datalake/execute-samples.js +++ b/sdk/storage/storage-file-datalake/execute-samples.js @@ -21,7 +21,7 @@ const { g, y, r, b } = [ ...cols, [col[0]]: (f) => `\x1b[3${col[1]}m${f}\x1b[0m`, }), - {} + {}, ); // Executes `cmd` in `cwd`(directory). diff --git a/sdk/storage/storage-file-datalake/package.json b/sdk/storage/storage-file-datalake/package.json index fd0e4c1a4379..eaa9fc748e01 100644 --- a/sdk/storage/storage-file-datalake/package.json +++ b/sdk/storage/storage-file-datalake/package.json @@ -31,12 +31,12 @@ "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", "build:samples": "echo Obsolete.", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types temp statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml", "clean:samples": "rimraf samples/v12/javascript/node_modules samples/v12/typescript/node_modules samples/v12/typescript/dist samples/v12/typescript/package-lock.json samples/v12/javascript/package-lock.json", "extract-api": "tsc -p . && api-extractor run --local", "execute:samples": "dev-tool samples run samples-dev", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/storage-file-datalake/test/*.spec.js' 'dist-esm/storage-file-datalake/test/node/*.spec.js'", @@ -154,7 +154,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.0", "sinon": "^17.0.0", diff --git a/sdk/storage/storage-file-datalake/samples-dev/dataLakeServiceClient.ts b/sdk/storage/storage-file-datalake/samples-dev/dataLakeServiceClient.ts index 361a69876436..2d0f75f9bffc 100644 --- a/sdk/storage/storage-file-datalake/samples-dev/dataLakeServiceClient.ts +++ b/sdk/storage/storage-file-datalake/samples-dev/dataLakeServiceClient.ts @@ -44,7 +44,7 @@ export async function main() { const serviceClient = new DataLakeServiceClient( // When using AnonymousCredential, following url should include a valid SAS or support public access `https://${account}.dfs.core.windows.net`, - sharedKeyCredential + sharedKeyCredential, ); console.log("File Systems:"); @@ -58,7 +58,7 @@ export async function main() { const fileSystemResponse = await fileSystemClient.create(); console.log( - `Created file system ${fileSystemClient.name} successfully, request ID: ${fileSystemResponse.requestId}` + `Created file system ${fileSystemClient.name} successfully, request ID: ${fileSystemResponse.requestId}`, ); // Create a file diff --git a/sdk/storage/storage-file-datalake/src/DataLakeFileSystemClient.ts b/sdk/storage/storage-file-datalake/src/DataLakeFileSystemClient.ts index 424a1885682f..ac95c8f1d8d2 100644 --- a/sdk/storage/storage-file-datalake/src/DataLakeFileSystemClient.ts +++ b/sdk/storage/storage-file-datalake/src/DataLakeFileSystemClient.ts @@ -95,7 +95,7 @@ export class DataLakeFileSystemClient extends StorageClient { credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ); /** @@ -118,7 +118,7 @@ export class DataLakeFileSystemClient extends StorageClient { | Pipeline, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ) { if (credentialOrPipeline instanceof Pipeline) { super(url, credentialOrPipeline); @@ -158,7 +158,7 @@ export class DataLakeFileSystemClient extends StorageClient { public getDirectoryClient(directoryName: string): DataLakeDirectoryClient { return new DataLakeDirectoryClient( appendToURLPath(this.url, EscapePath(directoryName)), - this.pipeline + this.pipeline, ); } @@ -201,7 +201,7 @@ export class DataLakeFileSystemClient extends StorageClient { tracingOptions: updatedOptions.tracingOptions, containerEncryptionScope: options.fileSystemEncryptionScope, }); - } + }, ); } @@ -214,7 +214,7 @@ export class DataLakeFileSystemClient extends StorageClient { * @param options - */ public async createIfNotExists( - options: FileSystemCreateOptions = {} + options: FileSystemCreateOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakeFileSystemClient-createIfNotExists", @@ -226,7 +226,7 @@ export class DataLakeFileSystemClient extends StorageClient { containerEncryptionScope: options.fileSystemEncryptionScope, tracingOptions: updatedOptions.tracingOptions, }); - } + }, ); } @@ -245,7 +245,7 @@ export class DataLakeFileSystemClient extends StorageClient { options, async (updatedOptions) => { return this.blobContainerClient.exists(updatedOptions); - } + }, ); } @@ -265,7 +265,7 @@ export class DataLakeFileSystemClient extends StorageClient { ...options, tracingOptions: updatedOptions.tracingOptions, }); - } + }, ); } @@ -277,14 +277,14 @@ export class DataLakeFileSystemClient extends StorageClient { * @param options - */ public async deleteIfExists( - options: FileSystemDeleteOptions = {} + options: FileSystemDeleteOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakeFileSystemClient-deleteIfExists", options, async (updatedOptions) => { return this.blobContainerClient.deleteIfExists(updatedOptions); - } + }, ); } @@ -302,7 +302,7 @@ export class DataLakeFileSystemClient extends StorageClient { * @param options - Optional. Options when getting file system properties. */ public async getProperties( - options: FileSystemGetPropertiesOptions = {} + options: FileSystemGetPropertiesOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakeFileSystemClient-getProperties", @@ -323,7 +323,7 @@ export class DataLakeFileSystemClient extends StorageClient { delete rawResponse._response.parsedHeaders.blobPublicAccess; return response; - } + }, ); } @@ -341,7 +341,7 @@ export class DataLakeFileSystemClient extends StorageClient { */ public async setMetadata( metadata?: Metadata, - options: FileSystemSetMetadataOptions = {} + options: FileSystemSetMetadataOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakeFileSystemClient-setMetadata", @@ -351,7 +351,7 @@ export class DataLakeFileSystemClient extends StorageClient { ...options, tracingOptions: updatedOptions.tracingOptions, }); - } + }, ); } @@ -367,7 +367,7 @@ export class DataLakeFileSystemClient extends StorageClient { * @param options - Optional. Options when getting file system access policy. */ public async getAccessPolicy( - options: FileSystemGetAccessPolicyOptions = {} + options: FileSystemGetAccessPolicyOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakeFileSystemClient-getAccessPolicy", @@ -388,7 +388,7 @@ export class DataLakeFileSystemClient extends StorageClient { delete rawResponse._response.parsedHeaders.blobPublicAccess; return response; - } + }, ); } @@ -409,7 +409,7 @@ export class DataLakeFileSystemClient extends StorageClient { public async setAccessPolicy( access?: PublicAccessType, fileSystemAcl?: SignedIdentifier[], - options: FileSystemSetAccessPolicyOptions = {} + options: FileSystemSetAccessPolicyOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakeFileSystemClient-setAccessPolicy", @@ -421,9 +421,9 @@ export class DataLakeFileSystemClient extends StorageClient { { ...options, tracingOptions: updatedOptions.tracingOptions, - } + }, ); - } + }, ); } @@ -499,7 +499,7 @@ export class DataLakeFileSystemClient extends StorageClient { * @param options - Optional. Options when listing paths. */ public listPaths( - options: ListPathsOptions = {} + options: ListPathsOptions = {}, ): PagedAsyncIterableIterator { options.path = options.path === "" ? undefined : options.path; @@ -528,7 +528,7 @@ export class DataLakeFileSystemClient extends StorageClient { private async *listSegments( continuation?: string, - options: ListPathsSegmentOptions = {} + options: ListPathsSegmentOptions = {}, ): AsyncIterableIterator { let response; if (!!continuation || continuation === undefined) { @@ -542,7 +542,7 @@ export class DataLakeFileSystemClient extends StorageClient { private async listPathsSegment( continuation?: string, - options: ListPathsSegmentOptions = {} + options: ListPathsSegmentOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakeFileSystemClient-listPathsSegment", @@ -567,7 +567,7 @@ export class DataLakeFileSystemClient extends StorageClient { delete rawResponse.paths; return response; - } + }, ); } @@ -643,7 +643,7 @@ export class DataLakeFileSystemClient extends StorageClient { * @param options - Optional. Options when listing deleted paths. */ public listDeletedPaths( - options: ListDeletedPathsOptions = {} + options: ListDeletedPathsOptions = {}, ): PagedAsyncIterableIterator { const iter = this.listDeletedItems(options); return { @@ -662,7 +662,7 @@ export class DataLakeFileSystemClient extends StorageClient { }; } private async *listDeletedItems( - options: ListDeletedPathsOptions = {} + options: ListDeletedPathsOptions = {}, ): AsyncIterableIterator { for await (const response of this.listDeletedSegments(undefined, options)) { yield* response.pathItems || []; @@ -671,7 +671,7 @@ export class DataLakeFileSystemClient extends StorageClient { private async *listDeletedSegments( continuation?: string, - options: ListDeletedPathsSegmentOptions = {} + options: ListDeletedPathsSegmentOptions = {}, ): AsyncIterableIterator { let response; if (!!continuation || continuation === undefined) { @@ -685,7 +685,7 @@ export class DataLakeFileSystemClient extends StorageClient { private async listDeletedPathsSegment( continuation?: string, - options: ListDeletedPathsSegmentOptions = {} + options: ListDeletedPathsSegmentOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakeFileSystemClient-listDeletedPathsSegment", @@ -713,7 +713,7 @@ export class DataLakeFileSystemClient extends StorageClient { } return response; - } + }, ); } @@ -731,7 +731,7 @@ export class DataLakeFileSystemClient extends StorageClient { public async undeletePath( deletedPath: string, deletionId: string, - options: FileSystemUndeletePathOption = {} + options: FileSystemUndeletePathOption = {}, ): Promise { return tracingClient.withSpan( "DataLakeFileSystemClient-undeletePath", @@ -739,7 +739,7 @@ export class DataLakeFileSystemClient extends StorageClient { async (updatedOptions) => { const pathClient = new PathClientInternal( appendToURLPath(this.blobEndpointUrl, EscapePath(deletedPath)), - this.pipeline + this.pipeline, ); const rawResponse = assertResponse( @@ -747,7 +747,7 @@ export class DataLakeFileSystemClient extends StorageClient { undeleteSource: "?" + DeletionIdKey + "=" + deletionId, ...options, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); if (rawResponse.resourceType === PathResultTypeConstants.DirectoryResourceType) { @@ -761,7 +761,7 @@ export class DataLakeFileSystemClient extends StorageClient { ...rawResponse, }; } - } + }, ); } @@ -780,7 +780,7 @@ export class DataLakeFileSystemClient extends StorageClient { return new Promise((resolve) => { if (!(this.credential instanceof StorageSharedKeyCredential)) { throw RangeError( - "Can only generate the SAS when the client is initialized with a shared key credential" + "Can only generate the SAS when the client is initialized with a shared key credential", ); } @@ -789,7 +789,7 @@ export class DataLakeFileSystemClient extends StorageClient { fileSystemName: this.name, ...options, }, - this.credential + this.credential, ).toString(); resolve(appendToURLQuery(this.url, sas)); diff --git a/sdk/storage/storage-file-datalake/src/DataLakeLeaseClient.ts b/sdk/storage/storage-file-datalake/src/DataLakeLeaseClient.ts index 9c3d945d8c2d..4e6679abfc4e 100644 --- a/sdk/storage/storage-file-datalake/src/DataLakeLeaseClient.ts +++ b/sdk/storage/storage-file-datalake/src/DataLakeLeaseClient.ts @@ -18,7 +18,7 @@ export class DataLakeLeaseClient { public async acquireLease( duration: number, - options: LeaseOperationOptions = {} + options: LeaseOperationOptions = {}, ): Promise { options.conditions = options.conditions || {}; return tracingClient.withSpan( @@ -26,13 +26,13 @@ export class DataLakeLeaseClient { options, async (updatedOptions) => { return this.client.acquireLease(duration, updatedOptions); - } + }, ); } public async changeLease( proposedLeaseId: string, - options: LeaseOperationOptions = {} + options: LeaseOperationOptions = {}, ): Promise { options.conditions = options.conditions || {}; return tracingClient.withSpan( @@ -40,7 +40,7 @@ export class DataLakeLeaseClient { options, async (updatedOptions) => { return this.client.changeLease(proposedLeaseId, updatedOptions); - } + }, ); } @@ -51,7 +51,7 @@ export class DataLakeLeaseClient { options, async (updatedOptions) => { return this.client.releaseLease(updatedOptions); - } + }, ); } @@ -62,13 +62,13 @@ export class DataLakeLeaseClient { options, async (updatedOptions) => { return this.client.renewLease(updatedOptions); - } + }, ); } public async breakLease( breakPeriod: number, - options: LeaseOperationOptions = {} + options: LeaseOperationOptions = {}, ): Promise { options.conditions = options.conditions || {}; return tracingClient.withSpan( @@ -76,7 +76,7 @@ export class DataLakeLeaseClient { options, async (updatedOptions) => { return this.client.breakLease(breakPeriod, updatedOptions); - } + }, ); } } diff --git a/sdk/storage/storage-file-datalake/src/DataLakeServiceClient.ts b/sdk/storage/storage-file-datalake/src/DataLakeServiceClient.ts index 27a1bbc76b79..cb856707444d 100644 --- a/sdk/storage/storage-file-datalake/src/DataLakeServiceClient.ts +++ b/sdk/storage/storage-file-datalake/src/DataLakeServiceClient.ts @@ -75,7 +75,7 @@ export class DataLakeServiceClient extends StorageClient { connectionString: string, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ): DataLakeServiceClient { options = options || {}; const extractedCreds = extractConnectionStringParts(connectionString); @@ -83,7 +83,7 @@ export class DataLakeServiceClient extends StorageClient { if (isNode) { const sharedKeyCredential = new StorageSharedKeyCredential( extractedCreds.accountName!, - extractedCreds.accountKey + extractedCreds.accountKey, ); if (!options.proxyOptions) { options.proxyOptions = getDefaultProxySettings(extractedCreds.proxyUri); @@ -97,11 +97,11 @@ export class DataLakeServiceClient extends StorageClient { const pipeline = newPipeline(new AnonymousCredential(), options); return new DataLakeServiceClient( toDfsEndpointUrl(extractedCreds.url) + "?" + extractedCreds.accountSas, - pipeline + pipeline, ); } else { throw new Error( - "Connection string must be either an Account connection string or a SAS connection string" + "Connection string must be either an Account connection string or a SAS connection string", ); } } @@ -120,7 +120,7 @@ export class DataLakeServiceClient extends StorageClient { credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ); /** @@ -143,7 +143,7 @@ export class DataLakeServiceClient extends StorageClient { | Pipeline, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ) { if (credentialOrPipeline instanceof Pipeline) { super(url, credentialOrPipeline); @@ -173,7 +173,7 @@ export class DataLakeServiceClient extends StorageClient { public getFileSystemClient(fileSystemName: string): DataLakeFileSystemClient { return new DataLakeFileSystemClient( appendToURLPath(this.url, encodeURIComponent(fileSystemName)), - this.pipeline + this.pipeline, ); } @@ -209,14 +209,14 @@ export class DataLakeServiceClient extends StorageClient { public async getUserDelegationKey( startsOn: Date, expiresOn: Date, - options: ServiceGetUserDelegationKeyOptions = {} + options: ServiceGetUserDelegationKeyOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakeServiceClient-getUserDelegationKey", options, async (updatedOptions) => { return this.blobServiceClient.getUserDelegationKey(startsOn, expiresOn, updatedOptions); - } + }, ); } @@ -296,7 +296,7 @@ export class DataLakeServiceClient extends StorageClient { * @param options - */ public listFileSystems( - options: ServiceListFileSystemsOptions = {} + options: ServiceListFileSystemsOptions = {}, ): PagedAsyncIterableIterator { return toFileSystemPagedAsyncIterableIterator(this.blobServiceClient.listContainers(options)); } @@ -327,11 +327,11 @@ export class DataLakeServiceClient extends StorageClient { expiresOn?: Date, permissions: AccountSASPermissions = AccountSASPermissions.parse("r"), resourceTypes: string = "sco", - options: ServiceGenerateAccountSasUrlOptions = {} + options: ServiceGenerateAccountSasUrlOptions = {}, ): string { if (!(this.credential instanceof StorageSharedKeyCredential)) { throw RangeError( - "Can only generate the account SAS when the client is initialized with a shared key credential" + "Can only generate the account SAS when the client is initialized with a shared key credential", ); } @@ -348,7 +348,7 @@ export class DataLakeServiceClient extends StorageClient { services: AccountSASServices.parse("b").toString(), ...options, }, - this.credential + this.credential, ).toString(); return appendToURLQuery(this.url, sas); @@ -366,7 +366,7 @@ export class DataLakeServiceClient extends StorageClient { private async renameFileSystem( sourceFileSystemName: string, destinationFileSystemName: string, - options: ServiceRenameFileSystemOptions = {} + options: ServiceRenameFileSystemOptions = {}, ): Promise<{ fileSystemClient: DataLakeFileSystemClient; fileSystemRenameResponse: FileSystemRenameResponse; @@ -378,7 +378,7 @@ export class DataLakeServiceClient extends StorageClient { const res = await this.blobServiceClient["renameContainer"]( sourceFileSystemName, destinationFileSystemName, - updatedOptions + updatedOptions, ); const fileSystemClient = this.getFileSystemClient(destinationFileSystemName); @@ -386,7 +386,7 @@ export class DataLakeServiceClient extends StorageClient { fileSystemClient, fileSystemRenameResponse: res.containerRenameResponse, }; - } + }, ); } @@ -401,7 +401,7 @@ export class DataLakeServiceClient extends StorageClient { public async undeleteFileSystem( deletedFileSystemName: string, deleteFileSystemVersion: string, - options: ServiceUndeleteFileSystemOptions = {} + options: ServiceUndeleteFileSystemOptions = {}, ): Promise<{ fileSystemClient: DataLakeFileSystemClient; fileSystemUndeleteResponse: FileSystemUndeleteResponse; @@ -417,17 +417,17 @@ export class DataLakeServiceClient extends StorageClient { ...options, destinationContainerName: options.destinationFileSystemName, tracingOptions: updatedOptions.tracingOptions, - } + }, ); const fileSystemClient = this.getFileSystemClient( - options.destinationFileSystemName || deletedFileSystemName + options.destinationFileSystemName || deletedFileSystemName, ); return { fileSystemClient, fileSystemUndeleteResponse: res.containerUndeleteResponse, }; - } + }, ); } @@ -440,7 +440,7 @@ export class DataLakeServiceClient extends StorageClient { * @returns Response data for the Service Get Properties operation. */ public async getProperties( - options: ServiceGetPropertiesOptions = {} + options: ServiceGetPropertiesOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakeServiceClient-getProperties", @@ -450,7 +450,7 @@ export class DataLakeServiceClient extends StorageClient { abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, }); - } + }, ); } @@ -465,7 +465,7 @@ export class DataLakeServiceClient extends StorageClient { */ public async setProperties( properties: DataLakeServiceProperties, - options: ServiceSetPropertiesOptions = {} + options: ServiceSetPropertiesOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakeServiceClient-setProperties", @@ -475,7 +475,7 @@ export class DataLakeServiceClient extends StorageClient { abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, }); - } + }, ); } } diff --git a/sdk/storage/storage-file-datalake/src/StorageClient.ts b/sdk/storage/storage-file-datalake/src/StorageClient.ts index 2bd965699301..bac2e48a9c3c 100644 --- a/sdk/storage/storage-file-datalake/src/StorageClient.ts +++ b/sdk/storage/storage-file-datalake/src/StorageClient.ts @@ -101,12 +101,12 @@ export abstract class StorageClient { const blobClient = new BlobServiceClient(url, pipeline); this.storageClientContext = new StorageContextClient( this.dfsEndpointUrl, - getCoreClientOptions(pipeline) + getCoreClientOptions(pipeline), ); this.storageClientContextToBlobEndpoint = new StorageContextClient( this.blobEndpointUrl, - getCoreClientOptions(pipeline) + getCoreClientOptions(pipeline), ); this.isHttps = iEqual(getURLScheme(this.url) || "", "https"); diff --git a/sdk/storage/storage-file-datalake/src/StorageContextClient.ts b/sdk/storage/storage-file-datalake/src/StorageContextClient.ts index fb7ef16e93ec..d4d01614f909 100644 --- a/sdk/storage/storage-file-datalake/src/StorageContextClient.ts +++ b/sdk/storage/storage-file-datalake/src/StorageContextClient.ts @@ -11,7 +11,7 @@ import { StorageClient } from "./generated/src"; export class StorageContextClient extends StorageClient { async sendOperationRequest( operationArguments: OperationArguments, - operationSpec: OperationSpec + operationSpec: OperationSpec, ): Promise { const operationSpecToSend = { ...operationSpec }; @@ -19,7 +19,7 @@ export class StorageContextClient extends StorageClient { !isNode && !operationSpec.requestBody && operationSpec.headerParameters?.some( - (param) => param.mapper.serializedName === "Content-Length" + (param) => param.mapper.serializedName === "Content-Length", ) ) { operationSpecToSend.mediaType = "text"; diff --git a/sdk/storage/storage-file-datalake/src/clients.ts b/sdk/storage/storage-file-datalake/src/clients.ts index 75da7500ba8a..69f3734d7837 100644 --- a/sdk/storage/storage-file-datalake/src/clients.ts +++ b/sdk/storage/storage-file-datalake/src/clients.ts @@ -146,7 +146,7 @@ export class DataLakePathClient extends StorageClient { private async setAccessControlRecursiveInternal( mode: PathSetAccessControlRecursiveMode, acl: PathAccessControlItem[] | RemovePathAccessControlItem[], - options: PathChangeAccessControlRecursiveOptions = {} + options: PathChangeAccessControlRecursiveOptions = {}, ): Promise { if (options.maxBatches !== undefined && options.maxBatches < 1) { throw RangeError(`Options maxBatches must be larger than 0.`); @@ -215,7 +215,7 @@ export class DataLakePathClient extends StorageClient { } while (continuationToken && !reachMaxBatches); return result; - } + }, ); } @@ -233,7 +233,7 @@ export class DataLakePathClient extends StorageClient { credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ); /** @@ -256,7 +256,7 @@ export class DataLakePathClient extends StorageClient { | Pipeline, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ) { if (credentialOrPipeline instanceof Pipeline) { super(url, credentialOrPipeline); @@ -333,7 +333,7 @@ export class DataLakePathClient extends StorageClient { */ public async create( resourceType: PathResourceTypeModel, - options: PathCreateOptions = {} + options: PathCreateOptions = {}, ): Promise { options.conditions = options.conditions || {}; return tracingClient.withSpan("DataLakePathClient-create", options, async (updatedOptions) => { @@ -361,7 +361,7 @@ export class DataLakePathClient extends StorageClient { acl: options.acl ? toAclString(options.acl) : undefined, expiryOptions, expiresOn, - }) + }), ); }); } @@ -376,7 +376,7 @@ export class DataLakePathClient extends StorageClient { */ public async createIfNotExists( resourceType: PathResourceTypeModel, - options: PathCreateIfNotExistsOptions = {} + options: PathCreateIfNotExistsOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakePathClient-createIfNotExists", @@ -403,7 +403,7 @@ export class DataLakePathClient extends StorageClient { } throw e; } - } + }, ); } @@ -435,7 +435,7 @@ export class DataLakePathClient extends StorageClient { */ public async delete( recursive?: boolean, - options: PathDeleteOptions = {} + options: PathDeleteOptions = {}, ): Promise { options.conditions = options.conditions || {}; return tracingClient.withSpan("DataLakePathClient-delete", options, async (updatedOptions) => { @@ -462,7 +462,7 @@ export class DataLakePathClient extends StorageClient { modifiedAccessConditions: options.conditions, abortSignal: options.abortSignal, paginated, - }) + }), ); continuation = response.continuation; } while (continuation); @@ -481,7 +481,7 @@ export class DataLakePathClient extends StorageClient { */ public async deleteIfExists( recursive?: boolean, - options: PathDeleteOptions = {} + options: PathDeleteOptions = {}, ): Promise { options.conditions = options.conditions || {}; return tracingClient.withSpan( @@ -504,7 +504,7 @@ export class DataLakePathClient extends StorageClient { } throw e; } - } + }, ); } @@ -516,7 +516,7 @@ export class DataLakePathClient extends StorageClient { * @param options - Optional. Options when getting file access control. */ public async getAccessControl( - options: PathGetAccessControlOptions = {} + options: PathGetAccessControlOptions = {}, ): Promise { options.conditions = options.conditions || {}; return tracingClient.withSpan( @@ -531,7 +531,7 @@ export class DataLakePathClient extends StorageClient { leaseAccessConditions: options.conditions, modifiedAccessConditions: options.conditions, abortSignal: options.abortSignal, - }) + }), ); return { ...response, @@ -539,7 +539,7 @@ export class DataLakePathClient extends StorageClient { permissions: toPermissions(response.permissions), acl: toAcl(response.acl), }; - } + }, ); } @@ -553,7 +553,7 @@ export class DataLakePathClient extends StorageClient { */ public async setAccessControl( acl: PathAccessControlItem[], - options: PathSetAccessControlOptions = {} + options: PathSetAccessControlOptions = {}, ): Promise { options.conditions = options.conditions || {}; return tracingClient.withSpan( @@ -566,9 +566,9 @@ export class DataLakePathClient extends StorageClient { acl: toAclString(acl), leaseAccessConditions: options.conditions, modifiedAccessConditions: options.conditions, - }) + }), ); - } + }, ); } @@ -582,14 +582,14 @@ export class DataLakePathClient extends StorageClient { */ public async setAccessControlRecursive( acl: PathAccessControlItem[], - options: PathChangeAccessControlRecursiveOptions = {} + options: PathChangeAccessControlRecursiveOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakePathClient-setAccessControlRecursive", options, async (updatedOptions) => { return this.setAccessControlRecursiveInternal("set", acl, updatedOptions); - } + }, ); } @@ -603,14 +603,14 @@ export class DataLakePathClient extends StorageClient { */ public async updateAccessControlRecursive( acl: PathAccessControlItem[], - options: PathChangeAccessControlRecursiveOptions = {} + options: PathChangeAccessControlRecursiveOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakePathClient-updateAccessControlRecursive", options, async (updatedOptions) => { return this.setAccessControlRecursiveInternal("modify", acl, updatedOptions); - } + }, ); } @@ -624,14 +624,14 @@ export class DataLakePathClient extends StorageClient { */ public async removeAccessControlRecursive( acl: RemovePathAccessControlItem[], - options: PathChangeAccessControlRecursiveOptions = {} + options: PathChangeAccessControlRecursiveOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakePathClient-removeAccessControlRecursive", options, async (updatedOptions) => { return this.setAccessControlRecursiveInternal("remove", acl, updatedOptions); - } + }, ); } @@ -645,7 +645,7 @@ export class DataLakePathClient extends StorageClient { */ public async setPermissions( permissions: PathPermissions, - options: PathSetPermissionsOptions = {} + options: PathSetPermissionsOptions = {}, ): Promise { options.conditions = options.conditions || {}; return tracingClient.withSpan( @@ -658,9 +658,9 @@ export class DataLakePathClient extends StorageClient { permissions: toPermissionsString(permissions), leaseAccessConditions: options.conditions, modifiedAccessConditions: options.conditions, - }) + }), ); - } + }, ); } @@ -678,7 +678,7 @@ export class DataLakePathClient extends StorageClient { * @param options - Optional. Options when getting path properties. */ public async getProperties( - options: PathGetPropertiesOptions = {} + options: PathGetPropertiesOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakePathClient-getProperties", @@ -690,7 +690,7 @@ export class DataLakePathClient extends StorageClient { tracingOptions: updatedOptions.tracingOptions, }); return ParsePathGetPropertiesExtraHeaderValues(response as PathGetPropertiesResponse); - } + }, ); } @@ -706,7 +706,7 @@ export class DataLakePathClient extends StorageClient { */ public async setHttpHeaders( httpHeaders: PathHttpHeaders, - options: PathSetHttpHeadersOptions = {} + options: PathSetHttpHeadersOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakePathClient-setHttpHeaders", @@ -721,9 +721,9 @@ export class DataLakePathClient extends StorageClient { blobContentLanguage: httpHeaders.contentLanguage, blobContentDisposition: httpHeaders.contentDisposition, }, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -741,7 +741,7 @@ export class DataLakePathClient extends StorageClient { */ public async setMetadata( metadata?: Metadata, - options: PathSetMetadataOptions = {} + options: PathSetMetadataOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakePathClient-setMetadata", @@ -752,7 +752,7 @@ export class DataLakePathClient extends StorageClient { customerProvidedKey: toBlobCpkInfo(options.customerProvidedKey), tracingOptions: updatedOptions.tracingOptions, }); - } + }, ); } @@ -780,13 +780,13 @@ export class DataLakePathClient extends StorageClient { public async move( destinationFileSystem: string, destinationPath: string, - options?: PathMoveOptions + options?: PathMoveOptions, ): Promise; public async move( destinationPathOrFileSystem: string, destinationPathOrOptions?: string | PathMoveOptions, - options?: PathMoveOptions + options?: PathMoveOptions, ): Promise { let destinationFileSystem = this.fileSystemName; let destinationPath = destinationPathOrFileSystem; @@ -836,9 +836,9 @@ export class DataLakePathClient extends StorageClient { }, modifiedAccessConditions: pathMoveOptions.destinationConditions, abortSignal: pathMoveOptions.abortSignal, - }) + }), ); - } + }, ); } } @@ -858,7 +858,7 @@ export class DataLakeDirectoryClient extends DataLakePathClient { */ public async create( resourceType: PathResourceTypeModel, - options?: PathCreateOptions + options?: PathCreateOptions, ): Promise; /** @@ -872,11 +872,11 @@ export class DataLakeDirectoryClient extends DataLakePathClient { public async create( resourceTypeOrOptions?: PathResourceTypeModel | PathCreateOptions, - options: PathCreateOptions = {} + options: PathCreateOptions = {}, ): Promise { if (resourceTypeOrOptions === "file") { throw TypeError( - `DataLakeDirectoryClient:create() resourceType cannot be ${resourceTypeOrOptions}. Refer to DataLakeFileClient for file creation.` + `DataLakeDirectoryClient:create() resourceType cannot be ${resourceTypeOrOptions}. Refer to DataLakeFileClient for file creation.`, ); } @@ -892,7 +892,7 @@ export class DataLakeDirectoryClient extends DataLakePathClient { pathCreateOptions, async (updatedOptions) => { return super.create("directory", updatedOptions); - } + }, ); } @@ -906,7 +906,7 @@ export class DataLakeDirectoryClient extends DataLakePathClient { */ public async createIfNotExists( resourceType: PathResourceTypeModel, - options?: PathCreateIfNotExistsOptions + options?: PathCreateIfNotExistsOptions, ): Promise; /** @@ -917,16 +917,16 @@ export class DataLakeDirectoryClient extends DataLakePathClient { * @param options - */ public async createIfNotExists( - options?: DirectoryCreateIfNotExistsOptions + options?: DirectoryCreateIfNotExistsOptions, ): Promise; public async createIfNotExists( resourceTypeOrOptions?: PathResourceTypeModel | PathCreateIfNotExistsOptions, - options: PathCreateIfNotExistsOptions = {} + options: PathCreateIfNotExistsOptions = {}, ): Promise { if (resourceTypeOrOptions === "file") { throw TypeError( - `DataLakeDirectoryClient:createIfNotExists() resourceType cannot be ${resourceTypeOrOptions}. Refer to DataLakeFileClient for file creation.` + `DataLakeDirectoryClient:createIfNotExists() resourceType cannot be ${resourceTypeOrOptions}. Refer to DataLakeFileClient for file creation.`, ); } @@ -941,7 +941,7 @@ export class DataLakeDirectoryClient extends DataLakePathClient { return super.createIfNotExists("directory", { ...updatedOptions, }); - } + }, ); } @@ -953,7 +953,7 @@ export class DataLakeDirectoryClient extends DataLakePathClient { public getSubdirectoryClient(subdirectoryName: string): DataLakeDirectoryClient { return new DataLakeDirectoryClient( appendToURLPath(this.url, encodeURIComponent(subdirectoryName)), - this.pipeline + this.pipeline, ); } @@ -967,7 +967,7 @@ export class DataLakeDirectoryClient extends DataLakePathClient { public getFileClient(fileName: string): DataLakeFileClient { return new DataLakeFileClient( appendToURLPath(this.url, encodeURIComponent(fileName)), - this.pipeline + this.pipeline, ); } @@ -986,7 +986,7 @@ export class DataLakeDirectoryClient extends DataLakePathClient { return new Promise((resolve) => { if (!(this.credential instanceof StorageSharedKeyCredential)) { throw RangeError( - "Can only generate the SAS when the client is initialized with a shared key credential" + "Can only generate the SAS when the client is initialized with a shared key credential", ); } @@ -997,7 +997,7 @@ export class DataLakeDirectoryClient extends DataLakePathClient { isDirectory: true, ...options, }, - this.credential + this.credential, ).toString(); resolve(appendToURLQuery(this.url, sas)); @@ -1038,7 +1038,7 @@ export class DataLakeFileClient extends DataLakePathClient { credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ); /** @@ -1061,7 +1061,7 @@ export class DataLakeFileClient extends DataLakePathClient { | Pipeline, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ) { if (credentialOrPipeline instanceof Pipeline) { super(url, credentialOrPipeline); @@ -1092,7 +1092,7 @@ export class DataLakeFileClient extends DataLakePathClient { */ public async create( resourceType: PathResourceTypeModel, - options?: PathCreateOptions + options?: PathCreateOptions, ): Promise; /** @@ -1106,11 +1106,11 @@ export class DataLakeFileClient extends DataLakePathClient { public async create( resourceTypeOrOptions?: PathResourceTypeModel | PathCreateOptions, - options: PathCreateOptions = {} + options: PathCreateOptions = {}, ): Promise { if (resourceTypeOrOptions === "directory") { throw TypeError( - `DataLakeFileClient:create() resourceType cannot be ${resourceTypeOrOptions}. Refer to DataLakeDirectoryClient for directory creation.` + `DataLakeFileClient:create() resourceType cannot be ${resourceTypeOrOptions}. Refer to DataLakeDirectoryClient for directory creation.`, ); } @@ -1126,7 +1126,7 @@ export class DataLakeFileClient extends DataLakePathClient { pathCreateOptions, async (updatedOptions) => { return super.create("file", updatedOptions); - } + }, ); } @@ -1140,7 +1140,7 @@ export class DataLakeFileClient extends DataLakePathClient { */ public async createIfNotExists( resourceType: PathResourceTypeModel, - options?: PathCreateIfNotExistsOptions + options?: PathCreateIfNotExistsOptions, ): Promise; /** @@ -1151,16 +1151,16 @@ export class DataLakeFileClient extends DataLakePathClient { * @param options - Optional. Options when creating file. */ public async createIfNotExists( - options?: FileCreateIfNotExistsOptions + options?: FileCreateIfNotExistsOptions, ): Promise; public async createIfNotExists( resourceTypeOrOptions?: PathResourceTypeModel | PathCreateOptions, - options: PathCreateIfNotExistsOptions = {} + options: PathCreateIfNotExistsOptions = {}, ): Promise { if (resourceTypeOrOptions === "directory") { throw TypeError( - `DataLakeFileClient:createIfNotExists() resourceType cannot be ${resourceTypeOrOptions}. Refer to DataLakeDirectoryClient for directory creation.` + `DataLakeFileClient:createIfNotExists() resourceType cannot be ${resourceTypeOrOptions}. Refer to DataLakeDirectoryClient for directory creation.`, ); } @@ -1173,7 +1173,7 @@ export class DataLakeFileClient extends DataLakePathClient { options, async (updatedOptions) => { return super.createIfNotExists("file", updatedOptions); - } + }, ); } @@ -1234,7 +1234,7 @@ export class DataLakeFileClient extends DataLakePathClient { public async read( offset: number = 0, count?: number, - options: FileReadOptions = {} + options: FileReadOptions = {}, ): Promise { return tracingClient.withSpan("DataLakeFileClient-read", options, async (updatedOptions) => { const rawResponse = await this.blockBlobClientInternal.download(offset, count, { @@ -1243,7 +1243,7 @@ export class DataLakeFileClient extends DataLakePathClient { }); const response = ParsePathGetPropertiesExtraHeaderValues( - rawResponse as FileReadResponse + rawResponse as FileReadResponse, ) as FileReadResponse; if (!isNode && !response.contentAsBlob) { response.contentAsBlob = rawResponse.blobBody; @@ -1273,7 +1273,7 @@ export class DataLakeFileClient extends DataLakePathClient { body: HttpRequestBody, offset: number, length: number, - options: FileAppendOptions = {} + options: FileAppendOptions = {}, ): Promise { options.conditions = options.conditions || {}; return tracingClient.withSpan("DataLakeFileClient-append", options, async (updatedOptions) => { @@ -1296,7 +1296,7 @@ export class DataLakeFileClient extends DataLakePathClient { proposedLeaseId: options.proposedLeaseId, leaseDuration: options.leaseDurationInSeconds, leaseAction: options.leaseAction, - }) + }), ); }); } @@ -1328,7 +1328,7 @@ export class DataLakeFileClient extends DataLakePathClient { proposedLeaseId: options.proposedLeaseId, leaseDuration: options.leaseDurationInSeconds, leaseAction: options.leaseAction, - }) + }), ); }); } @@ -1347,7 +1347,7 @@ export class DataLakeFileClient extends DataLakePathClient { filePath: string, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options: FileParallelUploadOptions = {} + options: FileParallelUploadOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakeFileClient-uploadFile", @@ -1364,9 +1364,9 @@ export class DataLakeFileClient extends DataLakePathClient { }); }, size, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -1378,7 +1378,7 @@ export class DataLakeFileClient extends DataLakePathClient { */ public async upload( data: Buffer | Blob | ArrayBuffer | ArrayBufferView, - options: FileParallelUploadOptions = {} + options: FileParallelUploadOptions = {}, ): Promise { return tracingClient.withSpan("DataLakeFileClient-upload", options, async (updatedOptions) => { if (isNode) { @@ -1395,14 +1395,14 @@ export class DataLakeFileClient extends DataLakePathClient { return this.uploadSeekableInternal( (offset: number, size: number): Buffer => buffer.slice(offset, offset + size), buffer.length, - updatedOptions + updatedOptions, ); } else { const browserBlob = new Blob([data]); return this.uploadSeekableInternal( (offset: number, size: number): Blob => browserBlob.slice(offset, offset + size), browserBlob.size, - updatedOptions + updatedOptions, ); } }); @@ -1411,7 +1411,7 @@ export class DataLakeFileClient extends DataLakePathClient { private async uploadSeekableInternal( bodyFactory: (offset: number, count: number) => HttpRequestBody, size: number, - options: FileParallelUploadOptions = {} + options: FileParallelUploadOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakeFileClient-uploadData", @@ -1451,7 +1451,7 @@ export class DataLakeFileClient extends DataLakePathClient { } if (options.chunkSize < 1 || options.chunkSize > FILE_UPLOAD_MAX_CHUNK_SIZE) { throw new RangeError( - `chunkSize option must be >= 1 and <= ${FILE_UPLOAD_MAX_CHUNK_SIZE}` + `chunkSize option must be >= 1 and <= ${FILE_UPLOAD_MAX_CHUNK_SIZE}`, ); } @@ -1470,7 +1470,7 @@ export class DataLakeFileClient extends DataLakePathClient { options.singleUploadThreshold > FILE_MAX_SINGLE_UPLOAD_THRESHOLD ) { throw new RangeError( - `singleUploadThreshold option must be >= 1 and <= ${FILE_MAX_SINGLE_UPLOAD_THRESHOLD}` + `singleUploadThreshold option must be >= 1 and <= ${FILE_MAX_SINGLE_UPLOAD_THRESHOLD}`, ); } @@ -1498,7 +1498,7 @@ export class DataLakeFileClient extends DataLakePathClient { if (numBlocks > BLOCK_BLOB_MAX_BLOCKS) { throw new RangeError( `The data's size is too big or the chunkSize is too small;` + - `the number of chunks must be <= ${BLOCK_BLOB_MAX_BLOCKS}` + `the number of chunks must be <= ${BLOCK_BLOB_MAX_BLOCKS}`, ); } @@ -1533,7 +1533,7 @@ export class DataLakeFileClient extends DataLakePathClient { customerProvidedKey: updatedOptions.customerProvidedKey, tracingOptions: updatedOptions.tracingOptions, }); - } + }, ); } @@ -1554,7 +1554,7 @@ export class DataLakeFileClient extends DataLakePathClient { */ public async uploadStream( stream: Readable, - options: FileParallelUploadOptions = {} + options: FileParallelUploadOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakeFileClient-uploadStream", @@ -1581,7 +1581,7 @@ export class DataLakeFileClient extends DataLakePathClient { } if (options.chunkSize < 1 || options.chunkSize > FILE_UPLOAD_MAX_CHUNK_SIZE) { throw new RangeError( - `chunkSize option must be >= 1 and <= ${FILE_UPLOAD_MAX_CHUNK_SIZE}` + `chunkSize option must be >= 1 and <= ${FILE_UPLOAD_MAX_CHUNK_SIZE}`, ); } if (!options.maxConcurrency) { @@ -1614,7 +1614,7 @@ export class DataLakeFileClient extends DataLakePathClient { // reduce the possibility when a outgoing handler waits for stream data, in // this situation, outgoing handlers are blocked. // Outgoing queue shouldn't be empty. - Math.ceil((options.maxConcurrency / 4) * 3) + Math.ceil((options.maxConcurrency / 4) * 3), ); await scheduler.do(); @@ -1626,7 +1626,7 @@ export class DataLakeFileClient extends DataLakePathClient { customerProvidedKey: options.customerProvidedKey, tracingOptions: updatedOptions.tracingOptions, }); - } + }, ); } @@ -1649,7 +1649,7 @@ export class DataLakeFileClient extends DataLakePathClient { buffer: Buffer, offset?: number, count?: number, - options?: FileReadToBufferOptions + options?: FileReadToBufferOptions, ): Promise; /** @@ -1669,14 +1669,14 @@ export class DataLakeFileClient extends DataLakePathClient { public async readToBuffer( offset?: number, count?: number, - options?: FileReadToBufferOptions + options?: FileReadToBufferOptions, ): Promise; public async readToBuffer( bufferOrOffset?: Buffer | number, offsetOrCount?: number, countOrOptions?: FileReadToBufferOptions | number, - optOptions: FileReadToBufferOptions = {} + optOptions: FileReadToBufferOptions = {}, ): Promise { let buffer: Buffer | undefined = undefined; let offset = 0; @@ -1712,7 +1712,7 @@ export class DataLakeFileClient extends DataLakePathClient { tracingOptions: updatedOptions.tracingOptions, }); } - } + }, ); } @@ -1736,7 +1736,7 @@ export class DataLakeFileClient extends DataLakePathClient { filePath: string, offset: number = 0, count?: number, - options: FileReadOptions = {} + options: FileReadOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakeFileClient-readToFile", @@ -1746,7 +1746,7 @@ export class DataLakeFileClient extends DataLakePathClient { ...updatedOptions, customerProvidedKey: toBlobCpkInfo(options.customerProvidedKey), }); - } + }, ); } @@ -1805,7 +1805,7 @@ export class DataLakeFileClient extends DataLakePathClient { */ public async setExpiry( mode: FileExpiryMode, - options: FileSetExpiryOptions = {} + options: FileSetExpiryOptions = {}, ): Promise { return tracingClient.withSpan( "DataLakeFileClient-setExpiry", @@ -1827,7 +1827,7 @@ export class DataLakeFileClient extends DataLakePathClient { const now = new Date(); if (!(options.expiresOn!.getTime() > now.getTime())) { throw new Error( - `options.expiresOn should be later than now: ${now.toUTCString()} when using mode ${mode}, but is ${options.expiresOn?.toUTCString()}` + `options.expiresOn should be later than now: ${now.toUTCString()} when using mode ${mode}, but is ${options.expiresOn?.toUTCString()}`, ); } expiresOn = options.expiresOn!.toUTCString(); @@ -1838,9 +1838,9 @@ export class DataLakeFileClient extends DataLakePathClient { await this.pathContextInternalToBlobEndpoint.setExpiry(mode, { ...adaptedOptions, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); - } + }, ); } @@ -1859,7 +1859,7 @@ export class DataLakeFileClient extends DataLakePathClient { return new Promise((resolve) => { if (!(this.credential instanceof StorageSharedKeyCredential)) { throw RangeError( - "Can only generate the SAS when the client is initialized with a shared key credential" + "Can only generate the SAS when the client is initialized with a shared key credential", ); } @@ -1869,7 +1869,7 @@ export class DataLakeFileClient extends DataLakePathClient { pathName: this.name, ...options, }, - this.credential + this.credential, ).toString(); resolve(appendToURLQuery(this.url, sas)); diff --git a/sdk/storage/storage-file-datalake/src/sas/AccountSASSignatureValues.ts b/sdk/storage/storage-file-datalake/src/sas/AccountSASSignatureValues.ts index f26ed28d1265..d7f6237630ac 100644 --- a/sdk/storage/storage-file-datalake/src/sas/AccountSASSignatureValues.ts +++ b/sdk/storage/storage-file-datalake/src/sas/AccountSASSignatureValues.ts @@ -88,18 +88,18 @@ export interface AccountSASSignatureValues { */ export function generateAccountSASQueryParameters( accountSASSignatureValues: AccountSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential + sharedKeyCredential: StorageSharedKeyCredential, ): SASQueryParameters { const version = accountSASSignatureValues.version ? accountSASSignatureValues.version : SERVICE_VERSION; const parsedPermissions = AccountSASPermissions.parse( - accountSASSignatureValues.permissions.toString() + accountSASSignatureValues.permissions.toString(), ); const parsedServices = AccountSASServices.parse(accountSASSignatureValues.services).toString(); const parsedResourceTypes = AccountSASResourceTypes.parse( - accountSASSignatureValues.resourceTypes + accountSASSignatureValues.resourceTypes, ).toString(); let stringToSign: string; @@ -161,6 +161,6 @@ export function generateAccountSASQueryParameters( undefined, undefined, undefined, - accountSASSignatureValues.encryptionScope + accountSASSignatureValues.encryptionScope, ); } diff --git a/sdk/storage/storage-file-datalake/src/sas/DataLakeSASSignatureValues.ts b/sdk/storage/storage-file-datalake/src/sas/DataLakeSASSignatureValues.ts index 98ac70a4857e..a3e197b3270c 100644 --- a/sdk/storage/storage-file-datalake/src/sas/DataLakeSASSignatureValues.ts +++ b/sdk/storage/storage-file-datalake/src/sas/DataLakeSASSignatureValues.ts @@ -196,7 +196,7 @@ export interface DataLakeSASSignatureValues { */ export function generateDataLakeSASQueryParameters( dataLakeSASSignatureValues: DataLakeSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential + sharedKeyCredential: StorageSharedKeyCredential, ): SASQueryParameters; /** @@ -230,13 +230,13 @@ export function generateDataLakeSASQueryParameters( export function generateDataLakeSASQueryParameters( dataLakeSASSignatureValues: DataLakeSASSignatureValues, userDelegationKey: UserDelegationKey, - accountName: string + accountName: string, ): SASQueryParameters; export function generateDataLakeSASQueryParameters( dataLakeSASSignatureValues: DataLakeSASSignatureValues, sharedKeyCredentialOrUserDelegationKey: StorageSharedKeyCredential | UserDelegationKey, - accountName?: string + accountName?: string, ): SASQueryParameters { const version = dataLakeSASSignatureValues.version ? dataLakeSASSignatureValues.version @@ -251,7 +251,7 @@ export function generateDataLakeSASQueryParameters( if (sharedKeyCredential === undefined && accountName !== undefined) { userDelegationKeyCredential = new UserDelegationKeyCredential( accountName, - sharedKeyCredentialOrUserDelegationKey as UserDelegationKey + sharedKeyCredentialOrUserDelegationKey as UserDelegationKey, ); } @@ -264,12 +264,12 @@ export function generateDataLakeSASQueryParameters( if (sharedKeyCredential !== undefined) { return generateBlobSASQueryParameters20201206( dataLakeSASSignatureValues, - sharedKeyCredential + sharedKeyCredential, ); } else { return generateBlobSASQueryParametersUDK20201206( dataLakeSASSignatureValues, - userDelegationKeyCredential! + userDelegationKeyCredential!, ); } } @@ -280,19 +280,19 @@ export function generateDataLakeSASQueryParameters( if (sharedKeyCredential !== undefined) { return generateBlobSASQueryParameters20181109( dataLakeSASSignatureValues, - sharedKeyCredential + sharedKeyCredential, ); } else { // Version 2020-02-10 delegation SAS signature construction includes preauthorizedAgentObjectId, agentObjectId, correlationId. if (version >= "2020-02-10") { return generateBlobSASQueryParametersUDK20200210( dataLakeSASSignatureValues, - userDelegationKeyCredential! + userDelegationKeyCredential!, ); } else { return generateBlobSASQueryParametersUDK20181109( dataLakeSASSignatureValues, - userDelegationKeyCredential! + userDelegationKeyCredential!, ); } } @@ -302,11 +302,11 @@ export function generateDataLakeSASQueryParameters( if (sharedKeyCredential !== undefined) { return generateBlobSASQueryParameters20150405( dataLakeSASSignatureValues, - sharedKeyCredential + sharedKeyCredential, ); } else { throw new RangeError( - "'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key." + "'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.", ); } } @@ -332,14 +332,14 @@ export function generateDataLakeSASQueryParameters( */ function generateBlobSASQueryParameters20150405( dataLakeSASSignatureValues: DataLakeSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential + sharedKeyCredential: StorageSharedKeyCredential, ): SASQueryParameters { if ( !dataLakeSASSignatureValues.identifier && !(dataLakeSASSignatureValues.permissions && dataLakeSASSignatureValues.expiresOn) ) { throw new RangeError( - "Must provide 'permissions' and 'expiresOn' for DataLake SAS generation when 'identifier' is not provided." + "Must provide 'permissions' and 'expiresOn' for DataLake SAS generation when 'identifier' is not provided.", ); } @@ -349,7 +349,7 @@ function generateBlobSASQueryParameters20150405( dataLakeSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill( dataLakeSASSignatureValues, - version + version, ); let resource: string = "c"; @@ -362,11 +362,11 @@ function generateBlobSASQueryParameters20150405( if (dataLakeSASSignatureValues.permissions) { if (dataLakeSASSignatureValues.pathName) { verifiedPermissions = DataLakeSASPermissions.parse( - dataLakeSASSignatureValues.permissions.toString() + dataLakeSASSignatureValues.permissions.toString(), ).toString(); } else { verifiedPermissions = FileSystemSASPermissions.parse( - dataLakeSASSignatureValues.permissions.toString() + dataLakeSASSignatureValues.permissions.toString(), ).toString(); } } @@ -383,7 +383,7 @@ function generateBlobSASQueryParameters20150405( getCanonicalName( sharedKeyCredential.accountName, dataLakeSASSignatureValues.fileSystemName, - dataLakeSASSignatureValues.pathName + dataLakeSASSignatureValues.pathName, ), dataLakeSASSignatureValues.identifier, dataLakeSASSignatureValues.ipRange ? ipRangeToString(dataLakeSASSignatureValues.ipRange) : "", @@ -416,7 +416,7 @@ function generateBlobSASQueryParameters20150405( dataLakeSASSignatureValues.contentDisposition, dataLakeSASSignatureValues.contentEncoding, dataLakeSASSignatureValues.contentLanguage, - dataLakeSASSignatureValues.contentType + dataLakeSASSignatureValues.contentType, ); } @@ -438,14 +438,14 @@ function generateBlobSASQueryParameters20150405( */ function generateBlobSASQueryParameters20181109( dataLakeSASSignatureValues: DataLakeSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential + sharedKeyCredential: StorageSharedKeyCredential, ): SASQueryParameters { if ( !dataLakeSASSignatureValues.identifier && !(dataLakeSASSignatureValues.permissions && dataLakeSASSignatureValues.expiresOn) ) { throw new RangeError( - "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided." + "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.", ); } @@ -455,7 +455,7 @@ function generateBlobSASQueryParameters20181109( dataLakeSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill( dataLakeSASSignatureValues, - version + version, ); let resource: string = "c"; @@ -476,16 +476,16 @@ function generateBlobSASQueryParameters20181109( if (dataLakeSASSignatureValues.pathName) { if (dataLakeSASSignatureValues.isDirectory) { verifiedPermissions = DirectorySASPermissions.parse( - dataLakeSASSignatureValues.permissions.toString() + dataLakeSASSignatureValues.permissions.toString(), ).toString(); } else { verifiedPermissions = DataLakeSASPermissions.parse( - dataLakeSASSignatureValues.permissions.toString() + dataLakeSASSignatureValues.permissions.toString(), ).toString(); } } else { verifiedPermissions = FileSystemSASPermissions.parse( - dataLakeSASSignatureValues.permissions.toString() + dataLakeSASSignatureValues.permissions.toString(), ).toString(); } } @@ -502,7 +502,7 @@ function generateBlobSASQueryParameters20181109( getCanonicalName( sharedKeyCredential.accountName, dataLakeSASSignatureValues.fileSystemName, - dataLakeSASSignatureValues.pathName + dataLakeSASSignatureValues.pathName, ), dataLakeSASSignatureValues.identifier, dataLakeSASSignatureValues.ipRange ? ipRangeToString(dataLakeSASSignatureValues.ipRange) : "", @@ -539,7 +539,7 @@ function generateBlobSASQueryParameters20181109( dataLakeSASSignatureValues.contentLanguage, dataLakeSASSignatureValues.contentType, undefined, - dataLakeSASSignatureValues.directoryDepth + dataLakeSASSignatureValues.directoryDepth, ); } @@ -559,11 +559,11 @@ function generateBlobSASQueryParameters20181109( */ function generateBlobSASQueryParametersUDK20181109( dataLakeSASSignatureValues: DataLakeSASSignatureValues, - userDelegationKeyCredential: UserDelegationKeyCredential + userDelegationKeyCredential: UserDelegationKeyCredential, ): SASQueryParameters { if (!dataLakeSASSignatureValues.permissions || !dataLakeSASSignatureValues.expiresOn) { throw new RangeError( - "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS." + "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.", ); } @@ -572,7 +572,7 @@ function generateBlobSASQueryParametersUDK20181109( : SERVICE_VERSION; dataLakeSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill( dataLakeSASSignatureValues, - version + version, ); let resource: string = "c"; @@ -593,16 +593,16 @@ function generateBlobSASQueryParametersUDK20181109( if (dataLakeSASSignatureValues.pathName) { if (dataLakeSASSignatureValues.isDirectory) { verifiedPermissions = DirectorySASPermissions.parse( - dataLakeSASSignatureValues.permissions.toString() + dataLakeSASSignatureValues.permissions.toString(), ).toString(); } else { verifiedPermissions = DataLakeSASPermissions.parse( - dataLakeSASSignatureValues.permissions.toString() + dataLakeSASSignatureValues.permissions.toString(), ).toString(); } } else { verifiedPermissions = FileSystemSASPermissions.parse( - dataLakeSASSignatureValues.permissions.toString() + dataLakeSASSignatureValues.permissions.toString(), ).toString(); } } @@ -619,7 +619,7 @@ function generateBlobSASQueryParametersUDK20181109( getCanonicalName( userDelegationKeyCredential.accountName, dataLakeSASSignatureValues.fileSystemName, - dataLakeSASSignatureValues.pathName + dataLakeSASSignatureValues.pathName, ), userDelegationKeyCredential.userDelegationKey.signedObjectId, userDelegationKeyCredential.userDelegationKey.signedTenantId, @@ -666,7 +666,7 @@ function generateBlobSASQueryParametersUDK20181109( dataLakeSASSignatureValues.directoryDepth, dataLakeSASSignatureValues.preauthorizedAgentObjectId, dataLakeSASSignatureValues.agentObjectId, - dataLakeSASSignatureValues.correlationId + dataLakeSASSignatureValues.correlationId, ); } @@ -686,11 +686,11 @@ function generateBlobSASQueryParametersUDK20181109( */ function generateBlobSASQueryParametersUDK20200210( dataLakeSASSignatureValues: DataLakeSASSignatureValues, - userDelegationKeyCredential: UserDelegationKeyCredential + userDelegationKeyCredential: UserDelegationKeyCredential, ): SASQueryParameters { if (!dataLakeSASSignatureValues.permissions || !dataLakeSASSignatureValues.expiresOn) { throw new RangeError( - "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS." + "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.", ); } @@ -699,7 +699,7 @@ function generateBlobSASQueryParametersUDK20200210( : SERVICE_VERSION; dataLakeSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill( dataLakeSASSignatureValues, - version + version, ); let resource: string = "c"; @@ -720,16 +720,16 @@ function generateBlobSASQueryParametersUDK20200210( if (dataLakeSASSignatureValues.pathName) { if (dataLakeSASSignatureValues.isDirectory) { verifiedPermissions = DirectorySASPermissions.parse( - dataLakeSASSignatureValues.permissions.toString() + dataLakeSASSignatureValues.permissions.toString(), ).toString(); } else { verifiedPermissions = DataLakeSASPermissions.parse( - dataLakeSASSignatureValues.permissions.toString() + dataLakeSASSignatureValues.permissions.toString(), ).toString(); } } else { verifiedPermissions = FileSystemSASPermissions.parse( - dataLakeSASSignatureValues.permissions.toString() + dataLakeSASSignatureValues.permissions.toString(), ).toString(); } } @@ -746,7 +746,7 @@ function generateBlobSASQueryParametersUDK20200210( getCanonicalName( userDelegationKeyCredential.accountName, dataLakeSASSignatureValues.fileSystemName, - dataLakeSASSignatureValues.pathName + dataLakeSASSignatureValues.pathName, ), userDelegationKeyCredential.userDelegationKey.signedObjectId, userDelegationKeyCredential.userDelegationKey.signedTenantId, @@ -796,7 +796,7 @@ function generateBlobSASQueryParametersUDK20200210( dataLakeSASSignatureValues.directoryDepth, dataLakeSASSignatureValues.preauthorizedAgentObjectId, dataLakeSASSignatureValues.agentObjectId, - dataLakeSASSignatureValues.correlationId + dataLakeSASSignatureValues.correlationId, ); } @@ -818,14 +818,14 @@ function generateBlobSASQueryParametersUDK20200210( */ function generateBlobSASQueryParameters20201206( dataLakeSASSignatureValues: DataLakeSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential + sharedKeyCredential: StorageSharedKeyCredential, ): SASQueryParameters { if ( !dataLakeSASSignatureValues.identifier && !(dataLakeSASSignatureValues.permissions && dataLakeSASSignatureValues.expiresOn) ) { throw new RangeError( - "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided." + "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.", ); } @@ -835,7 +835,7 @@ function generateBlobSASQueryParameters20201206( dataLakeSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill( dataLakeSASSignatureValues, - version + version, ); let resource: string = "c"; @@ -856,16 +856,16 @@ function generateBlobSASQueryParameters20201206( if (dataLakeSASSignatureValues.pathName) { if (dataLakeSASSignatureValues.isDirectory) { verifiedPermissions = DirectorySASPermissions.parse( - dataLakeSASSignatureValues.permissions.toString() + dataLakeSASSignatureValues.permissions.toString(), ).toString(); } else { verifiedPermissions = DataLakeSASPermissions.parse( - dataLakeSASSignatureValues.permissions.toString() + dataLakeSASSignatureValues.permissions.toString(), ).toString(); } } else { verifiedPermissions = FileSystemSASPermissions.parse( - dataLakeSASSignatureValues.permissions.toString() + dataLakeSASSignatureValues.permissions.toString(), ).toString(); } } @@ -882,7 +882,7 @@ function generateBlobSASQueryParameters20201206( getCanonicalName( sharedKeyCredential.accountName, dataLakeSASSignatureValues.fileSystemName, - dataLakeSASSignatureValues.pathName + dataLakeSASSignatureValues.pathName, ), dataLakeSASSignatureValues.identifier, dataLakeSASSignatureValues.ipRange ? ipRangeToString(dataLakeSASSignatureValues.ipRange) : "", @@ -924,7 +924,7 @@ function generateBlobSASQueryParameters20201206( undefined, undefined, undefined, - dataLakeSASSignatureValues.encryptionScope + dataLakeSASSignatureValues.encryptionScope, ); } @@ -944,11 +944,11 @@ function generateBlobSASQueryParameters20201206( */ function generateBlobSASQueryParametersUDK20201206( dataLakeSASSignatureValues: DataLakeSASSignatureValues, - userDelegationKeyCredential: UserDelegationKeyCredential + userDelegationKeyCredential: UserDelegationKeyCredential, ): SASQueryParameters { if (!dataLakeSASSignatureValues.permissions || !dataLakeSASSignatureValues.expiresOn) { throw new RangeError( - "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS." + "Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.", ); } @@ -957,7 +957,7 @@ function generateBlobSASQueryParametersUDK20201206( : SERVICE_VERSION; dataLakeSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill( dataLakeSASSignatureValues, - version + version, ); let resource: string = "c"; @@ -978,16 +978,16 @@ function generateBlobSASQueryParametersUDK20201206( if (dataLakeSASSignatureValues.pathName) { if (dataLakeSASSignatureValues.isDirectory) { verifiedPermissions = DirectorySASPermissions.parse( - dataLakeSASSignatureValues.permissions.toString() + dataLakeSASSignatureValues.permissions.toString(), ).toString(); } else { verifiedPermissions = DataLakeSASPermissions.parse( - dataLakeSASSignatureValues.permissions.toString() + dataLakeSASSignatureValues.permissions.toString(), ).toString(); } } else { verifiedPermissions = FileSystemSASPermissions.parse( - dataLakeSASSignatureValues.permissions.toString() + dataLakeSASSignatureValues.permissions.toString(), ).toString(); } } @@ -1004,7 +1004,7 @@ function generateBlobSASQueryParametersUDK20201206( getCanonicalName( userDelegationKeyCredential.accountName, dataLakeSASSignatureValues.fileSystemName, - dataLakeSASSignatureValues.pathName + dataLakeSASSignatureValues.pathName, ), userDelegationKeyCredential.userDelegationKey.signedObjectId, userDelegationKeyCredential.userDelegationKey.signedTenantId, @@ -1056,7 +1056,7 @@ function generateBlobSASQueryParametersUDK20201206( dataLakeSASSignatureValues.preauthorizedAgentObjectId, dataLakeSASSignatureValues.agentObjectId, dataLakeSASSignatureValues.correlationId, - dataLakeSASSignatureValues.encryptionScope + dataLakeSASSignatureValues.encryptionScope, ); } @@ -1072,7 +1072,7 @@ function getCanonicalName(accountName: string, containerName: string, blobName?: function SASSignatureValuesSanityCheckAndAutofill( dataLakeSASSignatureValues: DataLakeSASSignatureValues, - version: string + version: string, ): DataLakeSASSignatureValues { if ( version < "2020-02-10" && @@ -1122,7 +1122,7 @@ function SASSignatureValuesSanityCheckAndAutofill( dataLakeSASSignatureValues.correlationId) ) { throw RangeError( - "'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId', 'agentObjectId' or 'correlationId'." + "'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId', 'agentObjectId' or 'correlationId'.", ); } if ( @@ -1130,7 +1130,7 @@ function SASSignatureValuesSanityCheckAndAutofill( dataLakeSASSignatureValues.agentObjectId ) { throw RangeError( - "'preauthorizedAgentObjectId' or 'agentObjectId' shouldn't be specified at the same time." + "'preauthorizedAgentObjectId' or 'agentObjectId' shouldn't be specified at the same time.", ); } diff --git a/sdk/storage/storage-file-datalake/src/sas/SASQueryParameters.ts b/sdk/storage/storage-file-datalake/src/sas/SASQueryParameters.ts index 1b7f237f54ba..c808d093c5fb 100644 --- a/sdk/storage/storage-file-datalake/src/sas/SASQueryParameters.ts +++ b/sdk/storage/storage-file-datalake/src/sas/SASQueryParameters.ts @@ -348,7 +348,7 @@ export class SASQueryParameters { preauthorizedAgentObjectId?: string, agentObjectId?: string, correlationId?: string, - encryptionScope?: string + encryptionScope?: string, ); /** @@ -382,7 +382,7 @@ export class SASQueryParameters { preauthorizedAgentObjectId?: string, agentObjectId?: string, correlationId?: string, - encryptionScope?: string + encryptionScope?: string, ) { this.version = version; this.signature = signature; @@ -504,21 +504,21 @@ export class SASQueryParameters { this.tryAppendQueryParameter( queries, param, - this.startsOn ? truncatedISO8061Date(this.startsOn, false) : undefined + this.startsOn ? truncatedISO8061Date(this.startsOn, false) : undefined, ); break; case "se": this.tryAppendQueryParameter( queries, param, - this.expiresOn ? truncatedISO8061Date(this.expiresOn, false) : undefined + this.expiresOn ? truncatedISO8061Date(this.expiresOn, false) : undefined, ); break; case "sip": this.tryAppendQueryParameter( queries, param, - this.ipRange ? ipRangeToString(this.ipRange) : undefined + this.ipRange ? ipRangeToString(this.ipRange) : undefined, ); break; case "si": @@ -537,14 +537,14 @@ export class SASQueryParameters { this.tryAppendQueryParameter( queries, param, - this.signedStartsOn ? truncatedISO8061Date(this.signedStartsOn, false) : undefined + this.signedStartsOn ? truncatedISO8061Date(this.signedStartsOn, false) : undefined, ); break; case "ske": // Signed key expiry time this.tryAppendQueryParameter( queries, param, - this.signedExpiresOn ? truncatedISO8061Date(this.signedExpiresOn, false) : undefined + this.signedExpiresOn ? truncatedISO8061Date(this.signedExpiresOn, false) : undefined, ); break; case "sks": // Signed key service diff --git a/sdk/storage/storage-file-datalake/src/transforms.ts b/sdk/storage/storage-file-datalake/src/transforms.ts index fd7cc966730a..5227028ab82f 100644 --- a/sdk/storage/storage-file-datalake/src/transforms.ts +++ b/sdk/storage/storage-file-datalake/src/transforms.ts @@ -91,7 +91,7 @@ function mapHostUrl(url: string, hostMappings: string[][], callerMethodName: str } function toFileSystemAsyncIterableIterator( - iter: AsyncIterableIterator + iter: AsyncIterableIterator, ): AsyncIterableIterator { return { async next() { @@ -107,7 +107,7 @@ function toFileSystemAsyncIterableIterator( publicAccess: toPublicAccessType(val.properties.publicAccess), }, }; - } + }, ); } return rawResult as any; @@ -119,7 +119,7 @@ function toFileSystemAsyncIterableIterator( } export function toFileSystemPagedAsyncIterableIterator( - iter: PagedAsyncIterableIterator + iter: PagedAsyncIterableIterator, ): PagedAsyncIterableIterator { return { async next(): Promise> { @@ -127,7 +127,7 @@ export function toFileSystemPagedAsyncIterableIterator( const result = rawResult as IteratorResult; if (!result.done && !rawResult.done) { result.value.properties.publicAccess = toPublicAccessType( - rawResult.value.properties.publicAccess + rawResult.value.properties.publicAccess, ); result.value.versionId = rawResult.value.version; } @@ -140,7 +140,7 @@ export function toFileSystemPagedAsyncIterableIterator( return this; }, byPage( - settings: PageSettings = {} + settings: PageSettings = {}, ): AsyncIterableIterator { return toFileSystemAsyncIterableIterator(iter.byPage(settings)); }, @@ -148,7 +148,7 @@ export function toFileSystemPagedAsyncIterableIterator( } export function toContainerPublicAccessType( - publicAccessType?: PublicAccessType + publicAccessType?: PublicAccessType, ): ContainerPublicAccessType | undefined { if (!publicAccessType) { return undefined; @@ -161,13 +161,13 @@ export function toContainerPublicAccessType( return "blob"; default: throw TypeError( - `toContainerPublicAccessType() parameter ${publicAccessType} is not recognized.` + `toContainerPublicAccessType() parameter ${publicAccessType} is not recognized.`, ); } } export function toPublicAccessType( - containerPublicAccessType?: ContainerPublicAccessType + containerPublicAccessType?: ContainerPublicAccessType, ): PublicAccessType | undefined { if (!containerPublicAccessType) { return undefined; @@ -180,7 +180,7 @@ export function toPublicAccessType( return "file"; default: throw TypeError( - `toPublicAccessType() parameter ${containerPublicAccessType} is not recognized.` + `toPublicAccessType() parameter ${containerPublicAccessType} is not recognized.`, ); } } @@ -203,7 +203,7 @@ export function toProperties(metadata?: Metadata): string | undefined { export function toRolePermissions(permissionsString: string): RolePermissions { const error = new RangeError( - `toRolePermissions() Invalid role permissions string ${permissionsString}` + `toRolePermissions() Invalid role permissions string ${permissionsString}`, ); if (permissionsString.length !== 3) { throw error; @@ -266,7 +266,7 @@ export function toPermissions(permissionsString?: string): PathPermissions | und extendedAcls = true; } else { throw RangeError( - `toPermissions() Invalid extendedAcls bit ${permissionsString[9]} in permissions string ${permissionsString}` + `toPermissions() Invalid extendedAcls bit ${permissionsString[9]} in permissions string ${permissionsString}`, ); } } @@ -286,7 +286,7 @@ export function toPermissions(permissionsString?: string): PathPermissions | und export function toAccessControlItem(aclItemString: string): PathAccessControlItem { const error = new RangeError( - `toAccessControlItem() Parameter access control item string ${aclItemString} is not valid.` + `toAccessControlItem() Parameter access control item string ${aclItemString} is not valid.`, ); if (aclItemString === "") { throw error; @@ -332,7 +332,7 @@ export function toAccessControlItem(aclItemString: string): PathAccessControlIte export function toRemoveAccessControlItem(aclItemString: string): RemovePathAccessControlItem { const error = new RangeError( - `toAccessControlItem() Parameter access control item string "${aclItemString}" is not valid.` + `toAccessControlItem() Parameter access control item string "${aclItemString}" is not valid.`, ); if (aclItemString === "") { throw error; @@ -426,14 +426,14 @@ export function toRolePermissionsString(p: RolePermissions, stickyBit: boolean = export function toPermissionsString(permissions: PathPermissions): string { return `${toRolePermissionsString(permissions.owner)}${toRolePermissionsString( - permissions.group + permissions.group, )}${toRolePermissionsString(permissions.other, permissions.stickyBit)}${ permissions.extendedAcls ? "+" : "" }`; } export function toAccessControlChangeFailureArray( - aclFailedEntries: AclFailedEntry[] = [] + aclFailedEntries: AclFailedEntry[] = [], ): AccessControlChangeError[] { return aclFailedEntries.map((aclFailedEntry: AclFailedEntry) => { return { diff --git a/sdk/storage/storage-file-datalake/src/utils/BufferScheduler.ts b/sdk/storage/storage-file-datalake/src/utils/BufferScheduler.ts index 666ce3235a93..11273cab82b8 100644 --- a/sdk/storage/storage-file-datalake/src/utils/BufferScheduler.ts +++ b/sdk/storage/storage-file-datalake/src/utils/BufferScheduler.ts @@ -136,7 +136,7 @@ export class BufferScheduler { maxBuffers: number, outgoingHandler: OutgoingHandler, concurrency: number, - encoding?: BufferEncoding + encoding?: BufferEncoding, ) { if (bufferSize <= 0) { throw new RangeError(`bufferSize must be larger than 0, current is ${bufferSize}`); diff --git a/sdk/storage/storage-file-datalake/src/utils/utils.common.ts b/sdk/storage/storage-file-datalake/src/utils/utils.common.ts index ef58fc8cc45a..99c3e9ba8397 100644 --- a/sdk/storage/storage-file-datalake/src/utils/utils.common.ts +++ b/sdk/storage/storage-file-datalake/src/utils/utils.common.ts @@ -113,7 +113,7 @@ export function getValueInConnString( | "AccountKey" | "DefaultEndpointsProtocol" | "EndpointSuffix" - | "SharedAccessSignature" + | "SharedAccessSignature", ): string { const elements = connectionString.split(";"); for (const element of elements) { @@ -168,7 +168,7 @@ export function extractConnectionStringParts(connectionString: string): Connecti const protocol = defaultEndpointsProtocol!.toLowerCase(); if (protocol !== "https" && protocol !== "http") { throw new Error( - "Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'" + "Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'", ); } @@ -556,7 +556,7 @@ export function isIpEndpointStyle(parsedUrl: URL): boolean { // For valid host please refer to https://man7.org/linux/man-pages/man7/hostname.7.html. return ( /^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test( - host + host, ) || (Boolean(parsedUrl.port) && PathStylePorts.includes(parsedUrl.port)) ); @@ -597,7 +597,7 @@ export function ensureCpkIfSpecified(cpk: CpkInfo | undefined, isHttps: boolean) } export function ToBlobContainerEncryptionScope( - fileSystemEncryptionScope?: FileSystemEncryptionScope + fileSystemEncryptionScope?: FileSystemEncryptionScope, ): ContainerEncryptionScope | undefined { if (!fileSystemEncryptionScope) return undefined; @@ -627,7 +627,7 @@ export function EscapePath(pathName: string): string { * @returns The same object, but with known _response property */ export function assertResponse( - response: T + response: T, ): WithResponse { if (`_response` in response) { return response as WithResponse; @@ -653,7 +653,7 @@ export interface PathGetPropertiesRawResponseWithExtraPropertiesLike { function ParseHeaderValue( rawResponse: PathGetPropertiesRawResponseWithExtraPropertiesLike, - headerName: string + headerName: string, ): string | undefined { if (rawResponse._response) { const headers = rawResponse._response.headers as HttpHeadersLike; @@ -669,7 +669,7 @@ function ParseHeaderValue( * Parse extra properties values from headers in raw response. */ export function ParsePathGetPropertiesExtraHeaderValues( - rawResponse: PathGetPropertiesRawResponseWithExtraPropertiesLike + rawResponse: PathGetPropertiesRawResponseWithExtraPropertiesLike, ): PathGetPropertiesRawResponseWithExtraPropertiesLike { const response = rawResponse; response.encryptionContext = ParseHeaderValue(rawResponse, "x-ms-encryption-context"); diff --git a/sdk/storage/storage-file-datalake/src/utils/utils.node.ts b/sdk/storage/storage-file-datalake/src/utils/utils.node.ts index 931104e82a74..91fbf0a51cce 100644 --- a/sdk/storage/storage-file-datalake/src/utils/utils.node.ts +++ b/sdk/storage/storage-file-datalake/src/utils/utils.node.ts @@ -18,7 +18,7 @@ export async function streamToBuffer( buffer: Buffer, offset: number, end: number, - encoding?: BufferEncoding + encoding?: BufferEncoding, ): Promise { let pos = 0; // Position in stream const count = end - offset; // Total amount of data needed in stream @@ -49,8 +49,8 @@ export async function streamToBuffer( if (pos < count) { reject( new Error( - `Stream drains before getting enough data needed. Data read: ${pos}, data need: ${count}` - ) + `Stream drains before getting enough data needed. Data read: ${pos}, data need: ${count}`, + ), ); } resolve(); @@ -72,7 +72,7 @@ export async function streamToBuffer( export async function streamToBuffer2( stream: NodeJS.ReadableStream, buffer: Buffer, - encoding?: BufferEncoding + encoding?: BufferEncoding, ): Promise { let pos = 0; // Position in stream const bufferSize = buffer.length; diff --git a/sdk/storage/storage-file-datalake/test/aborter.spec.ts b/sdk/storage/storage-file-datalake/test/aborter.spec.ts index 0c4019665c8c..24f68ba34512 100644 --- a/sdk/storage/storage-file-datalake/test/aborter.spec.ts +++ b/sdk/storage/storage-file-datalake/test/aborter.spec.ts @@ -64,7 +64,7 @@ describe("Aborter", () => { const aborter = new AbortController(); const childAborter = new AbortController( aborter.signal, - AbortController.timeout(10 * 60 * 1000) + AbortController.timeout(10 * 60 * 1000), ); const response = fileSystemClient.create({ abortSignal: childAborter.signal, diff --git a/sdk/storage/storage-file-datalake/test/browser/highlevel.browser.spec.ts b/sdk/storage/storage-file-datalake/test/browser/highlevel.browser.spec.ts index 0f125b3bac77..7bf3b6961f90 100644 --- a/sdk/storage/storage-file-datalake/test/browser/highlevel.browser.spec.ts +++ b/sdk/storage/storage-file-datalake/test/browser/highlevel.browser.spec.ts @@ -141,7 +141,7 @@ describe("Highlevel browser only", () => { it("upload empty data should succeed", async () => { const tempFileEmpty = getBrowserFile( recorder.variable("browserfileempty", getUniqueName("browserfileempty")), - 0 + 0, ); await fileClient.upload(tempFileEmpty); const response = await fileClient.read(); @@ -176,8 +176,8 @@ describe("Highlevel browser only", () => { assert.ok( arrayBufferEqual( await downloadedBlob3.arrayBuffer(), - new Uint8Array(uint16Array.buffer, uint16Array.byteOffset, uint16Array.byteLength) - ) + new Uint8Array(uint16Array.buffer, uint16Array.byteOffset, uint16Array.byteLength), + ), ); }); }); diff --git a/sdk/storage/storage-file-datalake/test/filesystemclient.spec.ts b/sdk/storage/storage-file-datalake/test/filesystemclient.spec.ts index c3eb64477e08..99e5a4c0d228 100644 --- a/sdk/storage/storage-file-datalake/test/filesystemclient.spec.ts +++ b/sdk/storage/storage-file-datalake/test/filesystemclient.spec.ts @@ -67,7 +67,7 @@ describe("DataLakeFileSystemClient", () => { }; await fileSystemClient.setMetadata(metadata, options); }, - ["DataLakeFileSystemClient-setMetadata"] + ["DataLakeFileSystemClient-setMetadata"], ); }); @@ -92,7 +92,7 @@ describe("DataLakeFileSystemClient", () => { it("create with all parameters configured", async () => { const cClient = serviceClient.getFileSystemClient( - recorder.variable(fileSystemName, getUniqueName(fileSystemName)) + recorder.variable(fileSystemName, getUniqueName(fileSystemName)), ); const metadata = { key: "value" }; const access = "filesystem"; @@ -111,7 +111,7 @@ describe("DataLakeFileSystemClient", () => { } const cClient = serviceClient.getFileSystemClient( - recorder.variable(fileSystemName, getUniqueName(fileSystemName)) + recorder.variable(fileSystemName, getUniqueName(fileSystemName)), ); await cClient.create({ fileSystemEncryptionScope: { @@ -133,7 +133,7 @@ describe("DataLakeFileSystemClient", () => { } const cClient = serviceClient.getFileSystemClient( - recorder.variable(fileSystemName, getUniqueName(fileSystemName)) + recorder.variable(fileSystemName, getUniqueName(fileSystemName)), ); await cClient.create({ fileSystemEncryptionScope: { @@ -148,7 +148,7 @@ describe("DataLakeFileSystemClient", () => { it("createIfNotExists", async () => { const cClient = serviceClient.getFileSystemClient( - recorder.variable(fileSystemName, getUniqueName(fileSystemName)) + recorder.variable(fileSystemName, getUniqueName(fileSystemName)), ); const metadata = { key: "value" }; const access = "filesystem"; @@ -164,7 +164,7 @@ describe("DataLakeFileSystemClient", () => { it("deleteIfExists", async () => { const cClient = serviceClient.getFileSystemClient( - recorder.variable(fileSystemName, getUniqueName(fileSystemName)) + recorder.variable(fileSystemName, getUniqueName(fileSystemName)), ); const res = await cClient.deleteIfExists(); assert.ok(!res.succeeded); @@ -185,7 +185,7 @@ describe("DataLakeFileSystemClient", () => { const fileClients = []; for (let i = 0; i < 3; i++) { const fileClient = fileSystemClient.getFileClient( - recorder.variable(`file${i}`, getUniqueName(`file${i}`)) + recorder.variable(`file${i}`, getUniqueName(`file${i}`)), ); await fileClient.create(); fileClients.push(fileClient); @@ -218,7 +218,7 @@ describe("DataLakeFileSystemClient", () => { } const cClient = serviceClient.getFileSystemClient( - recorder.variable(fileSystemName, getUniqueName(fileSystemName)) + recorder.variable(fileSystemName, getUniqueName(fileSystemName)), ); await cClient.create({ fileSystemEncryptionScope: { @@ -247,7 +247,7 @@ describe("DataLakeFileSystemClient", () => { const encryptionContext = "EncryptionContext"; const cClient = serviceClient.getFileSystemClient( - recorder.variable(fileSystemName, getUniqueName(fileSystemName)) + recorder.variable(fileSystemName, getUniqueName(fileSystemName)), ); await cClient.create(); @@ -276,7 +276,7 @@ describe("DataLakeFileSystemClient", () => { } const cClient = serviceClient.getFileSystemClient( - recorder.variable(fileSystemName, getUniqueName(fileSystemName)) + recorder.variable(fileSystemName, getUniqueName(fileSystemName)), ); await cClient.create({ fileSystemEncryptionScope: { @@ -300,7 +300,7 @@ describe("DataLakeFileSystemClient", () => { it("listPaths - ExpiryTime, NeverExpire", async () => { const fileClient = fileSystemClient.getFileClient( - recorder.variable(`file`, getUniqueName(`file`)) + recorder.variable(`file`, getUniqueName(`file`)), ); await fileClient.create(); await fileClient.setExpiry("NeverExpire"); @@ -316,7 +316,7 @@ describe("DataLakeFileSystemClient", () => { const delta = 30 * 1000; const expiresOn = new Date(now.getTime() + delta); const fileClient = fileSystemClient.getFileClient( - recorder.variable(`file`, getUniqueName(`file`)) + recorder.variable(`file`, getUniqueName(`file`)), ); const content = "Hello, World"; @@ -344,7 +344,7 @@ describe("DataLakeFileSystemClient", () => { it("listPaths - ExpiryTime, RelativeToNow", async () => { const delta = 30 * 1000; const fileClient = fileSystemClient.getFileClient( - recorder.variable(`file`, getUniqueName(`file`)) + recorder.variable(`file`, getUniqueName(`file`)), ); const content = "Hello, World"; @@ -363,7 +363,7 @@ describe("DataLakeFileSystemClient", () => { it("listPaths - ExpiryTime, RelativeToCreation", async () => { const delta = 1000 * 3600 + 0.12; const fileClient = fileSystemClient.getFileClient( - recorder.variable(`file`, getUniqueName(`file`)) + recorder.variable(`file`, getUniqueName(`file`)), ); const content = "Hello, World"; @@ -376,7 +376,7 @@ describe("DataLakeFileSystemClient", () => { .value as FileSystemListPathsResponse; assert.equal( result.pathItems![0].expiresOn?.getTime(), - result.pathItems![0].createdOn!.getTime() + Math.round(delta) + result.pathItems![0].createdOn!.getTime() + Math.round(delta), ); await fileClient.delete(); }); @@ -385,7 +385,7 @@ describe("DataLakeFileSystemClient", () => { const fileClients = []; for (let i = 0; i < 3; i++) { const fileClient = fileSystemClient.getFileClient( - recorder.variable(`file${i}`, getUniqueName(`file${i}`)) + recorder.variable(`file${i}`, getUniqueName(`file${i}`)), ); await fileClient.create(); @@ -411,7 +411,7 @@ describe("DataLakeFileSystemClient", () => { }; for (let i = 0; i < 2; i++) { const fileClient = fileSystemClient.getFileClient( - recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)) + recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)), ); await fileClient.create({ @@ -462,7 +462,7 @@ describe("DataLakeFileSystemClient", () => { }; for (let i = 0; i < 4; i++) { const fileClient = fileSystemClient.getFileClient( - recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)) + recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)), ); await fileClient.create({ @@ -495,7 +495,7 @@ describe("DataLakeFileSystemClient", () => { }; for (let i = 0; i < 2; i++) { const fileClient = fileSystemClient.getFileClient( - recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)) + recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)), ); await fileClient.create({ @@ -530,7 +530,7 @@ describe("DataLakeFileSystemClient", () => { }; for (let i = 0; i < 4; i++) { const fileClient = fileSystemClient.getFileClient( - recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)) + recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)), ); await fileClient.create({ @@ -567,7 +567,7 @@ describe("DataLakeFileSystemClient", () => { }; for (let i = 0; i < 4; i++) { const fileClient = fileSystemClient.getFileClient( - recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)) + recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)), ); await fileClient.create({ @@ -614,17 +614,17 @@ describe("DataLakeFileSystemClient", () => { it("verify fileSystemName passed to the client", async () => { const accountName = "myaccount"; const newClient = new DataLakeFileSystemClient( - `https://${accountName}.dfs.core.windows.net/` + fileSystemName + `https://${accountName}.dfs.core.windows.net/` + fileSystemName, ); assert.equal( newClient.name, fileSystemName, - "File system name is not the same as the one provided." + "File system name is not the same as the one provided.", ); assert.equal( newClient.accountName, accountName, - "Account name is not the same as the one provided." + "Account name is not the same as the one provided.", ); }); @@ -635,7 +635,7 @@ describe("DataLakeFileSystemClient", () => { it("exists returns false on non-existing file system", async () => { const newFileSystemClient = serviceClient.getFileSystemClient( - recorder.variable("newfilesystem", getUniqueName("newfilesystem")) + recorder.variable("newfilesystem", getUniqueName("newfilesystem")), ); const result = await newFileSystemClient.exists(); assert.ok(result === false, "exists() should returns false on non-existing file system"); @@ -665,7 +665,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { } fileSystemClient = serviceClient.getFileSystemClient( - recorder.variable(`filesystem`, getUniqueName(`filesystem`)) + recorder.variable(`filesystem`, getUniqueName(`filesystem`)), ); await fileSystemClient.createIfNotExists(); }); @@ -683,7 +683,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { const fileClients = []; for (let i = 0; i < 3; i++) { const fileClient = fileSystemClient.getFileClient( - recorder.variable(`file${i}`, getUniqueName(`file${i}`)) + recorder.variable(`file${i}`, getUniqueName(`file${i}`)), ); await fileClient.create(); fileClients.push(fileClient); @@ -711,7 +711,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { const fileClients = []; for (let i = 0; i < 3; i++) { const fileClient = fileSystemClient.getFileClient( - recorder.variable(`file${i}`, getUniqueName(`file${i}`)) + recorder.variable(`file${i}`, getUniqueName(`file${i}`)), ); await fileClient.create(); fileClients.push(fileClient); @@ -747,7 +747,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { const fileClients = []; for (let i = 0; i < 3; i++) { const fileClient = fileSystemClient.getFileClient( - recorder.variable(`file${i}`, getUniqueName(`file${i}`)) + recorder.variable(`file${i}`, getUniqueName(`file${i}`)), ); await fileClient.create(); fileClients.push(fileClient); @@ -777,7 +777,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { const fileClients = []; for (let i = 0; i < 3; i++) { const fileClient = fileSystemClient.getFileClient( - recorder.variable(`file${i}`, getUniqueName(`file${i}`)) + recorder.variable(`file${i}`, getUniqueName(`file${i}`)), ); await fileClient.create(); @@ -810,7 +810,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { }; for (let i = 0; i < 2; i++) { const fileClient = fileSystemClient.getFileClient( - recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)) + recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)), ); await fileClient.create({ @@ -862,7 +862,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { }; for (let i = 0; i < 4; i++) { const fileClient = fileSystemClient.getFileClient( - recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)) + recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)), ); await fileClient.create({ @@ -896,7 +896,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { }; for (let i = 0; i < 2; i++) { const fileClient = fileSystemClient.getFileClient( - recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)) + recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)), ); await fileClient.create({ @@ -935,7 +935,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { }; for (let i = 0; i < 4; i++) { const fileClient = fileSystemClient.getFileClient( - recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)) + recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)), ); await fileClient.create({ @@ -973,7 +973,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { }; for (let i = 0; i < 4; i++) { const fileClient = fileSystemClient.getFileClient( - recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)) + recorder.variable(`${prefix}${i}`, getUniqueName(`${prefix}${i}`)), ); await fileClient.create({ @@ -1028,7 +1028,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { const fileundeleteResponse = await fileSystemClient.undeletePath( fileName, - fileDeleteResponse.deletionId ?? "" + fileDeleteResponse.deletionId ?? "", ); assert.ok(fileundeleteResponse.pathClient instanceof DataLakeFileClient); @@ -1044,7 +1044,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { const directoryUndeleteResponse = await fileSystemClient.undeletePath( directoryName, - directoryDeleteResponse.deletionId ?? "" + directoryDeleteResponse.deletionId ?? "", ); assert.ok(directoryUndeleteResponse.pathClient instanceof DataLakeDirectoryClient); @@ -1064,7 +1064,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { const fileundeleteResponse = await fileSystemClient.undeletePath( fileNameWithDirDots, - fileDeleteResponse.deletionId ?? "" + fileDeleteResponse.deletionId ?? "", ); assert.ok(fileundeleteResponse.pathClient instanceof DataLakeFileClient); @@ -1081,7 +1081,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { const directoryNameWithDirDots = "./adir/.././anotherdir/./../" + directoryBaseName; const directoryUndeleteResponse = await fileSystemClient.undeletePath( directoryNameWithDirDots, - directoryDeleteResponse.deletionId ?? "" + directoryDeleteResponse.deletionId ?? "", ); assert.ok(directoryUndeleteResponse.pathClient instanceof DataLakeDirectoryClient); @@ -1103,7 +1103,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { const fileundeleteResponse = await fileSystemClient.undeletePath( fileName, - firstDeletionId ?? "" + firstDeletionId ?? "", ); assert.ok(fileundeleteResponse.pathClient instanceof DataLakeFileClient); @@ -1125,7 +1125,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { const fileundeleteResponse = await fileSystemClient.undeletePath( fileName, - secondDeleteResponse.deletionId ?? "" + secondDeleteResponse.deletionId ?? "", ); assert.ok(fileundeleteResponse.pathClient instanceof DataLakeFileClient); @@ -1151,7 +1151,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { const fileundeleteResponse = await fileSystemClient.undeletePath( fileName, - fileDeleteResponse.deletionId ?? "" + fileDeleteResponse.deletionId ?? "", ); assert.ok(fileundeleteResponse.pathClient instanceof DataLakeFileClient); @@ -1166,7 +1166,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { const directoryUndeleteResponse = await fileSystemClient.undeletePath( directoryName, - directoryDeleteResponse.deletionId ?? "" + directoryDeleteResponse.deletionId ?? "", ); assert.ok(directoryUndeleteResponse.pathClient instanceof DataLakeDirectoryClient); @@ -1189,7 +1189,7 @@ describe("DataLakeFileSystemClient with soft delete", () => { const fileundeleteResponse = await fileSystemClient.undeletePath( fileName, - fileDeleteResponse.deletionId ?? "" + fileDeleteResponse.deletionId ?? "", ); assert.ok(fileundeleteResponse.pathClient instanceof DataLakeFileClient); diff --git a/sdk/storage/storage-file-datalake/test/leaseclient.spec.ts b/sdk/storage/storage-file-datalake/test/leaseclient.spec.ts index b9051b1adf5f..f2b93c10577d 100644 --- a/sdk/storage/storage-file-datalake/test/leaseclient.spec.ts +++ b/sdk/storage/storage-file-datalake/test/leaseclient.spec.ts @@ -22,7 +22,7 @@ describe("LeaseClient from FileSystem", () => { uriSanitizers, removeHeaderSanitizer: { headersForRemoval: ["x-ms-proposed-lease-id", "x-ms-lease-id"] }, }, - ["record", "playback"] + ["record", "playback"], ); const serviceClient = getDataLakeServiceClient(recorder); fileSystemName = recorder.variable("filesystem", getUniqueName("filesystem")); diff --git a/sdk/storage/storage-file-datalake/test/node/highlevel.node.spec.ts b/sdk/storage/storage-file-datalake/test/node/highlevel.node.spec.ts index 71f07e1dd736..a46521f2ae7e 100644 --- a/sdk/storage/storage-file-datalake/test/node/highlevel.node.spec.ts +++ b/sdk/storage/storage-file-datalake/test/node/highlevel.node.spec.ts @@ -50,7 +50,7 @@ describe("Highlevel Node.js only", () => { headersForRemoval: ["x-ms-proposed-lease-id", "x-ms-lease-id", "x-ms-rename-source"], }, }, - ["record", "playback"] + ["record", "playback"], ); const serviceClient = getDataLakeServiceClient(recorder, { keepAliveOptions: { @@ -113,7 +113,7 @@ describe("Highlevel Node.js only", () => { }); const readFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(readResponse.readableStreamBody!, readFile); const readBuffer = await fs.readFileSync(readFile); @@ -154,12 +154,12 @@ describe("Highlevel Node.js only", () => { }); assert.ok( readResponse.contentLength === tempFileSmallLength, - "readResponse.contentLength doesn't match tempFileSmallLength" + "readResponse.contentLength doesn't match tempFileSmallLength", ); assert.equal( readResponse.readableStreamBody, undefined, - "Expecting readResponse.readableStreamBody to be undefined." + "Expecting readResponse.readableStreamBody to be undefined.", ); const localFileContent = fs.readFileSync(tempFileSmall); @@ -179,7 +179,7 @@ describe("Highlevel Node.js only", () => { const readResponse = await fileClient.read(); const readFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(readResponse.readableStreamBody!, readFile); const readBuffer = await fs.readFileSync(readFile); @@ -198,7 +198,7 @@ describe("Highlevel Node.js only", () => { const readResponse = await fileClient.read(); const readFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(readResponse.readableStreamBody!, readFile); const readBuffer = await fs.readFileSync(readFile); @@ -314,7 +314,7 @@ describe("Highlevel Node.js only", () => { assert.equal( err.details.errorCode, "PathAlreadyExists", - "Upload should have thrown a PathAlreadyExists error." + "Upload should have thrown a PathAlreadyExists error.", ); } const response = await fileClient.read(); @@ -339,7 +339,7 @@ describe("Highlevel Node.js only", () => { assert.equal( err.details.errorCode, "LeaseIdMissing", - "Upload should have thrown a LeaseIdMissing error." + "Upload should have thrown a LeaseIdMissing error.", ); } const response = await fileClient.read(); @@ -383,7 +383,7 @@ describe("Highlevel Node.js only", () => { assert.equal( err.details.errorCode, "PathAlreadyExists", - "Upload should have thrown a PathAlreadyExists error." + "Upload should have thrown a PathAlreadyExists error.", ); } assert.ok(errThrown, "upload with a if-not-exist check should have thrown."); @@ -396,7 +396,7 @@ describe("Highlevel Node.js only", () => { const tempFile = await createRandomLocalFile( tempFolderPath, FILE_MAX_SINGLE_UPLOAD_THRESHOLD / MB, - MB + MB, ); const uploadedBuffer = fs.readFileSync(tempFile); await fileClient.upload(uploadedBuffer); @@ -404,7 +404,7 @@ describe("Highlevel Node.js only", () => { const readResponse = await fileClient.read(); const readFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(readResponse.readableStreamBody!, readFile); const readBuffer = await fs.readFileSync(readFile); @@ -442,7 +442,7 @@ describe("Highlevel Node.js only", () => { const readResponse = await fileClient.read(); const readFilePath = path.join( tempFolderPath, - recorder.variable("readFile", getUniqueName("readFile")) + recorder.variable("readFile", getUniqueName("readFile")), ); await readStreamToLocalFileWithLogs(readResponse.readableStreamBody!, readFilePath); @@ -521,7 +521,7 @@ describe("Highlevel Node.js only", () => { const readResponse = await fileClient.read(); const readFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(readResponse.readableStreamBody!, readFile); const readBuffer = await fs.readFileSync(readFile); @@ -541,7 +541,7 @@ describe("Highlevel Node.js only", () => { const readResponse = await fileClient.read(); const readFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(readResponse.readableStreamBody!, readFile); const readBuffer = await fs.readFileSync(readFile); @@ -656,7 +656,7 @@ describe("Highlevel Node.js only", () => { } fs.unlinkSync(tempFile); - } + }, ).timeout(timeoutForLargeFileUploadingTest); // Skipped because it throws an "invalid typed array length" error due to bugs in node-fetch. @@ -736,7 +736,7 @@ describe("Highlevel Node.js only", () => { } assert.ok( error.message.includes("Unable to allocate the buffer of size:"), - "Error is not thrown when the count (size in bytes) is too large" + "Error is not thrown when the count (size in bytes) is too large", ); }); @@ -814,12 +814,12 @@ describe("Highlevel Node.js only", () => { const readResponse = await fileClient.readToFile(readFilePath); assert.ok( readResponse.contentLength === tempFileSmallLength, - "readResponse.contentLength doesn't match tempFileSmallLength" + "readResponse.contentLength doesn't match tempFileSmallLength", ); assert.equal( readResponse.readableStreamBody, undefined, - "Expecting readResponse.readableStreamBody to be undefined." + "Expecting readResponse.readableStreamBody to be undefined.", ); const localFileContent = fs.readFileSync(tempFileSmall); diff --git a/sdk/storage/storage-file-datalake/test/node/pathclient.spec.ts b/sdk/storage/storage-file-datalake/test/node/pathclient.spec.ts index b4d095972873..1f8074de418d 100644 --- a/sdk/storage/storage-file-datalake/test/node/pathclient.spec.ts +++ b/sdk/storage/storage-file-datalake/test/node/pathclient.spec.ts @@ -50,7 +50,7 @@ describe("DataLakePathClient Node.js only", () => { headersForRemoval: ["x-ms-rename-source"], }, }, - ["record", "playback"] + ["record", "playback"], ); serviceClient = getDataLakeServiceClient(recorder); fileSystemName = recorder.variable("filesystem", getUniqueName("filesystem")); @@ -76,7 +76,7 @@ describe("DataLakePathClient Node.js only", () => { for (let i = 0; i < 5020; i++) { const fileClientInternal = directoryClient.getFileClient( - recorder.variable("file" + i, getUniqueName("file" + i)) + recorder.variable("file" + i, getUniqueName("file" + i)), ); await fileClientInternal.create(); } @@ -801,7 +801,7 @@ describe("DataLakePathClient Node.js only", () => { it("move should encode source", async () => { const destFileName = recorder.variable( " a+'%20%2F%2B%27%%25%2520.txt", - getUniqueName(" a+'%20%2F%2B%27%%25%2520.txt") + getUniqueName(" a+'%20%2F%2B%27%%25%2520.txt"), ); const destFileClient = fileSystemClient.getFileClient(destFileName); await fileClient.move(encodeURIComponent(destFileName)); @@ -838,7 +838,7 @@ describe("DataLakePathClient Node.js only", () => { await fileSystemClient.getDirectoryClient("dest file with & and 1").create(); const destFileName = recorder.variable( "dest file with & and 1/char", - getUniqueName("dest file with & and 1/char") + getUniqueName("dest file with & and 1/char"), ); const destFileClient = fileSystemClient.getFileClient(destFileName); await fileClient.move(encodeURIComponent(destFileName)); @@ -849,7 +849,7 @@ describe("DataLakePathClient Node.js only", () => { await fileSystemClient.getDirectoryClient("dest file with & and 2").create(); const destFileName = recorder.variable( "dest file with & and 2/char", - getUniqueName("dest file with & and 2/char") + getUniqueName("dest file with & and 2/char"), ); const destFileClient = fileSystemClient.getFileClient(destFileName); await fileClient.move(destFileName); @@ -1012,8 +1012,8 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { const result = await directoryClient.setAccessControlRecursive( toAcl( - "user::rwx,user:ec3595d6-2c17-4696-8caa-7e139758d24a:rw-,group::rw-,mask::rwx,other::---" - ) + "user::rwx,user:ec3595d6-2c17-4696-8caa-7e139758d24a:rw-,group::rw-,mask::rwx,other::---", + ), ); assert.deepStrictEqual(3, result.counters.changedDirectoriesCount); @@ -1051,7 +1051,7 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { let batchCounter = 0; const result = await directoryClient.setAccessControlRecursive( toAcl( - "user::rwx,user:ec3595d6-2c17-4696-8caa-7e139758d24a:rw-,group::rw-,mask::rwx,other::---" + "user::rwx,user:ec3595d6-2c17-4696-8caa-7e139758d24a:rw-,group::rw-,mask::rwx,other::---", ), { batchSize: 2, @@ -1059,7 +1059,7 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { onProgress: () => { batchCounter++; }, - } + }, ); assert.deepStrictEqual(1, batchCounter); @@ -1100,7 +1100,7 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { }; const result = await directoryClient.setAccessControlRecursive( toAcl( - "user::rwx,user:ec3595d6-2c17-4696-8caa-7e139758d24a:rw-,group::rw-,mask::rwx,other::---" + "user::rwx,user:ec3595d6-2c17-4696-8caa-7e139758d24a:rw-,group::rw-,mask::rwx,other::---", ), { batchSize: 2, @@ -1109,7 +1109,7 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { progress.batchCounters.changedDirectoriesCount + progress.batchCounters.changedFilesCount + progress.batchCounters.failedChangesCount <= - 2 + 2, ); cumulativeCounters.changedDirectoriesCount += progress.batchCounters.changedDirectoriesCount; @@ -1118,20 +1118,20 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { assert.deepStrictEqual( progress.aggregateCounters.changedDirectoriesCount, - cumulativeCounters.changedDirectoriesCount + cumulativeCounters.changedDirectoriesCount, ); assert.deepStrictEqual( progress.aggregateCounters.changedFilesCount, - cumulativeCounters.changedFilesCount + cumulativeCounters.changedFilesCount, ); assert.deepStrictEqual( progress.aggregateCounters.failedChangesCount, - cumulativeCounters.failedChangesCount + cumulativeCounters.failedChangesCount, ); batchCounter++; }, - } + }, ); assert.deepStrictEqual(3, cumulativeCounters.changedDirectoriesCount); @@ -1176,7 +1176,7 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { const aborter = new AbortController(); await directoryClient.setAccessControlRecursive( toAcl( - "user::rwx,user:ec3595d6-2c17-4696-8caa-7e139758d24a:rw-,group::rw-,mask::rwx,other::---" + "user::rwx,user:ec3595d6-2c17-4696-8caa-7e139758d24a:rw-,group::rw-,mask::rwx,other::---", ), { batchSize: 2, @@ -1186,7 +1186,7 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { aborter.abort(); }, abortSignal: aborter.signal, - } + }, ); } catch (err: any) { assert.equal(err.name, "DataLakeAclChangeFailedError"); @@ -1194,30 +1194,30 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { assert.equal( err.innerError.message, "The operation was aborted.", - "Unexpected error caught: " + err + "Unexpected error caught: " + err, ); } const result = await directoryClient.setAccessControlRecursive( toAcl( - "user::rwx,user:ec3595d6-2c17-4696-8caa-7e139758d24a:rw-,group::rw-,mask::rwx,other::---" + "user::rwx,user:ec3595d6-2c17-4696-8caa-7e139758d24a:rw-,group::rw-,mask::rwx,other::---", ), { continuationToken: continuation, - } + }, ); assert.deepStrictEqual( 3, - result.counters.changedDirectoriesCount + midProgress!.batchCounters.changedDirectoriesCount + result.counters.changedDirectoriesCount + midProgress!.batchCounters.changedDirectoriesCount, ); assert.deepStrictEqual( 4, - result.counters.changedFilesCount + midProgress!.batchCounters.changedFilesCount + result.counters.changedFilesCount + midProgress!.batchCounters.changedFilesCount, ); assert.deepStrictEqual( 0, - result.counters.failedChangesCount + midProgress!.batchCounters.failedChangesCount + result.counters.failedChangesCount + midProgress!.batchCounters.failedChangesCount, ); assert.deepStrictEqual(undefined, result.continuationToken); }); @@ -1250,8 +1250,8 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { const result = await directoryClient.updateAccessControlRecursive( toAcl( - "user::rwx,user:ec3595d6-2c17-4696-8caa-7e139758d24a:rw-,group::rw-,mask::rwx,other::---" - ) + "user::rwx,user:ec3595d6-2c17-4696-8caa-7e139758d24a:rw-,group::rw-,mask::rwx,other::---", + ), ); assert.deepStrictEqual(3, result.counters.changedDirectoriesCount); @@ -1288,8 +1288,8 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { const result = await directoryClient.updateAccessControlRecursive( toAcl( - "user::rwx,user:ec3595d6-2c17-4696-8caa-7e139758d24a:rw-,group::rw-,mask::rwx,other::---" - ) + "user::rwx,user:ec3595d6-2c17-4696-8caa-7e139758d24a:rw-,group::rw-,mask::rwx,other::---", + ), ); assert.deepStrictEqual(3, result.counters.changedDirectoriesCount); @@ -1302,8 +1302,8 @@ describe("DataLakePathClient setAccessControlRecursive Node.js only", () => { "mask," + "default:user,default:group," + "user:ec3595d6-2c17-4696-8caa-7e139758d24a,group:ec3595d6-2c17-4696-8caa-7e139758d24a," + - "default:user:ec3595d6-2c17-4696-8caa-7e139758d24a,default:group:ec3595d6-2c17-4696-8caa-7e139758d24a" - ) + "default:user:ec3595d6-2c17-4696-8caa-7e139758d24a,default:group:ec3595d6-2c17-4696-8caa-7e139758d24a", + ), ); assert.deepStrictEqual(3, removeResult.counters.changedDirectoriesCount); diff --git a/sdk/storage/storage-file-datalake/test/node/sas.spec.ts b/sdk/storage/storage-file-datalake/test/node/sas.spec.ts index bba29a079e88..ef74b92ae11c 100644 --- a/sdk/storage/storage-file-datalake/test/node/sas.spec.ts +++ b/sdk/storage/storage-file-datalake/test/node/sas.spec.ts @@ -74,7 +74,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const sasClient = `${serviceClient.url}?${sas}`; @@ -106,7 +106,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { version: "2020-12-06", encryptionScope: encryptionScopeName, }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const sasClient = `${serviceClient.url}?${sas}`; @@ -114,7 +114,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { configureStorageClient(recorder, serviceClientWithSAS); const filesystemClient = await serviceClientWithSAS.getFileSystemClient( - recorder.variable("filesystem", getUniqueName("filesystem")) + recorder.variable("filesystem", getUniqueName("filesystem")), ); await filesystemClient.create({ fileSystemEncryptionScope: { @@ -138,13 +138,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { resourceTypes: AccountSASResourceTypes.parse("sco").toString(), services: AccountSASServices.parse("btqf").toString(), }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const sasClient = `${serviceClient.url}?${sas}`; const serviceClientWithSAS = new DataLakeServiceClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, serviceClientWithSAS); @@ -171,13 +171,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { resourceTypes: AccountSASResourceTypes.parse("sco").toString(), services: AccountSASServices.parse("tqf").toString(), }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const sasClient = `${serviceClient.url}?${sas}`; const serviceClientWithSAS = new DataLakeServiceClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, serviceClientWithSAS); @@ -207,13 +207,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { services: AccountSASServices.parse("btqf").toString(), version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const sasClient = `${serviceClient.url}?${sas}`; const serviceClientWithSAS = new DataLakeServiceClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, serviceClientWithSAS); @@ -250,13 +250,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasClient = `${fileSystemClient.url}?${containerSAS}`; const fileSystemClientwithSAS = new DataLakeFileSystemClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, fileSystemClientwithSAS); @@ -295,7 +295,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { version: "2020-12-06", encryptionScope: encryptionScopeName, }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasClient = `${fileSystemClient.url}?${containerSAS}`; @@ -343,13 +343,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasClient = `${fileClient.url}?${fileSAS}`; const fileClientWithSAS = new DataLakeFileClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, fileClientWithSAS); @@ -399,13 +399,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { protocol: SASProtocol.HttpsAndHttp, startsOn: now, }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasURL = `${fileClient.url}?${fileSAS}`; const fileClientWithSAS = new DataLakeFileClient( sasURL, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, fileClientWithSAS); @@ -452,7 +452,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { permissions: DataLakeSASPermissions.parse("racwd"), encryptionScope: encryptionScopeName, }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasURL = `${fileClient.url}?${fileSAS}`; @@ -475,7 +475,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { const fileSystemName = recorder.variable( "filesystem-with-dash", - getUniqueName("filesystem-with-dash") + getUniqueName("filesystem-with-dash"), ); const fileSystemClient = serviceClient.getFileSystemClient(fileSystemName); await fileSystemClient.create(); @@ -484,8 +484,8 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { const fileName = recorder.variable( "uniqueName", getUniqueName( - "./a/../Upper file empty another 汉字 ру́сский язы́к ру́сский язы́к عرعربى にっぽんごにほんご . special ~!@#$%^&*()_+`1234567890-={}|[]:\";'<>?,'" - ) + "./a/../Upper file empty another 汉字 ру́сский язы́к ру́сский язы́к عرعربى にっぽんごにほんご . special ~!@#$%^&*()_+`1234567890-={}|[]:\";'<>?,'", + ), ); const fileClient = fileSystemClient.getFileClient(fileName); await fileClient.create({ @@ -509,13 +509,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasClient = `${fileClient.url}?${fileSAS}`; const fileClientWithSAS = new DataLakeFileClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, fileClientWithSAS); @@ -572,13 +572,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { fileSystemName, identifier: id, }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasClient = `${fileClient.url}?${fileSAS}`; const fileClientWithSAS = new DataLakeFileClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, fileClientWithSAS); @@ -630,13 +630,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { pathName: fileName, identifier: id, }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasClient = `${fileClient.url}?${fileSAS}`; const fileClientWithSAS = new DataLakeFileClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, fileClientWithSAS); @@ -684,13 +684,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { version: "2019-02-02", }, userDelegationKey, - accountName + accountName, ); const sasClient = `${fileSystemClient.url}?${containerSAS}`; const fileSystemClientwithSAS = new DataLakeFileSystemClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, fileSystemClientwithSAS); @@ -735,13 +735,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { permissions: FileSystemSASPermissions.parse("racwdl"), }, userDelegationKey, - accountName + accountName, ); const sasClient = `${fileSystemClient.url}?${containerSAS}`; const fileSystemClientwithSAS = new DataLakeFileSystemClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, fileSystemClientwithSAS); @@ -803,13 +803,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, }, userDelegationKey, - accountName + accountName, ); const sasClient = `${fileClient.url}?${fileSAS}`; const fileClientWithSAS = new DataLakeFileClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, fileClientWithSAS); @@ -877,13 +877,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { version: "2019-12-12", }, userDelegationKey, - accountName + accountName, ); const sasClient = `${fileClient.url}?${fileSAS}`; const fileClientWithSAS = new DataLakeFileClient( sasClient, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, fileClientWithSAS); @@ -910,7 +910,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { }); assert.equal( sasQP2.toString(), - "sv=2020-02-10&sp=permissions&sig=signature&sdd=2&saoid=preauthorizedAgentObjectId&scid=correlationId" + "sv=2020-02-10&sp=permissions&sig=signature&sdd=2&saoid=preauthorizedAgentObjectId&scid=correlationId", ); const sasQP3 = new SASQueryParameters( @@ -934,11 +934,11 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { 2, "preauthorizedAgentObjectId", undefined, - "correlationId" + "correlationId", ); assert.equal( sasQP3.toString(), - "sv=2020-02-10&sp=permissions&sig=signature&sdd=2&saoid=preauthorizedAgentObjectId&scid=correlationId" + "sv=2020-02-10&sp=permissions&sig=signature&sdd=2&saoid=preauthorizedAgentObjectId&scid=correlationId", ); }); @@ -958,7 +958,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { protocol: SASProtocol.HttpsAndHttp, startsOn: now, ipRange: { start: "0.0.0.0", end: "255.255.255.255" }, - } + }, ); const serviceClientWithSAS = new DataLakeServiceClient(sasURL); configureStorageClient(recorder, serviceClientWithSAS); @@ -1005,7 +1005,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { "sco", { encryptionScope: encryptionScopeName, - } + }, ); const serviceClientWithSAS = new DataLakeServiceClient(sasURL); configureStorageClient(recorder, serviceClientWithSAS); @@ -1100,12 +1100,12 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { const fileSystemClientWithSAS = new DataLakeFileSystemClient(sasURL); configureStorageClient(recorder, fileSystemClientWithSAS); const fileClient = fileSystemClientWithSAS.getFileClient( - recorder.variable(`file`, getUniqueName(`file`)) + recorder.variable(`file`, getUniqueName(`file`)), ); await fileClient.create(); const dirClient = fileSystemClientWithSAS.getFileClient( - recorder.variable(`dir`, getUniqueName(`dir`)) + recorder.variable(`dir`, getUniqueName(`dir`)), ); await dirClient.create(); @@ -1143,7 +1143,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { tmr.setDate(tmr.getDate() + 10); const directoryClient = fileSystemClient.getDirectoryClient( - recorder.variable("directory", getUniqueName("directory")) + recorder.variable("directory", getUniqueName("directory")), ); const sasURL = await directoryClient.generateSasUrl({ expiresOn: tmr, @@ -1177,7 +1177,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { tmr.setDate(tmr.getDate() + 10); const fileClient = fileSystemClient.getFileClient( - recorder.variable("file", getUniqueName("file")) + recorder.variable("file", getUniqueName("file")), ); const sasURL = await fileClient.generateSasUrl({ expiresOn: tmr, @@ -1268,12 +1268,12 @@ describe("SAS generation Node.js only for directory SAS", () => { startsOn: now, version: "2020-02-10", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasURL = `${directoryClient.url}?${directorySAS}`; const directoryClientwithSAS = new DataLakeDirectoryClient( sasURL, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, directoryClientwithSAS); @@ -1298,7 +1298,7 @@ describe("SAS generation Node.js only for directory SAS", () => { permissions: DirectorySASPermissions.parse("racwdlmeop"), version: "2020-02-10", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasURL = `${rootDirectoryClient.url}?${directorySAS}`; const directoryClientwithSAS = new DataLakeDirectoryClient(sasURL); @@ -1319,7 +1319,7 @@ describe("SAS generation Node.js only for directory SAS", () => { startsOn: now, version: "2020-02-10", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); } @@ -1327,7 +1327,7 @@ describe("SAS generation Node.js only for directory SAS", () => { const directorySAS = getDefualtDirctorySAS(directoryClient.name); assert.equal(directorySAS.directoryDepth, 1); const directoryClientwithSAS = new DataLakeDirectoryClient( - `${directoryClient.url}?${directorySAS}` + `${directoryClient.url}?${directorySAS}`, ); configureStorageClient(recorder, directoryClientwithSAS); await directoryClientwithSAS.setPermissions(permissions); @@ -1336,7 +1336,7 @@ describe("SAS generation Node.js only for directory SAS", () => { const directorySAS2 = getDefualtDirctorySAS(""); assert.equal(directorySAS2.directoryDepth, 0); const directoryClientwithSAS2 = new DataLakeDirectoryClient( - `${directoryClient.url}?${directorySAS2}` + `${directoryClient.url}?${directorySAS2}`, ); configureStorageClient(recorder, directoryClientwithSAS2); await directoryClientwithSAS2.setPermissions(permissions); @@ -1364,12 +1364,12 @@ describe("SAS generation Node.js only for directory SAS", () => { startsOn: now, version: "2020-02-10", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasURL = `${fileClient.url}?${fileSAS}`; const fileClientWithSAS = new DataLakeFileClient( sasURL, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, fileClientWithSAS); @@ -1395,12 +1395,12 @@ describe("SAS generation Node.js only for directory SAS", () => { startsOn: now, version: "2020-02-10", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasURL = `${directoryClient.url}?${fileSystemSAS}`; const directoryClientwithSAS = new DataLakeDirectoryClient( sasURL, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, directoryClientwithSAS); @@ -1425,7 +1425,7 @@ describe("SAS generation Node.js only for directory SAS", () => { pathName: directoryClient.name, isDirectory: true, }, - sharedKeyCredential + sharedKeyCredential, ).toString(); assert.deepStrictEqual(sasURL, directoryClient.url + "?" + sas); @@ -1457,7 +1457,7 @@ describe("SAS generation Node.js only for directory SAS", () => { fileSystemName: fileSystemClient.name, pathName: fileClient.name, }, - sharedKeyCredential + sharedKeyCredential, ).toString(); assert.deepStrictEqual(sasURL, fileClient.url + "?" + sas); @@ -1505,7 +1505,7 @@ describe("SAS generation Node.js only for directory SAS", () => { isDirectory: true, identifier: id, }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasClient = `${fileClient.url}?${directorySAS}`; @@ -1597,7 +1597,7 @@ describe("SAS generation Node.js only for delegation SAS", () => { permissions: DataLakeSASPermissions.parse("racwdmeop"), }, userDelegationKey, - accountName + accountName, ); const sasURL = `${directoryClient.url}?${fileSystemSAS}`; @@ -1634,7 +1634,7 @@ describe("SAS generation Node.js only for delegation SAS", () => { agentObjectId: authorizedGuid, }, userDelegationKey, - accountName + accountName, ); const newFileName = recorder.variable("newFile", getUniqueName("newFile")); @@ -1654,7 +1654,7 @@ describe("SAS generation Node.js only for delegation SAS", () => { agentObjectId: unauthoriziedGuid, }, userDelegationKey, - accountName + accountName, ); const newFileClientWithSAS2 = new DataLakeFileClient(`${newFileClient.url}?${fileSystemSAS2}`); @@ -1675,7 +1675,7 @@ describe("SAS generation Node.js only for delegation SAS", () => { preauthorizedAgentObjectId: unauthoriziedGuid, }, userDelegationKey, - accountName + accountName, ); const newFileClientWithSAS3 = new DataLakeFileClient(`${newFileClient.url}?${fileSystemSAS3}`); configureStorageClient(recorder, newFileClientWithSAS3); @@ -1692,11 +1692,11 @@ describe("SAS generation Node.js only for delegation SAS", () => { correlationId: guid, }, userDelegationKey, - accountName + accountName, ); const fileSystemClientWithSAS = new DataLakeFileSystemClient( - `${fileSystemClient.url}?${fileSystemSAS}` + `${fileSystemClient.url}?${fileSystemSAS}`, ); configureStorageClient(recorder, fileSystemClientWithSAS); diff --git a/sdk/storage/storage-file-datalake/test/node/serviceclient.spec.ts b/sdk/storage/storage-file-datalake/test/node/serviceclient.spec.ts index c025ca194562..3ae95ee27e77 100644 --- a/sdk/storage/storage-file-datalake/test/node/serviceclient.spec.ts +++ b/sdk/storage/storage-file-datalake/test/node/serviceclient.spec.ts @@ -31,7 +31,7 @@ describe("DataLakeServiceClient", () => { retryOptions: { maxTries: 1, }, - } + }, ); configureStorageClient(recorder, newClient); diff --git a/sdk/storage/storage-file-datalake/test/pathclient.spec.ts b/sdk/storage/storage-file-datalake/test/pathclient.spec.ts index 197b6727d4ec..b8a6b2065388 100644 --- a/sdk/storage/storage-file-datalake/test/pathclient.spec.ts +++ b/sdk/storage/storage-file-datalake/test/pathclient.spec.ts @@ -917,7 +917,7 @@ describe("DataLakePathClient", () => { const result = await fileClient.read(undefined, undefined, options); assert.deepStrictEqual(await bodyToString(result, content.length), content); }, - ["DataLakeFileClient-read"] + ["DataLakeFileClient-read"], ); }); @@ -925,18 +925,18 @@ describe("DataLakePathClient", () => { const accountName = "myaccount"; const path = "file/part/1.txt"; const newClient = new DataLakeFileClient( - `https://${accountName}.dfs.core.windows.net/` + fileSystemName + "/" + path + `https://${accountName}.dfs.core.windows.net/` + fileSystemName + "/" + path, ); assert.equal( newClient.fileSystemName, fileSystemName, - "File system name is not the same as the one provided." + "File system name is not the same as the one provided.", ); assert.equal(newClient.name, path, "File name is not the same as the one provided."); assert.equal( newClient.accountName, accountName, - "Account name is not the same as the one provided." + "Account name is not the same as the one provided.", ); }); @@ -964,8 +964,8 @@ describe("DataLakePathClient", () => { gotError = true; assert.ok( (err as any).message.startsWith( - "There is currently a lease on the resource and no lease ID was specified in the request." - ) + "There is currently a lease on the resource and no lease ID was specified in the request.", + ), ); } assert.ok(gotError, "Should throw out an exception to write to a leased file without lease id"); @@ -1025,8 +1025,8 @@ describe("DataLakePathClient", () => { gotError = true; assert.ok( (err as any).message.startsWith( - "There is currently a lease on the resource and no lease ID was specified in the request." - ) + "There is currently a lease on the resource and no lease ID was specified in the request.", + ), ); } assert.ok(gotError, "Should throw out an exception to write to a leased file without lease id"); @@ -1092,8 +1092,8 @@ describe("DataLakePathClient", () => { gotError = true; assert.ok( (err as any).message.startsWith( - "There is currently a lease on the resource and no lease ID was specified in the request." - ) + "There is currently a lease on the resource and no lease ID was specified in the request.", + ), ); } assert.ok(gotError, "Should throw out an exception to write to a leased file without lease id"); @@ -1147,8 +1147,8 @@ describe("DataLakePathClient", () => { gotError = true; assert.ok( (err as any).message.startsWith( - "There is currently a lease on the resource and no lease ID was specified in the request." - ) + "There is currently a lease on the resource and no lease ID was specified in the request.", + ), ); } assert.ok(gotError, "Should throw out an exception to write to a leased file without lease id"); @@ -1334,13 +1334,13 @@ describe("DataLakePathClient", () => { it("exists returns false on non-existing file or directory", async () => { const newFileClient = fileSystemClient.getFileClient( - recorder.variable("newFile", getUniqueName("newFile")) + recorder.variable("newFile", getUniqueName("newFile")), ); const result = await newFileClient.exists(); assert.ok(result === false, "exists() should return false for a non-existing file"); const newDirectoryClient = fileSystemClient.getDirectoryClient( - recorder.variable("newDirectory", getUniqueName("newDirectory")) + recorder.variable("newDirectory", getUniqueName("newDirectory")), ); const dirResult = await newDirectoryClient.exists(); assert.ok(dirResult === false, "exists() should return false for a non-existing directory"); @@ -1541,7 +1541,7 @@ describe("DataLakePathClient with CPK", () => { assert.ok( await fileClient.exists({ customerProvidedKey: Test_CPK_INFO, - }) + }), ); }); @@ -1551,7 +1551,7 @@ describe("DataLakePathClient with CPK", () => { assert.ok( await fileClient.exists({ customerProvidedKey: Test_CPK_INFO, - }) + }), ); }); @@ -1711,7 +1711,7 @@ describe("DataLakePathClient with CPK", () => { {}, { customerProvidedKey: Test_CPK_INFO, - } + }, ); } catch (err: any) { gotError = true; @@ -1766,7 +1766,7 @@ describe("DataLakePathClient with CPK", () => { assert.ok( await dirClient.exists({ customerProvidedKey: Test_CPK_INFO, - }) + }), ); }); @@ -1775,7 +1775,7 @@ describe("DataLakePathClient with CPK", () => { assert.ok( await dirClient.exists({ customerProvidedKey: Test_CPK_INFO, - }) + }), ); }); @@ -1832,7 +1832,7 @@ describe("DataLakePathClient with CPK", () => { {}, { customerProvidedKey: Test_CPK_INFO, - } + }, ); } catch (err: any) { gotError = true; diff --git a/sdk/storage/storage-file-datalake/test/serviceclient.spec.ts b/sdk/storage/storage-file-datalake/test/serviceclient.spec.ts index ffbbad13455e..fbe99130f38f 100644 --- a/sdk/storage/storage-file-datalake/test/serviceclient.spec.ts +++ b/sdk/storage/storage-file-datalake/test/serviceclient.spec.ts @@ -106,11 +106,11 @@ describe("DataLakeServiceClient", () => { assert.deepStrictEqual(serviceProperties.minuteMetrics, properties.minuteMetrics); assert.deepStrictEqual( serviceProperties.deleteRetentionPolicy?.days, - properties.deleteRetentionPolicy?.days + properties.deleteRetentionPolicy?.days, ); assert.deepStrictEqual( serviceProperties.deleteRetentionPolicy?.enabled, - properties.deleteRetentionPolicy?.enabled + properties.deleteRetentionPolicy?.enabled, ); // Cleanup @@ -121,17 +121,17 @@ describe("DataLakeServiceClient", () => { assert.deepStrictEqual(previousProperties.cors, properties.cors); assert.deepStrictEqual( previousProperties.blobAnalyticsLogging, - properties.blobAnalyticsLogging + properties.blobAnalyticsLogging, ); assert.deepStrictEqual(previousProperties.hourMetrics, properties.hourMetrics); assert.deepStrictEqual(previousProperties.minuteMetrics, properties.minuteMetrics); assert.deepStrictEqual( previousProperties.deleteRetentionPolicy?.days, - properties.deleteRetentionPolicy?.days + properties.deleteRetentionPolicy?.days, ); assert.deepStrictEqual( previousProperties.deleteRetentionPolicy?.enabled, - properties.deleteRetentionPolicy?.enabled + properties.deleteRetentionPolicy?.enabled, ); }); @@ -534,7 +534,7 @@ describe("DataLakeServiceClient", () => { retryOptions: { maxTries: 1, }, - } + }, ); configureStorageClient(recorder, newClient); @@ -622,7 +622,7 @@ describe("DataLakeServiceClient", () => { const restoreRes = await serviceClient.undeleteFileSystem( fileSystemName, - fileSystemItem.versionId! + fileSystemItem.versionId!, ); assert.equal(restoreRes.fileSystemClient.name, fileSystemName); await restoreRes.fileSystemClient.delete(); diff --git a/sdk/storage/storage-file-datalake/test/specialnaming.spec.ts b/sdk/storage/storage-file-datalake/test/specialnaming.spec.ts index 8eeff4694082..255dd906673e 100644 --- a/sdk/storage/storage-file-datalake/test/specialnaming.spec.ts +++ b/sdk/storage/storage-file-datalake/test/specialnaming.spec.ts @@ -22,7 +22,7 @@ describe("Special Naming Tests", () => { const serviceClient = getDataLakeServiceClient(recorder); fileSystemName = recorder.variable( "1container-with-dash", - getUniqueName("1container-with-dash") + getUniqueName("1container-with-dash"), ); fileSystemClient = serviceClient.getFileSystemClient(fileSystemName); await fileSystemClient.createIfNotExists(); @@ -48,7 +48,7 @@ describe("Special Naming Tests", () => { const fileName: string = recorder.variable("blob empty", getUniqueName("blob empty")); const fileClient = new DataLakeFileClient( appendToURLPath(fileSystemClient.url, fileName), - (fileSystemClient as any).pipeline + (fileSystemClient as any).pipeline, ); await fileClient.create(); @@ -61,7 +61,7 @@ describe("Special Naming Tests", () => { it("Should work with special container and blob names uppercase", async () => { const fileName: string = recorder.variable( "Upper blob empty another", - getUniqueName("Upper blob empty another") + getUniqueName("Upper blob empty another"), ); const fileClient = fileSystemClient.getFileClient(fileName); @@ -76,11 +76,11 @@ describe("Special Naming Tests", () => { it("Should work with special container and blob names uppercase in URL string", async () => { const fileName: string = recorder.variable( "Upper blob empty another", - getUniqueName("Upper blob empty another") + getUniqueName("Upper blob empty another"), ); const fileClient = new DataLakeFileClient( appendToURLPath(fileSystemClient.url, fileName), - (fileSystemClient as any).pipeline + (fileSystemClient as any).pipeline, ); await fileClient.create(); @@ -94,7 +94,7 @@ describe("Special Naming Tests", () => { it("Should work with special blob names Chinese characters", async () => { const fileName: string = recorder.variable( "Upper blob empty another 汉字", - getUniqueName("Upper blob empty another 汉字") + getUniqueName("Upper blob empty another 汉字"), ); const fileClient = fileSystemClient.getFileClient(fileName); @@ -109,11 +109,11 @@ describe("Special Naming Tests", () => { it("Should work with special blob names Chinese characters in URL string", async () => { const fileName: string = recorder.variable( "Upper blob empty another 汉字", - getUniqueName("Upper blob empty another 汉字") + getUniqueName("Upper blob empty another 汉字"), ); const fileClient = new DataLakeFileClient( appendToURLPath(fileSystemClient.url, fileName), - (fileSystemClient as any).pipeline + (fileSystemClient as any).pipeline, ); await fileClient.create(); @@ -145,7 +145,7 @@ describe("Special Naming Tests", () => { // Escape "%" when creating XxxClient object with URL strings // Escape "?" otherwise string after "?" will be treated as URL parameters appendToURLPath(fileSystemClient.url, fileName.replace(/%/g, "%25").replace(/\?/g, "%3F")), - (fileSystemClient as any).pipeline + (fileSystemClient as any).pipeline, ); await fileClient.create(); @@ -193,7 +193,7 @@ describe("Special Naming Tests", () => { const fileName: string = recorder.variable("ру́сский язы́к", getUniqueName("ру́сский язы́к")); const fileClient = new DataLakeFileClient( appendToURLPath(fileSystemClient.url, fileName), - (fileSystemClient as any).pipeline + (fileSystemClient as any).pipeline, ); await fileClient.create(); @@ -233,7 +233,7 @@ describe("Special Naming Tests", () => { const fileName: string = recorder.variable("عربيعربى", getUniqueName("عربيعربى")); const fileClient = new DataLakeFileClient( appendToURLPath(fileSystemClient.url, fileName), - (fileSystemClient as any).pipeline + (fileSystemClient as any).pipeline, ); await fileClient.create(); @@ -247,7 +247,7 @@ describe("Special Naming Tests", () => { it("Should work with special blob name Japanese URI encoded", async () => { const fileName: string = recorder.variable( "にっぽんごにほんご", - getUniqueName("にっぽんごにほんご") + getUniqueName("にっぽんごにほんご"), ); const fileNameEncoded: string = encodeURIComponent(fileName); const fileClient = fileSystemClient.getFileClient(fileNameEncoded); @@ -263,7 +263,7 @@ describe("Special Naming Tests", () => { it("Should work with special blob name Japanese", async () => { const fileName: string = recorder.variable( "にっぽんごにほんご", - getUniqueName("にっぽんごにほんご") + getUniqueName("にっぽんごにほんご"), ); const fileClient = fileSystemClient.getFileClient(fileName); @@ -278,11 +278,11 @@ describe("Special Naming Tests", () => { it("Should work with special blob name Japanese in URL string", async () => { const fileName: string = recorder.variable( "にっぽんごにほんご", - getUniqueName("にっぽんごにほんご") + getUniqueName("にっぽんごにほんご"), ); const fileClient = new DataLakeFileClient( appendToURLPath(fileSystemClient.url, fileName), - (fileSystemClient as any).pipeline + (fileSystemClient as any).pipeline, ); await fileClient.create(); diff --git a/sdk/storage/storage-file-datalake/test/transforms.spec.ts b/sdk/storage/storage-file-datalake/test/transforms.spec.ts index a8e79a3c4f6c..4f62aeef6138 100644 --- a/sdk/storage/storage-file-datalake/test/transforms.spec.ts +++ b/sdk/storage/storage-file-datalake/test/transforms.spec.ts @@ -23,24 +23,24 @@ describe("transforms", () => { it("toBlobEndpointUrl", () => { assert.deepStrictEqual( toBlobEndpointUrl("http://account.blob.core.windows.net"), - "http://account.blob.core.windows.net" + "http://account.blob.core.windows.net", ); assert.deepStrictEqual( toBlobEndpointUrl("http://account.dfs.core.windows.net"), - "http://account.blob.core.windows.net" + "http://account.blob.core.windows.net", ); assert.deepStrictEqual(toBlobEndpointUrl("http://127.0.0.1:10000"), "http://127.0.0.1:10000"); assert.deepStrictEqual( toBlobEndpointUrl("http://account.blob.core.windows.net/abc"), - "http://account.blob.core.windows.net/abc" + "http://account.blob.core.windows.net/abc", ); assert.deepStrictEqual( toBlobEndpointUrl("http://account.dfs.core.windows.net/abc"), - "http://account.blob.core.windows.net/abc" + "http://account.blob.core.windows.net/abc", ); assert.deepStrictEqual( toBlobEndpointUrl("http://127.0.0.1:10000/abc"), - "http://127.0.0.1:10000/abc" + "http://127.0.0.1:10000/abc", ); assert.deepStrictEqual(toBlobEndpointUrl("http://localhost"), "http://localhost"); assert.deepStrictEqual(toBlobEndpointUrl("invalidurl"), "invalidurl"); @@ -49,24 +49,24 @@ describe("transforms", () => { it("toDfsEndpointUrl", () => { assert.deepStrictEqual( toDfsEndpointUrl("http://account.blob.core.windows.net"), - "http://account.dfs.core.windows.net" + "http://account.dfs.core.windows.net", ); assert.deepStrictEqual( toDfsEndpointUrl("http://account.dfs.core.windows.net"), - "http://account.dfs.core.windows.net" + "http://account.dfs.core.windows.net", ); assert.deepStrictEqual(toDfsEndpointUrl("http://127.0.0.1:10000"), "http://127.0.0.1:10000"); assert.deepStrictEqual( toDfsEndpointUrl("http://account.blob.core.windows.net/abc"), - "http://account.dfs.core.windows.net/abc" + "http://account.dfs.core.windows.net/abc", ); assert.deepStrictEqual( toDfsEndpointUrl("http://account.dfs.core.windows.net/abc"), - "http://account.dfs.core.windows.net/abc" + "http://account.dfs.core.windows.net/abc", ); assert.deepStrictEqual( toDfsEndpointUrl("http://127.0.0.1:10000/abc"), - "http://127.0.0.1:10000/abc" + "http://127.0.0.1:10000/abc", ); assert.deepStrictEqual(toDfsEndpointUrl("http://localhost"), "http://localhost"); assert.deepStrictEqual(toDfsEndpointUrl("invalidurl"), "invalidurl"); @@ -253,7 +253,7 @@ describe("transforms", () => { entityId: "xxx", permissions: { read: true, write: true, execute: true }, }), - "default:user:xxx:rwx" + "default:user:xxx:rwx", ); assert.deepStrictEqual( @@ -263,7 +263,7 @@ describe("transforms", () => { entityId: "xxx", permissions: { read: false, write: false, execute: false }, }), - "user:xxx:---" + "user:xxx:---", ); assert.deepStrictEqual( @@ -273,7 +273,7 @@ describe("transforms", () => { entityId: "xxx", permissions: { read: true, write: true, execute: false }, }), - "user:xxx:rw-" + "user:xxx:rw-", ); assert.deepStrictEqual( @@ -283,7 +283,7 @@ describe("transforms", () => { entityId: "xxx", permissions: { read: false, write: true, execute: false }, }), - "user:xxx:-w-" + "user:xxx:-w-", ); }); @@ -316,34 +316,34 @@ describe("transforms", () => { permissions: { read: false, write: true, execute: false }, }, ]), - "default:user:xxx:rwx,user:xxx:rw-,user:xxx:---,user:xxx:-w-" + "default:user:xxx:rwx,user:xxx:rw-,user:xxx:---,user:xxx:-w-", ); }); it("toRolePermissionsString", () => { assert.deepStrictEqual( toRolePermissionsString({ read: true, write: true, execute: true }), - "rwx" + "rwx", ); assert.deepStrictEqual( toRolePermissionsString({ read: false, write: false, execute: false }), - "---" + "---", ); assert.deepStrictEqual( toRolePermissionsString({ read: true, write: false, execute: true }), - "r-x" + "r-x", ); assert.deepStrictEqual( toRolePermissionsString({ read: false, write: false, execute: true }), - "--x" + "--x", ); assert.deepStrictEqual( toRolePermissionsString({ read: false, write: false, execute: true }, true), - "--t" + "--t", ); assert.deepStrictEqual( toRolePermissionsString({ read: false, write: true, execute: false }, true), - "-wT" + "-wT", ); }); @@ -356,7 +356,7 @@ describe("transforms", () => { stickyBit: false, extendedAcls: false, }), - "rwxrwxrwx" + "rwxrwxrwx", ); assert.deepStrictEqual( @@ -367,7 +367,7 @@ describe("transforms", () => { stickyBit: false, extendedAcls: false, }), - "---------" + "---------", ); assert.deepStrictEqual( @@ -378,7 +378,7 @@ describe("transforms", () => { stickyBit: false, extendedAcls: true, }), - "---------+" + "---------+", ); assert.deepStrictEqual( @@ -389,7 +389,7 @@ describe("transforms", () => { stickyBit: true, extendedAcls: false, }), - "--------t" + "--------t", ); assert.deepStrictEqual( @@ -400,7 +400,7 @@ describe("transforms", () => { stickyBit: true, extendedAcls: false, }), - "---r-x--t" + "---r-x--t", ); }); }); diff --git a/sdk/storage/storage-file-datalake/test/utils.spec.ts b/sdk/storage/storage-file-datalake/test/utils.spec.ts index 0ce7aa3ba9df..699401e8846b 100644 --- a/sdk/storage/storage-file-datalake/test/utils.spec.ts +++ b/sdk/storage/storage-file-datalake/test/utils.spec.ts @@ -19,17 +19,17 @@ describe("Utility Helpers", () => { assert.equal( "SASConnString", connectionStringParts.kind, - "extractConnectionStringParts().kind is different than expected." + "extractConnectionStringParts().kind is different than expected.", ); assert.equal( blobEndpoint, connectionStringParts.url, - "extractConnectionStringParts().url is different than expected." + "extractConnectionStringParts().url is different than expected.", ); assert.equal( accountName, connectionStringParts.accountName, - "extractConnectionStringParts().accountName is different than expected." + "extractConnectionStringParts().accountName is different than expected.", ); } @@ -50,20 +50,20 @@ describe("Utility Helpers", () => { const sanitized = sanitizeHeaders(headers); assert.ok( sanitized.get("x-ms-copy-source")!.indexOf("sasstring") === -1, - "Expecting SAS string to be redacted." + "Expecting SAS string to be redacted.", ); assert.ok( sanitized.get("x-ms-copy-source")!.indexOf("*****") !== -1, - "Expecting SAS string to be redacted." + "Expecting SAS string to be redacted.", ); assert.ok( sanitized.get("authorization")! === "*****", - "Expecting authorization header value to be redacted." + "Expecting authorization header value to be redacted.", ); assert.ok( sanitized.get("otherheader")!.indexOf("sasstring") !== -1, - "Other header should not be changed." + "Other header should not be changed.", ); }); @@ -71,7 +71,7 @@ describe("Utility Helpers", () => { verifySASConnectionString( `BlobEndpoint=${blobEndpoint}; FileEndpoint=https://storagesample.file.core.windows.net; - SharedAccessSignature=${sharedAccessSignature}` + SharedAccessSignature=${sharedAccessSignature}`, ); }); @@ -79,7 +79,7 @@ describe("Utility Helpers", () => { verifySASConnectionString( `BlobEndpoint=${blobEndpoint}; FileEndpoint=https://storagesample.file.core.windows.net; - SharedAccessSignature=${sharedAccessSignature}` + SharedAccessSignature=${sharedAccessSignature}`, ); }); }); diff --git a/sdk/storage/storage-file-datalake/test/utils/index.browser.ts b/sdk/storage/storage-file-datalake/test/utils/index.browser.ts index 20d826455076..b4dc8d4bd847 100644 --- a/sdk/storage/storage-file-datalake/test/utils/index.browser.ts +++ b/sdk/storage/storage-file-datalake/test/utils/index.browser.ts @@ -28,7 +28,7 @@ export function getTokenCredential(): TokenCredential { export function getGenericDataLakeServiceClient( recorder: Recorder, accountType: string, - accountNameSuffix: string = "" + accountNameSuffix: string = "", ): DataLakeServiceClient { const accountNameEnvVar = `${accountType}ACCOUNT_NAME`; const accountSASEnvVar = `${accountType}ACCOUNT_SAS`; @@ -40,7 +40,7 @@ export function getGenericDataLakeServiceClient( if (!accountName || !accountSAS || accountName === "" || accountSAS === "") { throw new Error( - `${accountNameEnvVar} and/or ${accountSASEnvVar} environment variables not specified.` + `${accountNameEnvVar} and/or ${accountSASEnvVar} environment variables not specified.`, ); } @@ -101,7 +101,7 @@ export async function bodyToString( readableStreamBody?: NodeJS.ReadableStream; contentAsBlob?: Promise; }, - _length?: number + _length?: number, ): Promise { const blob = await response.contentAsBlob!; return blobToString(blob); diff --git a/sdk/storage/storage-file-datalake/test/utils/index.ts b/sdk/storage/storage-file-datalake/test/utils/index.ts index 73ed6097a160..9b19b4a0b9f5 100644 --- a/sdk/storage/storage-file-datalake/test/utils/index.ts +++ b/sdk/storage/storage-file-datalake/test/utils/index.ts @@ -37,7 +37,7 @@ export function getGenericCredential(accountType: string): StorageSharedKeyCrede if (!accountName || !accountKey || accountName === "" || accountKey === "") { throw new Error( - `${accountNameEnvVar} and/or ${accountKeyEnvVar} environment variables not specified.` + `${accountNameEnvVar} and/or ${accountKeyEnvVar} environment variables not specified.`, ); } @@ -66,13 +66,13 @@ export function getSASToken(accountType: string, sasValues: DataLakeSASSignature if (!accountName || !accountKey || accountName === "" || accountKey === "") { throw new Error( - `${accountNameEnvVar} and/or ${accountKeyEnvVar} environment variables not specified.` + `${accountNameEnvVar} and/or ${accountKeyEnvVar} environment variables not specified.`, ); } const sasParameters = generateDataLakeSASQueryParameters( sasValues, - new StorageSharedKeyCredential(accountName, accountKey) + new StorageSharedKeyCredential(accountName, accountKey), ); return sasParameters.toString(); } @@ -82,7 +82,7 @@ export function getSASFileSystemClient( accountType: string, sasValues: DataLakeSASSignatureValues, accountNameSuffix: string = "", - pipelineOptions: StoragePipelineOptions = {} + pipelineOptions: StoragePipelineOptions = {}, ): DataLakeFileSystemClient { const credential = getGenericCredential(accountType) as StorageSharedKeyCredential; const sasToken = getSASToken(accountType, sasValues); @@ -97,14 +97,14 @@ export function getGenericDataLakeServiceClient( recorder: Recorder, accountType: string, accountNameSuffix: string = "", - pipelineOptions: StoragePipelineOptions = {} + pipelineOptions: StoragePipelineOptions = {}, ): DataLakeServiceClient { if ( env.STORAGE_CONNECTION_STRING && env.STORAGE_CONNECTION_STRING.startsWith("UseDevelopmentStorage=true") ) { throw new Error( - `getGenericDataLakeServiceClient() doesn't support creating DataLakeServiceClient from connection string.` + `getGenericDataLakeServiceClient() doesn't support creating DataLakeServiceClient from connection string.`, ); } else { const credential = getGenericCredential(accountType); @@ -134,7 +134,7 @@ export function getTokenDataLakeServiceClient(recorder: Recorder): DataLakeServi export function getDataLakeServiceClient( recorder: Recorder, - pipelineOptions: StoragePipelineOptions = {} + pipelineOptions: StoragePipelineOptions = {}, ): DataLakeServiceClient { return getGenericDataLakeServiceClient(recorder, "DFS_", undefined, pipelineOptions); } @@ -143,7 +143,7 @@ export function getDataLakeServiceClientWithDefaultCredential( recorder: Recorder, accountType: string = "DFS_", pipelineOptions: StoragePipelineOptions = {}, - accountNameSuffix: string = "" + accountNameSuffix: string = "", ): DataLakeServiceClient { const accountNameEnvVar = `${accountType}ACCOUNT_NAME`; const accountName = env[accountNameEnvVar]; @@ -166,14 +166,14 @@ export function getDataLakeFileSystemClientWithSASCredential( sasValues: DataLakeSASSignatureValues, accountType: string = "DFS_", accountNameSuffix: string = "", - pipelineOptions: StoragePipelineOptions = {} + pipelineOptions: StoragePipelineOptions = {}, ): DataLakeFileSystemClient { return getSASFileSystemClient( recorder, accountType, sasValues, accountNameSuffix, - pipelineOptions + pipelineOptions, ); } @@ -204,7 +204,7 @@ export async function bodyToString( readableStreamBody?: NodeJS.ReadableStream; contentAsBlob?: Promise; }, - length?: number + length?: number, ): Promise { return new Promise((resolve, reject) => { response.readableStreamBody!.on("readable", () => { @@ -224,7 +224,7 @@ export async function bodyToString( export async function createRandomLocalFile( folder: string, blockNumber: number, - blockSize: number + blockSize: number, ): Promise { return new Promise((resolve, reject) => { const destFile = path.join(folder, getUniqueName("tempfile.")); @@ -286,15 +286,15 @@ export function getSASConnectionStringFromEnvironment(): string { resourceTypes: AccountSASResourceTypes.parse("sco").toString(), services: AccountSASServices.parse("btqf").toString(), }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const blobEndpoint = extractConnectionStringParts(getConnectionStringFromEnvironment()).url; return `BlobEndpoint=${blobEndpoint}/;QueueEndpoint=${blobEndpoint.replace( ".blob.", - ".queue." + ".queue.", )}/;FileEndpoint=${blobEndpoint.replace( ".queue.", - ".file." + ".file.", )}/;TableEndpoint=${blobEndpoint.replace(".queue.", ".table.")}/;SharedAccessSignature=${sas}`; } diff --git a/sdk/storage/storage-file-datalake/test/utils/testutils.common.ts b/sdk/storage/storage-file-datalake/test/utils/testutils.common.ts index 7f334df8746b..c4ef14fdd1a8 100644 --- a/sdk/storage/storage-file-datalake/test/utils/testutils.common.ts +++ b/sdk/storage/storage-file-datalake/test/utils/testutils.common.ts @@ -98,7 +98,7 @@ export class SimpleTokenCredential implements TokenCredential { */ async getToken( _scopes: string | string[], - _options?: GetTokenOptions + _options?: GetTokenOptions, ): Promise { return { token: this.token, diff --git a/sdk/storage/storage-file-datalake/test/utils/testutils.node.ts b/sdk/storage/storage-file-datalake/test/utils/testutils.node.ts index c91fd7afb195..215faef7bec7 100644 --- a/sdk/storage/storage-file-datalake/test/utils/testutils.node.ts +++ b/sdk/storage/storage-file-datalake/test/utils/testutils.node.ts @@ -15,7 +15,7 @@ import * as fs from "fs"; */ export async function readStreamToLocalFileWithLogs( rs: NodeJS.ReadableStream, - file: string + file: string, ): Promise { return new Promise((resolve, reject) => { const ws = fs.createWriteStream(file); diff --git a/sdk/storage/storage-file-share/package.json b/sdk/storage/storage-file-share/package.json index 5d1bf695dc00..6f815cd0c5ef 100644 --- a/sdk/storage/storage-file-share/package.json +++ b/sdk/storage/storage-file-share/package.json @@ -32,12 +32,12 @@ "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", "build:samples": "echo Obsolete.", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types temp statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml", "clean:samples": "rimraf samples/v12/javascript/node_modules samples/v12/typescript/node_modules samples/v12/typescript/dist samples/v12/typescript/package-lock.json samples/v12/javascript/package-lock.json", "extract-api": "tsc -p . && api-extractor run --local", "execute:samples": "dev-tool samples run samples-dev", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/storage-file-share/test/**/*.spec.js'", @@ -159,7 +159,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.0", "sinon": "^17.0.0", diff --git a/sdk/storage/storage-file-share/samples-dev/advancedRequestOptions.ts b/sdk/storage/storage-file-share/samples-dev/advancedRequestOptions.ts index 707b9cdb1d04..d694c29c5b19 100644 --- a/sdk/storage/storage-file-share/samples-dev/advancedRequestOptions.ts +++ b/sdk/storage/storage-file-share/samples-dev/advancedRequestOptions.ts @@ -33,7 +33,7 @@ export async function main() { const serviceClient = new ShareServiceClient( `https://${account}.file.core.windows.net${accountSas}`, - pipeline + pipeline, ); // Create a share diff --git a/sdk/storage/storage-file-share/samples-dev/anonymousAuth.ts b/sdk/storage/storage-file-share/samples-dev/anonymousAuth.ts index 74ed6c8cdff8..0d99fda27813 100644 --- a/sdk/storage/storage-file-share/samples-dev/anonymousAuth.ts +++ b/sdk/storage/storage-file-share/samples-dev/anonymousAuth.ts @@ -24,7 +24,7 @@ export async function main() { const serviceClient = new ShareServiceClient( // When using AnonymousCredential, following url should include a valid SAS `https://${account}.file.core.windows.net${accountSas}`, - anonymousCredential + anonymousCredential, ); console.log("Shares:"); diff --git a/sdk/storage/storage-file-share/samples-dev/customPipeline.ts b/sdk/storage/storage-file-share/samples-dev/customPipeline.ts index e0f9fe0aa2aa..a0f8a01ac18a 100644 --- a/sdk/storage/storage-file-share/samples-dev/customPipeline.ts +++ b/sdk/storage/storage-file-share/samples-dev/customPipeline.ts @@ -35,7 +35,7 @@ export async function main() { // List shares const serviceClient = new ShareServiceClient( `https://${account}.file.core.windows.net`, - pipeline + pipeline, ); console.log("Shares:"); diff --git a/sdk/storage/storage-file-share/samples-dev/listFilesAndDirectories.ts b/sdk/storage/storage-file-share/samples-dev/listFilesAndDirectories.ts index c2f3b5903b04..12102e006850 100644 --- a/sdk/storage/storage-file-share/samples-dev/listFilesAndDirectories.ts +++ b/sdk/storage/storage-file-share/samples-dev/listFilesAndDirectories.ts @@ -24,7 +24,7 @@ export async function main() { const serviceClient = new ShareServiceClient( // When using AnonymousCredential, following url should include a valid SAS `https://${account}.file.core.windows.net`, - sharedKeyCredential + sharedKeyCredential, ); // Create a share diff --git a/sdk/storage/storage-file-share/samples-dev/listHandles.ts b/sdk/storage/storage-file-share/samples-dev/listHandles.ts index 01b9453e2cf5..862255148bf2 100644 --- a/sdk/storage/storage-file-share/samples-dev/listHandles.ts +++ b/sdk/storage/storage-file-share/samples-dev/listHandles.ts @@ -25,7 +25,7 @@ export async function main() { if (shareName === "" || dirName === "") { console.warn( - "Share/directory information not provided, but it is required to run this sample. Exiting." + "Share/directory information not provided, but it is required to run this sample. Exiting.", ); return; } @@ -36,7 +36,7 @@ export async function main() { const serviceClient = new ShareServiceClient( `https://${account}.file.core.windows.net`, - sharedKeyCredential + sharedKeyCredential, ); const shareClient = serviceClient.getShareClient(shareName); diff --git a/sdk/storage/storage-file-share/samples-dev/listShares.ts b/sdk/storage/storage-file-share/samples-dev/listShares.ts index 33a5672d9fca..f8fde20d8549 100644 --- a/sdk/storage/storage-file-share/samples-dev/listShares.ts +++ b/sdk/storage/storage-file-share/samples-dev/listShares.ts @@ -23,7 +23,7 @@ export async function main() { const serviceClient = new ShareServiceClient( `https://${account}.file.core.windows.net`, - sharedKeyCredential + sharedKeyCredential, ); console.log("Shares:"); diff --git a/sdk/storage/storage-file-share/samples-dev/proxyAuth.ts b/sdk/storage/storage-file-share/samples-dev/proxyAuth.ts index 01eb74fd91d0..e3c267d55426 100644 --- a/sdk/storage/storage-file-share/samples-dev/proxyAuth.ts +++ b/sdk/storage/storage-file-share/samples-dev/proxyAuth.ts @@ -42,7 +42,7 @@ export async function main() { password: "" } */ - } + }, ); // Create a share diff --git a/sdk/storage/storage-file-share/samples-dev/shareServiceClient.ts b/sdk/storage/storage-file-share/samples-dev/shareServiceClient.ts index b394d4cb1dbf..488f5e293eca 100644 --- a/sdk/storage/storage-file-share/samples-dev/shareServiceClient.ts +++ b/sdk/storage/storage-file-share/samples-dev/shareServiceClient.ts @@ -28,7 +28,7 @@ export async function main() { const serviceClient = new ShareServiceClient( // When using AnonymousCredential, following url should include a valid SAS `https://${account}.file.core.windows.net`, - sharedKeyCredential + sharedKeyCredential, ); console.log("Shares:"); diff --git a/sdk/storage/storage-file-share/samples-dev/sharedKeyAuth.ts b/sdk/storage/storage-file-share/samples-dev/sharedKeyAuth.ts index 49c270a44c0a..2ab0a1eb32ce 100644 --- a/sdk/storage/storage-file-share/samples-dev/sharedKeyAuth.ts +++ b/sdk/storage/storage-file-share/samples-dev/sharedKeyAuth.ts @@ -24,7 +24,7 @@ export async function main() { // List shares const serviceClient = new ShareServiceClient( `https://${account}.file.core.windows.net`, - sharedKeyCredential + sharedKeyCredential, ); console.log("Shares:"); diff --git a/sdk/storage/storage-file-share/src/AccountSASSignatureValues.ts b/sdk/storage/storage-file-share/src/AccountSASSignatureValues.ts index facf97423532..0efb289622f4 100644 --- a/sdk/storage/storage-file-share/src/AccountSASSignatureValues.ts +++ b/sdk/storage/storage-file-share/src/AccountSASSignatureValues.ts @@ -82,18 +82,18 @@ export interface AccountSASSignatureValues { */ export function generateAccountSASQueryParameters( accountSASSignatureValues: AccountSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential + sharedKeyCredential: StorageSharedKeyCredential, ): SASQueryParameters { const version = accountSASSignatureValues.version ? accountSASSignatureValues.version : SERVICE_VERSION; const parsedPermissions = AccountSASPermissions.parse( - accountSASSignatureValues.permissions.toString() + accountSASSignatureValues.permissions.toString(), ).toString(); const parsedServices = AccountSASServices.parse(accountSASSignatureValues.services).toString(); const parsedResourceTypes = AccountSASResourceTypes.parse( - accountSASSignatureValues.resourceTypes + accountSASSignatureValues.resourceTypes, ).toString(); let stringToSign: string; @@ -142,6 +142,6 @@ export function generateAccountSASQueryParameters( accountSASSignatureValues.protocol, accountSASSignatureValues.startsOn, accountSASSignatureValues.expiresOn, - accountSASSignatureValues.ipRange + accountSASSignatureValues.ipRange, ); } diff --git a/sdk/storage/storage-file-share/src/Clients.ts b/sdk/storage/storage-file-share/src/Clients.ts index 406de96dc7b7..5fb36f552287 100644 --- a/sdk/storage/storage-file-share/src/Clients.ts +++ b/sdk/storage/storage-file-share/src/Clients.ts @@ -605,14 +605,14 @@ export class ShareClient extends StorageClient { credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: ShareClientOptions + options?: ShareClientOptions, ); constructor( url: string, credential?: StorageSharedKeyCredential | AnonymousCredential, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: ShareClientOptions + options?: ShareClientOptions, ); /** * Creates an instance of ShareClient. @@ -635,7 +635,7 @@ export class ShareClient extends StorageClient { | string, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: ShareClientOptions + options?: ShareClientOptions, ) { let pipeline: Pipeline; let url: string; @@ -669,7 +669,7 @@ export class ShareClient extends StorageClient { if (isNode) { const sharedKeyCredential = new StorageSharedKeyCredential( extractedCreds.accountName!, - extractedCreds.accountKey + extractedCreds.accountKey, ); url = appendToURLPath(extractedCreds.url, name); pipeline = newPipeline(sharedKeyCredential, options); @@ -681,7 +681,7 @@ export class ShareClient extends StorageClient { pipeline = newPipeline(new AnonymousCredential(), options); } else { throw new Error( - "Connection string must be either an Account connection string or a SAS connection string" + "Connection string must be either an Account connection string or a SAS connection string", ); } } else { @@ -705,10 +705,10 @@ export class ShareClient extends StorageClient { setURLParameter( this.url, URLConstants.Parameters.SHARE_SNAPSHOT, - snapshot.length === 0 ? undefined : snapshot + snapshot.length === 0 ? undefined : snapshot, ), this.pipeline, - this.shareClientConfig + this.shareClientConfig, ); } @@ -726,7 +726,7 @@ export class ShareClient extends StorageClient { await this.context.create({ ...updatedOptions, enabledProtocols: toShareProtocolsString(updatedOptions.protocols), - }) + }), ); }); } @@ -739,7 +739,7 @@ export class ShareClient extends StorageClient { * @param options - */ public async createIfNotExists( - options: ShareCreateOptions = {} + options: ShareCreateOptions = {}, ): Promise { return tracingClient.withSpan( "ShareClient-createIfNotExists", @@ -761,7 +761,7 @@ export class ShareClient extends StorageClient { } throw e; } - } + }, ); } @@ -778,7 +778,7 @@ export class ShareClient extends StorageClient { return new ShareDirectoryClient( appendToURLPath(this.url, EscapePath(directoryName)), this.pipeline, - this.shareClientConfig + this.shareClientConfig, ); } @@ -804,7 +804,7 @@ export class ShareClient extends StorageClient { */ public async createDirectory( directoryName: string, - options: DirectoryCreateOptions = {} + options: DirectoryCreateOptions = {}, ): Promise<{ directoryClient: ShareDirectoryClient; directoryCreateResponse: DirectoryCreateResponse; @@ -819,7 +819,7 @@ export class ShareClient extends StorageClient { directoryClient, directoryCreateResponse, }; - } + }, ); } @@ -834,7 +834,7 @@ export class ShareClient extends StorageClient { */ public async deleteDirectory( directoryName: string, - options: DirectoryDeleteOptions = {} + options: DirectoryDeleteOptions = {}, ): Promise { return tracingClient.withSpan( "ShareClient-deleteDirectory", @@ -842,7 +842,7 @@ export class ShareClient extends StorageClient { async (updatedOptions) => { const directoryClient = this.getDirectoryClient(directoryName); return directoryClient.delete(updatedOptions); - } + }, ); } @@ -859,7 +859,7 @@ export class ShareClient extends StorageClient { public async createFile( fileName: string, size: number, - options: FileCreateOptions = {} + options: FileCreateOptions = {}, ): Promise<{ fileClient: ShareFileClient; fileCreateResponse: FileCreateResponse }> { return tracingClient.withSpan("ShareClient-createFile", options, async (updatedOptions) => { const directoryClient = this.rootDirectoryClient; @@ -894,7 +894,7 @@ export class ShareClient extends StorageClient { */ public async deleteFile( fileName: string, - options: FileDeleteOptions = {} + options: FileDeleteOptions = {}, ): Promise { return tracingClient.withSpan("ShareClient-deleteFile", options, async (updatedOptions) => { const directoryClient = this.rootDirectoryClient; @@ -939,11 +939,11 @@ export class ShareClient extends StorageClient { * @returns Response data for the Share Get Properties operation. */ public async getProperties( - options: ShareGetPropertiesOptions = {} + options: ShareGetPropertiesOptions = {}, ): Promise { return tracingClient.withSpan("ShareClient-getProperties", options, async (updatedOptions) => { const res = assertResponse( - await this.context.getProperties(updatedOptions) + await this.context.getProperties(updatedOptions), ); return { ...res, @@ -965,7 +965,7 @@ export class ShareClient extends StorageClient { return assertResponse( await this.context.delete({ ...updatedOptions, - }) + }), ); }); } @@ -978,7 +978,7 @@ export class ShareClient extends StorageClient { * @param options - */ public async deleteIfExists( - options: ShareDeleteMethodOptions = {} + options: ShareDeleteMethodOptions = {}, ): Promise { return tracingClient.withSpan("ShareClient-deleteIfExists", options, async (updatedOptions) => { try { @@ -1013,14 +1013,14 @@ export class ShareClient extends StorageClient { */ public async setMetadata( metadata?: Metadata, - options: ShareSetMetadataOptions = {} + options: ShareSetMetadataOptions = {}, ): Promise { return tracingClient.withSpan("ShareClient-setMetadata", options, async (updatedOptions) => { return assertResponse( await this.context.setMetadata({ ...updatedOptions, metadata, - }) + }), ); }); } @@ -1038,7 +1038,7 @@ export class ShareClient extends StorageClient { * @returns Response data for the Share Get Access Policy operation. */ public async getAccessPolicy( - options: ShareGetAccessPolicyOptions = {} + options: ShareGetAccessPolicyOptions = {}, ): Promise { return tracingClient.withSpan( "ShareClient-getAccessPolicy", @@ -1051,7 +1051,7 @@ export class ShareClient extends StorageClient { >( await this.context.getAccessPolicy({ ...updatedOptions, - }) + }), ); const res: ShareGetAccessPolicyResponse = { @@ -1087,7 +1087,7 @@ export class ShareClient extends StorageClient { } return res; - } + }, ); } @@ -1110,7 +1110,7 @@ export class ShareClient extends StorageClient { */ public async setAccessPolicy( shareAcl?: SignedIdentifier[], - options: ShareSetAccessPolicyOptions = {} + options: ShareSetAccessPolicyOptions = {}, ): Promise { return tracingClient.withSpan( "ShareClient-setAccessPolicy", @@ -1136,9 +1136,9 @@ export class ShareClient extends StorageClient { await this.context.setAccessPolicy({ ...updatedOptions, shareAcl: acl, - }) + }), ); - } + }, ); } @@ -1149,11 +1149,11 @@ export class ShareClient extends StorageClient { * @returns Response data for the Share Create Snapshot operation. */ public async createSnapshot( - options: ShareCreateSnapshotOptions = {} + options: ShareCreateSnapshotOptions = {}, ): Promise { return tracingClient.withSpan("ShareClient-createSnapshot", options, async (updatedOptions) => { return assertResponse( - await this.context.createSnapshot(updatedOptions) + await this.context.createSnapshot(updatedOptions), ); }); } @@ -1169,14 +1169,14 @@ export class ShareClient extends StorageClient { */ public async setQuota( quotaInGB: number, - options: ShareSetQuotaOptions = {} + options: ShareSetQuotaOptions = {}, ): Promise { return tracingClient.withSpan("ShareClient-setQuota", options, async (updatedOptions) => { return assertResponse( await this.context.setProperties({ ...updatedOptions, quota: quotaInGB, - }) + }), ); }); } @@ -1188,7 +1188,7 @@ export class ShareClient extends StorageClient { * @returns Response data for the Share Set Properties operation. */ public async setProperties( - options: ShareSetPropertiesOptions = {} + options: ShareSetPropertiesOptions = {}, ): Promise { return tracingClient.withSpan("ShareClient-setProperties", options, async (updatedOptions) => { return assertResponse( @@ -1196,7 +1196,7 @@ export class ShareClient extends StorageClient { ...options, quota: options.quotaInGB, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -1208,7 +1208,7 @@ export class ShareClient extends StorageClient { * @returns Response data for the Share Get Statistics operation. */ public async getStatistics( - options: ShareGetStatisticsOptions = {} + options: ShareGetStatisticsOptions = {}, ): Promise { return tracingClient.withSpan("ShareClient-getStatistics", options, async (updatedOptions) => { const response = assertResponse< @@ -1232,7 +1232,7 @@ export class ShareClient extends StorageClient { */ public async createPermission( filePermission: string, - options: ShareCreatePermissionOptions = {} + options: ShareCreatePermissionOptions = {}, ): Promise { return tracingClient.withSpan( "ShareClient-createPermission", @@ -1246,10 +1246,10 @@ export class ShareClient extends StorageClient { { ...updatedOptions, ...this.shareClientConfig, - } - ) + }, + ), ); - } + }, ); } @@ -1263,7 +1263,7 @@ export class ShareClient extends StorageClient { */ public async getPermission( filePermissionKey: string, - options: ShareGetPermissionOptions = {} + options: ShareGetPermissionOptions = {}, ): Promise { return tracingClient.withSpan("ShareClient-getPermission", options, async (updatedOptions) => { return assertResponse< @@ -1274,7 +1274,7 @@ export class ShareClient extends StorageClient { await this.context.getPermission(filePermissionKey, { ...updatedOptions, ...this.shareClientConfig, - }) + }), ); }); } @@ -1293,7 +1293,7 @@ export class ShareClient extends StorageClient { public generateSasUrl(options: ShareGenerateSasUrlOptions): string { if (!(this.credential instanceof StorageSharedKeyCredential)) { throw RangeError( - "Can only generate the SAS when the client is initialized with a shared key credential" + "Can only generate the SAS when the client is initialized with a shared key credential", ); } @@ -1302,7 +1302,7 @@ export class ShareClient extends StorageClient { shareName: this.name, ...options, }, - this.credential + this.credential, ).toString(); return appendToURLQuery(this.url, sas); @@ -1633,7 +1633,7 @@ export class ShareDirectoryClient extends StorageClient { credential?: AnonymousCredential | StorageSharedKeyCredential | TokenCredential, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: ShareClientOptions + options?: ShareClientOptions, ); /** * Creates an instance of DirectoryClient. @@ -1659,7 +1659,7 @@ export class ShareDirectoryClient extends StorageClient { | Pipeline, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options: ShareClientOptions = {} + options: ShareClientOptions = {}, ) { let pipeline: Pipeline; if (credentialOrPipeline instanceof Pipeline) { @@ -1714,10 +1714,10 @@ export class ShareDirectoryClient extends StorageClient { fileCreatedOn: fileCreationTimeToString(updatedOptions.creationTime), fileLastWriteOn: fileLastWriteTimeToString(updatedOptions.lastWriteTime), ...this.shareClientConfig, - } - ) + }, + ), ); - } + }, ); } @@ -1729,7 +1729,7 @@ export class ShareDirectoryClient extends StorageClient { * @param options - */ public async createIfNotExists( - options: DirectoryCreateOptions = {} + options: DirectoryCreateOptions = {}, ): Promise { return tracingClient.withSpan( "ShareDirectoryClient-createIfNotExists", @@ -1751,7 +1751,7 @@ export class ShareDirectoryClient extends StorageClient { } throw e; } - } + }, ); } @@ -1763,7 +1763,7 @@ export class ShareDirectoryClient extends StorageClient { * existing values will be preserved. */ public async setProperties( - properties: DirectoryProperties = {} + properties: DirectoryProperties = {}, ): Promise { properties = validateAndSetDefaultsForFileAndDirectorySetPropertiesCommonOptions(properties); return tracingClient.withSpan( @@ -1781,10 +1781,10 @@ export class ShareDirectoryClient extends StorageClient { fileCreatedOn: fileCreationTimeToString(updatedOptions.creationTime), fileLastWriteOn: fileLastWriteTimeToString(updatedOptions.lastWriteTime), ...this.shareClientConfig, - } - ) + }, + ), ); - } + }, ); } @@ -1806,7 +1806,7 @@ export class ShareDirectoryClient extends StorageClient { return new ShareDirectoryClient( appendToURLPath(this.url, EscapePath(subDirectoryName)), this.pipeline, - this.shareClientConfig + this.shareClientConfig, ); } @@ -1820,7 +1820,7 @@ export class ShareDirectoryClient extends StorageClient { */ public async createSubdirectory( directoryName: string, - options: DirectoryCreateOptions = {} + options: DirectoryCreateOptions = {}, ): Promise<{ directoryClient: ShareDirectoryClient; directoryCreateResponse: DirectoryCreateResponse; @@ -1835,7 +1835,7 @@ export class ShareDirectoryClient extends StorageClient { directoryClient, directoryCreateResponse, }; - } + }, ); } @@ -1850,7 +1850,7 @@ export class ShareDirectoryClient extends StorageClient { */ public async deleteSubdirectory( directoryName: string, - options: DirectoryDeleteOptions = {} + options: DirectoryDeleteOptions = {}, ): Promise { return tracingClient.withSpan( "ShareDirectoryClient-deleteSubdirectory", @@ -1858,7 +1858,7 @@ export class ShareDirectoryClient extends StorageClient { async (updatedOptions) => { const directoryClient = this.getDirectoryClient(directoryName); return directoryClient.delete(updatedOptions); - } + }, ); } @@ -1874,7 +1874,7 @@ export class ShareDirectoryClient extends StorageClient { public async createFile( fileName: string, size: number, - options: FileCreateOptions = {} + options: FileCreateOptions = {}, ): Promise<{ fileClient: ShareFileClient; fileCreateResponse: FileCreateResponse }> { return tracingClient.withSpan( "ShareDirectoryClient-createFile", @@ -1886,7 +1886,7 @@ export class ShareDirectoryClient extends StorageClient { fileClient, fileCreateResponse, }; - } + }, ); } @@ -1910,7 +1910,7 @@ export class ShareDirectoryClient extends StorageClient { */ public async deleteFile( fileName: string, - options: FileDeleteOptions = {} + options: FileDeleteOptions = {}, ): Promise { return tracingClient.withSpan( "ShareDirectoryClient-deleteFile", @@ -1918,7 +1918,7 @@ export class ShareDirectoryClient extends StorageClient { async (updatedOptions) => { const fileClient = this.getFileClient(fileName); return fileClient.delete(updatedOptions); - } + }, ); } @@ -1948,7 +1948,7 @@ export class ShareDirectoryClient extends StorageClient { return new ShareFileClient( appendToURLPath(this.url, EscapePath(fileName)), this.pipeline, - this.shareClientConfig + this.shareClientConfig, ); } @@ -1975,7 +1975,7 @@ export class ShareDirectoryClient extends StorageClient { } throw e; } - } + }, ); } @@ -1989,16 +1989,16 @@ export class ShareDirectoryClient extends StorageClient { * @returns Response data for the Directory Get Properties operation. */ public async getProperties( - options: DirectoryGetPropertiesOptions = {} + options: DirectoryGetPropertiesOptions = {}, ): Promise { return tracingClient.withSpan( "ShareDirectoryClient-getProperties", options, async (updatedOptions) => { return assertResponse( - await this.context.getProperties({ ...updatedOptions, ...this.shareClientConfig }) + await this.context.getProperties({ ...updatedOptions, ...this.shareClientConfig }), ); - } + }, ); } @@ -2016,9 +2016,9 @@ export class ShareDirectoryClient extends StorageClient { options, async (updatedOptions) => { return assertResponse( - await this.context.delete({ ...updatedOptions, ...this.shareClientConfig }) + await this.context.delete({ ...updatedOptions, ...this.shareClientConfig }), ); - } + }, ); } @@ -2030,7 +2030,7 @@ export class ShareDirectoryClient extends StorageClient { * @param options - */ public async deleteIfExists( - options: DirectoryDeleteOptions = {} + options: DirectoryDeleteOptions = {}, ): Promise { return tracingClient.withSpan( "ShareDirectoryClient-deleteIfExists", @@ -2055,7 +2055,7 @@ export class ShareDirectoryClient extends StorageClient { } throw e; } - } + }, ); } @@ -2069,7 +2069,7 @@ export class ShareDirectoryClient extends StorageClient { */ public async setMetadata( metadata?: Metadata, - options: DirectorySetMetadataOptions = {} + options: DirectorySetMetadataOptions = {}, ): Promise { return tracingClient.withSpan( "ShareDirectoryClient-setMetadata", @@ -2080,9 +2080,9 @@ export class ShareDirectoryClient extends StorageClient { ...updatedOptions, metadata, ...this.shareClientConfig, - }) + }), ); - } + }, ); } @@ -2100,7 +2100,7 @@ export class ShareDirectoryClient extends StorageClient { */ private async *iterateFilesAndDirectoriesSegments( marker?: string, - options: DirectoryListFilesAndDirectoriesSegmentOptions = {} + options: DirectoryListFilesAndDirectoriesSegmentOptions = {}, ): AsyncIterableIterator { if (options.prefix === "") { options.prefix = undefined; @@ -2120,7 +2120,7 @@ export class ShareDirectoryClient extends StorageClient { * @param options - Options to list files and directories operation. */ private async *listFilesAndDirectoriesItems( - options: DirectoryListFilesAndDirectoriesSegmentOptions = {} + options: DirectoryListFilesAndDirectoriesSegmentOptions = {}, ): AsyncIterableIterator< ({ kind: "file" } & FileItem) | ({ kind: "directory" } & DirectoryItem) > { @@ -2131,7 +2131,7 @@ export class ShareDirectoryClient extends StorageClient { let marker: string | undefined; for await (const listFilesAndDirectoriesResponse of this.iterateFilesAndDirectoriesSegments( marker, - options + options, )) { for (const file of listFilesAndDirectoriesResponse.segment.fileItems) { yield { kind: "file", ...file }; @@ -2233,7 +2233,7 @@ export class ShareDirectoryClient extends StorageClient { * @returns An asyncIterableIterator that supports paging. */ public listFilesAndDirectories( - options: DirectoryListFilesAndDirectoriesOptions = {} + options: DirectoryListFilesAndDirectoriesOptions = {}, ): PagedAsyncIterableIterator< ({ kind: "file" } & FileItem) | ({ kind: "directory" } & DirectoryItem), DirectoryListFilesAndDirectoriesSegmentResponse @@ -2284,7 +2284,7 @@ export class ShareDirectoryClient extends StorageClient { { maxResults: settings.maxPageSize, ...updatedOptions, - } + }, ); }, }; @@ -2301,7 +2301,7 @@ export class ShareDirectoryClient extends StorageClient { */ private async listFilesAndDirectoriesSegment( marker?: string, - options: DirectoryListFilesAndDirectoriesSegmentOptions = {} + options: DirectoryListFilesAndDirectoriesSegmentOptions = {}, ): Promise { if (options.prefix === "") { options.prefix = undefined; @@ -2320,7 +2320,7 @@ export class ShareDirectoryClient extends StorageClient { ...updatedOptions, marker, ...this.shareClientConfig, - }) + }), ); const wrappedResponse: DirectoryListFilesAndDirectoriesSegmentResponse = { ...ConvertInternalResponseOfListFiles(rawResponse), @@ -2330,7 +2330,7 @@ export class ShareDirectoryClient extends StorageClient { }, // _response is made non-enumerable }; return wrappedResponse; - } + }, ); } @@ -2346,7 +2346,7 @@ export class ShareDirectoryClient extends StorageClient { */ private async *iterateHandleSegments( marker?: string, - options: DirectoryListHandlesSegmentOptions = {} + options: DirectoryListHandlesSegmentOptions = {}, ): AsyncIterableIterator { let listHandlesResponse; if (!!marker || marker === undefined) { @@ -2364,7 +2364,7 @@ export class ShareDirectoryClient extends StorageClient { * @param options - Options to list handles operation. */ private async *listHandleItems( - options: DirectoryListHandlesSegmentOptions = {} + options: DirectoryListHandlesSegmentOptions = {}, ): AsyncIterableIterator { let marker: string | undefined; for await (const listHandlesResponse of this.iterateHandleSegments(marker, options)) { @@ -2453,7 +2453,7 @@ export class ShareDirectoryClient extends StorageClient { * An asyncIterableIterator that supports paging. */ public listHandles( - options: DirectoryListHandlesOptions = {} + options: DirectoryListHandlesOptions = {}, ): PagedAsyncIterableIterator { // an AsyncIterableIterator to iterate over handles const iter = this.listHandleItems(options); @@ -2495,7 +2495,7 @@ export class ShareDirectoryClient extends StorageClient { */ private async listHandlesSegment( marker?: string, - options: DirectoryListHandlesSegmentOptions = {} + options: DirectoryListHandlesSegmentOptions = {}, ): Promise { return tracingClient.withSpan( "ShareDirectoryClient-listHandlesSegment", @@ -2511,7 +2511,7 @@ export class ShareDirectoryClient extends StorageClient { ...updatedOptions, marker, ...this.shareClientConfig, - }) + }), ); // TODO: Protocol layer issue that when handle list is in returned XML @@ -2528,7 +2528,7 @@ export class ShareDirectoryClient extends StorageClient { }; return wrappedResponse; - } + }, ); } @@ -2545,7 +2545,7 @@ export class ShareDirectoryClient extends StorageClient { */ private async forceCloseHandlesSegment( marker?: string, - options: DirectoryForceCloseHandlesSegmentOptions = {} + options: DirectoryForceCloseHandlesSegmentOptions = {}, ): Promise { return tracingClient.withSpan( "ShareDirectoryClient-forceCloseHandlesSegment", @@ -2562,14 +2562,14 @@ export class ShareDirectoryClient extends StorageClient { ...updatedOptions, marker, ...this.shareClientConfig, - }) + }), ); return { ...rawResponse, closedHandlesCount: rawResponse.numberOfHandlesClosed ?? 0, closeFailureCount: rawResponse.numberOfHandlesFailedToClose ?? 0, }; - } + }, ); } @@ -2580,7 +2580,7 @@ export class ShareDirectoryClient extends StorageClient { * @param options - */ public async forceCloseAllHandles( - options: DirectoryForceCloseHandlesSegmentOptions = {} + options: DirectoryForceCloseHandlesSegmentOptions = {}, ): Promise { return tracingClient.withSpan( "ShareDirectoryClient-forceCloseAllHandles", @@ -2605,7 +2605,7 @@ export class ShareDirectoryClient extends StorageClient { closedHandlesCount: handlesClosed, closeFailureCount: numberOfHandlesFailedToClose, }; - } + }, ); } @@ -2621,7 +2621,7 @@ export class ShareDirectoryClient extends StorageClient { */ public async forceCloseHandle( handleId: string, - options: DirectoryForceCloseHandlesOptions = {} + options: DirectoryForceCloseHandlesOptions = {}, ): Promise { return tracingClient.withSpan( "ShareDirectoryClient-forceCloseHandle", @@ -2629,7 +2629,7 @@ export class ShareDirectoryClient extends StorageClient { async (updatedOptions) => { if (handleId === "*") { throw new RangeError( - `Parameter handleID should be a specified handle ID. Use forceCloseHandlesSegment() to close all handles.` + `Parameter handleID should be a specified handle ID. Use forceCloseHandlesSegment() to close all handles.`, ); } @@ -2641,7 +2641,7 @@ export class ShareDirectoryClient extends StorageClient { response.closedHandlesCount = rawResponse.numberOfHandlesClosed || 0; response.closeFailureCount = rawResponse.numberOfHandlesFailedToClose || 0; return response; - } + }, ); } @@ -2664,7 +2664,7 @@ export class ShareDirectoryClient extends StorageClient { */ public async rename( destinationPath: string, - options: DirectoryRenameOptions = {} + options: DirectoryRenameOptions = {}, ): Promise<{ destinationDirectoryClient: ShareDirectoryClient; directoryRenameResponse: DirectoryRenameResponse; @@ -2687,7 +2687,7 @@ export class ShareDirectoryClient extends StorageClient { const destDirectory = new ShareDirectoryClient( destinationUrl, this.pipeline, - this.shareClientConfig + this.shareClientConfig, ); return tracingClient.withSpan( @@ -2708,14 +2708,14 @@ export class ShareDirectoryClient extends StorageClient { } : undefined, ...this.shareClientConfig, - }) + }), ); return { destinationDirectoryClient: destDirectory, directoryRenameResponse: response, }; - } + }, ); } } @@ -3508,7 +3508,7 @@ export class ShareFileClient extends StorageClient { credential?: AnonymousCredential | StorageSharedKeyCredential | TokenCredential, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: ShareClientOptions + options?: ShareClientOptions, ); /** * Creates an instance of ShareFileClient. @@ -3534,7 +3534,7 @@ export class ShareFileClient extends StorageClient { | Pipeline, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: ShareClientOptions + options?: ShareClientOptions, ) { let pipeline: Pipeline; if (credentialOrPipeline instanceof Pipeline) { @@ -3571,10 +3571,10 @@ export class ShareFileClient extends StorageClient { setURLParameter( this.url, URLConstants.Parameters.SHARE_SNAPSHOT, - shareSnapshot.length === 0 ? undefined : shareSnapshot + shareSnapshot.length === 0 ? undefined : shareSnapshot, ), this.pipeline, - this.shareClientConfig + this.shareClientConfig, ); } @@ -3620,8 +3620,8 @@ export class ShareFileClient extends StorageClient { fileCreatedOn: fileCreationTimeToString(updatedOptions.creationTime), fileLastWriteOn: fileLastWriteTimeToString(updatedOptions.lastWriteTime), ...this.shareClientConfig, - } - ) + }, + ), ); }); } @@ -3690,7 +3690,7 @@ export class ShareFileClient extends StorageClient { public async download( offset: number = 0, count?: number, - options: FileDownloadOptions = {} + options: FileDownloadOptions = {}, ): Promise { return tracingClient.withSpan("ShareFileClient-download", options, async (updatedOptions) => { if (updatedOptions.rangeGetContentMD5 && offset === 0 && count === undefined) { @@ -3706,7 +3706,7 @@ export class ShareFileClient extends StorageClient { }, range: downloadFullFile ? undefined : rangeToString({ offset, count }), ...this.shareClientConfig, - }) + }), ); // Return browser response immediately @@ -3761,7 +3761,7 @@ export class ShareFileClient extends StorageClient { { maxRetryRequests: updatedOptions.maxRetryRequests, onProgress: updatedOptions.onProgress, - } + }, ); }); } @@ -3798,16 +3798,16 @@ export class ShareFileClient extends StorageClient { * @returns Response data for the File Get Properties operation. */ public async getProperties( - options: FileGetPropertiesOptions = {} + options: FileGetPropertiesOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-getProperties", options, async (updatedOptions) => { return assertResponse( - await this.context.getProperties({ ...updatedOptions, ...this.shareClientConfig }) + await this.context.getProperties({ ...updatedOptions, ...this.shareClientConfig }), ); - } + }, ); } @@ -3838,10 +3838,10 @@ export class ShareFileClient extends StorageClient { fileCreatedOn: fileCreationTimeToString(updatedOptions.creationTime), fileLastWriteOn: fileLastWriteTimeToString(updatedOptions.lastWriteTime), ...this.shareClientConfig, - } - ) + }, + ), ); - } + }, ); } @@ -3865,7 +3865,7 @@ export class ShareFileClient extends StorageClient { public async delete(options: FileDeleteOptions = {}): Promise { return tracingClient.withSpan("ShareFileClient-delete", options, async (updatedOptions) => { return assertResponse( - await this.context.delete({ ...updatedOptions, ...this.shareClientConfig }) + await this.context.delete({ ...updatedOptions, ...this.shareClientConfig }), ); }); } @@ -3887,7 +3887,7 @@ export class ShareFileClient extends StorageClient { * @param options - */ public async deleteIfExists( - options: FileDeleteOptions = {} + options: FileDeleteOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-deleteIfExists", @@ -3912,7 +3912,7 @@ export class ShareFileClient extends StorageClient { } throw e; } - } + }, ); } @@ -3930,7 +3930,7 @@ export class ShareFileClient extends StorageClient { */ public async setHttpHeaders( fileHttpHeaders: FileHttpHeaders = {}, - options: FileSetHttpHeadersOptions = {} + options: FileSetHttpHeadersOptions = {}, ): Promise { // FileAttributes, filePermission, createTime, lastWriteTime will all be preserved options = validateAndSetDefaultsForFileAndDirectorySetPropertiesCommonOptions(options); @@ -3950,10 +3950,10 @@ export class ShareFileClient extends StorageClient { fileLastWriteOn: fileLastWriteTimeToString(updatedOptions.lastWriteTime), fileChangeOn: fileChangeTimeToString(updatedOptions.changeTime), ...this.shareClientConfig, - } - ) + }, + ), ); - } + }, ); } @@ -3970,7 +3970,7 @@ export class ShareFileClient extends StorageClient { */ public async resize( length: number, - options: FileResizeOptions = {} + options: FileResizeOptions = {}, ): Promise { if (length < 0) { throw new RangeError(`Size cannot less than 0 when resizing file.`); @@ -3986,7 +3986,7 @@ export class ShareFileClient extends StorageClient { fileCreatedOn: fileCreationTimeToString(options.creationTime), fileLastWriteOn: fileLastWriteTimeToString(options.lastWriteTime), ...this.shareClientConfig, - }) + }), ); }); } @@ -4004,7 +4004,7 @@ export class ShareFileClient extends StorageClient { */ public async setMetadata( metadata: Metadata = {}, - options: FileSetMetadataOptions = {} + options: FileSetMetadataOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-setMetadata", @@ -4015,9 +4015,9 @@ export class ShareFileClient extends StorageClient { ...updatedOptions, metadata, ...this.shareClientConfig, - }) + }), ); - } + }, ); } @@ -4052,7 +4052,7 @@ export class ShareFileClient extends StorageClient { body: HttpRequestBody, offset: number, contentLength: number, - options: FileUploadRangeOptions = {} + options: FileUploadRangeOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-uploadRange", @@ -4064,7 +4064,7 @@ export class ShareFileClient extends StorageClient { if (contentLength <= 0 || contentLength > FILE_RANGE_MAX_SIZE_BYTES) { throw new RangeError( - `contentLength must be > 0 and <= ${FILE_RANGE_MAX_SIZE_BYTES} bytes` + `contentLength must be > 0 and <= ${FILE_RANGE_MAX_SIZE_BYTES} bytes`, ); } @@ -4084,10 +4084,10 @@ export class ShareFileClient extends StorageClient { }, body, ...this.shareClientConfig, - } - ) + }, + ), ); - } + }, ); } @@ -4106,7 +4106,7 @@ export class ShareFileClient extends StorageClient { sourceOffset: number, destOffset: number, count: number, - options: FileUploadRangeFromURLOptions = {} + options: FileUploadRangeFromURLOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-uploadRangeFromURL", @@ -4130,13 +4130,13 @@ export class ShareFileClient extends StorageClient { sourceRange: rangeToString({ offset: sourceOffset, count }), sourceModifiedAccessConditions: updatedOptions.sourceConditions, copySourceAuthorization: httpAuthorizationToString( - updatedOptions.sourceAuthorization + updatedOptions.sourceAuthorization, ), ...this.shareClientConfig, - } - ) + }, + ), ); - } + }, ); } /** @@ -4150,7 +4150,7 @@ export class ShareFileClient extends StorageClient { public async clearRange( offset: number, contentLength: number, - options: FileClearRangeOptions = {} + options: FileClearRangeOptions = {}, ): Promise { return tracingClient.withSpan("ShareFileClient-clearRange", options, async (updatedOptions) => { if (offset < 0 || contentLength <= 0) { @@ -4162,8 +4162,8 @@ export class ShareFileClient extends StorageClient { rangeToString({ count: contentLength, offset }), "clear", 0, - { ...updatedOptions, ...this.shareClientConfig } - ) + { ...updatedOptions, ...this.shareClientConfig }, + ), ); }); } @@ -4174,7 +4174,7 @@ export class ShareFileClient extends StorageClient { * @param options - Options to File Get range List operation. */ public async getRangeList( - options: FileGetRangeListOptions = {} + options: FileGetRangeListOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-getRangeList", @@ -4189,7 +4189,7 @@ export class ShareFileClient extends StorageClient { ...updatedOptions, range: updatedOptions.range ? rangeToString(updatedOptions.range) : undefined, ...this.shareClientConfig, - }) + }), ); // Only returns ranges, ignoring clearRanges. @@ -4201,7 +4201,7 @@ export class ShareFileClient extends StorageClient { _response: { ...originalResponse._response, parsedBody }, rangeList: originalResponse.ranges ? originalResponse.ranges : [], }; - } + }, ); } @@ -4213,7 +4213,7 @@ export class ShareFileClient extends StorageClient { */ public async getRangeListDiff( prevShareSnapshot: string, - options: FileGetRangeListOptions = {} + options: FileGetRangeListOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-getRangeListDiff", @@ -4229,9 +4229,9 @@ export class ShareFileClient extends StorageClient { prevsharesnapshot: prevShareSnapshot, range: updatedOptions.range ? rangeToString(updatedOptions.range) : undefined, ...this.shareClientConfig, - }) + }), ); - } + }, ); } @@ -4249,16 +4249,19 @@ export class ShareFileClient extends StorageClient { */ public async startCopyFromURL( copySource: string, - options: FileStartCopyOptions = {} + options: FileStartCopyOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-startCopyFromURL", options, async (updatedOptions) => { return assertResponse( - await this.context.startCopy(copySource, { ...updatedOptions, ...this.shareClientConfig }) + await this.context.startCopy(copySource, { + ...updatedOptions, + ...this.shareClientConfig, + }), ); - } + }, ); } @@ -4272,16 +4275,16 @@ export class ShareFileClient extends StorageClient { */ public async abortCopyFromURL( copyId: string, - options: FileAbortCopyFromURLOptions = {} + options: FileAbortCopyFromURLOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-abortCopyFromURL", options, async (updatedOptions) => { return assertResponse( - await this.context.abortCopy(copyId, { ...updatedOptions, ...this.shareClientConfig }) + await this.context.abortCopy(copyId, { ...updatedOptions, ...this.shareClientConfig }), ); - } + }, ); } @@ -4295,7 +4298,7 @@ export class ShareFileClient extends StorageClient { */ public async uploadData( data: Buffer | Blob | ArrayBuffer | ArrayBufferView, - options: FileParallelUploadOptions = {} + options: FileParallelUploadOptions = {}, ): Promise { return tracingClient.withSpan("ShareFileClient-uploadData", options, async (updatedOptions) => { if (isNode) { @@ -4312,14 +4315,14 @@ export class ShareFileClient extends StorageClient { return this.uploadSeekableInternal( (offset: number, size: number): Buffer => buffer.slice(offset, offset + size), buffer.byteLength, - updatedOptions + updatedOptions, ); } else { const browserBlob = new Blob([data]); return this.uploadSeekableInternal( (offset: number, size: number): Blob => browserBlob.slice(offset, offset + size), browserBlob.size, - updatedOptions + updatedOptions, ); } }); @@ -4338,14 +4341,14 @@ export class ShareFileClient extends StorageClient { async uploadSeekableBlob( blobFactory: (offset: number, size: number) => Blob, size: number, - options: FileParallelUploadOptions = {} + options: FileParallelUploadOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-UploadSeekableBlob", options, async (updatedOptions) => { return this.uploadSeekableInternal(blobFactory, size, updatedOptions); - } + }, ); } @@ -4360,7 +4363,7 @@ export class ShareFileClient extends StorageClient { */ public async uploadFile( filePath: string, - options: FileParallelUploadOptions = {} + options: FileParallelUploadOptions = {}, ): Promise { return tracingClient.withSpan("ShareFileClient-uploadFile", options, async (updatedOptions) => { const size = (await fsStat(filePath)).size; @@ -4374,7 +4377,7 @@ export class ShareFileClient extends StorageClient { }); }, size, - updatedOptions + updatedOptions, ); }); } @@ -4395,7 +4398,7 @@ export class ShareFileClient extends StorageClient { async uploadResetableStream( streamFactory: (offset: number, count?: number) => NodeJS.ReadableStream, size: number, - options: FileParallelUploadOptions = {} + options: FileParallelUploadOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-uploadResetableStream", @@ -4406,9 +4409,9 @@ export class ShareFileClient extends StorageClient { return () => streamFactory(offset, count); }, size, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -4422,7 +4425,7 @@ export class ShareFileClient extends StorageClient { private async uploadSeekableInternal( bodyFactory: (offset: number, count: number) => HttpRequestBody, size: number, - options: FileParallelUploadOptions = {} + options: FileParallelUploadOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-uploadSeekableInternal", @@ -4477,7 +4480,7 @@ export class ShareFileClient extends StorageClient { }); } return batch.do(); - } + }, ); } @@ -4500,7 +4503,7 @@ export class ShareFileClient extends StorageClient { buffer: Buffer, offset?: number, count?: number, - options?: FileDownloadToBufferOptions + options?: FileDownloadToBufferOptions, ): Promise; /** @@ -4520,14 +4523,14 @@ export class ShareFileClient extends StorageClient { public async downloadToBuffer( offset?: number, count?: number, - options?: FileDownloadToBufferOptions + options?: FileDownloadToBufferOptions, ): Promise; public async downloadToBuffer( bufferOrOffset?: Buffer | number, offsetOrCount?: number, countOrOptions?: FileDownloadToBufferOptions | number, - optOptions: FileDownloadToBufferOptions = {} + optOptions: FileDownloadToBufferOptions = {}, ): Promise { let buffer: Buffer | undefined = undefined; let offset: number; @@ -4580,7 +4583,7 @@ export class ShareFileClient extends StorageClient { count = response.contentLength! - offset; if (count < 0) { throw new RangeError( - `offset ${offset} shouldn't be larger than file size ${response.contentLength!}` + `offset ${offset} shouldn't be larger than file size ${response.contentLength!}`, ); } } @@ -4592,14 +4595,14 @@ export class ShareFileClient extends StorageClient { throw new Error( `Unable to allocate a buffer of size: ${count} bytes. Please try passing your own Buffer to ` + 'the "downloadToBuffer method or try using other methods like "download" or "downloadToFile".' + - `\t ${error.message}` + `\t ${error.message}`, ); } } if (buffer.length < count) { throw new RangeError( - `The buffer's size should be equal to or larger than the request count of bytes: ${count}` + `The buffer's size should be equal to or larger than the request count of bytes: ${count}`, ); } @@ -4631,7 +4634,7 @@ export class ShareFileClient extends StorageClient { } await batch.do(); return buffer; - } + }, ); } @@ -4661,7 +4664,7 @@ export class ShareFileClient extends StorageClient { size: number, bufferSize: number, maxBuffers: number, - options: FileUploadStreamOptions = {} + options: FileUploadStreamOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-uploadStream", @@ -4697,7 +4700,7 @@ export class ShareFileClient extends StorageClient { if (transferProgress + buffer.length > size) { throw new RangeError( `Stream size is larger than file size ${size} bytes, uploading failed. ` + - `Please make sure stream length is less or equal than file size.` + `Please make sure stream length is less or equal than file size.`, ); } @@ -4717,10 +4720,10 @@ export class ShareFileClient extends StorageClient { // reduce the possibility when a outgoing handler waits for stream data, in // this situation, outgoing handlers are blocked. // Outgoing queue shouldn't be empty. - Math.ceil((maxBuffers / 4) * 3) + Math.ceil((maxBuffers / 4) * 3), ); return scheduler.do(); - } + }, ); } @@ -4744,7 +4747,7 @@ export class ShareFileClient extends StorageClient { filePath: string, offset: number = 0, count?: number, - options: FileDownloadOptions = {} + options: FileDownloadOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-downloadToFile", @@ -4758,7 +4761,7 @@ export class ShareFileClient extends StorageClient { // The stream is no longer accessible so setting it to undefined. (response as any).fileDownloadStream = undefined; return response; - } + }, ); } @@ -4775,7 +4778,7 @@ export class ShareFileClient extends StorageClient { */ private async listHandlesSegment( marker?: string, - options: FileListHandlesSegmentOptions = {} + options: FileListHandlesSegmentOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-listHandlesSegment", @@ -4791,7 +4794,7 @@ export class ShareFileClient extends StorageClient { ...updatedOptions, ...this.shareClientConfig, marker, - }) + }), ); // TODO: Protocol layer issue that when handle list is in returned XML @@ -4809,7 +4812,7 @@ export class ShareFileClient extends StorageClient { }; return wrappedResponse; - } + }, ); } @@ -4825,7 +4828,7 @@ export class ShareFileClient extends StorageClient { */ private async *iterateHandleSegments( marker?: string, - options: FileListHandlesSegmentOptions = {} + options: FileListHandlesSegmentOptions = {}, ): AsyncIterableIterator { let listHandlesResponse; if (!!marker || marker === undefined) { @@ -4843,7 +4846,7 @@ export class ShareFileClient extends StorageClient { * @param options - Options to list handles operation. */ private async *listHandleItems( - options: FileListHandlesSegmentOptions = {} + options: FileListHandlesSegmentOptions = {}, ): AsyncIterableIterator { let marker: string | undefined; for await (const listHandlesResponse of this.iterateHandleSegments(marker, options)) { @@ -4866,7 +4869,7 @@ export class ShareFileClient extends StorageClient { * An asyncIterableIterator that supports paging. */ public listHandles( - options: FileListHandlesOptions = {} + options: FileListHandlesOptions = {}, ): PagedAsyncIterableIterator { // an AsyncIterableIterator to iterate over handles const iter = this.listHandleItems(options); @@ -4908,7 +4911,7 @@ export class ShareFileClient extends StorageClient { */ private async forceCloseHandlesSegment( marker?: string, - options: FileForceCloseHandlesOptions = {} + options: FileForceCloseHandlesOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-forceCloseHandlesSegment", @@ -4924,7 +4927,7 @@ export class ShareFileClient extends StorageClient { response.closedHandlesCount = rawResponse.numberOfHandlesClosed || 0; response.closeFailureCount = rawResponse.numberOfHandlesFailedToClose || 0; return response; - } + }, ); } @@ -4935,7 +4938,7 @@ export class ShareFileClient extends StorageClient { * @param options - Options to force close handles operation. */ public async forceCloseAllHandles( - options: FileForceCloseHandlesOptions = {} + options: FileForceCloseHandlesOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-forceCloseAllHandles", @@ -4948,7 +4951,7 @@ export class ShareFileClient extends StorageClient { do { const response: FileForceCloseHandlesResponse = await this.forceCloseHandlesSegment( marker, - { tracingOptions: updatedOptions.tracingOptions } + { tracingOptions: updatedOptions.tracingOptions }, ); marker = response.marker; if (response.closedHandlesCount) { @@ -4963,7 +4966,7 @@ export class ShareFileClient extends StorageClient { closedHandlesCount: handlesClosed, closeFailureCount: numberOfHandlesFailedToClose, }; - } + }, ); } @@ -4977,7 +4980,7 @@ export class ShareFileClient extends StorageClient { */ public async forceCloseHandle( handleId: string, - options: FileForceCloseHandlesOptions = {} + options: FileForceCloseHandlesOptions = {}, ): Promise { return tracingClient.withSpan( "ShareFileClient-forceCloseHandle", @@ -4985,7 +4988,7 @@ export class ShareFileClient extends StorageClient { async (updatedOptions) => { if (handleId === "*") { throw new RangeError( - `Parameter handleID should be a specified handle ID. Use forceCloseHandlesSegment() to close all handles.` + `Parameter handleID should be a specified handle ID. Use forceCloseHandlesSegment() to close all handles.`, ); } @@ -4997,7 +5000,7 @@ export class ShareFileClient extends StorageClient { response.closedHandlesCount = rawResponse.numberOfHandlesClosed || 0; response.closeFailureCount = rawResponse.numberOfHandlesFailedToClose || 0; return response; - } + }, ); } @@ -5025,7 +5028,7 @@ export class ShareFileClient extends StorageClient { public generateSasUrl(options: FileGenerateSasUrlOptions): string { if (!(this.credential instanceof StorageSharedKeyCredential)) { throw RangeError( - "Can only generate the SAS when the client is initialized with a shared key credential" + "Can only generate the SAS when the client is initialized with a shared key credential", ); } @@ -5035,7 +5038,7 @@ export class ShareFileClient extends StorageClient { filePath: this.path, ...options, }, - this.credential + this.credential, ).toString(); return appendToURLQuery(this.url, sas); @@ -5060,7 +5063,7 @@ export class ShareFileClient extends StorageClient { */ public async rename( destinationPath: string, - options: FileRenameOptions = {} + options: FileRenameOptions = {}, ): Promise<{ destinationFileClient: ShareFileClient; fileRenameResponse: FileRenameResponse; @@ -5101,7 +5104,7 @@ export class ShareFileClient extends StorageClient { } : undefined, ...this.shareClientConfig, - }) + }), ); return { @@ -5232,7 +5235,7 @@ export class ShareLeaseClient { */ public async acquireLease( duration: number = -1, - options: LeaseOperationOptions = {} + options: LeaseOperationOptions = {}, ): Promise { return tracingClient.withSpan( "ShareLeaseClient-acquireLease", @@ -5243,9 +5246,9 @@ export class ShareLeaseClient { ...updatedOptions, duration, proposedLeaseId: this._leaseId, - }) + }), ); - } + }, ); } @@ -5258,7 +5261,7 @@ export class ShareLeaseClient { */ public async changeLease( proposedLeaseId: string, - options: LeaseOperationOptions = {} + options: LeaseOperationOptions = {}, ): Promise { return tracingClient.withSpan( "ShareLeaseClient-changeLease", @@ -5271,11 +5274,11 @@ export class ShareLeaseClient { await this.fileOrShare.changeLease(this._leaseId, { ...updatedOptions, proposedLeaseId, - }) + }), ); this._leaseId = proposedLeaseId; return response; - } + }, ); } @@ -5292,9 +5295,9 @@ export class ShareLeaseClient { options, async (updatedOptions) => { return assertResponse( - await this.fileOrShare.releaseLease(this._leaseId, updatedOptions) + await this.fileOrShare.releaseLease(this._leaseId, updatedOptions), ); - } + }, ); } @@ -5310,9 +5313,9 @@ export class ShareLeaseClient { options, async (updatedOptions) => { return assertResponse( - await this.fileOrShare.breakLease(updatedOptions) + await this.fileOrShare.breakLease(updatedOptions), ); - } + }, ); } @@ -5333,9 +5336,9 @@ export class ShareLeaseClient { throw new RangeError("The renewLease operation is not available for lease on file."); } return assertResponse( - await this.fileOrShare.renewLease(this._leaseId, updatedOptions) + await this.fileOrShare.renewLease(this._leaseId, updatedOptions), ); - } + }, ); } } diff --git a/sdk/storage/storage-file-share/src/FileDownloadResponse.ts b/sdk/storage/storage-file-share/src/FileDownloadResponse.ts index d392c31ad352..78e48991a813 100644 --- a/sdk/storage/storage-file-share/src/FileDownloadResponse.ts +++ b/sdk/storage/storage-file-share/src/FileDownloadResponse.ts @@ -415,17 +415,17 @@ export class FileDownloadResponse implements FileDownloadResponseModel { getter: ReadableStreamGetter, offset: number, count: number, - options: RetriableReadableStreamOptions = {} + options: RetriableReadableStreamOptions = {}, ) { this.originalResponse = assertResponse( - originalResponse + originalResponse, ); this.fileDownloadStream = new RetriableReadableStream( this.originalResponse.readableStreamBody!, getter, offset, count, - options + options, ); } } diff --git a/sdk/storage/storage-file-share/src/FileSASSignatureValues.ts b/sdk/storage/storage-file-share/src/FileSASSignatureValues.ts index 429acdfab6c0..4c613a233e09 100644 --- a/sdk/storage/storage-file-share/src/FileSASSignatureValues.ts +++ b/sdk/storage/storage-file-share/src/FileSASSignatureValues.ts @@ -109,14 +109,14 @@ export interface FileSASSignatureValues { */ export function generateFileSASQueryParameters( fileSASSignatureValues: FileSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential + sharedKeyCredential: StorageSharedKeyCredential, ): SASQueryParameters { if ( !fileSASSignatureValues.identifier && !(fileSASSignatureValues.permissions && fileSASSignatureValues.expiresOn) ) { throw new RangeError( - "Must provide 'permissions' and 'expiresOn' for File SAS generation when 'identifier' is not provided." + "Must provide 'permissions' and 'expiresOn' for File SAS generation when 'identifier' is not provided.", ); } @@ -131,11 +131,11 @@ export function generateFileSASQueryParameters( if (fileSASSignatureValues.permissions) { if (fileSASSignatureValues.filePath) { verifiedPermissions = FileSASPermissions.parse( - fileSASSignatureValues.permissions.toString() + fileSASSignatureValues.permissions.toString(), ).toString(); } else { verifiedPermissions = ShareSASPermissions.parse( - fileSASSignatureValues.permissions.toString() + fileSASSignatureValues.permissions.toString(), ).toString(); } } @@ -152,7 +152,7 @@ export function generateFileSASQueryParameters( getCanonicalName( sharedKeyCredential.accountName, fileSASSignatureValues.shareName, - fileSASSignatureValues.filePath + fileSASSignatureValues.filePath, ), fileSASSignatureValues.identifier, fileSASSignatureValues.ipRange ? ipRangeToString(fileSASSignatureValues.ipRange) : "", @@ -183,7 +183,7 @@ export function generateFileSASQueryParameters( fileSASSignatureValues.contentDisposition, fileSASSignatureValues.contentEncoding, fileSASSignatureValues.contentLanguage, - fileSASSignatureValues.contentType + fileSASSignatureValues.contentType, ); } diff --git a/sdk/storage/storage-file-share/src/Range.ts b/sdk/storage/storage-file-share/src/Range.ts index 31ad04baba01..927bfd4ea292 100644 --- a/sdk/storage/storage-file-share/src/Range.ts +++ b/sdk/storage/storage-file-share/src/Range.ts @@ -31,7 +31,7 @@ export function rangeToString(range: Range): string { } if (range.count && range.count <= 0) { throw new RangeError( - `Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.` + `Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`, ); } return range.count diff --git a/sdk/storage/storage-file-share/src/SASQueryParameters.ts b/sdk/storage/storage-file-share/src/SASQueryParameters.ts index a5773c906550..f7e500be7a88 100644 --- a/sdk/storage/storage-file-share/src/SASQueryParameters.ts +++ b/sdk/storage/storage-file-share/src/SASQueryParameters.ts @@ -166,7 +166,7 @@ export class SASQueryParameters { contentDisposition?: string, contentEncoding?: string, contentLanguage?: string, - contentType?: string + contentType?: string, ) { this.version = version; this.services = services; @@ -229,21 +229,21 @@ export class SASQueryParameters { this.tryAppendQueryParameter( queries, param, - this.startsOn ? truncatedISO8061Date(this.startsOn, false) : undefined + this.startsOn ? truncatedISO8061Date(this.startsOn, false) : undefined, ); break; case "se": this.tryAppendQueryParameter( queries, param, - this.expiresOn ? truncatedISO8061Date(this.expiresOn, false) : undefined + this.expiresOn ? truncatedISO8061Date(this.expiresOn, false) : undefined, ); break; case "sip": this.tryAppendQueryParameter( queries, param, - this.ipRange ? ipRangeToString(this.ipRange) : undefined + this.ipRange ? ipRangeToString(this.ipRange) : undefined, ); break; case "si": diff --git a/sdk/storage/storage-file-share/src/ShareServiceClient.ts b/sdk/storage/storage-file-share/src/ShareServiceClient.ts index 16bb4af0d414..513953660454 100644 --- a/sdk/storage/storage-file-share/src/ShareServiceClient.ts +++ b/sdk/storage/storage-file-share/src/ShareServiceClient.ts @@ -237,14 +237,14 @@ export class ShareServiceClient extends StorageClient { connectionString: string, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: ShareClientOptions + options?: ShareClientOptions, ): ShareServiceClient { const extractedCreds = extractConnectionStringParts(connectionString); if (extractedCreds.kind === "AccountConnString") { if (isNode) { const sharedKeyCredential = new StorageSharedKeyCredential( extractedCreds.accountName!, - extractedCreds.accountKey + extractedCreds.accountKey, ); const pipeline = newPipeline(sharedKeyCredential, options); return new ShareServiceClient(extractedCreds.url, pipeline, options); @@ -256,11 +256,11 @@ export class ShareServiceClient extends StorageClient { return new ShareServiceClient( extractedCreds.url + "?" + extractedCreds.accountSas, pipeline, - options + options, ); } else { throw new Error( - "Connection string must be either an Account connection string or a SAS connection string" + "Connection string must be either an Account connection string or a SAS connection string", ); } } @@ -281,7 +281,7 @@ export class ShareServiceClient extends StorageClient { credential?: AnonymousCredential | StorageSharedKeyCredential | TokenCredential, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: ShareClientOptions + options?: ShareClientOptions, ); /** * Creates an instance of ShareServiceClient. @@ -305,7 +305,7 @@ export class ShareServiceClient extends StorageClient { | Pipeline, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: ShareClientOptions + options?: ShareClientOptions, ) { let pipeline: Pipeline; if (credentialOrPipeline instanceof Pipeline) { @@ -343,7 +343,7 @@ export class ShareServiceClient extends StorageClient { return new ShareClient( appendToURLPath(this.url, shareName), this.pipeline, - this.shareClientConfig + this.shareClientConfig, ); } @@ -356,7 +356,7 @@ export class ShareServiceClient extends StorageClient { */ public async createShare( shareName: string, - options: ShareCreateOptions = {} + options: ShareCreateOptions = {}, ): Promise<{ shareCreateResponse: ShareCreateResponse; shareClient: ShareClient }> { return tracingClient.withSpan( "ShareServiceClient-createShare", @@ -368,7 +368,7 @@ export class ShareServiceClient extends StorageClient { shareCreateResponse, shareClient, }; - } + }, ); } @@ -381,7 +381,7 @@ export class ShareServiceClient extends StorageClient { */ public async deleteShare( shareName: string, - options: ShareDeleteMethodOptions = {} + options: ShareDeleteMethodOptions = {}, ): Promise { return tracingClient.withSpan( "ShareServiceClient-deleteShare", @@ -389,7 +389,7 @@ export class ShareServiceClient extends StorageClient { async (updatedOptions) => { const shareClient = this.getShareClient(shareName); return shareClient.delete(updatedOptions); - } + }, ); } @@ -402,7 +402,7 @@ export class ShareServiceClient extends StorageClient { * @returns Response data for the Get Properties operation. */ public async getProperties( - options: ServiceGetPropertiesOptions = {} + options: ServiceGetPropertiesOptions = {}, ): Promise { return tracingClient.withSpan( "ShareServiceClient-getProperties", @@ -413,7 +413,7 @@ export class ShareServiceClient extends StorageClient { ServiceGetPropertiesHeaders, FileServiceProperties >(await this.serviceContext.getProperties(updatedOptions)); - } + }, ); } @@ -428,16 +428,16 @@ export class ShareServiceClient extends StorageClient { */ public async setProperties( properties: FileServiceProperties, - options: ServiceSetPropertiesOptions = {} + options: ServiceSetPropertiesOptions = {}, ): Promise { return tracingClient.withSpan( "ShareServiceClient-setProperties", options, async (updatedOptions) => { return assertResponse( - await this.serviceContext.setProperties(properties, updatedOptions) + await this.serviceContext.setProperties(properties, updatedOptions), ); - } + }, ); } @@ -455,7 +455,7 @@ export class ShareServiceClient extends StorageClient { */ private async *listSegments( marker?: string, - options: ServiceListSharesSegmentOptions = {} + options: ServiceListSharesSegmentOptions = {}, ): AsyncIterableIterator { if (options.prefix === "") { options.prefix = undefined; @@ -475,7 +475,7 @@ export class ShareServiceClient extends StorageClient { * @param options - Options to list shares operation. */ private async *listItems( - options: ServiceListSharesSegmentOptions = {} + options: ServiceListSharesSegmentOptions = {}, ): AsyncIterableIterator { if (options.prefix === "") { options.prefix = undefined; @@ -564,7 +564,7 @@ export class ShareServiceClient extends StorageClient { * An asyncIterableIterator that supports paging. */ public listShares( - options: ServiceListSharesOptions = {} + options: ServiceListSharesOptions = {}, ): PagedAsyncIterableIterator { if (options.prefix === "") { options.prefix = undefined; @@ -628,7 +628,7 @@ export class ShareServiceClient extends StorageClient { */ private async listSharesSegment( marker?: string, - options: ServiceListSharesSegmentOptions = {} + options: ServiceListSharesSegmentOptions = {}, ): Promise { if (options.prefix === "") { options.prefix = undefined; @@ -645,7 +645,7 @@ export class ShareServiceClient extends StorageClient { await this.serviceContext.listSharesSegment({ ...updatedOptions, marker, - }) + }), ); // parse protocols @@ -657,7 +657,7 @@ export class ShareServiceClient extends StorageClient { } return res; - } + }, ); } @@ -674,7 +674,7 @@ export class ShareServiceClient extends StorageClient { public async undeleteShare( deletedShareName: string, deletedShareVersion: string, - options: ServiceUndeleteShareOptions = {} + options: ServiceUndeleteShareOptions = {}, ): Promise { return tracingClient.withSpan( "ShareServiceClient-undeleteShare", @@ -687,7 +687,7 @@ export class ShareServiceClient extends StorageClient { deletedShareVersion: deletedShareVersion, }); return shareClient; - } + }, ); } @@ -709,11 +709,11 @@ export class ShareServiceClient extends StorageClient { expiresOn?: Date, permissions: AccountSASPermissions = AccountSASPermissions.parse("r"), resourceTypes: string = "sco", - options: ServiceGenerateAccountSasUrlOptions = {} + options: ServiceGenerateAccountSasUrlOptions = {}, ): string { if (!(this.credential instanceof StorageSharedKeyCredential)) { throw RangeError( - "Can only generate the account SAS when the client is initialized with a shared key credential" + "Can only generate the account SAS when the client is initialized with a shared key credential", ); } @@ -730,7 +730,7 @@ export class ShareServiceClient extends StorageClient { services: AccountSASServices.parse("f").toString(), ...options, }, - this.credential + this.credential, ).toString(); return appendToURLQuery(this.url, sas); diff --git a/sdk/storage/storage-file-share/src/StorageContextClient.ts b/sdk/storage/storage-file-share/src/StorageContextClient.ts index 75f37724137b..eeef0177a364 100644 --- a/sdk/storage/storage-file-share/src/StorageContextClient.ts +++ b/sdk/storage/storage-file-share/src/StorageContextClient.ts @@ -10,7 +10,7 @@ import { StorageClient } from "./generated/src"; export class StorageContextClient extends StorageClient { async sendOperationRequest( operationArguments: OperationArguments, - operationSpec: OperationSpec + operationSpec: OperationSpec, ): Promise { const operationSpecToSend = { ...operationSpec }; diff --git a/sdk/storage/storage-file-share/src/models.ts b/sdk/storage/storage-file-share/src/models.ts index dff49ffc33ea..388adced6ba1 100644 --- a/sdk/storage/storage-file-share/src/models.ts +++ b/sdk/storage/storage-file-share/src/models.ts @@ -246,7 +246,7 @@ export function toShareProtocolsString(protocols: ShareProtocols = {}): string | } if (protocols.nfsEnabled === true) { logger.info( - `Using "NFS" in favor of "SMB" for the share protocol as currently they can't be supported at the same time.` + `Using "NFS" in favor of "SMB" for the share protocol as currently they can't be supported at the same time.`, ); protocolStr = "NFS"; } @@ -255,7 +255,7 @@ export function toShareProtocolsString(protocols: ShareProtocols = {}): string | export function validateFilePermissionOptions( filePermission?: string, - filePermissionKey?: string + filePermissionKey?: string, ): void { if (filePermission && filePermissionKey) { throw new RangeError("Only one of filePermission or filePermissionKey can be specified."); @@ -263,7 +263,7 @@ export function validateFilePermissionOptions( } export function validateAndSetDefaultsForFileAndDirectoryCreateCommonOptions( - options: FileAndDirectoryCreateCommonOptions + options: FileAndDirectoryCreateCommonOptions, ): FileAndDirectoryCreateCommonOptions { // Would better deep copy params set by user. @@ -289,7 +289,7 @@ export function validateAndSetDefaultsForFileAndDirectoryCreateCommonOptions( } export function validateAndSetDefaultsForFileAndDirectorySetPropertiesCommonOptions( - options: FileAndDirectorySetPropertiesCommonOptions + options: FileAndDirectorySetPropertiesCommonOptions, ): FileAndDirectorySetPropertiesCommonOptions { // Would better deep copy params set by user. @@ -319,7 +319,7 @@ export function validateAndSetDefaultsForFileAndDirectorySetPropertiesCommonOpti } export function fileAttributesToString( - fileAttributes: FileSystemAttributes | FileAttributesPreserveType + fileAttributes: FileSystemAttributes | FileAttributesPreserveType, ): string { return fileAttributes instanceof FileSystemAttributes ? fileAttributes.toString() @@ -327,19 +327,19 @@ export function fileAttributesToString( } export function fileCreationTimeToString( - time: Date | TimeNowType | TimePreserveType | undefined + time: Date | TimeNowType | TimePreserveType | undefined, ): string | undefined { return time instanceof Date ? truncatedISO8061Date(time) : time; } export function fileLastWriteTimeToString( - time: Date | TimeNowType | TimePreserveType | undefined + time: Date | TimeNowType | TimePreserveType | undefined, ): string | undefined { return time instanceof Date ? truncatedISO8061Date(time) : time; } export function fileChangeTimeToString( - time: Date | TimeNowType | TimePreserveType | undefined + time: Date | TimeNowType | TimePreserveType | undefined, ): string | undefined { return time instanceof Date ? truncatedISO8061Date(time) : time; } diff --git a/sdk/storage/storage-file-share/src/utils/BufferScheduler.ts b/sdk/storage/storage-file-share/src/utils/BufferScheduler.ts index b9e63cb99bb9..bd7696509e54 100644 --- a/sdk/storage/storage-file-share/src/utils/BufferScheduler.ts +++ b/sdk/storage/storage-file-share/src/utils/BufferScheduler.ts @@ -136,7 +136,7 @@ export class BufferScheduler { maxBuffers: number, outgoingHandler: OutgoingHandler, concurrency: number, - encoding?: BufferEncoding + encoding?: BufferEncoding, ) { if (bufferSize <= 0) { throw new RangeError(`bufferSize must be larger than 0, current is ${bufferSize}`); diff --git a/sdk/storage/storage-file-share/src/utils/RetriableReadableStream.ts b/sdk/storage/storage-file-share/src/utils/RetriableReadableStream.ts index 68b4627119e4..5ac9e60f0c43 100644 --- a/sdk/storage/storage-file-share/src/utils/RetriableReadableStream.ts +++ b/sdk/storage/storage-file-share/src/utils/RetriableReadableStream.ts @@ -61,7 +61,7 @@ export class RetriableReadableStream extends Readable { getter: ReadableStreamGetter, offset: number, count: number, - options: RetriableReadableStreamOptions = {} + options: RetriableReadableStreamOptions = {}, ) { super(); this.getter = getter; @@ -158,8 +158,8 @@ export class RetriableReadableStream extends Readable { this.offset - 1 }, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${ this.maxRetryRequests - }` - ) + }`, + ), ); } } else { @@ -167,8 +167,8 @@ export class RetriableReadableStream extends Readable { new Error( `Data corruption failure: Received more data than original request, data needed offset is ${ this.end - }, received offset: ${this.offset - 1}` - ) + }, received offset: ${this.offset - 1}`, + ), ); } }; diff --git a/sdk/storage/storage-file-share/src/utils/utils.common.ts b/sdk/storage/storage-file-share/src/utils/utils.common.ts index d72641cc55e3..77d07562f55a 100644 --- a/sdk/storage/storage-file-share/src/utils/utils.common.ts +++ b/sdk/storage/storage-file-share/src/utils/utils.common.ts @@ -100,7 +100,7 @@ function getValueInConnString( | "AccountKey" | "DefaultEndpointsProtocol" | "EndpointSuffix" - | "SharedAccessSignature" + | "SharedAccessSignature", ) { const elements = connectionString.split(";"); for (const element of elements) { @@ -147,7 +147,7 @@ export function extractConnectionStringParts(connectionString: string): Connecti const protocol = defaultEndpointsProtocol!.toLowerCase(); if (protocol !== "https" && protocol !== "http") { throw new Error( - "Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'" + "Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'", ); } @@ -392,7 +392,7 @@ export function base64decode(encodedString: string): string { export async function delay( timeInMs: number, aborter?: AbortSignalLike, - abortError?: Error + abortError?: Error, ): Promise { return new Promise((resolve, reject) => { /* eslint-disable-next-line prefer-const */ @@ -483,7 +483,7 @@ export function isIpEndpointStyle(parsedUrl: URL): boolean { // For valid host please refer to https://man7.org/linux/man-pages/man7/hostname.7.html. return ( /^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test( - host + host, ) || (Boolean(parsedUrl.port) && PathStylePorts.includes(parsedUrl.port)) ); @@ -547,13 +547,13 @@ export function getShareNameAndPathFromUrl(url: string): { } } catch (error: any) { throw new Error( - "Unable to extract shareName and filePath/directoryPath with provided information." + "Unable to extract shareName and filePath/directoryPath with provided information.", ); } } export function httpAuthorizationToString( - httpAuthorization?: HttpAuthorization + httpAuthorization?: HttpAuthorization, ): string | undefined { return httpAuthorization ? httpAuthorization.scheme + " " + httpAuthorization.value : undefined; } @@ -670,8 +670,8 @@ export type WithResponse = T & (Body extends object ? ResponseWithBody : Headers extends object - ? ResponseWithHeaders - : ResponseLike); + ? ResponseWithHeaders + : ResponseLike); /** * A typesafe helper for ensuring that a given response object has @@ -680,7 +680,7 @@ export type WithResponse = T & * @returns The same object, but with known _response property */ export function assertResponse( - response: T + response: T, ): WithResponse { if (`_response` in response) { return response as WithResponse; @@ -698,7 +698,7 @@ export function StringEncodedToString(name: StringEncoded): string { } export function ConvertInternalResponseOfListFiles( - internalResponse: ListFilesAndDirectoriesSegmentResponseInternal + internalResponse: ListFilesAndDirectoriesSegmentResponseInternal, ): ListFilesAndDirectoriesSegmentResponse { const wrappedResponse = { ...internalResponse, @@ -737,7 +737,7 @@ export function ConvertInternalResponseOfListFiles( } export function ConvertInternalResponseOfListHandles( - internalResponse: ListHandlesResponseInternal + internalResponse: ListHandlesResponseInternal, ): ListHandlesResponse { const wrappedResponse: ListHandlesResponse = { ...internalResponse, diff --git a/sdk/storage/storage-file-share/src/utils/utils.node.ts b/sdk/storage/storage-file-share/src/utils/utils.node.ts index 0c25c7f10b2d..2eabb1e1bed2 100644 --- a/sdk/storage/storage-file-share/src/utils/utils.node.ts +++ b/sdk/storage/storage-file-share/src/utils/utils.node.ts @@ -19,7 +19,7 @@ export async function streamToBuffer( buffer: Buffer, offset: number, end: number, - encoding?: BufferEncoding + encoding?: BufferEncoding, ): Promise { let pos = 0; // Position in stream const count = end - offset; // Total amount of data needed in stream @@ -27,7 +27,7 @@ export async function streamToBuffer( return new Promise((resolve, reject) => { const timeout = setTimeout( () => reject(new Error(`The operation cannot be completed in timeout.`)), - REQUEST_TIMEOUT + REQUEST_TIMEOUT, ); stream.on("readable", () => { if (pos >= count) { @@ -56,8 +56,8 @@ export async function streamToBuffer( if (pos < count) { reject( new Error( - `Stream drains before getting enough data needed. Data read: ${pos}, data need: ${count}` - ) + `Stream drains before getting enough data needed. Data read: ${pos}, data need: ${count}`, + ), ); } resolve(); @@ -80,7 +80,7 @@ export async function streamToBuffer( */ export async function readStreamToLocalFile( rs: NodeJS.ReadableStream, - file: string + file: string, ): Promise { return new Promise((resolve, reject) => { const ws = fs.createWriteStream(file); diff --git a/sdk/storage/storage-file-share/test/directoryclient.spec.ts b/sdk/storage/storage-file-share/test/directoryclient.spec.ts index a6bf2e22cc36..c4e00a36475b 100644 --- a/sdk/storage/storage-file-share/test/directoryclient.spec.ts +++ b/sdk/storage/storage-file-share/test/directoryclient.spec.ts @@ -37,7 +37,7 @@ describe("DirectoryClient", () => { }, uriSanitizers, }, - ["record", "playback"] + ["record", "playback"], ); const serviceClient = getBSU(recorder); shareName = recorder.variable("share", getUniqueName("share")); @@ -124,7 +124,7 @@ describe("DirectoryClient", () => { it("create with all parameters configured setting filePermissionKey", async () => { const dirClient2 = shareClient.getDirectoryClient( - recorder.variable(dirName, getUniqueName(dirName)) + recorder.variable(dirName, getUniqueName(dirName)), ); const metadata = { key: "value" }; const now = new Date(recorder.variable("now", new Date().toISOString())); @@ -161,11 +161,11 @@ describe("DirectoryClient", () => { it("create with all parameters configured setting filePermission", async () => { const getPermissionResp = await shareClient.getPermission( - defaultDirCreateResp.filePermissionKey! + defaultDirCreateResp.filePermissionKey!, ); const dirClient2 = shareClient.getDirectoryClient( - recorder.variable(dirName, getUniqueName(dirName)) + recorder.variable(dirName, getUniqueName(dirName)), ); const metadata = { key: "value" }; const now = new Date(recorder.variable("now", new Date().toISOString())); @@ -203,7 +203,7 @@ describe("DirectoryClient", () => { assert.equal(res.errorCode, "ResourceAlreadyExists"); const dirClient2 = shareClient.getDirectoryClient( - recorder.variable(dirName, getUniqueName(dirName)) + recorder.variable(dirName, getUniqueName(dirName)), ); const res2 = await dirClient2.createIfNotExists(); assert.ok(res2.succeeded); @@ -213,7 +213,7 @@ describe("DirectoryClient", () => { it("deleteIfExists", async () => { const dirClient2 = shareClient.getDirectoryClient( - recorder.variable(dirName, getUniqueName(dirName)) + recorder.variable(dirName, getUniqueName(dirName)), ); const res = await dirClient2.deleteIfExists(); assert.ok(!res.succeeded); @@ -236,7 +236,7 @@ describe("DirectoryClient", () => { it("exists", async () => { assert.ok(await dirClient.exists()); const dirClient2 = shareClient.getDirectoryClient( - recorder.variable(dirName, getUniqueName(dirName)) + recorder.variable(dirName, getUniqueName(dirName)), ); assert.ok(!(await dirClient2.exists())); }); @@ -249,11 +249,11 @@ describe("DirectoryClient", () => { assert.equal(result.fileAttributes!, defaultDirCreateResp.fileAttributes!); assert.equal( truncatedISO8061Date(result.fileCreatedOn!), - truncatedISO8061Date(defaultDirCreateResp.fileCreatedOn!) + truncatedISO8061Date(defaultDirCreateResp.fileCreatedOn!), ); assert.equal( truncatedISO8061Date(result.fileLastWriteOn!), - truncatedISO8061Date(defaultDirCreateResp.fileLastWriteOn!) + truncatedISO8061Date(defaultDirCreateResp.fileLastWriteOn!), ); assert.equal(result.filePermissionKey!, defaultDirCreateResp.filePermissionKey!); assert.ok(result.fileChangeOn!); @@ -263,7 +263,7 @@ describe("DirectoryClient", () => { it("setProperties with all parameters configured setting filePermission", async () => { const getPermissionResp = await shareClient.getPermission( - defaultDirCreateResp.filePermissionKey! + defaultDirCreateResp.filePermissionKey!, ); const now = new Date(recorder.variable("now", new Date().toISOString())); @@ -306,7 +306,7 @@ describe("DirectoryClient", () => { for (let i = 0; i < 3; i++) { const subDirClient = dirClient.getDirectoryClient( - recorder.variable(`dir${i}`, getUniqueName(`dir${i}`)) + recorder.variable(`dir${i}`, getUniqueName(`dir${i}`)), ); await subDirClient.create(); subDirClients.push(subDirClient); @@ -315,7 +315,7 @@ describe("DirectoryClient", () => { const subFileClients = []; for (let i = 0; i < 3; i++) { const subFileClient = dirClient.getFileClient( - recorder.variable(`file${i}`, getUniqueName(`file${i}`)) + recorder.variable(`file${i}`, getUniqueName(`file${i}`)), ); await subFileClient.create(1024); subFileClients.push(subFileClient); @@ -352,7 +352,7 @@ describe("DirectoryClient", () => { for (let i = 0; i < 3; i++) { const subDirClient = dirClient.getDirectoryClient( - recorder.variable(`dir${i}`, getUniqueName(`dir${i}`)) + recorder.variable(`dir${i}`, getUniqueName(`dir${i}`)), ); await subDirClient.create(); subDirClients.push(subDirClient); @@ -361,7 +361,7 @@ describe("DirectoryClient", () => { const subFileClients = []; for (let i = 0; i < 3; i++) { const subFileClient = dirClient.getFileClient( - recorder.variable(`file${i}`, getUniqueName(`file${i}`)) + recorder.variable(`file${i}`, getUniqueName(`file${i}`)), ); await subFileClient.create(1024); subFileClients.push(subFileClient); @@ -435,7 +435,7 @@ describe("DirectoryClient", () => { for (let i = 0; i < 3; i++) { const subDirClient = dirWithInvalidChar.getDirectoryClient( - recorder.variable(`dir${i}-1`, getUniqueName(`dir\uFFFE${i}-1`)) + recorder.variable(`dir${i}-1`, getUniqueName(`dir\uFFFE${i}-1`)), ); if (await subDirClient.exists()) { await subDirClient.delete(); @@ -449,7 +449,7 @@ describe("DirectoryClient", () => { const subFileNames = []; for (let i = 0; i < 3; i++) { const subFileClient = dirWithInvalidChar.getFileClient( - recorder.variable(`file${i}`, getUniqueName(`file\uFFFE${i}`)) + recorder.variable(`file${i}`, getUniqueName(`file\uFFFE${i}`)), ); await subFileClient.create(1024); subFileClients.push(subFileClient); @@ -611,7 +611,7 @@ describe("DirectoryClient", () => { const prefix = recorder.variable(variableName, getUniqueName(variableName)); for (let i = 0; i < 3; i++) { const subDirClient = rootDirClient.getDirectoryClient( - recorder.variable(`${prefix}dir${i}`, getUniqueName(`${prefix}dir${i}`)) + recorder.variable(`${prefix}dir${i}`, getUniqueName(`${prefix}dir${i}`)), ); await subDirClient.create(); subDirClients.push(subDirClient); @@ -620,7 +620,7 @@ describe("DirectoryClient", () => { const subFileClients = []; for (let i = 0; i < 3; i++) { const subFileClient = rootDirClient.getFileClient( - recorder.variable(`${prefix}file${i}`, getUniqueName(`${prefix}file${i}`)) + recorder.variable(`${prefix}file${i}`, getUniqueName(`${prefix}file${i}`)), ); await subFileClient.create(1024); subFileClients.push(subFileClient); @@ -660,7 +660,7 @@ describe("DirectoryClient", () => { const prefix = recorder.variable(variableName, getUniqueName(variableName)); for (let i = 0; i < 3; i++) { const subDirClient = rootDirClient.getDirectoryClient( - recorder.variable(`${prefix}dir${i}`, getUniqueName(`${prefix}dir${i}`)) + recorder.variable(`${prefix}dir${i}`, getUniqueName(`${prefix}dir${i}`)), ); await subDirClient.create(); subDirClients.push(subDirClient); @@ -669,7 +669,7 @@ describe("DirectoryClient", () => { const subFileClients = []; for (let i = 0; i < 3; i++) { const subFileClient = rootDirClient.getFileClient( - recorder.variable(`${prefix}file${i}`, getUniqueName(`${prefix}file${i}`)) + recorder.variable(`${prefix}file${i}`, getUniqueName(`${prefix}file${i}`)), ); await subFileClient.create(1024); subFileClients.push(subFileClient); @@ -687,7 +687,7 @@ describe("DirectoryClient", () => { assert.deepStrictEqual( firstResult.segment.directoryItems.length + firstResult.segment.fileItems.length, - firstRequestSize + firstRequestSize, ); assert.notDeepEqual(firstResult.continuationToken, undefined); @@ -702,7 +702,7 @@ describe("DirectoryClient", () => { ).value; assert.deepStrictEqual( secondResult.segment.directoryItems.length + secondResult.segment.fileItems.length, - secondRequestSize + secondRequestSize, ); for (const subFile of subFileClients) { @@ -722,7 +722,7 @@ describe("DirectoryClient", () => { const prefix = recorder.variable(variableName, getUniqueName(variableName)); for (let i = 0; i < 3; i++) { const subDirClient = rootDirClient.getDirectoryClient( - recorder.variable(`${prefix}dir${i}`, getUniqueName(`${prefix}dir${i}`)) + recorder.variable(`${prefix}dir${i}`, getUniqueName(`${prefix}dir${i}`)), ); await subDirClient.create(); subDirClients.push(subDirClient); @@ -731,7 +731,7 @@ describe("DirectoryClient", () => { const subFileClients = []; for (let i = 0; i < 3; i++) { const subFileClient = rootDirClient.getFileClient( - recorder.variable(`${prefix}file${i}`, getUniqueName(`${prefix}file${i}`)) + recorder.variable(`${prefix}file${i}`, getUniqueName(`${prefix}file${i}`)), ); await subFileClient.create(1024); subFileClients.push(subFileClient); @@ -761,7 +761,7 @@ describe("DirectoryClient", () => { const prefix = recorder.variable(variableName, getUniqueName(variableName)); for (let i = 0; i < 3; i++) { const subDirClient = rootDirClient.getDirectoryClient( - recorder.variable(`${prefix}dir${i}`, getUniqueName(`${prefix}dir${i}`)) + recorder.variable(`${prefix}dir${i}`, getUniqueName(`${prefix}dir${i}`)), ); await subDirClient.create(); subDirClients.push(subDirClient); @@ -770,7 +770,7 @@ describe("DirectoryClient", () => { const subFileClients = []; for (let i = 0; i < 3; i++) { const subFileClient = rootDirClient.getFileClient( - recorder.variable(`${prefix}file${i}`, getUniqueName(`${prefix}file${i}`)) + recorder.variable(`${prefix}file${i}`, getUniqueName(`${prefix}file${i}`)), ); await subFileClient.create(1024); subFileClients.push(subFileClient); @@ -806,7 +806,7 @@ describe("DirectoryClient", () => { const prefix = recorder.variable(variableName, getUniqueName(variableName)); for (let i = 0; i < 3; i++) { const subDirClient = rootDirClient.getDirectoryClient( - recorder.variable(`${prefix}dir${i}`, getUniqueName(`${prefix}dir${i}`)) + recorder.variable(`${prefix}dir${i}`, getUniqueName(`${prefix}dir${i}`)), ); await subDirClient.create(); subDirClients.push(subDirClient); @@ -815,7 +815,7 @@ describe("DirectoryClient", () => { const subFileClients = []; for (let i = 0; i < 3; i++) { const subFileClient = rootDirClient.getFileClient( - recorder.variable(`${prefix}file${i}`, getUniqueName(`${prefix}file${i}`)) + recorder.variable(`${prefix}file${i}`, getUniqueName(`${prefix}file${i}`)), ); await subFileClient.create(1024); subFileClients.push(subFileClient); @@ -852,7 +852,7 @@ describe("DirectoryClient", () => { const prefix = recorder.variable(variableName, getUniqueName(variableName)); for (let i = 0; i < 3; i++) { const subDirClient = rootDirClient.getDirectoryClient( - recorder.variable(`${prefix}dir${i}`, getUniqueName(`${prefix}dir${i}`)) + recorder.variable(`${prefix}dir${i}`, getUniqueName(`${prefix}dir${i}`)), ); await subDirClient.create(); subDirClients.push(subDirClient); @@ -861,7 +861,7 @@ describe("DirectoryClient", () => { const subFileClients = []; for (let i = 0; i < 3; i++) { const subFileClient = rootDirClient.getFileClient( - recorder.variable(`${prefix}file${i}`, getUniqueName(`${prefix}file${i}`)) + recorder.variable(`${prefix}file${i}`, getUniqueName(`${prefix}file${i}`)), ); await subFileClient.create(1024); subFileClients.push(subFileClient); @@ -879,7 +879,7 @@ describe("DirectoryClient", () => { assert.deepStrictEqual( response.segment.directoryItems.length + response.segment.fileItems.length, - firstRequestSize + firstRequestSize, ); assert.notDeepEqual(response.continuationToken, undefined); @@ -894,7 +894,7 @@ describe("DirectoryClient", () => { response = (await iter.next()).value; assert.deepStrictEqual( response.segment.directoryItems.length + response.segment.fileItems.length, - secondRequestSize + secondRequestSize, ); for (const subFile of subFileClients) { @@ -919,7 +919,7 @@ describe("DirectoryClient", () => { try { await subDirClient.getProperties(); assert.fail( - "Expecting an error in getting properties from a deleted block blob but didn't get one." + "Expecting an error in getting properties from a deleted block blob but didn't get one.", ); } catch (error: any) { assert.ok((error.statusCode as number) === 404); @@ -939,7 +939,7 @@ describe("DirectoryClient", () => { try { await fileClient.getProperties(); assert.fail( - "Expecting an error in getting properties from a deleted block blob but didn't get one." + "Expecting an error in getting properties from a deleted block blob but didn't get one.", ); } catch (error: any) { assert.ok((error.statusCode as number) === 404); @@ -953,7 +953,7 @@ describe("DirectoryClient", () => { const directoryName = recorder.variable("directory", getUniqueName("directory")); const { directoryClient: subDirClient } = await dirClient.createSubdirectory( directoryName, - options + options, ); const fileName = recorder.variable("file", getUniqueName("file")); const metadata = { key: "value" }; @@ -968,14 +968,14 @@ describe("DirectoryClient", () => { try { await fileClient.getProperties(options); assert.fail( - "Expecting an error in getting properties from a deleted block blob but didn't get one." + "Expecting an error in getting properties from a deleted block blob but didn't get one.", ); } catch (error: any) { assert.ok((error.statusCode as number) === 404); assert.equal( error.details.errorCode, "ResourceNotFound", - "Error does not contain details property" + "Error does not contain details property", ); } await subDirClient.delete(options); @@ -986,7 +986,7 @@ describe("DirectoryClient", () => { "ShareFileClient-getProperties", "ShareDirectoryClient-deleteFile", "ShareDirectoryClient-delete", - ] + ], ); }); @@ -1035,7 +1035,7 @@ describe("DirectoryClient", () => { assert.deepStrictEqual( await dirClient.forceCloseAllHandles(), { closedHandlesCount: 0, closeFailureCount: 0 }, - "Error in forceCloseAllHandles" + "Error in forceCloseAllHandles", ); }); @@ -1054,7 +1054,7 @@ describe("DirectoryClient", () => { assert.equal( closeRes.closeFailureCount, 0, - "The closeFailureCount is not set to 0 as default." + "The closeFailureCount is not set to 0 as default.", ); }); @@ -1064,7 +1064,7 @@ describe("DirectoryClient", () => { const result = await dirClient.rename(destDirName); assert.ok( result.destinationDirectoryClient.name === destDirName, - "Destination name should be expected" + "Destination name should be expected", ); // Validate destination existence. @@ -1090,7 +1090,7 @@ describe("DirectoryClient", () => { }); assert.ok( result.destinationDirectoryClient.name === destDirName, - "Destination name should be expected" + "Destination name should be expected", ); // Validate destination existence. @@ -1108,7 +1108,7 @@ describe("DirectoryClient", () => { it("rename to under a different directory", async () => { const sourceParentDirName = recorder.variable( "sourceParentdir", - getUniqueName("sourceParentdir") + getUniqueName("sourceParentdir"), ); const sourceParentDir = shareClient.getDirectoryClient(sourceParentDirName); await sourceParentDir.create(); @@ -1127,7 +1127,7 @@ describe("DirectoryClient", () => { const result = await sourceDir.rename(destDirPath); assert.ok( result.destinationDirectoryClient.name === destDirName, - "Destination name should be expected" + "Destination name should be expected", ); // Validate destination existence. @@ -1150,7 +1150,7 @@ describe("DirectoryClient", () => { assert.ok( result.destinationDirectoryClient.name === destDirName, - "Destination name should be expected" + "Destination name should be expected", ); // Validate destination existence. @@ -1174,7 +1174,7 @@ describe("DirectoryClient", () => { } catch (err: any) { assert.ok( (err.statusCode as number) === 409, - "Should got conflict error when trying to overwrite an exiting file" + "Should got conflict error when trying to overwrite an exiting file", ); } @@ -1222,7 +1222,7 @@ describe("DirectoryClient", () => { } catch (err: any) { assert.ok( (err.statusCode as number) === 409, - "Should got conflict error when trying to overwrite an exiting file" + "Should got conflict error when trying to overwrite an exiting file", ); } @@ -1293,7 +1293,7 @@ describe("DirectoryClient", () => { const result = await sourceDirClient.rename(destDirName); assert.ok( result.destinationDirectoryClient.name === destDirName, - "Destination name should be expected" + "Destination name should be expected", ); await result.destinationDirectoryClient.getProperties(); @@ -1321,7 +1321,7 @@ describe("DirectoryClient", () => { assert.ok( result.destinationDirectoryClient.name === destDirName, - "Destination name should be expected" + "Destination name should be expected", ); const properties = await result.destinationDirectoryClient.getProperties(); @@ -1367,27 +1367,27 @@ describe("DirectoryClient", () => { assert.ok( result.destinationDirectoryClient.name === destDirName, - "Destination name should be expected" + "Destination name should be expected", ); const properties = await result.destinationDirectoryClient.getProperties(); assert.ok(properties.filePermissionKey, "File permission should have been set to destination"); assert.ok( truncatedISO8061Date(properties.fileCreatedOn!) === truncatedISO8061Date(creationDate), - "Creation time should be expected" + "Creation time should be expected", ); assert.ok( truncatedISO8061Date(properties.fileLastWriteOn!) === truncatedISO8061Date(lastwriteTime), - "Last write time should be expected" + "Last write time should be expected", ); assert.ok( truncatedISO8061Date(properties.fileChangeOn!) === truncatedISO8061Date(changedTime), - "Changed time should be expected" + "Changed time should be expected", ); const fileSystemAttributes = FileSystemAttributes.parse(properties.fileAttributes!); assert.ok( fileSystemAttributes.readonly && fileSystemAttributes.directory, - "File attributes should be expected" + "File attributes should be expected", ); try { @@ -1411,35 +1411,35 @@ describe("ShareDirectoryClient - Verify Name Properties", () => { assert.equal( newClient.path, dirPath + "/" + baseName, - "DirPath is not the same as the one provided." + "DirPath is not the same as the one provided.", ); assert.equal( newClient.accountName, accountName, - "Account name is not the same as the one provided." + "Account name is not the same as the one provided.", ); assert.equal( newClient.name, baseName, - "DirectoryClient name is not the same as the baseName of the provided directory URI" + "DirectoryClient name is not the same as the baseName of the provided directory URI", ); } it("verify endpoint from the portal", async () => { verifyNameProperties( - `https://${accountName}.file.core.windows.net/${shareName}/${dirPath}/${baseName}` + `https://${accountName}.file.core.windows.net/${shareName}/${dirPath}/${baseName}`, ); }); it("verify IPv4 host address as Endpoint", async () => { verifyNameProperties( - `https://192.0.0.10:1900/${accountName}/${shareName}/${dirPath}/${baseName}` + `https://192.0.0.10:1900/${accountName}/${shareName}/${dirPath}/${baseName}`, ); }); it("verify IPv6 host address as Endpoint", async () => { verifyNameProperties( - `https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/${accountName}/${shareName}/${dirPath}/${baseName}` + `https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/${accountName}/${shareName}/${dirPath}/${baseName}`, ); }); @@ -1449,7 +1449,7 @@ describe("ShareDirectoryClient - Verify Name Properties", () => { it("verify custom endpoint without valid accountName", async () => { const newClient = new ShareDirectoryClient( - `https://customdomain.com/${shareName}/${dirPath}/${baseName}` + `https://customdomain.com/${shareName}/${dirPath}/${baseName}`, ); assert.equal(newClient.accountName, "", "Account name is not the same as the one provided."); @@ -1457,12 +1457,12 @@ describe("ShareDirectoryClient - Verify Name Properties", () => { assert.equal( newClient.path, dirPath + "/" + baseName, - "DirPath is not the same as the one provided." + "DirPath is not the same as the one provided.", ); assert.equal( newClient.name, baseName, - "DirectoryClient name is not the same as the baseName of the provided directory URI" + "DirectoryClient name is not the same as the baseName of the provided directory URI", ); }); }); @@ -1495,7 +1495,7 @@ describe("DirectoryClient - OAuth", () => { }, uriSanitizers, }, - ["record", "playback"] + ["record", "playback"], ); shareName = recorder.variable("share", getUniqueName("share")); shareClientWithKeyCredential = getBSU(recorder).getShareClient(shareName); @@ -1503,7 +1503,7 @@ describe("DirectoryClient - OAuth", () => { try { shareClient = getTokenBSU(recorder, "", "", { fileRequestIntent: "backup" }).getShareClient( - shareName + shareName, ); } catch (err) { this.skip(); @@ -1564,7 +1564,7 @@ describe("DirectoryClient - OAuth", () => { assert.equal(res.errorCode, "ResourceAlreadyExists"); const dirClient2 = shareClient.getDirectoryClient( - recorder.variable(dirName, getUniqueName(dirName)) + recorder.variable(dirName, getUniqueName(dirName)), ); const res2 = await dirClient2.createIfNotExists(); assert.ok(res2.succeeded); @@ -1574,7 +1574,7 @@ describe("DirectoryClient - OAuth", () => { it("deleteIfExists", async () => { const dirClient2 = shareClient.getDirectoryClient( - recorder.variable(dirName, getUniqueName(dirName)) + recorder.variable(dirName, getUniqueName(dirName)), ); const res = await dirClient2.deleteIfExists(); assert.ok(!res.succeeded); @@ -1588,7 +1588,7 @@ describe("DirectoryClient - OAuth", () => { it("exists", async () => { assert.ok(await dirClient.exists()); const dirClient2 = shareClient.getDirectoryClient( - recorder.variable(dirName, getUniqueName(dirName)) + recorder.variable(dirName, getUniqueName(dirName)), ); assert.ok(!(await dirClient2.exists())); }); @@ -1601,11 +1601,11 @@ describe("DirectoryClient - OAuth", () => { assert.equal(result.fileAttributes!, defaultDirCreateResp.fileAttributes!); assert.equal( truncatedISO8061Date(result.fileCreatedOn!), - truncatedISO8061Date(defaultDirCreateResp.fileCreatedOn!) + truncatedISO8061Date(defaultDirCreateResp.fileCreatedOn!), ); assert.equal( truncatedISO8061Date(result.fileLastWriteOn!), - truncatedISO8061Date(defaultDirCreateResp.fileLastWriteOn!) + truncatedISO8061Date(defaultDirCreateResp.fileLastWriteOn!), ); assert.equal(result.filePermissionKey!, defaultDirCreateResp.filePermissionKey!); assert.ok(result.fileChangeOn!); @@ -1615,7 +1615,7 @@ describe("DirectoryClient - OAuth", () => { it("setProperties with all parameters configured setting filePermission", async () => { const getPermissionResp = await shareClient.getPermission( - defaultDirCreateResp.filePermissionKey! + defaultDirCreateResp.filePermissionKey!, ); const now = new Date(recorder.variable("now", new Date().toISOString())); @@ -1658,7 +1658,7 @@ describe("DirectoryClient - OAuth", () => { for (let i = 0; i < 3; i++) { const subDirClient = dirClient.getDirectoryClient( - recorder.variable(`dir${i}`, getUniqueName(`dir${i}`)) + recorder.variable(`dir${i}`, getUniqueName(`dir${i}`)), ); await subDirClient.create(); subDirClients.push(subDirClient); @@ -1667,7 +1667,7 @@ describe("DirectoryClient - OAuth", () => { const subFileClients = []; for (let i = 0; i < 3; i++) { const subFileClient = dirClient.getFileClient( - recorder.variable(`file${i}`, getUniqueName(`file${i}`)) + recorder.variable(`file${i}`, getUniqueName(`file${i}`)), ); await subFileClient.create(1024); subFileClients.push(subFileClient); @@ -1748,7 +1748,7 @@ describe("DirectoryClient - OAuth", () => { assert.deepStrictEqual( await dirClient.forceCloseAllHandles(), { closedHandlesCount: 0, closeFailureCount: 0 }, - "Error in forceCloseAllHandles" + "Error in forceCloseAllHandles", ); }); @@ -1767,7 +1767,7 @@ describe("DirectoryClient - OAuth", () => { const result = await dirClient.rename(destDirName); assert.ok( result.destinationDirectoryClient.name === destDirName, - "Destination name should be expected" + "Destination name should be expected", ); // Validate destination existence. @@ -1802,7 +1802,7 @@ describe("DirectoryClient - AllowingTrailingDots - True", () => { }, uriSanitizers, }, - ["record", "playback"] + ["record", "playback"], ); const serviceClient = getBSU(recorder, { allowTrailingDot: true, @@ -1874,11 +1874,11 @@ describe("DirectoryClient - AllowingTrailingDots - True", () => { assert.equal(result.fileAttributes!, defaultDirCreateResp.fileAttributes!); assert.equal( truncatedISO8061Date(result.fileCreatedOn!), - truncatedISO8061Date(defaultDirCreateResp.fileCreatedOn!) + truncatedISO8061Date(defaultDirCreateResp.fileCreatedOn!), ); assert.equal( truncatedISO8061Date(result.fileLastWriteOn!), - truncatedISO8061Date(defaultDirCreateResp.fileLastWriteOn!) + truncatedISO8061Date(defaultDirCreateResp.fileLastWriteOn!), ); assert.equal(result.filePermissionKey!, defaultDirCreateResp.filePermissionKey!); assert.ok(result.fileChangeOn!); @@ -1979,7 +1979,7 @@ describe("DirectoryClient - AllowingTrailingDots - True", () => { assert.deepStrictEqual( await dirClient.forceCloseAllHandles(), { closedHandlesCount: 0, closeFailureCount: 0 }, - "Error in forceCloseAllHandles" + "Error in forceCloseAllHandles", ); }); @@ -1988,7 +1988,7 @@ describe("DirectoryClient - AllowingTrailingDots - True", () => { const result = await dirClient.rename(destDirName); assert.ok( result.destinationDirectoryClient.name === destDirName, - "Destination name should be expected" + "Destination name should be expected", ); // Validate destination existence. @@ -2045,7 +2045,7 @@ describe("DirectoryClient - AllowingTrailingDots - False", () => { }, uriSanitizers, }, - ["record", "playback"] + ["record", "playback"], ); const serviceClient = getBSU(recorder, { allowTrailingDot: false, @@ -2117,11 +2117,11 @@ describe("DirectoryClient - AllowingTrailingDots - False", () => { assert.equal(result.fileAttributes!, defaultDirCreateResp.fileAttributes!); assert.equal( truncatedISO8061Date(result.fileCreatedOn!), - truncatedISO8061Date(defaultDirCreateResp.fileCreatedOn!) + truncatedISO8061Date(defaultDirCreateResp.fileCreatedOn!), ); assert.equal( truncatedISO8061Date(result.fileLastWriteOn!), - truncatedISO8061Date(defaultDirCreateResp.fileLastWriteOn!) + truncatedISO8061Date(defaultDirCreateResp.fileLastWriteOn!), ); assert.equal(result.filePermissionKey!, defaultDirCreateResp.filePermissionKey!); assert.ok(result.fileChangeOn!); @@ -2133,9 +2133,8 @@ describe("DirectoryClient - AllowingTrailingDots - False", () => { const subDirName = recorder.variable("subdir", getUniqueName("subdir")); const subDirNameWithDots = subDirName + "."; - const { directoryClient: subDirClient } = await dirClient.createSubdirectory( - subDirNameWithDots - ); + const { directoryClient: subDirClient } = + await dirClient.createSubdirectory(subDirNameWithDots); let foundDir = false; for await (const item of dirClient.listFilesAndDirectories()) { @@ -2252,7 +2251,7 @@ describe("DirectoryClient - AllowingTrailingDots - False", () => { assert.deepStrictEqual( await dirClient.forceCloseAllHandles(), { closedHandlesCount: 0, closeFailureCount: 0 }, - "Error in forceCloseAllHandles" + "Error in forceCloseAllHandles", ); }); @@ -2262,7 +2261,7 @@ describe("DirectoryClient - AllowingTrailingDots - False", () => { const result = await dirClient.rename(destDirName); assert.ok( result.destinationDirectoryClient.name === destDirName, - "Destination name should be expected" + "Destination name should be expected", ); // Validate destination existence. @@ -2319,7 +2318,7 @@ describe("DirectoryClient - AllowingTrailingDots - Default", () => { }, uriSanitizers, }, - ["record", "playback"] + ["record", "playback"], ); const serviceClient = getBSU(recorder); shareName = recorder.variable("share", getUniqueName("share")); diff --git a/sdk/storage/storage-file-share/test/fileclient.spec.ts b/sdk/storage/storage-file-share/test/fileclient.spec.ts index 4773f51dd141..cd9dd63f7f88 100644 --- a/sdk/storage/storage-file-share/test/fileclient.spec.ts +++ b/sdk/storage/storage-file-share/test/fileclient.spec.ts @@ -62,7 +62,7 @@ describe("FileClient", () => { }, uriSanitizers, }, - ["record", "playback"] + ["record", "playback"], ); const serviceClient = getBSU(recorder); shareName = recorder.variable("share", getUniqueName("share")); @@ -99,7 +99,7 @@ describe("FileClient", () => { const result = await fileClient.download(0); assert.deepStrictEqual( await bodyToString(result, content.length), - "\u0000".repeat(content.length) + "\u0000".repeat(content.length), ); }); @@ -283,7 +283,7 @@ describe("FileClient", () => { it("setProperties with all parameters configured setting filePermission", async function () { const getPermissionResp = await shareClient.getPermission( - defaultDirCreateResp.filePermissionKey! + defaultDirCreateResp.filePermissionKey!, ); const now = new Date(recorder.variable("now", new Date().toISOString())); @@ -410,7 +410,7 @@ describe("FileClient", () => { it("deleteIfExists when parent not exists", async function () { const newDirectoryClient = shareClient.getDirectoryClient( - recorder.variable("newdir", getUniqueName("newdir")) + recorder.variable("newdir", getUniqueName("newdir")), ); const newFileClient = newDirectoryClient.getFileClient(fileName); const res = await newFileClient.deleteIfExists(); @@ -430,7 +430,7 @@ describe("FileClient", () => { } await fileClient.create(1024); const newFileClient = dirClient.getFileClient( - recorder.variable("copiedfile", getUniqueName("copiedfile")) + recorder.variable("copiedfile", getUniqueName("copiedfile")), ); const result = await newFileClient.startCopyFromURL(fileClient.url); assert.ok(result.copyId); @@ -455,7 +455,7 @@ describe("FileClient", () => { assert.strictEqual( sanitizedActualUrl.toString(), sanitizedExpectedUrl.toString(), - "copySource does not match original source" + "copySource does not match original source", ); } }); @@ -463,7 +463,7 @@ describe("FileClient", () => { it("startCopyFromURL ignore readonly", async function () { await fileClient.create(1024); const newFileClient = dirClient.getFileClient( - recorder.variable("copiedfile", getUniqueName("copiedfile")) + recorder.variable("copiedfile", getUniqueName("copiedfile")), ); await newFileClient.create(2048, { fileAttributes: FileSystemAttributes.parse("ReadOnly"), @@ -491,7 +491,7 @@ describe("FileClient", () => { it("startCopyFromURL with smb options", async function () { await fileClient.create(1024); const newFileClient = dirClient.getFileClient( - recorder.variable("copiedfile", getUniqueName("copiedfile")) + recorder.variable("copiedfile", getUniqueName("copiedfile")), ); const fileAttributesInstance = new FileSystemAttributes(); @@ -523,7 +523,7 @@ describe("FileClient", () => { assert.deepStrictEqual( FileSystemAttributes.parse(targetProperties.fileAttributes!), - fileAttributesInstance + fileAttributesInstance, ); assert.deepStrictEqual(targetProperties.fileLastWriteOn, sourceProperties.fileLastWriteOn); assert.deepStrictEqual(targetProperties.fileCreatedOn, fileCreationDate); @@ -533,7 +533,7 @@ describe("FileClient", () => { it("startCopyFromURL with smb options: filePermissionKey", async function () { await fileClient.create(1024); const newFileClient = dirClient.getFileClient( - recorder.variable("copiedfile", getUniqueName("copiedfile")) + recorder.variable("copiedfile", getUniqueName("copiedfile")), ); const createPermResp = await shareClient.createPermission(filePermissionInSDDL); @@ -564,7 +564,7 @@ describe("FileClient", () => { fileAttributesInstance.archive = true; assert.deepStrictEqual( FileSystemAttributes.parse(targetProperties.fileAttributes!), - fileAttributesInstance + fileAttributesInstance, ); assert.deepStrictEqual(targetProperties.fileLastWriteOn, sourceProperties.fileLastWriteOn); assert.deepStrictEqual(targetProperties.fileCreatedOn, fileCreationDate); @@ -573,7 +573,7 @@ describe("FileClient", () => { it("abortCopyFromURL should failed for a completed copy operation", async function () { await fileClient.create(content.length); const newFileClient = dirClient.getFileClient( - recorder.variable("copiedfile", getUniqueName("copiedfile")) + recorder.variable("copiedfile", getUniqueName("copiedfile")), ); const result = await newFileClient.startCopyFromURL(fileClient.url); assert.ok(result.copyId); @@ -582,7 +582,7 @@ describe("FileClient", () => { try { await newFileClient.abortCopyFromURL(result.copyId!); assert.fail( - "AbortCopyFromURL should be failed and throw exception for an completed copy operation." + "AbortCopyFromURL should be failed and throw exception for an completed copy operation.", ); } catch (err: any) { assert.ok(true); @@ -629,15 +629,15 @@ describe("FileClient", () => { assert.ok(respFileAttributes.temporary); assert.equal( truncatedISO8061Date(updatedProperties.fileCreatedOn!), - truncatedISO8061Date(creationDate) + truncatedISO8061Date(creationDate), ); assert.equal( truncatedISO8061Date(updatedProperties.fileLastWriteOn!), - truncatedISO8061Date(lastwriteTime) + truncatedISO8061Date(lastwriteTime), ); assert.equal( truncatedISO8061Date(updatedProperties.fileChangeOn!), - truncatedISO8061Date(changedTime) + truncatedISO8061Date(changedTime), ); }); @@ -671,8 +671,8 @@ describe("FileClient", () => { assert.ok( compareBodyWithUint8Array( res2, - new Uint8Array(arrayBuf, uint16Array.byteOffset, uint16Array.byteLength) - ) + new Uint8Array(arrayBuf, uint16Array.byteOffset, uint16Array.byteLength), + ), ); }); @@ -725,7 +725,7 @@ describe("FileClient", () => { assert.deepStrictEqual( uploadRangeResult.fileLastWriteTime, createResult.fileLastWriteOn, - "Last write time should be expected" + "Last write time should be expected", ); await fileClient.uploadRange("World", 5, 5, { @@ -755,7 +755,7 @@ describe("FileClient", () => { assert.deepStrictEqual( uploadRangeResult.fileLastWriteTime, clearRangeResult.fileLastWriteTime, - "File last write time should be expected" + "File last write time should be expected", ); const result = await fileClient.download(); assert.deepStrictEqual(await bodyToString(result, 10), "H" + "\u0000".repeat(4) + "World"); @@ -960,7 +960,7 @@ describe("FileClient", () => { assert.deepStrictEqual( await fileClient.forceCloseAllHandles(), { closedHandlesCount: 0, closeFailureCount: 0 }, - "Error in forceCloseAllHandles" + "Error in forceCloseAllHandles", ); }); @@ -1010,7 +1010,7 @@ describe("FileClient", () => { assert.equal( closeAllResp.closeFailureCount, 0, - "The closeFailureCount is not set to 0 as default." + "The closeFailureCount is not set to 0 as default.", ); }); @@ -1019,7 +1019,7 @@ describe("FileClient", () => { async (options) => { await fileClient.create(content.length, options); }, - ["ShareFileClient-create"] + ["ShareFileClient-create"], ); }); @@ -1030,7 +1030,7 @@ describe("FileClient", () => { const result = await fileClient.rename(destFileName); assert.ok( result.destinationFileClient.name === destFileName, - "Destination name should be expected" + "Destination name should be expected", ); // Validate destination existence. @@ -1056,7 +1056,7 @@ describe("FileClient", () => { }); assert.ok( result.destinationFileClient.name === destFileName, - "Destination name should be expected" + "Destination name should be expected", ); // Validate destination existence. @@ -1089,7 +1089,7 @@ describe("FileClient", () => { const result = await sourceFile.rename(destFilePath); assert.ok( result.destinationFileClient.name === destFileName, - "Destination name should be expected" + "Destination name should be expected", ); // Validate destination existence. @@ -1117,7 +1117,7 @@ describe("FileClient", () => { assert.ok( result.destinationFileClient.name === destFileName, - "Destination name should be expected" + "Destination name should be expected", ); // Validate destination existence. @@ -1146,7 +1146,7 @@ describe("FileClient", () => { } catch (err: any) { assert.ok( (err.statusCode as number) === 409, - "Should got conflict error when trying to overwrite an exiting file" + "Should got conflict error when trying to overwrite an exiting file", ); } @@ -1202,7 +1202,7 @@ describe("FileClient", () => { } catch (err: any) { assert.ok( (err.statusCode as number) === 409, - "Should got conflict error when trying to overwrite an exiting file" + "Should got conflict error when trying to overwrite an exiting file", ); } @@ -1264,7 +1264,7 @@ describe("FileClient", () => { } catch (err: any) { assert.ok( (err.statusCode as number) === 412, - "Should got conflict error when trying to overwrite an exiting file" + "Should got conflict error when trying to overwrite an exiting file", ); } @@ -1280,7 +1280,7 @@ describe("FileClient", () => { headersForRemoval: ["x-ms-source-lease-id", "x-ms-proposed-lease-id"], }, }, - ["record", "playback"] + ["record", "playback"], ); const sourceFileName = recorder.variable("sourcefile", getUniqueName("sourcefile")); const sourceFileClient = shareClient.getDirectoryClient("").getFileClient(sourceFileName); @@ -1302,7 +1302,7 @@ describe("FileClient", () => { assert.equal( destFileName, result.destinationFileClient.name, - "Destination client instance should be expected" + "Destination client instance should be expected", ); try { @@ -1320,7 +1320,7 @@ describe("FileClient", () => { headersForRemoval: ["x-ms-source-lease-id", "x-ms-proposed-lease-id"], }, }, - ["record", "playback"] + ["record", "playback"], ); const sourceFileName = recorder.variable("sourcefile", getUniqueName("sourcefile")); const sourceFileClient = shareClient.getDirectoryClient("").getFileClient(sourceFileName); @@ -1337,7 +1337,7 @@ describe("FileClient", () => { } catch (err: any) { assert.ok( (err.statusCode as number) === 412, - "Should got conflict error when trying to overwrite an exiting file" + "Should got conflict error when trying to overwrite an exiting file", ); } @@ -1356,7 +1356,7 @@ describe("FileClient", () => { const result = await sourceFileClient.rename(destFileName); assert.ok( result.destinationFileClient.name === destFileName, - "Destination name should be expected" + "Destination name should be expected", ); await result.destinationFileClient.getProperties(); @@ -1384,7 +1384,7 @@ describe("FileClient", () => { assert.ok( result.destinationFileClient.name === destFileName, - "Destination name should be expected" + "Destination name should be expected", ); const properties = await result.destinationFileClient.getProperties(); @@ -1430,27 +1430,27 @@ describe("FileClient", () => { assert.ok( result.destinationFileClient.name === destFileName, - "Destination name should be expected" + "Destination name should be expected", ); const properties = await result.destinationFileClient.getProperties(); assert.ok(properties.filePermissionKey, "File permission should have been set to destination"); assert.ok( truncatedISO8061Date(properties.fileCreatedOn!) === truncatedISO8061Date(creationDate), - "Creation time should be expected" + "Creation time should be expected", ); assert.ok( truncatedISO8061Date(properties.fileLastWriteOn!) === truncatedISO8061Date(lastwriteTime), - "Last write time should be expected" + "Last write time should be expected", ); assert.ok( truncatedISO8061Date(properties.fileChangeOn!) === truncatedISO8061Date(changeTime), - "File changed time should be expected" + "File changed time should be expected", ); const fileSystemAttributes = FileSystemAttributes.parse(properties.fileAttributes!); assert.ok( fileSystemAttributes.readonly && fileSystemAttributes.hidden, - "File attributes should be expected" + "File attributes should be expected", ); try { @@ -1475,7 +1475,7 @@ describe("FileClient", () => { assert.ok( result.destinationFileClient.name === destFileName, - "Destination name should be expected" + "Destination name should be expected", ); const properties = await result.destinationFileClient.getProperties(); @@ -1502,35 +1502,35 @@ describe("ShareFileClient - Verify Name Properties", () => { assert.equal( newClient.path, dirName + "/" + fileName, - "FilePath is not the same as the one provided." + "FilePath is not the same as the one provided.", ); assert.equal( newClient.accountName, accountName, - "Account name is not the same as the one provided." + "Account name is not the same as the one provided.", ); assert.equal( newClient.name, fileName, - "FileClient name is not the same as the baseName of the provided file URI" + "FileClient name is not the same as the baseName of the provided file URI", ); } it("verify endpoint from the portal", async function () { verifyNameProperties( - `https://${accountName}.file.core.windows.net/${shareName}/${dirName}/${fileName}` + `https://${accountName}.file.core.windows.net/${shareName}/${dirName}/${fileName}`, ); }); it("verify IPv4 host address as Endpoint", async function () { verifyNameProperties( - `https://192.0.0.10:1900/${accountName}/${shareName}/${dirName}/${fileName}` + `https://192.0.0.10:1900/${accountName}/${shareName}/${dirName}/${fileName}`, ); }); it("verify IPv6 host address as Endpoint", async function () { verifyNameProperties( - `https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/${accountName}/${shareName}/${dirName}/${fileName}` + `https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/${accountName}/${shareName}/${dirName}/${fileName}`, ); }); @@ -1540,7 +1540,7 @@ describe("ShareFileClient - Verify Name Properties", () => { it("verify custom endpoint without valid accountName", async function () { const newClient = new ShareFileClient( - `https://customdomain.com/${shareName}/${dirName}/${fileName}` + `https://customdomain.com/${shareName}/${dirName}/${fileName}`, ); assert.equal(newClient.accountName, "", "Account name is not the same as expected."); @@ -1548,12 +1548,12 @@ describe("ShareFileClient - Verify Name Properties", () => { assert.equal( newClient.path, dirName + "/" + fileName, - "FilePath is not the same as the one provided." + "FilePath is not the same as the one provided.", ); assert.equal( newClient.name, fileName, - "FileClient name is not the same as the baseName of the provided file URI" + "FileClient name is not the same as the baseName of the provided file URI", ); }); }); @@ -1589,7 +1589,7 @@ describe("FileClient - OAuth", () => { }, uriSanitizers, }, - ["record", "playback"] + ["record", "playback"], ); let serviceClient: ShareServiceClient; try { @@ -1632,7 +1632,7 @@ describe("FileClient - OAuth", () => { const result = await fileClient.download(0); assert.deepStrictEqual( await bodyToString(result, content.length), - "\u0000".repeat(content.length) + "\u0000".repeat(content.length), ); }); @@ -1698,7 +1698,7 @@ describe("FileClient - OAuth", () => { it("startCopyFromURL", async () => { await fileClient.create(1024); const newFileClient = dirClient.getFileClient( - recorder.variable("copiedfile", getUniqueName("copiedfile")) + recorder.variable("copiedfile", getUniqueName("copiedfile")), ); const result = await newFileClient.startCopyFromURL(fileClient.url); assert.ok(result.copyId); @@ -1722,7 +1722,7 @@ describe("FileClient - OAuth", () => { assert.strictEqual( sanitizedActualUrl.toString(), sanitizedExpectedUrl.toString(), - "copySource does not match original source" + "copySource does not match original source", ); } }); @@ -1730,7 +1730,7 @@ describe("FileClient - OAuth", () => { it("abortCopyFromURL should failed for a completed copy operation", async () => { await fileClient.create(content.length); const newFileClient = dirClient.getFileClient( - recorder.variable("copiedfile", getUniqueName("copiedfile")) + recorder.variable("copiedfile", getUniqueName("copiedfile")), ); const result = await newFileClient.startCopyFromURL(fileClient.url); assert.ok(result.copyId); @@ -1739,7 +1739,7 @@ describe("FileClient - OAuth", () => { try { await newFileClient.abortCopyFromURL(result.copyId!); assert.fail( - "AbortCopyFromURL should be failed and throw exception for an completed copy operation." + "AbortCopyFromURL should be failed and throw exception for an completed copy operation.", ); } catch (err: any) { assert.ok(true); @@ -1849,7 +1849,7 @@ describe("FileClient - OAuth", () => { assert.deepStrictEqual( await fileClient.forceCloseAllHandles(), { closedHandlesCount: 0, closeFailureCount: 0 }, - "Error in forceCloseAllHandles" + "Error in forceCloseAllHandles", ); }); @@ -1871,7 +1871,7 @@ describe("FileClient - OAuth", () => { const result = await fileClient.rename(destFileName); assert.ok( result.destinationFileClient.name === destFileName, - "Destination name should be expected" + "Destination name should be expected", ); // Validate destination existence. @@ -1902,7 +1902,7 @@ describe("FileClient - AllowTrailingDots - True", () => { }, uriSanitizers, }, - ["record", "playback"] + ["record", "playback"], ); const serviceClient = getBSU(recorder, { allowSourceTrailingDot: true, @@ -2051,12 +2051,12 @@ describe("FileClient - AllowTrailingDots - True", () => { try { await newFileClient.abortCopyFromURL(result.copyId!); assert.fail( - "AbortCopyFromURL should be failed and throw exception for an completed copy operation." + "AbortCopyFromURL should be failed and throw exception for an completed copy operation.", ); } catch (err: any) { assert.ok( err.statusCode === 409 && err.code === "NoPendingCopyOperation", - "Should got expected error" + "Should got expected error", ); } }); @@ -2200,7 +2200,7 @@ describe("FileClient - AllowTrailingDots - True", () => { assert.deepStrictEqual( await fileClient.forceCloseAllHandles(), { closedHandlesCount: 0, closeFailureCount: 0 }, - "Error in forceCloseAllHandles" + "Error in forceCloseAllHandles", ); }); @@ -2220,7 +2220,7 @@ describe("FileClient - AllowTrailingDots - True", () => { const result = await fileClient.rename(destFileName); assert.ok( result.destinationFileClient.name === destFileName, - "Destination name should be expected" + "Destination name should be expected", ); let foundFile = false; @@ -2278,7 +2278,7 @@ describe("FileClient - AllowTrailingDots - False", () => { }, uriSanitizers, }, - ["record", "playback"] + ["record", "playback"], ); const serviceClient = getBSU(recorder, { allowSourceTrailingDot: false, @@ -2427,12 +2427,12 @@ describe("FileClient - AllowTrailingDots - False", () => { try { await newFileClient.abortCopyFromURL(result.copyId!); assert.fail( - "AbortCopyFromURL should be failed and throw exception for an completed copy operation." + "AbortCopyFromURL should be failed and throw exception for an completed copy operation.", ); } catch (err: any) { assert.ok( err.statusCode === 409 && err.code === "NoPendingCopyOperation", - "Should got expected error" + "Should got expected error", ); } }); @@ -2576,7 +2576,7 @@ describe("FileClient - AllowTrailingDots - False", () => { assert.deepStrictEqual( await fileClient.forceCloseAllHandles(), { closedHandlesCount: 0, closeFailureCount: 0 }, - "Error in forceCloseAllHandles" + "Error in forceCloseAllHandles", ); }); @@ -2597,7 +2597,7 @@ describe("FileClient - AllowTrailingDots - False", () => { const result = await fileClient.rename(destFileName); assert.ok( result.destinationFileClient.name === destFileName, - "Destination name should be expected" + "Destination name should be expected", ); let foundFile = false; @@ -2619,7 +2619,7 @@ describe("FileClient - AllowTrailingDots - False", () => { const anotherResult = await firstDestClient.rename(anotherDestFileName); assert.ok( anotherResult.destinationFileClient.name === anotherDestFileName, - "Destination name should be expected" + "Destination name should be expected", ); foundFile = false; @@ -2658,7 +2658,7 @@ describe("FileClient - AllowTrailingDots - Default", () => { }, uriSanitizers, }, - ["record", "playback"] + ["record", "playback"], ); const serviceClient = getBSU(recorder); shareName = recorder.variable("share", getUniqueName("share")); diff --git a/sdk/storage/storage-file-share/test/fileserviceclient.spec.ts b/sdk/storage/storage-file-share/test/fileserviceclient.spec.ts index 023daccbda1f..e03829ce3f6f 100644 --- a/sdk/storage/storage-file-share/test/fileserviceclient.spec.ts +++ b/sdk/storage/storage-file-share/test/fileserviceclient.spec.ts @@ -358,7 +358,7 @@ describe("FileServiceClient", () => { try { await shareClient.getProperties(); assert.fail( - "Expecting an error in getting properties from a deleted block blob but didn't get one." + "Expecting an error in getting properties from a deleted block blob but didn't get one.", ); } catch (error: any) { assert.ok((error.statusCode as number) === 404); @@ -367,7 +367,7 @@ describe("FileServiceClient", () => { it("can be created from a sas connection string", async () => { const newClient = ShareServiceClient.fromConnectionString( - getSASConnectionStringFromEnvironment(recorder) + getSASConnectionStringFromEnvironment(recorder), ); configureStorageClient(recorder, newClient); @@ -384,7 +384,7 @@ describe("FileServiceClient", () => { retryOptions: { maxTries: 5, }, - } + }, ); configureStorageClient(recorder, newClient); @@ -417,7 +417,7 @@ describe("FileServiceClient - soft delete", () => { it("ListShares with deleted share", async function () { const shareClient = serviceClient.getShareClient( - recorder.variable("share", getUniqueName("share")) + recorder.variable("share", getUniqueName("share")), ); await shareClient.create(); await shareClient.delete(); @@ -435,7 +435,7 @@ describe("FileServiceClient - soft delete", () => { it("Undelete share positive", async function () { const shareClient = serviceClient.getShareClient( - recorder.variable("share", getUniqueName("share")) + recorder.variable("share", getUniqueName("share")), ); await shareClient.create(); await shareClient.delete(); @@ -461,7 +461,7 @@ describe("FileServiceClient - soft delete", () => { const restoredShareClient = await serviceClient.undeleteShare( shareDeleted!.name, - shareDeleted!.version! + shareDeleted!.version!, ); await restoredShareClient.getProperties(); @@ -470,7 +470,7 @@ describe("FileServiceClient - soft delete", () => { it("Undelete share negative", async function () { const shareClient = serviceClient.getShareClient( - recorder.variable("share", getUniqueName("share")) + recorder.variable("share", getUniqueName("share")), ); const invalidVersion = "01D60F8BB59A4652"; diff --git a/sdk/storage/storage-file-share/test/leaseclient.spec.ts b/sdk/storage/storage-file-share/test/leaseclient.spec.ts index 9dfdf366d2e5..b6e5b3711542 100644 --- a/sdk/storage/storage-file-share/test/leaseclient.spec.ts +++ b/sdk/storage/storage-file-share/test/leaseclient.spec.ts @@ -31,7 +31,7 @@ describe("LeaseClient", () => { }, uriSanitizers, }, - ["record", "playback"] + ["record", "playback"], ); const serviceClient = getBSU(recorder); shareName = recorder.variable("share", getUniqueName("share")); @@ -72,7 +72,7 @@ describe("LeaseClient", () => { { removeHeaderSanitizer: { headersForRemoval: ["x-ms-proposed-lease-id", "x-ms-lease-id"] }, }, - ["record", "playback"] + ["record", "playback"], ); const leaseClient = fileClient.getShareLeaseClient(); await leaseClient.acquireLease(duration); @@ -88,7 +88,7 @@ describe("LeaseClient", () => { { removeHeaderSanitizer: { headersForRemoval: ["x-ms-proposed-lease-id", "x-ms-lease-id"] }, }, - ["record", "playback"] + ["record", "playback"], ); const leaseClient = fileClient.getShareLeaseClient(); await leaseClient.acquireLease(duration); @@ -113,7 +113,7 @@ describe("LeaseClient", () => { { removeHeaderSanitizer: { headersForRemoval: ["x-ms-proposed-lease-id", "x-ms-lease-id"] }, }, - ["record", "playback"] + ["record", "playback"], ); // only -1 for infinite is allowed. const invalid_duration = 20; @@ -139,7 +139,7 @@ describe("LeaseClient", () => { { removeHeaderSanitizer: { headersForRemoval: ["x-ms-proposed-lease-id", "x-ms-lease-id"] }, }, - ["record", "playback"] + ["record", "playback"], ); const leaseClient = fileClient.getShareLeaseClient(); try { @@ -156,7 +156,7 @@ describe("LeaseClient", () => { { removeHeaderSanitizer: { headersForRemoval: ["x-ms-proposed-lease-id", "x-ms-lease-id"] }, }, - ["record", "playback"] + ["record", "playback"], ); const leaseClient = fileClient.getShareLeaseClient(); await leaseClient.acquireLease(); @@ -173,7 +173,7 @@ describe("LeaseClient", () => { { removeHeaderSanitizer: { headersForRemoval: ["x-ms-proposed-lease-id", "x-ms-lease-id"] }, }, - ["record", "playback"] + ["record", "playback"], ); const leaseClient = fileClient.getShareLeaseClient(); await leaseClient.acquireLease(); @@ -194,7 +194,7 @@ describe("LeaseClient", () => { { removeHeaderSanitizer: { headersForRemoval: ["x-ms-proposed-lease-id", "x-ms-lease-id"] }, }, - ["record", "playback"] + ["record", "playback"], ); const leaseClient = fileClient.getShareLeaseClient(); await leaseClient.acquireLease(); @@ -208,7 +208,7 @@ describe("LeaseClient", () => { { removeHeaderSanitizer: { headersForRemoval: ["x-ms-proposed-lease-id", "x-ms-lease-id"] }, }, - ["record", "playback"] + ["record", "playback"], ); const leaseClient = fileClient.getShareLeaseClient(); await leaseClient.acquireLease(); @@ -299,7 +299,7 @@ describe("LeaseClient", () => { await leaseClient.acquireLease(); const newFileClient = dirClient.getFileClient( - recorder.variable("copiedfile", getUniqueName("copiedfile")) + recorder.variable("copiedfile", getUniqueName("copiedfile")), ); await newFileClient.create(content.length); try { @@ -332,7 +332,7 @@ describe("LeaseClient", () => { { removeHeaderSanitizer: { headersForRemoval: ["x-ms-proposed-lease-id", "x-ms-lease-id"] }, }, - ["record", "playback"] + ["record", "playback"], ); const leaseClient = fileClient.getShareLeaseClient(); await leaseClient.acquireLease(); @@ -341,7 +341,7 @@ describe("LeaseClient", () => { try { await fileClient.getRangeList({ leaseAccessConditions: { leaseId: guid } }); assert.fail( - "The lease ID specified in the request should matches that of the file if specified" + "The lease ID specified in the request should matches that of the file if specified", ); } catch (err: any) { assert.equal(err.statusCode, 412); @@ -357,7 +357,7 @@ describe("LeaseClient", () => { { removeHeaderSanitizer: { headersForRemoval: ["x-ms-proposed-lease-id", "x-ms-lease-id"] }, }, - ["record", "playback"] + ["record", "playback"], ); const leaseClient = fileClient.getShareLeaseClient(); await leaseClient.acquireLease(); @@ -370,7 +370,7 @@ describe("LeaseClient", () => { try { await fileClient.download(0, undefined, { leaseAccessConditions: { leaseId: guid } }); assert.fail( - "The lease ID specified in the request should matches that of the file if specified" + "The lease ID specified in the request should matches that of the file if specified", ); } catch (err: any) { assert.equal(err.statusCode, 412); @@ -386,7 +386,7 @@ describe("LeaseClient", () => { { removeHeaderSanitizer: { headersForRemoval: ["x-ms-proposed-lease-id", "x-ms-lease-id"] }, }, - ["record", "playback"] + ["record", "playback"], ); const leaseClient = fileClient.getShareLeaseClient(); await leaseClient.acquireLease(); @@ -399,7 +399,7 @@ describe("LeaseClient", () => { try { await fileClient.getProperties({ leaseAccessConditions: { leaseId: guid } }); assert.fail( - "The lease ID specified in the request should matches that of the file if specified" + "The lease ID specified in the request should matches that of the file if specified", ); } catch (err: any) { assert.equal(err.statusCode, 412); diff --git a/sdk/storage/storage-file-share/test/node/fileclient.spec.ts b/sdk/storage/storage-file-share/test/node/fileclient.spec.ts index 63d40784e0c0..440ba1c1c119 100644 --- a/sdk/storage/storage-file-share/test/node/fileclient.spec.ts +++ b/sdk/storage/storage-file-share/test/node/fileclient.spec.ts @@ -61,7 +61,7 @@ describe("FileClient Node.js only", () => { }, uriSanitizers, }, - ["record", "playback"] + ["record", "playback"], ); shareName = recorder.variable("share", getUniqueName("share")); shareClient = serviceClient.getShareClient(shareName); @@ -97,7 +97,7 @@ describe("FileClient Node.js only", () => { const downloadResponse = await fileClient.download(); const downloadedFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(downloadResponse.readableStreamBody!, downloadedFile); @@ -136,7 +136,7 @@ describe("FileClient Node.js only", () => { return duplexStream; }, 0, - body.length + body.length, ); const result = await fileClient.download(0); assert.deepStrictEqual(await bodyToString(result, body.length), body); @@ -237,7 +237,7 @@ describe("FileClient Node.js only", () => { filePath: `${dirName}/${fileName}`, permissions: FileSASPermissions.parse("r"), }, - credential + credential, ); const fileName2 = recorder.variable("file2", getUniqueName("file2")); @@ -272,7 +272,7 @@ describe("FileClient Node.js only", () => { filePath: `${dirName}/${fileName}`, permissions: FileSASPermissions.parse("r"), }, - credential + credential, ); const fileName2 = recorder.variable("file2", getUniqueName("file2")); @@ -286,12 +286,12 @@ describe("FileClient Node.js only", () => { 512, { fileLastWrittenMode: "Preserve", - } + }, ); assert.deepStrictEqual( createResult.fileLastWriteOn, uploadRangeResult.fileLastWriteTime, - "File last write time should be expected." + "File last write time should be expected.", ); await fileURL2.uploadRangeFromURL(`${fileClient.url}?${sas}`, 512, 512, 512, { @@ -308,11 +308,11 @@ describe("FileClient Node.js only", () => { it("uploadRangeFromURL - source bearer token", async function (this: Context) { const blobServiceClient = getBlobServiceClient(recorder); const containerClient = blobServiceClient.getContainerClient( - recorder.variable("container", getUniqueName("container")) + recorder.variable("container", getUniqueName("container")), ); await containerClient.create(); const blockBlob = containerClient.getBlockBlobClient( - recorder.variable("blockBlob", getUniqueName("blockBlob")) + recorder.variable("blockBlob", getUniqueName("blockBlob")), ); const blobContent = "a".repeat(512) + "b".repeat(512); diff --git a/sdk/storage/storage-file-share/test/node/fileserviceclient.spec.ts b/sdk/storage/storage-file-share/test/node/fileserviceclient.spec.ts index 0dc89852617e..1a4dfe259a3f 100644 --- a/sdk/storage/storage-file-share/test/node/fileserviceclient.spec.ts +++ b/sdk/storage/storage-file-share/test/node/fileserviceclient.spec.ts @@ -87,7 +87,7 @@ describe("FileServiceClient Node.js only", () => { retryOptions: { maxTries: 5, }, - } + }, ); configureStorageClient(recorder, newClient); diff --git a/sdk/storage/storage-file-share/test/node/highlevel.node.spec.ts b/sdk/storage/storage-file-share/test/node/highlevel.node.spec.ts index 28c2d461d9e6..de2750afa938 100644 --- a/sdk/storage/storage-file-share/test/node/highlevel.node.spec.ts +++ b/sdk/storage/storage-file-share/test/node/highlevel.node.spec.ts @@ -85,7 +85,7 @@ describe("Highlevel Node.js only", () => { const downloadResponse = await fileClient.download(0); const downloadedFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(downloadResponse.readableStreamBody!, downloadedFile); @@ -108,7 +108,7 @@ describe("Highlevel Node.js only", () => { const downloadResponse = await fileClient.download(0); const downloadedFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(downloadResponse.readableStreamBody!, downloadedFile); @@ -214,7 +214,7 @@ describe("Highlevel Node.js only", () => { const downloadFilePath = path.join( tempFolderPath, - recorder.variable("downloadFile", getUniqueName("downloadFile")) + recorder.variable("downloadFile", getUniqueName("downloadFile")), ); await readStreamToLocalFileWithLogs(downloadResponse.readableStreamBody!, downloadFilePath); @@ -330,7 +330,7 @@ describe("Highlevel Node.js only", () => { } assert.ok( error.message.includes("Unable to allocate a buffer of size:"), - "Error is not thrown when the count (size in bytes) is too large" + "Error is not thrown when the count (size in bytes) is too large", ); }); @@ -445,7 +445,7 @@ describe("Highlevel Node.js only", () => { const downloadedFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(downloadResponse.readableStreamBody!, downloadedFile); @@ -481,7 +481,7 @@ describe("Highlevel Node.js only", () => { const downloadedFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(downloadResponse.readableStreamBody!, downloadedFile); @@ -519,7 +519,7 @@ describe("Highlevel Node.js only", () => { const downloadedFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); await readStreamToLocalFileWithLogs(downloadResponse.readableStreamBody!, downloadedFile); @@ -541,7 +541,7 @@ describe("Highlevel Node.js only", () => { const downloadedFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); let retriableReadableStreamOptions: RetriableReadableStreamOptions; @@ -578,7 +578,7 @@ describe("Highlevel Node.js only", () => { const downloadedFile = path.join( tempFolderPath, - recorder.variable("downloadfile.", getUniqueName("downloadfile.")) + recorder.variable("downloadfile.", getUniqueName("downloadfile.")), ); let retriableReadableStreamOptions: RetriableReadableStreamOptions; @@ -614,7 +614,7 @@ describe("Highlevel Node.js only", () => { } const downloadedFilePath = recorder.variable( "downloadedtofile.", - getUniqueName("downloadedtofile.") + getUniqueName("downloadedtofile."), ); const rs = fs.createReadStream(tempFileSmall); await fileClient.uploadStream(rs, tempFileSmallLength, 4 * 1024 * 1024, 20); @@ -623,12 +623,12 @@ describe("Highlevel Node.js only", () => { assert.ok( response.contentLength === tempFileSmallLength, - "response.contentLength doesn't match tempFileSmallLength" + "response.contentLength doesn't match tempFileSmallLength", ); assert.equal( response.readableStreamBody, undefined, - "Expecting response.readableStreamBody to be undefined." + "Expecting response.readableStreamBody to be undefined.", ); const localFileContent = fs.readFileSync(tempFileSmall); diff --git a/sdk/storage/storage-file-share/test/node/sas.spec.ts b/sdk/storage/storage-file-share/test/node/sas.spec.ts index 70c64a78ac74..603624701c79 100644 --- a/sdk/storage/storage-file-share/test/node/sas.spec.ts +++ b/sdk/storage/storage-file-share/test/node/sas.spec.ts @@ -43,7 +43,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { }, uriSanitizers, }, - ["record", "playback"] + ["record", "playback"], ); serviceClient = getBSU(recorder); }); @@ -72,7 +72,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const sasURL = `${serviceClient.url}?${sas}`; @@ -95,13 +95,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { resourceTypes: AccountSASResourceTypes.parse("sco").toString(), services: AccountSASServices.parse("btqf").toString(), }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const sasURL = `${serviceClient.url}?${sas}`; const serviceClientWithSAS = new ShareServiceClient( sasURL, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, serviceClientWithSAS); @@ -128,7 +128,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { resourceTypes: AccountSASResourceTypes.parse("sco").toString(), services: AccountSASServices.parse("btq").toString(), }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const sasURL = `${serviceClient.url}?${sas}`; @@ -161,7 +161,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { services: AccountSASServices.parse("btqf").toString(), version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const sasURL = `${serviceClient.url}?${sas}`; @@ -201,7 +201,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2018-03-28", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasURL = `${shareClient.url}?${shareSAS}`; @@ -257,7 +257,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasURL = `${fileClient.url}?${fileSAS}`; @@ -325,7 +325,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { identifier: id, shareName, }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasURL = `${shareClient.url}?${shareSAS}`; @@ -389,7 +389,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { shareName, filePath: fileClient.path, }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasURL = `${fileClient.url}?${fileSAS}`; @@ -419,7 +419,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const sasURL1 = `${serviceClient.url}?${sas}`; @@ -432,7 +432,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { protocol: SASProtocol.HttpsAndHttp, startsOn: now, version: "2016-05-31", - } + }, ); assert.deepStrictEqual(sasURL, sasURL1); @@ -481,7 +481,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2018-03-28", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasURL1 = `${shareClient.url}?${shareSAS}`; @@ -555,7 +555,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasURL1 = `${fileClient.url}?${fileSAS}`; @@ -627,7 +627,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { permissions: FileSASPermissions.parse("w"), shareName: shareName, }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const result = await sasSourceFileClient.rename(destFileName + "?" + destSAS, { @@ -636,7 +636,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { assert.ok( result.destinationFileClient.name === destFileName, - "Destination name should be expected" + "Destination name should be expected", ); try { @@ -678,7 +678,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { permissions: FileSASPermissions.parse("w"), shareName: shareName, }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const result = await sasSourceDirClient.rename(destFileName + "?" + destSAS, { @@ -687,7 +687,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { assert.ok( result.destinationDirectoryClient.name === destFileName, - "Destination name should be expected" + "Destination name should be expected", ); assert.isFalse(await sourceDirClient.exists(), "Source directory should not exist anymore"); diff --git a/sdk/storage/storage-file-share/test/node/shareclient.spec.ts b/sdk/storage/storage-file-share/test/node/shareclient.spec.ts index 9bc78f5d0d76..c950eee0adc0 100644 --- a/sdk/storage/storage-file-share/test/node/shareclient.spec.ts +++ b/sdk/storage/storage-file-share/test/node/shareclient.spec.ts @@ -60,15 +60,15 @@ describe("ShareClient Node.js only", () => { assert.equal(getAccessPolicyResponse.signedIdentifiers[0].id, identifiers[0].id); assert.equal( getAccessPolicyResponse.signedIdentifiers[0].accessPolicy.expiresOn.getTime(), - identifiers[0].accessPolicy.expiresOn.getTime() + identifiers[0].accessPolicy.expiresOn.getTime(), ); assert.equal( getAccessPolicyResponse.signedIdentifiers[0].accessPolicy.startsOn.getTime(), - identifiers[0].accessPolicy.startsOn.getTime() + identifiers[0].accessPolicy.startsOn.getTime(), ); assert.equal( getAccessPolicyResponse.signedIdentifiers[0].accessPolicy.permissions, - identifiers[0].accessPolicy.permissions + identifiers[0].accessPolicy.permissions, ); }); diff --git a/sdk/storage/storage-file-share/test/node/utils.spec.ts b/sdk/storage/storage-file-share/test/node/utils.spec.ts index 65446228115c..01020e360840 100644 --- a/sdk/storage/storage-file-share/test/node/utils.spec.ts +++ b/sdk/storage/storage-file-share/test/node/utils.spec.ts @@ -16,24 +16,24 @@ describe("Utility Helpers Node.js only", () => { assert.equal( "AccountConnString", connectionStringParts.kind, - "extractConnectionStringParts().kind is different than expected." + "extractConnectionStringParts().kind is different than expected.", ); assert.equal( fileEndpoint, connectionStringParts.url, - "extractConnectionStringParts().url is different than expected." + "extractConnectionStringParts().url is different than expected.", ); assert.equal( accountName, connectionStringParts.accountName, - "extractConnectionStringParts().accountName is different than expected." + "extractConnectionStringParts().accountName is different than expected.", ); } it("extractConnectionStringParts throws error when passed an invalid protocol in the connection string", async () => { try { extractConnectionStringParts( - "DefaultEndpointsProtocol=a;AccountName=b;AccountKey=c;EndpointSuffix=d" + "DefaultEndpointsProtocol=a;AccountName=b;AccountKey=c;EndpointSuffix=d", ); assert.fail("Expecting an thrown error but didn't get one."); } catch (error: any) { @@ -45,7 +45,7 @@ describe("Utility Helpers Node.js only", () => { try { extractConnectionStringParts( // Typo in the attributes - "DefaultEndpointsProtocol=https;Name=b;AccountKey=c;EndpointSuffix=d" + "DefaultEndpointsProtocol=https;Name=b;AccountKey=c;EndpointSuffix=d", ); assert.fail("Expecting an thrown error but didn't get one."); @@ -53,7 +53,7 @@ describe("Utility Helpers Node.js only", () => { assert.equal( "Invalid AccountName in the provided Connection String", error.message, - "Connection string error message is different than expected" + "Connection string error message is different than expected", ); } }); @@ -61,14 +61,14 @@ describe("Utility Helpers Node.js only", () => { it("extractConnectionStringParts throws error with empty EndpointSuffix in the connection string", async () => { try { extractConnectionStringParts( - "DefaultEndpointsProtocol=https;AccountName=b;AccountKey=cdefg;EndpointSuffix=" + "DefaultEndpointsProtocol=https;AccountName=b;AccountKey=cdefg;EndpointSuffix=", ); assert.fail("Expecting an thrown error but didn't get one."); } catch (error: any) { assert.equal( "Invalid EndpointSuffix in the provided Connection String", error.message, - "Connection string error message is different than expected" + "Connection string error message is different than expected", ); } }); @@ -76,14 +76,14 @@ describe("Utility Helpers Node.js only", () => { it("extractConnectionStringParts throws error with empty AccountKey in the connection string", async () => { try { extractConnectionStringParts( - "DefaultEndpointsProtocol=https;AccountName=b;AccountKey=;EndpointSuffix=d" + "DefaultEndpointsProtocol=https;AccountName=b;AccountKey=;EndpointSuffix=d", ); assert.fail("Expecting an thrown error but didn't get one."); } catch (error: any) { assert.equal( "Invalid AccountKey in the provided Connection String", error.message, - "Connection string error message is different than expected" + "Connection string error message is different than expected", ); } }); @@ -91,14 +91,14 @@ describe("Utility Helpers Node.js only", () => { it("extractConnectionStringParts throws error with empty AccountName in the connection string", async () => { try { extractConnectionStringParts( - "DefaultEndpointsProtocol=https;AccountName=;AccountKey=c;EndpointSuffix=d" + "DefaultEndpointsProtocol=https;AccountName=;AccountKey=c;EndpointSuffix=d", ); assert.fail("Expecting an thrown error but didn't get one."); } catch (error: any) { assert.equal( "Invalid AccountName in the provided Connection String", error.message, - "Connection string error message is different than expected" + "Connection string error message is different than expected", ); } }); @@ -106,14 +106,14 @@ describe("Utility Helpers Node.js only", () => { it("extractConnectionStringParts throws error with empty DefaultEndpointsProtocol in the connection string", async () => { try { extractConnectionStringParts( - "DefaultEndpointsProtocol=;AccountName=b;AccountKey=c;EndpointSuffix=d" + "DefaultEndpointsProtocol=;AccountName=b;AccountKey=c;EndpointSuffix=d", ); assert.fail("Expecting an thrown error but didn't get one."); } catch (error: any) { assert.equal( "Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'", error.message, - "Connection string error message is different than expected" + "Connection string error message is different than expected", ); } }); @@ -126,7 +126,7 @@ describe("Utility Helpers Node.js only", () => { QueueEndpoint=myQueueEndpoint; TableEndpoint=myTableEndpoint; AccountName=${accountName}; - AccountKey=${accountKey}` + AccountKey=${accountKey}`, ); }); @@ -135,7 +135,7 @@ describe("Utility Helpers Node.js only", () => { `DefaultEndpointsProtocol=${protocol}; FileEndpoint=${fileEndpoint}; AccountName=${accountName}; - AccountKey=${accountKey}` + AccountKey=${accountKey}`, ); }); @@ -144,7 +144,7 @@ describe("Utility Helpers Node.js only", () => { `DefaultEndpointsProtocol=${protocol}; AccountName=${accountName}; AccountKey=${accountKey}; - EndpointSuffix=${endpointSuffix};` + EndpointSuffix=${endpointSuffix};`, ); }); }); diff --git a/sdk/storage/storage-file-share/test/shareclient.spec.ts b/sdk/storage/storage-file-share/test/shareclient.spec.ts index ccb5c7d8eaf2..a241622b0bf7 100644 --- a/sdk/storage/storage-file-share/test/shareclient.spec.ts +++ b/sdk/storage/storage-file-share/test/shareclient.spec.ts @@ -53,7 +53,7 @@ describe("ShareClient", () => { assert.ok(await shareClient.exists()); const shareClient2 = serviceClient.getShareClient( - recorder.variable(shareName, getUniqueName(shareName)) + recorder.variable(shareName, getUniqueName(shareName)), ); assert.ok(!(await shareClient2.exists())); }); @@ -74,7 +74,7 @@ describe("ShareClient", () => { it("create with all parameters configured", async () => { const shareClient2 = serviceClient.getShareClient( - recorder.variable(shareName, getUniqueName(shareName)) + recorder.variable(shareName, getUniqueName(shareName)), ); const metadata = { key: "value" }; await shareClient2.create({ metadata }); @@ -84,7 +84,7 @@ describe("ShareClient", () => { it("createIfNotExists", async () => { const shareClient2 = serviceClient.getShareClient( - recorder.variable(shareName, getUniqueName(shareName)) + recorder.variable(shareName, getUniqueName(shareName)), ); const res = await shareClient2.createIfNotExists(); assert.ok(res.succeeded); @@ -103,14 +103,14 @@ describe("ShareClient", () => { it("deleteIfExists", async () => { const shareClient2 = serviceClient.getShareClient( - recorder.variable(shareName, getUniqueName(shareName)) + recorder.variable(shareName, getUniqueName(shareName)), ); await shareClient2.create(); const res = await shareClient2.deleteIfExists(); assert.ok(res.succeeded); const shareClient3 = serviceClient.getShareClient( - recorder.variable(shareName + "3", getUniqueName(shareName + "3")) + recorder.variable(shareName + "3", getUniqueName(shareName + "3")), ); const res2 = await shareClient3.deleteIfExists(); assert.ok(!res2.succeeded); @@ -160,7 +160,7 @@ describe("ShareClient", () => { try { await directoryClient.getProperties(); assert.fail( - "Expecting an error in getting properties from a deleted block blob but didn't get one." + "Expecting an error in getting properties from a deleted block blob but didn't get one.", ); } catch (error: any) { assert.ok((error.statusCode as number) === 404); @@ -178,7 +178,7 @@ describe("ShareClient", () => { try { await fileClient.getProperties(); assert.fail( - "Expecting an error in getting properties from a deleted block blob but didn't get one." + "Expecting an error in getting properties from a deleted block blob but didn't get one.", ); } catch (error: any) { assert.ok((error.statusCode as number) === 404); @@ -227,7 +227,7 @@ describe("ShareClient", () => { assert.equal( "Expecting non-empty strings for name parameter", error.message, - "Error message is different than expected." + "Error message is different than expected.", ); } }); @@ -291,7 +291,7 @@ describe("ShareDirectoryClient - Verify Name Properties", () => { assert.equal( newClient.accountName, accountName, - "Account name is not the same as the one provided." + "Account name is not the same as the one provided.", ); assert.equal(newClient.name, shareName, "Share name is not the same as the one provided."); } @@ -306,7 +306,7 @@ describe("ShareDirectoryClient - Verify Name Properties", () => { it("verify IPv6 host address as Endpoint", async () => { verifyNameProperties( - `https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/${accountName}/${shareName}` + `https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/${accountName}/${shareName}`, ); }); @@ -362,7 +362,7 @@ describe("ShareClient - OAuth", () => { assert.ok( (err as any).statusCode === 409 && (err as any).code === "FileOAuthManagementApiRestrictedToSrp", - "Should get correct error mesage when creating a share with TokenCredentials" + "Should get correct error mesage when creating a share with TokenCredentials", ); } }); @@ -450,7 +450,7 @@ describe("ShareClient", () => { assert.ok(await shareClient.exists()); const shareClient2 = serviceClient.getShareClient( - recorder.variable(shareName, getUniqueName(shareName)) + recorder.variable(shareName, getUniqueName(shareName)), ); assert.ok(!(await shareClient2.exists())); }); @@ -471,7 +471,7 @@ describe("ShareClient", () => { it("create with all parameters configured", async () => { const shareClient2 = serviceClient.getShareClient( - recorder.variable(shareName, getUniqueName(shareName)) + recorder.variable(shareName, getUniqueName(shareName)), ); const metadata = { key: "value" }; await shareClient2.create({ metadata }); @@ -481,7 +481,7 @@ describe("ShareClient", () => { it("createIfNotExists", async () => { const shareClient2 = serviceClient.getShareClient( - recorder.variable(shareName, getUniqueName(shareName)) + recorder.variable(shareName, getUniqueName(shareName)), ); const res = await shareClient2.createIfNotExists(); assert.ok(res.succeeded); @@ -500,14 +500,14 @@ describe("ShareClient", () => { it("deleteIfExists", async () => { const shareClient2 = serviceClient.getShareClient( - recorder.variable(shareName, getUniqueName(shareName)) + recorder.variable(shareName, getUniqueName(shareName)), ); await shareClient2.create(); const res = await shareClient2.deleteIfExists(); assert.ok(res.succeeded); const shareClient3 = serviceClient.getShareClient( - recorder.variable(shareName + "3", getUniqueName(shareName + "3")) + recorder.variable(shareName + "3", getUniqueName(shareName + "3")), ); const res2 = await shareClient3.deleteIfExists(); assert.ok(!res2.succeeded); @@ -557,7 +557,7 @@ describe("ShareClient", () => { try { await directoryClient.getProperties(); assert.fail( - "Expecting an error in getting properties from a deleted block blob but didn't get one." + "Expecting an error in getting properties from a deleted block blob but didn't get one.", ); } catch (error: any) { assert.ok((error.statusCode as number) === 404); @@ -575,7 +575,7 @@ describe("ShareClient", () => { try { await fileClient.getProperties(); assert.fail( - "Expecting an error in getting properties from a deleted block blob but didn't get one." + "Expecting an error in getting properties from a deleted block blob but didn't get one.", ); } catch (error: any) { assert.ok((error.statusCode as number) === 404); @@ -624,7 +624,7 @@ describe("ShareClient", () => { assert.equal( "Expecting non-empty strings for name parameter", error.message, - "Error message is different than expected." + "Error message is different than expected.", ); } }); @@ -688,7 +688,7 @@ describe("ShareDirectoryClient - Verify Name Properties", () => { assert.equal( newClient.accountName, accountName, - "Account name is not the same as the one provided." + "Account name is not the same as the one provided.", ); assert.equal(newClient.name, shareName, "Share name is not the same as the one provided."); } @@ -703,7 +703,7 @@ describe("ShareDirectoryClient - Verify Name Properties", () => { it("verify IPv6 host address as Endpoint", async () => { verifyNameProperties( - `https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/${accountName}/${shareName}` + `https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/${accountName}/${shareName}`, ); }); diff --git a/sdk/storage/storage-file-share/test/specialnaming.spec.ts b/sdk/storage/storage-file-share/test/specialnaming.spec.ts index 548005cacc7a..13d54b5605b8 100644 --- a/sdk/storage/storage-file-share/test/specialnaming.spec.ts +++ b/sdk/storage/storage-file-share/test/specialnaming.spec.ts @@ -54,7 +54,7 @@ describe("Special Naming Tests", () => { const fileName: string = recorder.variable("file empty", getUniqueName("file empty")); const fileClient = new ShareFileClient( appendToURLPath(directoryClient.url, fileName), - (directoryClient as any).pipeline + (directoryClient as any).pipeline, ); await fileClient.create(10); @@ -69,7 +69,7 @@ describe("Special Naming Tests", () => { it("Should work with special container and file names uppercase", async () => { const fileName: string = recorder.variable( "Upper file empty another", - getUniqueName("Upper file empty another") + getUniqueName("Upper file empty another"), ); const fileClient = directoryClient.getFileClient(fileName); @@ -86,11 +86,11 @@ describe("Special Naming Tests", () => { it("Should work with special container and file names uppercase in URL string", async () => { const fileName: string = recorder.variable( "Upper file empty another", - getUniqueName("Upper file empty another") + getUniqueName("Upper file empty another"), ); const fileClient = new ShareFileClient( appendToURLPath(directoryClient.url, fileName), - (directoryClient as any).pipeline + (directoryClient as any).pipeline, ); await fileClient.create(10); @@ -106,7 +106,7 @@ describe("Special Naming Tests", () => { it("Should work with special file names Chinese characters", async () => { const fileName: string = recorder.variable( "Upper file empty another 汉字", - getUniqueName("Upper file empty another 汉字") + getUniqueName("Upper file empty another 汉字"), ); const fileClient = directoryClient.getFileClient(fileName); @@ -123,11 +123,11 @@ describe("Special Naming Tests", () => { it("Should work with special file names Chinese characters in URL string", async () => { const fileName: string = recorder.variable( "Upper file empty another 汉字", - getUniqueName("Upper file empty another 汉字") + getUniqueName("Upper file empty another 汉字"), ); const fileClient = new ShareFileClient( appendToURLPath(directoryClient.url, fileName), - (directoryClient as any).pipeline + (directoryClient as any).pipeline, ); await fileClient.create(10); @@ -169,7 +169,7 @@ describe("Special Naming Tests", () => { // Escape "%" when creating XXXClient object with URL strings // Escape "?" otherwise string after "?" will be treated as URL parameters appendToURLPath(directoryClient.url, fileName.replace(/%/g, "%25").replace(/\?/g, "%3F")), - (directoryClient as any).pipeline + (directoryClient as any).pipeline, ); await fileClient.create(10); @@ -219,9 +219,9 @@ describe("Special Naming Tests", () => { // Escape "?" otherwise string after "?" will be treated as URL parameters appendToURLPath( shareClient.url, - directoryNameSpecialChar.replace(/%/g, "%25").replace(/\?/g, "%3F") + directoryNameSpecialChar.replace(/%/g, "%25").replace(/\?/g, "%3F"), ), - (shareClient as any).pipeline + (shareClient as any).pipeline, ); await specialDirectoryClient.create(); @@ -285,7 +285,7 @@ describe("Special Naming Tests", () => { const fileName: string = recorder.variable("ру́сский язы́к", getUniqueName("ру́сский язы́к")); const fileClient = new ShareFileClient( appendToURLPath(directoryClient.url, fileName), - (directoryClient as any).pipeline + (directoryClient as any).pipeline, ); await fileClient.create(10); @@ -346,7 +346,7 @@ describe("Special Naming Tests", () => { const fileName: string = recorder.variable("عربيعربى", getUniqueName("عربيعربى")); const fileClient = new ShareFileClient( appendToURLPath(directoryClient.url, fileName), - (directoryClient as any).pipeline + (directoryClient as any).pipeline, ); await fileClient.create(10); @@ -367,7 +367,7 @@ describe("Special Naming Tests", () => { it("Should work with special file name Japanese URI encoded", async () => { const fileName: string = recorder.variable( "にっぽんごにほんご", - getUniqueName("にっぽんごにほんご") + getUniqueName("にっぽんごにほんご"), ); const blobNameEncoded: string = encodeURIComponent(fileName); const fileClient = directoryClient.getFileClient(blobNameEncoded); @@ -390,7 +390,7 @@ describe("Special Naming Tests", () => { it("Should work with special file name Japanese", async () => { const fileName: string = recorder.variable( "にっぽんごにほんご", - getUniqueName("にっぽんごにほんご") + getUniqueName("にっぽんごにほんご"), ); const fileClient = directoryClient.getFileClient(fileName); @@ -412,11 +412,11 @@ describe("Special Naming Tests", () => { it("Should work with special file name Japanese in URL string", async () => { const fileName: string = recorder.variable( "にっぽんごにほんご", - getUniqueName("にっぽんごにほんご") + getUniqueName("にっぽんごにほんご"), ); const fileClient = new ShareFileClient( appendToURLPath(directoryClient.url, fileName), - (directoryClient as any).pipeline + (directoryClient as any).pipeline, ); await fileClient.create(10); diff --git a/sdk/storage/storage-file-share/test/utils.spec.ts b/sdk/storage/storage-file-share/test/utils.spec.ts index 5358bf1c1693..b1b939171a64 100644 --- a/sdk/storage/storage-file-share/test/utils.spec.ts +++ b/sdk/storage/storage-file-share/test/utils.spec.ts @@ -23,17 +23,17 @@ describe("Utility Helpers", () => { assert.equal( "SASConnString", connectionStringParts.kind, - "extractConnectionStringParts().kind is different than expected." + "extractConnectionStringParts().kind is different than expected.", ); assert.equal( fileEndpoint, connectionStringParts.url, - "extractConnectionStringParts().url is different than expected." + "extractConnectionStringParts().url is different than expected.", ); assert.equal( accountName, connectionStringParts.accountName, - "extractConnectionStringParts().accountName is different than expected." + "extractConnectionStringParts().accountName is different than expected.", ); } @@ -54,20 +54,20 @@ describe("Utility Helpers", () => { const sanitized = sanitizeHeaders(headers); assert.ok( sanitized.get("x-ms-copy-source")!.indexOf("sasstring") === -1, - "Expecting SAS string to be redacted." + "Expecting SAS string to be redacted.", ); assert.ok( sanitized.get("x-ms-copy-source")!.indexOf("*****") !== -1, - "Expecting SAS string to be redacted." + "Expecting SAS string to be redacted.", ); assert.ok( sanitized.get("authorization")! === "*****", - "Expecting authorization header value to be redacted." + "Expecting authorization header value to be redacted.", ); assert.ok( sanitized.get("otherheader")!.indexOf("sasstring") !== -1, - "Other header should not be changed." + "Other header should not be changed.", ); }); @@ -75,7 +75,7 @@ describe("Utility Helpers", () => { verifySASConnectionString( `FileEndpoint=${fileEndpoint}; FileEndpoint=https://storagesample.file.core.windows.net; - SharedAccessSignature=${sharedAccessSignature}` + SharedAccessSignature=${sharedAccessSignature}`, ); }); @@ -83,7 +83,7 @@ describe("Utility Helpers", () => { verifySASConnectionString( `FileEndpoint=${fileEndpoint}; FileEndpoint=https://storagesample.file.core.windows.net; - SharedAccessSignature=${sharedAccessSignature}` + SharedAccessSignature=${sharedAccessSignature}`, ); }); @@ -94,36 +94,36 @@ describe("Utility Helpers", () => { assert.equal( "SASConnString", connectionStringParts.kind, - "extractConnectionStringParts().kind is different than expected." + "extractConnectionStringParts().kind is different than expected.", ); assert.equal( customDomainFileEndpoint, connectionStringParts.url, - "extractConnectionStringParts().url is different than expected." + "extractConnectionStringParts().url is different than expected.", ); assert.equal( "", connectionStringParts.accountName, - "extractConnectionStringParts().accountName is different than expected." + "extractConnectionStringParts().accountName is different than expected.", ); }); it("isIpEndpointStyle", async () => { assert.equal( isIpEndpointStyle(new URL("https://192.0.0.10:1900/accountName/containerName/blobName")), - true + true, ); assert.equal( isIpEndpointStyle( new URL( - "https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/accountName/containerName/blobName" - ) + "https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/accountName/containerName/blobName", + ), ), - true + true, ); assert.equal( isIpEndpointStyle(new URL("https://localhost:80/accountName/containerName/blobName")), - true + true, ); assert.equal(isIpEndpointStyle(new URL("https://192.0.0.10:1900/")), true); @@ -131,9 +131,9 @@ describe("Utility Helpers", () => { assert.equal( isIpEndpointStyle( - new URL("https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]/accountName/containerName") + new URL("https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]/accountName/containerName"), ), - true + true, ); }); }); diff --git a/sdk/storage/storage-file-share/test/utils/index.browser.ts b/sdk/storage/storage-file-share/test/utils/index.browser.ts index c16d3e69eb8a..736ca7886a8c 100644 --- a/sdk/storage/storage-file-share/test/utils/index.browser.ts +++ b/sdk/storage/storage-file-share/test/utils/index.browser.ts @@ -15,7 +15,7 @@ export function getGenericBSU( recorder: Recorder, accountType: string, accountNameSuffix: string = "", - config?: ShareClientConfig + config?: ShareClientConfig, ): ShareServiceClient { const accountNameEnvVar = `${accountType}ACCOUNT_NAME`; const accountSASEnvVar = `${accountType}ACCOUNT_SAS`; @@ -25,7 +25,7 @@ export function getGenericBSU( if (!accountName || !accountSAS) { throw new Error( - `${accountNameEnvVar} and/or ${accountSASEnvVar} environment variables not specified.` + `${accountNameEnvVar} and/or ${accountSASEnvVar} environment variables not specified.`, ); } @@ -56,7 +56,7 @@ export function getTokenBSU( recorder: Recorder, accountType: string = "", accountNameSuffix: string = "", - shareClientConfig?: ShareClientConfig + shareClientConfig?: ShareClientConfig, ): ShareServiceClient { const accountNameEnvVar = `${accountType}ACCOUNT_NAME`; @@ -97,7 +97,7 @@ export async function bodyToString( readableStreamBody?: NodeJS.ReadableStream; blobBody?: Promise; }, - _length?: number + _length?: number, ): Promise { const blob = await response.blobBody!; return blobToString(blob); @@ -184,7 +184,7 @@ export async function compareBodyWithUint8Array( readableStreamBody?: NodeJS.ReadableStream; blobBody?: Promise; }, - uint8arry: Uint8Array + uint8arry: Uint8Array, ): Promise { const blob = await response.blobBody!; return arraysEqual(uint8arry, new Uint8Array(await blob.arrayBuffer())); diff --git a/sdk/storage/storage-file-share/test/utils/index.ts b/sdk/storage/storage-file-share/test/utils/index.ts index 8154461f3007..3613f5585e16 100644 --- a/sdk/storage/storage-file-share/test/utils/index.ts +++ b/sdk/storage/storage-file-share/test/utils/index.ts @@ -31,7 +31,7 @@ export function getGenericBSU( recorder: Recorder, accountType: string, accountNameSuffix: string = "", - config?: ShareClientConfig + config?: ShareClientConfig, ): ShareServiceClient { const accountNameEnvVar = `${accountType}ACCOUNT_NAME`; const accountKeyEnvVar = `${accountType}ACCOUNT_KEY`; @@ -41,7 +41,7 @@ export function getGenericBSU( if (!accountName || !accountKey) { throw new Error( - `${accountNameEnvVar} and/or ${accountKeyEnvVar} environment variables not specified.` + `${accountNameEnvVar} and/or ${accountKeyEnvVar} environment variables not specified.`, ); } @@ -63,7 +63,7 @@ export function getTokenBSU( recorder: Recorder, accountType: string = "", accountNameSuffix: string = "", - shareClientConfig?: ShareClientConfig + shareClientConfig?: ShareClientConfig, ): ShareServiceClient { const accountNameEnvVar = `${accountType}ACCOUNT_NAME`; @@ -116,7 +116,7 @@ export async function bodyToString( readableStreamBody?: NodeJS.ReadableStream; blobBody?: Promise; }, - length?: number + length?: number, ): Promise { return new Promise((resolve, reject) => { response.readableStreamBody!.on("readable", () => { @@ -137,7 +137,7 @@ export async function bodyToString( export async function createRandomLocalFile( folder: string, blockNumber: number, - blockSize: number + blockSize: number, ): Promise { return new Promise((resolve, reject) => { const destFile = path.join(folder, getUniqueName("tempfile.")); @@ -192,20 +192,20 @@ export function getSASConnectionStringFromEnvironment(recorder: Recorder): strin startsOn: now, version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const fileEndpoint = extractConnectionStringParts(getConnectionStringFromEnvironment()).url; return `BlobEndpoint=${fileEndpoint.replace( ".file.", - ".blob." + ".blob.", )}/;QueueEndpoint=${fileEndpoint.replace( ".file.", - ".queue." + ".queue.", )}/;FileEndpoint=${fileEndpoint}/;TableEndpoint=${fileEndpoint.replace( ".file.", - ".table." + ".table.", )}/;SharedAccessSignature=${sas}`; } @@ -238,7 +238,7 @@ export async function compareBodyWithUint8Array( readableStreamBody?: NodeJS.ReadableStream; blobBody?: Promise; }, - uint8arry: Uint8Array + uint8arry: Uint8Array, ): Promise { const buf = await streamToBuffer(response.readableStreamBody!); return buf.equals(Buffer.from(uint8arry.buffer, uint8arry.byteOffset, uint8arry.byteLength)); diff --git a/sdk/storage/storage-file-share/test/utils/testutils.common.ts b/sdk/storage/storage-file-share/test/utils/testutils.common.ts index 246b29dd5e2a..5230884628dd 100644 --- a/sdk/storage/storage-file-share/test/utils/testutils.common.ts +++ b/sdk/storage/storage-file-share/test/utils/testutils.common.ts @@ -114,7 +114,7 @@ export class SimpleTokenCredential implements TokenCredential { */ async getToken( _scopes: string | string[], - _options?: GetTokenOptions + _options?: GetTokenOptions, ): Promise { return { token: this.token, diff --git a/sdk/storage/storage-file-share/test/utils/testutils.node.ts b/sdk/storage/storage-file-share/test/utils/testutils.node.ts index c91fd7afb195..215faef7bec7 100644 --- a/sdk/storage/storage-file-share/test/utils/testutils.node.ts +++ b/sdk/storage/storage-file-share/test/utils/testutils.node.ts @@ -15,7 +15,7 @@ import * as fs from "fs"; */ export async function readStreamToLocalFileWithLogs( rs: NodeJS.ReadableStream, - file: string + file: string, ): Promise { return new Promise((resolve, reject) => { const ws = fs.createWriteStream(file); diff --git a/sdk/storage/storage-internal-avro/package.json b/sdk/storage/storage-internal-avro/package.json index acd8ee7041ce..342ad201790b 100644 --- a/sdk/storage/storage-internal-avro/package.json +++ b/sdk/storage/storage-internal-avro/package.json @@ -43,10 +43,10 @@ "build:samples": "echo Skipped.", "build:test": "npm run build:es6 && dev-tool run bundle", "build": "npm run clean && npm run build:es6 && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types temp statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "karma start --single-run", "integration-test:node": "dev-tool run test:node-js-input --no-test-proxy=true -- -t 300000 \"dist-esm/test/*.spec.js\" \"dist-esm/test/node/*.spec.js\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -91,7 +91,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", diff --git a/sdk/storage/storage-internal-avro/src/AvroParser.ts b/sdk/storage/storage-internal-avro/src/AvroParser.ts index 2483a6e0ceac..03aebccd2e5b 100644 --- a/sdk/storage/storage-internal-avro/src/AvroParser.ts +++ b/sdk/storage/storage-internal-avro/src/AvroParser.ts @@ -31,7 +31,7 @@ export class AvroParser { public static async readFixedBytes( stream: AvroReadable, length: number, - options: AvroParserReadOptions = {} + options: AvroParserReadOptions = {}, ): Promise { const bytes = await stream.read(length, { abortSignal: options.abortSignal }); if (bytes.length !== length) { @@ -48,7 +48,7 @@ export class AvroParser { */ private static async readByte( stream: AvroReadable, - options: AvroParserReadOptions = {} + options: AvroParserReadOptions = {}, ): Promise { const buf = await AvroParser.readFixedBytes(stream, 1, options); return buf[0]; @@ -59,7 +59,7 @@ export class AvroParser { // zig-zag: https://developers.google.com/protocol-buffers/docs/encoding?csw=1#types private static async readZigZagLong( stream: AvroReadable, - options: AvroParserReadOptions = {} + options: AvroParserReadOptions = {}, ): Promise { let zigZagEncoded = 0; let significanceInBit = 0; @@ -95,14 +95,14 @@ export class AvroParser { public static async readLong( stream: AvroReadable, - options: AvroParserReadOptions = {} + options: AvroParserReadOptions = {}, ): Promise { return AvroParser.readZigZagLong(stream, options); } public static async readInt( stream: AvroReadable, - options: AvroParserReadOptions = {} + options: AvroParserReadOptions = {}, ): Promise { return AvroParser.readZigZagLong(stream, options); } @@ -113,7 +113,7 @@ export class AvroParser { public static async readBoolean( stream: AvroReadable, - options: AvroParserReadOptions = {} + options: AvroParserReadOptions = {}, ): Promise { const b = await AvroParser.readByte(stream, options); if (b === 1) { @@ -127,7 +127,7 @@ export class AvroParser { public static async readFloat( stream: AvroReadable, - options: AvroParserReadOptions = {} + options: AvroParserReadOptions = {}, ): Promise { const u8arr = await AvroParser.readFixedBytes(stream, 4, options); const view = new DataView(u8arr.buffer, u8arr.byteOffset, u8arr.byteLength); @@ -136,7 +136,7 @@ export class AvroParser { public static async readDouble( stream: AvroReadable, - options: AvroParserReadOptions = {} + options: AvroParserReadOptions = {}, ): Promise { const u8arr = await AvroParser.readFixedBytes(stream, 8, options); const view = new DataView(u8arr.buffer, u8arr.byteOffset, u8arr.byteLength); @@ -145,7 +145,7 @@ export class AvroParser { public static async readBytes( stream: AvroReadable, - options: AvroParserReadOptions = {} + options: AvroParserReadOptions = {}, ): Promise { const size = await AvroParser.readLong(stream, options); if (size < 0) { @@ -157,7 +157,7 @@ export class AvroParser { public static async readString( stream: AvroReadable, - options: AvroParserReadOptions = {} + options: AvroParserReadOptions = {}, ): Promise { const u8arr = await AvroParser.readBytes(stream, options); const utf8decoder = new TextDecoder(); @@ -167,7 +167,7 @@ export class AvroParser { private static async readMapPair( stream: AvroReadable, readItemMethod: (s: AvroReadable, options?: AvroParserReadOptions) => Promise, - options: AvroParserReadOptions = {} + options: AvroParserReadOptions = {}, ): Promise> { const key = await AvroParser.readString(stream, options); // FUTURE: this won't work with readFixed (currently not supported) which needs a length as the parameter. @@ -178,11 +178,11 @@ export class AvroParser { public static async readMap( stream: AvroReadable, readItemMethod: (s: AvroReadable, options?: AvroParserReadOptions) => Promise, - options: AvroParserReadOptions = {} + options: AvroParserReadOptions = {}, ): Promise> { const readPairMethod = ( s: AvroReadable, - opts: AvroParserReadOptions = {} + opts: AvroParserReadOptions = {}, ): Promise> => { return AvroParser.readMapPair(s, readItemMethod, opts); }; @@ -199,7 +199,7 @@ export class AvroParser { private static async readArray( stream: AvroReadable, readItemMethod: (s: AvroReadable, options?: AvroParserReadOptions) => Promise, - options: AvroParserReadOptions = {} + options: AvroParserReadOptions = {}, ): Promise { const items: T[] = []; for ( @@ -263,7 +263,7 @@ export abstract class AvroType { */ public abstract read( stream: AvroReadable, - options?: AvroParserReadOptions + options?: AvroParserReadOptions, ): Promise; // eslint-disable-line @typescript-eslint/ban-types /** @@ -403,7 +403,7 @@ class AvroUnionType extends AvroType { public async read( stream: AvroReadable, - options: AvroParserReadOptions = {} + options: AvroParserReadOptions = {}, ): Promise { // eslint-disable-line @typescript-eslint/ban-types const typeIndex = await AvroParser.readInt(stream, options); @@ -422,7 +422,7 @@ class AvroMapType extends AvroType { public read(stream: AvroReadable, options: AvroParserReadOptions = {}): Promise { const readItemMethod = ( s: AvroReadable, - opts?: AvroParserReadOptions + opts?: AvroParserReadOptions, ): Promise => { return this._itemType.read(s, opts); }; diff --git a/sdk/storage/storage-internal-avro/src/AvroReader.ts b/sdk/storage/storage-internal-avro/src/AvroReader.ts index 22f867f7828a..a0cf90a2a6aa 100644 --- a/sdk/storage/storage-internal-avro/src/AvroReader.ts +++ b/sdk/storage/storage-internal-avro/src/AvroReader.ts @@ -63,14 +63,14 @@ export class AvroReader { dataStream: AvroReadable, headerStream: AvroReadable, currentBlockOffset: number, - indexWithinCurrentBlock: number + indexWithinCurrentBlock: number, ); constructor( dataStream: AvroReadable, headerStream?: AvroReadable, currentBlockOffset?: number, - indexWithinCurrentBlock?: number + indexWithinCurrentBlock?: number, ) { this._dataStream = dataStream; this._headerStream = headerStream || dataStream; @@ -133,7 +133,7 @@ export class AvroReader { } public async *parseObjects( - options: AvroParseOptions = {} + options: AvroParseOptions = {}, ): AsyncIterableIterator | null> { if (!this._initialized) { await this.initialize(options); diff --git a/sdk/storage/storage-internal-avro/test/node/avroreader.spec.ts b/sdk/storage/storage-internal-avro/test/node/avroreader.spec.ts index a0848fe18dd3..a3a28b0e3d55 100644 --- a/sdk/storage/storage-internal-avro/test/node/avroreader.spec.ts +++ b/sdk/storage/storage-internal-avro/test/node/avroreader.spec.ts @@ -24,10 +24,10 @@ describe("AvroReader", () => { new TestCase("test_null_0.avro", (o) => assert.strictEqual(null, o)), // null new TestCase("test_null_1.avro", (o) => assert.strictEqual(true, o as any)), // boolean new TestCase("test_null_2.avro", (o) => - assert.strictEqual("adsfasdf09809dsf-=adsf", o as any) + assert.strictEqual("adsfasdf09809dsf-=adsf", o as any), ), // string new TestCase("test_null_3.avro", (o) => - assert.ok(arraysEqual(new TextEncoder().encode("12345abcd"), o as Uint8Array)) + assert.ok(arraysEqual(new TextEncoder().encode("12345abcd"), o as Uint8Array)), ), // byte[] new TestCase("test_null_4.avro", (o) => assert.strictEqual(1234, o as any)), // int new TestCase("test_null_5.avro", (o) => assert.strictEqual(1234, o as any)), // long diff --git a/sdk/storage/storage-queue/package.json b/sdk/storage/storage-queue/package.json index e83a23ed8cb9..cb8cf31d5c70 100644 --- a/sdk/storage/storage-queue/package.json +++ b/sdk/storage/storage-queue/package.json @@ -27,12 +27,12 @@ "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", "build:samples": "echo Obsolete.", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types temp statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml", "clean:samples": "rimraf samples/v12/javascript/node_modules samples/v12/typescript/node_modules samples/v12/typescript/dist samples/v12/typescript/package-lock.json samples/v12/javascript/package-lock.json", "extract-api": "tsc -p . && api-extractor run --local", "execute:samples": "dev-tool samples run samples-dev", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/storage-queue/test/**/*.spec.js'", @@ -150,7 +150,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", diff --git a/sdk/storage/storage-queue/samples-dev/anonymousAuth.ts b/sdk/storage/storage-queue/samples-dev/anonymousAuth.ts index 9d858fadd257..2acb792583d8 100644 --- a/sdk/storage/storage-queue/samples-dev/anonymousAuth.ts +++ b/sdk/storage/storage-queue/samples-dev/anonymousAuth.ts @@ -23,7 +23,7 @@ export async function main() { const queueServiceClient = new QueueServiceClient( // When using AnonymousCredential, following url should include a valid SAS or support public access `https://${account}.queue.core.windows.net${accountSas}`, - anonymousCredential + anonymousCredential, ); // Create a new queue @@ -31,13 +31,13 @@ export async function main() { const queueClient = queueServiceClient.getQueueClient(queueName); const createQueueResponse = await queueClient.create(); console.log( - `Created queue ${queueClient.name} successfully, service assigned request ID: ${createQueueResponse.requestId}` + `Created queue ${queueClient.name} successfully, service assigned request ID: ${createQueueResponse.requestId}`, ); // Delete the queue. const deleteQueueResponse = await queueClient.delete(); console.log( - `Deleted queue ${queueClient.name} successfully, service assigned request ID: ${deleteQueueResponse.requestId}` + `Deleted queue ${queueClient.name} successfully, service assigned request ID: ${deleteQueueResponse.requestId}`, ); } diff --git a/sdk/storage/storage-queue/samples-dev/azureAdAuth.ts b/sdk/storage/storage-queue/samples-dev/azureAdAuth.ts index be75564ddb71..a7990dbd858f 100644 --- a/sdk/storage/storage-queue/samples-dev/azureAdAuth.ts +++ b/sdk/storage/storage-queue/samples-dev/azureAdAuth.ts @@ -52,7 +52,7 @@ export async function main() { !process.env.AZURE_CLIENT_SECRET ) { console.warn( - "Azure AD authentication information not provided, but it is required to run this sample. Exiting." + "Azure AD authentication information not provided, but it is required to run this sample. Exiting.", ); return; } @@ -73,7 +73,7 @@ export async function main() { const queueServiceClient = new QueueServiceClient( `https://${account}.queue.core.windows.net`, - defaultAzureCredential + defaultAzureCredential, ); console.log("Queues:"); diff --git a/sdk/storage/storage-queue/samples-dev/connectionStringAuth.ts b/sdk/storage/storage-queue/samples-dev/connectionStringAuth.ts index c5f1b1e10a4c..5d8c01b61670 100644 --- a/sdk/storage/storage-queue/samples-dev/connectionStringAuth.ts +++ b/sdk/storage/storage-queue/samples-dev/connectionStringAuth.ts @@ -25,13 +25,13 @@ export async function main() { const queueClient = queueServiceClient.getQueueClient(queueName); const createQueueResponse = await queueClient.create(); console.log( - `Created queue ${queueClient.name} successfully, service assigned request ID: ${createQueueResponse.requestId}` + `Created queue ${queueClient.name} successfully, service assigned request ID: ${createQueueResponse.requestId}`, ); // Delete the queue. const deleteQueueResponse = await queueClient.delete(); console.log( - `Deleted queue ${queueClient.name} successfully, service assigned request ID: ${deleteQueueResponse.requestId}` + `Deleted queue ${queueClient.name} successfully, service assigned request ID: ${deleteQueueResponse.requestId}`, ); } diff --git a/sdk/storage/storage-queue/samples-dev/customPipeline.ts b/sdk/storage/storage-queue/samples-dev/customPipeline.ts index 707f0652367a..1e97edc9067c 100644 --- a/sdk/storage/storage-queue/samples-dev/customPipeline.ts +++ b/sdk/storage/storage-queue/samples-dev/customPipeline.ts @@ -39,7 +39,7 @@ export async function main() { const queueServiceClient = new QueueServiceClient( // When using AnonymousCredential, following url should include a valid SAS or support public access `https://${account}.queue.core.windows.net`, - pipeline + pipeline, ); // Create a new queue @@ -47,13 +47,13 @@ export async function main() { const queueClient = queueServiceClient.getQueueClient(queueName); const createQueueResponse = await queueClient.create(); console.log( - `Created queue ${queueClient.name} successfully, service assigned request ID: ${createQueueResponse.requestId}` + `Created queue ${queueClient.name} successfully, service assigned request ID: ${createQueueResponse.requestId}`, ); // Delete the queue. const deleteQueueResponse = await queueClient.delete(); console.log( - `Deleted queue ${queueClient.name} successfully, service assigned request ID: ${deleteQueueResponse.requestId}` + `Deleted queue ${queueClient.name} successfully, service assigned request ID: ${deleteQueueResponse.requestId}`, ); } diff --git a/sdk/storage/storage-queue/samples-dev/listQueues.ts b/sdk/storage/storage-queue/samples-dev/listQueues.ts index fe1241ab79ff..c34121a5ec87 100644 --- a/sdk/storage/storage-queue/samples-dev/listQueues.ts +++ b/sdk/storage/storage-queue/samples-dev/listQueues.ts @@ -23,7 +23,7 @@ export async function main() { const queueServiceClient = new QueueServiceClient( `https://${account}.queue.core.windows.net`, - sharedKeyCredential + sharedKeyCredential, ); console.log("Queues:"); diff --git a/sdk/storage/storage-queue/samples-dev/proxyAuth.ts b/sdk/storage/storage-queue/samples-dev/proxyAuth.ts index 2da2e380608a..d0818de4d320 100644 --- a/sdk/storage/storage-queue/samples-dev/proxyAuth.ts +++ b/sdk/storage/storage-queue/samples-dev/proxyAuth.ts @@ -42,7 +42,7 @@ export async function main() { password: "" } */ - } + }, ); // Create a new queue @@ -50,13 +50,13 @@ export async function main() { const queueClient = queueServiceClient.getQueueClient(queueName); const createQueueResponse = await queueClient.create(); console.log( - `Create queue ${queueName} successfully, service assigned request Id: ${createQueueResponse.requestId}` + `Create queue ${queueName} successfully, service assigned request Id: ${createQueueResponse.requestId}`, ); // Delete the queue. const deleteQueueResponse = await queueClient.delete(); console.log( - `Delete queue successfully, service assigned request Id: ${deleteQueueResponse.requestId}` + `Delete queue successfully, service assigned request Id: ${deleteQueueResponse.requestId}`, ); } diff --git a/sdk/storage/storage-queue/samples-dev/queueClient.ts b/sdk/storage/storage-queue/samples-dev/queueClient.ts index 3950af971b7c..e5ade9328373 100644 --- a/sdk/storage/storage-queue/samples-dev/queueClient.ts +++ b/sdk/storage/storage-queue/samples-dev/queueClient.ts @@ -46,7 +46,7 @@ export async function main() { const queueServiceClient = new QueueServiceClient( // When using AnonymousCredential, following url should include a valid SAS or support public access `https://${account}.queue.core.windows.net`, - sharedKeyCredential + sharedKeyCredential, ); console.log(`Queues`); @@ -59,7 +59,7 @@ export async function main() { const queueClient = queueServiceClient.getQueueClient(queueName); const createQueueResponse = await queueClient.create(); console.log( - `Created queue ${queueClient.name} successfully, service assigned request ID: ${createQueueResponse.requestId}` + `Created queue ${queueClient.name} successfully, service assigned request ID: ${createQueueResponse.requestId}`, ); // Send three messages into the queue using the sendMessage method. @@ -67,7 +67,7 @@ export async function main() { for (let i = 0; i < messages.length; i++) { const enqueueQueueResponse = await queueClient.sendMessage(messages[i]); console.log( - `Sent message successfully, service assigned message ID: ${enqueueQueueResponse.messageId}, service assigned request ID: ${enqueueQueueResponse.requestId}` + `Sent message successfully, service assigned message ID: ${enqueueQueueResponse.messageId}, service assigned request ID: ${enqueueQueueResponse.requestId}`, ); } @@ -85,10 +85,10 @@ export async function main() { console.log(`Processing & deleting message with content: ${dequeueMessageItem.messageText}`); const deleteMessageResponse = await queueClient.deleteMessage( dequeueMessageItem.messageId, - dequeueMessageItem.popReceipt + dequeueMessageItem.popReceipt, ); console.log( - `Deleted message successfully, service assigned request ID: ${deleteMessageResponse.requestId}` + `Deleted message successfully, service assigned request ID: ${deleteMessageResponse.requestId}`, ); } @@ -100,10 +100,10 @@ export async function main() { console.log(`Processing & deleting message with content: ${dequeueMessageItem.messageText}`); const deleteMessageResponse = await queueClient.deleteMessage( dequeueMessageItem.messageId, - dequeueMessageItem.popReceipt + dequeueMessageItem.popReceipt, ); console.log( - `Deleted message successfully, service assigned request ID: ${deleteMessageResponse.requestId}` + `Deleted message successfully, service assigned request ID: ${deleteMessageResponse.requestId}`, ); } } @@ -111,7 +111,7 @@ export async function main() { // Delete the queue. const deleteQueueResponse = await queueClient.delete(); console.log( - `Deleted queue ${queueClient.name} successfully, service assigned request ID: ${deleteQueueResponse.requestId}` + `Deleted queue ${queueClient.name} successfully, service assigned request ID: ${deleteQueueResponse.requestId}`, ); } diff --git a/sdk/storage/storage-queue/samples-dev/sharedKeyAuth.ts b/sdk/storage/storage-queue/samples-dev/sharedKeyAuth.ts index b21868cb152f..df214405d6e6 100644 --- a/sdk/storage/storage-queue/samples-dev/sharedKeyAuth.ts +++ b/sdk/storage/storage-queue/samples-dev/sharedKeyAuth.ts @@ -23,7 +23,7 @@ export async function main() { const queueServiceClient = new QueueServiceClient( `https://${account}.queue.core.windows.net`, - sharedKeyCredential + sharedKeyCredential, ); // Create a new queue @@ -31,13 +31,13 @@ export async function main() { const queueClient = queueServiceClient.getQueueClient(queueName); const createQueueResponse = await queueClient.create(); console.log( - `Created queue ${queueClient.name} successfully, service assigned request Id: ${createQueueResponse.requestId}` + `Created queue ${queueClient.name} successfully, service assigned request Id: ${createQueueResponse.requestId}`, ); // Delete the queue. const deleteQueueResponse = await queueClient.delete(); console.log( - `Deleted queue ${queueClient.name} successfully, service assigned request Id: ${deleteQueueResponse.requestId}` + `Deleted queue ${queueClient.name} successfully, service assigned request Id: ${deleteQueueResponse.requestId}`, ); } diff --git a/sdk/storage/storage-queue/src/AccountSASSignatureValues.ts b/sdk/storage/storage-queue/src/AccountSASSignatureValues.ts index e80a2220ea33..ad45cea2bfb7 100644 --- a/sdk/storage/storage-queue/src/AccountSASSignatureValues.ts +++ b/sdk/storage/storage-queue/src/AccountSASSignatureValues.ts @@ -83,18 +83,18 @@ export interface AccountSASSignatureValues { */ export function generateAccountSASQueryParameters( accountSASSignatureValues: AccountSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential + sharedKeyCredential: StorageSharedKeyCredential, ): SASQueryParameters { const version = accountSASSignatureValues.version ? accountSASSignatureValues.version : SERVICE_VERSION; const parsedPermissions = AccountSASPermissions.parse( - accountSASSignatureValues.permissions.toString() + accountSASSignatureValues.permissions.toString(), ).toString(); const parsedServices = AccountSASServices.parse(accountSASSignatureValues.services).toString(); const parsedResourceTypes = AccountSASResourceTypes.parse( - accountSASSignatureValues.resourceTypes + accountSASSignatureValues.resourceTypes, ).toString(); let stringToSign: string; @@ -143,6 +143,6 @@ export function generateAccountSASQueryParameters( accountSASSignatureValues.protocol, accountSASSignatureValues.startsOn, accountSASSignatureValues.expiresOn, - accountSASSignatureValues.ipRange + accountSASSignatureValues.ipRange, ); } diff --git a/sdk/storage/storage-queue/src/QueueClient.ts b/sdk/storage/storage-queue/src/QueueClient.ts index 1130232aa38e..49a75f07836c 100644 --- a/sdk/storage/storage-queue/src/QueueClient.ts +++ b/sdk/storage/storage-queue/src/QueueClient.ts @@ -450,7 +450,7 @@ export class QueueClient extends StorageClient { credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ); /** * Creates an instance of QueueClient. @@ -473,7 +473,7 @@ export class QueueClient extends StorageClient { | string, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ) { options = options || {}; let pipeline: Pipeline; @@ -509,7 +509,7 @@ export class QueueClient extends StorageClient { const queueName = credentialOrPipelineOrQueueName; const sharedKeyCredential = new StorageSharedKeyCredential( extractedCreds.accountName, - extractedCreds.accountKey + extractedCreds.accountKey, ); url = appendToURLPath(extractedCreds.url, queueName); @@ -527,7 +527,7 @@ export class QueueClient extends StorageClient { pipeline = newPipeline(new AnonymousCredential(), options); } else { throw new Error( - "Connection string must be either an Account connection string or a SAS connection string" + "Connection string must be either an Account connection string or a SAS connection string", ); } } else { @@ -574,7 +574,7 @@ export class QueueClient extends StorageClient { public async create(options: QueueCreateOptions = {}): Promise { return tracingClient.withSpan("QueueClient-create", options, async (updatedOptions) => { return assertResponse( - await this.queueContext.create(updatedOptions) + await this.queueContext.create(updatedOptions), ); }); } @@ -587,7 +587,7 @@ export class QueueClient extends StorageClient { * @param options - */ public async createIfNotExists( - options: QueueCreateOptions = {} + options: QueueCreateOptions = {}, ): Promise { return tracingClient.withSpan( "QueueClient-createIfNotExists", @@ -620,7 +620,7 @@ export class QueueClient extends StorageClient { throw e; } - } + }, ); } @@ -631,7 +631,7 @@ export class QueueClient extends StorageClient { * @param options - */ public async deleteIfExists( - options: QueueDeleteOptions = {} + options: QueueDeleteOptions = {}, ): Promise { return tracingClient.withSpan("QueueClient-deleteIfExists", options, async (updatedOptions) => { try { @@ -675,7 +675,7 @@ export class QueueClient extends StorageClient { await this.queueContext.delete({ abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); }); } @@ -717,11 +717,11 @@ export class QueueClient extends StorageClient { * @returns Response data for the Queue get properties operation. */ public async getProperties( - options: QueueGetPropertiesOptions = {} + options: QueueGetPropertiesOptions = {}, ): Promise { return tracingClient.withSpan("QueueClient-getProperties", options, async (updatedOptions) => { return assertResponse( - await this.queueContext.getProperties(updatedOptions) + await this.queueContext.getProperties(updatedOptions), ); }); } @@ -739,14 +739,14 @@ export class QueueClient extends StorageClient { */ public async setMetadata( metadata?: Metadata, - options: QueueSetMetadataOptions = {} + options: QueueSetMetadataOptions = {}, ): Promise { return tracingClient.withSpan("QueueClient-setMetadata", options, async (updatedOptions) => { return assertResponse( await this.queueContext.setMetadata({ ...updatedOptions, metadata, - }) + }), ); }); } @@ -763,7 +763,7 @@ export class QueueClient extends StorageClient { * @returns Response data for the Queue get access policy operation. */ public async getAccessPolicy( - options: QueueGetAccessPolicyOptions = {} + options: QueueGetAccessPolicyOptions = {}, ): Promise { return tracingClient.withSpan( "QueueClient-getAccessPolicy", @@ -777,7 +777,7 @@ export class QueueClient extends StorageClient { await this.queueContext.getAccessPolicy({ abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, - }) + }), ); const res: QueueGetAccessPolicyResponse = { @@ -813,7 +813,7 @@ export class QueueClient extends StorageClient { } return res; - } + }, ); } @@ -827,7 +827,7 @@ export class QueueClient extends StorageClient { */ public async setAccessPolicy( queueAcl?: SignedIdentifier[], - options: QueueSetAccessPolicyOptions = {} + options: QueueSetAccessPolicyOptions = {}, ): Promise { return tracingClient.withSpan( "QueueClient-setAccessPolicy", @@ -853,9 +853,9 @@ export class QueueClient extends StorageClient { await this.queueContext.setAccessPolicy({ ...updatedOptions, queueAcl: acl, - }) + }), ); - } + }, ); } @@ -867,11 +867,11 @@ export class QueueClient extends StorageClient { * @returns Response data for the clear messages operation. */ public async clearMessages( - options: QueueClearMessagesOptions = {} + options: QueueClearMessagesOptions = {}, ): Promise { return tracingClient.withSpan("QueueClient-clearMessages", options, async (updatedOptions) => { return assertResponse( - await this.messagesContext.clear(updatedOptions) + await this.messagesContext.clear(updatedOptions), ); }); } @@ -899,7 +899,7 @@ export class QueueClient extends StorageClient { */ public async sendMessage( messageText: string, - options: QueueSendMessageOptions = {} + options: QueueSendMessageOptions = {}, ): Promise { return tracingClient.withSpan("QueueClient-sendMessage", options, async (updatedOptions) => { const response = assertResponse< @@ -911,8 +911,8 @@ export class QueueClient extends StorageClient { { messageText: messageText, }, - updatedOptions - ) + updatedOptions, + ), ); const item = response[0]; return { @@ -957,7 +957,7 @@ export class QueueClient extends StorageClient { * ``` */ public async receiveMessages( - options: QueueReceiveMessageOptions = {} + options: QueueReceiveMessageOptions = {}, ): Promise { return tracingClient.withSpan( "QueueClient-receiveMessages", @@ -984,7 +984,7 @@ export class QueueClient extends StorageClient { } return res; - } + }, ); } @@ -1003,7 +1003,7 @@ export class QueueClient extends StorageClient { * ``` */ public async peekMessages( - options: QueuePeekMessagesOptions = {} + options: QueuePeekMessagesOptions = {}, ): Promise { return tracingClient.withSpan("QueueClient-peekMessages", options, async (updatedOptions) => { const response = assertResponse< @@ -1042,11 +1042,11 @@ export class QueueClient extends StorageClient { public async deleteMessage( messageId: string, popReceipt: string, - options: QueueDeleteMessageOptions = {} + options: QueueDeleteMessageOptions = {}, ): Promise { return tracingClient.withSpan("QueueClient-deleteMessage", options, async (updatedOptions) => { return assertResponse( - await this.getMessageIdContext(messageId).delete(popReceipt, updatedOptions) + await this.getMessageIdContext(messageId).delete(popReceipt, updatedOptions), ); }); } @@ -1073,7 +1073,7 @@ export class QueueClient extends StorageClient { popReceipt: string, message?: string, visibilityTimeout?: number, - options: QueueUpdateMessageOptions = {} + options: QueueUpdateMessageOptions = {}, ): Promise { return tracingClient.withSpan("QueueClient-updateMessage", options, async (updatedOptions) => { let queueMessage = undefined; @@ -1085,7 +1085,7 @@ export class QueueClient extends StorageClient { abortSignal: options.abortSignal, tracingOptions: updatedOptions.tracingOptions, queueMessage, - }) + }), ); }); } @@ -1140,7 +1140,7 @@ export class QueueClient extends StorageClient { public generateSasUrl(options: QueueGenerateSasUrlOptions): string { if (!(this.credential instanceof StorageSharedKeyCredential)) { throw RangeError( - "Can only generate the SAS when the client is initialized with a shared key credential" + "Can only generate the SAS when the client is initialized with a shared key credential", ); } @@ -1149,7 +1149,7 @@ export class QueueClient extends StorageClient { queueName: this.name, ...options, }, - this.credential + this.credential, ).toString(); return appendToURLQuery(this.url, sas); diff --git a/sdk/storage/storage-queue/src/QueueSASSignatureValues.ts b/sdk/storage/storage-queue/src/QueueSASSignatureValues.ts index bf4df60bb121..f23eebd8ff00 100644 --- a/sdk/storage/storage-queue/src/QueueSASSignatureValues.ts +++ b/sdk/storage/storage-queue/src/QueueSASSignatureValues.ts @@ -78,14 +78,14 @@ export interface QueueSASSignatureValues { */ export function generateQueueSASQueryParameters( queueSASSignatureValues: QueueSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential + sharedKeyCredential: StorageSharedKeyCredential, ): SASQueryParameters { if ( !queueSASSignatureValues.identifier && !(queueSASSignatureValues.permissions && queueSASSignatureValues.expiresOn) ) { throw new RangeError( - "Must provide 'permissions' and 'expiresOn' for Queue SAS generation when 'identifier' is not provided." + "Must provide 'permissions' and 'expiresOn' for Queue SAS generation when 'identifier' is not provided.", ); } @@ -97,7 +97,7 @@ export function generateQueueSASQueryParameters( // Calling parse and toString guarantees the proper ordering and throws on invalid characters. if (queueSASSignatureValues.permissions) { verifiedPermissions = QueueSASPermissions.parse( - queueSASSignatureValues.permissions.toString() + queueSASSignatureValues.permissions.toString(), ).toString(); } @@ -129,7 +129,7 @@ export function generateQueueSASQueryParameters( queueSASSignatureValues.startsOn, queueSASSignatureValues.expiresOn, queueSASSignatureValues.ipRange, - queueSASSignatureValues.identifier + queueSASSignatureValues.identifier, ); } diff --git a/sdk/storage/storage-queue/src/QueueServiceClient.ts b/sdk/storage/storage-queue/src/QueueServiceClient.ts index 3f490361fb5f..c1c3df28d99c 100644 --- a/sdk/storage/storage-queue/src/QueueServiceClient.ts +++ b/sdk/storage/storage-queue/src/QueueServiceClient.ts @@ -179,7 +179,7 @@ export class QueueServiceClient extends StorageClient { connectionString: string, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ): QueueServiceClient { options = options || {}; const extractedCreds = extractConnectionStringParts(connectionString); @@ -187,7 +187,7 @@ export class QueueServiceClient extends StorageClient { if (isNode) { const sharedKeyCredential = new StorageSharedKeyCredential( extractedCreds.accountName!, - extractedCreds.accountKey + extractedCreds.accountKey, ); if (!options.proxyOptions) { options.proxyOptions = getDefaultProxySettings(extractedCreds.proxyUri); @@ -202,7 +202,7 @@ export class QueueServiceClient extends StorageClient { return new QueueServiceClient(extractedCreds.url + "?" + extractedCreds.accountSas, pipeline); } else { throw new Error( - "Connection string must be either an Account connection string or a SAS connection string" + "Connection string must be either an Account connection string or a SAS connection string", ); } } @@ -256,7 +256,7 @@ export class QueueServiceClient extends StorageClient { credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ); /** * Creates an instance of QueueServiceClient. @@ -277,7 +277,7 @@ export class QueueServiceClient extends StorageClient { | Pipeline, // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line. /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */ - options?: StoragePipelineOptions + options?: StoragePipelineOptions, ) { let pipeline: Pipeline; if (credentialOrPipeline instanceof Pipeline) { @@ -329,7 +329,7 @@ export class QueueServiceClient extends StorageClient { */ private async listQueuesSegment( marker?: string, - options: ServiceListQueuesSegmentOptions = {} + options: ServiceListQueuesSegmentOptions = {}, ): Promise { if (options.prefix === "") { options.prefix = undefined; @@ -348,9 +348,9 @@ export class QueueServiceClient extends StorageClient { ...updatedOptions, marker, include: options.include === undefined ? undefined : [options.include], - }) + }), ); - } + }, ); } @@ -368,7 +368,7 @@ export class QueueServiceClient extends StorageClient { */ private async *listSegments( marker?: string, - options: ServiceListQueuesSegmentOptions = {} + options: ServiceListQueuesSegmentOptions = {}, ): AsyncIterableIterator { if (options.prefix === "") { options.prefix = undefined; @@ -388,7 +388,7 @@ export class QueueServiceClient extends StorageClient { * @param options - Options to list queues operation. */ private async *listItems( - options: ServiceListQueuesSegmentOptions = {} + options: ServiceListQueuesSegmentOptions = {}, ): AsyncIterableIterator { if (options.prefix === "") { options.prefix = undefined; @@ -480,7 +480,7 @@ export class QueueServiceClient extends StorageClient { * @returns An asyncIterableIterator that supports paging. */ public listQueues( - options: ServiceListQueuesOptions = {} + options: ServiceListQueuesOptions = {}, ): PagedAsyncIterableIterator { if (options.prefix === "") { options.prefix = undefined; @@ -527,7 +527,7 @@ export class QueueServiceClient extends StorageClient { * @returns Response data including the queue service properties. */ public async getProperties( - options: ServiceGetPropertiesOptions = {} + options: ServiceGetPropertiesOptions = {}, ): Promise { return tracingClient.withSpan( "QueueServiceClient-getProperties", @@ -538,7 +538,7 @@ export class QueueServiceClient extends StorageClient { ServiceGetPropertiesHeaders, QueueServiceProperties >(await this.serviceContext.getProperties(updatedOptions)); - } + }, ); } @@ -553,16 +553,16 @@ export class QueueServiceClient extends StorageClient { */ public async setProperties( properties: QueueServiceProperties, - options: ServiceGetPropertiesOptions = {} + options: ServiceGetPropertiesOptions = {}, ): Promise { return tracingClient.withSpan( "QueueServiceClient-setProperties", options, async (updatedOptions) => { return assertResponse( - await this.serviceContext.setProperties(properties, updatedOptions) + await this.serviceContext.setProperties(properties, updatedOptions), ); - } + }, ); } @@ -576,7 +576,7 @@ export class QueueServiceClient extends StorageClient { * @returns Response data for get statistics the operation. */ public async getStatistics( - options: ServiceGetStatisticsOptions = {} + options: ServiceGetStatisticsOptions = {}, ): Promise { return tracingClient.withSpan( "QueueServiceClient-getStatistics", @@ -587,7 +587,7 @@ export class QueueServiceClient extends StorageClient { ServiceGetStatisticsHeaders, QueueServiceStatistics >(await this.serviceContext.getStatistics(updatedOptions)); - } + }, ); } @@ -601,14 +601,14 @@ export class QueueServiceClient extends StorageClient { */ public async createQueue( queueName: string, - options: QueueCreateOptions = {} + options: QueueCreateOptions = {}, ): Promise { return tracingClient.withSpan( "QueueServiceClient-createQueue", options, async (updatedOptions) => { return this.getQueueClient(queueName).create(updatedOptions); - } + }, ); } @@ -622,14 +622,14 @@ export class QueueServiceClient extends StorageClient { */ public async deleteQueue( queueName: string, - options: QueueDeleteOptions = {} + options: QueueDeleteOptions = {}, ): Promise { return tracingClient.withSpan( "QueueServiceClient-deleteQueue", options, async (updatedOptions) => { return this.getQueueClient(queueName).delete(updatedOptions); - } + }, ); } @@ -651,11 +651,11 @@ export class QueueServiceClient extends StorageClient { expiresOn?: Date, permissions: AccountSASPermissions = AccountSASPermissions.parse("r"), resourceTypes: string = "sco", - options: ServiceGenerateAccountSasUrlOptions = {} + options: ServiceGenerateAccountSasUrlOptions = {}, ): string { if (!(this.credential instanceof StorageSharedKeyCredential)) { throw RangeError( - "Can only generate the account SAS when the client is initialized with a shared key credential" + "Can only generate the account SAS when the client is initialized with a shared key credential", ); } @@ -672,7 +672,7 @@ export class QueueServiceClient extends StorageClient { services: AccountSASServices.parse("q").toString(), ...options, }, - this.credential + this.credential, ).toString(); return appendToURLQuery(this.url, sas); diff --git a/sdk/storage/storage-queue/src/SASQueryParameters.ts b/sdk/storage/storage-queue/src/SASQueryParameters.ts index 052c7d7c7d28..db1a01636fff 100644 --- a/sdk/storage/storage-queue/src/SASQueryParameters.ts +++ b/sdk/storage/storage-queue/src/SASQueryParameters.ts @@ -130,7 +130,7 @@ export class SASQueryParameters { expiresOn?: Date, ipRange?: SasIPRange, identifier?: string, - resource?: string + resource?: string, ) { this.version = version; this.services = services; @@ -171,21 +171,21 @@ export class SASQueryParameters { this.tryAppendQueryParameter( queries, param, - this.startsOn ? truncatedISO8061Date(this.startsOn, false) : undefined + this.startsOn ? truncatedISO8061Date(this.startsOn, false) : undefined, ); break; case "se": this.tryAppendQueryParameter( queries, param, - this.expiresOn ? truncatedISO8061Date(this.expiresOn, false) : undefined + this.expiresOn ? truncatedISO8061Date(this.expiresOn, false) : undefined, ); break; case "sip": this.tryAppendQueryParameter( queries, param, - this.ipRange ? ipRangeToString(this.ipRange) : undefined + this.ipRange ? ipRangeToString(this.ipRange) : undefined, ); break; case "si": diff --git a/sdk/storage/storage-queue/src/StorageContextClient.ts b/sdk/storage/storage-queue/src/StorageContextClient.ts index b2b9a9e015e3..63c1b8b7a0a9 100644 --- a/sdk/storage/storage-queue/src/StorageContextClient.ts +++ b/sdk/storage/storage-queue/src/StorageContextClient.ts @@ -10,7 +10,7 @@ import { StorageClient } from "./generated/src"; export class StorageContextClient extends StorageClient { async sendOperationRequest( operationArguments: OperationArguments, - operationSpec: OperationSpec + operationSpec: OperationSpec, ): Promise { const operationSpecToSend = { ...operationSpec }; diff --git a/sdk/storage/storage-queue/src/utils/utils.common.ts b/sdk/storage/storage-queue/src/utils/utils.common.ts index 76cd9f2b9e2c..6773e05e3b43 100644 --- a/sdk/storage/storage-queue/src/utils/utils.common.ts +++ b/sdk/storage/storage-queue/src/utils/utils.common.ts @@ -176,7 +176,7 @@ export function getValueInConnString( | "AccountKey" | "DefaultEndpointsProtocol" | "EndpointSuffix" - | "SharedAccessSignature" + | "SharedAccessSignature", ): string { const elements = connectionString.split(";"); for (const element of elements) { @@ -231,7 +231,7 @@ export function extractConnectionStringParts(connectionString: string): Connecti const protocol = defaultEndpointsProtocol!.toLowerCase(); if (protocol !== "https" && protocol !== "http") { throw new Error( - "Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'" + "Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'", ); } @@ -301,7 +301,7 @@ export function truncatedISO8061Date(date: Date, withMilliseconds: boolean = tru export async function delay( timeInMs: number, aborter?: AbortSignalLike, - abortError?: Error + abortError?: Error, ): Promise { return new Promise((resolve, reject) => { /* eslint-disable-next-line prefer-const*/ @@ -398,7 +398,7 @@ export function isIpEndpointStyle(parsedUrl: URL): boolean { // For valid host please refer to https://man7.org/linux/man-pages/man7/hostname.7.html. return ( /^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test( - host + host, ) || (Boolean(parsedUrl.port) && PathStylePorts.includes(parsedUrl.port)) ); @@ -502,8 +502,8 @@ export type WithResponse = T & (Body extends object ? ResponseWithBody : Headers extends object - ? ResponseWithHeaders - : ResponseLike); + ? ResponseWithHeaders + : ResponseLike); /** * A typesafe helper for ensuring that a given response object has @@ -512,7 +512,7 @@ export type WithResponse = T & * @returns The same object, but with known _response property */ export function assertResponse( - response: T + response: T, ): WithResponse { if (`_response` in response) { return response as WithResponse; diff --git a/sdk/storage/storage-queue/test/aborter.spec.ts b/sdk/storage/storage-queue/test/aborter.spec.ts index 70de9f8d96d5..88439aa3b22c 100644 --- a/sdk/storage/storage-queue/test/aborter.spec.ts +++ b/sdk/storage/storage-queue/test/aborter.spec.ts @@ -68,7 +68,7 @@ describe("Aborter", () => { const aborter = new AbortController(); const childAborter = new AbortController( aborter.signal, - AbortController.timeout(10 * 60 * 1000) + AbortController.timeout(10 * 60 * 1000), ); const response = queueClient.create({ abortSignal: childAborter.signal }); aborter.abort(); diff --git a/sdk/storage/storage-queue/test/messageidclient.spec.ts b/sdk/storage/storage-queue/test/messageidclient.spec.ts index b0a89d1653cc..4de86c7e565c 100644 --- a/sdk/storage/storage-queue/test/messageidclient.spec.ts +++ b/sdk/storage/storage-queue/test/messageidclient.spec.ts @@ -47,7 +47,7 @@ describe("QueueClient messageId methods", () => { const uResult = await queueClient.updateMessage( eResult.messageId, eResult.popReceipt, - newMessage + newMessage, ); assert.ok(uResult.version); assert.ok(uResult.nextVisibleOn); @@ -85,7 +85,7 @@ describe("QueueClient messageId methods", () => { eResult.messageId, eResult.popReceipt, newMessage, - 10 + 10, ); assert.ok(uResult.version); assert.ok(uResult.nextVisibleOn); @@ -119,7 +119,7 @@ describe("QueueClient messageId methods", () => { eResult.messageId, eResult.popReceipt, newMessage, - 10 + 10, ); assert.ok(uResult.version); assert.ok(uResult.nextVisibleOn); @@ -152,7 +152,7 @@ describe("QueueClient messageId methods", () => { const uResult = await queueClient.updateMessage( eResult.messageId, eResult.popReceipt, - newMessage + newMessage, ); assert.ok(uResult.version); assert.ok(uResult.nextVisibleOn); @@ -187,8 +187,8 @@ describe("QueueClient messageId methods", () => { assert.ok(error); assert.ok( error.message.includes( - "The request body is too large and exceeds the maximum permissible limit." - ) + "The request body is too large and exceeds the maximum permissible limit.", + ), ); }); @@ -208,7 +208,7 @@ describe("QueueClient messageId methods", () => { const newClient = new QueueClient( extractConnectionStringParts(getSASConnectionStringFromEnvironment(recorder)).url + "/" + - queueName + queueName, ); assert.equal(newClient.name, queueName, "Queue name is not the same as the one provided."); }); diff --git a/sdk/storage/storage-queue/test/node/emulator-tests.spec.ts b/sdk/storage/storage-queue/test/node/emulator-tests.spec.ts index 4d3e613ff2aa..b7661799e7a6 100644 --- a/sdk/storage/storage-queue/test/node/emulator-tests.spec.ts +++ b/sdk/storage/storage-queue/test/node/emulator-tests.spec.ts @@ -66,7 +66,7 @@ describe("Emulator Tests", () => { const uResult = await tempQueueClient.updateMessage( eResult.messageId, eResult.popReceipt, - newMessage + newMessage, ); assert.ok(uResult.popReceipt); diff --git a/sdk/storage/storage-queue/test/node/messageidclient.spec.ts b/sdk/storage/storage-queue/test/node/messageidclient.spec.ts index afc95cf01e39..9b9591831dd4 100644 --- a/sdk/storage/storage-queue/test/node/messageidclient.spec.ts +++ b/sdk/storage/storage-queue/test/node/messageidclient.spec.ts @@ -56,7 +56,7 @@ describe("QueueClient messageId methods, Node.js only", () => { const uResult = await queueClient.updateMessage( eResult.messageId, eResult.popReceipt, - newMessage + newMessage, ); assert.ok(uResult.version); assert.ok(uResult.nextVisibleOn); @@ -97,8 +97,8 @@ describe("QueueClient messageId methods, Node.js only", () => { assert.ok(error); assert.ok( error.message.includes( - "The request body is too large and exceeds the maximum permissible limit." - ) + "The request body is too large and exceeds the maximum permissible limit.", + ), ); }); @@ -114,12 +114,12 @@ describe("QueueClient messageId methods, Node.js only", () => { await newClient.updateMessage( eResult.messageId, eResult.popReceipt, - messageContent + " " + messageContent + messageContent + " " + messageContent, ); const response = await queueClient.peekMessages(); assert.equal( response.peekedMessageItems![0].messageText, - messageContent + " " + messageContent + messageContent + " " + messageContent, ); }); @@ -139,12 +139,12 @@ describe("QueueClient messageId methods, Node.js only", () => { await newClient.updateMessage( eResult.messageId, eResult.popReceipt, - messageContent + " " + messageContent + messageContent + " " + messageContent, ); const response = await queueClient.peekMessages(); assert.equal( response.peekedMessageItems![0].messageText, - messageContent + " " + messageContent + messageContent + " " + messageContent, ); }); @@ -161,12 +161,12 @@ describe("QueueClient messageId methods, Node.js only", () => { await newClient.updateMessage( eResult.messageId, eResult.popReceipt, - messageContent + " " + messageContent + messageContent + " " + messageContent, ); const response = await queueClient.peekMessages(); assert.equal( response.peekedMessageItems![0].messageText, - messageContent + " " + messageContent + messageContent + " " + messageContent, ); }); @@ -180,12 +180,12 @@ describe("QueueClient messageId methods, Node.js only", () => { await newClient.updateMessage( eResult.messageId, eResult.popReceipt, - messageContent + " " + messageContent + messageContent + " " + messageContent, ); const response = await queueClient.peekMessages(); assert.equal( response.peekedMessageItems![0].messageText, - messageContent + " " + messageContent + messageContent + " " + messageContent, ); }); @@ -203,12 +203,12 @@ describe("QueueClient messageId methods, Node.js only", () => { await newClient.updateMessage( eResult.messageId, eResult.popReceipt, - messageContent + " " + messageContent + messageContent + " " + messageContent, ); const response = await queueClient.peekMessages(); assert.equal( response.peekedMessageItems![0].messageText, - messageContent + " " + messageContent + messageContent + " " + messageContent, ); }); @@ -220,7 +220,7 @@ describe("QueueClient messageId methods, Node.js only", () => { assert.equal( "Expecting non-empty strings for queueName parameter", error.message, - "Error message is different than expected." + "Error message is different than expected.", ); } }); diff --git a/sdk/storage/storage-queue/test/node/messagesclient.spec.ts b/sdk/storage/storage-queue/test/node/messagesclient.spec.ts index eae97cd41fa9..723ba997c3e8 100644 --- a/sdk/storage/storage-queue/test/node/messagesclient.spec.ts +++ b/sdk/storage/storage-queue/test/node/messagesclient.spec.ts @@ -106,8 +106,8 @@ describe("QueueClient message methods, Node.js only", () => { assert.ok(error); assert.ok( error.message.includes( - "The request body is too large and exceeds the maximum permissible limit." - ) + "The request body is too large and exceeds the maximum permissible limit.", + ), ); }); @@ -202,7 +202,7 @@ describe("QueueClient message methods, Node.js only", () => { }; const newClient = new QueueClient( `https://myaccount.queue.core.windows.net/` + queueName, - tokenCredential + tokenCredential, ); configureStorageClient(recorder, newClient); assertClientUsesTokenCredential(newClient); diff --git a/sdk/storage/storage-queue/test/node/queueclient.spec.ts b/sdk/storage/storage-queue/test/node/queueclient.spec.ts index 7d4eb4461204..a266be3dd7ed 100644 --- a/sdk/storage/storage-queue/test/node/queueclient.spec.ts +++ b/sdk/storage/storage-queue/test/node/queueclient.spec.ts @@ -164,7 +164,7 @@ describe("QueueClient Node.js only", () => { }; const newClient = new QueueClient( `https://myaccount.queue.core.windows.net/` + queueName, - tokenCredential + tokenCredential, ); configureStorageClient(recorder, newClient); assertClientUsesTokenCredential(newClient); diff --git a/sdk/storage/storage-queue/test/node/queueserviceclient.spec.ts b/sdk/storage/storage-queue/test/node/queueserviceclient.spec.ts index 03bf33d858cd..35633a4a0327 100644 --- a/sdk/storage/storage-queue/test/node/queueserviceclient.spec.ts +++ b/sdk/storage/storage-queue/test/node/queueserviceclient.spec.ts @@ -94,7 +94,7 @@ describe("QueueServiceClient Node.js only", () => { }; const newClient = new QueueServiceClient( "https://accountname.queue.core.windows.net", - tokenCredential + tokenCredential, ); configureStorageClient(recorder, newClient); assertClientUsesTokenCredential(newClient); diff --git a/sdk/storage/storage-queue/test/node/sas.spec.ts b/sdk/storage/storage-queue/test/node/sas.spec.ts index 23dd62c80707..00783b2b5eac 100644 --- a/sdk/storage/storage-queue/test/node/sas.spec.ts +++ b/sdk/storage/storage-queue/test/node/sas.spec.ts @@ -62,7 +62,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const sasURL = `${queueServiceClient.url}?${sas}`; @@ -85,13 +85,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { resourceTypes: AccountSASResourceTypes.parse("sco").toString(), services: AccountSASServices.parse("btqf").toString(), }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const sasURL = `${queueServiceClient.url}?${sas}`; const queueServiceClientwithSAS = new QueueServiceClient( sasURL, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, queueServiceClientwithSAS); @@ -118,13 +118,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { resourceTypes: AccountSASResourceTypes.parse("sco").toString(), services: AccountSASServices.parse("b").toString(), }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const sasURL = `${queueServiceClient.url}?${sas}`; const queueServiceClientwithSAS = new QueueServiceClient( sasURL, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, queueServiceClientwithSAS); @@ -154,13 +154,13 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { services: AccountSASServices.parse("btqf").toString(), version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const sasURL = `${queueServiceClient.url}?${sas}`; const queueServiceClientwithSAS = new QueueServiceClient( sasURL, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, queueServiceClientwithSAS); @@ -197,7 +197,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasURL = `${queueClient.url}?${queueSAS}`; @@ -231,7 +231,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const messageContent = "Hello World!"; @@ -239,7 +239,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { const sasURLForMessages = `${queueClient.url}?${queueSAS}`; const queuesClientWithSAS = new QueueClient( sasURLForMessages, - newPipeline(new AnonymousCredential()) + newPipeline(new AnonymousCredential()), ); configureStorageClient(recorder, queuesClientWithSAS); const enqueueResult = await queuesClientWithSAS.sendMessage(messageContent); @@ -289,7 +289,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { queueName: queueClient.name, identifier: id, }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasURL = `${queueClient.url}?${queueSAS}`; @@ -314,7 +314,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { configureStorageClient(recorder, queueClientwithSAS); const deleteResult = await queueClientwithSAS.deleteMessage( dResult.receivedMessageItems[0].messageId, - dResult.receivedMessageItems[0].popReceipt + dResult.receivedMessageItems[0].popReceipt, ); assert.ok(deleteResult.requestId); assert.ok(deleteResult.clientRequestId); @@ -339,7 +339,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { services: AccountSASServices.parse("q").toString(), startsOn: now, }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const sasURL1 = `${queueServiceClient.url}?${sas}`; @@ -351,7 +351,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { ipRange: { start: "0.0.0.0", end: "255.255.255.255" }, protocol: SASProtocol.HttpsAndHttp, startsOn: now, - } + }, ); assert.deepStrictEqual(sasURL, sasURL1); @@ -378,7 +378,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const sasURL1 = `${queueServiceClient.url}?${sas}`; @@ -391,7 +391,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { protocol: SASProtocol.HttpsAndHttp, startsOn: now, version: "2016-05-31", - } + }, ); assert.deepStrictEqual(sasURL, sasURL1); @@ -422,7 +422,7 @@ describe("Shared Access Signature (SAS) generation Node.js only", () => { startsOn: now, version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ); const sasURL1 = `${queueClient.url}?${queueSAS}`; diff --git a/sdk/storage/storage-queue/test/node/utils.spec.ts b/sdk/storage/storage-queue/test/node/utils.spec.ts index b71a06c5e558..2ef2b61ecccd 100644 --- a/sdk/storage/storage-queue/test/node/utils.spec.ts +++ b/sdk/storage/storage-queue/test/node/utils.spec.ts @@ -20,17 +20,17 @@ describe("Utility Helpers Node.js only", () => { assert.equal( "AccountConnString", connectionStringParts.kind, - "extractConnectionStringParts().kind is different than expected." + "extractConnectionStringParts().kind is different than expected.", ); assert.equal( queueEndpoint, connectionStringParts.url, - "extractConnectionStringParts().url is different than expected." + "extractConnectionStringParts().url is different than expected.", ); assert.equal( accountName, connectionStringParts.accountName, - "extractConnectionStringParts().accountName is different than expected." + "extractConnectionStringParts().accountName is different than expected.", ); } @@ -46,7 +46,7 @@ describe("Utility Helpers Node.js only", () => { it("extractConnectionStringParts throws error when passed an invalid protocol in the connection string", async () => { try { extractConnectionStringParts( - "DefaultEndpointsProtocol=a;AccountName=b;AccountKey=c;EndpointSuffix=d" + "DefaultEndpointsProtocol=a;AccountName=b;AccountKey=c;EndpointSuffix=d", ); assert.fail("Expecting an thrown error but didn't get one."); } catch (error: any) { @@ -58,7 +58,7 @@ describe("Utility Helpers Node.js only", () => { try { extractConnectionStringParts( // Typo in the attributes - "DefaultEndpointsProtocol=https;Name=b;AccountKey=c;EndpointSuffix=d" + "DefaultEndpointsProtocol=https;Name=b;AccountKey=c;EndpointSuffix=d", ); assert.fail("Expecting an thrown error but didn't get one."); @@ -66,7 +66,7 @@ describe("Utility Helpers Node.js only", () => { assert.equal( "Invalid AccountName in the provided Connection String", error.message, - "Connection string error message is different than expected" + "Connection string error message is different than expected", ); } }); @@ -74,14 +74,14 @@ describe("Utility Helpers Node.js only", () => { it("extractConnectionStringParts throws error with empty EndpointSuffix in the connection string", async () => { try { extractConnectionStringParts( - "DefaultEndpointsProtocol=https;AccountName=b;AccountKey=cdefg;EndpointSuffix=" + "DefaultEndpointsProtocol=https;AccountName=b;AccountKey=cdefg;EndpointSuffix=", ); assert.fail("Expecting an thrown error but didn't get one."); } catch (error: any) { assert.equal( "Invalid EndpointSuffix in the provided Connection String", error.message, - "Connection string error message is different than expected" + "Connection string error message is different than expected", ); } }); @@ -89,14 +89,14 @@ describe("Utility Helpers Node.js only", () => { it("extractConnectionStringParts throws error with empty AccountKey in the connection string", async () => { try { extractConnectionStringParts( - "DefaultEndpointsProtocol=https;AccountName=b;AccountKey=;EndpointSuffix=d" + "DefaultEndpointsProtocol=https;AccountName=b;AccountKey=;EndpointSuffix=d", ); assert.fail("Expecting an thrown error but didn't get one."); } catch (error: any) { assert.equal( "Invalid AccountKey in the provided Connection String", error.message, - "Connection string error message is different than expected" + "Connection string error message is different than expected", ); } }); @@ -104,14 +104,14 @@ describe("Utility Helpers Node.js only", () => { it("extractConnectionStringParts throws error with empty AccountName in the connection string", async () => { try { extractConnectionStringParts( - "DefaultEndpointsProtocol=https;AccountName=;AccountKey=c;EndpointSuffix=d" + "DefaultEndpointsProtocol=https;AccountName=;AccountKey=c;EndpointSuffix=d", ); assert.fail("Expecting an thrown error but didn't get one."); } catch (error: any) { assert.equal( "Invalid AccountName in the provided Connection String", error.message, - "Connection string error message is different than expected" + "Connection string error message is different than expected", ); } }); @@ -119,14 +119,14 @@ describe("Utility Helpers Node.js only", () => { it("extractConnectionStringParts throws error with empty DefaultEndpointsProtocol in the connection string", async () => { try { extractConnectionStringParts( - "DefaultEndpointsProtocol=;AccountName=b;AccountKey=c;EndpointSuffix=d" + "DefaultEndpointsProtocol=;AccountName=b;AccountKey=c;EndpointSuffix=d", ); assert.fail("Expecting an thrown error but didn't get one."); } catch (error: any) { assert.equal( "Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'", error.message, - "Connection string error message is different than expected" + "Connection string error message is different than expected", ); } }); @@ -139,7 +139,7 @@ describe("Utility Helpers Node.js only", () => { QueueEndpoint=${queueEndpoint}; TableEndpoint=myTableEndpoint; AccountName=${accountName}; - AccountKey=${accountKey}` + AccountKey=${accountKey}`, ); }); @@ -148,7 +148,7 @@ describe("Utility Helpers Node.js only", () => { `DefaultEndpointsProtocol=${protocol}; QueueEndpoint=${queueEndpoint}; AccountName=${accountName}; - AccountKey=${accountKey}` + AccountKey=${accountKey}`, ); }); @@ -157,7 +157,7 @@ describe("Utility Helpers Node.js only", () => { `DefaultEndpointsProtocol=${protocol}; AccountName=${accountName}; AccountKey=${accountKey}; - EndpointSuffix=${endpointSuffix};` + EndpointSuffix=${endpointSuffix};`, ); }); }); diff --git a/sdk/storage/storage-queue/test/queueclient.spec.ts b/sdk/storage/storage-queue/test/queueclient.spec.ts index dea193334a84..b1a0f46a4293 100644 --- a/sdk/storage/storage-queue/test/queueclient.spec.ts +++ b/sdk/storage/storage-queue/test/queueclient.spec.ts @@ -82,7 +82,7 @@ describe("QueueClient", () => { it("create with all parameters", async () => { const qClient = queueServiceClient.getQueueClient( - recorder.variable(queueName, getUniqueName(queueName)) + recorder.variable(queueName, getUniqueName(queueName)), ); const metadata = { key: "value" }; await qClient.create({ metadata }); @@ -103,7 +103,7 @@ describe("QueueClient", () => { assert.equal( error.message, "Unable to extract queueName with provided information.", - "Unexpected error caught: " + error + "Unexpected error caught: " + error, ); }); @@ -111,7 +111,7 @@ describe("QueueClient", () => { assert.ok(await queueClient.exists()); const qClient = queueServiceClient.getQueueClient( - recorder.variable(queueName, getUniqueName(queueName)) + recorder.variable(queueName, getUniqueName(queueName)), ); assert.ok(!(await qClient.exists())); }); @@ -126,7 +126,7 @@ describe("QueueClient", () => { assert.equal(res2.errorCode, "QueueAlreadyExists"); queueClient = queueServiceClient.getQueueClient( - recorder.variable("queue2", getUniqueName("queue2")) + recorder.variable("queue2", getUniqueName("queue2")), ); const res3 = await queueClient.createIfNotExists(); assert.ok(res3.succeeded); @@ -134,7 +134,7 @@ describe("QueueClient", () => { it("deleteIfExists", async () => { const qClient = queueServiceClient.getQueueClient( - recorder.variable(queueName, getUniqueName(queueName)) + recorder.variable(queueName, getUniqueName(queueName)), ); const res = await qClient.deleteIfExists(); assert.ok(!res.succeeded); @@ -206,7 +206,7 @@ describe("QueueClient", () => { assert.equal( "Expecting non-empty strings for queueName parameter", error.message, - "Error message is different than expected." + "Error message is different than expected.", ); } }); @@ -216,7 +216,7 @@ describe("QueueClient", () => { async (options) => { await queueClient.getProperties(options); }, - ["QueueClient-getProperties"] + ["QueueClient-getProperties"], ); }); }); @@ -231,7 +231,7 @@ describe("QueueClient - Verify Name Properties", () => { assert.equal( newClient.accountName, inputAccountName, - "Account name is not the same as the one provided." + "Account name is not the same as the one provided.", ); } @@ -239,7 +239,7 @@ describe("QueueClient - Verify Name Properties", () => { verifyNameProperties( `https://${accountName}.queue.core.windows.net/` + queueName, accountName, - queueName + queueName, ); }); @@ -247,7 +247,7 @@ describe("QueueClient - Verify Name Properties", () => { verifyNameProperties( `https://192.0.0.10:1900/${accountName}/${queueName}`, accountName, - queueName + queueName, ); }); @@ -255,7 +255,7 @@ describe("QueueClient - Verify Name Properties", () => { verifyNameProperties( `https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/${accountName}/${queueName}`, accountName, - queueName + queueName, ); }); @@ -263,7 +263,7 @@ describe("QueueClient - Verify Name Properties", () => { verifyNameProperties( `https://localhost:80/${accountName}/${queueName}`, accountName, - queueName + queueName, ); }); diff --git a/sdk/storage/storage-queue/test/queueclientmessages.spec.ts b/sdk/storage/storage-queue/test/queueclientmessages.spec.ts index a21a371caca5..681a0e7d382d 100644 --- a/sdk/storage/storage-queue/test/queueclientmessages.spec.ts +++ b/sdk/storage/storage-queue/test/queueclientmessages.spec.ts @@ -342,8 +342,8 @@ describe("QueueClient message methods", () => { assert.ok(error); assert.ok( error.message.includes( - "The request body is too large and exceeds the maximum permissible limit." - ) + "The request body is too large and exceeds the maximum permissible limit.", + ), ); }); @@ -382,7 +382,7 @@ describe("QueueClient message methods", () => { assert.equal( "Expecting non-empty strings for queueName parameter", error.message, - "Error message is different than expected." + "Error message is different than expected.", ); } }); @@ -392,7 +392,7 @@ describe("QueueClient message methods", () => { extractConnectionStringParts(getSASConnectionStringFromEnvironment(recorder)).url + "/" + queueName + - "/messages/" + "/messages/", ); configureStorageClient(recorder, newClient); assert.equal(newClient.name, queueName, "Queue name is not the same as the one provided."); diff --git a/sdk/storage/storage-queue/test/queueserviceclient.spec.ts b/sdk/storage/storage-queue/test/queueserviceclient.spec.ts index b9fd84c5e3f9..a510468bd84d 100644 --- a/sdk/storage/storage-queue/test/queueserviceclient.spec.ts +++ b/sdk/storage/storage-queue/test/queueserviceclient.spec.ts @@ -334,7 +334,7 @@ describe("QueueServiceClient", () => { it("can be created from a sas connection string", async () => { const newClient = QueueServiceClient.fromConnectionString( - getSASConnectionStringFromEnvironment(recorder) + getSASConnectionStringFromEnvironment(recorder), ); configureStorageClient(recorder, newClient); @@ -371,7 +371,7 @@ describe("QueueServiceClient", () => { assert.equal(err.details.errorCode, "QueueNotFound", "Error does not contain details property"); assert.ok( err.message.startsWith("The specified queue does not exist."), - "Error doesn't say `QueueNotFound`" + "Error doesn't say `QueueNotFound`", ); }); diff --git a/sdk/storage/storage-queue/test/utils.spec.ts b/sdk/storage/storage-queue/test/utils.spec.ts index f6d8efb2f79f..44af6cb5db48 100644 --- a/sdk/storage/storage-queue/test/utils.spec.ts +++ b/sdk/storage/storage-queue/test/utils.spec.ts @@ -27,17 +27,17 @@ describe("Utility Helpers", () => { assert.equal( "SASConnString", connectionStringParts.kind, - "extractConnectionStringParts().kind is different than expected." + "extractConnectionStringParts().kind is different than expected.", ); assert.equal( queueEndpoint, connectionStringParts.url, - "extractConnectionStringParts().url is different than expected." + "extractConnectionStringParts().url is different than expected.", ); assert.equal( accountName, connectionStringParts.accountName, - "extractConnectionStringParts().accountName is different than expected." + "extractConnectionStringParts().accountName is different than expected.", ); } @@ -67,20 +67,20 @@ describe("Utility Helpers", () => { const sanitized = sanitizeHeaders(headers); assert.ok( sanitized.get("x-ms-copy-source")!.indexOf("sasstring") === -1, - "Expecting SAS string to be redacted." + "Expecting SAS string to be redacted.", ); assert.ok( sanitized.get("x-ms-copy-source")!.indexOf("*****") !== -1, - "Expecting SAS string to be redacted." + "Expecting SAS string to be redacted.", ); assert.ok( sanitized.get("authorization")! === "*****", - "Expecting authorization header value to be redacted." + "Expecting authorization header value to be redacted.", ); assert.ok( sanitized.get("otherheader")!.indexOf("sasstring") !== -1, - "Other header should not be changed." + "Other header should not be changed.", ); }); @@ -88,7 +88,7 @@ describe("Utility Helpers", () => { verifySASConnectionString( `QueueEndpoint=${queueEndpoint}; FileEndpoint=https://storagesample.file.core.windows.net; - SharedAccessSignature=${sharedAccessSignature}` + SharedAccessSignature=${sharedAccessSignature}`, ); }); @@ -96,7 +96,7 @@ describe("Utility Helpers", () => { verifySASConnectionString( `QueueEndpoint=${queueEndpoint}; FileEndpoint=https://storagesample.file.core.windows.net; - SharedAccessSignature=${sharedAccessSignature}` + SharedAccessSignature=${sharedAccessSignature}`, ); }); @@ -107,36 +107,36 @@ describe("Utility Helpers", () => { assert.equal( "SASConnString", connectionStringParts.kind, - "extractConnectionStringParts().kind is different than expected." + "extractConnectionStringParts().kind is different than expected.", ); assert.equal( customDomainQueueEndpoint, connectionStringParts.url, - "extractConnectionStringParts().url is different than expected." + "extractConnectionStringParts().url is different than expected.", ); assert.equal( "", connectionStringParts.accountName, - "extractConnectionStringParts().accountName is different than expected." + "extractConnectionStringParts().accountName is different than expected.", ); }); it("isIpEndpointStyle", async () => { assert.equal( isIpEndpointStyle(new URL("https://192.0.0.10:1900/accountName/containerName/blobName")), - true + true, ); assert.equal( isIpEndpointStyle( new URL( - "https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/accountName/containerName/blobName" - ) + "https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/accountName/containerName/blobName", + ), ), - true + true, ); assert.equal( isIpEndpointStyle(new URL("https://localhost:80/accountName/containerName/blobName")), - true + true, ); assert.equal(isIpEndpointStyle(new URL("https://192.0.0.10:1900/")), true); @@ -144,9 +144,9 @@ describe("Utility Helpers", () => { assert.equal( isIpEndpointStyle( - new URL("https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]/accountName/containerName") + new URL("https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]/accountName/containerName"), ), - true + true, ); }); }); diff --git a/sdk/storage/storage-queue/test/utils/index.browser.ts b/sdk/storage/storage-queue/test/utils/index.browser.ts index bf859ead1eb8..4efff2835910 100644 --- a/sdk/storage/storage-queue/test/utils/index.browser.ts +++ b/sdk/storage/storage-queue/test/utils/index.browser.ts @@ -11,7 +11,7 @@ export * from "./testutils.common"; export function getGenericQSU( recorder: Recorder, accountType: string, - accountNameSuffix: string = "" + accountNameSuffix: string = "", ): QueueServiceClient { const accountNameEnvVar = `${accountType}ACCOUNT_NAME`; const accountSASEnvVar = `${accountType}ACCOUNT_SAS`; @@ -23,7 +23,7 @@ export function getGenericQSU( if (!accountName || !accountSAS) { throw new Error( - `${accountNameEnvVar} and/or ${accountSASEnvVar} environment variables not specified.` + `${accountNameEnvVar} and/or ${accountSASEnvVar} environment variables not specified.`, ); } @@ -59,7 +59,7 @@ export async function bodyToString( readableStreamBody?: NodeJS.ReadableStream; blobBody?: Promise; }, - _length?: number + _length?: number, ): Promise { const blob = await response.blobBody!; return blobToString(blob); diff --git a/sdk/storage/storage-queue/test/utils/index.ts b/sdk/storage/storage-queue/test/utils/index.ts index 0a28ecf17f6f..0938a9c718ff 100644 --- a/sdk/storage/storage-queue/test/utils/index.ts +++ b/sdk/storage/storage-queue/test/utils/index.ts @@ -19,7 +19,7 @@ export * from "./testutils.common"; export function getGenericQSU( recorder: Recorder, accountType: string, - accountNameSuffix: string = "" + accountNameSuffix: string = "", ): QueueServiceClient { if ((env.STORAGE_CONNECTION_STRING ?? "").startsWith("UseDevelopmentStorage=true")) { // Expected environment variable to run tests with the emulator @@ -35,7 +35,7 @@ export function getGenericQSU( if (!accountName || !accountKey || accountName === "" || accountKey === "") { throw new Error( - `${accountNameEnvVar} and/or ${accountKeyEnvVar} environment variables not specified.` + `${accountNameEnvVar} and/or ${accountKeyEnvVar} environment variables not specified.`, ); } @@ -87,16 +87,16 @@ export function getSASConnectionStringFromEnvironment(recorder: Recorder): strin startsOn: now, version: "2016-05-31", }, - sharedKeyCredential as StorageSharedKeyCredential + sharedKeyCredential as StorageSharedKeyCredential, ).toString(); const queueEndpoint = extractConnectionStringParts(getConnectionStringFromEnvironment()).url; return `BlobEndpoint=${queueEndpoint.replace( ".queue.", - ".blob." + ".blob.", )}/;QueueEndpoint=${queueEndpoint}/;FileEndpoint=${queueEndpoint.replace( ".queue.", - ".file." + ".file.", )}/;TableEndpoint=${queueEndpoint.replace(".queue.", ".table.")}/;SharedAccessSignature=${sas}`; } diff --git a/sdk/synapse/synapse-access-control-rest/package.json b/sdk/synapse/synapse-access-control-rest/package.json index ecd0924bf496..2bfc8369d63c 100644 --- a/sdk/synapse/synapse-access-control-rest/package.json +++ b/sdk/synapse/synapse-access-control-rest/package.json @@ -62,7 +62,6 @@ "karma": "^6.2.0", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "uglify-js": "^3.4.9", "@types/chai-as-promised": "^7.1.0", diff --git a/sdk/synapse/synapse-access-control/package.json b/sdk/synapse/synapse-access-control/package.json index f44f90ceb9a8..fa4458d69c89 100644 --- a/sdk/synapse/synapse-access-control/package.json +++ b/sdk/synapse/synapse-access-control/package.json @@ -67,7 +67,6 @@ "karma": "^6.2.0", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "uglify-js": "^3.4.9", "@types/chai-as-promised": "^7.1.0", diff --git a/sdk/synapse/synapse-artifacts/package.json b/sdk/synapse/synapse-artifacts/package.json index 5ee9ef0813d6..06b4e4081472 100644 --- a/sdk/synapse/synapse-artifacts/package.json +++ b/sdk/synapse/synapse-artifacts/package.json @@ -56,7 +56,6 @@ "karma": "^6.2.0", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "uglify-js": "^3.4.9", "@types/chai-as-promised": "^7.1.0", diff --git a/sdk/synapse/synapse-managed-private-endpoints/package.json b/sdk/synapse/synapse-managed-private-endpoints/package.json index a1c85e557719..29aa9879ac28 100644 --- a/sdk/synapse/synapse-managed-private-endpoints/package.json +++ b/sdk/synapse/synapse-managed-private-endpoints/package.json @@ -70,7 +70,6 @@ "karma": "^6.2.0", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "@types/chai-as-promised": "^7.1.0", "chai-as-promised": "^7.1.1", "cross-env": "^7.0.2", diff --git a/sdk/synapse/synapse-monitoring/package.json b/sdk/synapse/synapse-monitoring/package.json index c9871809fd01..13c845b8c7e1 100644 --- a/sdk/synapse/synapse-monitoring/package.json +++ b/sdk/synapse/synapse-monitoring/package.json @@ -49,7 +49,6 @@ "karma-sourcemap-loader": "^0.3.8", "karma-source-map-support": "~1.4.0", "mocha": "^10.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "typescript": "~5.2.0", "uglify-js": "^3.4.9", @@ -75,8 +74,8 @@ "integration-test:node": "echo skip", "integration-test": "echo skip", "lint": "echo skipped", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser", "test:node": "npm run clean && npm run build:test && npm run unit-test:node", "test": "npm run clean && npm run build:test && npm run unit-test", diff --git a/sdk/synapse/synapse-monitoring/test/public/utils/recordedClient.ts b/sdk/synapse/synapse-monitoring/test/public/utils/recordedClient.ts index 65e3b3efac04..5d835b1b3dc2 100644 --- a/sdk/synapse/synapse-monitoring/test/public/utils/recordedClient.ts +++ b/sdk/synapse/synapse-monitoring/test/public/utils/recordedClient.ts @@ -29,7 +29,7 @@ export function createClient(options?: { return new MonitoringClient( createTestCredential(), assertEnvironmentVariable("ENDPOINT"), - updatedOptions + updatedOptions, ); } diff --git a/sdk/synapse/synapse-spark/package.json b/sdk/synapse/synapse-spark/package.json index 08276aacd50b..84416b483fb6 100644 --- a/sdk/synapse/synapse-spark/package.json +++ b/sdk/synapse/synapse-spark/package.json @@ -55,7 +55,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "typescript": "~5.2.0", "uglify-js": "^3.4.9", diff --git a/sdk/tables/data-tables/package.json b/sdk/tables/data-tables/package.json index d1b2d5fc9728..602b24a427bd 100644 --- a/sdk/tables/data-tables/package.json +++ b/sdk/tables/data-tables/package.json @@ -31,11 +31,11 @@ "build:samples": "echo Obsolete.", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 --exclude 'dist-esm/test/**/browser/*.spec.js' 'dist-esm/test/**/*.spec.js'", @@ -108,7 +108,6 @@ "karma-mocha-reporter": "^2.2.5", "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", - "prettier": "^2.5.1", "c8": "^8.0.0", "rimraf": "^3.0.0", "sinon": "^17.0.0", diff --git a/sdk/tables/data-tables/samples-dev/updateAndUpsertEntities.ts b/sdk/tables/data-tables/samples-dev/updateAndUpsertEntities.ts index 654411f62196..d5ccc7f8c81b 100644 --- a/sdk/tables/data-tables/samples-dev/updateAndUpsertEntities.ts +++ b/sdk/tables/data-tables/samples-dev/updateAndUpsertEntities.ts @@ -50,7 +50,7 @@ async function updateAndUpsertEntities() { // Replace with the same entity but without a brand brand: undefined, }, - "Replace" + "Replace", ); // Getting the entity we just created should give us an entity similar to the one that we first inserted diff --git a/sdk/tables/data-tables/samples-dev/workingWithBigInt.ts b/sdk/tables/data-tables/samples-dev/workingWithBigInt.ts index bf072e716c4b..82fec674f246 100644 --- a/sdk/tables/data-tables/samples-dev/workingWithBigInt.ts +++ b/sdk/tables/data-tables/samples-dev/workingWithBigInt.ts @@ -23,7 +23,7 @@ async function workingWithBigint() { const client = new TableClient( tablesUrl, "testbigint", - new AzureNamedKeyCredential(accountName, accountKey) + new AzureNamedKeyCredential(accountName, accountKey), ); await client.createTable(); diff --git a/sdk/tables/data-tables/samples-dev/workingWithInt64.ts b/sdk/tables/data-tables/samples-dev/workingWithInt64.ts index 367b2bfb0bf5..6efbcd2de593 100644 --- a/sdk/tables/data-tables/samples-dev/workingWithInt64.ts +++ b/sdk/tables/data-tables/samples-dev/workingWithInt64.ts @@ -23,7 +23,7 @@ async function workingWithInt64() { const client = new TableClient( tablesUrl, "testInt64", - new AzureNamedKeyCredential(accountName, accountKey) + new AzureNamedKeyCredential(accountName, accountKey), ); await client.createTable(); diff --git a/sdk/tables/data-tables/src/TableClient.ts b/sdk/tables/data-tables/src/TableClient.ts index f5d8256daf95..a56d0d5a56ef 100644 --- a/sdk/tables/data-tables/src/TableClient.ts +++ b/sdk/tables/data-tables/src/TableClient.ts @@ -129,7 +129,7 @@ export class TableClient { url: string, tableName: string, credential: NamedKeyCredential, - options?: TableClientOptions + options?: TableClientOptions, ); /** * Creates a new instance of the TableClient class. @@ -160,7 +160,7 @@ export class TableClient { url: string, tableName: string, credential: SASCredential, - options?: TableClientOptions + options?: TableClientOptions, ); /** * Creates a new instance of the TableClient class. @@ -192,7 +192,7 @@ export class TableClient { url: string, tableName: string, credential: TokenCredential, - options?: TableClientOptions + options?: TableClientOptions, ); /** * Creates an instance of TableClient. @@ -222,7 +222,7 @@ export class TableClient { url: string, tableName: string, credentialOrOptions?: NamedKeyCredential | SASCredential | TableClientOptions | TokenCredential, - options: TableClientOptions = {} + options: TableClientOptions = {}, ) { this.url = url; this.tableName = tableName; @@ -379,7 +379,7 @@ export class TableClient { partitionKey: string, rowKey: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options: GetTableEntityOptions = {} + options: GetTableEntityOptions = {}, ): Promise>> { return tracingClient.withSpan("TableClient.getEntity", options, async (updatedOptions) => { let parsedBody: any; @@ -398,11 +398,11 @@ export class TableClient { ...getEntityOptions, queryOptions: serializeQueryOptions(queryOptions || {}), onResponse, - } + }, ); const tableEntity = deserialize>( parsedBody, - disableTypeConversion ?? false + disableTypeConversion ?? false, ); return tableEntity; @@ -441,7 +441,7 @@ export class TableClient { */ public listEntities>( // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options: ListTableEntitiesOptions = {} + options: ListTableEntitiesOptions = {}, ): PagedAsyncIterableIterator, TableEntityResultPage> { const tableName = this.tableName; const iter = this.listEntitiesAll(tableName, options); @@ -470,7 +470,7 @@ export class TableClient { private async *listEntitiesAll( tableName: string, - options?: InternalListTableEntitiesOptions + options?: InternalListTableEntitiesOptions, ): AsyncIterableIterator> { const firstPage = await this._listEntities(tableName, options); yield* firstPage; @@ -487,12 +487,12 @@ export class TableClient { private async *listEntitiesPage( tableName: string, - options: InternalListTableEntitiesOptions = {} + options: InternalListTableEntitiesOptions = {}, ): AsyncIterableIterator>> { let result = await tracingClient.withSpan( "TableClient.listEntitiesPage", options, - (updatedOptions) => this._listEntities(tableName, updatedOptions) + (updatedOptions) => this._listEntities(tableName, updatedOptions), ); yield result; @@ -509,7 +509,7 @@ export class TableClient { (updatedOptions, span) => { span.setAttribute("continuationToken", result.continuationToken); return this._listEntities(tableName, updatedOptions); - } + }, ); yield result; } @@ -517,7 +517,7 @@ export class TableClient { private async _listEntities( tableName: string, - options: InternalListTableEntitiesOptions = {} + options: InternalListTableEntitiesOptions = {}, ): Promise> { const { disableTypeConversion = false } = options; const queryOptions = serializeQueryOptions(options.queryOptions || {}); @@ -541,7 +541,7 @@ export class TableClient { const tableEntities = deserializeObjectsArray>( value ?? [], - disableTypeConversion + disableTypeConversion, ); // Encode nextPartitionKey and nextRowKey as a single continuation token and add it as a @@ -581,7 +581,7 @@ export class TableClient { public createEntity( entity: TableEntity, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan("TableClient.createEntity", options, (updatedOptions) => { const { ...createTableEntity } = updatedOptions || {}; @@ -622,7 +622,7 @@ export class TableClient { partitionKey: string, rowKey: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options: DeleteTableEntityOptions = {} + options: DeleteTableEntityOptions = {}, ): Promise { return tracingClient.withSpan("TableClient.deleteEntity", options, (updatedOptions) => { const { etag = "*", ...rest } = updatedOptions; @@ -634,7 +634,7 @@ export class TableClient { escapeQuotes(partitionKey), escapeQuotes(rowKey), etag, - deleteOptions + deleteOptions, ); }); } @@ -682,7 +682,7 @@ export class TableClient { entity: TableEntity, mode: UpdateMode = "Merge", // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options: UpdateTableEntityOptions = {} + options: UpdateTableEntityOptions = {}, ): Promise { return tracingClient.withSpan( "TableClient.updateEntity", @@ -713,7 +713,7 @@ export class TableClient { spanAttributes: { updateEntityMode: mode, }, - } + }, ); } @@ -756,7 +756,7 @@ export class TableClient { entity: TableEntity, mode: UpdateMode = "Merge", // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan( "TableClient.upsertEntity", @@ -784,7 +784,7 @@ export class TableClient { spanAttributes: { upsertEntityMode: mode, }, - } + }, ); } @@ -800,7 +800,7 @@ export class TableClient { async (updatedOptions) => { const signedIdentifiers = await this.table.getAccessPolicy(this.tableName, updatedOptions); return deserializeSignedIdentifier(signedIdentifiers); - } + }, ); } @@ -811,7 +811,7 @@ export class TableClient { */ public setAccessPolicy( tableAcl: SignedIdentifier[], - options: OperationOptions = {} + options: OperationOptions = {}, ): Promise { return tracingClient.withSpan("TableClient.setAccessPolicy", options, (updatedOptions) => { const serlializedAcl = serializeSignedIdentifiers(tableAcl); @@ -871,7 +871,7 @@ export class TableClient { this.generatedClient, new TableClient(this.url, this.tableName), this.credential, - this.allowInsecureConnection + this.allowInsecureConnection, ); for (const item of actions) { @@ -911,7 +911,7 @@ export class TableClient { connectionString: string, tableName: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: TableClientOptions + options?: TableClientOptions, ): TableClient { const { url, diff --git a/sdk/tables/data-tables/src/TablePolicies.ts b/sdk/tables/data-tables/src/TablePolicies.ts index 5a315b8bc9ee..039c5c33645a 100644 --- a/sdk/tables/data-tables/src/TablePolicies.ts +++ b/sdk/tables/data-tables/src/TablePolicies.ts @@ -26,7 +26,7 @@ const dummyResponse: PipelineResponse = { export function transactionRequestAssemblePolicy( bodyParts: string[], - changesetId: string + changesetId: string, ): PipelinePolicy { return { name: transactionRequestAssemblePolicyName, diff --git a/sdk/tables/data-tables/src/TableServiceClient.ts b/sdk/tables/data-tables/src/TableServiceClient.ts index 3aca0193828c..48a7cc899b1a 100644 --- a/sdk/tables/data-tables/src/TableServiceClient.ts +++ b/sdk/tables/data-tables/src/TableServiceClient.ts @@ -158,7 +158,7 @@ export class TableServiceClient { | SASCredential | TokenCredential | TableServiceClientOptions, - options?: TableServiceClientOptions + options?: TableServiceClientOptions, ) { this.url = url; const credential = isCredential(credentialOrOptions) ? credentialOrOptions : undefined; @@ -208,7 +208,7 @@ export class TableServiceClient { */ public async getStatistics(options: OperationOptions = {}): Promise { return tracingClient.withSpan("TableServiceClient.getStatistics", options, (updatedOptions) => - this.service.getStatistics(injectSecondaryEndpointHeader(updatedOptions)) + this.service.getStatistics(injectSecondaryEndpointHeader(updatedOptions)), ); } @@ -219,7 +219,7 @@ export class TableServiceClient { */ public getProperties(options: OperationOptions = {}): Promise { return tracingClient.withSpan("TableServiceClient.getProperties", options, (updatedOptions) => - this.service.getProperties(updatedOptions) + this.service.getProperties(updatedOptions), ); } @@ -231,10 +231,10 @@ export class TableServiceClient { */ public setProperties( properties: ServiceProperties, - options: SetPropertiesOptions = {} + options: SetPropertiesOptions = {}, ): Promise { return tracingClient.withSpan("TableServiceClient.setProperties", options, (updatedOptions) => - this.service.setProperties(properties, updatedOptions) + this.service.setProperties(properties, updatedOptions), ); } @@ -253,7 +253,7 @@ export class TableServiceClient { } catch (e: any) { handleTableAlreadyExists(e, { ...updatedOptions, logger, tableName: name }); } - } + }, ); } @@ -276,7 +276,7 @@ export class TableServiceClient { throw e; } } - } + }, ); } @@ -286,7 +286,7 @@ export class TableServiceClient { */ public listTables( // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: ListTableItemsOptions + options?: ListTableItemsOptions, ): PagedAsyncIterableIterator { const iter = this.listTablesAll(options); @@ -313,7 +313,7 @@ export class TableServiceClient { } private async *listTablesAll( - options?: InternalListTablesOptions + options?: InternalListTablesOptions, ): AsyncIterableIterator { const firstPage = await this._listTables(options); const { continuationToken } = firstPage; @@ -330,12 +330,12 @@ export class TableServiceClient { } private async *listTablesPage( - options: InternalListTablesOptions = {} + options: InternalListTablesOptions = {}, ): AsyncIterableIterator { let result = await tracingClient.withSpan( "TableServiceClient.listTablesPage", options, - (updatedOptions) => this._listTables(updatedOptions) + (updatedOptions) => this._listTables(updatedOptions), ); yield result; @@ -351,7 +351,7 @@ export class TableServiceClient { async (updatedOptions, span) => { span.setAttribute("continuationToken", updatedOptions.continuationToken); return this._listTables(updatedOptions); - } + }, ); yield result; } @@ -382,7 +382,7 @@ export class TableServiceClient { public static fromConnectionString( connectionString: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: TableServiceClientOptions + options?: TableServiceClientOptions, ): TableServiceClient { const { url, diff --git a/sdk/tables/data-tables/src/TableTransaction.ts b/sdk/tables/data-tables/src/TableTransaction.ts index 01990fbbe4e0..dac1bcbf4fb0 100644 --- a/sdk/tables/data-tables/src/TableTransaction.ts +++ b/sdk/tables/data-tables/src/TableTransaction.ts @@ -80,7 +80,7 @@ export class TableTransaction { */ updateEntity>( entity: TableEntity, - updateOptions?: UpdateTableEntityOptions + updateOptions?: UpdateTableEntityOptions, ): void; /** @@ -92,7 +92,7 @@ export class TableTransaction { updateEntity>( entity: TableEntity, updateMode: UpdateMode, - updateOptions?: UpdateTableEntityOptions + updateOptions?: UpdateTableEntityOptions, ): void; /** @@ -104,7 +104,7 @@ export class TableTransaction { updateEntity>( entity: TableEntity, updateModeOrOptions: UpdateMode | UpdateTableEntityOptions | undefined, - updateOptions?: UpdateTableEntityOptions + updateOptions?: UpdateTableEntityOptions, ): void { // UpdateMode is a string union const realUpdateMode: UpdateMode | undefined = @@ -121,7 +121,7 @@ export class TableTransaction { */ upsertEntity>( entity: TableEntity, - updateMode: UpdateMode = "Merge" + updateMode: UpdateMode = "Merge", ): void { this.actions.push(["upsert", entity, updateMode]); } @@ -162,7 +162,7 @@ export class InternalTableTransaction { client: ServiceClient, interceptClient: TableClientLike, credential?: NamedKeyCredential | SASCredential | TokenCredential, - allowInsecureConnection: boolean = false + allowInsecureConnection: boolean = false, ) { this.client = client; this.url = url; @@ -229,11 +229,11 @@ export class InternalTableTransaction { public deleteEntity( partitionKey: string, rowKey: string, - options?: DeleteTableEntityOptions + options?: DeleteTableEntityOptions, ): void { this.checkPartitionKey(partitionKey); this.state.pendingOperations.push( - this.interceptClient.deleteEntity(partitionKey, rowKey, options) + this.interceptClient.deleteEntity(partitionKey, rowKey, options), ); } @@ -246,7 +246,7 @@ export class InternalTableTransaction { public updateEntity( entity: TableEntity, mode: UpdateMode, - options?: UpdateTableEntityOptions + options?: UpdateTableEntityOptions, ): void { this.checkPartitionKey(entity.partitionKey); this.state.pendingOperations.push(this.interceptClient.updateEntity(entity, mode, options)); @@ -263,7 +263,7 @@ export class InternalTableTransaction { public upsertEntity( entity: TableEntity, mode: UpdateMode, - options?: OperationOptions + options?: OperationOptions, ): void { this.checkPartitionKey(entity.partitionKey); this.state.pendingOperations.push(this.interceptClient.upsertEntity(entity, mode, options)); @@ -277,7 +277,7 @@ export class InternalTableTransaction { const body = getTransactionHttpRequestBody( this.state.bodyParts, this.state.transactionId, - this.state.changesetId + this.state.changesetId, ); const headers = getTransactionHeaders(this.state.transactionId); @@ -297,7 +297,7 @@ export class InternalTableTransaction { const rawTransactionResponse = await this.client.sendRequest(request); return parseTransactionResponse(rawTransactionResponse); - } + }, ); } @@ -313,7 +313,7 @@ export class InternalTableTransaction { } export function parseTransactionResponse( - transactionResponse: PipelineResponse + transactionResponse: PipelineResponse, ): TableTransactionResponse { const subResponsePrefix = `--changesetresponse_`; const status = transactionResponse.status; @@ -345,7 +345,7 @@ export function parseTransactionResponse( bodyMatch[0], subResponseStatus, transactionResponse.request, - transactionResponse + transactionResponse, ); } @@ -370,7 +370,7 @@ function handleBodyError( bodyAsText: string, statusCode: number, request: PipelineRequest, - response: PipelineResponse + response: PipelineResponse, ) { let parsedError; @@ -405,7 +405,7 @@ export function prepateTransactionPipeline( pipeline: Pipeline, bodyParts: string[], changesetId: string, - isCosmos: boolean + isCosmos: boolean, ): void { // Fist, we need to clear all the existing policies to make sure we start // with a fresh state. diff --git a/sdk/tables/data-tables/src/models.ts b/sdk/tables/data-tables/src/models.ts index 4a00a4572b04..903180ac56b8 100644 --- a/sdk/tables/data-tables/src/models.ts +++ b/sdk/tables/data-tables/src/models.ts @@ -202,12 +202,12 @@ export interface Edm { value: T extends "Binary" ? string : T extends "Boolean" - ? boolean - : T extends "Double" - ? number - : T extends "Int32" - ? number - : string; + ? boolean + : T extends "Double" + ? number + : T extends "Int32" + ? number + : string; /** * The type of the entity property */ diff --git a/sdk/tables/data-tables/src/sas/accountSasSignatureValues.ts b/sdk/tables/data-tables/src/sas/accountSasSignatureValues.ts index 2bda8f34b5f5..71d85b68b978 100644 --- a/sdk/tables/data-tables/src/sas/accountSasSignatureValues.ts +++ b/sdk/tables/data-tables/src/sas/accountSasSignatureValues.ts @@ -87,7 +87,7 @@ export interface AccountSasSignatureValues { */ export function generateAccountSasQueryParameters( accountSasSignatureValues: AccountSasSignatureValues, - credential: NamedKeyCredential + credential: NamedKeyCredential, ): SasQueryParameters { const version = accountSasSignatureValues.version ? accountSasSignatureValues.version @@ -95,11 +95,11 @@ export function generateAccountSasQueryParameters( const parsedPermissions = accountSasPermissionsToString(accountSasSignatureValues.permissions); const parsedServices = accountSasServicesToString( - accountSasServicesFromString(accountSasSignatureValues.services) + accountSasServicesFromString(accountSasSignatureValues.services), ); // to and from string to guarantee the correct order of resoruce types is generated const parsedResourceTypes = accountSasResourceTypesToString( - accountSasResourceTypesFromString(accountSasSignatureValues.resourceTypes) + accountSasResourceTypesFromString(accountSasSignatureValues.resourceTypes), ); const stringToSign = [ diff --git a/sdk/tables/data-tables/src/sas/generateAccountSas.ts b/sdk/tables/data-tables/src/sas/generateAccountSas.ts index 18bf2444411a..9de52ef40b74 100644 --- a/sdk/tables/data-tables/src/sas/generateAccountSas.ts +++ b/sdk/tables/data-tables/src/sas/generateAccountSas.ts @@ -23,7 +23,7 @@ import { generateAccountSasQueryParameters } from "./accountSasSignatureValues"; */ export function generateAccountSas( credential: NamedKeyCredential, - options: AccountSasOptions = {} + options: AccountSasOptions = {}, ): string { const { expiresOn, @@ -34,7 +34,7 @@ export function generateAccountSas( } = options; if (!isNamedKeyCredential(credential)) { throw RangeError( - "Can only generate the account SAS when the client is initialized with a shared key credential" + "Can only generate the account SAS when the client is initialized with a shared key credential", ); } @@ -53,7 +53,7 @@ export function generateAccountSas( services: accountSasServicesToString(services), ...rest, }, - credential + credential, ).toString(); return sas; diff --git a/sdk/tables/data-tables/src/sas/generateTableSas.ts b/sdk/tables/data-tables/src/sas/generateTableSas.ts index 9516f416d40b..73daa3d40792 100644 --- a/sdk/tables/data-tables/src/sas/generateTableSas.ts +++ b/sdk/tables/data-tables/src/sas/generateTableSas.ts @@ -20,13 +20,13 @@ import { tableSasPermissionsFromString } from "./tableSasPermisions"; export function generateTableSas( tableName: string, credential: NamedKeyCredential, - options: TableSasSignatureValues = {} + options: TableSasSignatureValues = {}, ): string { let { expiresOn, permissions } = options; if (!isNamedKeyCredential(credential)) { throw RangeError( - "Can only generate the account SAS when the client is initialized with a shared key credential" + "Can only generate the account SAS when the client is initialized with a shared key credential", ); } diff --git a/sdk/tables/data-tables/src/sas/sasQueryParameters.ts b/sdk/tables/data-tables/src/sas/sasQueryParameters.ts index 26b5d11080b1..4e9357fa0bf8 100644 --- a/sdk/tables/data-tables/src/sas/sasQueryParameters.ts +++ b/sdk/tables/data-tables/src/sas/sasQueryParameters.ts @@ -264,21 +264,21 @@ export class SasQueryParameters { this.tryAppendQueryParameter( queries, param, - this.startsOn ? truncatedISO8061Date(this.startsOn, false) : undefined + this.startsOn ? truncatedISO8061Date(this.startsOn, false) : undefined, ); break; case "se": this.tryAppendQueryParameter( queries, param, - this.expiresOn ? truncatedISO8061Date(this.expiresOn, false) : undefined + this.expiresOn ? truncatedISO8061Date(this.expiresOn, false) : undefined, ); break; case "sip": this.tryAppendQueryParameter( queries, param, - this.ipRange ? ipRangeToString(this.ipRange) : undefined + this.ipRange ? ipRangeToString(this.ipRange) : undefined, ); break; case "si": @@ -294,14 +294,14 @@ export class SasQueryParameters { this.tryAppendQueryParameter( queries, param, - this.signedStartsOn ? truncatedISO8061Date(this.signedStartsOn, false) : undefined + this.signedStartsOn ? truncatedISO8061Date(this.signedStartsOn, false) : undefined, ); break; case "ske": // Signed key expiry time this.tryAppendQueryParameter( queries, param, - this.signedExpiresOn ? truncatedISO8061Date(this.signedExpiresOn, false) : undefined + this.signedExpiresOn ? truncatedISO8061Date(this.signedExpiresOn, false) : undefined, ); break; case "sks": // Signed key service diff --git a/sdk/tables/data-tables/src/sas/tableSasSignatureValues.ts b/sdk/tables/data-tables/src/sas/tableSasSignatureValues.ts index b8f414e23109..c302d8f1fa5e 100644 --- a/sdk/tables/data-tables/src/sas/tableSasSignatureValues.ts +++ b/sdk/tables/data-tables/src/sas/tableSasSignatureValues.ts @@ -101,7 +101,7 @@ export interface TableSasSignatureValues { export function generateTableSasQueryParameters( tableName: string, credential: NamedKeyCredential, - tableSasSignatureValues: TableSasSignatureValues + tableSasSignatureValues: TableSasSignatureValues, ): SasQueryParameters { const version = tableSasSignatureValues.version ?? SERVICE_VERSION; diff --git a/sdk/tables/data-tables/src/serialization.ts b/sdk/tables/data-tables/src/serialization.ts index ac168dc992ac..726c06d20736 100644 --- a/sdk/tables/data-tables/src/serialization.ts +++ b/sdk/tables/data-tables/src/serialization.ts @@ -137,7 +137,7 @@ function getTypedObject(value: any, type: string, disableTypeConversion: boolean export function deserialize>( obj: object, - disableTypeConversion: boolean = false + disableTypeConversion: boolean = false, ): T { const deserialized: any = {}; for (const [key, value] of Object.entries(obj)) { @@ -191,7 +191,7 @@ function getTypedNumber(value: number): { value: string; type: "Int32" | "Double export function deserializeObjectsArray( objArray: object[], - disableTypeConversion: boolean + disableTypeConversion: boolean, ): T[] { return objArray.map((obj) => deserialize(obj, disableTypeConversion)); } @@ -203,7 +203,7 @@ export function deserializeObjectsArray( * dates so that they are in the expected format */ export function serializeSignedIdentifiers( - signedIdentifiers: SignedIdentifier[] + signedIdentifiers: SignedIdentifier[], ): GeneratedSignedIdentifier[] { return signedIdentifiers.map((acl) => { const { id, accessPolicy } = acl; @@ -227,7 +227,7 @@ export function serializeSignedIdentifiers( } export function deserializeSignedIdentifier( - signedIdentifiers: GeneratedSignedIdentifier[] + signedIdentifiers: GeneratedSignedIdentifier[], ): SignedIdentifier[] { return signedIdentifiers.map((si) => { const { id, accessPolicy } = si; diff --git a/sdk/tables/data-tables/src/tablesNamedCredentialPolicy.browser.ts b/sdk/tables/data-tables/src/tablesNamedCredentialPolicy.browser.ts index b2fddcc82fda..d16fd0135e98 100644 --- a/sdk/tables/data-tables/src/tablesNamedCredentialPolicy.browser.ts +++ b/sdk/tables/data-tables/src/tablesNamedCredentialPolicy.browser.ts @@ -10,7 +10,7 @@ export function tablesNamedKeyCredentialPolicy(_credential: NamedKeyCredential): export function getAuthorizationHeader( _request: PipelineRequest, - _credential: NamedKeyCredential + _credential: NamedKeyCredential, ): never { throw new Error("Shared Access Key authentication is not supported in the browser"); } diff --git a/sdk/tables/data-tables/src/tablesNamedCredentialPolicy.ts b/sdk/tables/data-tables/src/tablesNamedCredentialPolicy.ts index fc1cdf6e1056..556044403295 100644 --- a/sdk/tables/data-tables/src/tablesNamedCredentialPolicy.ts +++ b/sdk/tables/data-tables/src/tablesNamedCredentialPolicy.ts @@ -36,7 +36,7 @@ export function tablesNamedKeyCredentialPolicy(credential: NamedKeyCredential): export function getAuthorizationHeader( request: PipelineRequest, - credential: NamedKeyCredential + credential: NamedKeyCredential, ): string { if (!request.headers.has(HeaderConstants.X_MS_DATE)) { request.headers.set(HeaderConstants.X_MS_DATE, new Date().toUTCString()); @@ -74,7 +74,7 @@ function getHeaderValueToSign(request: PipelineRequest, headerName: string): str function getCanonicalizedResourceString( request: PipelineRequest, - credential: NamedKeyCredential + credential: NamedKeyCredential, ): string { // https://docs.microsoft.com/rest/api/storageservices/authorize-with-shared-key#shared-key-lite-and-table-service-format-for-2009-09-19-and-later const url = new URL(request.url); diff --git a/sdk/tables/data-tables/src/utils/accountConnectionString.browser.ts b/sdk/tables/data-tables/src/utils/accountConnectionString.browser.ts index b83ac46fb5ad..a94a196cad9e 100644 --- a/sdk/tables/data-tables/src/utils/accountConnectionString.browser.ts +++ b/sdk/tables/data-tables/src/utils/accountConnectionString.browser.ts @@ -13,7 +13,7 @@ import { TableServiceClientOptions } from ".."; // eslint-disable-next-line @typescript-eslint/explicit-function-return-type, @typescript-eslint/explicit-module-boundary-types export function fromAccountConnectionString( _connectionString: ConnectionString, - _options?: TableServiceClientOptions + _options?: TableServiceClientOptions, ) { throw new Error("Account connection string is only supported in Node.js environment"); } @@ -23,7 +23,7 @@ export function getAccountConnectionString( _accountKey: string, _defaultEndpointsProtocol: string, _endpointSuffix?: string, - _tableEndpoint?: string + _tableEndpoint?: string, ): ConnectionString { throw new Error("Account connection string is only supported in Node.js environment"); } diff --git a/sdk/tables/data-tables/src/utils/accountConnectionString.ts b/sdk/tables/data-tables/src/utils/accountConnectionString.ts index 8afb710e9ef7..f0a5e6247630 100644 --- a/sdk/tables/data-tables/src/utils/accountConnectionString.ts +++ b/sdk/tables/data-tables/src/utils/accountConnectionString.ts @@ -13,11 +13,11 @@ import { TableServiceClientOptions } from ".."; */ export function fromAccountConnectionString( extractedCreds: ConnectionString, - options: TableServiceClientOptions = {} + options: TableServiceClientOptions = {}, ): ClientParamsFromConnectionString { const sharedKeyCredential = new AzureNamedKeyCredential( extractedCreds.accountName!, - extractedCreds.accountKey + extractedCreds.accountKey, ); return { @@ -32,7 +32,7 @@ export function getAccountConnectionString( accountKey: string, defaultEndpointsProtocol: string, endpointSuffix?: string, - tableEndpoint?: string + tableEndpoint?: string, ): ConnectionString { if (!tableEndpoint) { // TableEndpoint is not present in the Account connection string @@ -40,7 +40,7 @@ export function getAccountConnectionString( const protocol = defaultEndpointsProtocol.toLowerCase(); if (protocol !== "https" && protocol !== "http") { throw new Error( - "Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'" + "Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'", ); } if (!endpointSuffix) { diff --git a/sdk/tables/data-tables/src/utils/challengeAuthenticationUtils.ts b/sdk/tables/data-tables/src/utils/challengeAuthenticationUtils.ts index 1ef3619a5452..f48b18d2629e 100644 --- a/sdk/tables/data-tables/src/utils/challengeAuthenticationUtils.ts +++ b/sdk/tables/data-tables/src/utils/challengeAuthenticationUtils.ts @@ -13,7 +13,7 @@ import { authorizeRequestOnTenantChallenge } from "@azure/core-client"; export function setTokenChallengeAuthenticationPolicy( pipeline: Pipeline, credential: TokenCredential, - scopes: string | string[] + scopes: string | string[], ): void { // Make sure no bearerTokenPolicy is set. pipeline.removePolicy({ name: "bearerTokenPolicy" }); @@ -25,6 +25,6 @@ export function setTokenChallengeAuthenticationPolicy( }), { phase: "Sign", - } + }, ); } diff --git a/sdk/tables/data-tables/src/utils/connectionString.ts b/sdk/tables/data-tables/src/utils/connectionString.ts index 07f195bc2405..f5a5d1398eda 100644 --- a/sdk/tables/data-tables/src/utils/connectionString.ts +++ b/sdk/tables/data-tables/src/utils/connectionString.ts @@ -21,7 +21,7 @@ const DevelopmentConnectionString = */ export function getClientParamsFromConnectionString( connectionString: string, - options: TableServiceClientOptions = {} + options: TableServiceClientOptions = {}, ): ClientParamsFromConnectionString { if (connectionString.toLowerCase().indexOf("usedevelopmentstorage=true") !== -1) { connectionString = DevelopmentConnectionString; @@ -37,7 +37,7 @@ export function getClientParamsFromConnectionString( }; } else { throw new Error( - "Connection string must be either an Account connection string or a SAS connection string" + "Connection string must be either an Account connection string or a SAS connection string", ); } } @@ -61,7 +61,7 @@ export function extractConnectionStringParts(connectionString: string): Connecti getValueInConnString(connectionString, "AccountKey"), getValueInConnString(connectionString, "DefaultEndpointsProtocol"), getValueInConnString(connectionString, "EndpointSuffix"), - tableEndpoint + tableEndpoint, ); } else { return getSASConnectionString(connectionString, tableEndpoint); @@ -101,7 +101,7 @@ function getValueInConnString( | "AccountKey" | "DefaultEndpointsProtocol" | "EndpointSuffix" - | "SharedAccessSignature" + | "SharedAccessSignature", ): string { const searchKey = argument.toLowerCase(); const elements = connectionString.split(";").filter((e) => Boolean(e)); diff --git a/sdk/tables/data-tables/src/utils/continuationToken.ts b/sdk/tables/data-tables/src/utils/continuationToken.ts index 122c038f1aa8..b54ca90d42b6 100644 --- a/sdk/tables/data-tables/src/utils/continuationToken.ts +++ b/sdk/tables/data-tables/src/utils/continuationToken.ts @@ -13,7 +13,7 @@ interface ContinuationToken { */ export function encodeContinuationToken( nextPartitionKey?: string, - nextRowKey?: string + nextRowKey?: string, ): string | undefined { if (!nextPartitionKey) { return undefined; diff --git a/sdk/tables/data-tables/src/utils/errorHelpers.ts b/sdk/tables/data-tables/src/utils/errorHelpers.ts index 01f4d160dc0f..ea3462f8bd16 100644 --- a/sdk/tables/data-tables/src/utils/errorHelpers.ts +++ b/sdk/tables/data-tables/src/utils/errorHelpers.ts @@ -23,7 +23,7 @@ export type TableServiceErrorResponse = PipelineResponse & { export function handleTableAlreadyExists( error: unknown, - options: OperationOptions & { tableName?: string; logger?: AzureLogger } = {} + options: OperationOptions & { tableName?: string; logger?: AzureLogger } = {}, ): void { const responseError = getErrorResponse(error); if ( @@ -60,7 +60,7 @@ function isRestError(error: unknown): error is RestError { } function isTableServiceErrorResponse( - errorResponseBody: any + errorResponseBody: any, ): errorResponseBody is TableServiceError { return Boolean(errorResponseBody?.odataError); } diff --git a/sdk/tables/data-tables/src/utils/internalModels.ts b/sdk/tables/data-tables/src/utils/internalModels.ts index 89b2c1b3a6dd..8154c4931e54 100644 --- a/sdk/tables/data-tables/src/utils/internalModels.ts +++ b/sdk/tables/data-tables/src/utils/internalModels.ts @@ -113,7 +113,7 @@ export interface TableClientLike { */ createEntity( entity: TableEntity, - options?: OperationOptions + options?: OperationOptions, ): Promise; /** * Permanently deletes the current table with all of its entities. @@ -127,7 +127,7 @@ export interface TableClientLike { deleteEntity( partitionKey: string, rowKey: string, - options?: DeleteTableEntityOptions + options?: DeleteTableEntityOptions, ): Promise; /** * Returns a single entity in the table. @@ -138,7 +138,7 @@ export interface TableClientLike { getEntity( partitionKey: string, rowKey: string, - options?: GetTableEntityOptions + options?: GetTableEntityOptions, ): Promise>; /** * Queries entities in a table. @@ -146,7 +146,7 @@ export interface TableClientLike { * @param options - The options parameters. */ listEntities( - options?: ListTableEntitiesOptions + options?: ListTableEntitiesOptions, ): PagedAsyncIterableIterator>; /** * Update an entity in the table. @@ -159,7 +159,7 @@ export interface TableClientLike { updateEntity( entity: TableEntity, mode: UpdateMode, - options?: UpdateTableEntityOptions + options?: UpdateTableEntityOptions, ): Promise; /** * Upsert an entity in the table. @@ -173,6 +173,6 @@ export interface TableClientLike { upsertEntity( entity: TableEntity, mode: UpdateMode, - options?: OperationOptions + options?: OperationOptions, ): Promise; } diff --git a/sdk/tables/data-tables/src/utils/isCredential.ts b/sdk/tables/data-tables/src/utils/isCredential.ts index d1963a05a875..b13f6d26c28e 100644 --- a/sdk/tables/data-tables/src/utils/isCredential.ts +++ b/sdk/tables/data-tables/src/utils/isCredential.ts @@ -11,7 +11,7 @@ import { } from "@azure/core-auth"; export function isCredential( - credential: unknown + credential: unknown, ): credential is NamedKeyCredential | SASCredential | TokenCredential { return ( isSASCredential(credential) || isNamedKeyCredential(credential) || isTokenCredential(credential) diff --git a/sdk/tables/data-tables/src/utils/transactionHelpers.ts b/sdk/tables/data-tables/src/utils/transactionHelpers.ts index df52312e79ff..743dba592d82 100644 --- a/sdk/tables/data-tables/src/utils/transactionHelpers.ts +++ b/sdk/tables/data-tables/src/utils/transactionHelpers.ts @@ -40,7 +40,7 @@ export function getInitialTransactionBody(transactionId: string, changesetId: st export function getTransactionHttpRequestBody( bodyParts: string[], transactionId: string, - changesetId: string + changesetId: string, ): string { const transactionBoundary = getTransactionBoundary(transactionId); const changesetBoundary = getChangeSetBoundary(changesetId); diff --git a/sdk/tables/data-tables/test/internal/continuationToken.spec.ts b/sdk/tables/data-tables/test/internal/continuationToken.spec.ts index 32d64d7c7a88..72a191cbee4a 100644 --- a/sdk/tables/data-tables/test/internal/continuationToken.spec.ts +++ b/sdk/tables/data-tables/test/internal/continuationToken.spec.ts @@ -31,7 +31,7 @@ describe("continuation token utils", function () { it("should decode nextPartitionKey and nextRowKey", function () { const decoded = decodeContinuationToken( - "eyJuZXh0UGFydGl0aW9uS2V5IjoiZm9vIiwibmV4dFJvd0tleSI6ImJhciJ9" + "eyJuZXh0UGFydGl0aW9uS2V5IjoiZm9vIiwibmV4dFJvd0tleSI6ImJhciJ9", ); assert.deepEqual(decoded, { nextPartitionKey: "foo", nextRowKey: "bar" }); }); diff --git a/sdk/tables/data-tables/test/internal/node/generateSas.spec.ts b/sdk/tables/data-tables/test/internal/node/generateSas.spec.ts index ddeefa54b907..d3f776d301c9 100644 --- a/sdk/tables/data-tables/test/internal/node/generateSas.spec.ts +++ b/sdk/tables/data-tables/test/internal/node/generateSas.spec.ts @@ -33,7 +33,7 @@ describe("SAS generation", function () { // Create the table SAS token const tableSas = generateTableSas( "testTable", - new AzureNamedKeyCredential("keyName", "keySecret") + new AzureNamedKeyCredential("keyName", "keySecret"), ); assert.equal(tableSas, expectedSas1); @@ -44,7 +44,7 @@ describe("SAS generation", function () { const tableSas = generateTableSas( "testTable", new AzureNamedKeyCredential("keyName", "keySecret"), - { startPartitionKey: "P1", startRowKey: "1" } + { startPartitionKey: "P1", startRowKey: "1" }, ); assert.equal(tableSas, expectedSas8); @@ -55,7 +55,7 @@ describe("SAS generation", function () { const tableSas = generateTableSas( "testTable", new AzureNamedKeyCredential("keyName", "keySecret"), - { endPartitionKey: "P1", endRowKey: "1" } + { endPartitionKey: "P1", endRowKey: "1" }, ); assert.equal(tableSas, expectedSas9); @@ -71,7 +71,7 @@ describe("SAS generation", function () { add: true, delete: true, }, - } + }, ); assert.equal(tableSas, expectedSas2); @@ -84,7 +84,7 @@ describe("SAS generation", function () { new AzureNamedKeyCredential("keyName", "keySecret"), { expiresOn: new Date("2022-12-12"), - } + }, ); assert.equal(tableSas, expectedSas3); @@ -98,7 +98,7 @@ describe("SAS generation", function () { { identifier: "MyAccessPolicy", version: "2019-02-02", - } + }, ); assert.equal(tableSas, expectedSas4); diff --git a/sdk/tables/data-tables/test/internal/secondaryEndpointPolicy.spec.ts b/sdk/tables/data-tables/test/internal/secondaryEndpointPolicy.spec.ts index 2102913f397a..ec04dc860ce7 100644 --- a/sdk/tables/data-tables/test/internal/secondaryEndpointPolicy.spec.ts +++ b/sdk/tables/data-tables/test/internal/secondaryEndpointPolicy.spec.ts @@ -19,7 +19,7 @@ describe("tablesSecondaryEndpointPolicy", function () { assert.equal(req.url, expectedSecondary); assert.isUndefined(req.headers.get("tables-secondary-endpoint")); return { status: 200 } as any; - } + }, ); }); @@ -34,7 +34,7 @@ describe("tablesSecondaryEndpointPolicy", function () { async (req) => { assert.equal(req.url, primaryURL); return {} as any; - } + }, ); }); }); diff --git a/sdk/tables/data-tables/test/internal/serialization.spec.ts b/sdk/tables/data-tables/test/internal/serialization.spec.ts index 135e70b8c097..b3204abdafac 100644 --- a/sdk/tables/data-tables/test/internal/serialization.spec.ts +++ b/sdk/tables/data-tables/test/internal/serialization.spec.ts @@ -188,7 +188,7 @@ describe("Deserializer", function () { int64ObjProp: int64Value, "int64ObjProp@odata.type": "Edm.Int64", }, - true + true, ); assert.strictEqual(deserialized.int64ObjProp.value, `${int64Value}`); assert.strictEqual(deserialized.int64ObjProp.type, "Int64"); @@ -200,7 +200,7 @@ describe("Deserializer", function () { { intValue: intValue, }, - true + true, ); assert.strictEqual(deserialized.intValue.value, `${intValue}`); assert.strictEqual(deserialized.intValue.type, "Int32"); @@ -212,7 +212,7 @@ describe("Deserializer", function () { { boolValue, }, - true + true, ); assert.strictEqual(deserialized.boolValue.value, `${boolValue}`); assert.strictEqual(deserialized.boolValue.type, "Boolean"); @@ -226,7 +226,7 @@ describe("Deserializer", function () { { stringValue, }, - true + true, ); assert.strictEqual(deserialized.stringValue.value, stringValue); assert.strictEqual(deserialized.stringValue.type, "String"); @@ -240,7 +240,7 @@ describe("Deserializer", function () { { intValue: doubleValue, }, - true + true, ); assert.strictEqual(deserialized.intValue.value, `${doubleValue}`); assert.strictEqual(deserialized.intValue.type, "Int32"); @@ -254,7 +254,7 @@ describe("Deserializer", function () { { intValue: doubleValue, }, - true + true, ); assert.strictEqual(deserialized.intValue.value, `${doubleValue}`); assert.strictEqual(deserialized.intValue.type, "Double"); @@ -266,7 +266,7 @@ describe("Deserializer", function () { { intValue: intValue, }, - false + false, ); assert.strictEqual(deserialized.intValue, intValue); }); @@ -277,7 +277,7 @@ describe("Deserializer", function () { { intValue: decimalValue, }, - false + false, ); assert.strictEqual(deserialized.intValue, decimalValue); }); @@ -298,7 +298,7 @@ describe("Deserializer", function () { dateProp: dateValue.toJSON(), "dateProp@odata.type": "Edm.DateTime", }, - true + true, ); assert.deepEqual(deserialized.dateProp, { type: "DateTime", value: dateValue.toISOString() }); }); diff --git a/sdk/tables/data-tables/test/internal/utils.spec.ts b/sdk/tables/data-tables/test/internal/utils.spec.ts index 0f251d32a7bf..22c3cb104d19 100644 --- a/sdk/tables/data-tables/test/internal/utils.spec.ts +++ b/sdk/tables/data-tables/test/internal/utils.spec.ts @@ -108,7 +108,7 @@ describe("Utility Helpers", function () { "BlobEndpoint=BlobEndpoint=https://testaccount.blob.core.windows.net/;QueueEndpoint=https://testaccount.queue.core.windows.net/;FileEndpoint=https://testaccount.file.core.windows.net/;TableEndpoint=https://testaccount.table.core.windows.net/"; assert.throws( () => extractConnectionStringParts(invalidSAS), - /Invalid SharedAccessSignature/ + /Invalid SharedAccessSignature/, ); }); diff --git a/sdk/tables/data-tables/test/public/specialCharacters.spec.ts b/sdk/tables/data-tables/test/public/specialCharacters.spec.ts index f1eaddefc43c..faa805157a60 100644 --- a/sdk/tables/data-tables/test/public/specialCharacters.spec.ts +++ b/sdk/tables/data-tables/test/public/specialCharacters.spec.ts @@ -226,12 +226,12 @@ describe("SpecialCharacters", function () { } const hasEntity = results.some( - (e) => e.partitionKey === partitionKey && e.rowKey === rowKey && e.value === value + (e) => e.partitionKey === partitionKey && e.rowKey === rowKey && e.value === value, ); assert.isTrue( hasEntity, - `Couldn't find entity with partitionKey: ${partitionKey} and rowKey: ${rowKey}` + `Couldn't find entity with partitionKey: ${partitionKey} and rowKey: ${rowKey}`, ); }); }); diff --git a/sdk/tables/data-tables/test/public/tableclient.spec.ts b/sdk/tables/data-tables/test/public/tableclient.spec.ts index 7e0718b3eb8a..d5c79a29add6 100644 --- a/sdk/tables/data-tables/test/public/tableclient.spec.ts +++ b/sdk/tables/data-tables/test/public/tableclient.spec.ts @@ -143,13 +143,13 @@ describe(`TableClient`, function () { for (let i = 0; i < barItems; i++) { assert.isTrue( all.some((e) => e.rowKey === `${i}`), - `Couldn't find entity with row key ${i}` + `Couldn't find entity with row key ${i}`, ); } assert.isTrue( all.some((e) => e.rowKey === `binary1`), - `Couldn't find entity with row key binary1` + `Couldn't find entity with row key binary1`, ); }); @@ -167,7 +167,7 @@ describe(`TableClient`, function () { for (let i = 0; i < barItems; i++) { assert.isTrue( all.some((e) => e.rowKey === `${i}`), - `Couldn't find entity with row key ${i}` + `Couldn't find entity with row key ${i}`, ); } }); @@ -481,7 +481,7 @@ describe(`TableClient`, function () { await client.createEntity(testEntity, { onResponse: (res) => (createResult = res) }); const result = await client.getEntity( testEntity.partitionKey, - testEntity.rowKey + testEntity.rowKey, ); await client.deleteEntity(testEntity.partitionKey, testEntity.rowKey, { onResponse: (res) => (deleteResult = res), @@ -519,7 +519,7 @@ describe(`TableClient`, function () { await client.createEntity(testEntity, { onResponse: (res) => (createResult = res) }); const result = await client.getEntity( testEntity.partitionKey, - testEntity.rowKey + testEntity.rowKey, ); await client.deleteEntity(testEntity.partitionKey, testEntity.rowKey, { onResponse: (res) => (deleteResult = res), @@ -688,7 +688,7 @@ describe(`TableClient`, function () { "TableClient.listEntitiesPage", "TableClient.deleteEntity", "TableClient.deleteTable", - ] + ], ); }); }); diff --git a/sdk/tables/data-tables/test/public/tableserviceclient.spec.ts b/sdk/tables/data-tables/test/public/tableserviceclient.spec.ts index 9197ea747528..1ecf6f779c31 100644 --- a/sdk/tables/data-tables/test/public/tableserviceclient.spec.ts +++ b/sdk/tables/data-tables/test/public/tableserviceclient.spec.ts @@ -86,7 +86,7 @@ describe(`TableServiceClient`, function () { for (let i = 0; i < expectedTotalItems; i++) { assert.isTrue( all.some((t) => t.name === `ListTableTest${suffix}${i}`), - `Couldn't find table ListTableTest${suffix}${i}` + `Couldn't find table ListTableTest${suffix}${i}`, ); } }); @@ -118,7 +118,7 @@ describe(`TableServiceClient`, function () { for (let i = 0; i < expectedTotalItems; i++) { assert.isTrue( all.some((t) => t.name === `ListTableTest${suffix}${i}`), - `Couldn't find table ListTableTest${suffix}${i}` + `Couldn't find table ListTableTest${suffix}${i}`, ); } }); @@ -199,7 +199,7 @@ describe(`TableServiceClient`, function () { "TableServiceClient.setProperties", "TableServiceClient.getStatistics", "TableServiceClient.deleteTable", - ] + ], ); }); }); diff --git a/sdk/tables/data-tables/test/public/transaction.spec.ts b/sdk/tables/data-tables/test/public/transaction.spec.ts index ae0bf3d9ea95..0db513ab00c7 100644 --- a/sdk/tables/data-tables/test/public/transaction.spec.ts +++ b/sdk/tables/data-tables/test/public/transaction.spec.ts @@ -259,7 +259,7 @@ describe(`batch operations`, function () { for await (const entity of entities) { if (entity.partitionKey !== multiBatchPartitionKey) { throw new Error( - `Expected all entities to have the same partition key: ${multiBatchPartitionKey} but found ${entity.partitionKey}` + `Expected all entities to have the same partition key: ${multiBatchPartitionKey} but found ${entity.partitionKey}`, ); } diff --git a/sdk/tables/data-tables/test/public/utils/recordedClient.ts b/sdk/tables/data-tables/test/public/utils/recordedClient.ts index c014b27c4232..bddf748f42f3 100644 --- a/sdk/tables/data-tables/test/public/utils/recordedClient.ts +++ b/sdk/tables/data-tables/test/public/utils/recordedClient.ts @@ -50,7 +50,7 @@ export type CreateClientMode = export async function createTableClient( tableName: string, mode: CreateClientMode = "SASConnectionString", - recorder?: Recorder + recorder?: Recorder, ): Promise { let options: TableServiceClientOptions = {}; @@ -65,7 +65,7 @@ export async function createTableClient( case "SASConnectionString": if (!env.SAS_CONNECTION_STRING) { throw new Error( - "SASConnectionString is not defined, make sure that SAS_CONNECTION_STRING is defined in the environment" + "SASConnectionString is not defined, make sure that SAS_CONNECTION_STRING is defined in the environment", ); } @@ -75,7 +75,7 @@ export async function createTableClient( case "SASToken": if (!env.SAS_TOKEN || !env.TABLES_URL) { throw new Error( - "SAS Token and AccountURL must be defined, make sure that SAS_TOKEN and TABLES_URL are defined in the environment" + "SAS Token and AccountURL must be defined, make sure that SAS_TOKEN and TABLES_URL are defined in the environment", ); } @@ -83,14 +83,14 @@ export async function createTableClient( env.TABLES_URL, tableName, new AzureSASCredential(env.SAS_TOKEN ?? ""), - options + options, ); break; case "AccountKey": if (!env.ACCOUNT_NAME || !env.ACCOUNT_KEY || !env.TABLES_URL) { throw new Error( - "AccountName, AccountURL and AccountKey must be defined, make sure that ACCOUNT_NAME, ACCOUNT_KEY and TABLES_URL are defined in the environment" + "AccountName, AccountURL and AccountKey must be defined, make sure that ACCOUNT_NAME, ACCOUNT_KEY and TABLES_URL are defined in the environment", ); } @@ -98,14 +98,14 @@ export async function createTableClient( env.TABLES_URL, tableName, new AzureNamedKeyCredential(env.ACCOUNT_NAME, env.ACCOUNT_KEY), - options + options, ); break; case "TokenCredential": { if (!env.AZURE_TENANT_ID || !env.AZURE_CLIENT_ID || !env.AZURE_CLIENT_SECRET) { throw new Error( - "AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_CLIENT_SECRET must be defined, make sure that they are in the environment" + "AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_CLIENT_SECRET must be defined, make sure that they are in the environment", ); } @@ -117,7 +117,7 @@ export async function createTableClient( case "AccountConnectionString": if (!env.ACCOUNT_CONNECTION_STRING) { throw new Error( - "AccountConnectionString is not defined, make sure that ACCOUNT_CONNECTION_STRING is defined in the environment" + "AccountConnectionString is not defined, make sure that ACCOUNT_CONNECTION_STRING is defined in the environment", ); } client = TableClient.fromConnectionString(env.ACCOUNT_CONNECTION_STRING, tableName, options); @@ -132,7 +132,7 @@ export async function createTableClient( export async function createTableServiceClient( mode: CreateClientMode = "SASConnectionString", - recorder?: Recorder + recorder?: Recorder, ): Promise { let options: TableServiceClientOptions = {}; @@ -148,7 +148,7 @@ export async function createTableServiceClient( case "SASConnectionString": if (!env.SAS_CONNECTION_STRING) { throw new Error( - "SASConnectionString is not defined, make sure that SAS_CONNECTION_STRING is defined in the environment" + "SASConnectionString is not defined, make sure that SAS_CONNECTION_STRING is defined in the environment", ); } @@ -158,7 +158,7 @@ export async function createTableServiceClient( case "SASToken": if (!env.SAS_TOKEN || !env.TABLES_URL) { throw new Error( - "SAS Token and AccountURL must be defined, make sure that SAS_TOKEN and TABLES_URL are defined in the environment" + "SAS Token and AccountURL must be defined, make sure that SAS_TOKEN and TABLES_URL are defined in the environment", ); } @@ -168,21 +168,21 @@ export async function createTableServiceClient( case "AccountKey": if (!env.ACCOUNT_NAME || !env.ACCOUNT_KEY || !env.TABLES_URL) { throw new Error( - "AccountName, AccountURL and AccountKey must be defined, make sure that ACCOUNT_NAME, ACCOUNT_KEY and TABLES_URL are defined in the environment" + "AccountName, AccountURL and AccountKey must be defined, make sure that ACCOUNT_NAME, ACCOUNT_KEY and TABLES_URL are defined in the environment", ); } client = new TableServiceClient( env.TABLES_URL, new AzureNamedKeyCredential(env.ACCOUNT_NAME, env.ACCOUNT_KEY), - options + options, ); break; case "TokenCredential": { if (!env.AZURE_TENANT_ID || !env.AZURE_CLIENT_ID || !env.AZURE_CLIENT_SECRET) { throw new Error( - "AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_CLIENT_SECRET must be defined, make sure that they are in the environment" + "AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_CLIENT_SECRET must be defined, make sure that they are in the environment", ); } @@ -197,7 +197,7 @@ export async function createTableServiceClient( case "AccountConnectionString": if (!env.ACCOUNT_CONNECTION_STRING) { throw new Error( - "AccountConnectionString is not defined, make sure that ACCOUNT_CONNECTION_STRING is defined in the environment" + "AccountConnectionString is not defined, make sure that ACCOUNT_CONNECTION_STRING is defined in the environment", ); } diff --git a/sdk/tables/perf-tests/data-tables/package.json b/sdk/tables/perf-tests/data-tables/package.json index 5e61747f6620..d6400d28a184 100644 --- a/sdk/tables/perf-tests/data-tables/package.json +++ b/sdk/tables/perf-tests/data-tables/package.json @@ -16,11 +16,11 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -29,9 +29,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/tables/perf-tests/data-tables/test/createComplexEntityBatchTest.spec.ts b/sdk/tables/perf-tests/data-tables/test/createComplexEntityBatchTest.spec.ts index 41077d3a3401..cba6c23dafab 100644 --- a/sdk/tables/perf-tests/data-tables/test/createComplexEntityBatchTest.spec.ts +++ b/sdk/tables/perf-tests/data-tables/test/createComplexEntityBatchTest.spec.ts @@ -35,7 +35,7 @@ export class CreateComplexEntityBatchTest extends TablesTest { const batches: TransactionAction[][] = createBatch( "complex", - this.parsedOptions.batchSize.value! + this.parsedOptions.batchSize.value!, ); for (const batch of batches) { diff --git a/sdk/tables/perf-tests/data-tables/test/createSimpleEntityBatchTest.spec.ts b/sdk/tables/perf-tests/data-tables/test/createSimpleEntityBatchTest.spec.ts index 091c9b47ea87..bd83ae20ed3c 100644 --- a/sdk/tables/perf-tests/data-tables/test/createSimpleEntityBatchTest.spec.ts +++ b/sdk/tables/perf-tests/data-tables/test/createSimpleEntityBatchTest.spec.ts @@ -35,7 +35,7 @@ export class CreateSimpleEntityBatchTest extends TablesTest { const batches: TransactionAction[][] = createBatch( "simple", - this.parsedOptions.batchSize.value! + this.parsedOptions.batchSize.value!, ); for (const batch of batches) { diff --git a/sdk/tables/perf-tests/data-tables/test/index.spec.ts b/sdk/tables/perf-tests/data-tables/test/index.spec.ts index 9174d5cd6971..1c8ac2ac128d 100644 --- a/sdk/tables/perf-tests/data-tables/test/index.spec.ts +++ b/sdk/tables/perf-tests/data-tables/test/index.spec.ts @@ -20,7 +20,7 @@ const perfProgram = createPerfProgram( CreateComplexEntityTest, CreateComplexEntityBatchTest, ListSimpleEntitiesTest, - ListComplexEntitiesTest + ListComplexEntitiesTest, ); perfProgram.run(); diff --git a/sdk/tables/perf-tests/data-tables/test/listComplexEntities.spec.ts b/sdk/tables/perf-tests/data-tables/test/listComplexEntities.spec.ts index 1552c704ba45..2f125038a110 100644 --- a/sdk/tables/perf-tests/data-tables/test/listComplexEntities.spec.ts +++ b/sdk/tables/perf-tests/data-tables/test/listComplexEntities.spec.ts @@ -28,7 +28,7 @@ export class ListComplexEntitiesTest extends TablesTest> extends Per this.client = TableClient.fromConnectionString( connectionString, tableName, - this.configureClientOptions({}) + this.configureClientOptions({}), ); } diff --git a/sdk/template/perf-tests/template/package.json b/sdk/template/perf-tests/template/package.json index baf26b6119c8..dd1a35491a91 100644 --- a/sdk/template/perf-tests/template/package.json +++ b/sdk/template/perf-tests/template/package.json @@ -18,11 +18,11 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -31,9 +31,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm test-dist types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/template/perf-tests/template/test/getConfigurationSetting.spec.ts b/sdk/template/perf-tests/template/test/getConfigurationSetting.spec.ts index 9f6b1b006ba4..2bc2e3978b97 100644 --- a/sdk/template/perf-tests/template/test/getConfigurationSetting.spec.ts +++ b/sdk/template/perf-tests/template/test/getConfigurationSetting.spec.ts @@ -35,7 +35,7 @@ export class GetConfigurationSettingTest extends TemplateTest { await this.templateClient.getConfigurationSetting( - GetConfigurationSettingTest.prefix + this.parsedOptions.settingName.value + GetConfigurationSettingTest.prefix + this.parsedOptions.settingName.value, ); } diff --git a/sdk/template/perf-tests/template/test/templateBase.spec.ts b/sdk/template/perf-tests/template/test/templateBase.spec.ts index 07600b00af8d..976d18526cf7 100644 --- a/sdk/template/perf-tests/template/test/templateBase.spec.ts +++ b/sdk/template/perf-tests/template/test/templateBase.spec.ts @@ -23,7 +23,7 @@ export abstract class TemplateTest extends PerfTest { this.templateClient = new ConfigurationClient(endpointUrl, new DefaultAzureCredential()); this.appConfigurationClient = new AppConfigurationClient( endpointUrl, - new DefaultAzureCredential() + new DefaultAzureCredential(), ); } } diff --git a/sdk/template/template-dpg/package.json b/sdk/template/template-dpg/package.json index 2b2fe0ae6680..e3ec8dde4920 100644 --- a/sdk/template/template-dpg/package.json +++ b/sdk/template/template-dpg/package.json @@ -34,12 +34,12 @@ "build:test": "tsc -p . && dev-tool run bundle", "build:output": "node scripts/renameOutput.mjs", "build": "npm run customize && npm run build:test && api-extractor run --local && npm run build:output", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "customize": "dev-tool customization apply -s sources/generated/src -c sources/customizations/src && npm run format", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"sources/customizations/**/*.ts\" \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"sources/customizations/**/*.ts\" \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -104,7 +104,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.2", "ts-node": "^10.0.0", diff --git a/sdk/template/template-dpg/sources/customizations/src/WidgetServiceClient.ts b/sdk/template/template-dpg/sources/customizations/src/WidgetServiceClient.ts index 203c426a5f86..38142ab7327b 100644 --- a/sdk/template/template-dpg/sources/customizations/src/WidgetServiceClient.ts +++ b/sdk/template/template-dpg/sources/customizations/src/WidgetServiceClient.ts @@ -14,7 +14,7 @@ export class WidgetServiceClient { constructor( endpoint: string, credentialOrOptions?: TokenCredential | WidgetServiceClientOptions, - options: WidgetServiceClientOptions = {} + options: WidgetServiceClientOptions = {}, ) { if (isTokenCredential(credentialOrOptions)) { this._client = createWidgetService(endpoint, credentialOrOptions, options); diff --git a/sdk/template/template-dpg/sources/customizations/src/api/WidgetServiceContext.ts b/sdk/template/template-dpg/sources/customizations/src/api/WidgetServiceContext.ts index 687dae6db0d6..0e09629d49ad 100644 --- a/sdk/template/template-dpg/sources/customizations/src/api/WidgetServiceContext.ts +++ b/sdk/template/template-dpg/sources/customizations/src/api/WidgetServiceContext.ts @@ -11,17 +11,17 @@ import { WidgetServiceContext } from "../../../generated/src/rest/clientDefiniti */ export function createWidgetService( endpoint: string, - options?: ClientOptions + options?: ClientOptions, ): WidgetServiceContext; export function createWidgetService( endpoint: string, credential: TokenCredential, - options?: ClientOptions + options?: ClientOptions, ): WidgetServiceContext; export function createWidgetService( endpoint: string, credentialOrOptions?: TokenCredential | ClientOptions, - options: ClientOptions = {} + options: ClientOptions = {}, ): WidgetServiceContext { const baseUrl = endpoint; if (isTokenCredential(credentialOrOptions)) { diff --git a/sdk/template/template-dpg/sources/customizations/src/api/operations.ts b/sdk/template/template-dpg/sources/customizations/src/api/operations.ts index 8fbf675364a4..cc187c0d5f60 100644 --- a/sdk/template/template-dpg/sources/customizations/src/api/operations.ts +++ b/sdk/template/template-dpg/sources/customizations/src/api/operations.ts @@ -22,7 +22,7 @@ import { foo } from "./foo.js"; export async function analyzeWidget( context: Client, id: string, - options?: AnalyzeWidgetOptions + options?: AnalyzeWidgetOptions, ): Promise { try { foo(); diff --git a/sdk/template/template-dpg/sources/customizations/src/rest/widgetServiceClient.ts b/sdk/template/template-dpg/sources/customizations/src/rest/widgetServiceClient.ts index a333f3452932..4ddbf8f3faf4 100644 --- a/sdk/template/template-dpg/sources/customizations/src/rest/widgetServiceClient.ts +++ b/sdk/template/template-dpg/sources/customizations/src/rest/widgetServiceClient.ts @@ -12,18 +12,18 @@ import { TokenCredential, isTokenCredential } from "@azure/core-auth"; export default function createClient( endpoint: string, credential: TokenCredential, - options?: ClientOptions + options?: ClientOptions, ): WidgetServiceContext; export default function createClient( endpoint: string, - options?: ClientOptions + options?: ClientOptions, ): WidgetServiceContext; export default function createClient( endpoint: string, credentialOrOptions?: TokenCredential | ClientOptions, - options: ClientOptions = {} + options: ClientOptions = {}, ): WidgetServiceContext { let credential: TokenCredential | undefined; if (isTokenCredential(credentialOrOptions)) { diff --git a/sdk/template/template-dpg/src/WidgetServiceClient.ts b/sdk/template/template-dpg/src/WidgetServiceClient.ts index bf31a76cd2a1..016855a61dc4 100644 --- a/sdk/template/template-dpg/src/WidgetServiceClient.ts +++ b/sdk/template/template-dpg/src/WidgetServiceClient.ts @@ -41,7 +41,7 @@ export class WidgetServiceClient { constructor( endpoint: string, credentialOrOptions?: TokenCredential | WidgetServiceClientOptions, - options: WidgetServiceClientOptions = {} + options: WidgetServiceClientOptions = {}, ) { if (isTokenCredential(credentialOrOptions)) { this._client = createWidgetService(endpoint, credentialOrOptions, options); @@ -73,7 +73,7 @@ export class WidgetServiceClient { createWidget( weight: number, color: ColorType, - options: CreateWidgetOptions = { requestOptions: {} } + options: CreateWidgetOptions = { requestOptions: {} }, ): Promise { return createWidget(this._client, weight, color, options); } @@ -94,7 +94,7 @@ export class WidgetServiceClient { /** Analyze a widget. The only guarantee is that this method will return a string containing the results of the analysis. */ analyzeWidget( id: string, - options: AnalyzeWidgetOptions = { requestOptions: {} } + options: AnalyzeWidgetOptions = { requestOptions: {} }, ): Promise { return analyzeWidget(this._client, id, options); } diff --git a/sdk/template/template-dpg/src/api/WidgetServiceContext.ts b/sdk/template/template-dpg/src/api/WidgetServiceContext.ts index 8a4874536574..f95e4165fd97 100644 --- a/sdk/template/template-dpg/src/api/WidgetServiceContext.ts +++ b/sdk/template/template-dpg/src/api/WidgetServiceContext.ts @@ -23,17 +23,17 @@ export interface WidgetServiceClientOptions extends ClientOptions {} */ export function createWidgetService( endpoint: string, - options?: ClientOptions + options?: ClientOptions, ): WidgetServiceContext; export function createWidgetService( endpoint: string, credential: TokenCredential, - options?: ClientOptions + options?: ClientOptions, ): WidgetServiceContext; export function createWidgetService( endpoint: string, credentialOrOptions?: TokenCredential | ClientOptions, - options: ClientOptions = {} + options: ClientOptions = {}, ): WidgetServiceContext { const baseUrl = endpoint; if (isTokenCredential(credentialOrOptions)) { diff --git a/sdk/template/template-dpg/src/api/operations.ts b/sdk/template/template-dpg/src/api/operations.ts index bdb7e678d5b4..6142369a1869 100644 --- a/sdk/template/template-dpg/src/api/operations.ts +++ b/sdk/template/template-dpg/src/api/operations.ts @@ -50,7 +50,7 @@ export interface AnalyzeWidgetOptions extends RequestOptions {} export function _listWidgetsSend( context: Client, - options: ListWidgetsOptions = { requestOptions: {} } + options: ListWidgetsOptions = { requestOptions: {} }, ): StreamableMethod { return context.path("/widgets").get({ allowInsecureConnection: options.requestOptions?.allowInsecureConnection, @@ -60,7 +60,7 @@ export function _listWidgetsSend( } export async function _listWidgetsDeserialize( - result: ListWidgets200Response | ListWidgetsDefaultResponse + result: ListWidgets200Response | ListWidgetsDefaultResponse, ): Promise { if (isUnexpected(result)) { throw result.body; @@ -80,7 +80,7 @@ export async function _listWidgetsDeserialize( */ export async function listWidgets( context: Client, - options: ListWidgetsOptions = { requestOptions: {} } + options: ListWidgetsOptions = { requestOptions: {} }, ): Promise { const result = await _listWidgetsSend(context, options); return _listWidgetsDeserialize(result); @@ -89,7 +89,7 @@ export async function listWidgets( export function _getWidgetSend( context: Client, id: string, - options: GetWidgetOptions = { requestOptions: {} } + options: GetWidgetOptions = { requestOptions: {} }, ): StreamableMethod { return context.path("/widgets/{id}", id).get({ allowInsecureConnection: options.requestOptions?.allowInsecureConnection, @@ -99,7 +99,7 @@ export function _getWidgetSend( } export async function _getWidgetDeserialize( - result: GetWidget200Response | GetWidgetDefaultResponse + result: GetWidget200Response | GetWidgetDefaultResponse, ): Promise { if (isUnexpected(result)) { throw result.body; @@ -116,7 +116,7 @@ export async function _getWidgetDeserialize( export async function getWidget( context: Client, id: string, - options: GetWidgetOptions = { requestOptions: {} } + options: GetWidgetOptions = { requestOptions: {} }, ): Promise { const result = await _getWidgetSend(context, id, options); return _getWidgetDeserialize(result); @@ -126,7 +126,7 @@ export function _createWidgetSend( context: Client, weight: number, color: ColorType, - options: CreateWidgetOptions = { requestOptions: {} } + options: CreateWidgetOptions = { requestOptions: {} }, ): StreamableMethod { return context.path("/widgets").post({ allowInsecureConnection: options.requestOptions?.allowInsecureConnection, @@ -137,7 +137,7 @@ export function _createWidgetSend( } export async function _createWidgetDeserialize( - result: CreateWidget201Response | CreateWidgetDefaultResponse + result: CreateWidget201Response | CreateWidgetDefaultResponse, ): Promise { if (isUnexpected(result)) { throw result.body; @@ -160,7 +160,7 @@ export async function createWidget( context: Client, weight: number, color: ColorType, - options: CreateWidgetOptions = { requestOptions: {} } + options: CreateWidgetOptions = { requestOptions: {} }, ): Promise { const result = await _createWidgetSend(context, weight, color, options); return _createWidgetDeserialize(result); @@ -169,7 +169,7 @@ export async function createWidget( export function _updateWidgetSend( context: Client, id: string, - options: UpdateWidgetOptions = { requestOptions: {} } + options: UpdateWidgetOptions = { requestOptions: {} }, ): StreamableMethod { return context.path("/widgets/{id}", id).patch({ allowInsecureConnection: options.requestOptions?.allowInsecureConnection, @@ -180,7 +180,7 @@ export function _updateWidgetSend( } export async function _updateWidgetDeserialize( - result: UpdateWidget200Response | UpdateWidgetDefaultResponse + result: UpdateWidget200Response | UpdateWidgetDefaultResponse, ): Promise { if (isUnexpected(result)) { throw result.body; @@ -200,7 +200,7 @@ export async function _updateWidgetDeserialize( export async function updateWidget( context: Client, id: string, - options: UpdateWidgetOptions = { requestOptions: {} } + options: UpdateWidgetOptions = { requestOptions: {} }, ): Promise { const result = await _updateWidgetSend(context, id, options); return _updateWidgetDeserialize(result); @@ -209,7 +209,7 @@ export async function updateWidget( export function _deleteWidgetSend( context: Client, id: string, - options: DeleteWidgetOptions = { requestOptions: {} } + options: DeleteWidgetOptions = { requestOptions: {} }, ): StreamableMethod { return context.path("/widgets/{id}", id).delete({ allowInsecureConnection: options.requestOptions?.allowInsecureConnection, @@ -219,7 +219,7 @@ export function _deleteWidgetSend( } export async function _deleteWidgetDeserialize( - result: DeleteWidget204Response | DeleteWidgetDefaultResponse + result: DeleteWidget204Response | DeleteWidgetDefaultResponse, ): Promise { if (isUnexpected(result)) { throw result.body; @@ -232,7 +232,7 @@ export async function _deleteWidgetDeserialize( export async function deleteWidget( context: Client, id: string, - options: DeleteWidgetOptions = { requestOptions: {} } + options: DeleteWidgetOptions = { requestOptions: {} }, ): Promise { const result = await _deleteWidgetSend(context, id, options); return _deleteWidgetDeserialize(result); @@ -241,7 +241,7 @@ export async function deleteWidget( export function _analyzeWidgetSend( context: Client, id: string, - options: AnalyzeWidgetOptions = { requestOptions: {} } + options: AnalyzeWidgetOptions = { requestOptions: {} }, ): StreamableMethod { return context.path("/widgets/{id}/analyze", id).post({ allowInsecureConnection: options.requestOptions?.allowInsecureConnection, @@ -251,7 +251,7 @@ export function _analyzeWidgetSend( } export async function _analyzeWidgetDeserialize( - result: AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse + result: AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse, ): Promise { if (isUnexpected(result)) { throw result.body; @@ -269,7 +269,7 @@ export async function _analyzeWidgetDeserialize( export async function analyzeWidget( context: Client, id: string, - options?: AnalyzeWidgetOptions + options?: AnalyzeWidgetOptions, ): Promise { try { foo(); @@ -289,7 +289,7 @@ export async function analyzeWidget( async function _analyzeWidget( context: Client, id: string, - options: AnalyzeWidgetOptions = { requestOptions: {} } + options: AnalyzeWidgetOptions = { requestOptions: {} }, ): Promise { const result = await _analyzeWidgetSend(context, id, options); return _analyzeWidgetDeserialize(result); diff --git a/sdk/template/template-dpg/src/rest/clientDefinitions.ts b/sdk/template/template-dpg/src/rest/clientDefinitions.ts index 7782c5a4abe6..5ee72d6d9d7b 100644 --- a/sdk/template/template-dpg/src/rest/clientDefinitions.ts +++ b/sdk/template/template-dpg/src/rest/clientDefinitions.ts @@ -40,7 +40,7 @@ export interface ListWidgets { * It does not accept any options or parameters. */ get( - options?: ListWidgetsParameters + options?: ListWidgetsParameters, ): StreamableMethod; /** * Create a new widget. @@ -49,32 +49,32 @@ export interface ListWidgets { * result in an error. */ post( - options?: CreateWidgetParameters + options?: CreateWidgetParameters, ): StreamableMethod; } export interface GetWidget { /** Get a widget by ID. */ get( - options?: GetWidgetParameters + options?: GetWidgetParameters, ): StreamableMethod; /** * Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields * are optional and will be updated within the widget if provided. */ patch( - options?: UpdateWidgetParameters + options?: UpdateWidgetParameters, ): StreamableMethod; /** Delete a widget by ID. */ delete( - options?: DeleteWidgetParameters + options?: DeleteWidgetParameters, ): StreamableMethod; } export interface AnalyzeWidget { /** Analyze a widget. The only guarantee is that this method will return a string containing the results of the analysis. */ post( - options?: AnalyzeWidgetParameters + options?: AnalyzeWidgetParameters, ): StreamableMethod; } diff --git a/sdk/template/template-dpg/src/rest/isUnexpected.ts b/sdk/template/template-dpg/src/rest/isUnexpected.ts index 6fed4c26583a..65844f440722 100644 --- a/sdk/template/template-dpg/src/rest/isUnexpected.ts +++ b/sdk/template/template-dpg/src/rest/isUnexpected.ts @@ -34,22 +34,22 @@ const responseMap: Record = { }; export function isUnexpected( - response: ListWidgets200Response | ListWidgetsDefaultResponse + response: ListWidgets200Response | ListWidgetsDefaultResponse, ): response is ListWidgetsDefaultResponse; export function isUnexpected( - response: CreateWidget201Response | CreateWidgetDefaultResponse + response: CreateWidget201Response | CreateWidgetDefaultResponse, ): response is CreateWidgetDefaultResponse; export function isUnexpected( - response: GetWidget200Response | GetWidgetDefaultResponse + response: GetWidget200Response | GetWidgetDefaultResponse, ): response is GetWidgetDefaultResponse; export function isUnexpected( - response: UpdateWidget200Response | UpdateWidgetDefaultResponse + response: UpdateWidget200Response | UpdateWidgetDefaultResponse, ): response is UpdateWidgetDefaultResponse; export function isUnexpected( - response: DeleteWidget204Response | DeleteWidgetDefaultResponse + response: DeleteWidget204Response | DeleteWidgetDefaultResponse, ): response is DeleteWidgetDefaultResponse; export function isUnexpected( - response: AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse + response: AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse, ): response is AnalyzeWidgetDefaultResponse; export function isUnexpected( response: @@ -64,7 +64,7 @@ export function isUnexpected( | DeleteWidget204Response | DeleteWidgetDefaultResponse | AnalyzeWidget200Response - | AnalyzeWidgetDefaultResponse + | AnalyzeWidgetDefaultResponse, ): response is | ListWidgetsDefaultResponse | CreateWidgetDefaultResponse @@ -113,7 +113,7 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // {guid} ==> $ // {guid}:export ==> :export$ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "" + pathParts[j] || "", ); if (!isMatched) { diff --git a/sdk/template/template-dpg/src/rest/widgetServiceClient.ts b/sdk/template/template-dpg/src/rest/widgetServiceClient.ts index 47fec529a407..b407fcaa8427 100644 --- a/sdk/template/template-dpg/src/rest/widgetServiceClient.ts +++ b/sdk/template/template-dpg/src/rest/widgetServiceClient.ts @@ -20,16 +20,16 @@ import { WidgetServiceContext } from "./clientDefinitions.js"; export default function createClient( endpoint: string, credential: TokenCredential, - options?: ClientOptions + options?: ClientOptions, ): WidgetServiceContext; export default function createClient( endpoint: string, - options?: ClientOptions + options?: ClientOptions, ): WidgetServiceContext; export default function createClient( endpoint: string, credentialOrOptions?: TokenCredential | ClientOptions, - options: ClientOptions = {} + options: ClientOptions = {}, ): WidgetServiceContext { let credential: TokenCredential | undefined; if (isTokenCredential(credentialOrOptions)) { diff --git a/sdk/template/template-dpg/test/public/widgetService.spec.ts b/sdk/template/template-dpg/test/public/widgetService.spec.ts index 5d21213cfc77..9e176ef31266 100644 --- a/sdk/template/template-dpg/test/public/widgetService.spec.ts +++ b/sdk/template/template-dpg/test/public/widgetService.spec.ts @@ -30,7 +30,7 @@ function createClient(recorder: Recorder): WidgetServiceClient { // recorder.configureClientOptions() updates the client options by adding the test proxy policy to // redirect the requests to reach the proxy tool in record/playback modes instead of // hitting the live service. - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); return client; diff --git a/sdk/template/template/package.json b/sdk/template/template/package.json index 6282d5071937..cd9434b2615f 100644 --- a/sdk/template/template/package.json +++ b/sdk/template/template/package.json @@ -39,11 +39,11 @@ "build:samples": "echo Obsolete", "build:test": "npm run clean && tsc -p . && dev-tool run bundle", "build": "npm run build:test && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/**/*.spec.ts'", @@ -120,7 +120,6 @@ "karma-mocha-reporter": "^2.2.5", "mocha": "^10.0.0", "nyc": "^15.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/template/template/src/configurationClient.ts b/sdk/template/template/src/configurationClient.ts index 63b8af3cd1db..c8e542cd327e 100644 --- a/sdk/template/template/src/configurationClient.ts +++ b/sdk/template/template/src/configurationClient.ts @@ -66,7 +66,7 @@ export class ConfigurationClient { constructor( endpointUrl: string, credential: TokenCredential, - options: ConfigurationClientOptions = {} + options: ConfigurationClientOptions = {}, ) { // The AAD scope for an API is usually the baseUri + "/.default", but it // may be different for your service. @@ -118,7 +118,7 @@ export class ConfigurationClient { */ public async getConfigurationSetting( key: string, - options?: GetConfigurationSettingOptions + options?: GetConfigurationSettingOptions, ): Promise; /** @@ -130,12 +130,12 @@ export class ConfigurationClient { */ public async getConfigurationSetting( setting: ConfigurationSetting, - options?: GetConfigurationSettingOptions + options?: GetConfigurationSettingOptions, ): Promise; public async getConfigurationSetting( keyOrSetting: string | ConfigurationSetting, - options: GetConfigurationSettingOptions = {} + options: GetConfigurationSettingOptions = {}, ): Promise { let key: string; let ifNoneMatch: string | undefined; @@ -149,7 +149,7 @@ export class ConfigurationClient { key = keyOrSetting; if (options.onlyIfChanged) { throw new RangeError( - "You must pass a ConfigurationSetting instead of a key to perform a conditional fetch." + "You must pass a ConfigurationSetting instead of a key to perform a conditional fetch.", ); } } else { @@ -162,7 +162,7 @@ export class ConfigurationClient { // You must pass updatedOptions to any calls you make within the callback. return this.client.getKeyValue(key, { ...updatedOptions, ifNoneMatch }); - } + }, ); } } diff --git a/sdk/template/template/test/public/configurationClient.spec.ts b/sdk/template/template/test/public/configurationClient.spec.ts index 63bac33c5638..3d34d67beac6 100644 --- a/sdk/template/template/test/public/configurationClient.spec.ts +++ b/sdk/template/template/test/public/configurationClient.spec.ts @@ -34,7 +34,7 @@ function createConfigurationClient(recorder: Recorder): ConfigurationClient { // recorder.configureClientOptions() updates the client options by adding the test proxy policy to // redirect the requests to reach the proxy tool in record/playback modes instead of // hitting the live service. - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); return client; @@ -98,7 +98,7 @@ describe("[AAD] ConfigurationClient functional tests", function () { const key = assertEnvironmentVariable("APPCONFIG_TEST_SETTING_KEY"); await assert.supportsTracing( (options) => client.getConfigurationSetting(key, options), - ["ConfigurationClient.getConfigurationSetting"] + ["ConfigurationClient.getConfigurationSetting"], ); }); }); diff --git a/sdk/test-utils/perf/package.json b/sdk/test-utils/perf/package.json index ca5e174027cc..c671f66750bd 100644 --- a/sdk/test-utils/perf/package.json +++ b/sdk/test-utils/perf/package.json @@ -14,10 +14,10 @@ "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", "build": "npm run clean && tsc -p .", "build:test": "echo not needed", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", "extract-api": "echo skipped", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "node dist-esm/test/index.spec.js", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -76,10 +76,10 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "typescript": "~5.2.0", "ts-node": "^10.0.0", - "@types/fs-extra": "^9.0.0" + "@types/fs-extra": "^9.0.0", + "@azure/dev-tool": "^1.0.0" } } diff --git a/sdk/test-utils/perf/src/barrier.ts b/sdk/test-utils/perf/src/barrier.ts index 8b71b8807382..16ff2e58e933 100644 --- a/sdk/test-utils/perf/src/barrier.ts +++ b/sdk/test-utils/perf/src/barrier.ts @@ -24,10 +24,10 @@ export type BarrierMessage = { const getBarrierMessage = async ( message: BarrierMessageType, - stage: Stage + stage: Stage, ): Promise => multicoreUtils.getMessage( - (m: Message) => m.tag === "barrier" && m.message === message && m.stage === stage + (m: Message) => m.tag === "barrier" && m.message === message && m.stage === stage, ) as Promise; /** @@ -42,7 +42,7 @@ export const performStage = async (stage: Stage) => { // before we send the messages to everyone. If we don't, a message might be missed due to the race condition since we don't buffer // the messages. const allComplete = multicoreUtils.getMessageFromAll( - (msg) => msg.tag === "barrier" && msg.stage === stage && msg.message === "exit" + (msg) => msg.tag === "barrier" && msg.stage === stage && msg.message === "exit", ); // Send a message to all workers so they start working @@ -58,7 +58,8 @@ export const performStage = async (stage: Stage) => { // manager doesn't continue until all of the workers are guaranteed to have received the completion message. Again, // we start waiting for acknowledgements before broadcasting the completion message so that we don't miss any acks. const allAcked = multicoreUtils.getMessageFromAll( - (msg) => msg.tag === "barrier" && msg.stage === stage && msg.message === "acknowledgeCompletion" + (msg) => + msg.tag === "barrier" && msg.stage === stage && msg.message === "acknowledgeCompletion", ); multicoreUtils.broadcastMessage({ diff --git a/sdk/test-utils/perf/src/batchPerfTest.ts b/sdk/test-utils/perf/src/batchPerfTest.ts index a1e0fab2d061..890aad9305bc 100644 --- a/sdk/test-utils/perf/src/batchPerfTest.ts +++ b/sdk/test-utils/perf/src/batchPerfTest.ts @@ -10,7 +10,7 @@ import { AdditionalPolicyConfig } from "@azure/core-client"; * Enables writing perf tests where the number of operations are dynamic for the method/call being tested. */ export abstract class BatchPerfTest< - TOptions = Record + TOptions = Record, > extends PerfTestBase { private readonly testProxy!: string; public testProxyHttpClient!: TestProxyHttpClient; @@ -35,19 +35,19 @@ export abstract class BatchPerfTest< * Note: Client Options must have "additionalPolicies" as part of the options. */ public configureClientOptions( - options: T + options: T, ): T { if (this.testProxy) { this.testProxyHttpClient = new TestProxyHttpClient( this.testProxy, - this.parsedOptions["insecure"].value ?? false + this.parsedOptions["insecure"].value ?? false, ); if (!options.additionalPolicies) options.additionalPolicies = []; options.additionalPolicies.push({ policy: testProxyHttpPolicy( this.testProxyHttpClient, this.testProxy.startsWith("https"), - this.parsedOptions["insecure"].value ?? false + this.parsedOptions["insecure"].value ?? false, ), position: "perRetry", }); @@ -67,7 +67,7 @@ export abstract class BatchPerfTest< */ public async runAll( durationMilliseconds: number, - abortController: AbortController + abortController: AbortController, ): Promise { this.completedOperations = 0; this.lastMillisecondsElapsed = 0; @@ -147,7 +147,7 @@ export abstract class BatchPerfTest< recorder = this.testProxyHttpClient; } else { throw new Error( - "testProxyClient is not set, please make sure the client/options are configured properly." + "testProxyClient is not set, please make sure the client/options are configured properly.", ); } diff --git a/sdk/test-utils/perf/src/eventPerfTest.ts b/sdk/test-utils/perf/src/eventPerfTest.ts index b57105651b38..673c3a246e09 100644 --- a/sdk/test-utils/perf/src/eventPerfTest.ts +++ b/sdk/test-utils/perf/src/eventPerfTest.ts @@ -10,7 +10,7 @@ import { isDefined } from "@azure/core-util"; * - Typically, such APIs("subscribe" method) offered by the AMQP based SDKs - event-hubs/service-bus. */ export abstract class EventPerfTest< - TOptions = Record + TOptions = Record, > extends PerfTestBase { startTime: bigint; private testDuration = 0; @@ -34,7 +34,7 @@ export abstract class EventPerfTest< */ public async runAll( durationMilliseconds: number, - abortController: AbortController + abortController: AbortController, ): Promise { this.startTime = process.hrtime.bigint(); // process.hrtime.bigint() method returns the current high-resolution real-time in nanoseconds as a bigint this.completedOperations = 0; diff --git a/sdk/test-utils/perf/src/managerProgram.ts b/sdk/test-utils/perf/src/managerProgram.ts index f70a6bcfa93c..0ec189ed9216 100644 --- a/sdk/test-utils/perf/src/managerProgram.ts +++ b/sdk/test-utils/perf/src/managerProgram.ts @@ -98,7 +98,7 @@ export class ManagerPerfProgram implements PerfProgram { `operations in a weighted-average of ` + `${formatNumber(weightedAverage, 4)}s ` + `(${formatNumber(operationsPerSecond, 4)} ops/s, ` + - `${formatNumber(secondsPerOperation, 4)} s/op)` + `${formatNumber(secondsPerOperation, 4)} s/op)`, ); } @@ -111,7 +111,9 @@ export class ManagerPerfProgram implements PerfProgram { this.lastCompleted = totalCompleted; console.log( - `${elapsedTime}\t\t${currentCompleted}\t\t${totalCompleted}\t\t${averageCompleted.toFixed(2)}` + `${elapsedTime}\t\t${currentCompleted}\t\t${totalCompleted}\t\t${averageCompleted.toFixed( + 2, + )}`, ); } @@ -161,7 +163,7 @@ export class ManagerPerfProgram implements PerfProgram { console.log( `\n=== ${title} mode, iteration ${iterationIndex + 1}. Logs every ${ millisecondsToLog / 1000 - }s ===` + }s ===`, ); console.log(`ElapsedTime\tCurrent\t\tTotal\t\tAverage`); @@ -177,7 +179,7 @@ export class ManagerPerfProgram implements PerfProgram { this.managerUtils.getMessageFromAll((m) => m.tag === "statusUpdate").then(handleUpdate); const resultMessages = (await this.managerUtils.getMessageFromAll( - (m) => m.tag === "reportResults" + (m) => m.tag === "reportResults", )) as ReportResultsMessage[]; // stop the handleUpdate part when it next gets a chance @@ -232,7 +234,7 @@ export class ManagerPerfProgram implements PerfProgram { } await this.logPackageVersions( - this.parsedOptions["list-transitive-dependencies"].value ?? false + this.parsedOptions["list-transitive-dependencies"].value ?? false, ); const options = this.dummyTestInstance.parsedOptions; @@ -242,12 +244,12 @@ export class ManagerPerfProgram implements PerfProgram { this.createWorkers(); console.log( - `=== Calling globalSetup() once per CPU for (all) the instance(s) of ${this.testName} ===` + `=== Calling globalSetup() once per CPU for (all) the instance(s) of ${this.testName} ===`, ); await performStage("globalSetup"); console.log( - `=== Calling setup() for the ${this.parallelNumber} instantiated ${this.testName} tests ===` + `=== Calling setup() for the ${this.parallelNumber} instantiated ${this.testName} tests ===`, ); await performStage("setup"); @@ -267,11 +269,11 @@ export class ManagerPerfProgram implements PerfProgram { if (!options["no-cleanup"].value) { console.log( - `=== Calling cleanup() for the ${this.parallelNumber} instantiated ${this.testName} tests ===` + `=== Calling cleanup() for the ${this.parallelNumber} instantiated ${this.testName} tests ===`, ); await performStage("cleanup"); console.log( - `=== Calling globalCleanup() once per CPU for (all) the instance(s) of ${this.testName} ===` + `=== Calling globalCleanup() once per CPU for (all) the instance(s) of ${this.testName} ===`, ); await performStage("globalCleanup"); } diff --git a/sdk/test-utils/perf/src/multicore.ts b/sdk/test-utils/perf/src/multicore.ts index 4cf19cc9c3b0..4c02b749f8f8 100644 --- a/sdk/test-utils/perf/src/multicore.ts +++ b/sdk/test-utils/perf/src/multicore.ts @@ -63,10 +63,10 @@ export interface ManagerMulticoreUtils { onMessage(callback: (message: WorkerToManagerMessageWithId) => void): void; offMessage(callback: (message: WorkerToManagerMessageWithId) => void): void; getMessage( - filter: MessageFilter + filter: MessageFilter, ): Promise; getMessageFromAll( - filter: MessageFilter + filter: MessageFilter, ): Promise; } @@ -82,7 +82,7 @@ export type MulticoreUtils = WorkerMulticoreUtils | ManagerMulticoreUtils; const makeGetMessage = ( onMessage: (callback: (message: T) => void) => void, - offMessage: (callback: (message: T) => void) => void + offMessage: (callback: (message: T) => void) => void, ) => (filter?: MessageFilter) => new Promise((resolve) => { @@ -100,7 +100,7 @@ const createWorkerUtils = ( sendMessage: (message: any) => void, onMessage: (callback: (message: any) => void) => void, offMessage: (callback: (message: any) => void) => void, - workerData: WorkerData + workerData: WorkerData, ): WorkerMulticoreUtils => ({ isManager: false, sendMessage, @@ -119,7 +119,7 @@ const createChildProcess = (data: WorkerData): WorkerLike => // Configure an IPC channel so that messages can be sent via process.send. // https://nodejs.org/api/child_process.html#optionsstdio stdio: ["inherit", "inherit", "inherit", "ipc"], - } + }, ); const createWorkerThread = (data: WorkerData): WorkerLike => @@ -155,7 +155,7 @@ const createManagerUtils = (mode: "worker_threads" | "child_processes"): Manager // Wait for a message that matches the filter from each worker. const getMessageFromAll = (filter: MessageFilter) => Promise.all( - workers.map((_, i) => getMessage(({ workerId, ...msg }) => filter(msg) && workerId === i)) + workers.map((_, i) => getMessage(({ workerId, ...msg }) => filter(msg) && workerId === i)), ); return { @@ -188,7 +188,7 @@ export const multicoreUtils: MulticoreUtils = (() => { (msg) => process.send && process.send(msg), (cb) => process.on("message", cb), (cb) => process.off("message", cb), - JSON.parse(process.argv[2]) as WorkerData + JSON.parse(process.argv[2]) as WorkerData, ); } else if (workerThreads.parentPort) { // we are a worker thread @@ -196,7 +196,7 @@ export const multicoreUtils: MulticoreUtils = (() => { (msg) => workerThreads.parentPort?.postMessage(msg), (cb) => workerThreads.parentPort?.on("message", cb), (cb) => workerThreads.parentPort?.off("message", cb), - workerThreads.workerData as WorkerData + workerThreads.workerData as WorkerData, ); } else { // we are a manager diff --git a/sdk/test-utils/perf/src/options.ts b/sdk/test-utils/perf/src/options.ts index 701b3313b653..3fcd7dbb2940 100644 --- a/sdk/test-utils/perf/src/options.ts +++ b/sdk/test-utils/perf/src/options.ts @@ -165,7 +165,7 @@ export const defaultPerfOptions: PerfOptionDictionary = { */ function maybeOverrideCPUsOption( minimistResult: MinimistParsedArgs, - result: Partial> + result: Partial>, ) { if (!isDefined(minimistResult["profile"]) || !minimistResult["profile"]) { return; @@ -174,7 +174,7 @@ function maybeOverrideCPUsOption( if (isDefined(minimistResult["cpus"]) && minimistResult["cpus"] !== 1) { throw new Error( `Unexpected value for "cpus" provided, you can only set "cpus = 1" when "profile" is set to true. - Please re-run the test command without the "cpus" option.` + Please re-run the test command without the "cpus" option.`, ); } @@ -194,11 +194,11 @@ function maybeOverrideCPUsOption( * @returns A new options dictionary. */ export function parsePerfOption( - options: PerfOptionDictionary + options: PerfOptionDictionary, ): ParsedPerfOptions { const minimistResult: MinimistParsedArgs = minimist( process.argv, - getBooleanOptionDetails(options) + getBooleanOptionDetails(options), ); const result: Partial> = {}; @@ -256,11 +256,11 @@ export function parsePerfOption( export function validateOptions(options: PerfOptionDictionary): void { const minimistResult: MinimistParsedArgs = minimist( process.argv, - getBooleanOptionDetails(options) + getBooleanOptionDetails(options), ); const longNames = Object.entries>(options).map( - ([optionName, { longName }]) => longName ?? optionName + ([optionName, { longName }]) => longName ?? optionName, ); const shortNames = Object.values>(options) .map(({ shortName }) => shortName) diff --git a/sdk/test-utils/perf/src/parallel.ts b/sdk/test-utils/perf/src/parallel.ts index 0619c6f050b6..84a36c83504f 100644 --- a/sdk/test-utils/perf/src/parallel.ts +++ b/sdk/test-utils/perf/src/parallel.ts @@ -13,13 +13,13 @@ export async function executeParallel( func: (count: number, parallelIndex: number) => Promise, count: number, - parallel: number + parallel: number, ): Promise { async function executeParallelHelper( func: (count: number, parallelIndex: number) => Promise, count: number, parallelIndex: number, - completed: { count: number } + completed: { count: number }, ) { while (completed.count < count) { const currentCount = completed.count++; diff --git a/sdk/test-utils/perf/src/perfTestBase.ts b/sdk/test-utils/perf/src/perfTestBase.ts index bb1fbed452f0..a4aefe81b863 100644 --- a/sdk/test-utils/perf/src/perfTestBase.ts +++ b/sdk/test-utils/perf/src/perfTestBase.ts @@ -16,7 +16,7 @@ import { Snapshot } from "./snapshot"; * Defines the behavior of the PerfTest constructor, to use the class as a value. */ export interface PerfTestConstructor< - TOptions extends Record = Record + TOptions extends Record = Record, > { new (): PerfTestBase; } @@ -89,7 +89,7 @@ export abstract class PerfTestBase> { public abstract runAll( durationMilliseconds: number, - abortController: AbortController + abortController: AbortController, ): Promise; public getSnapshot(): Snapshot { diff --git a/sdk/test-utils/perf/src/program.ts b/sdk/test-utils/perf/src/program.ts index 3b732f7189ef..a2f7557b9b87 100644 --- a/sdk/test-utils/perf/src/program.ts +++ b/sdk/test-utils/perf/src/program.ts @@ -60,8 +60,8 @@ function selectPerfTest(tests: PerfTestConstructor[]): PerfTestConstructor { if (testIndex === -1) { throw new Error( `Couldn't find a test named ${testName}. Try with any of the following: ${testsNames.join( - ", " - )}` + ", ", + )}`, ); } diff --git a/sdk/test-utils/perf/src/testProxyHttpClient.ts b/sdk/test-utils/perf/src/testProxyHttpClient.ts index e6cd02446409..3b694cbc1ccd 100644 --- a/sdk/test-utils/perf/src/testProxyHttpClient.ts +++ b/sdk/test-utils/perf/src/testProxyHttpClient.ts @@ -42,7 +42,7 @@ export class RecordingStateManager { | "starting-recording" | "stopping-recording" | "starting-playback" - | "stopping-playback" + | "stopping-playback", ): void { if (currentFlow === "starting-recording") { if (this.state === "started-recording") { @@ -73,7 +73,7 @@ export class RecordingStateManager { * setState */ public setState( - state: "started-recording" | "stopped-recording" | "started-playback" | "stopped-playback" + state: "started-recording" | "stopped-recording" | "started-playback" | "stopped-playback", ): void { this.state = state; } @@ -210,7 +210,7 @@ export class TestProxyHttpClient { export function testProxyHttpPolicy( testProxyHttpClient: TestProxyHttpClient, isHttps: boolean, - insecure: boolean + insecure: boolean, ): PipelinePolicy { return { name: "recording policy", diff --git a/sdk/test-utils/perf/src/utils/profiling.ts b/sdk/test-utils/perf/src/utils/profiling.ts index 6276a9392f35..2b46092b4730 100644 --- a/sdk/test-utils/perf/src/utils/profiling.ts +++ b/sdk/test-utils/perf/src/utils/profiling.ts @@ -3,7 +3,7 @@ import * as fs from "fs-extra"; export async function runWithCpuProfile( functionToProfile: () => Promise, - profileFilePath: string + profileFilePath: string, ) { const session = new Session(); session.connect(); diff --git a/sdk/test-utils/perf/src/utils/utils.ts b/sdk/test-utils/perf/src/utils/utils.ts index 323b7e941bf9..9657435a432b 100644 --- a/sdk/test-utils/perf/src/utils/utils.ts +++ b/sdk/test-utils/perf/src/utils/utils.ts @@ -57,7 +57,7 @@ export async function drainStream(stream: NodeJS.ReadableStream): Promise export async function makeRequest( uri: string, requestOptions: RequestOptions, - insecure: boolean + insecure: boolean, ): Promise { return new Promise((resolve, reject) => { let req: http.ClientRequest; @@ -68,7 +68,7 @@ export async function makeRequest( ...requestOptions, agent: getCachedHttpsAgent(insecure), }, - resolve + resolve, ); } else { req = http.request(uri, requestOptions, resolve); diff --git a/sdk/test-utils/perf/test/declareTests.ts b/sdk/test-utils/perf/test/declareTests.ts index 46bf7e699916..11a382beee62 100644 --- a/sdk/test-utils/perf/test/declareTests.ts +++ b/sdk/test-utils/perf/test/declareTests.ts @@ -37,7 +37,7 @@ const tests: TestDefinition[] = [ // Normalize everything in the array above for export. export const allTests: NormalizedTestDefinition[] = tests.map((test) => - typeof test === "function" ? { testClass: test } : test + typeof test === "function" ? { testClass: test } : test, ); // Exports all the test classes so that the index.spec.ts can pick them up diff --git a/sdk/test-utils/perf/test/event/mockEventHubConsumerClient.ts b/sdk/test-utils/perf/test/event/mockEventHubConsumerClient.ts index fb6d0b51222b..8302a72e7b3e 100644 --- a/sdk/test-utils/perf/test/event/mockEventHubConsumerClient.ts +++ b/sdk/test-utils/perf/test/event/mockEventHubConsumerClient.ts @@ -60,7 +60,7 @@ export class MockEventHubConsumerClient { public subscribe( handlers: EventHandlers, - options?: SubscribeOptions + options?: SubscribeOptions, ): { close: () => Promise } { this.internalSubscribe(handlers, options); return { @@ -84,14 +84,17 @@ export class MockEventHubConsumerClient { const promises = []; for (let i = 0; i < this.partitions; i++) { promises.push( - this.handlePartition(handlers.processEvents, i, maxEventsPerSecondPerPartition) + this.handlePartition(handlers.processEvents, i, maxEventsPerSecondPerPartition), ); } if (options && options?.delayToRaiseErrorInSeconds > 0) { promises.push( - this.processFuncWithDelay(async () => { - await handlers.processError(new Error(`new error ${randomUUID()}`)); - }, options?.delayToRaiseErrorInSeconds * 1000) + this.processFuncWithDelay( + async () => { + await handlers.processError(new Error(`new error ${randomUUID()}`)); + }, + options?.delayToRaiseErrorInSeconds * 1000, + ), ); } @@ -101,7 +104,7 @@ export class MockEventHubConsumerClient { private async handlePartition( processEvents: (events: Event[], context: { partitionId: number }) => Promise, partitionId: number, - maxEventsPerSecondPerPartition: number + maxEventsPerSecondPerPartition: number, ) { // eventArrays[i] contains an array of events with length i const eventArrays: Event[][] = new Array(this.maxBatchSize); @@ -141,7 +144,7 @@ export class MockEventHubConsumerClient { private async processFuncWithDelay(func: () => Promise, delayInMilliseconds: number) { return new Promise((resolve) => - this.timers.push(setTimeout(async () => resolve(await func()), delayInMilliseconds)) + this.timers.push(setTimeout(async () => resolve(await func()), delayInMilliseconds)), ); } diff --git a/sdk/test-utils/perf/test/event/mockEventHubConsumerClientTest.spec.ts b/sdk/test-utils/perf/test/event/mockEventHubConsumerClientTest.spec.ts index 8992bc893f86..fbd66484339d 100644 --- a/sdk/test-utils/perf/test/event/mockEventHubConsumerClientTest.spec.ts +++ b/sdk/test-utils/perf/test/event/mockEventHubConsumerClientTest.spec.ts @@ -50,7 +50,7 @@ export class MockEventHubConsumerClientTest extends EventPerfTest Promise } { this.internalSubscribe(handlers, options); return { @@ -71,9 +71,12 @@ export class MockEventReceiver { } if (options?.raiseErrorAfterInSeconds) { promises.push( - this.processFuncWithDelay(async () => { - await handlers.processError(new Error(`new error ${randomUUID()}`)); - }, options?.raiseErrorAfterInSeconds * 1000) + this.processFuncWithDelay( + async () => { + await handlers.processError(new Error(`new error ${randomUUID()}`)); + }, + options?.raiseErrorAfterInSeconds * 1000, + ), ); } @@ -84,14 +87,14 @@ export class MockEventReceiver { while (this.closeCalled === false) { await this.processFuncWithDelay( async () => processEvent({ body: randomUUID() }), - this.getRandomInteger(this.minDelay, this.maxDelay) + this.getRandomInteger(this.minDelay, this.maxDelay), ); } } private async processFuncWithDelay(func: () => Promise, delayInMilliseconds: number) { return new Promise((resolve) => - this.timers.push(setTimeout(async () => resolve(await func()), delayInMilliseconds)) + this.timers.push(setTimeout(async () => resolve(await func()), delayInMilliseconds)), ); } diff --git a/sdk/test-utils/perf/test/event/mockEventReceiverTest.spec.ts b/sdk/test-utils/perf/test/event/mockEventReceiverTest.spec.ts index 2bb4437eefb4..b6dcd6535509 100644 --- a/sdk/test-utils/perf/test/event/mockEventReceiverTest.spec.ts +++ b/sdk/test-utils/perf/test/event/mockEventReceiverTest.spec.ts @@ -26,7 +26,7 @@ export class MockEventReceiverTest extends EventPerfTest { this.errorRaised(error); }, }, - { raiseErrorAfterInSeconds: 10 } + { raiseErrorAfterInSeconds: 10 }, ); } diff --git a/sdk/test-utils/perf/test/log.spec.ts b/sdk/test-utils/perf/test/log.spec.ts index 4681629c722e..aa0d50b66277 100644 --- a/sdk/test-utils/perf/test/log.spec.ts +++ b/sdk/test-utils/perf/test/log.spec.ts @@ -42,7 +42,7 @@ export class LogTest extends PerfTest { public globalCleanup(): void { this.log( - `globalCleanup() - GlobalCompleted Operations: ${LogTest.loggedGlobalCompletedOperations}` + `globalCleanup() - GlobalCompleted Operations: ${LogTest.loggedGlobalCompletedOperations}`, ); } diff --git a/sdk/test-utils/perf/test/options.spec.ts b/sdk/test-utils/perf/test/options.spec.ts index 65102093417c..ccc1e12490c1 100644 --- a/sdk/test-utils/perf/test/options.spec.ts +++ b/sdk/test-utils/perf/test/options.spec.ts @@ -67,7 +67,7 @@ export class OptionsTest extends PerfTest { } if (this.options[optionName].defaultValue && !this.parsedOptions[longName].value) { throw new Error( - `The option ${optionName} says it has a default value. It should therefore have a value.` + `The option ${optionName} says it has a default value. It should therefore have a value.`, ); } if ( @@ -75,7 +75,7 @@ export class OptionsTest extends PerfTest { (this.minimistResult[longName] || this.options[optionName].defaultValue) ) { throw new Error( - `The option ${optionName} should be equal in both the inner options object, and the values obtained from minimist, or at least equal to its default value.` + `The option ${optionName} should be equal in both the inner options object, and the values obtained from minimist, or at least equal to its default value.`, ); } } diff --git a/sdk/test-utils/perf/test/setupCleanup.spec.ts b/sdk/test-utils/perf/test/setupCleanup.spec.ts index f86aa3f51246..030362b25701 100644 --- a/sdk/test-utils/perf/test/setupCleanup.spec.ts +++ b/sdk/test-utils/perf/test/setupCleanup.spec.ts @@ -37,12 +37,12 @@ export class SetupCleanupTest extends PerfTest { } if (this.state.setup !== this.parsedOptions.parallel.value) { throw new Error( - "setup() should be called exactly as many times as the parallel paramter says." + "setup() should be called exactly as many times as the parallel paramter says.", ); } if (this.state.cleanup !== this.parsedOptions.parallel.value) { throw new Error( - "cleanup() should be called exactly as many times as the parallel paramter says." + "cleanup() should be called exactly as many times as the parallel paramter says.", ); } } diff --git a/sdk/test-utils/recorder/package.json b/sdk/test-utils/recorder/package.json index 5858fb7f8b56..bab0a71b42ba 100644 --- a/sdk/test-utils/recorder/package.json +++ b/sdk/test-utils/recorder/package.json @@ -19,10 +19,10 @@ "build:samples": "echo Skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm test-dist typings *.tgz *.log", "extract-api": "echo skipped", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "concurrently \"npm run tests:server\" \"npm run test:browser-with-proxy\" --kill-others --success first", "integration-test:node": "concurrently \"npm run tests:server\" \"npm run test:node-with-proxy\" --kill-others --success first", "test:node-with-proxy": "dev-tool run test:node-ts-input -- --timeout 1200000 \"test/*.spec.ts\"", @@ -96,7 +96,6 @@ "karma-mocha-reporter": "^2.2.5", "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", diff --git a/sdk/test-utils/recorder/src/matcher.ts b/sdk/test-utils/recorder/src/matcher.ts index cb7e576ded4e..1403e85c0d2e 100644 --- a/sdk/test-utils/recorder/src/matcher.ts +++ b/sdk/test-utils/recorder/src/matcher.ts @@ -48,7 +48,7 @@ export async function setMatcher( httpClient: HttpClient, matcher: Matcher, recordingId?: string, - matcherBody: InternalCustomMatcherOptions = { compareBodies: true, ignoreQueryOrdering: false } + matcherBody: InternalCustomMatcherOptions = { compareBodies: true, ignoreQueryOrdering: false }, ): Promise { const url = `${recorderUrl}${paths.admin}${paths.setMatcher}`; diff --git a/sdk/test-utils/recorder/src/options.ts b/sdk/test-utils/recorder/src/options.ts index c1a19cae8279..52f1496c9bee 100644 --- a/sdk/test-utils/recorder/src/options.ts +++ b/sdk/test-utils/recorder/src/options.ts @@ -10,7 +10,7 @@ export type RecordingOptions = { export async function setRecordingOptions( recorderUrl: string, httpClient: HttpClient, - { handleRedirects, tlsValidationCert }: RecordingOptions + { handleRedirects, tlsValidationCert }: RecordingOptions, ) { const rawBody: Record = { HandleRedirects: handleRedirects, diff --git a/sdk/test-utils/recorder/src/recorder.ts b/sdk/test-utils/recorder/src/recorder.ts index 630d0bcbdd3a..96b06cd9e8f1 100644 --- a/sdk/test-utils/recorder/src/recorder.ts +++ b/sdk/test-utils/recorder/src/recorder.ts @@ -64,7 +64,7 @@ export class Recorder { this.httpClient = createDefaultHttpClient(); } else { throw new Error( - "Unable to determine the recording file path, testContext provided is not defined." + "Unable to determine the recording file path, testContext provided is not defined.", ); } } @@ -93,22 +93,22 @@ export class Recorder { if (requestAlreadyRedirected) { logger.verbose( `[Recorder#redirectRequest] Determined that the request to ${request.url} has already been redirected, not attempting to redirect again.`, - request + request, ); } else { if (this.recordingId === undefined) { logger.error( "[Recorder#redirectRequest] Could not redirect request since the recorder was not started", - request + request, ); throw new RecorderError( - "Attempted to redirect a request, but the recorder was not started. Make sure to call Recorder#start before making any requests." + "Attempted to redirect a request, but the recorder was not started. Make sure to call Recorder#start before making any requests.", ); } logger.info( `[Recorder#redirectRequest] Redirecting request to ${request.url} through the test proxy`, - request + request, ); request.headers.set("x-recording-id", this.recordingId); @@ -136,7 +136,7 @@ export class Recorder { private revertRequestChanges(request: PipelineRequest, originalUrl: string): void { logger.info( `[Recorder#revertRequestChanges] "undo"s the URL changes made by the recorder to hit the test proxy after the response is received,`, - request + request, ); const proxyHeaders = ["x-recording-id", "x-recording-mode"]; for (const headerName of proxyHeaders) { @@ -156,7 +156,7 @@ export class Recorder { */ async addSanitizers( options: SanitizerOptions, - mode: ("record" | "playback")[] = ["record"] + mode: ("record" | "playback")[] = ["record"], ): Promise { if (isLiveMode()) return; const actualTestMode = getTestMode() as "record" | "playback"; @@ -182,7 +182,7 @@ export class Recorder { */ static async addSessionSanitizers( options: SanitizerOptions, - mode: ("record" | "playback")[] = ["record"] + mode: ("record" | "playback")[] = ["record"], ): Promise { if (isLiveMode()) { return; @@ -229,7 +229,7 @@ export class Recorder { this.sessionFile, this.recordingId, "POST", - this.assetsJson + this.assetsJson, ); if (ensureExistence(this.httpClient, "TestProxyHttpClient.httpClient")) { @@ -242,7 +242,7 @@ export class Recorder { } catch (e) { if (isRestError(e) && e.message.includes("ECONNREFUSED")) { throw new RecorderError( - `Test proxy appears to not be running at ${Recorder.url}. Make sure that you are running your tests using the dev-tool scripts.` + `Test proxy appears to not be running at ${Recorder.url}. Make sure that you are running your tests using the dev-tool scripts.`, ); } else { throw e; @@ -265,7 +265,7 @@ export class Recorder { errorMessage.includes("does not exist") ) { logger.info( - "[Recorder#start] start request failed, trying again without assets.json specified" + "[Recorder#start] start request failed, trying again without assets.json specified", ); const retryRequest = createRecordingRequest( @@ -273,7 +273,7 @@ export class Recorder { this.sessionFile, this.recordingId, "POST", - undefined + undefined, ); rsp = await this.httpClient.sendRequest({ @@ -295,7 +295,7 @@ export class Recorder { const id = rsp.headers.get("x-recording-id"); if (!id) { logger.error( - "[Recorder#start] Test proxy did not provide a recording ID when starting the recorder" + "[Recorder#start] Test proxy did not provide a recording ID when starting the recorder", ); throw new RecorderError("No recording ID returned for a successful start request."); } @@ -308,7 +308,7 @@ export class Recorder { this.httpClient, Recorder.url, this.recordingId, - options.envSetupForPlayback + options.envSetupForPlayback, ); // Sanitizers to be added only in record mode @@ -342,7 +342,7 @@ export class Recorder { if (isRecordMode()) { logger.verbose( "[Recorder#stop] Adding recorder variables to the request body:", - this.variables + this.variables, ); req.headers.set("Content-Type", "application/json"); req.body = JSON.stringify(this.variables); @@ -362,7 +362,7 @@ export class Recorder { } } else { logger.error( - "[Recorder#stop] Encountered invalid state: recordingId should have been defined when calling stop" + "[Recorder#stop] Encountered invalid state: recordingId should have been defined when calling stop", ); throw new RecorderError("Bad state, recordingId is not defined when called stop."); } @@ -411,7 +411,7 @@ export class Recorder { */ public configureClientOptions< T, - U extends { position: "perCall" | "perRetry"; policy: unknown } = AdditionalPolicyConfig + U extends { position: "perCall" | "perRetry"; policy: unknown } = AdditionalPolicyConfig, >(options: T & { additionalPolicies?: U[] }): T & { additionalPolicies?: U[] } { if (isLiveMode()) return options; if (!options.additionalPolicies) options.additionalPolicies = []; @@ -432,14 +432,14 @@ export class Recorder { const errorMessage = decodeBase64(response.headers.get("x-request-mismatch-error") ?? ""); logger.error( "[Recorder#handleTestProxyErrors] Could not match request to recording", - errorMessage + errorMessage, ); throw new RecorderError(errorMessage); } if (response.headers.get("x-request-known-exception") === "true") { const errorMessage = decodeBase64( - response.headers.get("x-request-known-exception-error") ?? "" + response.headers.get("x-request-known-exception-error") ?? "", ); logger.error("[Recorder#handleTestProxyErrors] Test proxy error encountered", errorMessage); throw new RecorderError(errorMessage); @@ -454,7 +454,7 @@ export class Recorder { name: "recording policy", sendRequest: async ( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise => { const originalUrl = request.url; @@ -521,10 +521,10 @@ export class Recorder { if (recordedValue === undefined) { logger.error( - `[Recorder#variable] Test tried to access a variable in playback that was not set in the recording: ${name}` + `[Recorder#variable] Test tried to access a variable in playback that was not set in the recording: ${name}`, ); throw new RecorderError( - `Tried to access a variable in playback that was not set in recording: ${name}` + `Tried to access a variable in playback that was not set in recording: ${name}`, ); } @@ -535,7 +535,7 @@ export class Recorder { if (value === undefined) { logger.error(`[Recorder#variable] Test tried to access an unitialized variable: ${name}`); throw new RecorderError( - `Tried to access uninitialized variable: ${name}. You must initialize it with a value before using it.` + `Tried to access uninitialized variable: ${name}. You must initialize it with a value before using it.`, ); } diff --git a/sdk/test-utils/recorder/src/sanitizer.ts b/sdk/test-utils/recorder/src/sanitizer.ts index 3689f7c35b32..35f5eea6fe9e 100644 --- a/sdk/test-utils/recorder/src/sanitizer.ts +++ b/sdk/test-utils/recorder/src/sanitizer.ts @@ -24,7 +24,7 @@ type AddSanitizer = ( httpClient: HttpClient, url: string, recordingId: string | undefined, - sanitizer: T + sanitizer: T, ) => Promise; /** @@ -74,7 +74,7 @@ const makeAddBodilessSanitizer = const makeAddFindReplaceSanitizer = ( regexSanitizerName: ProxyToolSanitizers, - stringSanitizerName: ProxyToolSanitizers + stringSanitizerName: ProxyToolSanitizers, ): AddSanitizer => async (httpClient, url, recordingId, sanitizer): Promise => { if (isStringSanitizer(sanitizer)) { @@ -107,7 +107,7 @@ const addConnectionStringSanitizer: AddSanitizer = as httpClient, url, recordingId, - { actualConnString, fakeConnString } + { actualConnString, fakeConnString }, ) => { if (!actualConnString) { if (!isRecordMode()) return; @@ -115,7 +115,7 @@ const addConnectionStringSanitizer: AddSanitizer = as `Attempted to add an invalid sanitizer - ${JSON.stringify({ actualConnString: actualConnString, fakeConnString: fakeConnString, - })}` + })}`, ); } // extract connection string parts and match call @@ -134,7 +134,7 @@ const addContinuationSanitizer: AddSanitizer = async ( httpClient, url, recordingId, - sanitizer + sanitizer, ) => { await addSanitizer(httpClient, url, recordingId, { sanitizer: "ContinuationSanitizer", @@ -152,7 +152,7 @@ const addRemoveHeaderSanitizer: AddSanitizer = async ( httpClient, url, recordingId, - sanitizer + sanitizer, ) => { await addSanitizer(httpClient, url, recordingId, { sanitizer: "RemoveHeaderSanitizer", @@ -173,7 +173,7 @@ const addHeaderSanitizer: AddSanitizer = async ( httpClient, url, recordingId, - sanitizer + sanitizer, ) => { if (sanitizer.regex || !sanitizer.target) { await addSanitizer(httpClient, url, recordingId, { @@ -201,10 +201,10 @@ const addSanitizersActions: { [K in keyof SanitizerOptions]: AddSanitizer>; } = { generalSanitizers: pluralize( - makeAddFindReplaceSanitizer("GeneralRegexSanitizer", "GeneralStringSanitizer") + makeAddFindReplaceSanitizer("GeneralRegexSanitizer", "GeneralStringSanitizer"), ), bodySanitizers: pluralize( - makeAddFindReplaceSanitizer("BodyRegexSanitizer", "BodyStringSanitizer") + makeAddFindReplaceSanitizer("BodyRegexSanitizer", "BodyStringSanitizer"), ), headerSanitizers: pluralize(addHeaderSanitizer), uriSanitizers: pluralize(makeAddFindReplaceSanitizer("UriRegexSanitizer", "UriStringSanitizer")), @@ -221,7 +221,7 @@ export async function addSanitizers( httpClient: HttpClient, url: string, recordingId: string | undefined, - options: SanitizerOptions + options: SanitizerOptions, ): Promise { await Promise.all( Object.entries(options).map(([key, sanitizer]) => { @@ -231,7 +231,7 @@ export async function addSanitizers( } return action(httpClient, url, recordingId, sanitizer); - }) + }), ); } @@ -245,7 +245,7 @@ async function addSanitizer( options: { sanitizer: ProxyToolSanitizers; body: Record | undefined; - } + }, ): Promise { const uri = `${url}${paths.admin}${ options.sanitizer !== "Reset" ? paths.addSanitizer : paths.reset @@ -274,14 +274,14 @@ async function addSanitizer( export async function transformsInfo( httpClient: HttpClient, url: string, - recordingId: string + recordingId: string, ): Promise { if (recordingId) { const infoUri = `${url}${paths.info}${paths.available}`; const req = createRecordingRequest(infoUri, undefined, recordingId, "GET"); if (!httpClient) { throw new RecorderError( - `Something went wrong, Sanitizer.httpClient should not have been undefined in ${getTestMode()} mode.` + `Something went wrong, Sanitizer.httpClient should not have been undefined in ${getTestMode()} mode.`, ); } const rsp = await httpClient.sendRequest({ diff --git a/sdk/test-utils/recorder/src/transform.ts b/sdk/test-utils/recorder/src/transform.ts index 5091a419be36..13ab3436bbae 100644 --- a/sdk/test-utils/recorder/src/transform.ts +++ b/sdk/test-utils/recorder/src/transform.ts @@ -30,7 +30,7 @@ export async function addTransform( recorderUrl: string, httpClient: HttpClient, transform: Transform, - recordingId: string + recordingId: string, ): Promise { const url = `${recorderUrl}${paths.admin}${paths.addTransform}`; diff --git a/sdk/test-utils/recorder/src/utils/connectionStringHelpers.ts b/sdk/test-utils/recorder/src/utils/connectionStringHelpers.ts index 8db16292767d..272725fad1e5 100644 --- a/sdk/test-utils/recorder/src/utils/connectionStringHelpers.ts +++ b/sdk/test-utils/recorder/src/utils/connectionStringHelpers.ts @@ -49,7 +49,7 @@ function getKeyValuePair(kvp: string): string[] { */ export function getRealAndFakePairs( connectionString: string, - fakeConnString: string + fakeConnString: string, ): Record { const realAndFakePairs: Record = {}; const fakeValues = getConnStringAsJSON(fakeConnString); diff --git a/sdk/test-utils/recorder/src/utils/createRecordingRequest.ts b/sdk/test-utils/recorder/src/utils/createRecordingRequest.ts index 1d242456ef2e..b7e233737442 100644 --- a/sdk/test-utils/recorder/src/utils/createRecordingRequest.ts +++ b/sdk/test-utils/recorder/src/utils/createRecordingRequest.ts @@ -12,7 +12,7 @@ export function createRecordingRequest( sessionFile?: string, recordingId?: string, method: HttpMethods = "POST", - assetsJson?: string + assetsJson?: string, ) { const req = createPipelineRequest({ url: url, method }); diff --git a/sdk/test-utils/recorder/src/utils/envSetupForPlayback.ts b/sdk/test-utils/recorder/src/utils/envSetupForPlayback.ts index 34008e1b3037..625dab92c1f6 100644 --- a/sdk/test-utils/recorder/src/utils/envSetupForPlayback.ts +++ b/sdk/test-utils/recorder/src/utils/envSetupForPlayback.ts @@ -23,19 +23,19 @@ export async function handleEnvSetup( httpClient: HttpClient, url: string, recordingId: string, - envSetupForPlayback: Record + envSetupForPlayback: Record, ): Promise { if (envSetupForPlayback) { if (isPlaybackMode()) { // Loads the "fake" environment variables in `process.env` or `window.__env__` based on the runtime logger.verbose( - "[handleEnvSetup] Playback mode: updating environment variables to their fake values" + "[handleEnvSetup] Playback mode: updating environment variables to their fake values", ); setEnvironmentVariables(envSetupForPlayback); } else if (isRecordMode()) { logger.verbose( "[handleEnvSetup] Record mode: adding sanitizers to remove environment variables set in envSetupForPlayback:", - envSetupForPlayback + envSetupForPlayback, ); // If the env variables are present in the recordings as plain strings, they will be replaced with the provided values in record mode diff --git a/sdk/test-utils/recorder/src/utils/filePathGenerator.ts b/sdk/test-utils/recorder/src/utils/filePathGenerator.ts index 812666cfd431..345c245c0a1f 100644 --- a/sdk/test-utils/recorder/src/utils/filePathGenerator.ts +++ b/sdk/test-utils/recorder/src/utils/filePathGenerator.ts @@ -34,7 +34,7 @@ export function formatPath(path: string): string { export function generateTestRecordingFilePath( platform: "node" | "browsers", testSuiteTitle: string, - testTitle: string + testTitle: string, ): string { // File Extension return `${platform}/${formatPath(testSuiteTitle)}/recording_${formatPath(testTitle)}.json`; diff --git a/sdk/test-utils/recorder/src/utils/relativePathCalculator.browser.ts b/sdk/test-utils/recorder/src/utils/relativePathCalculator.browser.ts index bb4ac340a7a3..c8d2bb051748 100644 --- a/sdk/test-utils/recorder/src/utils/relativePathCalculator.browser.ts +++ b/sdk/test-utils/recorder/src/utils/relativePathCalculator.browser.ts @@ -9,7 +9,7 @@ export function relativeRecordingsPath(): string { return env.RECORDINGS_RELATIVE_PATH; } else { throw new RecorderError( - "RECORDINGS_RELATIVE_PATH was not set while in browser mode. Ensure that process.env.RELATIVE_RECORDINGS_PATH has been set properly in your Karma configuration." + "RECORDINGS_RELATIVE_PATH was not set while in browser mode. Ensure that process.env.RELATIVE_RECORDINGS_PATH has been set properly in your Karma configuration.", ); } } diff --git a/sdk/test-utils/recorder/src/utils/relativePathCalculator.ts b/sdk/test-utils/recorder/src/utils/relativePathCalculator.ts index 114a5fc16e72..bcf0ea96986e 100644 --- a/sdk/test-utils/recorder/src/utils/relativePathCalculator.ts +++ b/sdk/test-utils/recorder/src/utils/relativePathCalculator.ts @@ -48,7 +48,7 @@ function relativePackagePath() { return path.relative(rootPath, expectedProjectPath); } else { throw new RecorderError( - "rootPath or expectedProjectPath could not be calculated properly from process.cwd()" + "rootPath or expectedProjectPath could not be calculated properly from process.cwd()", ); } } diff --git a/sdk/test-utils/recorder/src/utils/sessionFilePath.ts b/sdk/test-utils/recorder/src/utils/sessionFilePath.ts index b70199888c85..f494814540cb 100644 --- a/sdk/test-utils/recorder/src/utils/sessionFilePath.ts +++ b/sdk/test-utils/recorder/src/utils/sessionFilePath.ts @@ -19,14 +19,14 @@ export function sessionFilePath(testContext: Mocha.Test): string { export function recordingFilePath(testContext: Mocha.Test): string { if (!testContext.parent) { throw new RecorderError( - `Test ${testContext.title} is not inside a describe block, so a file path for its recording could not be generated. Please place the test inside a describe block.` + `Test ${testContext.title} is not inside a describe block, so a file path for its recording could not be generated. Please place the test inside a describe block.`, ); } return generateTestRecordingFilePath( isNode ? "node" : "browsers", testContext.parent.fullTitle(), - testContext.title + testContext.title, ); } diff --git a/sdk/test-utils/recorder/src/utils/utils.ts b/sdk/test-utils/recorder/src/utils/utils.ts index 85f3d5f20f8d..19cbe16eb927 100644 --- a/sdk/test-utils/recorder/src/utils/utils.ts +++ b/sdk/test-utils/recorder/src/utils/utils.ts @@ -5,7 +5,10 @@ import { env } from "./env"; * A custom error type for failed pipeline requests. */ export class RecorderError extends Error { - constructor(message: string, public statusCode?: number) { + constructor( + message: string, + public statusCode?: number, + ) { super(message); this.name = "RecorderError"; this.statusCode = statusCode; @@ -303,7 +306,7 @@ export interface RecorderStartOptions { export function ensureExistence(thing: T | undefined, label: string): thing is T { if (!thing) { throw new RecorderError( - `Something went wrong, ${label} should not have been undefined in "${getTestMode()}" mode.` + `Something went wrong, ${label} should not have been undefined in "${getTestMode()}" mode.`, ); } return true; // Since we would throw error if undefined diff --git a/sdk/test-utils/recorder/test/errors.spec.ts b/sdk/test-utils/recorder/test/errors.spec.ts index ff193f5e1ea7..42211e6ecc2b 100644 --- a/sdk/test-utils/recorder/test/errors.spec.ts +++ b/sdk/test-utils/recorder/test/errors.spec.ts @@ -17,7 +17,7 @@ describe("State Manager", function () { } catch (error: any) { expect((error as RecorderError).name).to.equal("RecorderError"); expect((error as RecorderError).message).to.equal( - "Already started, should not have called start again." + "Already started, should not have called start again.", ); } }); @@ -30,7 +30,7 @@ describe("State Manager", function () { } catch (error: any) { expect((error as RecorderError).name).to.equal("RecorderError"); expect((error as RecorderError).message).to.equal( - "Already stopped, should not have called stop again." + "Already stopped, should not have called stop again.", ); } }); diff --git a/sdk/test-utils/recorder/test/sanitizers.spec.ts b/sdk/test-utils/recorder/test/sanitizers.spec.ts index 07e6e0833496..dda06da3634a 100644 --- a/sdk/test-utils/recorder/test/sanitizers.spec.ts +++ b/sdk/test-utils/recorder/test/sanitizers.spec.ts @@ -53,7 +53,7 @@ import { randomUUID } from "@azure/core-util"; }, { val: isPlaybackMode() ? "I am Variable1" : "I am the answer!", - } + }, ); }); }); @@ -84,7 +84,7 @@ import { randomUUID } from "@azure/core-util"; method: "POST", headers: [{ headerName: "Content-Type", value: "text/plain" }], }, - { val: "I am the answer!" } + { val: "I am the answer!" }, ); }); @@ -108,7 +108,7 @@ import { randomUUID } from "@azure/core-util"; method: "POST", headers: [{ headerName: "Content-Type", value: "text/plain" }], }, - { val: "I am the answer!" } + { val: "I am the answer!" }, ); }); @@ -124,7 +124,7 @@ import { randomUUID } from "@azure/core-util"; await makeRequestAndVerifyResponse( client, { path: `/sample_response`, method: "GET" }, - { val: "abc" } + { val: "abc" }, ); }); @@ -158,7 +158,7 @@ import { randomUUID } from "@azure/core-util"; method: "POST", headers: [{ headerName: "Content-Type", value: "application/json" }], }, - { bodyProvided: reqBody } + { bodyProvided: reqBody }, ); }); @@ -188,7 +188,7 @@ import { randomUUID } from "@azure/core-util"; method: "POST", headers: [{ headerName: "Content-Type", value: "text/plain" }], }, - { bodyProvided: reqBody } + { bodyProvided: reqBody }, ); }); @@ -216,7 +216,7 @@ import { randomUUID } from "@azure/core-util"; path: pathToHit, method: "POST", }, - { bodyProvided: {} } + { bodyProvided: {} }, ); }); @@ -237,7 +237,7 @@ import { randomUUID } from "@azure/core-util"; path: `/subscriptions/${isPlaybackMode() ? fakeId : id}`, method: "GET", }, - { val: "I am the answer!" } + { val: "I am the answer!" }, ); }); @@ -263,7 +263,7 @@ import { randomUUID } from "@azure/core-util"; path: `/api/sample_uuid_in_header`, method: "GET", }, - undefined + undefined, ); await makeRequestAndVerifyResponse( @@ -278,7 +278,7 @@ import { randomUUID } from "@azure/core-util"; }, ], }, - { val: "abc" } + { val: "abc" }, ); }); @@ -302,7 +302,7 @@ import { randomUUID } from "@azure/core-util"; path: `/api/sample_uuid_in_header`, method: "GET", }, - undefined + undefined, ); // TODO: Add more tests to cover groupForReplace }); @@ -349,7 +349,7 @@ import { randomUUID } from "@azure/core-util"; method: "POST", headers: [{ headerName: "Content-Type", value: "text/plain" }], }, - { bodyProvided: reqBody } + { bodyProvided: reqBody }, ); await recorder.addSanitizers({ @@ -366,7 +366,7 @@ import { randomUUID } from "@azure/core-util"; method: "POST", headers: [{ headerName: "Content-Type", value: "text/plain" }], }, - { bodyProvided: reqBodyAfterReset } + { bodyProvided: reqBodyAfterReset }, ); }); }); @@ -395,7 +395,7 @@ import { randomUUID } from "@azure/core-util"; }, ], }, - ["record", "playback"] + ["record", "playback"], ); await makeRequestAndVerifyResponse( client, @@ -405,7 +405,7 @@ import { randomUUID } from "@azure/core-util"; method: "POST", headers: [{ headerName: "Content-Type", value: "text/plain" }], }, - { val: "I am the answer!" } + { val: "I am the answer!" }, ); }); }); @@ -428,7 +428,7 @@ import { randomUUID } from "@azure/core-util"; method: "POST", headers: [{ headerName: "Content-Type", value: "text/plain" }], }, - { val: "I am the answer!" } + { val: "I am the answer!" }, ); await recorder.stop(); @@ -451,7 +451,7 @@ import { randomUUID } from "@azure/core-util"; method: "POST", headers: [{ headerName: "Content-Type", value: "text/plain" }], }, - { val: "I am the answer!" } + { val: "I am the answer!" }, ); await recorder.stop(); @@ -469,7 +469,7 @@ import { randomUUID } from "@azure/core-util"; method: "POST", headers: [{ headerName: "Content-Type", value: "text/plain" }], }, - { val: "I am the answer!" } + { val: "I am the answer!" }, ); await recorder.stop(); diff --git a/sdk/test-utils/recorder/test/testProxyClient.spec.ts b/sdk/test-utils/recorder/test/testProxyClient.spec.ts index 1b0e422be03e..dd417f7a0795 100644 --- a/sdk/test-utils/recorder/test/testProxyClient.spec.ts +++ b/sdk/test-utils/recorder/test/testProxyClient.spec.ts @@ -16,7 +16,7 @@ import { getTestMode, isLiveMode, isRecordMode, RecorderError } from "../src/uti const testRedirectedRequest = ( client: Recorder, makeRequest: () => PipelineRequest, - expectedModification: (req: PipelineRequest) => PipelineRequest + expectedModification: (req: PipelineRequest) => PipelineRequest, ) => { const redirectedRequest = makeRequest(); client["redirectRequest"](redirectedRequest); @@ -62,9 +62,9 @@ describe("TestProxyClient functions", () => { "x-recording-upstream-uri": "https://dummy_url.windows.net/dummy_path?sas=sas", }), }), - (req) => req + (req) => req, ); - } + }, ); it( @@ -95,9 +95,9 @@ describe("TestProxyClient functions", () => { }), allowInsecureConnection: !isLiveMode(), }; - } + }, ); - } + }, ); }); }); @@ -126,7 +126,7 @@ describe("TestProxyClient functions", () => { }; await client.start({ envSetupForPlayback: {} }); expect(client.recordingId).to.eql(recordingId); - } + }, ); it("throws if not received a 200 status code", async function () { @@ -171,7 +171,7 @@ describe("TestProxyClient functions", () => { } catch (error: any) { expect((error as RecorderError).name).to.equal("RecorderError"); expect((error as RecorderError).message).to.equal( - "No recording ID returned for a successful start request." + "No recording ID returned for a successful start request.", ); } }); @@ -206,10 +206,10 @@ describe("TestProxyClient functions", () => { } catch (error: any) { expect((error as RecorderError).name).to.equal("RecorderError"); expect((error as RecorderError).message).to.equal( - "Bad state, recordingId is not defined when called stop." + "Bad state, recordingId is not defined when called stop.", ); } - } + }, ); it("throws if status code is not 200", async function () { @@ -252,7 +252,7 @@ describe("TestProxyClient functions", () => { it("throws an error in record mode if a variable is accessed without giving it a value", () => { env.TEST_MODE = "record"; expect(() => client.variable("nonExistentVariable")).to.throw( - "Tried to access uninitialized variable: nonExistentVariable. You must initialize it with a value before using it." + "Tried to access uninitialized variable: nonExistentVariable. You must initialize it with a value before using it.", ); }); @@ -277,7 +277,7 @@ describe("TestProxyClient functions", () => { it("throws an error if a variable does not exist in playback mode", () => { env.TEST_MODE = "playback"; expect(() => client.variable("var1", "ignored")).to.throw( - "Tried to access a variable in playback that was not set in recording: var1" + "Tried to access a variable in playback that was not set in recording: var1", ); }); }); @@ -287,7 +287,7 @@ describe("TestProxyClient functions", () => { const returnedRequest = createRecordingRequest( initialRequest.url, client["sessionFile"], - client.recordingId + client.recordingId, ); expect(returnedRequest.url).to.equal(initialRequest.url); expect(returnedRequest.method).to.equal("POST"); diff --git a/sdk/test-utils/recorder/test/testProxyTests.spec.ts b/sdk/test-utils/recorder/test/testProxyTests.spec.ts index 7bd189a54f21..6fc6b65c06dc 100644 --- a/sdk/test-utils/recorder/test/testProxyTests.spec.ts +++ b/sdk/test-utils/recorder/test/testProxyTests.spec.ts @@ -35,7 +35,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut await makeRequestAndVerifyResponse( client, { path: `/sample_response`, method: "GET" }, - { val: "abc" } + { val: "abc" }, ); }); @@ -45,7 +45,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut await makeRequestAndVerifyResponse( client, { path: `/redirectWithHost`, method: "GET" }, - { val: "abc" } + { val: "abc" }, ); }); @@ -55,7 +55,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut await makeRequestAndVerifyResponse( client, { path: `/redirectWithoutHost`, method: "GET" }, - { val: "abc" } + { val: "abc" }, ); }); @@ -64,7 +64,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut await makeRequestAndVerifyResponse( client, { path: "/reset_retry", method: "GET" }, - undefined + undefined, ); await makeRequestAndVerifyResponse(client, { path: "/retry", method: "GET" }, { val: "abc" }); }); @@ -77,11 +77,11 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut { path: `/sample_response/${recorder.variable( "random-1", - `random-${Math.ceil(Math.random() * 1000 + 1000)}` + `random-${Math.ceil(Math.random() * 1000 + 1000)}`, )}`, method: "GET", }, - { val: "I am the answer!" } + { val: "I am the answer!" }, ); await makeRequestAndVerifyResponse( client, @@ -89,7 +89,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut path: `/sample_response/${recorder.variable("random-2", "known-string")}`, method: "GET", }, - { val: "I am the answer!" } + { val: "I am the answer!" }, ); }); @@ -105,7 +105,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut const rsp = await client.sendRequest(req); expect(rsp.status).to.be.within(200, 299); - }) + }), )); it("allows multiple consecutive slashes at the start of the path", async () => { @@ -113,7 +113,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut await makeRequestAndVerifyResponse( client, { path: "///multiple_slashes", method: "GET" }, - { val: "abc" } + { val: "abc" }, ); }); @@ -128,7 +128,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut assert.strictEqual( req.url, TEST_SERVER_URL + "/sample_response", - "Looks like the url is not the same" + "Looks like the url is not the same", ); }); @@ -150,7 +150,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut method: "POST", headers: [{ headerName: "Content-Type", value: "text/plain" }], }, - { val: "abc" } + { val: "abc" }, ); }); @@ -171,7 +171,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut method: "POST", headers: [{ headerName: "Content-Type", value: "text/plain" }, testHeader], }, - { val: "abc" } + { val: "abc" }, ); }); @@ -196,7 +196,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut method: "POST", headers: [{ headerName: "Content-Type", value: "text/plain" }, testHeader], }, - { val: "abc" } + { val: "abc" }, ); }); @@ -219,10 +219,10 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut body: "body", method: "POST", headers: [{ headerName: "Content-Type", value: "text/plain" }].concat( - !isPlaybackMode() ? [testHeader] : [] + !isPlaybackMode() ? [testHeader] : [], ), }, - { val: "abc" } + { val: "abc" }, ); }); @@ -246,7 +246,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut method: "POST", headers: [{ headerName: "Content-Type", value: "text/plain" }, testHeader], }, - { val: "abc" } + { val: "abc" }, ); }); @@ -269,7 +269,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut method: "POST", headers: [{ headerName: "Content-Type", value: "text/plain" }], }, - { val: "abc" } + { val: "abc" }, ); }); @@ -289,7 +289,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut method: "POST", headers: [{ headerName: "Content-Type", value: "text/plain" }], }, - { val: "abc" } + { val: "abc" }, ); }); }); @@ -314,7 +314,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut ], }, { val: "abc" }, - isPlaybackMode() ? { "api-version": "myapiversion" } : {} + isPlaybackMode() ? { "api-version": "myapiversion" } : {}, ); }); @@ -334,7 +334,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut ], }, { val: "abc" }, - isPlaybackMode() ? { "x-ms-client-id": "myclientid" } : {} + isPlaybackMode() ? { "x-ms-client-id": "myclientid" } : {}, ); }); @@ -354,7 +354,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut headers: [{ headerName: "Content-Type", value: "text/plain" }], }, { val: "abc" }, - isPlaybackMode() ? { "x-test-header": "test-value" } : {} + isPlaybackMode() ? { "x-test-header": "test-value" } : {}, ); }); @@ -374,7 +374,7 @@ import { TEST_SERVER_URL, makeRequestAndVerifyResponse, setTestMode } from "./ut ], }, { val: "abc" }, - isPlaybackMode() ? { "x-ms-client-request-id": "requestid" } : {} + isPlaybackMode() ? { "x-ms-client-request-id": "requestid" } : {}, ); }); }); diff --git a/sdk/test-utils/recorder/test/utils/utils.ts b/sdk/test-utils/recorder/test/utils/utils.ts index 8ba6f968fc86..aca290bf8b57 100644 --- a/sdk/test-utils/recorder/test/utils/utils.ts +++ b/sdk/test-utils/recorder/test/utils/utils.ts @@ -29,7 +29,7 @@ export async function makeRequestAndVerifyResponse( method: HttpMethods; }, expectedResponse: { [key: string]: unknown } | undefined, - expectedHeaders?: { [key: string]: string } + expectedHeaders?: { [key: string]: string }, ): Promise { const req = createPipelineRequest({ url: request.url ?? TEST_SERVER_URL + request.path, diff --git a/sdk/test-utils/test-credential/package.json b/sdk/test-utils/test-credential/package.json index 94bf78045abd..8e6b50c2646b 100644 --- a/sdk/test-utils/test-credential/package.json +++ b/sdk/test-utils/test-credential/package.json @@ -14,9 +14,9 @@ "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", "build:samples": "echo Skipped.", "build:test": "echo not needed", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "extract-api": "tsc -p . && api-extractor run --local", @@ -63,7 +63,6 @@ "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "typescript": "~5.2.0", "ts-node": "^10.0.0" diff --git a/sdk/test-utils/test-credential/src/index.ts b/sdk/test-utils/test-credential/src/index.ts index c88a622345dc..ead23578804b 100644 --- a/sdk/test-utils/test-credential/src/index.ts +++ b/sdk/test-utils/test-credential/src/index.ts @@ -23,7 +23,7 @@ export interface CreateTestCredentialOptions { */ export function createTestCredential( tokenCredentialOptions?: TokenCredentialOptions, - createTestCredentialOptions?: CreateTestCredentialOptions + createTestCredentialOptions?: CreateTestCredentialOptions, ) { return isPlaybackMode() ? new NoOpCredential() @@ -32,7 +32,7 @@ export function createTestCredential( createTestCredentialOptions?.clientId ?? assertEnvironmentVariable("AZURE_CLIENT_ID"), createTestCredentialOptions?.clientSecret ?? assertEnvironmentVariable("AZURE_CLIENT_SECRET"), - tokenCredentialOptions + tokenCredentialOptions, ); } diff --git a/sdk/test-utils/test-utils/package.json b/sdk/test-utils/test-utils/package.json index 6975cc56e11d..0b8e5aa1b943 100644 --- a/sdk/test-utils/test-utils/package.json +++ b/sdk/test-utils/test-utils/package.json @@ -17,9 +17,9 @@ "build": "npm run clean && tsc -p . && dev-tool run bundle", "build:samples": "echo Skipped.", "build:test": "tsc -p . && dev-tool run bundle", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -82,7 +82,6 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "typescript": "~5.2.0", diff --git a/sdk/test-utils/test-utils/src/chaiAzure.ts b/sdk/test-utils/test-utils/src/chaiAzure.ts index 565e61b844e0..c11d735cf33b 100644 --- a/sdk/test-utils/test-utils/src/chaiAzure.ts +++ b/sdk/test-utils/test-utils/src/chaiAzure.ts @@ -24,7 +24,7 @@ import { supportsTracing } from "./tracing/chaiAzureTrace"; export function chaiAzure(chai: Chai.ChaiStatic): void { // expect(() => {}).to.supportsTracing() syntax chai.Assertion.addMethod("supportTracing", function < - T extends { tracingOptions?: OperationTracingOptions } + T extends { tracingOptions?: OperationTracingOptions }, >(this: Chai.AssertionStatic, expectedSpanNames: string[], options?: T) { return assert.supportsTracing(this._obj, expectedSpanNames, options, this._obj); }); @@ -42,12 +42,12 @@ declare global { interface Assert { supportsTracing< Options extends { tracingOptions?: OperationTracingOptions }, - Callback extends (options: Options) => Promise + Callback extends (options: Options) => Promise, >( callback: Callback, expectedSpanNames: string[], options?: Options, - thisArg?: ThisParameterType + thisArg?: ThisParameterType, ): Promise; } } diff --git a/sdk/test-utils/test-utils/src/matrix.ts b/sdk/test-utils/test-utils/src/matrix.ts index dc37bea140de..14b3295e4ae3 100644 --- a/sdk/test-utils/test-utils/src/matrix.ts +++ b/sdk/test-utils/test-utils/src/matrix.ts @@ -33,7 +33,7 @@ export function matrix>( values: T, handler: ( ...args: { [idx in keyof T]: T[idx] extends ReadonlyArray ? U : never } - ) => Promise + ) => Promise, ): void { // Classic recursive approach if (values.length === 0) { diff --git a/sdk/test-utils/test-utils/src/multiVersion.ts b/sdk/test-utils/test-utils/src/multiVersion.ts index 4808a2e33534..456a78d69cb9 100644 --- a/sdk/test-utils/test-utils/src/multiVersion.ts +++ b/sdk/test-utils/test-utils/src/multiVersion.ts @@ -52,7 +52,7 @@ function skipReason(currentVersion: string, supported: SupportedVersions): strin export function isVersionInSupportedRange( currentVersion: string, supported: SupportedVersions, - allVersions: ReadonlyArray + allVersions: ReadonlyArray, ): { isSupported: boolean; skipReason?: string } { const lessThanOrEqual = function (a: string, b: string) { const idxA = allVersions.indexOf(a); @@ -123,7 +123,7 @@ export function isVersionInSupportedRange( } } else { throw new Error( - "Must use either minVer, or maxVer, or both to specify supported version range." + "Must use either minVer, or maxVer, or both to specify supported version range.", ); } } @@ -140,20 +140,20 @@ export function isVersionInSupportedRange( export function supports( currentVersion: string, supported: SupportedVersions, - allVersions: ReadonlyArray + allVersions: ReadonlyArray, ): TestFunctionWrapper { const run = isVersionInSupportedRange(currentVersion, supported, allVersions); const either = function (match: any, skip: any) { return run.isSupported ? match : isLiveMode() - ? // only append skip reason to titles in live TEST_MODE. - // Record and playback depends on titles for recording file names so keeping them - // in order to be compatible with existing recordings. - function (title: string, fn: Mocha.Func | Mocha.AsyncFunc) { - return skip(`${title} (${run.skipReason})`, fn); - } - : skip; + ? // only append skip reason to titles in live TEST_MODE. + // Record and playback depends on titles for recording file names so keeping them + // in order to be compatible with existing recordings. + function (title: string, fn: Mocha.Func | Mocha.AsyncFunc) { + return skip(`${title} (${run.skipReason})`, fn); + } + : skip; }; const it = either(supports.global.it, supports.global.xit); @@ -226,8 +226,8 @@ export function versionsToTest( options: MultiVersionTestOptions = {}, handler: ( serviceVersion: string, - onVersions: (supported: SupportedVersions) => TestFunctionWrapper - ) => void + onVersions: (supported: SupportedVersions) => TestFunctionWrapper, + ) => void, ): void { if (versions.length <= 0) { throw new Error("invalid list of service versions to run the tests."); diff --git a/sdk/test-utils/test-utils/src/tracing/chaiAzureTrace.ts b/sdk/test-utils/test-utils/src/tracing/chaiAzureTrace.ts index 7b5a4a9ff340..27c603ec79e8 100644 --- a/sdk/test-utils/test-utils/src/tracing/chaiAzureTrace.ts +++ b/sdk/test-utils/test-utils/src/tracing/chaiAzureTrace.ts @@ -20,12 +20,12 @@ const instrumenter = new MockInstrumenter(); */ export async function supportsTracing< Options extends { tracingOptions?: OperationTracingOptions }, - Callback extends (options: Options) => Promise + Callback extends (options: Options) => Promise, >( callback: Callback, expectedSpanNames: string[], options?: Options, - thisArg?: ThisParameterType + thisArg?: ThisParameterType, ) { useInstrumenter(instrumenter); instrumenter.reset(); @@ -50,7 +50,7 @@ export async function supportsTracing< assert.strictEqual( rootSpan, instrumenter.startedSpans[0], - "The root span should match what was passed in." + "The root span should match what was passed in.", ); const directChildren = spanGraph.roots[0].children.map((child) => child.name); @@ -60,7 +60,7 @@ export async function supportsTracing< assert.equal( openSpans.length, 0, - `All spans should have been closed, but found ${openSpans.map((s) => s.name)} open spans.` + `All spans should have been closed, but found ${openSpans.map((s) => s.name)} open spans.`, ); } finally { // By resetting the instrumenter to undefined, we force the next call to instantiate the @@ -95,7 +95,7 @@ function getSpanGraph(traceId: string, instrumenter: MockInstrumenter): SpanGrap const parent = nodeMap.get(parentSpan!); if (!parent) { throw new Error( - `Span with name ${node.name} has an unknown parentSpan with id ${parentSpan}` + `Span with name ${node.name} has an unknown parentSpan with id ${parentSpan}`, ); } parent.children.push(node); diff --git a/sdk/test-utils/test-utils/src/tracing/mockInstrumenter.ts b/sdk/test-utils/test-utils/src/tracing/mockInstrumenter.ts index ad581f1775c9..a866b7f0268d 100644 --- a/sdk/test-utils/test-utils/src/tracing/mockInstrumenter.ts +++ b/sdk/test-utils/test-utils/src/tracing/mockInstrumenter.ts @@ -44,7 +44,7 @@ export class MockInstrumenter implements Instrumenter { startSpan( name: string, - spanOptions?: InstrumenterSpanOptions + spanOptions?: InstrumenterSpanOptions, ): { span: TracingSpan; tracingContext: TracingContext } { const tracingContext = spanOptions?.tracingContext || this.currentContext(); const parentSpan = tracingContext.getValue(spanKey) as MockTracingSpan | undefined; @@ -66,7 +66,7 @@ export class MockInstrumenter implements Instrumenter { spanContext.spanId, tracingContext, spanOptions, - this.isEnabled + this.isEnabled, ); let context: TracingContext = new MockContext(tracingContext); context = context.setValue(spanKey, span); @@ -77,7 +77,7 @@ export class MockInstrumenter implements Instrumenter { withContext< CallbackArgs extends unknown[], - Callback extends (...args: CallbackArgs) => ReturnType + Callback extends (...args: CallbackArgs) => ReturnType, >( context: TracingContext, callback: Callback, diff --git a/sdk/test-utils/test-utils/src/tracing/mockTracingSpan.ts b/sdk/test-utils/test-utils/src/tracing/mockTracingSpan.ts index 554c9c2d7735..49f27bb00c74 100644 --- a/sdk/test-utils/test-utils/src/tracing/mockTracingSpan.ts +++ b/sdk/test-utils/test-utils/src/tracing/mockTracingSpan.ts @@ -76,7 +76,7 @@ export class MockTracingSpan implements TracingSpan { spanId: string, tracingContext?: TracingContext, spanOptions?: TracingSpanOptions, - enabled = true + enabled = true, ) { this.name = name; this.spanKind = spanOptions?.spanKind; diff --git a/sdk/test-utils/test-utils/src/tracing/testSpan.ts b/sdk/test-utils/test-utils/src/tracing/testSpan.ts index 363c39b9edef..a2d9da734f8c 100644 --- a/sdk/test-utils/test-utils/src/tracing/testSpan.ts +++ b/sdk/test-utils/test-utils/src/tracing/testSpan.ts @@ -70,7 +70,7 @@ export class TestSpan implements Span { kind: SpanKind, parentSpanId?: string, startTime: TimeInput = Date.now(), - attributes: SpanAttributes = {} + attributes: SpanAttributes = {}, ) { this._tracer = parentTracer; this.name = name; diff --git a/sdk/test-utils/test-utils/src/tracing/testTracer.ts b/sdk/test-utils/test-utils/src/tracing/testTracer.ts index 7cc2eaadaf94..98ccd692401c 100644 --- a/sdk/test-utils/test-utils/src/tracing/testTracer.ts +++ b/sdk/test-utils/test-utils/src/tracing/testTracer.ts @@ -18,7 +18,10 @@ import { SpanGraph, SpanGraphNode } from "./spanGraphModel"; * A mock tracer useful for testing */ export class TestTracer implements Tracer { - constructor(public name?: string, public version?: string) {} + constructor( + public name?: string, + public version?: string, + ) {} private traceIdCounter = 0; private getNextTraceId(): string { this.traceIdCounter++; @@ -81,7 +84,7 @@ export class TestTracer implements Tracer { const parent = nodeMap.get(span.parentSpanId); if (!parent) { throw new Error( - `Span with name ${node.name} has an unknown parentSpan with id ${span.parentSpanId}` + `Span with name ${node.name} has an unknown parentSpan with id ${span.parentSpanId}`, ); } parent.children.push(node); @@ -125,7 +128,7 @@ export class TestTracer implements Tracer { options?.kind || SpanKind.INTERNAL, parentContext ? parentContext.spanId : undefined, options?.startTime, - options?.attributes + options?.attributes, ); this.knownSpans.push(span); if (isRootSpan) { diff --git a/sdk/test-utils/test-utils/src/xhrHttpClient.ts b/sdk/test-utils/test-utils/src/xhrHttpClient.ts index 87e25b862825..3b27dd2cc427 100644 --- a/sdk/test-utils/test-utils/src/xhrHttpClient.ts +++ b/sdk/test-utils/test-utils/src/xhrHttpClient.ts @@ -23,7 +23,7 @@ function isReadableStream(body: unknown): body is ReadableStream { return Boolean( body && typeof (body as ReadableStream).getReader === "function" && - typeof (body as ReadableStream).tee === "function" + typeof (body as ReadableStream).tee === "function", ); } @@ -99,7 +99,7 @@ class XhrHttpClient implements HttpClient { status: xhr.status, headers: parseHeaders(xhr), bodyAsText: xhr.responseText, - }) + }), ); rejectOnTerminalEvent(request, xhr, reject); }); @@ -111,7 +111,7 @@ function handleBlobResponse( xhr: XMLHttpRequest, request: PipelineRequest, res: (value: PipelineResponse | PromiseLike) => void, - rej: (reason?: any) => void + rej: (reason?: any) => void, ): void { xhr.addEventListener("readystatechange", () => { // Resolve as soon as headers are loaded @@ -168,13 +168,13 @@ function handleBlobResponse( function addProgressListener( xhr: XMLHttpRequestEventTarget, - listener?: (progress: TransferProgressEvent) => void + listener?: (progress: TransferProgressEvent) => void, ): void { if (listener) { xhr.addEventListener("progress", (rawEvent) => listener({ loadedBytes: rawEvent.loaded, - }) + }), ); } } @@ -197,15 +197,15 @@ function parseHeaders(xhr: XMLHttpRequest): HttpHeaders { function rejectOnTerminalEvent( request: PipelineRequest, xhr: XMLHttpRequest, - reject: (err: any) => void + reject: (err: any) => void, ): void { xhr.addEventListener("error", () => reject( new RestError(`Failed to send request to ${request.url}`, { code: RestError.REQUEST_SEND_ERROR, request, - }) - ) + }), + ), ); const abortError = new AbortError("The operation was aborted."); xhr.addEventListener("abort", () => reject(abortError)); diff --git a/sdk/textanalytics/ai-text-analytics/package.json b/sdk/textanalytics/ai-text-analytics/package.json index 85d317667091..cfc4741d365d 100644 --- a/sdk/textanalytics/ai-text-analytics/package.json +++ b/sdk/textanalytics/ai-text-analytics/package.json @@ -70,11 +70,11 @@ "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -131,7 +131,6 @@ "karma-source-map-support": "~1.4.0", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^17.0.0", "source-map-support": "^0.5.9", diff --git a/sdk/textanalytics/ai-text-analytics/samples-dev/beginAnalyzeActions.ts b/sdk/textanalytics/ai-text-analytics/samples-dev/beginAnalyzeActions.ts index 8fa92e4cfe71..890ddd4a5535 100644 --- a/sdk/textanalytics/ai-text-analytics/samples-dev/beginAnalyzeActions.ts +++ b/sdk/textanalytics/ai-text-analytics/samples-dev/beginAnalyzeActions.ts @@ -45,14 +45,14 @@ export async function main() { poller.onProgress(() => { console.log( - `Number of actions still in progress: ${poller.getOperationState().actionsInProgressCount}` + `Number of actions still in progress: ${poller.getOperationState().actionsInProgressCount}`, ); }); console.log(`The analyze actions operation created on ${poller.getOperationState().createdOn}`); console.log( - `The analyze actions operation results will expire on ${poller.getOperationState().expiresOn}` + `The analyze actions operation results will expire on ${poller.getOperationState().expiresOn}`, ); const resultPages = await poller.pollUntilDone(); diff --git a/sdk/textanalytics/ai-text-analytics/samples-dev/beginAnalyzeHealthcareEntities.ts b/sdk/textanalytics/ai-text-analytics/samples-dev/beginAnalyzeHealthcareEntities.ts index d549b73a2f3c..967385e0af34 100644 --- a/sdk/textanalytics/ai-text-analytics/samples-dev/beginAnalyzeHealthcareEntities.ts +++ b/sdk/textanalytics/ai-text-analytics/samples-dev/beginAnalyzeHealthcareEntities.ts @@ -37,18 +37,18 @@ export async function main() { poller.onProgress(() => { console.log( - `Last time the operation was updated was on: ${poller.getOperationState().lastModifiedOn}` + `Last time the operation was updated was on: ${poller.getOperationState().lastModifiedOn}`, ); }); console.log( `The analyze healthcare entities operation was created on ${ poller.getOperationState().createdOn - }` + }`, ); console.log( `The analyze healthcare entities operation results will expire on ${ poller.getOperationState().expiresOn - }` + }`, ); const results = await poller.pollUntilDone(); @@ -70,7 +70,7 @@ export async function main() { console.log(`\tRecognized relations between entities:`); for (const relation of result.entityRelations) { console.log( - `\t\t- Relation of type ${relation.relationType} found between the following entities:` + `\t\t- Relation of type ${relation.relationType} found between the following entities:`, ); for (const role of relation.roles) { console.log(`\t\t\t- "${role.entity.text}" with the role ${role.name}`); diff --git a/sdk/textanalytics/ai-text-analytics/samples-dev/detectLanguage.ts b/sdk/textanalytics/ai-text-analytics/samples-dev/detectLanguage.ts index 433f444b7b8f..06afca722d7d 100644 --- a/sdk/textanalytics/ai-text-analytics/samples-dev/detectLanguage.ts +++ b/sdk/textanalytics/ai-text-analytics/samples-dev/detectLanguage.ts @@ -41,7 +41,7 @@ export async function main() { if (!result.error) { const primaryLanguage = result.primaryLanguage; console.log( - `\tDetected language: ${primaryLanguage.name} (ISO 6391 code: ${primaryLanguage.iso6391Name})` + `\tDetected language: ${primaryLanguage.name} (ISO 6391 code: ${primaryLanguage.iso6391Name})`, ); } else { console.error("\tError:", result.error); diff --git a/sdk/textanalytics/ai-text-analytics/samples-dev/recognizeLinkedEntities.ts b/sdk/textanalytics/ai-text-analytics/samples-dev/recognizeLinkedEntities.ts index 1b4550d7467c..1e47e56e1914 100644 --- a/sdk/textanalytics/ai-text-analytics/samples-dev/recognizeLinkedEntities.ts +++ b/sdk/textanalytics/ai-text-analytics/samples-dev/recognizeLinkedEntities.ts @@ -39,12 +39,12 @@ export async function main() { console.log("\tEntities:"); for (const entity of result.entities) { console.log( - `\t- Entity ${entity.name}; link ${entity.url}; datasource: ${entity.dataSource}` + `\t- Entity ${entity.name}; link ${entity.url}; datasource: ${entity.dataSource}`, ); console.log("\t\tMatches:"); for (const match of entity.matches) { console.log( - `\t\t- Entity appears as "${match.text}" (confidence: ${match.confidenceScore}` + `\t\t- Entity appears as "${match.text}" (confidence: ${match.confidenceScore}`, ); } } diff --git a/sdk/textanalytics/ai-text-analytics/samples-dev/recognizePii.ts b/sdk/textanalytics/ai-text-analytics/samples-dev/recognizePii.ts index 55706573dcf6..b49bfd3a2607 100644 --- a/sdk/textanalytics/ai-text-analytics/samples-dev/recognizePii.ts +++ b/sdk/textanalytics/ai-text-analytics/samples-dev/recognizePii.ts @@ -36,7 +36,7 @@ export async function main() { if (!result.error) { console.log( - `The redacted text is "${result.redactedText}" and found the following PII entities` + `The redacted text is "${result.redactedText}" and found the following PII entities`, ); for (const entity of result.entities) { console.log(`\t- "${entity.text}" of type ${entity.category}`); @@ -64,7 +64,7 @@ export async function main() { }); if (!resultWithSSNPII.error) { console.log( - `You can choose to get SSN entities only, or any other PII category or a combination of them. For example, in this text: "${textMultiplePIIs}", this is the SSN number:` + `You can choose to get SSN entities only, or any other PII category or a combination of them. For example, in this text: "${textMultiplePIIs}", this is the SSN number:`, ); for (const entity of resultWithSSNPII.entities) { console.log(`\t- "${entity.text}"`); diff --git a/sdk/textanalytics/ai-text-analytics/src/analyzeActionsResult.ts b/sdk/textanalytics/ai-text-analytics/src/analyzeActionsResult.ts index 9c3f34f8b7a4..e13dc4e70cb1 100644 --- a/sdk/textanalytics/ai-text-analytics/src/analyzeActionsResult.ts +++ b/sdk/textanalytics/ai-text-analytics/src/analyzeActionsResult.ts @@ -286,7 +286,7 @@ function convertTaskTypeToActionType(taskType: string): TextAnalyticsActionType export function parseActionError(erredActions: TextAnalyticsError): TextAnalyticsActionError { if (erredActions.target) { const regex = new RegExp( - /#\/tasks\/(entityRecognitionTasks|entityRecognitionPiiTasks|keyPhraseExtractionTasks|entityLinkingTasks|sentimentAnalysisTasks)\/(\d+)/ + /#\/tasks\/(entityRecognitionTasks|entityRecognitionPiiTasks|keyPhraseExtractionTasks|entityLinkingTasks|sentimentAnalysisTasks)\/(\d+)/, ); const result = regex.exec(erredActions.target); if (result !== null) { @@ -301,7 +301,7 @@ export function parseActionError(erredActions: TextAnalyticsError): TextAnalytic } } else { throw new Error( - "expected an error with a target field referencing an action but did not get one" + "expected an error with a target field referencing an action but did not get one", ); } } @@ -320,7 +320,7 @@ function categorizeActionErrors( recognizePiiEntitiesActionErrors: TextAnalyticsActionError[], extractKeyPhrasesActionErrors: TextAnalyticsActionError[], recognizeLinkedEntitiesActionErrors: TextAnalyticsActionError[], - analyzeSentimentActionErrors: TextAnalyticsActionError[] + analyzeSentimentActionErrors: TextAnalyticsActionError[], ): void { for (const error of erredActions) { const actionError = parseActionError(error); @@ -356,7 +356,7 @@ function categorizeActionErrors( */ function createErredAction( error: TextAnalyticsActionError, - lastUpdateDateTime: Date + lastUpdateDateTime: Date, ): TextAnalyticsActionErrorResult { return { error: intoTextAnalyticsError(error), failedOn: lastUpdateDateTime }; } @@ -385,12 +385,12 @@ function makeActionResult( documents: TextDocumentInput[], makeResultsArray: (docs: TextDocumentInput[], x: TTaskResult) => TActionResult, succeededTasks: TaskSuccessResult[], - erredActions: TextAnalyticsActionError[] + erredActions: TextAnalyticsActionError[], ): ActionResult[] { let errorIndex = 0; function convertTasksToActions( actions: ActionResult[], - task: TaskSuccessResult + task: TaskSuccessResult, ): ActionResult[] { const { results: actionResults, lastUpdateDateTime } = task; if (actionResults !== undefined) { @@ -418,7 +418,7 @@ function makeActionResult( */ export function createAnalyzeActionsResult( response: GeneratedResponse, - documents: TextDocumentInput[] + documents: TextDocumentInput[], ): AnalyzeActionsResult { const recognizeEntitiesActionErrors: TextAnalyticsActionError[] = []; const recognizePiiEntitiesActionErrors: TextAnalyticsActionError[] = []; @@ -431,38 +431,38 @@ export function createAnalyzeActionsResult( recognizePiiEntitiesActionErrors, extractKeyPhrasesActionErrors, recognizeLinkedEntitiesActionErrors, - analyzeSentimentActionErrors + analyzeSentimentActionErrors, ); return { recognizeEntitiesResults: makeActionResult( documents, makeRecognizeCategorizedEntitiesResultArray, response.tasks.entityRecognitionTasks ?? [], - recognizeEntitiesActionErrors + recognizeEntitiesActionErrors, ), recognizePiiEntitiesResults: makeActionResult( documents, makeRecognizePiiEntitiesResultArray, response.tasks.entityRecognitionPiiTasks ?? [], - recognizePiiEntitiesActionErrors + recognizePiiEntitiesActionErrors, ), extractKeyPhrasesResults: makeActionResult( documents, makeExtractKeyPhrasesResultArray, response.tasks.keyPhraseExtractionTasks ?? [], - extractKeyPhrasesActionErrors + extractKeyPhrasesActionErrors, ), recognizeLinkedEntitiesResults: makeActionResult( documents, makeRecognizeLinkedEntitiesResultArray, response.tasks.entityLinkingTasks ?? [], - recognizeLinkedEntitiesActionErrors + recognizeLinkedEntitiesActionErrors, ), analyzeSentimentResults: makeActionResult( documents, makeAnalyzeSentimentResultArray, response.tasks.sentimentAnalysisTasks ?? [], - analyzeSentimentActionErrors + analyzeSentimentActionErrors, ), }; } diff --git a/sdk/textanalytics/ai-text-analytics/src/analyzeHealthcareEntitiesResult.ts b/sdk/textanalytics/ai-text-analytics/src/analyzeHealthcareEntitiesResult.ts index 5b30f6010f3b..1279e08ffbdf 100644 --- a/sdk/textanalytics/ai-text-analytics/src/analyzeHealthcareEntitiesResult.ts +++ b/sdk/textanalytics/ai-text-analytics/src/analyzeHealthcareEntitiesResult.ts @@ -190,7 +190,7 @@ export interface PagedAnalyzeHealthcareEntitiesResult * @internal */ function makeHealthcareEntitiesWithoutNeighbors( - entity: GeneratedHealthcareEntity + entity: GeneratedHealthcareEntity, ): HealthcareEntity { const { category, confidenceScore, assertion, offset, text, links, subcategory, length, name } = entity; @@ -214,7 +214,7 @@ function makeHealthcareEntitiesWithoutNeighbors( */ function makeHealthcareRelations( entities: HealthcareEntity[], - relations: HealthcareRelation[] + relations: HealthcareRelation[], ): HealthcareEntityRelation[] { return relations.map( (relation: HealthcareRelation): HealthcareEntityRelation => ({ @@ -223,9 +223,9 @@ function makeHealthcareRelations( (role: HealthcareRelationEntity): HealthcareEntityRelationRole => ({ entity: entities[parseHealthcareEntityIndex(role.ref)], name: role.role, - }) + }), ), - }) + }), ); } @@ -235,7 +235,7 @@ function makeHealthcareRelations( * @internal */ export function makeHealthcareEntitiesResult( - document: DocumentHealthcareEntities + document: DocumentHealthcareEntities, ): AnalyzeHealthcareEntitiesSuccessResult { const { id, entities, relations, warnings, statistics } = document; const newEntities = entities.map(makeHealthcareEntitiesWithoutNeighbors); @@ -251,7 +251,7 @@ export function makeHealthcareEntitiesResult( */ export function makeHealthcareEntitiesErrorResult( id: string, - error: TextAnalyticsError + error: TextAnalyticsError, ): AnalyzeHealthcareEntitiesErrorResult { return makeTextAnalyticsErrorResult(id, error); } diff --git a/sdk/textanalytics/ai-text-analytics/src/analyzeSentimentResult.ts b/sdk/textanalytics/ai-text-analytics/src/analyzeSentimentResult.ts index 9e4e2bf9fc8f..9f23b7f8748a 100644 --- a/sdk/textanalytics/ai-text-analytics/src/analyzeSentimentResult.ts +++ b/sdk/textanalytics/ai-text-analytics/src/analyzeSentimentResult.ts @@ -144,7 +144,7 @@ export type AnalyzeSentimentErrorResult = TextAnalyticsErrorResult; * @internal */ export function makeAnalyzeSentimentResult( - result: DocumentSentiment + result: DocumentSentiment, ): AnalyzeSentimentSuccessResult { const { id, @@ -167,7 +167,7 @@ export function makeAnalyzeSentimentResult( */ export function makeAnalyzeSentimentErrorResult( id: string, - error: TextAnalyticsError + error: TextAnalyticsError, ): AnalyzeSentimentErrorResult { return makeTextAnalyticsErrorResult(id, error); } @@ -183,7 +183,7 @@ export function makeAnalyzeSentimentErrorResult( */ function convertGeneratedSentenceSentiment( sentence: GeneratedSentenceSentiment, - result: DocumentSentiment + result: DocumentSentiment, ): SentenceSentiment { return { confidenceScores: sentence.confidenceScores, @@ -204,7 +204,7 @@ function convertGeneratedSentenceSentiment( assessments: target.relations .filter((relation) => relation.relationType === "assessment") .map((relation) => convertTargetRelationToAssessmentSentiment(relation, result)), - }) + }), ) : [], }; @@ -222,7 +222,7 @@ function convertGeneratedSentenceSentiment( */ function convertTargetRelationToAssessmentSentiment( targetRelation: TargetRelation, - result: DocumentSentiment + result: DocumentSentiment, ): AssessmentSentiment { const assessmentPtr = targetRelation.ref; const assessmentIndex: AssessmentIndex = parseAssessmentIndex(assessmentPtr); diff --git a/sdk/textanalytics/ai-text-analytics/src/analyzeSentimentResultArray.ts b/sdk/textanalytics/ai-text-analytics/src/analyzeSentimentResultArray.ts index df27a67adc5c..1c553d6a2ea8 100644 --- a/sdk/textanalytics/ai-text-analytics/src/analyzeSentimentResultArray.ts +++ b/sdk/textanalytics/ai-text-analytics/src/analyzeSentimentResultArray.ts @@ -36,12 +36,12 @@ export interface AnalyzeSentimentResultArray extends Array { */ export function makeDetectLanguageResultArray( input: TextDocumentInput[], - response: LanguageResult + response: LanguageResult, ): DetectLanguageResultArray { return combineSuccessfulAndErroneousDocumentsWithStatisticsAndModelVersion( input, response, makeDetectLanguageResult, - makeDetectLanguageErrorResult + makeDetectLanguageErrorResult, ); } diff --git a/sdk/textanalytics/ai-text-analytics/src/extractKeyPhrasesResult.ts b/sdk/textanalytics/ai-text-analytics/src/extractKeyPhrasesResult.ts index 7bc69044bdfd..1a6f7000c037 100644 --- a/sdk/textanalytics/ai-text-analytics/src/extractKeyPhrasesResult.ts +++ b/sdk/textanalytics/ai-text-analytics/src/extractKeyPhrasesResult.ts @@ -35,7 +35,7 @@ export type ExtractKeyPhrasesErrorResult = TextAnalyticsErrorResult; * @internal */ export function makeExtractKeyPhrasesResult( - result: DocumentKeyPhrases + result: DocumentKeyPhrases, ): ExtractKeyPhrasesSuccessResult { const { id, warnings, statistics, keyPhrases } = result; return { @@ -49,7 +49,7 @@ export function makeExtractKeyPhrasesResult( */ export function makeExtractKeyPhrasesErrorResult( id: string, - error: TextAnalyticsError + error: TextAnalyticsError, ): ExtractKeyPhrasesErrorResult { return makeTextAnalyticsErrorResult(id, error); } diff --git a/sdk/textanalytics/ai-text-analytics/src/extractKeyPhrasesResultArray.ts b/sdk/textanalytics/ai-text-analytics/src/extractKeyPhrasesResultArray.ts index 5803f416393e..0a8c380c7733 100644 --- a/sdk/textanalytics/ai-text-analytics/src/extractKeyPhrasesResultArray.ts +++ b/sdk/textanalytics/ai-text-analytics/src/extractKeyPhrasesResultArray.ts @@ -36,12 +36,12 @@ export interface ExtractKeyPhrasesResultArray extends Array { return { createdOn: response.createdDateTime, @@ -141,7 +141,7 @@ export class BeginAnalyzeActionsPollerOperation extends AnalysisPollOperation< private tracing: TracingClient, private documents: TextDocumentInput[], private actions: GeneratedActions, - private options: BeginAnalyzeActionsOptions = {} + private options: BeginAnalyzeActionsOptions = {}, ) { super(state); } @@ -153,7 +153,7 @@ export class BeginAnalyzeActionsPollerOperation extends AnalysisPollOperation< */ private listAnalyzeActionsResults( operationId: string, - options: AnalyzeActionsOperationStatusOptions = {} + options: AnalyzeActionsOperationStatusOptions = {}, ): PagedAsyncIterableAnalyzeActionsResult { const iter = this._listAnalyzeActionsResultsPaged(operationId, options); return { @@ -175,7 +175,7 @@ export class BeginAnalyzeActionsPollerOperation extends AnalysisPollOperation< */ private async *_listAnalyzeActionsResultsPaged( operationId: string, - options?: AnalyzeActionsOperationStatusOptions + options?: AnalyzeActionsOperationStatusOptions, ): AsyncIterableIterator { let response = await this._listAnalyzeActionsResultsSinglePage(operationId, options); yield response.result; @@ -187,7 +187,7 @@ export class BeginAnalyzeActionsPollerOperation extends AnalysisPollOperation< }; response = await this._listAnalyzeActionsResultsSinglePage( operationId, - optionsWithContinuation + optionsWithContinuation, ); yield response.result; } @@ -198,12 +198,12 @@ export class BeginAnalyzeActionsPollerOperation extends AnalysisPollOperation< */ private async _listAnalyzeActionsResultsSinglePage( operationId: string, - options?: AnalyzeActionsOperationStatusOptions + options?: AnalyzeActionsOperationStatusOptions, ): Promise { const response = await this.tracing.withSpan( "TextAnalyticsClient-_listAnalyzeActionsResultsSinglePage", options || {}, - (finalOptions) => this.client.analyzeStatus(operationId, finalOptions) + (finalOptions) => this.client.analyzeStatus(operationId, finalOptions), ); const result = createAnalyzeActionsResult(response, this.documents); return response.nextLink ? { result, ...nextLinkToTopAndSkip(response.nextLink) } : { result }; @@ -215,12 +215,12 @@ export class BeginAnalyzeActionsPollerOperation extends AnalysisPollOperation< */ private async getAnalyzeActionsOperationStatus( operationId: string, - options?: AnalyzeActionsOperationStatusOptions + options?: AnalyzeActionsOperationStatusOptions, ): Promise { const response = await this.tracing.withSpan( "TextAnalyticsClient-getAnalyzeActionsOperationStatus", options || {}, - (finalOptions) => this.client.analyzeStatus(operationId, finalOptions) + (finalOptions) => this.client.analyzeStatus(operationId, finalOptions), ); switch (response.status) { case "notStarted": @@ -240,7 +240,7 @@ export class BeginAnalyzeActionsPollerOperation extends AnalysisPollOperation< private async beginAnalyzeActions( documents: TextDocumentInput[], actions: GeneratedActions, - options?: BeginAnalyzeInternalOptions + options?: BeginAnalyzeInternalOptions, ): Promise { return this.tracing.withSpan( "TextAnalyticsClient-beginAnalyze", @@ -254,8 +254,8 @@ export class BeginAnalyzeActionsPollerOperation extends AnalysisPollOperation< displayName: options?.displayName, }, ...finalOptions, - }) - ) + }), + ), ); } @@ -263,7 +263,7 @@ export class BeginAnalyzeActionsPollerOperation extends AnalysisPollOperation< options: { abortSignal?: AbortSignalLike; fireProgress?: (state: AnalyzeActionsOperationState) => void; - } = {} + } = {}, ): Promise { const state = this.state; const updatedAbortSignal = options.abortSignal; @@ -277,7 +277,7 @@ export class BeginAnalyzeActionsPollerOperation extends AnalysisPollOperation< }); if (!response.operationLocation) { throw new Error( - "Expects a valid 'operationLocation' to retrieve analyze results but did not find any" + "Expects a valid 'operationLocation' to retrieve analyze results but did not find any", ); } state.operationId = getOperationId(response.operationLocation); diff --git a/sdk/textanalytics/ai-text-analytics/src/lro/analyze/poller.ts b/sdk/textanalytics/ai-text-analytics/src/lro/analyze/poller.ts index 713b3f5680d6..ec895a84c1bf 100644 --- a/sdk/textanalytics/ai-text-analytics/src/lro/analyze/poller.ts +++ b/sdk/textanalytics/ai-text-analytics/src/lro/analyze/poller.ts @@ -60,7 +60,7 @@ export class BeginAnalyzeActionsPoller extends AnalysisPoller< tracing, documents, actions, - options + options, ); super(operation); diff --git a/sdk/textanalytics/ai-text-analytics/src/lro/health/operation.ts b/sdk/textanalytics/ai-text-analytics/src/lro/health/operation.ts index 92cd2492c72f..504b614fbae0 100644 --- a/sdk/textanalytics/ai-text-analytics/src/lro/health/operation.ts +++ b/sdk/textanalytics/ai-text-analytics/src/lro/health/operation.ts @@ -118,7 +118,7 @@ export interface AnalyzeHealthcareOperationState * @internal */ function getMetaInfoFromResponse( - response: HealthcareJobState + response: HealthcareJobState, ): Omit { return { createdOn: response.createdDateTime, @@ -142,7 +142,7 @@ export class BeginAnalyzeHealthcarePollerOperation extends AnalysisPollOperation private client: Client, private tracing: TracingClient, private documents: TextDocumentInput[], - private options: BeginAnalyzeHealthcareEntitiesOptions = {} + private options: BeginAnalyzeHealthcareEntitiesOptions = {}, ) { super(state); } @@ -154,7 +154,7 @@ export class BeginAnalyzeHealthcarePollerOperation extends AnalysisPollOperation */ private listHealthcareEntitiesByPage( operationId: string, - options: HealthcareJobStatusOptions = {} + options: HealthcareJobStatusOptions = {}, ): PagedAsyncIterableAnalyzeHealthcareEntitiesResult { const iter = this._listHealthcareEntities(operationId, options); return { @@ -176,7 +176,7 @@ export class BeginAnalyzeHealthcarePollerOperation extends AnalysisPollOperation */ private async *_listHealthcareEntities( operationId: string, - options?: HealthcareJobStatusOptions + options?: HealthcareJobStatusOptions, ): AsyncIterableIterator { for await (const page of this._listHealthcareEntitiesPaged(operationId, options)) { yield* page; @@ -188,7 +188,7 @@ export class BeginAnalyzeHealthcarePollerOperation extends AnalysisPollOperation */ private async *_listHealthcareEntitiesPaged( operationId: string, - options?: HealthcareJobStatusOptions + options?: HealthcareJobStatusOptions, ): AsyncIterableIterator { let response = await this._listHealthcareEntitiesSinglePage(operationId, options); yield response.result; @@ -208,19 +208,19 @@ export class BeginAnalyzeHealthcarePollerOperation extends AnalysisPollOperation */ private async _listHealthcareEntitiesSinglePage( operationId: string, - options?: HealthcareJobStatusOptions + options?: HealthcareJobStatusOptions, ): Promise { const response = await this.tracing.withSpan( "TextAnalyticsClient-_listHealthcareEntitiesSinglePage", options || {}, - (finalOptions) => this.client.healthStatus(operationId, finalOptions) + (finalOptions) => this.client.healthStatus(operationId, finalOptions), ); if (response.results) { const result = processAndCombineSuccessfulAndErroneousDocuments( this.documents, response.results, makeHealthcareEntitiesResult, - makeHealthcareEntitiesErrorResult + makeHealthcareEntitiesErrorResult, ); return response.nextLink ? { result, ...nextLinkToTopAndSkip(response.nextLink) } @@ -236,12 +236,12 @@ export class BeginAnalyzeHealthcarePollerOperation extends AnalysisPollOperation */ private async getHealthStatus( operationId: string, - options?: HealthcareJobStatusOptions + options?: HealthcareJobStatusOptions, ): Promise { const response = await this.tracing.withSpan( "TextAnalyticsClient-getHealthStatus", options || {}, - (finalOptions) => this.client.healthStatus(operationId, finalOptions) + (finalOptions) => this.client.healthStatus(operationId, finalOptions), ); switch (response.status) { case "notStarted": @@ -272,12 +272,12 @@ export class BeginAnalyzeHealthcarePollerOperation extends AnalysisPollOperation private async beginAnalyzeHealthcare( documents: TextDocumentInput[], - options?: BeginAnalyzeHealthcareInternalOptions + options?: BeginAnalyzeHealthcareInternalOptions, ): Promise { return this.tracing.withSpan( "TextAnalyticsClient-beginAnalyzeHealthcare", addStrEncodingParam(options || {}), - (finalOptions) => throwError(this.client.health({ documents: documents }, finalOptions)) + (finalOptions) => throwError(this.client.health({ documents: documents }, finalOptions)), ); } @@ -285,7 +285,7 @@ export class BeginAnalyzeHealthcarePollerOperation extends AnalysisPollOperation options: { abortSignal?: AbortSignalLike; fireProgress?: (state: AnalyzeHealthcareOperationState) => void; - } = {} + } = {}, ): Promise { const state = this.state; const updatedAbortSignal = options.abortSignal; @@ -301,7 +301,7 @@ export class BeginAnalyzeHealthcarePollerOperation extends AnalysisPollOperation }); if (!response.operationLocation) { throw new Error( - "Expects a valid 'operationLocation' to retrieve health results but did not find any" + "Expects a valid 'operationLocation' to retrieve health results but did not find any", ); } state.operationId = getOperationId(response.operationLocation); diff --git a/sdk/textanalytics/ai-text-analytics/src/lro/health/poller.ts b/sdk/textanalytics/ai-text-analytics/src/lro/health/poller.ts index 23f03c405e7d..0950652b4df5 100644 --- a/sdk/textanalytics/ai-text-analytics/src/lro/health/poller.ts +++ b/sdk/textanalytics/ai-text-analytics/src/lro/health/poller.ts @@ -106,7 +106,7 @@ export class BeginAnalyzeHealthcarePoller extends AnalysisPoller< client, tracing, documents, - options + options, ); super(operation); diff --git a/sdk/textanalytics/ai-text-analytics/src/lro/poller.ts b/sdk/textanalytics/ai-text-analytics/src/lro/poller.ts index 635290165a16..29a1c3854a73 100644 --- a/sdk/textanalytics/ai-text-analytics/src/lro/poller.ts +++ b/sdk/textanalytics/ai-text-analytics/src/lro/poller.ts @@ -58,7 +58,7 @@ export interface AnalysisPollOperationState */ export abstract class AnalysisPoller< TState extends PollOperationState, - TResult + TResult, > extends Poller { /** * Defines how much time the poller is going to wait before making a new request to the service. diff --git a/sdk/textanalytics/ai-text-analytics/src/recognizeCategorizedEntitiesResult.ts b/sdk/textanalytics/ai-text-analytics/src/recognizeCategorizedEntitiesResult.ts index 453cad17715a..fa7b3876953f 100644 --- a/sdk/textanalytics/ai-text-analytics/src/recognizeCategorizedEntitiesResult.ts +++ b/sdk/textanalytics/ai-text-analytics/src/recognizeCategorizedEntitiesResult.ts @@ -42,7 +42,7 @@ export type RecognizeCategorizedEntitiesErrorResult = TextAnalyticsErrorResult; * @internal */ export function makeRecognizeCategorizedEntitiesResult( - result: DocumentEntities + result: DocumentEntities, ): RecognizeCategorizedEntitiesSuccessResult { const { entities, statistics, warnings, id } = result; return { @@ -56,7 +56,7 @@ export function makeRecognizeCategorizedEntitiesResult( */ export function makeRecognizeCategorizedEntitiesErrorResult( id: string, - error: TextAnalyticsError + error: TextAnalyticsError, ): RecognizeCategorizedEntitiesErrorResult { return makeTextAnalyticsErrorResult(id, error); } diff --git a/sdk/textanalytics/ai-text-analytics/src/recognizeCategorizedEntitiesResultArray.ts b/sdk/textanalytics/ai-text-analytics/src/recognizeCategorizedEntitiesResultArray.ts index 57578b2c23db..0062ece499e5 100644 --- a/sdk/textanalytics/ai-text-analytics/src/recognizeCategorizedEntitiesResultArray.ts +++ b/sdk/textanalytics/ai-text-analytics/src/recognizeCategorizedEntitiesResultArray.ts @@ -33,12 +33,12 @@ export interface RecognizeCategorizedEntitiesResultArray */ export function makeRecognizeCategorizedEntitiesResultArray( input: TextDocumentInput[], - response: EntitiesResult + response: EntitiesResult, ): RecognizeCategorizedEntitiesResultArray { return combineSuccessfulAndErroneousDocumentsWithStatisticsAndModelVersion( input, response, makeRecognizeCategorizedEntitiesResult, - makeRecognizeCategorizedEntitiesErrorResult + makeRecognizeCategorizedEntitiesErrorResult, ); } diff --git a/sdk/textanalytics/ai-text-analytics/src/recognizeLinkedEntitiesResult.ts b/sdk/textanalytics/ai-text-analytics/src/recognizeLinkedEntitiesResult.ts index 7d2df0073264..18879ea12f29 100644 --- a/sdk/textanalytics/ai-text-analytics/src/recognizeLinkedEntitiesResult.ts +++ b/sdk/textanalytics/ai-text-analytics/src/recognizeLinkedEntitiesResult.ts @@ -36,7 +36,7 @@ export type RecognizeLinkedEntitiesErrorResult = TextAnalyticsErrorResult; * @internal */ export function makeRecognizeLinkedEntitiesResult( - result: DocumentLinkedEntities + result: DocumentLinkedEntities, ): RecognizeLinkedEntitiesSuccessResult { const { statistics, id, warnings, entities } = result; return { @@ -50,7 +50,7 @@ export function makeRecognizeLinkedEntitiesResult( */ export function makeRecognizeLinkedEntitiesErrorResult( id: string, - error: TextAnalyticsError + error: TextAnalyticsError, ): RecognizeLinkedEntitiesErrorResult { return makeTextAnalyticsErrorResult(id, error); } diff --git a/sdk/textanalytics/ai-text-analytics/src/recognizeLinkedEntitiesResultArray.ts b/sdk/textanalytics/ai-text-analytics/src/recognizeLinkedEntitiesResultArray.ts index 0fc804a9fa55..69f3325a912a 100644 --- a/sdk/textanalytics/ai-text-analytics/src/recognizeLinkedEntitiesResultArray.ts +++ b/sdk/textanalytics/ai-text-analytics/src/recognizeLinkedEntitiesResultArray.ts @@ -36,12 +36,12 @@ export interface RecognizeLinkedEntitiesResultArray extends Array; /** * Runs a predictive model to determine the language that the passed-in @@ -441,12 +441,12 @@ export class TextAnalyticsClient { */ public async detectLanguage( documents: DetectLanguageInput[], - options?: DetectLanguageOptions + options?: DetectLanguageOptions, ): Promise; public async detectLanguage( documents: string[] | DetectLanguageInput[], countryHintOrOptions?: string | DetectLanguageOptions, - options?: DetectLanguageOptions + options?: DetectLanguageOptions, ): Promise { let realOptions: DetectLanguageOptions; let realInputs: DetectLanguageInput[]; @@ -477,9 +477,9 @@ export class TextAnalyticsClient { { documents: realInputs, }, - finalOptions + finalOptions, ) - .then((result) => makeDetectLanguageResultArray(realInputs, result)) + .then((result) => makeDetectLanguageResultArray(realInputs, result)), ); } @@ -503,7 +503,7 @@ export class TextAnalyticsClient { documents: string[], language?: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: RecognizeCategorizedEntitiesOptions + options?: RecognizeCategorizedEntitiesOptions, ): Promise; /** * Runs a predictive model to identify a collection of named entities @@ -519,13 +519,13 @@ export class TextAnalyticsClient { public async recognizeEntities( documents: TextDocumentInput[], // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: RecognizeCategorizedEntitiesOptions + options?: RecognizeCategorizedEntitiesOptions, ): Promise; public async recognizeEntities( documents: string[] | TextDocumentInput[], languageOrOptions?: string | RecognizeCategorizedEntitiesOptions, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options?: RecognizeCategorizedEntitiesOptions + options?: RecognizeCategorizedEntitiesOptions, ): Promise { let realOptions: RecognizeCategorizedEntitiesOptions; let realInputs: TextDocumentInput[]; @@ -552,9 +552,9 @@ export class TextAnalyticsClient { { documents: realInputs, }, - finalOptions - ) - ).then((result) => makeRecognizeCategorizedEntitiesResultArray(realInputs, result)) + finalOptions, + ), + ).then((result) => makeRecognizeCategorizedEntitiesResultArray(realInputs, result)), ); } @@ -576,7 +576,7 @@ export class TextAnalyticsClient { public async analyzeSentiment( documents: string[], language?: string, - options?: AnalyzeSentimentOptions + options?: AnalyzeSentimentOptions, ): Promise; /** * Runs a predictive model to identify the positive, negative or neutral, or mixed @@ -590,12 +590,12 @@ export class TextAnalyticsClient { */ public async analyzeSentiment( documents: TextDocumentInput[], - options?: AnalyzeSentimentOptions + options?: AnalyzeSentimentOptions, ): Promise; public async analyzeSentiment( documents: string[] | TextDocumentInput[], languageOrOptions?: string | AnalyzeSentimentOptions, - options?: AnalyzeSentimentOptions + options?: AnalyzeSentimentOptions, ): Promise { let realOptions: AnalyzeSentimentOptions; let realInputs: TextDocumentInput[]; @@ -622,9 +622,9 @@ export class TextAnalyticsClient { { documents: realInputs, }, - finalOptions + finalOptions, ) - .then((result) => makeAnalyzeSentimentResultArray(realInputs, result)) + .then((result) => makeAnalyzeSentimentResultArray(realInputs, result)), ); } @@ -644,7 +644,7 @@ export class TextAnalyticsClient { public async extractKeyPhrases( documents: string[], language?: string, - options?: ExtractKeyPhrasesOptions + options?: ExtractKeyPhrasesOptions, ): Promise; /** * Runs a model to identify a collection of significant phrases @@ -656,12 +656,12 @@ export class TextAnalyticsClient { */ public async extractKeyPhrases( documents: TextDocumentInput[], - options?: ExtractKeyPhrasesOptions + options?: ExtractKeyPhrasesOptions, ): Promise; public async extractKeyPhrases( documents: string[] | TextDocumentInput[], languageOrOptions?: string | ExtractKeyPhrasesOptions, - options?: ExtractKeyPhrasesOptions + options?: ExtractKeyPhrasesOptions, ): Promise { let realOptions: ExtractKeyPhrasesOptions; let realInputs: TextDocumentInput[]; @@ -688,9 +688,9 @@ export class TextAnalyticsClient { { documents: realInputs, }, - finalOptions + finalOptions, ) - .then((result) => makeExtractKeyPhrasesResultArray(realInputs, result)) + .then((result) => makeExtractKeyPhrasesResultArray(realInputs, result)), ); } @@ -712,7 +712,7 @@ export class TextAnalyticsClient { public async recognizePiiEntities( inputs: string[], language?: string, - options?: RecognizePiiEntitiesOptions + options?: RecognizePiiEntitiesOptions, ): Promise; /** * Runs a predictive model to identify a collection of entities containing @@ -726,12 +726,12 @@ export class TextAnalyticsClient { */ public async recognizePiiEntities( inputs: TextDocumentInput[], - options?: RecognizePiiEntitiesOptions + options?: RecognizePiiEntitiesOptions, ): Promise; public async recognizePiiEntities( inputs: string[] | TextDocumentInput[], languageOrOptions?: string | RecognizePiiEntitiesOptions, - options?: RecognizePiiEntitiesOptions + options?: RecognizePiiEntitiesOptions, ): Promise { let realOptions: RecognizePiiEntitiesOptions; let realInputs: TextDocumentInput[]; @@ -754,9 +754,9 @@ export class TextAnalyticsClient { { documents: realInputs, }, - finalOptions + finalOptions, ) - .then((result) => makeRecognizePiiEntitiesResultArray(realInputs, result)) + .then((result) => makeRecognizePiiEntitiesResultArray(realInputs, result)), ); } @@ -777,7 +777,7 @@ export class TextAnalyticsClient { public async recognizeLinkedEntities( documents: string[], language?: string, - options?: RecognizeLinkedEntitiesOptions + options?: RecognizeLinkedEntitiesOptions, ): Promise; /** * Runs a predictive model to identify a collection of entities @@ -790,12 +790,12 @@ export class TextAnalyticsClient { */ public async recognizeLinkedEntities( documents: TextDocumentInput[], - options?: RecognizeLinkedEntitiesOptions + options?: RecognizeLinkedEntitiesOptions, ): Promise; public async recognizeLinkedEntities( documents: string[] | TextDocumentInput[], languageOrOptions?: string | RecognizeLinkedEntitiesOptions, - options?: RecognizeLinkedEntitiesOptions + options?: RecognizeLinkedEntitiesOptions, ): Promise { let realOptions: RecognizeLinkedEntitiesOptions; let realInputs: TextDocumentInput[]; @@ -822,9 +822,9 @@ export class TextAnalyticsClient { { documents: realInputs, }, - finalOptions + finalOptions, ) - .then((result) => makeRecognizeLinkedEntitiesResultArray(realInputs, result)) + .then((result) => makeRecognizeLinkedEntitiesResultArray(realInputs, result)), ); } @@ -842,7 +842,7 @@ export class TextAnalyticsClient { async beginAnalyzeHealthcareEntities( documents: string[], language?: string, - options?: BeginAnalyzeHealthcareEntitiesOptions + options?: BeginAnalyzeHealthcareEntitiesOptions, ): Promise; /** * Start a healthcare analysis operation to recognize healthcare related entities (drugs, conditions, @@ -852,13 +852,13 @@ export class TextAnalyticsClient { */ async beginAnalyzeHealthcareEntities( documents: TextDocumentInput[], - options?: BeginAnalyzeHealthcareEntitiesOptions + options?: BeginAnalyzeHealthcareEntitiesOptions, ): Promise; async beginAnalyzeHealthcareEntities( documents: string[] | TextDocumentInput[], languageOrOptions?: string | BeginAnalyzeHealthcareEntitiesOptions, - options?: BeginAnalyzeHealthcareEntitiesOptions + options?: BeginAnalyzeHealthcareEntitiesOptions, ): Promise { let realOptions: BeginAnalyzeHealthcareEntitiesOptions; let realInputs: TextDocumentInput[]; @@ -900,7 +900,7 @@ export class TextAnalyticsClient { documents: string[], actions: TextAnalyticsActions, language?: string, - options?: BeginAnalyzeActionsOptions + options?: BeginAnalyzeActionsOptions, ): Promise; /** * Submit a collection of text documents for analysis. Specify one or more unique actions to be executed. @@ -911,13 +911,13 @@ export class TextAnalyticsClient { public async beginAnalyzeActions( documents: TextDocumentInput[], actions: TextAnalyticsActions, - options?: BeginAnalyzeActionsOptions + options?: BeginAnalyzeActionsOptions, ): Promise; public async beginAnalyzeActions( documents: string[] | TextDocumentInput[], actions: TextAnalyticsActions, languageOrOptions?: string | BeginAnalyzeActionsOptions, - options?: BeginAnalyzeActionsOptions + options?: BeginAnalyzeActionsOptions, ): Promise { let realOptions: BeginAnalyzeActionsOptions; let realInputs: TextDocumentInput[]; @@ -957,17 +957,17 @@ export class TextAnalyticsClient { function compileAnalyzeInput(actions: TextAnalyticsActions): GeneratedActions { return { entityRecognitionPiiTasks: actions.recognizePiiEntitiesActions?.map( - compose(setStrEncodingParam, compose(setCategoriesFilter, addParamsToTask)) + compose(setStrEncodingParam, compose(setCategoriesFilter, addParamsToTask)), ), entityRecognitionTasks: actions.recognizeEntitiesActions?.map( - compose(setStrEncodingParam, addParamsToTask) + compose(setStrEncodingParam, addParamsToTask), ), keyPhraseExtractionTasks: actions.extractKeyPhrasesActions?.map(addParamsToTask), entityLinkingTasks: actions.recognizeLinkedEntitiesActions?.map( - compose(setStrEncodingParam, addParamsToTask) + compose(setStrEncodingParam, addParamsToTask), ), sentimentAnalysisTasks: actions.analyzeSentimentActions?.map( - compose(setStrEncodingParam, compose(setOpinionMining, addParamsToTask)) + compose(setStrEncodingParam, compose(setOpinionMining, addParamsToTask)), ), }; } @@ -981,7 +981,7 @@ function isStringArray(documents: any[]): documents is string[] { */ function convertToDetectLanguageInput( inputs: string[], - countryHint: string + countryHint: string, ): DetectLanguageInput[] { if (countryHint === "none") { countryHint = ""; @@ -1014,7 +1014,7 @@ function convertToTextDocumentInput(inputs: string[], language: string): TextDoc * @internal */ function makeGeneratedAnalyzeSentimentOptions( - params: AnalyzeSentimentOptions + params: AnalyzeSentimentOptions, ): GeneratedAnalyzeSentimentOptions { return { abortSignal: params.abortSignal, @@ -1036,7 +1036,7 @@ function makeGeneratedAnalyzeSentimentOptions( * @internal */ function makeGeneratedRecognizePiiEntitiesOptions( - params: RecognizePiiEntitiesOptions + params: RecognizePiiEntitiesOptions, ): GeneratedRecognizePiiEntitiesOptions { return { abortSignal: params.abortSignal, @@ -1059,7 +1059,7 @@ function makeGeneratedRecognizePiiEntitiesOptions( * @internal */ function makeGeneratedRecognizeCategorizedEntitiesOptions( - params: RecognizeCategorizedEntitiesOptions + params: RecognizeCategorizedEntitiesOptions, ): GeneratedRecognizeCategorizedEntitiesOptions { return { abortSignal: params.abortSignal, @@ -1080,7 +1080,7 @@ function makeGeneratedRecognizeCategorizedEntitiesOptions( * @internal */ function makeGeneratedDetectLanguageOptions( - params: DetectLanguageOptions + params: DetectLanguageOptions, ): GeneratedDetectLanguageOptions { return { abortSignal: params.abortSignal, @@ -1100,7 +1100,7 @@ function makeGeneratedDetectLanguageOptions( * @internal */ function makeGeneratedExtractKeyPhrasesOptions( - params: ExtractKeyPhrasesOptions + params: ExtractKeyPhrasesOptions, ): GeneratedExtractKeyPhrasesOptions { return { abortSignal: params.abortSignal, @@ -1120,7 +1120,7 @@ function makeGeneratedExtractKeyPhrasesOptions( * @internal */ function makeGeneratedRecognizeLinkingEntitiesOptions( - params: RecognizeLinkedEntitiesOptions + params: RecognizeLinkedEntitiesOptions, ): GeneratedRecognizeLinkedEntitiesOptions { return { abortSignal: params.abortSignal, diff --git a/sdk/textanalytics/ai-text-analytics/src/textAnalyticsResult.ts b/sdk/textanalytics/ai-text-analytics/src/textAnalyticsResult.ts index bfe5ce925fad..98e9e426e36f 100644 --- a/sdk/textanalytics/ai-text-analytics/src/textAnalyticsResult.ts +++ b/sdk/textanalytics/ai-text-analytics/src/textAnalyticsResult.ts @@ -132,7 +132,7 @@ interface TextAnalyticsResponse { * @internal */ export function intoTextAnalyticsError( - errorModel: GeneratedTextAnalyticsErrorModel | InnerError + errorModel: GeneratedTextAnalyticsErrorModel | InnerError, ): TextAnalyticsError { // Return the deepest error. This will always be at most // one level for TextAnalytics @@ -153,7 +153,7 @@ export function intoTextAnalyticsError( export function makeTextAnalyticsSuccessResult( id: string, warnings: TextAnalyticsWarning[], - statistics?: TextDocumentStatistics + statistics?: TextDocumentStatistics, ): TextAnalyticsSuccessResult { return { id, @@ -167,7 +167,7 @@ export function makeTextAnalyticsSuccessResult( */ export function makeTextAnalyticsErrorResult( id: string, - error: GeneratedTextAnalyticsErrorModel + error: GeneratedTextAnalyticsErrorModel, ): TextAnalyticsErrorResult { return { id, @@ -186,17 +186,17 @@ export function makeTextAnalyticsErrorResult( export function processAndCombineSuccessfulAndErroneousDocuments< TSuccessService extends TextAnalyticsSuccessResult, TSuccessSDK extends TextAnalyticsSuccessResult, - TError extends TextAnalyticsErrorResult + TError extends TextAnalyticsErrorResult, >( input: TextDocumentInput[], response: TextAnalyticsResponse, processSuccess: (successResult: TSuccessService) => TSuccessSDK, - processError: (id: string, error: GeneratedTextAnalyticsErrorModel) => TError + processError: (id: string, error: GeneratedTextAnalyticsErrorModel) => TError, ): (TSuccessSDK | TextAnalyticsErrorResult)[] { const successResults: (TSuccessSDK | TextAnalyticsErrorResult)[] = response.documents.map(processSuccess); const unsortedResults = successResults.concat( - response.errors.map((error) => processError(error.id, error.error)) + response.errors.map((error) => processError(error.id, error.error)), ); return sortResponseIdObjects(input, unsortedResults); @@ -213,18 +213,18 @@ export function processAndCombineSuccessfulAndErroneousDocuments< export function combineSuccessfulAndErroneousDocumentsWithStatisticsAndModelVersion< TSuccessService extends TextAnalyticsSuccessResult, TSuccessSDK extends TextAnalyticsSuccessResult, - TError extends TextAnalyticsErrorResult + TError extends TextAnalyticsErrorResult, >( input: TextDocumentInput[], response: TextAnalyticsResponse, processSuccess: (doc: TSuccessService) => TSuccessSDK, - processError: (id: string, error: GeneratedTextAnalyticsErrorModel) => TError + processError: (id: string, error: GeneratedTextAnalyticsErrorModel) => TError, ): TextAnalyticsResultArray { const sorted = processAndCombineSuccessfulAndErroneousDocuments( input, response, processSuccess, - processError + processError, ); return Object.assign(sorted, { statistics: response.statistics, diff --git a/sdk/textanalytics/ai-text-analytics/src/util.ts b/sdk/textanalytics/ai-text-analytics/src/util.ts index 25fb4fdc4387..032117212e37 100644 --- a/sdk/textanalytics/ai-text-analytics/src/util.ts +++ b/sdk/textanalytics/ai-text-analytics/src/util.ts @@ -29,7 +29,7 @@ interface IdObject { */ export function sortResponseIdObjects( sortedArray: T[], - unsortedArray: U[] + unsortedArray: U[], ): U[] { const unsortedMap = new Map(); for (const item of unsortedArray) { @@ -39,7 +39,7 @@ export function sortResponseIdObjects( if (unsortedArray.length !== sortedArray.length) { const ordinal = unsortedArray.length > sortedArray.length ? "more" : "fewer"; logger.warning( - `The service returned ${ordinal} responses than inputs. Some errors may be treated as fatal.` + `The service returned ${ordinal} responses than inputs. Some errors may be treated as fatal.`, ); } @@ -106,7 +106,7 @@ export type StringIndexType = "TextElement_v8" | "UnicodeCodePoint" | "Utf16Code * @internal */ export function addStrEncodingParam( - options: Options + options: Options, ): Options & { stringIndexType: StringIndexType } { return { ...options, stringIndexType: options.stringIndexType || jsEncodingUnit }; } @@ -117,13 +117,13 @@ export function addStrEncodingParam( - x: X + x: X, ): X & { stringIndexType: GeneratedStringIndexType } { return { ...x, stringIndexType: x.stringIndexType || jsEncodingUnit }; } export function setStrEncodingParamValue( - stringIndexType?: GeneratedStringIndexType + stringIndexType?: GeneratedStringIndexType, ): GeneratedStringIndexType { return stringIndexType || jsEncodingUnit; } @@ -133,7 +133,7 @@ export function setStrEncodingParamValue( * @internal */ export function setOpinionMining( - x: X + x: X, ): X & { opinionMining?: boolean } { return { ...x, opinionMining: x.includeOpinionMining }; } @@ -143,7 +143,7 @@ export function setOpinionMining( * @internal */ export function setCategoriesFilter( - x: X + x: X, ): X & { piiCategories?: string[] } { return { ...x, piiCategories: x.categoriesFilter }; } @@ -152,7 +152,7 @@ export function setCategoriesFilter( * @internal */ export function addParamsToTask( - action: X + action: X, ): { parameters?: Omit; taskName?: string } { const { actionName, ...params } = action; return { parameters: params, taskName: actionName }; diff --git a/sdk/textanalytics/ai-text-analytics/test/public/textAnalyticsClient.spec.ts b/sdk/textanalytics/ai-text-analytics/test/public/textAnalyticsClient.spec.ts index 3754711b8330..5b00890ad03c 100644 --- a/sdk/textanalytics/ai-text-analytics/test/public/textAnalyticsClient.spec.ts +++ b/sdk/textanalytics/ai-text-analytics/test/public/textAnalyticsClient.spec.ts @@ -122,10 +122,10 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { sentence.opinions.reduce( (assessments: string[], opinion: Opinion) => assessments.concat( - opinion.assessments.map((assessment: AssessmentSentiment) => assessment.text) + opinion.assessments.map((assessment: AssessmentSentiment) => assessment.text), ), - [] - ) + [], + ), ); const allAssessments1 = result1.sentences.reduce(listAllAssessments, []); assert.deepEqual(allAssessments1, ["unacceptable"]); @@ -146,7 +146,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { } assert.equal( results.filter((result) => result.error === undefined).length, - testDataEn.length + testDataEn.length, ); assert.equal(errorResult.error.code, "InvalidDocument"); }); @@ -157,14 +157,14 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { id: getId(), language: "en", text, - }) + }), ); const esInputs = testDataEs.map( (text): TextDocumentInput => ({ id: getId(), language: "es", text, - }) + }), ); const allInputs = enInputs.concat(esInputs); const results = await client.analyzeSentiment(allInputs); @@ -172,8 +172,8 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { assertAllSuccess(results); results.map((result) => (result as AnalyzeSentimentSuccessResult).sentences.map((sentence) => - assert.isEmpty(sentence.opinions) - ) + assert.isEmpty(sentence.opinions), + ), ); }); @@ -192,37 +192,38 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { assertAllSuccess(results); const documentSentiment: AnalyzeSentimentSuccessResult = results[0] as AnalyzeSentimentSuccessResult; - documentSentiment.sentences.map((sentence) => - sentence.opinions?.map((opinion) => { - const Target = opinion.target; - assert.equal("design", Target.text); - assert.equal("positive", Target.sentiment); - assert.isAtLeast(Target.confidenceScores.positive, 0); - assert.isAtLeast(Target.confidenceScores.negative, 0); - assert.equal(Target.offset, 32); - assert.equal(Target.length, 6); - assert.equal(Target.text.length, Target.length); - - const sleekAssessment = opinion.assessments[0]; - assert.equal("sleek", sleekAssessment.text); - assert.equal("positive", sleekAssessment.sentiment); - assert.isAtLeast(sleekAssessment.confidenceScores.positive, 0); - assert.isAtLeast(sleekAssessment.confidenceScores.positive, 0); - assert.isFalse(sleekAssessment.isNegated); - assert.equal(sleekAssessment.offset, 9); - assert.equal(sleekAssessment.length, 5); - assert.equal(sleekAssessment.text.length, sleekAssessment.length); - - const beautifulAssessment = opinion.assessments[1]; - assert.equal("beautiful", beautifulAssessment.text); - assert.equal("positive", beautifulAssessment.sentiment); - assert.isAtLeast(beautifulAssessment.confidenceScores.positive, 0); - assert.isAtLeast(beautifulAssessment.confidenceScores.positive, 0); - assert.isFalse(beautifulAssessment.isNegated); - assert.equal(beautifulAssessment.offset, 53); - assert.equal(beautifulAssessment.length, 9); - assert.equal(beautifulAssessment.text.length, beautifulAssessment.length); - }) + documentSentiment.sentences.map( + (sentence) => + sentence.opinions?.map((opinion) => { + const Target = opinion.target; + assert.equal("design", Target.text); + assert.equal("positive", Target.sentiment); + assert.isAtLeast(Target.confidenceScores.positive, 0); + assert.isAtLeast(Target.confidenceScores.negative, 0); + assert.equal(Target.offset, 32); + assert.equal(Target.length, 6); + assert.equal(Target.text.length, Target.length); + + const sleekAssessment = opinion.assessments[0]; + assert.equal("sleek", sleekAssessment.text); + assert.equal("positive", sleekAssessment.sentiment); + assert.isAtLeast(sleekAssessment.confidenceScores.positive, 0); + assert.isAtLeast(sleekAssessment.confidenceScores.positive, 0); + assert.isFalse(sleekAssessment.isNegated); + assert.equal(sleekAssessment.offset, 9); + assert.equal(sleekAssessment.length, 5); + assert.equal(sleekAssessment.text.length, sleekAssessment.length); + + const beautifulAssessment = opinion.assessments[1]; + assert.equal("beautiful", beautifulAssessment.text); + assert.equal("positive", beautifulAssessment.sentiment); + assert.isAtLeast(beautifulAssessment.confidenceScores.positive, 0); + assert.isAtLeast(beautifulAssessment.confidenceScores.positive, 0); + assert.isFalse(beautifulAssessment.isNegated); + assert.equal(beautifulAssessment.offset, 53); + assert.equal(beautifulAssessment.length, 9); + assert.equal(beautifulAssessment.text.length, beautifulAssessment.length); + }), ); }); @@ -321,7 +322,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { it('client accepts "none" country hint with string[] input', async function () { const results = await client.detectLanguage( ["I use Azure Functions to develop my service."], - "none" + "none", ); assert.equal(results.length, 1); assertAllSuccess(results); @@ -336,8 +337,8 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { id: getId(), countryHint: "none", text: input, - }) - ) + }), + ), ); assertAllSuccess(results); }); @@ -356,14 +357,14 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { (text): DetectLanguageInput => ({ id: getId(), text, - }) + }), ); const esInputs = testDataEs.map( (text): DetectLanguageInput => ({ id: getId(), countryHint: "mx", text, - }) + }), ); const allInputs = enInputs.concat(esInputs); @@ -393,7 +394,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { it("service errors on unsupported language", async function () { const [result] = await client.recognizeEntities( ["This is some text, but it doesn't matter."], - "notalanguage" + "notalanguage", ); if (result.error === undefined) { @@ -409,14 +410,14 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { id: getId(), text, language: "en", - }) + }), ); const esInputs = testDataEs.map( (text): TextDocumentInput => ({ id: getId(), text, language: "es", - }) + }), ); const allInputs = enInputs.concat(esInputs); @@ -431,14 +432,14 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { id: getId(), text, language: "en", - }) + }), ); const esInputs = testDataEs.map( (text): TextDocumentInput => ({ id: getId(), text, language: "es", - }) + }), ); const allInputs = enInputs.concat(esInputs); await assertRestError(client.recognizeEntities(allInputs), { @@ -469,7 +470,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { it("service errors on unsupported language", async function () { const [result] = await client.extractKeyPhrases( ["This is some text, but it doesn't matter."], - "notalanguage" + "notalanguage", ); if (result.error === undefined) { @@ -485,14 +486,14 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { id: getId(), text, language: "en", - }) + }), ); const esInputs = testDataEs.map( (text): TextDocumentInput => ({ id: getId(), text, language: "es", - }) + }), ); const allInputs = enInputs.concat(esInputs); @@ -535,7 +536,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { it("service errors on unsupported language", async function () { const [result] = await client.recognizePiiEntities( ["This is some text, but it doesn't matter."], - "notalanguage" + "notalanguage", ); if (result.error === undefined) { @@ -552,14 +553,14 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { id: getId(), text, language: "en", - }) + }), ); const esInputs = testDataEs.map( (text): TextDocumentInput => ({ id: getId(), text, language: "es", - }) + }), ); const allInputs = enInputs.concat(esInputs); @@ -578,7 +579,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { language: "en", }, ], - { domainFilter: PiiEntityDomain.PROTECTED_HEALTH_INFORMATION } + { domainFilter: PiiEntityDomain.PROTECTED_HEALTH_INFORMATION }, ); if (!result.error) { assert.equal(result.entities.length, 2); @@ -588,7 +589,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { assert.equal(result.entities[1].category, "PhoneNumber"); assert.equal( result.redactedText, - "I work at ********* and my phone number is ************" + "I work at ********* and my phone number is ************", ); } }); @@ -602,7 +603,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { language: "en", }, ], - { categoriesFilter: ["USSocialSecurityNumber"] } + { categoriesFilter: ["USSocialSecurityNumber"] }, ); if (!result.error) { assert.equal(result.entities.length, 1); @@ -630,7 +631,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { language: "en", }, ], - { categoriesFilter: [entity2.category] } + { categoriesFilter: [entity2.category] }, ); if (!result2.error) { assert.equal(result2.entities.length, 1); @@ -662,7 +663,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { it("service errors on unsupported language", async function () { const [result] = await client.recognizeLinkedEntities( ["This is some text, but it doesn't matter."], - "notalanguage" + "notalanguage", ); if (result.error === undefined) { @@ -678,14 +679,14 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { id: getId(), text, language: "en", - }) + }), ); const esInputs = testDataEs.map( (text): TextDocumentInput => ({ id: getId(), text, language: "es", - }) + }), ); const allInputs = enInputs.concat(esInputs); @@ -700,14 +701,14 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { id: getId(), text, language: "en", - }) + }), ); const esInputs = testDataEs.map( (text): TextDocumentInput => ({ id: getId(), text, language: "es", - }) + }), ); const allInputs = enInputs.concat(esInputs); await assertRestError(client.recognizeEntities(allInputs), { @@ -727,7 +728,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "Utf16CodeUnit", 8, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); @@ -738,7 +739,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "Utf16CodeUnit", 10, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); @@ -749,7 +750,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "Utf16CodeUnit", 17, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); @@ -760,7 +761,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "Utf16CodeUnit", 25, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); @@ -771,7 +772,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "Utf16CodeUnit", 9, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); @@ -782,7 +783,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "Utf16CodeUnit", 10, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); @@ -793,7 +794,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "Utf16CodeUnit", 8, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); @@ -804,7 +805,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "Utf16CodeUnit", 8, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); @@ -815,7 +816,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "Utf16CodeUnit", 121, 11, - checkEntityTextOffset + checkEntityTextOffset, ); }); }); @@ -838,7 +839,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "👩🏻‍👩🏽‍👧🏾‍👦🏿 SSN: 859-98-0987", "UnicodeCodePoint", 17, - 11 + 11, ); // offset was 25 with UTF16 }); @@ -881,7 +882,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "👩🏻‍👩🏽‍👧🏾‍👦🏿 SSN: 859-98-0987", "TextElement_v8", 7, - 11 + 11, ); // offset was 25 with UTF16 }); @@ -929,7 +930,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { }, { updateIntervalInMs: pollingInterval, - } + }, ); const results = await poller.pollUntilDone(); for await (const page of results) { @@ -965,7 +966,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { }, { updateIntervalInMs: pollingInterval, - } + }, ); const results = await poller.pollUntilDone(); for await (const page of results) { @@ -1015,7 +1016,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { }, { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); for await (const page of result) { @@ -1056,7 +1057,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); for await (const page of result) { @@ -1100,7 +1101,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { }, { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); for await (const page of result) { @@ -1164,7 +1165,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { }, { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); for await (const page of result) { @@ -1220,7 +1221,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); for await (const page of result) { @@ -1244,18 +1245,18 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { const listAllAssessments = ( acc: string[], - sentence: SentenceSentiment + sentence: SentenceSentiment, ): string[] => acc.concat( sentence.opinions.reduce( (assessments: string[], opinion: Opinion) => assessments.concat( opinion.assessments.map( - (assessment: AssessmentSentiment) => assessment.text - ) + (assessment: AssessmentSentiment) => assessment.text, + ), ), - [] - ) + [], + ), ); const allAssessments1 = result1.sentences.reduce(listAllAssessments, []); assert.deepEqual(allAssessments1, ["unacceptable"]); @@ -1280,11 +1281,11 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ), { statusCode: 400, - } + }, ); }); @@ -1312,7 +1313,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { }, { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); for await (const page of result) { @@ -1384,7 +1385,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { }, { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); for await (const page of result) { @@ -1450,7 +1451,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { }, { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); for await (const page of result) { @@ -1516,7 +1517,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { }, { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); const in_order = ["56", "0", "22", "19", "1"]; @@ -1585,7 +1586,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { { includeStatistics: true, updateIntervalInMs: pollingInterval, - } + }, ); const response = await poller.pollUntilDone(); const results = (await response.next()).value; @@ -1629,7 +1630,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); for await (const page of result) { @@ -1663,7 +1664,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "", { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); for await (const page of result) { @@ -1696,7 +1697,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { }, { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); for await (const page of result) { @@ -1729,7 +1730,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { }, { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); for await (const page of result) { @@ -1759,7 +1760,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "notalanguage", { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); const firstResult = (await result.next()).value; @@ -1796,7 +1797,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); let docCount = 0; @@ -1837,7 +1838,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { }, { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); for await (const page of result) { @@ -1872,7 +1873,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { { updateIntervalInMs: pollingInterval, displayName: "testJob", - } + }, ); poller.onProgress((state) => { assert.ok(state.createdOn, "createdOn is undefined!"); @@ -1898,7 +1899,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { }, { updateIntervalInMs: pollingInterval, - } + }, ); const pollerResult = await poller.pollUntilDone(); const firstResult = (await pollerResult.next()).value; @@ -1928,12 +1929,12 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { }, { updateIntervalInMs: pollingInterval, - } + }, ), { statusCode: 400, code: "InvalidRequest", - } + }, ); }); @@ -1950,11 +1951,11 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { }, { updateIntervalInMs: pollingInterval, - } + }, ), { messagePattern: /Duplicate task name/, - } + }, ); }); }); @@ -1969,7 +1970,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); const doc1 = (await result.next()).value; @@ -2030,7 +2031,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { "en", { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); const doc1 = (await result.next()).value; @@ -2097,7 +2098,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { ], { updateIntervalInMs: pollingInterval, - } + }, ); const result = await poller.pollUntilDone(); for await (const doc of result) { @@ -2167,7 +2168,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { code: "InvalidDocumentBatch", statusCode: 400, messagePattern: /Max 10 records are permitted/, - } + }, ); }); @@ -2195,7 +2196,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { code: "InvalidDocumentBatch", statusCode: 413, messagePattern: /Limit request size to: 524288/, - } + }, ); }); @@ -2381,7 +2382,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { }), { code: "ModelVersionIncorrect", - } + }, ); }); @@ -2416,7 +2417,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { }), { code: "InvalidRequest", - } + }, ); }); @@ -2517,7 +2518,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { ], { updateIntervalInMs: pollingInterval, - } + }, ); poller.onProgress((state) => { assert.ok(state.createdOn, "createdOn is undefined!"); @@ -2535,7 +2536,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { [{ id: "0", text: doc, language: "en" }], { updateIntervalInMs: pollingInterval, - } + }, ); const pollerResult = await poller.pollUntilDone(); const result = (await pollerResult.next()).value; @@ -2555,7 +2556,7 @@ matrix([["AAD", "APIKey"]] as const, async (authMethod: AuthMethod) => { { updateIntervalInMs: pollingInterval, stringIndexType: "UnicodeCodePoint", - } + }, ); const pollerResult = await poller.pollUntilDone(); const result = (await pollerResult.next()).value; diff --git a/sdk/textanalytics/ai-text-analytics/test/public/utils/recordedClient.ts b/sdk/textanalytics/ai-text-analytics/test/public/utils/recordedClient.ts index fce167b1129e..40ec771c70c6 100644 --- a/sdk/textanalytics/ai-text-analytics/test/public/utils/recordedClient.ts +++ b/sdk/textanalytics/ai-text-analytics/test/public/utils/recordedClient.ts @@ -40,7 +40,7 @@ export function createClient(options: { return new TextAnalyticsClient( endpoint, new AzureKeyCredential(assertEnvironmentVariable("LANGUAGE_API_KEY")), - updatedOptions + updatedOptions, ); } case "AAD": { diff --git a/sdk/textanalytics/ai-text-analytics/test/public/utils/resultHelper.ts b/sdk/textanalytics/ai-text-analytics/test/public/utils/resultHelper.ts index fd7cd6a8b25b..ccc4366c8fa0 100644 --- a/sdk/textanalytics/ai-text-analytics/test/public/utils/resultHelper.ts +++ b/sdk/textanalytics/ai-text-analytics/test/public/utils/resultHelper.ts @@ -7,7 +7,7 @@ import { assert } from "chai"; import { TextAnalyticsErrorResult, TextAnalyticsSuccessResult } from "../../../src/"; export function assertAllSuccess( - results: (TextAnalyticsErrorResult | TSuccess)[] + results: (TextAnalyticsErrorResult | TSuccess)[], ): void { for (const result of results) { assert.ok(isSuccess(result)); @@ -15,7 +15,7 @@ export function assertAllSuccess( } export function isSuccess( - res: TextAnalyticsErrorResult | TSuccess + res: TextAnalyticsErrorResult | TSuccess, ): res is TSuccess { return res.error === undefined; } @@ -26,7 +26,7 @@ export async function assertRestError( statusCode?: number; code?: string; messagePattern?: RegExp; - } = {} + } = {}, ): Promise { const { code, statusCode, messagePattern } = options; try { diff --git a/sdk/textanalytics/ai-text-analytics/test/public/utils/stringIndexTypeHelpers.ts b/sdk/textanalytics/ai-text-analytics/test/public/utils/stringIndexTypeHelpers.ts index e4401ff8c4e7..e64f76fd8490 100644 --- a/sdk/textanalytics/ai-text-analytics/test/public/utils/stringIndexTypeHelpers.ts +++ b/sdk/textanalytics/ai-text-analytics/test/public/utils/stringIndexTypeHelpers.ts @@ -21,7 +21,7 @@ export async function checkOffsetAndLength( stringIndexType: StringIndexType, offset: number, length: number, - callback?: (doc: string, entity: Entity, offset: number, length: number) => unknown + callback?: (doc: string, entity: Entity, offset: number, length: number) => unknown, ): Promise { const [result] = await client.recognizePiiEntities([{ id: "0", text: doc, language: "en" }], { stringIndexType: stringIndexType, @@ -47,7 +47,7 @@ export function checkEntityTextOffset( doc: string, entity: Entity, offset: number, - length: number + length: number, ): void { assert.equal(doc.substr(offset, length), entity.text); } diff --git a/sdk/textanalytics/perf-tests/ai-text-analytics/package.json b/sdk/textanalytics/perf-tests/ai-text-analytics/package.json index d0dd3a75bfab..15e36bf41e30 100644 --- a/sdk/textanalytics/perf-tests/ai-text-analytics/package.json +++ b/sdk/textanalytics/perf-tests/ai-text-analytics/package.json @@ -16,11 +16,11 @@ "devDependencies": { "@types/node": "^18.0.0", "eslint": "^8.0.0", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "tslib": "^2.2.0", "ts-node": "^10.0.0", - "typescript": "~5.2.0" + "typescript": "~5.2.0", + "@azure/dev-tool": "^1.0.0" }, "private": true, "scripts": { @@ -29,9 +29,9 @@ "build": "npm run clean && tsc -p .", "build:samples": "echo skipped", "build:test": "echo skipped", - "check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-* types *.tgz *.log", - "format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", "integration-test": "echo skipped", diff --git a/sdk/textanalytics/perf-tests/ai-text-analytics/test/detectLanguage.spec.ts b/sdk/textanalytics/perf-tests/ai-text-analytics/test/detectLanguage.spec.ts index 49adf53cf8fa..541bd7b10783 100644 --- a/sdk/textanalytics/perf-tests/ai-text-analytics/test/detectLanguage.spec.ts +++ b/sdk/textanalytics/perf-tests/ai-text-analytics/test/detectLanguage.spec.ts @@ -30,7 +30,7 @@ export class DetectLanguageTest extends PerfTest super(); this.options = this.parsedOptions; this.docs = Array(this.parsedOptions["documents-count"]?.value).fill( - "Detta är ett dokument skrivet på engelska." + "Detta är ett dokument skrivet på engelska.", ); const endpoint = getEnvVar("ENDPOINT"); @@ -39,7 +39,7 @@ export class DetectLanguageTest extends PerfTest } catch (e) { this.client = new TextAnalyticsClient( endpoint, - new AzureKeyCredential(getEnvVar("LANGUAGE_API_KEY")) + new AzureKeyCredential(getEnvVar("LANGUAGE_API_KEY")), ); } } diff --git a/sdk/translation/ai-translation-text-rest/package.json b/sdk/translation/ai-translation-text-rest/package.json index 442cf5993986..e7665cb5a67c 100644 --- a/sdk/translation/ai-translation-text-rest/package.json +++ b/sdk/translation/ai-translation-text-rest/package.json @@ -52,11 +52,11 @@ "build:samples": "echo Obsolete.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "echo skipped", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -88,7 +88,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^2.1.2", - "prettier": "^2.5.1", "rimraf": "^3.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/breakSentenceWithAutoDetection.ts b/sdk/translation/ai-translation-text-rest/samples-dev/breakSentenceWithAutoDetection.ts index 8759ca4345fc..9489d2b0cca9 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/breakSentenceWithAutoDetection.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/breakSentenceWithAutoDetection.ts @@ -39,7 +39,7 @@ export async function main() { for (const breakSentence of breakSentences) { console.log(`The detected sentece boundaries: '${breakSentence?.sentLen.join(", ")}'.`); console.log( - `Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.` + `Detected languages of the input text: ${breakSentence?.detectedLanguage?.language} with score: ${breakSentence?.detectedLanguage?.score}.`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/dictionaryExamples.ts b/sdk/translation/ai-translation-text-rest/samples-dev/dictionaryExamples.ts index 72227c072111..6915fa3eadf6 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/dictionaryExamples.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/dictionaryExamples.ts @@ -42,13 +42,13 @@ export async function main() { const dictionaryExamples = dictionaryResponse.body; for (const dictionaryExample of dictionaryExamples) { console.log( - `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.` + `For the given input ${dictionaryExample?.examples?.length} examples were found in the dictionary.`, ); const firstExample = dictionaryExample?.examples[0]; console.log( `Example: '${ firstExample.targetPrefix + firstExample.targetTerm + firstExample.targetSuffix - }'.` + }'.`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/dictionaryLookup.ts b/sdk/translation/ai-translation-text-rest/samples-dev/dictionaryLookup.ts index 9a258c7a358f..744810e487fb 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/dictionaryLookup.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/dictionaryLookup.ts @@ -42,10 +42,10 @@ export async function main() { const dictionaryEntries = dictionaryResponse.body; for (const dictionaryEntry of dictionaryEntries) { console.log( - `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.` + `For the given input ${dictionaryEntry?.translations?.length} entries were found in the dictionary.`, ); console.log( - `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.` + `First entry: '${dictionaryEntry?.translations[0]?.displayTarget}', confidence: ${dictionaryEntry?.translations[0]?.confidence}.`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/getLanguages.ts b/sdk/translation/ai-translation-text-rest/samples-dev/getLanguages.ts index 6cfdc7b17eb6..967dca702bd3 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/getLanguages.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/getLanguages.ts @@ -28,7 +28,7 @@ export async function main() { for (const key in languages.translation) { const translationLanguage = languages.translation[key]; console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`, ); } } @@ -38,7 +38,7 @@ export async function main() { for (const key in languages.transliteration) { const transliterationLanguage = languages.transliteration[key]; console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`, ); } } @@ -48,7 +48,7 @@ export async function main() { for (const key in languages.dictionary) { const dictionaryLanguage = languages.dictionary[key]; console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/getLanguagesAcceptLanguage.ts b/sdk/translation/ai-translation-text-rest/samples-dev/getLanguagesAcceptLanguage.ts index 8715c108b118..c4308cba4fa7 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/getLanguagesAcceptLanguage.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/getLanguagesAcceptLanguage.ts @@ -44,7 +44,7 @@ export async function main() { for (const key in languages.translation) { const translationLanguage = languages.translation[key]; console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`, ); } } @@ -54,7 +54,7 @@ export async function main() { for (const key in languages.transliteration) { const transliterationLanguage = languages.transliteration[key]; console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`, ); } } @@ -64,7 +64,7 @@ export async function main() { for (const key in languages.dictionary) { const dictionaryLanguage = languages.dictionary[key]; console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/getLanguagesScope.ts b/sdk/translation/ai-translation-text-rest/samples-dev/getLanguagesScope.ts index e37118bcbbd0..48dfedbcbd50 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/getLanguagesScope.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/getLanguagesScope.ts @@ -37,7 +37,7 @@ export async function main() { for (const key in languages.translation) { const translationLanguage = languages.translation[key]; console.log( - `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})` + `${key} -- name: ${translationLanguage.name} (${translationLanguage.nativeName})`, ); } } @@ -47,7 +47,7 @@ export async function main() { for (const key in languages.transliteration) { const transliterationLanguage = languages.transliteration[key]; console.log( - `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})` + `${key} -- name: ${transliterationLanguage.name} (${transliterationLanguage.nativeName})`, ); } } @@ -57,7 +57,7 @@ export async function main() { for (const key in languages.dictionary) { const dictionaryLanguage = languages.dictionary[key]; console.log( - `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}` + `${key} -- name: ${dictionaryLanguage.name} (${dictionaryLanguage.nativeName}), supported target languages count: ${dictionaryLanguage.translations.length}`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/translate.ts b/sdk/translation/ai-translation-text-rest/samples-dev/translate.ts index 837a31f8cf28..2435f494285e 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/translate.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/translate.ts @@ -43,7 +43,7 @@ export async function main() { const translations = translateResponse.body; for (const translation of translations) { console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/translateAlignments.ts b/sdk/translation/ai-translation-text-rest/samples-dev/translateAlignments.ts index 2b607a22fc95..9baf6597850e 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/translateAlignments.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/translateAlignments.ts @@ -45,7 +45,7 @@ export async function main() { const translations = translateResponse.body; for (const translation of translations) { console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, ); console.log(`Alignments: ${translation?.translations[0]?.alignment?.proj}`); } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/translateCustom.ts b/sdk/translation/ai-translation-text-rest/samples-dev/translateCustom.ts index 67526dddbc6d..83159f47a366 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/translateCustom.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/translateCustom.ts @@ -56,7 +56,7 @@ export async function main() { const translations = translateResponse.body; for (const translation of translations) { console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/translateDetection.ts b/sdk/translation/ai-translation-text-rest/samples-dev/translateDetection.ts index c75db1fca2c1..cf5c1a188366 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/translateDetection.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/translateDetection.ts @@ -42,10 +42,10 @@ export async function main() { const translations = translateResponse.body; for (const translation of translations) { console.log( - `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` + `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`, ); console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/translateDictionary.ts b/sdk/translation/ai-translation-text-rest/samples-dev/translateDictionary.ts index 060f7eda70e4..23eb715449dc 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/translateDictionary.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/translateDictionary.ts @@ -51,7 +51,7 @@ export async function main() { const translations = translateResponse.body as TranslatedTextItemOutput[]; for (const translation of translations) { console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/translateMultipleSources.ts b/sdk/translation/ai-translation-text-rest/samples-dev/translateMultipleSources.ts index cf183125e1ad..ffb5a49f6f7e 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/translateMultipleSources.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/translateMultipleSources.ts @@ -47,10 +47,10 @@ export async function main() { const translations = translateResponse.body; for (const translation of translations) { console.log( - `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.` + `Detected languages of the input text: ${translation?.detectedLanguage?.language} with score: ${translation?.detectedLanguage?.score}.`, ); console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/translateMultipleTargets.ts b/sdk/translation/ai-translation-text-rest/samples-dev/translateMultipleTargets.ts index 6c92f6ff9892..20c00ed4e0ee 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/translateMultipleTargets.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/translateMultipleTargets.ts @@ -44,7 +44,7 @@ export async function main() { for (const translation of translations) { for (const textKey in translation.translations) { console.log( - `Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.` + `Text was translated to: '${translation?.translations[textKey]?.to}' and the result is: '${translation?.translations[textKey]?.text}'.`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/translateNoTranslate.ts b/sdk/translation/ai-translation-text-rest/samples-dev/translateNoTranslate.ts index 19347bf72700..d505a78ba34d 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/translateNoTranslate.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/translateNoTranslate.ts @@ -50,7 +50,7 @@ export async function main() { const translations = translateResponse.body; for (const translation of translations) { console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/translateProfanity.ts b/sdk/translation/ai-translation-text-rest/samples-dev/translateProfanity.ts index c525d9d2fc73..aa126e6baf74 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/translateProfanity.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/translateProfanity.ts @@ -55,7 +55,7 @@ export async function main() { const translations = translateResponse.body; for (const translation of translations) { console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/translateSenteceLength.ts b/sdk/translation/ai-translation-text-rest/samples-dev/translateSenteceLength.ts index 65e5216bc1d1..972f4358725a 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/translateSenteceLength.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/translateSenteceLength.ts @@ -47,13 +47,15 @@ export async function main() { const translations = translateResponse.body; for (const translation of translations) { console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, ); console.log( - `Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}` + `Source Sentece length: ${translation?.translations[0]?.sentLen?.srcSentLen.join(", ")}`, ); console.log( - `Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join(", ")}` + `Translated Sentece length: ${translation?.translations[0]?.sentLen?.transSentLen.join( + ", ", + )}`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/translateTextType.ts b/sdk/translation/ai-translation-text-rest/samples-dev/translateTextType.ts index 1d16d4f2473d..51609a958959 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/translateTextType.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/translateTextType.ts @@ -44,7 +44,7 @@ export async function main() { const translations = translateResponse.body; for (const translation of translations) { console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/translateWithTransliteration.ts b/sdk/translation/ai-translation-text-rest/samples-dev/translateWithTransliteration.ts index b09f030643fb..c3f0471edec4 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/translateWithTransliteration.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/translateWithTransliteration.ts @@ -47,10 +47,10 @@ export async function main() { for (const translation of translations) { console.log(`Source Text: ${translation.sourceText?.text}`); console.log( - `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.` + `Text was translated to: '${translation?.translations[0]?.to}' and the result is: '${translation?.translations[0]?.text}'.`, ); console.log( - `Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}` + `Transliterated text (${translation?.translations[0]?.transliteration?.script}): ${translation?.translations[0]?.transliteration?.text}`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/samples-dev/transliterate.ts b/sdk/translation/ai-translation-text-rest/samples-dev/transliterate.ts index ac8ee39665d2..555211ce1ed0 100644 --- a/sdk/translation/ai-translation-text-rest/samples-dev/transliterate.ts +++ b/sdk/translation/ai-translation-text-rest/samples-dev/transliterate.ts @@ -45,7 +45,7 @@ export async function main() { const translations = transliterateResponse.body; for (const transliteration of translations) { console.log( - `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.` + `Input text was transliterated to '${transliteration?.script}' script. Transliterated text: '${transliteration?.text}'.`, ); } } diff --git a/sdk/translation/ai-translation-text-rest/src/customClient.ts b/sdk/translation/ai-translation-text-rest/src/customClient.ts index da08f2d3a6e8..c4c61dbfba6e 100644 --- a/sdk/translation/ai-translation-text-rest/src/customClient.ts +++ b/sdk/translation/ai-translation-text-rest/src/customClient.ts @@ -51,7 +51,7 @@ const apiVersionPolicy = { export default function createClient( endpoint: undefined | string, credential: undefined | TranslatorCredential | KeyCredential | TokenCredential = undefined, - options: ClientOptions = {} + options: ClientOptions = {}, ): TextTranslationClient { let serviceEndpoint: string; if (!endpoint) { @@ -81,12 +81,12 @@ export default function createClient( if (isTranslatorKeyCredential(credential)) { const mtAuthneticationPolicy = new TranslatorAuthenticationPolicy( - credential as TranslatorCredential + credential as TranslatorCredential, ); client.pipeline.addPolicy(mtAuthneticationPolicy); } else if (isKeyCredential(credential)) { const mtKeyAuthenticationPolicy = new TranslatorAzureKeyAuthenticationPolicy( - credential as AzureKeyCredential + credential as AzureKeyCredential, ); client.pipeline.addPolicy(mtKeyAuthenticationPolicy); } else if (credential) { @@ -94,7 +94,7 @@ export default function createClient( coreRestPipeline.bearerTokenAuthenticationPolicy({ credential: credential as TokenCredential, scopes: DEFAULT_SCOPE, - }) + }), ); } diff --git a/sdk/translation/ai-translation-text-rest/test/public/translateTest.spec.ts b/sdk/translation/ai-translation-text-rest/test/public/translateTest.spec.ts index 873064a3830f..df30fcd99798 100644 --- a/sdk/translation/ai-translation-text-rest/test/public/translateTest.spec.ts +++ b/sdk/translation/ai-translation-text-rest/test/public/translateTest.spec.ts @@ -176,7 +176,7 @@ describe("Translate tests", () => { assert.isTrue(translations[0].translations.length === 1); assert.isTrue(translations[0].translations[0].transliteration != null); assert.isTrue( - translations[0].translations[0].transliteration?.text.includes("eppadi irukkiraai?") + translations[0].translations[0].transliteration?.text.includes("eppadi irukkiraai?"), ); }); diff --git a/sdk/vision/ai-vision-image-analysis-rest/package.json b/sdk/vision/ai-vision-image-analysis-rest/package.json index b95437efa50d..b658b2055e10 100644 --- a/sdk/vision/ai-vision-image-analysis-rest/package.json +++ b/sdk/vision/ai-vision-image-analysis-rest/package.json @@ -40,11 +40,11 @@ "build:samples": "echo skipped.", "build:test": "tsc -p . && dev-tool run bundle", "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "generate:client": "echo skipped", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", @@ -76,7 +76,6 @@ "dotenv": "^16.0.0", "eslint": "^8.0.0", "mkdirp": "^2.1.2", - "prettier": "^2.5.1", "rimraf": "^5.0.0", "source-map-support": "^0.5.9", "typescript": "~5.2.0", diff --git a/sdk/vision/ai-vision-image-analysis-rest/src/clientDefinitions.ts b/sdk/vision/ai-vision-image-analysis-rest/src/clientDefinitions.ts index 336895998a66..7a0c79e69a28 100644 --- a/sdk/vision/ai-vision-image-analysis-rest/src/clientDefinitions.ts +++ b/sdk/vision/ai-vision-image-analysis-rest/src/clientDefinitions.ts @@ -13,11 +13,11 @@ import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface AnalyzeFromBuffer { /** Performs a single Image Analysis operation */ post( - options: AnalyzeFromBufferParameters + options: AnalyzeFromBufferParameters, ): StreamableMethod; /** Performs a single Image Analysis operation */ post( - options: AnalyzeFromUrlParameters + options: AnalyzeFromUrlParameters, ): StreamableMethod; } diff --git a/sdk/vision/ai-vision-image-analysis-rest/src/imageAnalysisClient.ts b/sdk/vision/ai-vision-image-analysis-rest/src/imageAnalysisClient.ts index 5f84e607f523..667a8f93beb9 100644 --- a/sdk/vision/ai-vision-image-analysis-rest/src/imageAnalysisClient.ts +++ b/sdk/vision/ai-vision-image-analysis-rest/src/imageAnalysisClient.ts @@ -16,7 +16,7 @@ import { ImageAnalysisClient } from "./clientDefinitions"; export default function createClient( endpoint: string, credentials: KeyCredential, - options: ClientOptions = {} + options: ClientOptions = {}, ): ImageAnalysisClient { const baseUrl = options.baseUrl ?? `${endpoint}/computervision`; options.apiVersion = options.apiVersion ?? "2023-10-01"; diff --git a/sdk/vision/ai-vision-image-analysis-rest/src/isUnexpected.ts b/sdk/vision/ai-vision-image-analysis-rest/src/isUnexpected.ts index 86162780b17b..c83b61a7a53d 100644 --- a/sdk/vision/ai-vision-image-analysis-rest/src/isUnexpected.ts +++ b/sdk/vision/ai-vision-image-analysis-rest/src/isUnexpected.ts @@ -15,13 +15,13 @@ export function isUnexpected( response: | AnalyzeFromBuffer200Response | AnalyzeFromUrl200Response - | AnalyzeFromBufferDefaultResponse + | AnalyzeFromBufferDefaultResponse, ): response is AnalyzeFromBufferDefaultResponse; export function isUnexpected( response: | AnalyzeFromBuffer200Response | AnalyzeFromUrl200Response - | AnalyzeFromBufferDefaultResponse + | AnalyzeFromBufferDefaultResponse, ): response is AnalyzeFromBufferDefaultResponse { const lroOriginal = response.headers["x-ms-original-url"]; const url = new URL(lroOriginal ?? response.request.url); @@ -64,7 +64,7 @@ function getParametrizedPathSuccess(method: string, path: string): string[] { // {guid} ==> $ // {guid}:export ==> :export$ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "" + pathParts[j] || "", ); if (!isMatched) { diff --git a/sdk/vision/ai-vision-image-analysis-rest/test/public/AnalysisTests.spec.ts b/sdk/vision/ai-vision-image-analysis-rest/test/public/AnalysisTests.spec.ts index 424d9bfdd4b3..4632ecbf0490 100644 --- a/sdk/vision/ai-vision-image-analysis-rest/test/public/AnalysisTests.spec.ts +++ b/sdk/vision/ai-vision-image-analysis-rest/test/public/AnalysisTests.spec.ts @@ -114,7 +114,7 @@ describe("Analyze Tests", () => { function validateResponse( iaResult: ImageAnalysisResultOutput, testFeatures: string[], - genderNeutral: boolean + genderNeutral: boolean, ): void { validateMetadata(iaResult); @@ -302,7 +302,7 @@ describe("Analyze Tests", () => { oneObject.boundingBox.x > 0 || oneObject.boundingBox.y > 0 || oneObject.boundingBox.h > 0 || - oneObject.boundingBox.w > 0 + oneObject.boundingBox.w > 0, ); assert.isNotNull(oneObject.tags); for (const oneTag of oneObject.tags) { @@ -315,7 +315,7 @@ describe("Analyze Tests", () => { assert.isAtLeast( objectsResult.values.filter((v) => v.tags.filter((t) => t.name.toLowerCase() === "person")) .length, - 0 + 0, ); } diff --git a/sdk/web-pubsub/web-pubsub-client-protobuf/package.json b/sdk/web-pubsub/web-pubsub-client-protobuf/package.json index 01a04ddc4e6c..ca27537cce43 100644 --- a/sdk/web-pubsub/web-pubsub-client-protobuf/package.json +++ b/sdk/web-pubsub/web-pubsub-client-protobuf/package.json @@ -18,8 +18,8 @@ "build": "npm run clean && npm run build-protobuf && tsc -p . && npm run copy-files && rollup -c && api-extractor run --local", "copy-files": "copyfiles ./src/generated/clientProto.js ./dist-esm/", "build-protobuf": "pbjs -t static-module -w es6 -o ./src/generated/clientProto.js ./src/protos/client.proto && pbts -o ./src/generated/clientProto.d.ts ./src/generated/clientProto.js", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", @@ -99,7 +99,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.0", "sinon": "^17.0.0", diff --git a/sdk/web-pubsub/web-pubsub-client-protobuf/samples-dev/basicusage.ts b/sdk/web-pubsub/web-pubsub-client-protobuf/samples-dev/basicusage.ts index 6d5da225eb31..922f5529c73d 100644 --- a/sdk/web-pubsub/web-pubsub-client-protobuf/samples-dev/basicusage.ts +++ b/sdk/web-pubsub/web-pubsub-client-protobuf/samples-dev/basicusage.ts @@ -34,7 +34,7 @@ async function main() { { getClientAccessUrl: fetchClientAccessUrl, } as WebPubSubClientCredential, - { protocol: WebPubSubProtobufReliableProtocol() } as WebPubSubClientOptions + { protocol: WebPubSubProtobufReliableProtocol() } as WebPubSubClientOptions, ); client.on("connected", (e) => { @@ -56,7 +56,9 @@ async function main() { client.on("group-message", (e) => { if (e.message.data instanceof ArrayBuffer) { console.log( - `Received message from ${e.message.group} ${Buffer.from(e.message.data).toString("base64")}` + `Received message from ${e.message.group} ${Buffer.from(e.message.data).toString( + "base64", + )}`, ); } else { console.log(`Received message from ${e.message.group} ${e.message.data}`); @@ -75,7 +77,7 @@ async function main() { await client.sendToGroup( groupName, buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength), - "binary" + "binary", ); await delay(1000); await client.stop(); diff --git a/sdk/web-pubsub/web-pubsub-client-protobuf/src/webPubSubProtobufProtocolBase.ts b/sdk/web-pubsub/web-pubsub-client-protobuf/src/webPubSubProtobufProtocolBase.ts index 3d0d87bde85e..4ea6778e1ec2 100644 --- a/sdk/web-pubsub/web-pubsub-client-protobuf/src/webPubSubProtobufProtocolBase.ts +++ b/sdk/web-pubsub/web-pubsub-client-protobuf/src/webPubSubProtobufProtocolBase.ts @@ -76,7 +76,7 @@ export class WebPubSubProtobufProtocolBase { dataType = "binary"; data = messageData.binaryData.buffer.slice( messageData.binaryData.byteOffset, - messageData.binaryData.byteLength + messageData.binaryData.byteOffset + messageData.binaryData.byteLength + messageData.binaryData.byteOffset, ); } else if (messageData.protobufData) { dataType = "protobuf"; @@ -166,7 +166,7 @@ export class WebPubSubProtobufProtocolBase { private static _getIMessageData( data: JSONTypes | ArrayBuffer, - dataType: WebPubSubDataType + dataType: WebPubSubDataType, ): IMessageData { switch (dataType) { case "binary": diff --git a/sdk/web-pubsub/web-pubsub-client/package.json b/sdk/web-pubsub/web-pubsub-client/package.json index dda263434b9a..4fc243652b18 100644 --- a/sdk/web-pubsub/web-pubsub-client/package.json +++ b/sdk/web-pubsub/web-pubsub-client/package.json @@ -24,8 +24,8 @@ "build:samples": "dev-tool samples publish -f", "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", @@ -104,7 +104,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.0", "sinon": "^17.0.0", diff --git a/sdk/web-pubsub/web-pubsub-client/samples-dev/helloworld.ts b/sdk/web-pubsub/web-pubsub-client/samples-dev/helloworld.ts index 4976a0bca84f..354c8a7a6a85 100644 --- a/sdk/web-pubsub/web-pubsub-client/samples-dev/helloworld.ts +++ b/sdk/web-pubsub/web-pubsub-client/samples-dev/helloworld.ts @@ -50,7 +50,9 @@ async function main() { client.on("group-message", (e) => { if (e.message.data instanceof ArrayBuffer) { console.log( - `Received message from ${e.message.group} ${Buffer.from(e.message.data).toString("base64")}` + `Received message from ${e.message.group} ${Buffer.from(e.message.data).toString( + "base64", + )}`, ); } else { console.log(`Received message from ${e.message.group} ${JSON.stringify(e.message.data)}`); @@ -69,7 +71,7 @@ async function main() { await client.sendToGroup( groupName, buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength), - "binary" + "binary", ); await delay(1000); await client.stop(); diff --git a/sdk/web-pubsub/web-pubsub-client/src/utils/abortablePromise.ts b/sdk/web-pubsub/web-pubsub-client/src/utils/abortablePromise.ts index 39948bf36bbc..db972d058ed4 100644 --- a/sdk/web-pubsub/web-pubsub-client/src/utils/abortablePromise.ts +++ b/sdk/web-pubsub/web-pubsub-client/src/utils/abortablePromise.ts @@ -5,7 +5,7 @@ import { AbortError, AbortSignalLike } from "@azure/abort-controller"; export async function abortablePromise( promise: Promise, - signal: AbortSignalLike + signal: AbortSignalLike, ): Promise { if (signal.aborted) { throw new AbortError("The operation was aborted."); diff --git a/sdk/web-pubsub/web-pubsub-client/src/webPubSubClient.ts b/sdk/web-pubsub/web-pubsub-client/src/webPubSubClient.ts index 5fe97ffbe4cf..451535393398 100644 --- a/sdk/web-pubsub/web-pubsub-client/src/webPubSubClient.ts +++ b/sdk/web-pubsub/web-pubsub-client/src/webPubSubClient.ts @@ -191,7 +191,7 @@ export class WebPubSubClient { if (typeof this._uri !== "string") { throw new Error( - `The clientAccessUrl must be a string but currently it's ${typeof this._uri}` + `The clientAccessUrl must be a string but currently it's ${typeof this._uri}`, ); } await this._connectCore(this._uri); @@ -258,7 +258,7 @@ export class WebPubSubClient { | "server-message" | "group-message" | "rejoin-group-failed", - listener: (e: any) => void + listener: (e: any) => void, ): void { this._emitter.on(event, listener); } @@ -307,7 +307,7 @@ export class WebPubSubClient { | "server-message" | "group-message" | "rejoin-group-failed", - listener: (e: any) => void + listener: (e: any) => void, ): void { this._emitter.removeListener(event, listener); } @@ -326,7 +326,7 @@ export class WebPubSubClient { | "server-message" | "group-message" | "rejoin-group-failed", - args: any + args: any, ): void { this._emitter.emit(event, args); } @@ -343,11 +343,11 @@ export class WebPubSubClient { eventName: string, content: JSONTypes | ArrayBuffer, dataType: WebPubSubDataType, - options?: SendEventOptions + options?: SendEventOptions, ): Promise { return await this._operationExecuteWithRetry( () => this._sendEventAttempt(eventName, content, dataType, options), - options?.abortSignal + options?.abortSignal, ); } @@ -355,7 +355,7 @@ export class WebPubSubClient { eventName: string, content: JSONTypes | ArrayBuffer, dataType: WebPubSubDataType, - options?: SendEventOptions + options?: SendEventOptions, ): Promise { const fireAndForget = options?.fireAndForget ?? false; if (!fireAndForget) { @@ -370,7 +370,7 @@ export class WebPubSubClient { } as SendEventMessage; }, options?.ackId, - options?.abortSignal + options?.abortSignal, ); } @@ -393,13 +393,13 @@ export class WebPubSubClient { public async joinGroup(groupName: string, options?: JoinGroupOptions): Promise { return await this._operationExecuteWithRetry( () => this._joinGroupAttempt(groupName, options), - options?.abortSignal + options?.abortSignal, ); } private async _joinGroupAttempt( groupName: string, - options?: JoinGroupOptions + options?: JoinGroupOptions, ): Promise { const group = this._getOrAddGroup(groupName); const result = await this._joinGroupCore(groupName, options); @@ -409,7 +409,7 @@ export class WebPubSubClient { private async _joinGroupCore( groupName: string, - options?: JoinGroupOptions + options?: JoinGroupOptions, ): Promise { return await this._sendMessageWithAckId( (id) => { @@ -420,7 +420,7 @@ export class WebPubSubClient { } as JoinGroupMessage; }, options?.ackId, - options?.abortSignal + options?.abortSignal, ); } @@ -432,17 +432,17 @@ export class WebPubSubClient { */ public async leaveGroup( groupName: string, - options?: LeaveGroupOptions + options?: LeaveGroupOptions, ): Promise { return await this._operationExecuteWithRetry( () => this._leaveGroupAttempt(groupName, options), - options?.abortSignal + options?.abortSignal, ); } private async _leaveGroupAttempt( groupName: string, - options?: LeaveGroupOptions + options?: LeaveGroupOptions, ): Promise { const group = this._getOrAddGroup(groupName); const result = await this._sendMessageWithAckId( @@ -454,7 +454,7 @@ export class WebPubSubClient { } as LeaveGroupMessage; }, options?.ackId, - options?.abortSignal + options?.abortSignal, ); group.isJoined = false; return result; @@ -472,11 +472,11 @@ export class WebPubSubClient { groupName: string, content: JSONTypes | ArrayBuffer, dataType: WebPubSubDataType, - options?: SendToGroupOptions + options?: SendToGroupOptions, ): Promise { return await this._operationExecuteWithRetry( () => this._sendToGroupAttempt(groupName, content, dataType, options), - options?.abortSignal + options?.abortSignal, ); } @@ -484,7 +484,7 @@ export class WebPubSubClient { groupName: string, content: JSONTypes | ArrayBuffer, dataType: WebPubSubDataType, - options?: SendToGroupOptions + options?: SendToGroupOptions, ): Promise { const fireAndForget = options?.fireAndForget ?? false; const noEcho = options?.noEcho ?? false; @@ -501,7 +501,7 @@ export class WebPubSubClient { } as SendToGroupMessage; }, options?.ackId, - options?.abortSignal + options?.abortSignal, ); } @@ -530,7 +530,7 @@ export class WebPubSubClient { // This part is executed sync const client = (this._wsClient = this._getWebSocketClientFactory().create( uri, - this._protocol.name + this._protocol.name, )); client.onopen(() => { // There's a case that client called stop() before this method. We need to check and close it if it's the case. @@ -601,7 +601,7 @@ export class WebPubSubClient { new SendMessageError("Failed to send message.", { ackId: message.ackId, errorDetail: message.error, - } as SendMessageErrorOptions) + } as SendMessageErrorOptions), ); } } @@ -625,7 +625,7 @@ export class WebPubSubClient { } catch (err) { this._safeEmitRejoinGroupFailed(g.name, err); } - })() + })(), ); } }); @@ -715,7 +715,7 @@ export class WebPubSubClient { } catch (err) { logger.warning( `An error occurred while handling the message with kind: ${message.kind} from service`, - err + err, ); } }); @@ -776,7 +776,7 @@ export class WebPubSubClient { private async _sendMessage( message: WebPubSubMessage, - abortSignal?: AbortSignalLike + abortSignal?: AbortSignalLike, ): Promise { const payload = this._protocol.writeMessage(message); @@ -789,7 +789,7 @@ export class WebPubSubClient { private async _sendMessageWithAckId( messageProvider: (ackId: number) => WebPubSubMessage, ackId?: number, - abortSignal?: AbortSignalLike + abortSignal?: AbortSignalLike, ): Promise { if (ackId == null) { ackId = this.nextAckId(); @@ -834,7 +834,7 @@ export class WebPubSubClient { value.reject( new SendMessageError("Connection is disconnected before receive ack from the service", { ackId: value.ackId, - } as SendMessageErrorOptions) + } as SendMessageErrorOptions), ); } }); @@ -896,7 +896,7 @@ export class WebPubSubClient { private _safeEmitDisconnected( connectionId: string | undefined, - lastDisconnectedMessage: DisconnectedMessage | undefined + lastDisconnectedMessage: DisconnectedMessage | undefined, ): void { this._emitEvent("disconnected", { connectionId: connectionId, @@ -1027,14 +1027,14 @@ export class WebPubSubClient { private _changeState(newState: WebPubSubClientState): void { logger.verbose( - `The client state transfer from ${this._state.toString()} to ${newState.toString()}` + `The client state transfer from ${this._state.toString()} to ${newState.toString()}`, ); this._state = newState; } private async _operationExecuteWithRetry( inner: () => Promise, - signal?: AbortSignalLike + signal?: AbortSignalLike, ): Promise { let retryAttempt = 0; @@ -1067,7 +1067,7 @@ class RetryPolicy { this._maxRetriesToGetMaxDelay = Math.ceil( Math.log2(this._retryOptions.maxRetryDelayInMs!) - Math.log2(this._retryOptions.retryDelayInMs!) + - 1 + 1, ); } diff --git a/sdk/web-pubsub/web-pubsub-client/test/client.messages.spec.ts b/sdk/web-pubsub/web-pubsub-client/test/client.messages.spec.ts index c4f28389db95..bebf3d11fc09 100644 --- a/sdk/web-pubsub/web-pubsub-client/test/client.messages.spec.ts +++ b/sdk/web-pubsub/web-pubsub-client/test/client.messages.spec.ts @@ -233,7 +233,7 @@ describe("WebPubSubClient", function () { callback.calledWith({ connectionId: "connId", userId: "user", - }) + }), ); }); @@ -248,7 +248,7 @@ describe("WebPubSubClient", function () { callback.calledWith({ connectionId: "connId", message: undefined, - }) + }), ); }); @@ -269,7 +269,7 @@ describe("WebPubSubClient", function () { kind: "disconnected", message: "internal server error", } as DisconnectedMessage, - }) + }), ); }); @@ -288,7 +288,7 @@ describe("WebPubSubClient", function () { assert.isTrue( callback.calledWith({ message: { kind: "groupData", group: "groupName", dataType: "text", data: "xyz" }, - }) + }), ); }); @@ -306,7 +306,7 @@ describe("WebPubSubClient", function () { assert.isTrue( callback.calledWith({ message: { kind: "serverData", dataType: "text", data: "xyz" }, - }) + }), ); }); @@ -332,7 +332,7 @@ describe("WebPubSubClient", function () { callback.calledWith({ group: "groupName", error: err, - }) + }), ); }); }); diff --git a/sdk/web-pubsub/web-pubsub-client/test/client.spec.ts b/sdk/web-pubsub/web-pubsub-client/test/client.spec.ts index de840e7e19c7..6bfeadd196a1 100644 --- a/sdk/web-pubsub/web-pubsub-client/test/client.spec.ts +++ b/sdk/web-pubsub/web-pubsub-client/test/client.spec.ts @@ -27,7 +27,7 @@ describe("WebPubSubClient", function () { assert.doesNotThrow(() => { new WebPubSubClient( { getClientAccessUrl: async (_) => "wss://service.com" } as WebPubSubClientCredential, - { protocol: WebPubSubJsonProtocol(), autoReconnect: false } as WebPubSubClientOptions + { protocol: WebPubSubJsonProtocol(), autoReconnect: false } as WebPubSubClientOptions, ); }); }); @@ -36,7 +36,7 @@ describe("WebPubSubClient", function () { assert.doesNotThrow(() => { const client = new WebPubSubClient( { getClientAccessUrl: async (_) => "wss://service.com" } as WebPubSubClientCredential, - { autoReconnect: false } as WebPubSubClientOptions + { autoReconnect: false } as WebPubSubClientOptions, ); const protocol = client["_protocol"]; assert.equal("json.reliable.webpubsub.azure.v1", protocol.name); @@ -49,7 +49,7 @@ describe("WebPubSubClient", function () { assert.doesNotThrow(() => { const client = new WebPubSubClient( { getClientAccessUrl: async (_) => "wss://service.com" } as WebPubSubClientCredential, - {} as WebPubSubClientOptions + {} as WebPubSubClientOptions, ); const options = client["_options"]; assert.isTrue(options.autoReconnect); diff --git a/sdk/web-pubsub/web-pubsub-client/test/utils.ts b/sdk/web-pubsub/web-pubsub-client/test/utils.ts index 439a5ce943ba..3725b8fcb2cc 100644 --- a/sdk/web-pubsub/web-pubsub-client/test/utils.ts +++ b/sdk/web-pubsub/web-pubsub-client/test/utils.ts @@ -4,7 +4,7 @@ export function getAckMessagePayload( ackId: number, success: boolean = true, - reason: string = "" + reason: string = "", ): object { return { type: "ack", diff --git a/sdk/web-pubsub/web-pubsub-express/package.json b/sdk/web-pubsub/web-pubsub-express/package.json index 30a335afdd6b..edc0f3f9f1b6 100644 --- a/sdk/web-pubsub/web-pubsub-express/package.json +++ b/sdk/web-pubsub/web-pubsub-express/package.json @@ -13,8 +13,8 @@ "build:samples": "echo Obsolete.", "build:test": "tsc -p . && dev-tool run bundle --browser-test=false", "build": "npm run clean && tsc -p . && dev-tool run bundle --browser-test=false && api-extractor run --local", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", @@ -77,7 +77,6 @@ "express": "^4.16.3", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.0", "sinon": "^17.0.0", diff --git a/sdk/web-pubsub/web-pubsub-express/samples-dev/server.ts b/sdk/web-pubsub/web-pubsub-express/samples-dev/server.ts index 995c0ae24d5c..3afdb9a813be 100644 --- a/sdk/web-pubsub/web-pubsub-express/samples-dev/server.ts +++ b/sdk/web-pubsub/web-pubsub-express/samples-dev/server.ts @@ -35,5 +35,5 @@ const app = express(); app.use(handler.getMiddleware()); app.listen(3000, () => - console.log(`Azure WebPubSub Upstream ready at http://localhost:3000${handler.path}`) + console.log(`Azure WebPubSub Upstream ready at http://localhost:3000${handler.path}`), ); diff --git a/sdk/web-pubsub/web-pubsub-express/src/cloudEventsDispatcher.ts b/sdk/web-pubsub/web-pubsub-express/src/cloudEventsDispatcher.ts index 8b6661dd2ed7..39e0ed47342d 100644 --- a/sdk/web-pubsub/web-pubsub-express/src/cloudEventsDispatcher.ts +++ b/sdk/web-pubsub/web-pubsub-express/src/cloudEventsDispatcher.ts @@ -27,7 +27,7 @@ enum EventType { function getConnectResponseHandler( connectRequest: ConnectRequest, - response: ServerResponse + response: ServerResponse, ): ConnectResponseHandler { const states: Record = connectRequest.context.states; let modified = false; @@ -59,7 +59,7 @@ function getConnectResponseHandler( function getUserEventResponseHandler( userRequest: UserEventRequest, - response: ServerResponse + response: ServerResponse, ): UserEventResponseHandler { const states: Record = userRequest.context.states; let modified = false; @@ -142,7 +142,7 @@ function isWebPubSubRequest(req: IncomingMessage): boolean { async function readUserEventRequest( request: IncomingMessage, - origin: string + origin: string, ): Promise { const contentTypeheader = utils.getHttpHeader(request, "content-type"); if (contentTypeheader === undefined) { @@ -177,7 +177,7 @@ async function readUserEventRequest( async function readSystemEventRequest( request: IncomingMessage, - origin: string + origin: string, ): Promise { const body = (await utils.readRequestBody(request)).toString(); const parsedRequest = JSON.parse(body) as T; @@ -191,13 +191,16 @@ async function readSystemEventRequest( export class CloudEventsDispatcher { private readonly _allowAll: boolean = true; private readonly _allowedOrigins: Array = []; - constructor(private hub: string, private eventHandler?: WebPubSubEventHandlerOptions) { + constructor( + private hub: string, + private eventHandler?: WebPubSubEventHandlerOptions, + ) { if (Array.isArray(eventHandler)) { throw new Error("Unexpected WebPubSubEventHandlerOptions"); } if (eventHandler?.allowedEndpoints !== undefined) { this._allowedOrigins = eventHandler.allowedEndpoints.map((endpoint) => - new URL(endpoint).host.toLowerCase() + new URL(endpoint).host.toLowerCase(), ); this._allowAll = false; } @@ -285,7 +288,7 @@ export class CloudEventsDispatcher { this.eventHandler.handleConnect!( connectRequest, - getConnectResponseHandler(connectRequest, response) + getConnectResponseHandler(connectRequest, response), ); return true; } @@ -302,7 +305,7 @@ export class CloudEventsDispatcher { response.end(); const disconnectedRequest = await readSystemEventRequest( request, - origin + origin, ); logger.verbose(disconnectedRequest); this.eventHandler.onDisconnected!(disconnectedRequest); @@ -312,14 +315,14 @@ export class CloudEventsDispatcher { const userRequest = await readUserEventRequest(request, origin); if (userRequest === undefined) { logger.warning( - `Unsupported content type ${utils.getHttpHeader(request, "content-type")}` + `Unsupported content type ${utils.getHttpHeader(request, "content-type")}`, ); return false; } logger.verbose(userRequest); this.eventHandler.handleUserEvent!( userRequest, - getUserEventResponseHandler(userRequest, response) + getUserEventResponseHandler(userRequest, response), ); return true; } diff --git a/sdk/web-pubsub/web-pubsub-express/src/cloudEventsProtocols.ts b/sdk/web-pubsub/web-pubsub-express/src/cloudEventsProtocols.ts index 3ea9bbcd6e1b..a500064915e5 100644 --- a/sdk/web-pubsub/web-pubsub-express/src/cloudEventsProtocols.ts +++ b/sdk/web-pubsub/web-pubsub-express/src/cloudEventsProtocols.ts @@ -243,7 +243,7 @@ export interface WebPubSubEventHandlerOptions { */ handleUserEvent?: ( userEventRequest: UserEventRequest, - userEventResponse: UserEventResponseHandler + userEventResponse: UserEventResponseHandler, ) => void; /** diff --git a/sdk/web-pubsub/web-pubsub-express/src/webPubSubEventHandler.ts b/sdk/web-pubsub/web-pubsub-express/src/webPubSubEventHandler.ts index da2ee4d17299..f9f968606806 100644 --- a/sdk/web-pubsub/web-pubsub-express/src/webPubSubEventHandler.ts +++ b/sdk/web-pubsub/web-pubsub-express/src/webPubSubEventHandler.ts @@ -45,7 +45,10 @@ export class WebPubSubEventHandler { * @param hub - The name of the hub to listen to * @param options - Options to configure the event handler */ - constructor(private hub: string, options?: WebPubSubEventHandlerOptions) { + constructor( + private hub: string, + options?: WebPubSubEventHandlerOptions, + ) { const path = (options?.path ?? `/api/webpubsub/hubs/${hub}/`).toLowerCase(); this.path = path.endsWith("/") ? path : path + "/"; this._cloudEventsHandler = new CloudEventsDispatcher(this.hub, options); @@ -58,7 +61,7 @@ export class WebPubSubEventHandler { return async ( req: express.Request, res: express.Response, - next: express.NextFunction + next: express.NextFunction, ): Promise => { // Request originalUrl can contain query while baseUrl + path not let requestUrl = (req.baseUrl + req.path).toLowerCase(); diff --git a/sdk/web-pubsub/web-pubsub-express/test/connect.spec.ts b/sdk/web-pubsub/web-pubsub-express/test/connect.spec.ts index 67490badc9cc..f4ceaaf02f27 100644 --- a/sdk/web-pubsub/web-pubsub-express/test/connect.spec.ts +++ b/sdk/web-pubsub/web-pubsub-express/test/connect.spec.ts @@ -13,7 +13,7 @@ function buildRequest( hub: string, connectionId: string, userId?: string, - states?: string + states?: string, ): void { req.headers["webhook-request-origin"] = "xxx.webpubsub.azure.com"; req.headers["content-type"] = "application/json; charset=utf-8"; @@ -163,7 +163,7 @@ describe("Can handle connect event", function () { key3: "", }), res.getHeader("ce-connectionState"), - "should contain multiple state headers" + "should contain multiple state headers", ); }); diff --git a/sdk/web-pubsub/web-pubsub-express/test/connected.spec.ts b/sdk/web-pubsub/web-pubsub-express/test/connected.spec.ts index 93887b4e94c7..cee45c44b834 100644 --- a/sdk/web-pubsub/web-pubsub-express/test/connected.spec.ts +++ b/sdk/web-pubsub/web-pubsub-express/test/connected.spec.ts @@ -11,7 +11,7 @@ function buildRequest( req: IncomingMessage, hub: string, connectionId: string, - userId?: string + userId?: string, ): void { req.headers["webhook-request-origin"] = "xxx.webpubsub.azure.com"; req.headers["content-type"] = "application/json; charset=utf-8"; diff --git a/sdk/web-pubsub/web-pubsub-express/test/disconnected.spec.ts b/sdk/web-pubsub/web-pubsub-express/test/disconnected.spec.ts index 8957368b0fce..1bfea4415614 100644 --- a/sdk/web-pubsub/web-pubsub-express/test/disconnected.spec.ts +++ b/sdk/web-pubsub/web-pubsub-express/test/disconnected.spec.ts @@ -11,7 +11,7 @@ function buildRequest( req: IncomingMessage, hub: string, connectionId: string, - userId?: string + userId?: string, ): void { req.headers["webhook-request-origin"] = "xxx.webpubsub.azure.com"; req.headers["content-type"] = "application/json; charset=utf-8"; diff --git a/sdk/web-pubsub/web-pubsub-express/test/user.spec.ts b/sdk/web-pubsub/web-pubsub-express/test/user.spec.ts index 025399058ab4..f0f69a324cc7 100644 --- a/sdk/web-pubsub/web-pubsub-express/test/user.spec.ts +++ b/sdk/web-pubsub/web-pubsub-express/test/user.spec.ts @@ -12,7 +12,7 @@ function buildRequest( hub: string, connectionId: string, userId?: string, - contentType?: string + contentType?: string, ): void { req.headers["webhook-request-origin"] = "xxx.webpubsub.azure.com"; req.headers["content-type"] = contentType ?? "application/json; charset=utf-8"; @@ -160,7 +160,7 @@ describe("Can handle user event", function () { assert.deepEqual( request.data, new Uint8Array([1, 2, 3, 4, 5, 6, 7]), - "buffer data matches" + "buffer data matches", ); response.success(); }, @@ -326,7 +326,7 @@ describe("Can handle user event", function () { assert.equal( "application/json; charset=utf-8", res.getHeader("content-type"), - "should be json" + "should be json", ); }); @@ -356,10 +356,10 @@ describe("Can handle user event", function () { key1: "val3", key2: "val2", key3: "", - }) + }), ).toString("base64"), res.getHeader("ce-connectionState"), - "should contain multiple state headers" + "should contain multiple state headers", ); }); }); diff --git a/sdk/web-pubsub/web-pubsub/package.json b/sdk/web-pubsub/web-pubsub/package.json index 98c891275c5e..0517c735674d 100644 --- a/sdk/web-pubsub/web-pubsub/package.json +++ b/sdk/web-pubsub/web-pubsub/package.json @@ -14,8 +14,8 @@ "build:test": "tsc -p . && dev-tool run bundle --browser-test=false", "build": "npm run clean && tsc -p . && dev-tool run bundle --browser-test=false && api-extractor run --local", "bundle": "dev-tool run bundle --browser-test=false", - "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf dist dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", @@ -106,7 +106,6 @@ "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", "c8": "^8.0.0", - "prettier": "^2.5.1", "puppeteer": "^19.2.2", "rimraf": "^3.0.0", "sinon": "^17.0.0", diff --git a/sdk/web-pubsub/web-pubsub/src/groupClient.ts b/sdk/web-pubsub/web-pubsub/src/groupClient.ts index 30150267420a..ed26784576db 100644 --- a/sdk/web-pubsub/web-pubsub/src/groupClient.ts +++ b/sdk/web-pubsub/web-pubsub/src/groupClient.ts @@ -209,7 +209,7 @@ export class WebPubSubGroupImpl implements WebPubSubGroup { */ public async addConnection( connectionId: string, - options: GroupAddConnectionOptions = {} + options: GroupAddConnectionOptions = {}, ): Promise { let response: FullOperationResponse | undefined; function onResponse(rawResponse: FullOperationResponse, flatResponse: unknown): void { @@ -230,7 +230,7 @@ export class WebPubSubGroupImpl implements WebPubSubGroup { { ...updatedOptions, onResponse, - } + }, ); if (response!.status === 404) { @@ -240,7 +240,7 @@ export class WebPubSubGroupImpl implements WebPubSubGroup { response: response, }); } - } + }, ); } @@ -252,7 +252,7 @@ export class WebPubSubGroupImpl implements WebPubSubGroup { */ public async removeConnection( connectionId: string, - options: GroupRemoveConnectionOptions = {} + options: GroupRemoveConnectionOptions = {}, ): Promise { return tracingClient.withSpan( "WebPubSubGroupClient.removeConnection", @@ -262,9 +262,9 @@ export class WebPubSubGroupImpl implements WebPubSubGroup { this.hubName, this.groupName, connectionId, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -281,9 +281,9 @@ export class WebPubSubGroupImpl implements WebPubSubGroup { return this.client.webPubSub.closeGroupConnections( this.hubName, this.groupName, - updatedOptions + updatedOptions, ); - } + }, ); } /** @@ -298,7 +298,7 @@ export class WebPubSubGroupImpl implements WebPubSubGroup { this.hubName, this.groupName, username, - updatedOptions + updatedOptions, ); }); } @@ -315,7 +315,7 @@ export class WebPubSubGroupImpl implements WebPubSubGroup { this.hubName, this.groupName, username, - updatedOptions + updatedOptions, ); }); } @@ -344,7 +344,7 @@ export class WebPubSubGroupImpl implements WebPubSubGroup { public async sendToAll( message: JSONTypes | RequestBodyType, - options: GroupSendToAllOptions | GroupSendTextToAllOptions = {} + options: GroupSendToAllOptions | GroupSendTextToAllOptions = {}, ): Promise { return tracingClient.withSpan("WebPubSubGroupClient.sendToAll", options, (updatedOptions) => { const { contentType, payload } = getPayloadForMessage(message, updatedOptions); @@ -353,7 +353,7 @@ export class WebPubSubGroupImpl implements WebPubSubGroup { this.groupName, contentType, payload as any, - updatedOptions + updatedOptions, ); }); } diff --git a/sdk/web-pubsub/web-pubsub/src/hubClient.ts b/sdk/web-pubsub/web-pubsub/src/hubClient.ts index e69f24feb5ba..d4ed0877c48d 100644 --- a/sdk/web-pubsub/web-pubsub/src/hubClient.ts +++ b/sdk/web-pubsub/web-pubsub/src/hubClient.ts @@ -344,13 +344,13 @@ export class WebPubSubServiceClient { endpoint: string, credential: AzureKeyCredential | TokenCredential, hubName: string, - options?: WebPubSubServiceClientOptions + options?: WebPubSubServiceClientOptions, ); constructor( endpointOrConnectionString: string, credsOrHubName?: AzureKeyCredential | TokenCredential | string, hubNameOrOpts?: string | WebPubSubServiceClientOptions, - opts?: WebPubSubServiceClientOptions + opts?: WebPubSubServiceClientOptions, ) { // unpack constructor arguments if (typeof credsOrHubName === "object") { @@ -394,7 +394,7 @@ export class WebPubSubServiceClient { if (this.clientOptions?.reverseProxyEndpoint) { this.client.pipeline.addPolicy( - webPubSubReverseProxyPolicy(this.clientOptions?.reverseProxyEndpoint) + webPubSubReverseProxyPolicy(this.clientOptions?.reverseProxyEndpoint), ); } } @@ -432,7 +432,7 @@ export class WebPubSubServiceClient { public async sendToAll( message: RequestBodyType | JSONTypes, - options: HubSendToAllOptions | HubSendTextToAllOptions = {} + options: HubSendToAllOptions | HubSendTextToAllOptions = {}, ): Promise { return tracingClient.withSpan("WebPubSubServiceClient.sendToAll", options, (updatedOptions) => { const { contentType, payload } = getPayloadForMessage(message, updatedOptions); @@ -440,7 +440,7 @@ export class WebPubSubServiceClient { this.hubName, contentType, payload as any, - updatedOptions + updatedOptions, ); }); } @@ -456,7 +456,7 @@ export class WebPubSubServiceClient { username: string, message: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options: HubSendTextToUserOptions + options: HubSendTextToUserOptions, ): Promise; /** @@ -469,7 +469,7 @@ export class WebPubSubServiceClient { public async sendToUser( username: string, message: JSONTypes, - options?: HubSendToUserOptions + options?: HubSendToUserOptions, ): Promise; /** @@ -482,12 +482,12 @@ export class WebPubSubServiceClient { public async sendToUser( username: string, message: RequestBodyType, - options?: HubSendToUserOptions | HubSendTextToUserOptions + options?: HubSendToUserOptions | HubSendTextToUserOptions, ): Promise; public async sendToUser( username: string, message: RequestBodyType | JSONTypes, - options: HubSendToUserOptions = {} + options: HubSendToUserOptions = {}, ): Promise { return tracingClient.withSpan( "WebPubSubServiceClient.sendToUser", @@ -499,9 +499,9 @@ export class WebPubSubServiceClient { username, contentType, payload as any, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -516,7 +516,7 @@ export class WebPubSubServiceClient { connectionId: string, message: string, // eslint-disable-next-line @azure/azure-sdk/ts-naming-options - options: HubSendTextToConnectionOptions + options: HubSendTextToConnectionOptions, ): Promise; /** @@ -529,7 +529,7 @@ export class WebPubSubServiceClient { public async sendToConnection( connectionId: string, message: JSONTypes, - options?: HubSendToConnectionOptions + options?: HubSendToConnectionOptions, ): Promise; /** @@ -542,12 +542,12 @@ export class WebPubSubServiceClient { public async sendToConnection( connectionId: string, message: RequestBodyType, - options?: HubSendToConnectionOptions | HubSendTextToConnectionOptions + options?: HubSendToConnectionOptions | HubSendTextToConnectionOptions, ): Promise; public async sendToConnection( connectionId: string, message: RequestBodyType | JSONTypes, - options: HubSendToConnectionOptions = {} + options: HubSendToConnectionOptions = {}, ): Promise { return tracingClient.withSpan( "WebPubSubServiceClient.sendToConnection", @@ -560,9 +560,9 @@ export class WebPubSubServiceClient { connectionId, contentType, payload as any, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -574,7 +574,7 @@ export class WebPubSubServiceClient { */ public async connectionExists( connectionId: string, - options: HasConnectionOptions = {} + options: HasConnectionOptions = {}, ): Promise { let response: FullOperationResponse | undefined; function onResponse(rawResponse: FullOperationResponse, flatResponse: unknown): void { @@ -605,7 +605,7 @@ export class WebPubSubServiceClient { response: response, }); } - } + }, ); } @@ -617,14 +617,14 @@ export class WebPubSubServiceClient { */ public async closeConnection( connectionId: string, - options: HubCloseConnectionOptions = {} + options: HubCloseConnectionOptions = {}, ): Promise { return tracingClient.withSpan( "WebPubSubServiceClient.closeConnection", options, (updatedOptions) => { return this.client.webPubSub.closeConnection(this.hubName, connectionId, updatedOptions); - } + }, ); } @@ -639,7 +639,7 @@ export class WebPubSubServiceClient { options, (updatedOptions) => { return this.client.webPubSub.closeAllConnections(this.hubName, updatedOptions); - } + }, ); } @@ -651,14 +651,14 @@ export class WebPubSubServiceClient { */ public async closeUserConnections( userId: string, - options: HubCloseUserConnectionsOptions = {} + options: HubCloseUserConnectionsOptions = {}, ): Promise { return tracingClient.withSpan( "WebPubSubServiceClient.closeUserConnections", options, (updatedOptions) => { return this.client.webPubSub.closeUserConnections(this.hubName, userId, updatedOptions); - } + }, ); } @@ -669,14 +669,14 @@ export class WebPubSubServiceClient { */ public async removeUserFromAllGroups( userId: string, - options: HubCloseConnectionOptions = {} + options: HubCloseConnectionOptions = {}, ): Promise { return tracingClient.withSpan( "WebPubSubServiceClient.removeUserFromAllGroups", options, (updatedOptions) => { return this.client.webPubSub.removeUserFromAllGroups(this.hubName, userId, updatedOptions); - } + }, ); } @@ -687,7 +687,7 @@ export class WebPubSubServiceClient { */ public async removeConnectionFromAllGroups( connectionId: string, - options: HubCloseConnectionOptions = {} + options: HubCloseConnectionOptions = {}, ): Promise { return tracingClient.withSpan( "WebPubSubServiceClient.removeConnectionFromAllGroups", @@ -696,9 +696,9 @@ export class WebPubSubServiceClient { return this.client.webPubSub.removeConnectionFromAllGroups( this.hubName, connectionId, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -711,7 +711,7 @@ export class WebPubSubServiceClient { public async addConnectionsToGroups( groups: string[], filter: string, - options: GroupAddConnectionOptions = {} + options: GroupAddConnectionOptions = {}, ): Promise { return tracingClient.withSpan( "WebPubSubServiceClient.addConnectionsToGroups", @@ -723,9 +723,9 @@ export class WebPubSubServiceClient { groups: groups, filter: filter, } as AddToGroupsRequest, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -738,7 +738,7 @@ export class WebPubSubServiceClient { public async removeConnectionsFromGroups( groups: string[], filter: string, - options: GroupRemoveConnectionOptions = {} + options: GroupRemoveConnectionOptions = {}, ): Promise { return tracingClient.withSpan( "WebPubSubServiceClient.removeConnectionsFromGroups", @@ -750,9 +750,9 @@ export class WebPubSubServiceClient { groups: groups, filter: filter, } as RemoveFromGroupsRequest, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -791,7 +791,7 @@ export class WebPubSubServiceClient { response: response, }); } - } + }, ); } @@ -831,7 +831,7 @@ export class WebPubSubServiceClient { response: response, }); } - } + }, ); } @@ -845,7 +845,7 @@ export class WebPubSubServiceClient { public async grantPermission( connectionId: string, permission: Permission, - options: HubGrantPermissionOptions = {} + options: HubGrantPermissionOptions = {}, ): Promise { return tracingClient.withSpan( "WebPubSubServiceClient.grantPermission", @@ -855,9 +855,9 @@ export class WebPubSubServiceClient { this.hubName, permission, connectionId, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -871,7 +871,7 @@ export class WebPubSubServiceClient { public async revokePermission( connectionId: string, permission: Permission, - options: HubRevokePermissionOptions = {} + options: HubRevokePermissionOptions = {}, ): Promise { return tracingClient.withSpan( "WebPubSubServiceClient.revokePermission", @@ -881,9 +881,9 @@ export class WebPubSubServiceClient { this.hubName, permission, connectionId, - updatedOptions + updatedOptions, ); - } + }, ); } @@ -897,7 +897,7 @@ export class WebPubSubServiceClient { public async hasPermission( connectionId: string, permission: Permission, - options: HubHasPermissionOptions = {} + options: HubHasPermissionOptions = {}, ): Promise { let response: FullOperationResponse | undefined; function onResponse(rawResponse: FullOperationResponse, flatResponse: unknown): void { @@ -928,7 +928,7 @@ export class WebPubSubServiceClient { response: response, }); } - } + }, ); } @@ -938,7 +938,7 @@ export class WebPubSubServiceClient { * @param options - Additional options */ public async getClientAccessToken( - options: GenerateClientTokenOptions = {} + options: GenerateClientTokenOptions = {}, ): Promise { return tracingClient.withSpan( "WebPubSubServiceClient.getClientAccessToken", @@ -952,7 +952,7 @@ export class WebPubSubServiceClient { if (isTokenCredential(this.credential)) { const response = await this.client.webPubSub.generateClientToken( this.hubName, - updatedOptions + updatedOptions, ); token = response.token!; } else { @@ -978,7 +978,7 @@ export class WebPubSubServiceClient { baseUrl, url: `${baseUrl}?access_token=${token}`, }; - } + }, ); } } diff --git a/sdk/web-pubsub/web-pubsub/test/groups.spec.ts b/sdk/web-pubsub/web-pubsub/test/groups.spec.ts index aea37b3d3b52..bd4702d60639 100644 --- a/sdk/web-pubsub/web-pubsub/test/groups.spec.ts +++ b/sdk/web-pubsub/web-pubsub/test/groups.spec.ts @@ -22,7 +22,7 @@ describe("Group client working with a group", function () { const hubClient = new WebPubSubServiceClient( assertEnvironmentVariable("WPS_CONNECTION_STRING"), "simplechat", - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); client = hubClient.group("group"); @@ -65,7 +65,7 @@ describe("Group client working with a group", function () { assert.equal(error.statusCode, 400); assert.equal( JSON.parse(error.message).message, - "Invalid syntax for 'invalid filter': Syntax error at position 14 in 'invalid filter'. (Parameter 'filter')" + "Invalid syntax for 'invalid filter': Syntax error at position 14 in 'invalid filter'. (Parameter 'filter')", ); }); @@ -117,7 +117,7 @@ describe("client working with multiple groups", function () { hubClient = new WebPubSubServiceClient( assertEnvironmentVariable("WPS_CONNECTION_STRING"), "simplechat", - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); }); @@ -144,7 +144,7 @@ describe("client working with multiple groups", function () { assert.equal(error.statusCode, 400); assert.equal( JSON.parse(error.message).message, - "Invalid syntax for 'invalid filter': Syntax error at position 14 in 'invalid filter'. (Parameter 'filter')" + "Invalid syntax for 'invalid filter': Syntax error at position 14 in 'invalid filter'. (Parameter 'filter')", ); }); @@ -167,7 +167,7 @@ describe("client working with multiple groups", function () { assert.equal(error.statusCode, 400); assert.equal( JSON.parse(error.message).message, - "Invalid syntax for 'invalid filter': Syntax error at position 14 in 'invalid filter'. (Parameter 'filter')" + "Invalid syntax for 'invalid filter': Syntax error at position 14 in 'invalid filter'. (Parameter 'filter')", ); }); }); diff --git a/sdk/web-pubsub/web-pubsub/test/hubs.spec.ts b/sdk/web-pubsub/web-pubsub/test/hubs.spec.ts index 46311736f67d..35f4eb21ae42 100644 --- a/sdk/web-pubsub/web-pubsub/test/hubs.spec.ts +++ b/sdk/web-pubsub/web-pubsub/test/hubs.spec.ts @@ -28,7 +28,7 @@ describe("HubClient", function () { "test-hub", { retryOptions: { maxRetries: 2 }, - } + }, ); }); }); @@ -41,7 +41,7 @@ describe("HubClient", function () { "test-hub", { retryOptions: { maxRetries: 2 }, - } + }, ); }); }); @@ -62,7 +62,7 @@ describe("HubClient", function () { client = new WebPubSubServiceClient( assertEnvironmentVariable("WPS_CONNECTION_STRING"), "simplechat", - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); }); @@ -107,7 +107,7 @@ describe("HubClient", function () { assert.equal(error.statusCode, 400); assert.equal( JSON.parse(error.message).message, - "Invalid syntax for 'invalid filter': Syntax error at position 14 in 'invalid filter'. (Parameter 'filter')" + "Invalid syntax for 'invalid filter': Syntax error at position 14 in 'invalid filter'. (Parameter 'filter')", ); }); @@ -116,7 +116,7 @@ describe("HubClient", function () { assertEnvironmentVariable("WPS_ENDPOINT"), credential, "simplechat", - recorder.configureClientOptions({}) + recorder.configureClientOptions({}), ); await dacClient.sendToAll("hello", { contentType: "text/plain", onResponse }); @@ -136,7 +136,7 @@ describe("HubClient", function () { "simplechat", recorder.configureClientOptions({ reverseProxyEndpoint: assertEnvironmentVariable("WPS_REVERSE_PROXY_ENDPOINT"), - }) + }), ); await apimClient.sendToAll("hello", { contentType: "text/plain", onResponse }); @@ -189,7 +189,7 @@ describe("HubClient", function () { assert.equal(error.statusCode, 400); assert.equal( JSON.parse(error.message).message, - "Invalid syntax for 'invalid filter': Syntax error at position 14 in 'invalid filter'. (Parameter 'filter')" + "Invalid syntax for 'invalid filter': Syntax error at position 14 in 'invalid filter'. (Parameter 'filter')", ); }); @@ -291,7 +291,7 @@ describe("HubClient", function () { "WebPubSubServiceClient.hasPermission", "WebPubSubServiceClient.revokePermission", "WebPubSubServiceClient.getClientAccessToken", - ] + ], ); }); diff --git a/sdk/web-pubsub/web-pubsub/test/integration.spec.ts b/sdk/web-pubsub/web-pubsub/test/integration.spec.ts index da54004b5b09..98754f9373a0 100644 --- a/sdk/web-pubsub/web-pubsub/test/integration.spec.ts +++ b/sdk/web-pubsub/web-pubsub/test/integration.spec.ts @@ -29,7 +29,10 @@ function defer(): { class SimpleWebSocketFrame { public dataAsString: string | undefined; - constructor(public data: Buffer | ArrayBuffer | Buffer[], public isBinary: boolean) { + constructor( + public data: Buffer | ArrayBuffer | Buffer[], + public isBinary: boolean, + ) { if (!isBinary) { this.dataAsString = data.toString(); } @@ -102,7 +105,7 @@ describe("ServiceClient to manage the connected WebSocket connections", function // Get token const serviceClient = new WebPubSubServiceClient( assertEnvironmentVariable("WPS_CONNECTION_STRING"), - hub + hub, ); const token = await serviceClient.getClientAccessToken(); const endSignal = defer(); @@ -146,7 +149,7 @@ describe("ServiceClient to manage the connected WebSocket connections", function // Get token const serviceClient = new WebPubSubServiceClient( assertEnvironmentVariable("WPS_CONNECTION_STRING"), - hub + hub, ); const token = await serviceClient.getClientAccessToken({ groups: ["group1", "group2"], @@ -187,7 +190,7 @@ describe("ServiceClient to manage the connected WebSocket connections", function // order from different groups is not guaranteed assert.isTrue( - messages.findIndex((s) => s.dataAsString === '{"message":"Hello world from group1!"}') > -1 + messages.findIndex((s) => s.dataAsString === '{"message":"Hello world from group1!"}') > -1, ); assert.isTrue(messages.findIndex((s) => s.dataAsString === "Hi there from group2!") > -1); }); @@ -200,7 +203,7 @@ describe("ServiceClient to manage the connected WebSocket connections", function // Get token const serviceClient = new WebPubSubServiceClient( assertEnvironmentVariable("WPS_CONNECTION_STRING"), - hub + hub, ); const token = await serviceClient.getClientAccessToken(); const endSignal = defer(); @@ -240,11 +243,11 @@ describe("ServiceClient to manage the connected WebSocket connections", function assert.equal(messages[0].message.event, "connected"); assert.equal( messages[1].dataAsString, - '{"type":"message","from":"server","dataType":"json","data":{"message":"Hello world!"}}' + '{"type":"message","from":"server","dataType":"json","data":{"message":"Hello world!"}}', ); assert.equal( messages[2].dataAsString, - '{"type":"message","from":"server","dataType":"text","data":"Hi there!"}' + '{"type":"message","from":"server","dataType":"text","data":"Hi there!"}', ); }); @@ -257,7 +260,7 @@ describe("ServiceClient to manage the connected WebSocket connections", function // Get token const serviceClient = new WebPubSubServiceClient( assertEnvironmentVariable("WPS_CONNECTION_STRING"), - hub + hub, ); const token = await serviceClient.getClientAccessToken({ groups: ["groupA"] }); const endSignal = defer(); @@ -277,7 +280,7 @@ describe("ServiceClient to manage the connected WebSocket connections", function // Send a JSON message to anonymous connections await serviceClient.sendToAll( { message: "Hello world!" }, - { filter: "userId eq null", messageTtlSeconds: 60 } + { filter: "userId eq null", messageTtlSeconds: 60 }, ); // Send a text message to connections in groupA but not in groupB const groupA = "groupA"; @@ -309,7 +312,7 @@ describe("ServiceClient to manage the connected WebSocket connections", function // Get token const serviceClient = new WebPubSubServiceClient( assertEnvironmentVariable("WPS_CONNECTION_STRING"), - hub + hub, ); const token = await serviceClient.getClientAccessToken({ userId: "user 1" }); const startSignal = defer(); @@ -347,7 +350,7 @@ describe("ServiceClient to manage the connected WebSocket connections", function // send to connections in both group1 and group2 await serviceClient.sendToAll( { message: "Hi json!" }, - { filter: "'group1 1' in groups and 'group2' in groups" } + { filter: "'group1 1' in groups and 'group2' in groups" }, ); // Send a plain text message